diff options
author | Chris Lahey <clahey@ximian.com> | 2003-11-30 19:38:12 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-30 19:38:12 +0800 |
commit | 3ee87498b5087ca1e7bd78142ee6c5539673b09f (patch) | |
tree | 97a99ba23db0a53c41d19154eb15956b17b9f6f2 /src/ppview-toolbar.c | |
parent | f84a5ff4e920c25d089786864f1ae2cdd94586d6 (diff) | |
download | gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.tar.gz gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.tar.zst gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.zip |
Marco Pesenti Gritti <marco@gnome.org>
2003-11-30 Chris Lahey <clahey@ximian.com>
Marco Pesenti Gritti <marco@gnome.org>
* data/Makefile.am:
* data/epiphany-lockdown.schemas.in:
* src/ephy-main.c: (main):
* src/ephy-tab.c: (ephy_tab_new_window_cb), (ephy_tab_size_to_cb):
* src/ephy-window.c: (update_chromes_visibility), (update_chrome),
(ephy_window_fullscreen), (ephy_window_unfullscreen),
(show_embed_popup), (update_layout_toggles), (chrome_notifier),
(ephy_window_init), (ephy_window_finalize),
(ephy_window_request_chrome), (ephy_window_set_print_preview),
(ephy_window_show), (print_dialog_preview_cb):
* src/ephy-window.h:
* src/ppview-toolbar.c: (ppview_toolbar_set_window),
(toolbar_cmd_ppv_close):
* src/window-commands.c: (window_cmd_view_bookmarks_bar),
(window_cmd_view_toolbar), (window_cmd_view_statusbar):
Implement lockdown pref to not allow javascript to modify
chromes. Do necessary changes to chromes code to make
it possible.
Diffstat (limited to 'src/ppview-toolbar.c')
-rwxr-xr-x | src/ppview-toolbar.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c index 8215f6b2f..bdf70f322 100755 --- a/src/ppview-toolbar.c +++ b/src/ppview-toolbar.c @@ -61,7 +61,6 @@ static GObjectClass *parent_class = NULL; struct PPViewToolbarPrivate { EphyWindow *window; - EmbedChromeMask original_mask; GtkUIManager *ui_merge; GtkActionGroup *action_group; guint ui_id; @@ -240,8 +239,6 @@ ppview_toolbar_set_window (PPViewToolbar *t, EphyWindow *window) t->priv->window = window; t->priv->ui_merge = GTK_UI_MANAGER (t->priv->window->ui_merge); - t->priv->original_mask = ephy_window_get_chrome (window); - t->priv->action_group = gtk_action_group_new ("PPViewActions"); gtk_action_group_set_translation_domain (t->priv->action_group, NULL); gtk_action_group_add_actions (t->priv->action_group, entries, @@ -384,7 +381,6 @@ toolbar_cmd_ppv_close (GtkUIManager *merge, { EphyWindow *window; EphyEmbed *embed; - GtkWidget *notebook; g_return_if_fail (EPHY_IS_PPVIEW_TOOLBAR (t)); @@ -394,12 +390,7 @@ toolbar_cmd_ppv_close (GtkUIManager *merge, embed = ephy_window_get_active_embed (window); g_return_if_fail (EPHY_IS_EMBED (embed)); - ephy_window_set_chrome (window, t->priv->original_mask); - - notebook = ephy_window_get_notebook (window); - g_return_if_fail (EPHY_IS_NOTEBOOK (notebook)); - - ephy_notebook_set_show_tabs (EPHY_NOTEBOOK (notebook), TRUE); + ephy_window_set_print_preview (window, FALSE); ephy_embed_print_preview_close (embed); } |