aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tabs-menu.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-03-15 02:22:47 +0800
committerChristian Persch <chpe@src.gnome.org>2005-03-15 02:22:47 +0800
commit79b688e5ae5c412faf82c4c62aa58913b735feb6 (patch)
tree23e3cdaf6b49e77206679cf751085e5f055dd6de /src/ephy-tabs-menu.c
parent1cd057fbc1422e10b4b489718dc1f76e8da847c9 (diff)
downloadgsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar.gz
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar.bz2
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar.lz
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar.xz
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.tar.zst
gsoc2013-epiphany-79b688e5ae5c412faf82c4c62aa58913b735feb6.zip
Use connect_object, to guard against "title" signal emitted when the
2005-03-14 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tabs-menu.c: (tab_added_cb): Use connect_object, to guard against "title" signal emitted when the window is dying. Fixes bug #169833.
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r--src/ephy-tabs-menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index d28bb9a56..c900eab24 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -149,8 +149,9 @@ tab_added_cb (EphyNotebook *notebook,
NULL);
sync_tab_title (tab, NULL, action);
- g_signal_connect (tab, "notify::title",
- G_CALLBACK (sync_tab_title), action);
+ /* make sure the action is alive when handling the signal, see bug #169833 */
+ g_signal_connect_object (tab, "notify::title",
+ G_CALLBACK (sync_tab_title), action, 0);
gtk_action_group_add_action_with_accel (priv->action_group, action, NULL);