aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-08-08 04:51:19 +0800
committerChristian Persch <chpe@src.gnome.org>2006-08-08 04:51:19 +0800
commit16102f63ad820a9e7f339034b544028db2b31f04 (patch)
tree032d48ccdb898e4bcbb4b47b760b859ef172a8a7 /src
parent71e7e75a6a93eab0accfef5fee86311c6755714d (diff)
downloadgsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.gz
gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.zst
gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.zip
Don't allow closing the window if quit is locked down. Patch by Diego
2006-08-07 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: Don't allow closing the window if quit is locked down. Patch by Diego Escalante Urrelo, bug #320091.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 10c2ce1da..d7722a0be 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -911,6 +911,10 @@ ephy_window_delete_event (GtkWidget *widget,
GList *tabs, *l;
gboolean modified = FALSE;
+ /* We ignore the delete_event if the disable_quit lockdown has been set
+ */
+ if (eel_gconf_get_boolean("/apps/epiphany/lockdown/disable_quit")) return TRUE;
+
/* Workaround a crash when closing a window while in print preview mode. See
* mozilla bug #241809. /
* Go back to normal mode instead of closing, see bug #326136.