From 8f182c2eb834b2397fa2e0b167d9b0ff85420f33 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 15 Mar 2013 20:29:36 +0100 Subject: Fix keybindings issue due to migration from MateConf Closes https://github.com/mate-desktop/mate-window-manager/issues/36 --- src/core/prefs.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/core') 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; } -- cgit v1.2.1