[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    GTK3 - GtkExpander problem, bug ?
From:       Sébastien_Le_Roux <sebastien.leroux () ipcms ! unistra ! fr>
Date:       2017-12-13 2:16:59
Message-ID: 7a7f900f-a7e5-8ed3-3fa8-867568087523 () ipcms ! unistra ! fr
[Download RAW message or body]

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
Webpage: http://www-ipcms.u-strasbg.fr/spip.php?article1771
RINGS project: http://rings-code.sourceforge.net/
ISAACS project: http://isaacs.sourceforge.net/
Fax:   +33 3 88 10 72 46
Phone: +33 3 88 10 71 62
===========================================================

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic