diff options
author | Peter Harvey <peter.a.harvey@gmail.com> | 2006-03-03 05:49:26 +0800 |
---|---|---|
committer | Peter Anthony Harvey <paharvey@src.gnome.org> | 2006-03-03 05:49:26 +0800 |
commit | 2bb56d082c838fc5cc72b271b6f244671868bc3d (patch) | |
tree | 9d92c602cd866abea1ea300cf9896ddbd6b4e0bf /src/ephy-window.c | |
parent | fdb9695a63e0d25e9adffeb485962ee62e67f310 (diff) | |
download | gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.gz gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.bz2 gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.lz gsoc2013-epiphany-2bb56d082c838fc5cc72b271b6f244671868bc3d.tar.xz 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/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 15 |
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 |