Web lists-archives.com

Re: GtkStack, builder and hidden objects




Hi;

Are you calling gtk_widget_show_all() on the Stack or Notebook, at any point?

If you call show_all() on a container, all children will be marked as visible; you need to use gtk_widget_set_no_show_all() if you don't want this behaviour.

Ciao,
 Emmanuele.

On Tue, 19 Feb 2019 at 12:14, Daniel Kasak via gtk-list <gtk-list@xxxxxxxxx> wrote:
Hi all.

I'm using glade to lay out my UIs. I've just noticed after porting some things that used GtkNotebook to GtkStack that objects that I've set as *not* visible ( in glade, select the object, go to the 'common' page, go to 'widget flags' and de-select 'Visible' ) are in fact visible. It seems like GtkStack is calling 'show all' on the widget tree.

Is this intended behaviour? I would expect my 'Visible' flag to be honoured, though I can see how this would be extra work.

For now, I've hooked up some code to re-hide my hidden widgets when the GtkStack's 'set-focus-child' event fires.

Dan
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list


--
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list