This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.
The branch, next has been updated
via 267496c54c5c1304a690a47eaee5e73fbdacf19f (commit)
from 278bf5ee7ed593c81622b0efe5ac5ec9ec139013 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/267496c54c5c1304a690a47eaee5e73fbdacf19f
commit 267496c54c5c1304a690a47eaee5e73fbdacf19f
Author: Charles Philip Chan <[email protected]>
Date: Tue Sep 10 17:49:37 2013 -0400
Display app name in ballon help of GNUstep apps
Make the balloon help of GNUstep apps' appicons show the app name
instead of GNUstep.
diff --git a/src/balloon.c b/src/balloon.c
index e2c294a..ffd84b2 100644
--- a/src/balloon.c
+++ b/src/balloon.c
@@ -447,14 +447,27 @@ static void appiconBalloon(WObjDescriptor * object)
return;
}
} 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);
- snprintf(tmp, len, "%sn(%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, "%sn(%s)", aicon->wm_instance,
aicon->command);
+ else
+ snprintf(tmp, len, "%sn(%s)", aicon->wm_class,
aicon->command);
scr->balloon->text = tmp;
} else if (aicon->command) {
scr->balloon->text = wstrdup(aicon->command);
} 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 {
wBalloonHide(scr);
return;
-----------------------------------------------------------------------
Summary of changes:
src/balloon.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")
--
To unsubscribe, send mail to [email protected].