aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c33
1 files changed, 3 insertions, 30 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index b86db7377..25ee9bff7 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -556,57 +556,30 @@ void
window_cmd_view_bookmarks_bar (GtkAction *action,
EphyWindow *window)
{
- EmbedChromeMask mask;
gboolean active;
- gboolean current_state;
- mask = ephy_window_get_chrome (window);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
- current_state = (mask & EMBED_CHROME_BOOKMARKSBARON) > 0;
-
- if (active != current_state)
- {
- mask ^= EMBED_CHROME_BOOKMARKSBARON;
- ephy_window_set_chrome (window, mask);
- }
+ eel_gconf_set_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR, active);
}
void
window_cmd_view_toolbar (GtkAction *action,
EphyWindow *window)
{
- EmbedChromeMask mask;
gboolean active;
- gboolean current_state;
- mask = ephy_window_get_chrome (window);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
- current_state = (mask & EMBED_CHROME_TOOLBARON) > 0;
-
- if (active != current_state)
- {
- mask ^= EMBED_CHROME_TOOLBARON;
- ephy_window_set_chrome (window, mask);
- }
+ eel_gconf_set_boolean (CONF_WINDOWS_SHOW_TOOLBARS, active);
}
void
window_cmd_view_statusbar (GtkAction *action,
EphyWindow *window)
{
- EmbedChromeMask mask;
gboolean active;
- gboolean current_state;
- mask = ephy_window_get_chrome (window);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
- current_state = (mask & EMBED_CHROME_STATUSBARON) > 0;
-
- if (active != current_state)
- {
- mask ^= EMBED_CHROME_STATUSBARON;
- ephy_window_set_chrome (window, mask);
- }
+ eel_gconf_set_boolean (CONF_WINDOWS_SHOW_STATUSBAR, active);
}
void