mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 06:38:05 +01:00
Simplify the application appicon creation
This patch removes all the appicon stuff from the application creation to the appicon creation. Now, the application only calls one function (create_appicon_for_application()) and this function do all the work. The function do the same code than the code before this patch, but the only change is that the "if" test to check if the appicon was found in the docks now is negated, removing the return and doing the appicon_save inside the function. Finally, the old makeAppIconFor is now create_appicon_for_application().
This commit is contained in:
committed by
Carlos R. Mafra
parent
97d7c32184
commit
70c9208e40
@@ -72,11 +72,10 @@ typedef struct WAppIcon {
|
||||
WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance,
|
||||
char *wm_class, int tile);
|
||||
|
||||
void create_appicon_from_dock(WWindow *wwin, WApplication *wapp, Window main_window);
|
||||
void wAppIconDestroy(WAppIcon *aicon);
|
||||
void wAppIconPaint(WAppIcon *aicon);
|
||||
void wAppIconMove(WAppIcon *aicon, int x, int y);
|
||||
void makeAppIconFor(WApplication * wapp);
|
||||
void create_appicon_for_application(WApplication *wapp, WWindow *wwin);
|
||||
void removeAppIconFor(WApplication * wapp);
|
||||
void save_appicon(WAppIcon *aicon, Bool dock);
|
||||
void paint_app_icon(WApplication *wapp);
|
||||
|
||||
Reference in New Issue
Block a user