GTK3 - GtkExpander problem, bug ?

Dear all thanks in advance for reading this,

I wrote a piece of code in GTK3, and I might have found an issue with the GtkExpander widget, shorter than a long text explanation, I attach to this email a screen capture from a window from my program. This window contains a bunch of GtkExpander, inside each a GtkScrolledWindow that contains a GtkFixed, each GtkFixed contains a series of GtkToggleButtons. (I can have a lot of buttons piled up in there). I tried several container widget other than the ScrolledWindow, but it is the only one that offers to browse
the entire button list that my program will create.

The first time, I open/close one of the GtkExpander (1) everything works fine, the button are working fine, then if I open/close another GtkExpander (2) and re-open the first one I lose information regarding the buttons, some stop to function, for other the pointers for the callback are damaged and the function will not work properly afterwards. I noticed that I could even recall buttons located in the other expander (2), basically at the location they were appearing on the window before having expander (2) closed, like if the two sets of buttons from the 2 expanders
 were overlapping/sharing positions somehow.

So there is no GTK signal used in all this window excepted for the buttons, and a simple 'play' with the expanders is messing everything up ... GDB and VALGRIND are not giving me any error so ...
I figured that this was out of my skill range, hence this email.

I also attach to this message a piece of code to illustrate how I generate the window from my picture, the part the generate the button is missing but that it too big to included in this message.

Finally I want to add that the almost the exact same code works just fine with GTK2 ... if that helps.

Thanks in advance for you help.

Best regards.

Dr. Sébastien Le Roux
Ingénieur de Recherche CNRS
Institut de Physique et Chimie des Matériaux de Strasbourg
Département des Matériaux Organiques
23, rue du Loess
BP 43
F-67034 Strasbourg Cedex 2, France
E-mail: sebastien leroux ipcms unistra fr
RINGS project:
ISAACS project:
Fax:   +33 3 88 10 72 46
Phone: +33 3 88 10 71 62

Attachment: example-win.png
Description: PNG image

Attachment: example.c
Description: Text Data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]