mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 00:42:32 +01:00
New function set_icon_image_from_image
The new function set_icon_image_from_image() sets the icon image using a image provided as argument. This function will be used to avoid call wIconUpdate() with the image argument, doing the code easier and faster. This patch calls unset_icon_image(), to free the icon image, to avoid lost memory. After this patch, in winspector.c, the wIconUpdate() call don't free the memory before update it.
This commit is contained in:
committed by
Carlos R. Mafra
parent
389a0a252c
commit
c088aba057
@@ -73,5 +73,6 @@ char *wIconStore(WIcon *icon);
|
||||
char *get_name_for_instance_class(char *wm_instance, char *wm_class);
|
||||
|
||||
void wIconSetHighlited(WIcon *icon, Bool flag);
|
||||
void set_icon_image_from_image(WIcon *icon, RImage *image);
|
||||
|
||||
#endif /* WMICON_H_ */
|
||||
|
||||
Reference in New Issue
Block a user