mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-25 00:35:45 +01:00
WPrefs: fix keyboard shortcut sorting order
That patch is fixing some Actions entries that are not sorted properly. One is using some upper/lower cases. And the other one, is displaying numbers while alphabetic sorting is not working properly on numbers. For example: Shortcut for window 1 Shortcut for window 10 Shortcut for window 2 ...
This commit is contained in:
committed by
Carlos R. Mafra
parent
18a539b372
commit
91e7f37074
@@ -154,7 +154,7 @@ static struct keyOption {
|
||||
|
||||
/* Misc. */
|
||||
{ "WindowRelaunchKey", N_("Launch new instance of application") },
|
||||
{ "ScreenSwitchKey", N_("Switch to Next Screen/Monitor") },
|
||||
{ "ScreenSwitchKey", N_("Switch to next screen/monitor") },
|
||||
{ "RunKey", N_("Run application") },
|
||||
{ "ExitKey", N_("Exit Window Maker") },
|
||||
{ "DockRaiseLowerKey", N_("Raise/Lower Dock") },
|
||||
@@ -550,7 +550,7 @@ static int cmpKeyOptions(const void *v1, const void *v2)
|
||||
const struct keyOption *opt1 = (struct keyOption *)v1;
|
||||
const struct keyOption *opt2 = (struct keyOption *)v2;
|
||||
|
||||
if ((rc = strcmp(opt1->title, opt2->title)) < 0)
|
||||
if ((rc = strncmp(opt1->title, opt2->title, 20)) < 0)
|
||||
return -1;
|
||||
else if (rc > 0)
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user