aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Harvey <peter.a.harvey@gmail.com>2006-03-03 05:49:26 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-03-03 05:49:26 +0800
commit2bb56d082c838fc5cc72b271b6f244671868bc3d (patch)
tree9d92c602cd866abea1ea300cf9896ddbd6b4e0bf /src
parentfdb9695a63e0d25e9adffeb485962ee62e67f310 (diff)
downloadgsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.gz
gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.zst
gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.zip
src/ephy-window.c
2006-03-02 Peter Harvey <peter.a.harvey@gmail.com> * src/ephy-window.c Fix a bug introduced in my last patch where statusbar visibility was inverted from what it should have been.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 0bddd0f2c..be9cfdbf0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3646,14 +3646,17 @@ sync_prefs_with_chrome (EphyWindow *window)
}
static void
-sync_chrome_with_view_toggle (GtkAction *action, EphyWindow *window,
- EphyEmbedChrome chrome_flag)
+sync_chrome_with_view_toggle (GtkAction *action,
+ EphyWindow *window,
+ EphyEmbedChrome chrome_flag,
+ gboolean invert)
{
gboolean active;
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
- window->priv->chrome = active ? window->priv->chrome & (~chrome_flag) :
- window->priv->chrome | chrome_flag;
+ window->priv->chrome = (active != invert) ?
+ window->priv->chrome | chrome_flag :
+ window->priv->chrome & (~chrome_flag);
sync_chromes_visibility (window);
sync_prefs_with_chrome (window);
@@ -3664,7 +3667,7 @@ ephy_window_view_statusbar_cb (GtkAction *action,
EphyWindow *window)
{
sync_chrome_with_view_toggle (action, window,
- EPHY_EMBED_CHROME_STATUSBAR);
+ EPHY_EMBED_CHROME_STATUSBAR, FALSE);
}
static void
@@ -3672,7 +3675,7 @@ ephy_window_view_toolbar_cb (GtkAction *action,
EphyWindow *window)
{
sync_chrome_with_view_toggle (action, window,
- EPHY_EMBED_CHROME_TOOLBAR);
+ EPHY_EMBED_CHROME_TOOLBAR, TRUE);
}
static void