mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
wmaker: Added 'const' attribute to function 'GetShortcutString'
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
1c4ad880d1
commit
062ff99fac
@@ -733,16 +733,16 @@ static char *keysymToString(KeySym keysym, unsigned int state)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *GetShortcutString(char *text)
|
char *GetShortcutString(const char *shortcut)
|
||||||
{
|
{
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
char *k;
|
char *k;
|
||||||
int modmask = 0;
|
int modmask = 0;
|
||||||
/* KeySym ksym; */
|
/* KeySym ksym; */
|
||||||
int control = 0;
|
int control = 0;
|
||||||
char *tmp;
|
char *tmp, *text;
|
||||||
|
|
||||||
tmp = text = wstrdup(text);
|
tmp = text = wstrdup(shortcut);
|
||||||
|
|
||||||
/* get modifiers */
|
/* get modifiers */
|
||||||
while ((k = strchr(text, '+')) != NULL) {
|
while ((k = strchr(text, '+')) != NULL) {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ void SendHelperMessage(WScreen * scr, char type, int workspace, char *msg);
|
|||||||
char *ShrinkString(WMFont *font, const char *string, int width);
|
char *ShrinkString(WMFont *font, const char *string, int width);
|
||||||
char *FindImage(char *paths, char *file);
|
char *FindImage(char *paths, char *file);
|
||||||
char *ExpandOptions(WScreen * scr, char *cmdline);
|
char *ExpandOptions(WScreen * scr, char *cmdline);
|
||||||
char *GetShortcutString(char *text);
|
char *GetShortcutString(const char *text);
|
||||||
char *GetShortcutKey(WShortKey key);
|
char *GetShortcutKey(WShortKey key);
|
||||||
char *EscapeWM_CLASS(char *name, char *class);
|
char *EscapeWM_CLASS(char *name, char *class);
|
||||||
char *StrConcatDot(char *a, char *b);
|
char *StrConcatDot(char *a, char *b);
|
||||||
|
|||||||
Reference in New Issue
Block a user