aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/settings-helper.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/settings-helper.c b/src/settings-helper.c
index b8f482f..55411da 100644
--- a/src/settings-helper.c
+++ b/src/settings-helper.c
@@ -51,31 +51,36 @@ build_settings (void) {
gboolean
supress_confirmations (void) {
- g_return_val_if_fail(build_settings(), FALSE);
+ gboolean settings_built = build_settings();
+ g_return_val_if_fail(settings_built, FALSE);
return g_settings_get_boolean (settings, SUPPRESS_KEY) ;
}
gboolean
should_show_user_menu (void) {
- g_return_val_if_fail(build_settings(), TRUE);
+ gboolean settings_built = build_settings();
+ g_return_val_if_fail(settings_built, TRUE);
return g_settings_get_boolean (settings, SHOW_USER_MENU) ;
}
gboolean
show_logout (void) {
- g_return_val_if_fail(build_settings(), TRUE);
+ gboolean settings_built = build_settings();
+ g_return_val_if_fail(settings_built, TRUE);
return !g_settings_get_boolean (settings, LOGOUT_KEY) ;
}
gboolean
show_restart (void) {
- g_return_val_if_fail(build_settings(), TRUE);
+ gboolean settings_built = build_settings();
+ g_return_val_if_fail(settings_built, TRUE);
return !g_settings_get_boolean (settings, RESTART_KEY) ;
}
gboolean
show_shutdown (void) {
- g_return_val_if_fail(build_settings(), TRUE);
+ gboolean settings_built = build_settings();
+ g_return_val_if_fail(settings_built, TRUE);
return !g_settings_get_boolean (settings, SHUTDOWN_KEY) ;
}