Re: GtkStack, builder and hidden objects
- From: Emmanuele Bassi <ebassi gmail com>
- To: Daniel Kasak <d j kasak dk gmail com>
- Cc: ML-gtk <gtk-list gnome org>
- Subject: Re: GtkStack, builder and hidden objects
- Date: Tue, 19 Feb 2019 12:22:07 +0000
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.
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 gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]