[xfce4] Notes on the vertical panel
Jasper Huijsmans
jasper at moongroup.com
Sat Sep 21 11:42:02 CEST 2002
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
More information about the Xfce4-dev
mailing list