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  ef659ca1fb6f8c442a9b51754b695d8d5fdb423f (commit)
       via  6b5e589d096fb783da93578ba40723fbf4ca282c (commit)
      from  162cca286dbe1dbd100b94d5f1dc18903c028596 (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/ef659ca1fb6f8c442a9b51754b695d8d5fdb423f

commit ef659ca1fb6f8c442a9b51754b695d8d5fdb423f
Author: David Maciejak <[email protected]>
Date:   Thu Aug 21 06:44:15 2014 +0700

    wmaker: fix src/dock.c code typo
    
    This patch is renaming the colectIconsCallback name function.

diff --git a/src/dock.c b/src/dock.c
index 6144c75d..e8372807 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -639,7 +639,7 @@ static void selectCallback(WMenu *menu, WMenuEntry *entry)
        wMenuPaint(menu);
 }
 
-static void colectIconsCallback(WMenu *menu, WMenuEntry *entry)
+static void attractIconsCallback(WMenu *menu, WMenuEntry *entry)
 {
        WAppIcon *clickedIcon = (WAppIcon *) entry->clientdata;
        WDock *clip; /* clip... is a WM_CLIP or a WM_DRAWER */
@@ -1271,7 +1271,7 @@ static WMenu *dockMenuCreate(WScreen *scr, int type)
                wfree(entry->text);
                entry->text = _("Remove Icon"); /* can be: Remove Icons */
 
-               wMenuAddCallback(menu, _("Attract Icons"), colectIconsCallback, 
NULL);
+               wMenuAddCallback(menu, _("Attract Icons"), 
attractIconsCallback, NULL);
        }
 
        wMenuAddCallback(menu, _("Launch"), launchCallback, NULL);

http://repo.or.cz/w/wmaker-crm.git/commit/6b5e589d096fb783da93578ba40723fbf4ca282c

commit 6b5e589d096fb783da93578ba40723fbf4ca282c
Author: David Maciejak <[email protected]>
Date:   Thu Aug 21 06:26:49 2014 +0700

    wmaker: update docked application balloon text
    
    This patch is displaying the number of application instance
    run directly in the balloon text (and I also run checkpatch.pl).

