mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 06:38:05 +01:00
wDefaultGetImage splitted
The function wDefaultGetImage() is splitted in two: 1. get_default_icon_filename(): This function returns the full path of an icon. The function searches the icon in the database using instance and class. 2. get_default_icon_rimage(): This function returns the RImage for a given image path (full path). This function validates the icon size, so the icon is fully usable. The function get_default_icon_filename() now adds the .app icons in the search (using wApplicationExtractDirPackIcon()). To do it, the command should be included, because this function searches '"command".app' icons. Setting the command to NULL, this case is not used. To do it we need the function wApplicationExtractDirPackIcon() defined at appicon.c, so we need set the function as non-static and provide their prototype in appicon.h. This patch also includes an extra pointer check at wDefaultGetStartWorkspace to make sure that WDWindowAttributes exists.
This commit is contained in:
committed by
Carlos R. Mafra
parent
f5d845cfad
commit
76e8a8f963
@@ -80,4 +80,6 @@ void makeAppIconFor(WApplication * wapp);
|
||||
void removeAppIconFor(WApplication * wapp);
|
||||
void save_appicon(WAppIcon *aicon, Bool dock);
|
||||
void paint_app_icon(WApplication *wapp);
|
||||
void wApplicationExtractDirPackIcon(WScreen * scr, char *path, char *wm_instance,
|
||||
char *wm_class);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user