diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-04-25 19:40:41 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-04-25 19:40:41 +0800 |
commit | 7c7d6f9dba8d66386213172d5e7c1e05577ebc49 (patch) | |
tree | 4177eedaa4c3c65dcdee5e1ff483ba74783d2b58 /src/ephy-tabs-menu.c | |
parent | 72987fc9b47a86b9eb271b214bf0675ed5589850 (diff) | |
download | gsoc2013-epiphany-7c7d6f9dba8d66386213172d5e7c1e05577ebc49.tar.gz gsoc2013-epiphany-7c7d6f9dba8d66386213172d5e7c1e05577ebc49.tar.zst gsoc2013-epiphany-7c7d6f9dba8d66386213172d5e7c1e05577ebc49.zip |
Make sure each tab has its own unique ID, so accel paths don't conflict
2006-04-25 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tab.c: (ephy_tab_finalize), (ephy_tab_init),
(ephy_tab_get_zoom), (_ephy_tab_get_id):
* src/ephy-tab.h:
* src/ephy-tabs-menu.c: (notebook_page_added_cb),
(sync_active_tab):
Make sure each tab has its own unique ID, so accel paths don't
conflict between windows. Fixes bug #339548.
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r-- | src/ephy-tabs-menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index c79220719..553f8c033 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -54,7 +54,6 @@ struct _EphyTabsMenuPrivate GtkActionGroup *action_group; GtkAction *anchor_action; guint ui_id; - guint num; }; enum @@ -142,7 +141,8 @@ notebook_page_added_cb (EphyNotebook *notebook, LOG ("tab_added_cb tab=%p", tab); - g_snprintf (verb, sizeof (verb), ACTION_VERB_FORMAT, priv->num++); + g_snprintf (verb, sizeof (verb), ACTION_VERB_FORMAT, + _ephy_tab_get_id (tab)); action = g_object_new (GTK_TYPE_RADIO_ACTION, "name", verb, @@ -250,6 +250,7 @@ sync_active_tab (EphyWindow *window, /* happens initially, since the ::active-tab comes before * the ::tab-added signal */ + /* FIXME that's not true with gtk+ 2.9 anymore */ if (action == NULL) return; gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE); |