aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-02-26 05:00:48 +0800
committerChristian Persch <chpe@src.gnome.org>2008-02-26 05:00:48 +0800
commit1d5dcb8f9617d724db9345a8c14f2a5d6909251e (patch)
tree8715d57bc2de01ccb27275be2e519bfc44ec6e21 /src
parentd8cd94758db14e98051db785ab90094e64ece264 (diff)
downloadgsoc2013-epiphany-1d5dcb8f9617d724db9345a8c14f2a5d6909251e.tar.gz
gsoc2013-epiphany-1d5dcb8f9617d724db9345a8c14f2a5d6909251e.tar.zst
gsoc2013-epiphany-1d5dcb8f9617d724db9345a8c14f2a5d6909251e.zip
Connect the signal before unreffing the action, just to be absolutely safe.
svn path=/trunk/; revision=7985
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmark-action-group.c6
1 files changed, 3 insertions, 3 deletions
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), "<Actions>/%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