diff options
author | Allan LeSage <allanlesage@gmail.com> | 2012-03-28 17:29:05 -0500 |
---|---|---|
committer | Allan LeSage <allanlesage@gmail.com> | 2012-03-28 17:29:05 -0500 |
commit | affff0009831fc4765ba023ce044ca4d79ac0842 (patch) | |
tree | 42ae46b52973669c40016b1df7aa69c37a4bd4f3 /src/device-menu-mgr.c | |
parent | d9416f4f284c401b8848e4bd249fd5cbd25142c3 (diff) | |
parent | 80f29374f243cd53e53bf662a0017cd4088d238a (diff) | |
download | ayatana-indicator-session-affff0009831fc4765ba023ce044ca4d79ac0842.tar.gz ayatana-indicator-session-affff0009831fc4765ba023ce044ca4d79ac0842.tar.bz2 ayatana-indicator-session-affff0009831fc4765ba023ce044ca4d79ac0842.zip |
Merged from trunk.
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r-- | src/device-menu-mgr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c index cfdb55d..d081937 100644 --- a/src/device-menu-mgr.c +++ b/src/device-menu-mgr.c @@ -166,11 +166,12 @@ keybinding_changed (GSettings *settings, } if (g_strcmp0 (key, KEY_LOCK_SCREEN) == 0) { - g_debug("Keybinding changed to: %s", g_settings_get_string(settings, key)); + gchar * val = g_settings_get_string(settings, key); + g_debug("Keybinding changed to: %s", val); if (lock_menuitem != NULL) { - dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem, - g_settings_get_string(settings, key)); + dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem, val); } + g_free (val); } return; } |