Handle uri notifications in midori_browser_set_current_tab
This commit is contained in:
parent
0cdcae487a
commit
66a1462d14
1 changed files with 5 additions and 7 deletions
|
@ -4748,10 +4748,7 @@ gtk_notebook_switch_page_after_cb (GtkWidget* notebook,
|
||||||
if (browser->proxy_array)
|
if (browser->proxy_array)
|
||||||
katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current",
|
katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current",
|
||||||
midori_browser_get_current_page (browser));
|
midori_browser_get_current_page (browser));
|
||||||
g_object_freeze_notify (G_OBJECT (browser));
|
|
||||||
g_object_notify (G_OBJECT (browser), "uri");
|
|
||||||
g_object_notify (G_OBJECT (browser), "tab");
|
g_object_notify (G_OBJECT (browser), "tab");
|
||||||
g_object_thaw_notify (G_OBJECT (browser));
|
|
||||||
|
|
||||||
_midori_browser_set_statusbar_text (browser, NULL);
|
_midori_browser_set_statusbar_text (browser, NULL);
|
||||||
_midori_browser_update_interface (browser);
|
_midori_browser_update_interface (browser);
|
||||||
|
@ -4766,11 +4763,7 @@ midori_browser_notebook_page_reordered_cb (GtkNotebook* notebook,
|
||||||
{
|
{
|
||||||
KatzeItem* item = midori_view_get_proxy_item (view);
|
KatzeItem* item = midori_view_get_proxy_item (view);
|
||||||
katze_array_move_item (browser->proxy_array, item, page_num);
|
katze_array_move_item (browser->proxy_array, item, page_num);
|
||||||
|
|
||||||
g_object_freeze_notify (G_OBJECT (browser));
|
|
||||||
g_object_notify (G_OBJECT (browser), "uri");
|
|
||||||
g_object_notify (G_OBJECT (browser), "tab");
|
g_object_notify (G_OBJECT (browser), "tab");
|
||||||
g_object_thaw_notify (G_OBJECT (browser));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -7033,6 +7026,11 @@ midori_browser_set_current_tab (MidoriBrowser* browser,
|
||||||
gtk_action_activate (_action_by_name (browser, "Location"));
|
gtk_action_activate (_action_by_name (browser, "Location"));
|
||||||
else
|
else
|
||||||
gtk_widget_grab_focus (view);
|
gtk_widget_grab_focus (view);
|
||||||
|
|
||||||
|
g_object_freeze_notify (G_OBJECT (browser));
|
||||||
|
g_object_notify (G_OBJECT (browser), "uri");
|
||||||
|
g_object_notify (G_OBJECT (browser), "tab");
|
||||||
|
g_object_thaw_notify (G_OBJECT (browser));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue