aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-11 03:44:44 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-11 03:44:44 +0800
commit73ae39307e5d8b732c81fc4353cbd3d827973faa (patch)
tree428730c4e538594adbe7616463bf90623d09af39 /src
parentc6214a25b44f09d1a33c0554dfb3a555c555b70f (diff)
downloadgsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar.gz
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar.bz2
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar.lz
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar.xz
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.tar.zst
gsoc2013-epiphany-73ae39307e5d8b732c81fc4353cbd3d827973faa.zip
Dont try to update menus of dead windows ;)
2003-06-10 Marco Pesenti Gritti <marco@it.gnome.org> * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_init), (ephy_bookmarks_menu_finalize): Dont try to update menus of dead windows ;)
Diffstat (limited to 'src')
-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