From 1d5dcb8f9617d724db9345a8c14f2a5d6909251e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 25 Feb 2008 21:00:48 +0000 Subject: Connect the signal before unreffing the action, just to be absolutely safe. svn path=/trunk/; revision=7985 --- src/bookmarks/ephy-bookmark-action-group.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmark-action-group.c b/src/bookmarks/ephy-bookmark-action-group.c index 45e1f2e33..1d889d86a 100644 --- a/src/bookmarks/ephy-bookmark-action-group.c +++ b/src/bookmarks/ephy-bookmark-action-group.c @@ -103,15 +103,15 @@ node_added_cb (EphyNode *parent, action = ephy_bookmark_action_new (child, name); + g_signal_connect_swapped (action, "open-link", + G_CALLBACK (ephy_link_open), action_group); + g_snprintf (accel, sizeof (accel), "/%s/%s", gtk_action_group_get_name (action_group), name); gtk_action_set_accel_path (action, accel); gtk_action_group_add_action (action_group, action); g_object_unref (action); - - g_signal_connect_swapped (action, "open-link", - G_CALLBACK (ephy_link_open), action_group); } static void -- cgit v1.2.1