[xfce4] Notes on the vertical panel
Jasper Huijsmans
jasper at moongroup.com
Sat Sep 21 21:35:51 CEST 2002
I think I fixed it in CVS. It hasn't seen much testing though.
Jasper
On Sat, 21 Sep 2002 11:42:02 +0200
Jasper Huijsmans <jasper at moongroup.com> wrote:
> Hi all,
>
> Just a small note on the new vertical panel for everyone using it, and
> especially everyone working on the panel code.
>
> The way the dialog handles an orientation change is completely broken.
> It shouldn't even work at all.
>
> Here's what happens. If you change the orientation in the dialog, the
> global settings are updated. Then all gtk widgets are destroyed by
> destroying the main frame. Then the panel is rebuild from scratch.
>
> Why is this broken you may ask? Well if you destroy all widgets, you
> also destroy all widgets the dialog connects to and the callbacks. The
> fact that the dialog still seems to work I can only explain by
> assuming the new widgets usually take the same memory space as the old
> widgets.
>
> There are basically two possible solutions:
>
> 1) also destroy the dialog and add functions to restore it after
> rebuilding the panel.
> 2) don't destroy the panel controls, but only rebuild the panel
> framework (and the central panel).
>
> I believe number (2) is the proper solution. This is not too
> difficult, but it takes some time at least.
>
> greetings,
> Jasper
>
> --
> IRC channel: #xfce on irc.openprojects.net
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at moongroup.com
> http://moongroup.com/mailman/listinfo/xfce4-dev
--
IRC channel: #xfce on irc.openprojects.net
More information about the Xfce4-dev
mailing list