diff options
author | Stefano Karapetsas <[email protected]> | 2013-03-15 20:29:36 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-03-15 20:29:36 +0100 |
commit | 8f182c2eb834b2397fa2e0b167d9b0ff85420f33 (patch) | |
tree | 41a306774ddcbbff97d92979450ed2d655c99213 | |
parent | c6edc7df4d957c9cf56c1e80d7f7f597ad3df71c (diff) | |
download | marco-8f182c2eb834b2397fa2e0b167d9b0ff85420f33.tar.bz2 marco-8f182c2eb834b2397fa2e0b167d9b0ff85420f33.tar.xz |
Fix keybindings issue due to migration from MateConf
Closes https://github.com/mate-desktop/mate-window-manager/issues/36
-rw-r--r-- | src/core/prefs.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c index a3c24132..2ec6134f 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -1804,11 +1804,11 @@ update_command (const char *name, char *p; int i; - p = strrchr (name, '_'); + p = strrchr (name, '-'); if (p == NULL) { meta_topic (META_DEBUG_KEYBINDINGS, - "Command %s has no underscore?\n", name); + "Command %s has no dash?\n", name); return FALSE; } @@ -1821,14 +1821,11 @@ update_command (const char *name, } else { - p = strrchr (name, '/'); - ++p; - - if (strcmp (p, "command_screenshot") == 0) + if (strcmp (name, "command-screenshot") == 0) { i = SCREENSHOT_COMMAND_IDX; } - else if (strcmp (p, "command_window_screenshot") == 0) + else if (strcmp (name, "command-window-screenshot") == 0) { i = WIN_SCREENSHOT_COMMAND_IDX; } |