[Panel-devel] [PATCH] again on icon resize

Aaron J. Seigo aseigo at kde.org
Fri Dec 28 02:27:59 CET 2007


On Sunday 23 December 2007, Marco Martin wrote:
> On Saturday 22 December 2007, Marco Martin wrote:
> > Hi all,
> > this is my third attempt to make the icon resize working,
> > the main concept is the method sizeFromIconSize()
> > with that you ask "i want and icon 48 pixel wide, what is the size of the
> > widget?" so an applet has only to set for example
> > setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Desk
> >to p))) note also that there is a new displaySizeHint in Icon::private
> > that works quite different from the other one: because as talked with
> > aaron before, after committing that, that method will gonna be thrown
> > away, together with calculatesize and seticonsize
> > since it seems to work fairly well and doesn't seem to break existing
> > applets, if there aren't particular complaints i'm gonna to commit it
> > tomorrow
>
> committed, now i think it would make sense to use
> setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Deskto
>p))) also for the other applets that use the icon, like kickoff and (maybe?)
> the lock/logout

yes, for these ones it probably makes sense. thanks for the work on this =))

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071227/461a8d51/attachment.pgp 


More information about the Panel-devel mailing list