diff --git a/src/balloon.c b/src/balloon.c
index 22b11604..f2c6a816 100644
--- a/src/balloon.c
+++ b/src/balloon.c
@@ -72,10 +72,10 @@ typedef struct _WBalloon {
 #define LEFT   0
 #define RIGHT  2
 
-#define TLEFT  (TOP|LEFT)
-#define TRIGHT         (TOP|RIGHT)
-#define BLEFT  (BOTTOM|LEFT)
-#define BRIGHT (BOTTOM|RIGHT)
+#define TLEFT (TOP|LEFT)
+#define TRIGHT (TOP|RIGHT)
+#define BLEFT (BOTTOM|LEFT)
+#define BRIGHT (BOTTOM|RIGHT)
 
 static int countLines(const char *text)
 {
@@ -90,7 +90,7 @@ static int countLines(const char *text)
        return h;
 }
 
-static int getMaxStringWidth(WMFont * font, const char *text)
+static int getMaxStringWidth(WMFont *font, const char *text)
 {
        const char *p = text;
        const char *pb = p;
@@ -117,8 +117,7 @@ static int getMaxStringWidth(WMFont * font, const char 
*text)
        return w;
 }
 
-static void
-drawMultiLineString(WMScreen * scr, Pixmap pixmap, WMColor * color,
+static void drawMultiLineString(WMScreen *scr, Pixmap pixmap, WMColor *color,
                    WMFont *font, int x, int y, const char *text, int len)
 {
        const char *p = text;
@@ -137,16 +136,15 @@ drawMultiLineString(WMScreen * scr, Pixmap pixmap, 
WMColor * color,
                }
                p++;
        }
-       if (pos > 0) {
+       if (pos > 0)
                WMDrawString(scr, pixmap, color, font, x, y + l * height, pb, 
pos);
-       }
 }
 
 #ifdef SHAPED_BALLOON
 
-#define        SPACE   12
+#define SPACE 12
 
-static void drawBalloon(WScreen * scr, Pixmap bitmap, Pixmap pix, int x, int 
y, int w, int h, int side)
+static void drawBalloon(WScreen *scr, Pixmap bitmap, Pixmap pix, int x, int y, 
int w, int h, int side)
 {
        GC bgc = scr->balloon->monoGC;
        GC gc = scr->draw_gc;
@@ -236,7 +234,7 @@ static void drawBalloon(WScreen * scr, Pixmap bitmap, 
Pixmap pix, int x, int y,
        XDrawLines(dpy, pix, gc, pt, 3, CoordModeOrigin);
 }
 
-static Pixmap makePixmap(WScreen * scr, int width, int height, int side, 
Pixmap * mask)
+static Pixmap makePixmap(WScreen *scr, int width, int height, int side, Pixmap 
*mask)
 {
        WBalloon *bal = scr->balloon;
        Pixmap bitmap;
@@ -245,9 +243,9 @@ static Pixmap makePixmap(WScreen * scr, int width, int 
height, int side, Pixmap
 
        bitmap = XCreatePixmap(dpy, scr->root_win, width + SPACE, height + 
SPACE, 1);
 
-       if (!bal->monoGC) {
+       if (!bal->monoGC)
                bal->monoGC = XCreateGC(dpy, bitmap, 0, NULL);
-       }
+
        XSetForeground(dpy, bal->monoGC, 0);
        XFillRectangle(dpy, bitmap, bal->monoGC, 0, 0, width + SPACE, height + 
SPACE);
 
@@ -255,11 +253,10 @@ static Pixmap makePixmap(WScreen * scr, int width, int 
height, int side, Pixmap
        XSetForeground(dpy, scr->draw_gc, scr->black_pixel);
        XFillRectangle(dpy, pixmap, scr->draw_gc, 0, 0, width + SPACE, height + 
SPACE);
 
-       if (side & BOTTOM) {
+       if (side & BOTTOM)
                y = 0;
-       } else {
+       else
                y = SPACE;
-       }
        x = 0;
 
        drawBalloon(scr, bitmap, pixmap, x, y, width, height, side);
@@ -444,7 +441,7 @@ static void showApercu(WScreen *scr, int x, int y, int 
height, int width, char *
        scr->balloon->mapped = 1;
 }
 
-static void showBalloon(WScreen * scr)
+static void showBalloon(WScreen *scr)
 {
        int x, y;
        Window foow;
@@ -460,13 +457,14 @@ static void showBalloon(WScreen * scr)
 
        if (wPreferences.miniwin_apercu_balloon && scr->balloon->apercu != None)
                /* used to display either the apercu alone or the apercu and 
the title */
-               showApercu(scr, x, y, (wPreferences.icon_size - 1) * 
wPreferences.apercu_size, (wPreferences.icon_size - 1) * 
wPreferences.apercu_size,
+               showApercu(scr, x, y, (wPreferences.icon_size - 1) * 
wPreferences.apercu_size,
+                                       (wPreferences.icon_size - 1) * 
wPreferences.apercu_size,
                                        scr->balloon->text, 
scr->balloon->apercu);
        else
                showText(scr, x, y, scr->balloon->h, w, scr->balloon->text);
 }
 
-static void frameBalloon(WObjDescriptor * object)
+static void frameBalloon(WObjDescriptor *object)
 {
        WFrameWindow *fwin = (WFrameWindow *) object->parent;
        WScreen *scr = fwin->core->screen_ptr;
@@ -483,7 +481,7 @@ static void frameBalloon(WObjDescriptor * object)
        }
 }
 
-static void miniwindowBalloon(WObjDescriptor * object)
+static void miniwindowBalloon(WObjDescriptor *object)
 {
        WIcon *icon = (WIcon *) object->parent;
        WScreen *scr = icon->core->screen_ptr;
@@ -522,22 +520,43 @@ static void appiconBalloon(WObjDescriptor *object)
                }
        } else if (aicon->command && aicon->wm_class) {
                int len;
-                /* Check to see if it is a GNUstep app */
+               WApplication *app;
+               unsigned int app_win_cnt = 0;
+
+               if (object->parent_type == WCLASS_DOCK_ICON) {
+                       if (aicon->main_window) {
+                               app = wApplicationOf(aicon->main_window);
+                               if (app && app->main_window_desc && 
app->main_window_desc->fake_group)
+                                       app_win_cnt = 
app->main_window_desc->fake_group->retainCount - 1;
+                       }
+               }
+
+               /* 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;
+
+               if (app_win_cnt > 0)
+                       len += 1 + snprintf(NULL, 0, "%u", app_win_cnt);
+
                tmp = wmalloc(len);
-                /* Check to see if it is a GNUstep App */
+               /* 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);
+                       if (app_win_cnt > 0)
+                               snprintf(tmp, len, "%u %sn(%s)", app_win_cnt, 
aicon->wm_instance, aicon->command);
+                       else
+                               snprintf(tmp, len, "%sn(%s)", 
aicon->wm_instance, aicon->command);
                else
-                       snprintf(tmp, len, "%sn(%s)", aicon->wm_class, 
aicon->command);
+                       if (app_win_cnt > 0)
+                               snprintf(tmp, len, "%u %sn(%s)", app_win_cnt, 
aicon->wm_class, 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) {
-                /* Check to see if it is a GNUstep App */
+               /* Check to see if it is a GNUstep App */
                if (strcmp(aicon->wm_class, "GNUstep") == 0)
                        scr->balloon->text = wstrdup(aicon->wm_instance);
                else
@@ -558,7 +577,7 @@ static void appiconBalloon(WObjDescriptor *object)
        }
 }
 
-void wBalloonInitialize(WScreen * scr)
+void wBalloonInitialize(WScreen *scr)
 {
        WBalloon *bal;
        XSetWindowAttributes attribs;
@@ -584,7 +603,7 @@ void wBalloonInitialize(WScreen * scr)
 #endif
 }
 
-void wBalloonEnteredObject(WScreen * scr, WObjDescriptor * object)
+void wBalloonEnteredObject(WScreen *scr, WObjDescriptor *object)
 {
        WBalloon *balloon = scr->balloon;
 
@@ -630,7 +649,7 @@ void wBalloonEnteredObject(WScreen * scr, WObjDescriptor * 
object)
        scr->balloon->prevType = object->parent_type;
 }
 
-void wBalloonHide(WScreen * scr)
+void wBalloonHide(WScreen *scr)
 {
        if (scr) {
                if (scr->balloon->mapped) {

-----------------------------------------------------------------------

Summary of changes:
 src/balloon.c |   77 +++++++++++++++++++++++++++++++++++---------------------
 src/dock.c    |    4 +-
 2 files changed, 50 insertions(+), 31 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].

Reply via email to