Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37840164
en ru br
ALT Linux repos
S:1.26.2-alt1

Group :: Graphical desktop/MATE
RPM: mate-window-manager

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mate-window-manager-keybindings.patch
Download


diff --git a/src/core/prefs.c b/src/core/prefs.c
index a3c2413..2ec6134 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;
         }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin