1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Turn wApplication{Activate,Deactivate} into real functions

The functions wApplicationActivate and wApplicationDeactivate are now defined
as functions, not as preprocessor functions.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-04-04 16:04:09 +02:00
committed by Carlos R. Mafra
parent 517cd6a8be
commit 391a8edb9c
2 changed files with 23 additions and 19 deletions

View File

@@ -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