Re: How to change particular tab child of a GtkNotebook



The point of using the container as a placeholder is to eliminate the deletion of the entire tab.

You create each tab with a container as its child, and then add() your child to the tab's container rather than directly to the tab. When you later remove() your child and add() it to a different tab's container, the original tab should remain intact because it still has it's container as a child.

If that works, you don't have to do anything to preserve your child's contents.

Keeping track of which tab's container holds your child should not be a problem.


On 01/30/2018 11:15 AM, pspgen mail bg wrote:


I will still need to do a lot of expensive work to remove add and
reconfigure all the child widgets (which are a lot), also
I will need to be doing even more work to define the switch-tab behavior,
which will involve keeping track of the latest tab content (to know where
to remove the child widgets from). It is still somehow better than creating
all the widgets again, copying their condifiguration.


-------------------------------------

П.П. Знаеш ли, че за да имаш сайт ти е нужен хостинг? В СуперХостинг.БГ можеш за вземеш завършено хостинг 
решение на половин цена. Виж повече на www.superhosting.bg.
  
https://www.superhosting.bg/promo/webhosting?utm_source=mail.bg&utm_medium=footer&utm_content=v2&utm_campaign=winter_promo17
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

--
”Wait, what if these quote marks are inside out, so everything in the rest of the document is the quotation and /this/ part isn't? Duuuuude.“
   — Randall Munroe


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