Update tabs if speed dial changes or thumbnail loaded
This commit is contained in:
parent
616f49605b
commit
34ef20ce4e
1 changed files with 16 additions and 0 deletions
|
@ -5454,6 +5454,9 @@ thumb_view_load_status_cb (MidoriView* thumb_view,
|
||||||
GdkPixbuf* img;
|
GdkPixbuf* img;
|
||||||
gchar* file_path;
|
gchar* file_path;
|
||||||
gchar* dom_id;
|
gchar* dom_id;
|
||||||
|
MidoriBrowser* browser;
|
||||||
|
gint i;
|
||||||
|
GtkWidget* tab;
|
||||||
|
|
||||||
if (midori_view_get_load_status (thumb_view) != MIDORI_LOAD_FINISHED)
|
if (midori_view_get_load_status (thumb_view) != MIDORI_LOAD_FINISHED)
|
||||||
return;
|
return;
|
||||||
|
@ -5477,6 +5480,12 @@ thumb_view_load_status_cb (MidoriView* thumb_view,
|
||||||
gtk_widget_destroy (GTK_WIDGET (thumb_view));
|
gtk_widget_destroy (GTK_WIDGET (thumb_view));
|
||||||
view->thumb_view = NULL;
|
view->thumb_view = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
browser = midori_browser_get_for_widget (GTK_WIDGET (view));
|
||||||
|
i = 0;
|
||||||
|
while ((tab = midori_browser_get_nth_tab (browser, i++)))
|
||||||
|
if (midori_view_is_blank (MIDORI_VIEW (tab)))
|
||||||
|
midori_view_reload (MIDORI_VIEW (tab), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5550,6 +5559,8 @@ midori_view_speed_dial_save (MidoriView* view,
|
||||||
GtkWidget* notebook;
|
GtkWidget* notebook;
|
||||||
gchar* msg = g_strdup (message + 16);
|
gchar* msg = g_strdup (message + 16);
|
||||||
gchar** parts = g_strsplit (msg, " ", 4);
|
gchar** parts = g_strsplit (msg, " ", 4);
|
||||||
|
gint i;
|
||||||
|
GtkWidget* tab;
|
||||||
|
|
||||||
g_object_get (browser, "notebook", ¬ebook, NULL);
|
g_object_get (browser, "notebook", ¬ebook, NULL);
|
||||||
g_object_get (browser, "speed-dial", &key_file, NULL);
|
g_object_get (browser, "speed-dial", &key_file, NULL);
|
||||||
|
@ -5622,6 +5633,11 @@ midori_view_speed_dial_save (MidoriView* view,
|
||||||
config_file = g_build_filename (sokoke_set_config_dir (NULL), "speeddial", NULL);
|
config_file = g_build_filename (sokoke_set_config_dir (NULL), "speeddial", NULL);
|
||||||
sokoke_key_file_save_to_file (key_file, config_file, NULL);
|
sokoke_key_file_save_to_file (key_file, config_file, NULL);
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
while ((tab = midori_browser_get_nth_tab (browser, i++)))
|
||||||
|
if (midori_view_is_blank (MIDORI_VIEW (tab)))
|
||||||
|
midori_view_reload (MIDORI_VIEW (tab), FALSE);
|
||||||
|
|
||||||
g_free (msg);
|
g_free (msg);
|
||||||
g_free (action);
|
g_free (action);
|
||||||
g_free (config_file);
|
g_free (config_file);
|
||||||
|
|
Loading…
Reference in a new issue