mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Display app name in ballon help of GNUstep apps
Make the balloon help of GNUstep apps' appicons show the app name instead of GNUstep.
This commit is contained in:
committed by
Carlos R. Mafra
parent
278bf5ee7e
commit
267496c54c
@@ -447,14 +447,27 @@ static void appiconBalloon(WObjDescriptor * object)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (aicon->command && aicon->wm_class) {
|
} else if (aicon->command && aicon->wm_class) {
|
||||||
int len = strlen(aicon->command) + strlen(aicon->wm_class) + 8;
|
int len;
|
||||||
|
/* Check to see if it is a GNUstep app */
|
||||||
|
if (strcmp(aicon->wm_class, "GNUstep") == 0)
|
||||||
|
len = strlen(aicon->command) + strlen(aicon->wm_instance) + 8;
|
||||||
|
else
|
||||||
|
len = strlen(aicon->command) + strlen(aicon->wm_class) + 8;
|
||||||
tmp = wmalloc(len);
|
tmp = wmalloc(len);
|
||||||
snprintf(tmp, len, "%s\n(%s)", aicon->wm_class, aicon->command);
|
/* Check to see if it is a GNUstep App */
|
||||||
|
if (strcmp(aicon->wm_class, "GNUstep") == 0)
|
||||||
|
snprintf(tmp, len, "%s\n(%s)", aicon->wm_instance, aicon->command);
|
||||||
|
else
|
||||||
|
snprintf(tmp, len, "%s\n(%s)", aicon->wm_class, aicon->command);
|
||||||
scr->balloon->text = tmp;
|
scr->balloon->text = tmp;
|
||||||
} else if (aicon->command) {
|
} else if (aicon->command) {
|
||||||
scr->balloon->text = wstrdup(aicon->command);
|
scr->balloon->text = wstrdup(aicon->command);
|
||||||
} else if (aicon->wm_class) {
|
} else if (aicon->wm_class) {
|
||||||
scr->balloon->text = wstrdup(aicon->wm_class);
|
/* Check to see if it is a GNUstep App */
|
||||||
|
if (strcmp(aicon->wm_class, "GNUstep") == 0)
|
||||||
|
scr->balloon->text = wstrdup(aicon->wm_instance);
|
||||||
|
else
|
||||||
|
scr->balloon->text = wstrdup(aicon->wm_class);
|
||||||
} else {
|
} else {
|
||||||
wBalloonHide(scr);
|
wBalloonHide(scr);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user