mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 17:02:33 +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:
@@ -38,8 +38,8 @@ Changes since wmaker 0.64.0:
|
||||
room for the new functions added for operating on images with alpha info.
|
||||
2. Added WMSetApplicationIconImage() and WMGetApplicationIconImage() which
|
||||
operate on an RImage and store alpha information too.
|
||||
3. Added WMGetApplicationIconBlendedPixmap() which will take the image with
|
||||
alpha set by WMSetApplicationIconImage() and will blend it with a color.
|
||||
3. Added WMCreateApplicationIconBlendedPixmap() which will take the image
|
||||
set by WMSetApplicationIconImage() and will combine it with a color.
|
||||
If color is NULL it will blend using the default panel color (#aeaaae)
|
||||
All these changes will allow WINGs to handle images with alpha blending
|
||||
correctly in panels and wherever else needed. More about in NEWS.
|
||||
|
||||
Reference in New Issue
Block a user