aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-09-24 21:52:48 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-09-24 21:52:48 +0800
commit6207b89fee0b0d515789256374493ae149046474 (patch)
tree5503ae08d6923cf9ebc0d1a7605ba6b82101b084 /src/ephy-window.c
parentd39f450226f19adf4db9d209a9cec77fccd7f509 (diff)
downloadgsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar.gz
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar.bz2
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar.lz
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar.xz
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.tar.zst
gsoc2013-epiphany-6207b89fee0b0d515789256374493ae149046474.zip
Simplify and solve bugs by using a checkbox with radio appeareance. That
2003-09-24 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-tab.c: (ephy_tab_init): * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb), (ephy_tabs_menu_init): * src/ephy-window.c: (ephy_window_set_active_tab): Simplify and solve bugs by using a checkbox with radio appeareance. That way we can get rid of groups that doesnt really work well for our needs.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index bdbd7822e..89f337db3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1081,6 +1081,7 @@ ephy_window_set_active_tab (EphyWindow *window, EphyTab *new_tab)
{
EphyTab *old_tab;
EphyEmbed *embed;
+ GtkToggleAction *action;
g_return_if_fail (EPHY_IS_WINDOW (window));
if (ephy_tab_get_window (new_tab) != window) return;
@@ -1123,14 +1124,15 @@ ephy_window_set_active_tab (EphyWindow *window, EphyTab *new_tab)
g_signal_handlers_disconnect_by_func (G_OBJECT (embed),
G_CALLBACK (tab_context_menu_cb),
window);
+
+ action = GTK_TOGGLE_ACTION (ephy_tab_get_action (old_tab));
+ gtk_toggle_action_set_active (action, FALSE);
}
window->priv->active_tab = new_tab;
if (new_tab)
{
- GtkToggleAction *action;
-
sync_tab_address (new_tab, NULL, window);
sync_tab_icon (new_tab, NULL, window);
sync_tab_load_progress (new_tab, NULL, window);