diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-08-08 04:51:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-08-08 04:51:19 +0800 |
commit | 16102f63ad820a9e7f339034b544028db2b31f04 (patch) | |
tree | 032d48ccdb898e4bcbb4b47b760b859ef172a8a7 /src | |
parent | 71e7e75a6a93eab0accfef5fee86311c6755714d (diff) | |
download | gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.gz gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.bz2 gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.lz gsoc2013-epiphany-16102f63ad820a9e7f339034b544028db2b31f04.tar.xz 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.c | 4 |
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. |