aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-26 23:06:42 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-26 23:06:42 +0800
commit2e4b61c8058d7405812277b2ac88f37ae642cbf8 (patch)
treeca52c37e20c2fa3cff0f28ffb7fa80029886f339 /src/ephy-window.c
parentf4052ebd5b307db9adf77f8e61a6badf39c4a7af (diff)
downloadgsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar.gz
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar.bz2
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar.lz
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar.xz
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.tar.zst
gsoc2013-epiphany-2e4b61c8058d7405812277b2ac88f37ae642cbf8.zip
Don't show the Leave Fullscreen button in lockdown fullscreen mode. Switch
2005-01-26 Christian Persch <chpe@cvs.gnome.org> * src/ephy-fullscreen-popup.c: (ephy_fullscreen_popup_update_visibility), (ephy_fullscreen_popup_set_show_leave), (ephy_fullscreen_popup_init): * src/ephy-fullscreen-popup.h: * src/ephy-toolbar.c: (ephy_toolbar_update_fixed_visibility), (ephy_toolbar_set_show_leave_fullscreen): * src/ephy-toolbar.h: * src/ephy-window.c: (ephy_window_fullscreen), (ephy_window_unfullscreen): Don't show the Leave Fullscreen button in lockdown fullscreen mode. Switch to fullscreen toolbar also in lockdown fullscreen mode. Fixes bug #165256.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index bd97d29e2..9b58668db 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -561,18 +561,15 @@ ephy_window_fullscreen (EphyWindow *window)
{
GtkWidget *popup;
EphyTab *tab;
+ gboolean lockdown_fs;
window->priv->fullscreen_mode = TRUE;
- sync_chromes_visibility (window);
-
- if (eel_gconf_get_boolean (CONF_LOCKDOWN_FULLSCREEN))
- {
- /* no need to show "exit fullscreen" button */
- return;
- }
+ lockdown_fs = eel_gconf_get_boolean (CONF_LOCKDOWN_FULLSCREEN);
popup = ephy_fullscreen_popup_new (window);
+ ephy_fullscreen_popup_set_show_leave
+ (EPHY_FULLSCREEN_POPUP (popup), !lockdown_fs);
window->priv->fullscreen_popup = popup;
g_signal_connect_swapped (popup, "exit-clicked",
G_CALLBACK (exit_fullscreen_clicked_cb), window);
@@ -582,17 +579,15 @@ ephy_window_fullscreen (EphyWindow *window)
sync_tab_load_status (tab, NULL, window);
sync_tab_security (tab, NULL, window);
- if (get_toolbar_visibility (window) == FALSE)
- {
- gtk_widget_show (popup);
- }
-
egg_editable_toolbar_set_model
(EGG_EDITABLE_TOOLBAR (window->priv->toolbar),
EGG_TOOLBARS_MODEL (
ephy_shell_get_toolbars_model (ephy_shell, TRUE)));
- ephy_toolbar_set_fullscreen_mode (window->priv->toolbar, TRUE);
+ ephy_toolbar_set_show_leave_fullscreen (window->priv->toolbar,
+ !lockdown_fs);
+
+ sync_chromes_visibility (window);
}
static void
@@ -602,7 +597,7 @@ ephy_window_unfullscreen (EphyWindow *window)
destroy_fullscreen_popup (window);
- ephy_toolbar_set_fullscreen_mode (window->priv->toolbar, FALSE);
+ ephy_toolbar_set_show_leave_fullscreen (window->priv->toolbar, FALSE);
egg_editable_toolbar_set_model
(EGG_EDITABLE_TOOLBAR (window->priv->toolbar),