aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-19 15:09:41 -0500
committerTed Gould <ted@gould.cx>2011-08-19 15:09:41 -0500
commit5f9aa6649c58d953c3a09f3f23ea9a27d9160fec (patch)
tree293e5c6be06108959e87da16c337accb563649f6 /src
parentcc42b03433dd3784a85780c8b10113c1a1b66f68 (diff)
parent09514f45d0ab63579ce97faf07cbc0a79e981465 (diff)
downloadayatana-indicator-session-5f9aa6649c58d953c3a09f3f23ea9a27d9160fec.tar.gz
ayatana-indicator-session-5f9aa6649c58d953c3a09f3f23ea9a27d9160fec.tar.bz2
ayatana-indicator-session-5f9aa6649c58d953c3a09f3f23ea9a27d9160fec.zip
* Upstream Merge
* GSettings Fixes
Diffstat (limited to 'src')
-rw-r--r--src/settings-helper.h14
-rw-r--r--src/user-menu-mgr.c2
2 files changed, 8 insertions, 8 deletions
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 <http://www.gnu.org/licenses/>.
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-glib/menuitem.h>
-#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"
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;
}