[Panel-devel] Desktop Icons Patch

Marco Martin notmart at gmail.com
Wed Dec 19 23:16:19 CET 2007


On Wednesday 19 December 2007, Aaron J. Seigo wrote:
>
> ok, this part belongs in the applet. basically what you want to do is in
> constraintsUpdated you will want to respond to (constraints &
> SizeConstraint) and calculate a new width based on the height.
>
> you can either set the new width right there or use contentSizeHint. either
> way, you need to be careful not to create an infinite loop: changing the
> size may well cause another call to constraintsUpdated for SizeConstraint;
> so the calculation needs to be stable (always returning the same width for
> the same height)

working on it, at the moment i'm too tired to make something that looks 
remotely decent, should come up with something tomorrow or whatever

Cheers,
Marco Martin


More information about the Panel-devel mailing list