Hi,

more icon patches, again.

The aim of this patches is get a better icon aspect. If you run "xfig", you 
will see that the icon is so big, and then the appicon, dock icon,... don't 
have the frame. The same problem is in the switchpanel. Other problem is that 
some code in the switchpanel is not used, and can be removed.

The first patch, only do a switchpanel.c file clean. No more.

The second patch, moves the code for the default icon cache to a new function 
(create_default_icon). As we will see later, this code is not needed, and can 
be removed, but I split it in two patches. With this patch, the code is clear 
in addIconForWindow()

The third patch show that the default icon is never used, because the 
wDefaultGetImage function, search the application icon using the default icon, 
then, this function returns always an icon. Then, we can remove the defIcon 
related code.

The fourth patch add space for the icon frame. The function 
wIconValidateIconSize is rewritten, using the code of scaleDownIfNeeded() 
(switchpanel.c). This patch removes the DONT_SCALE_ICONS preprocessor 
definition.

Finally, the last patch (5), set always the icon size of WPreferences.icon_size 
in the icon net_icon_image, set the iconresize in the switchpanel using the 
function wIconValidateIconSize(), removes the duplicated scaleDownIfNeeded() 
function and other things.

After apply this patches, run xfig again, test the switchpanel. Now, is the 
same, but more beautiful ;-)

Best regards,
kix
-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/


-- 
To unsubscribe, send mail to [email protected].

Reply via email to