[epiphany] ephy-shell: respect the lockdown quit setting
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: respect the lockdown quit setting
- Date: Wed, 11 Apr 2012 11:22:59 +0000 (UTC)
commit ff013df012c08044216250f38c79913cb196cbf4
Author: Rudolfs <rudolfs mazurus gmail com>
Date: Wed Apr 11 13:21:57 2012 +0200
ephy-shell: respect the lockdown quit setting
https://bugzilla.gnome.org/show_bug.cgi?id=673649
src/ephy-shell.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 290c5dc..21dd70d 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -246,8 +246,11 @@ quit_application (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
- ephy_session_close (EPHY_SESSION (ephy_shell_get_session (ephy_shell)));
- g_application_quit (g_application_get_default ());
+ if (!g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN,
+ EPHY_PREFS_LOCKDOWN_QUIT)) {
+ ephy_session_close (EPHY_SESSION (ephy_shell_get_session (ephy_shell)));
+ g_application_quit (g_application_get_default ());
+ }
}
static GActionEntry app_entries[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]