aboutsummaryrefslogtreecommitdiff
path: root/src/settings-helper.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-09-06 16:52:08 +0100
committerConor Curran <conor.curran@canonical.com>2011-09-06 16:52:08 +0100
commitcf5f3639b23ba4e2bd12fd4b987e67f7a3b3b1d4 (patch)
tree1ba8ceb912454d0140e601b65656d83d78604cfa /src/settings-helper.c
parent12f76de565f5af5d9d946d4ebc43b195c34bbea2 (diff)
downloadayatana-indicator-session-cf5f3639b23ba4e2bd12fd4b987e67f7a3b3b1d4.tar.gz
ayatana-indicator-session-cf5f3639b23ba4e2bd12fd4b987e67f7a3b3b1d4.tar.bz2
ayatana-indicator-session-cf5f3639b23ba4e2bd12fd4b987e67f7a3b3b1d4.zip
live cd user should now be turned off via new gsettings entry by casper
Diffstat (limited to 'src/settings-helper.c')
-rw-r--r--src/settings-helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings-helper.c b/src/settings-helper.c
index 5a69d17..d70df95 100644
--- a/src/settings-helper.c
+++ b/src/settings-helper.c
@@ -53,6 +53,12 @@ supress_confirmations (void) {
}
gboolean
+should_show_user_menu (void) {
+ build_settings();
+ return g_settings_get_boolean (settings, SHOW_USER_MENU) ;
+}
+
+gboolean
show_logout (void) {
build_settings();
return !g_settings_get_boolean (settings, LOGOUT_KEY) ;