From 16102f63ad820a9e7f339034b544028db2b31f04 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 7 Aug 2006 20:51:19 +0000 Subject: Don't allow closing the window if quit is locked down. Patch by Diego 2006-08-07 Christian Persch * src/ephy-window.c: Don't allow closing the window if quit is locked down. Patch by Diego Escalante Urrelo, bug #320091. --- src/ephy-window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ephy-window.c') 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. -- cgit v1.2.3