mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +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:
committed by
Carlos R. Mafra
parent
517cd6a8be
commit
391a8edb9c
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user