mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-12 03:35:52 +01:00
Renamed WMGetApplicationIconBlendedPixmap() to
WMCreateApplicationIconBlendedPixmap() to avoid confusion. This is because this function does generate a new WMPixmap from the available icon image by combining it with the specified color and you need to call WMReleasePixmap() on the generated pixmap after you're done with it. This is unlike the case of WMGetApplicationIconPixmap() where it just returns a pointer to the existing application icon pixmap that was set before and where you don't need to release it after you're done working with it. To avoid this confusion about when you need to release and when not, one is using Get (get existing, no release needed), while the other is now using Create (generate a new pixmap, release required) in their name. Since this change was made to a function that was just added to the API in the previous commit, no modification is needed to the existing applications that use WINGs.
This commit is contained in:
@@ -15,7 +15,7 @@ changes took place:
|
||||
2. The following functions were added:
|
||||
- WMSetApplicationIconImage(WMScreen *scr, RImage *image)
|
||||
- RImage* WMGetApplicationIconImage(WMScreen *scr)
|
||||
- WMPixmap* WMGetApplicationIconBlendedPixmap(WMScreen *scr, RColor *color)
|
||||
- WMPixmap* WMCreateApplicationIconBlendedPixmap(WMScreen *scr, RColor *col)
|
||||
|
||||
As you can see the old functions that operated on WMPixmap images (which are
|
||||
basically X Pixmaps that lack alpha information) were renamed to ...Pixmap()
|
||||
@@ -54,7 +54,7 @@ different icon to be shown in the appicon than in panels.
|
||||
|
||||
Also this new function was added:
|
||||
|
||||
- WMGetApplicationIconBlendedPixmap() will use the RImage set with
|
||||
- WMCreateApplicationIconBlendedPixmap() will use the RImage set with
|
||||
WMSetApplicationIconImage() if available and will blend it with the color
|
||||
you passed. This will make the image show well on a background of that
|
||||
color. If the RImage was not set it will return NULL. You need to call
|
||||
|
||||
Reference in New Issue
Block a user