On Thu, 15 Nov 2012, Rodolfo kix Garcia escribió:
> On Wed, 14 Nov 2012, Carlos R. Mafra escribió:
>
> > Thanks a lot for your latest series! Now the appicon from gtk-demo
> > is nicely resized!
> >
> > Gracias Rodolfo!
>
> Thanks.
>
> I am near to finish the winspector problem with icons. I think I will have
> the patches tomorrow.
I got it. I will rebase all here tomorrow and I will send it. The winspector.c
(applySettings()) is something like:
char *file = WMGetTextFieldText(panel->fileText);
if (file[0] == 0) {
wfree(file);
file = NULL;
}
if (!WFLAGP(wwin, always_user_icon)) {
/* Change icon image if the app is minimized */
if (wwin->icon)
wIconChangeImageFile(wwin->icon, file);
/* Change App Icon image */
if (wapp->app_icon)
wIconChangeImageFile(wapp->app_icon->icon,
file);
} else {
/* Change App Icon image */
if (wapp->app_icon)
wIconUpdate(wapp->app_icon->icon,
get_rimage_icon_from_wm_hints(wapp->app_icon->icon));
/* Change icon image if the app is minimized */
if (wwin->icon)
wIconUpdate(wwin->icon,
get_rimage_icon_from_wm_hints(wwin->icon));
}
if (file)
wfree(file);
Now wIconUpdate is more configurable, and the code is clean. But I made a lot
of changes...
Regards, good nigth,
kix
--
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
--
To unsubscribe, send mail to [email protected].