aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-menu.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-menu.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmarks-menu.c b/src/bookmarks/ephy-bookmarks-menu.c
index da186741e..b8a9119c9 100644
--- a/src/bookmarks/ephy-bookmarks-menu.c
+++ b/src/bookmarks/ephy-bookmarks-menu.c
@@ -428,9 +428,9 @@ ephy_bookmarks_menu_init (EphyBookmarksMenu *menu)
menu->priv = p;
menu->priv->bookmarks = ephy_shell_get_bookmarks (ephy_shell);
- g_signal_connect (menu->priv->bookmarks, "tree_changed",
- G_CALLBACK (bookmarks_tree_changed_cb),
- menu);
+ g_signal_connect_object (menu->priv->bookmarks, "tree_changed",
+ G_CALLBACK (bookmarks_tree_changed_cb),
+ menu, 0);
menu->priv->ui_id = 0;
menu->priv->action_group = NULL;
@@ -443,6 +443,11 @@ ephy_bookmarks_menu_finalize (GObject *o)
EphyBookmarksMenu *menu = EPHY_BOOKMARKS_MENU (o);
EphyBookmarksMenuPrivate *p = menu->priv;
+ if (menu->priv->update_tag != 0)
+ {
+ g_source_remove (menu->priv->update_tag);
+ }
+
if (p->action_group != NULL)
{
egg_menu_merge_remove_action_group