mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 08:22:37 +01:00
Icon: Make icon_create_for_* be more similar
The contents for searching the icon in wAppIconCreateForDock() are moved to icon_create_for_dock(). Now wAppIconCreateForDock() and wAppIconCreate() do the same work and icon_create_for_dock() and icon_create_for_wwindow() do the same work too. The procedure to create the icon is similar in both functions. Now wAppIconCreateForDock, needs more arguments (command, instance and class).
This commit is contained in:
committed by
Carlos R. Mafra
parent
97f74548ef
commit
727b25d947
@@ -54,7 +54,7 @@ typedef struct WIcon {
|
||||
* color */
|
||||
} WIcon;
|
||||
|
||||
WIcon *icon_create_for_dock(WScreen *scr, char *iconfile, int tile);
|
||||
WIcon *icon_create_for_dock(WScreen *scr, char *command, char *wm_instance, char *wm_class, int tile);
|
||||
WIcon *icon_create_for_wwindow(WWindow *wwin);
|
||||
|
||||
void wIconDestroy(WIcon *icon);
|
||||
|
||||
Reference in New Issue
Block a user