aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-07-19 16:27:06 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-07-19 16:27:06 +0800
commita43be88202d423307d4612e444e984cea45f6d99 (patch)
tree42f7050cc5cb0e090f4e2672c94089d19dfeef3e /src/window-commands.c
parentc12a362e88752a1c26c79a830c12ff5a254a66c2 (diff)
downloadgsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar.gz
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar.bz2
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar.lz
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar.xz
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.tar.zst
gsoc2013-epiphany-a43be88202d423307d4612e444e984cea45f6d99.zip
Add disable_quit, disable_new_window, first_window_fullscreen lockdown
2004-07-19 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-prefs.h: * src/ephy-shell.c: (ephy_shell_new_tab): * src/ephy-window.c: (ephy_window_fullscreen), (ephy_window_unfullscreen), (update_actions_sensitivity), (tab_detached_cb), (tab_delete_cb), (ephy_window_init): * src/window-commands.c: (window_cmd_file_new_window), (window_cmd_file_close_window): Add disable_quit, disable_new_window, first_window_fullscreen lockdown options.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 38724702f..1562d1b7f 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -286,7 +286,7 @@ window_cmd_file_new_window (GtkAction *action,
tab = ephy_window_get_active_tab (window);
g_return_if_fail (tab != NULL);
- ephy_shell_new_tab (ephy_shell, NULL, tab, NULL,
+ ephy_shell_new_tab (ephy_shell, window, tab, NULL,
EPHY_NEW_TAB_NEW_PAGE |
EPHY_NEW_TAB_IN_NEW_WINDOW);
}
@@ -451,6 +451,12 @@ window_cmd_file_close_window (GtkAction *action,
{
EphyTab *tab;
+ if (eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_QUIT) &&
+ gtk_notebook_get_n_pages (GTK_NOTEBOOK (ephy_window_get_notebook (window))) == 1)
+ {
+ return;
+ }
+
tab = ephy_window_get_active_tab (window);
g_return_if_fail (tab != NULL);