From 4ee9a5748d7d69f3194325a9f020d1fc50bfb22b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 19 Aug 2011 15:09:03 -0500 Subject: Fixing key names --- src/settings-helper.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/settings-helper.h b/src/settings-helper.h index 72d2111..7b377ca 100644 --- a/src/settings-helper.h +++ b/src/settings-helper.h @@ -31,15 +31,15 @@ with this program. If not, see . #include #include -#define SESSION_SCHEMA "org.canonical.indicator.session" -#define SUPPRESS_KEY "suppress_logout_restart_shutdown" -#define LOGOUT_KEY "suppress_logout_menuitem" -#define RESTART_KEY "suppress_restart_menuitem" -#define SHUTDOWN_KEY "suppress_shutdown_menuitem" +#define SESSION_SCHEMA "com.canonical.indicator.session" +#define SUPPRESS_KEY "suppress-logout-restart-shutdown" +#define LOGOUT_KEY "suppress-logout-menuitem" +#define RESTART_KEY "suppress-restart-menuitem" +#define SHUTDOWN_KEY "suppress-shutdown-menuitem" #define LOCKDOWN_SCHEMA "org.gnome.desktop.lockdown" -#define LOCKDOWN_KEY_USER "disable_user_switching" -#define LOCKDOWN_KEY_SCREENSAVER "disable_lock_screen" +#define LOCKDOWN_KEY_USER "disable-user-switching" +#define LOCKDOWN_KEY_SCREENSAVER "disable-lock-screen" #define KEYBINDING_SCHEMA "org.gnome.settings-daemon.plugins.media-keys" #define KEY_LOCK_SCREEN "screensaver" -- cgit v1.2.3 From 09514f45d0ab63579ce97faf07cbc0a79e981465 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 19 Aug 2011 15:09:11 -0500 Subject: Using the right schema --- src/user-menu-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c index 718380c..30ea0ff 100644 --- a/src/user-menu-mgr.c +++ b/src/user-menu-mgr.c @@ -376,7 +376,7 @@ static void ensure_settings_client () { if(!settings) { - settings = g_settings_new (SESSION_SCHEMA); + settings = g_settings_new (LOCKDOWN_SCHEMA); } return; } -- cgit v1.2.3