From 40f9870ee0b060e7fdbfff104343d4c2f0eb4ac2 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 18 Mar 2004 20:22:25 +0000 Subject: Cleanups chromes code and register a type for the enum. 2004-03-16 Marco Pesenti Gritti * embed/ephy-embed.c: (ephy_embed_chrome_get_type): * embed/ephy-embed.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed.cpp: Cleanups chromes code and register a type for the enum. * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): Adapt to the api changes * src/ephy-tab.c: (ephy_tab_new_window_cb): Move js chrome lockdown pref check here. * src/ephy-window.c: (get_chromes_visibility), (sync_chromes_visibility), (ephy_window_fullscreen), (ephy_window_unfullscreen), (update_chromes_actions), (update_actions_sensitivity), (show_embed_popup), (get_default_chrome), (ephy_window_set_property), (ephy_window_class_init), (actions_notifier), (navigation_notifier), (ephy_window_init), (ephy_window_finalize), (ephy_window_new_with_chrome), (ephy_window_set_print_preview), (ephy_window_show), (sync_prefs_with_chrome), (sync_chrome_with_view_toggle), (ephy_window_view_statusbar_cb), (ephy_window_view_toolbar_cb), (ephy_window_view_bookmarksbar_cb): Rework chrome handling so that it's not applied to all windows. Changes are now saved on the fly like for window size. * src/ephy-window.h: Use a construct property instead of a _set for chrome. * src/window-commands.c: * src/window-commands.h: Move chromes actions to EphyWindow so we dont need to expose chrome handling. --- src/window-commands.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index c07c54f87..4571796c1 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -586,36 +586,6 @@ window_cmd_edit_find_prev (GtkAction *action, ephy_embed_find_next (embed, TRUE); } -void -window_cmd_view_bookmarks_bar (GtkAction *action, - EphyWindow *window) -{ - gboolean active; - - active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); - eel_gconf_set_boolean (CONF_WINDOWS_SHOW_BOOKMARKS_BAR, active); -} - -void -window_cmd_view_toolbar (GtkAction *action, - EphyWindow *window) -{ - gboolean active; - - active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); - eel_gconf_set_boolean (CONF_WINDOWS_SHOW_TOOLBARS, active); -} - -void -window_cmd_view_statusbar (GtkAction *action, - EphyWindow *window) -{ - gboolean active; - - active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); - eel_gconf_set_boolean (CONF_WINDOWS_SHOW_STATUSBAR, active); -} - void window_cmd_view_fullscreen (GtkAction *action, EphyWindow *window) -- cgit v1.2.3