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  391a8edb9c39786014c62f3fec32bd9d126a7b19 (commit)
      from  517cd6a8bed6e7dc6210e7f61cf916e43293630d (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/391a8edb9c39786014c62f3fec32bd9d126a7b19

commit 391a8edb9c39786014c62f3fec32bd9d126a7b19
Author: Rodolfo García Peñas (kix) <[email protected]>
Date:   Wed Apr 4 16:04:09 2012 +0200

    Turn wApplication{Activate,Deactivate} into real functions
    
    The functions wApplicationActivate and wApplicationDeactivate are now 
defined
    as functions, not as preprocessor functions.

diff --git a/src/application.c b/src/application.c
index a9a308b..8a1e3bb 100644
--- a/src/application.c
+++ b/src/application.c
@@ -447,3 +447,24 @@ void wApplicationDestroy(WApplication * wapp)
        if (wPreferences.auto_arrange_icons)
                wArrangeIcons(scr, True);
 }
+
+void wApplicationActivate(WApplication *wapp)
+{
+#ifdef NEWAPPICON
+       if (wapp->app_icon) {
+               wIconSetHighlited(wapp->app_icon->icon, True);
+               wAppIconPaint(wapp->app_icon);
+       }
+#endif
+}
+
+void wApplicationDeactivate(WApplication *wapp)
+{
+#ifdef NEWAPPICON
+       if (wapp->app_icon) {
+               wIconSetHighlited(wapp->app_icon->icon, False);
+               wAppIconPaint(wapp->app_icon);
+       }
+#endif
+}
+
diff --git a/src/application.h b/src/application.h
index f866fef..31cbe68 100644
--- a/src/application.h
+++ b/src/application.h
@@ -55,23 +55,6 @@ void wApplicationSaveIconPathFor(char *iconPath, char 
*wm_instance,
 
 void wAppBounce(WApplication *);
 void wAppBounceWhileUrgent(WApplication *);
-
-#ifdef NEWAPPICON
-#define wApplicationActivate(wapp) do { -              if (wapp->app_icon) { - 
                wIconSetHighlited(wapp->app_icon->icon, True); -                
        wAppIconPaint(wapp->app_icon);-         } -     } while (0)
-#define wApplicationDeactivate(wapp) do { -            if (wapp->app_icon) { - 
                wIconSetHighlited(wapp->app_icon->icon, False); -               
        wAppIconPaint(wapp->app_icon);-         } -     } while (0)
-#else
-#define wApplicationActivate(wapp) do { } while (0)
-#define wApplicationDeactivate(wapp) do { } while (0)
-#endif /* NEWAPPICON */
-
+void wApplicationActivate(WApplication *);
+void wApplicationDeactivate(WApplication *);
 #endif

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

Summary of changes:
 src/application.c |   21 +++++++++++++++++++++
 src/application.h |   21 ++-------------------
 2 files changed, 23 insertions(+), 19 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