GNOME Bugzilla – Bug 766737
stack: Only map children when necessary
Last modified: 2016-05-20 22:57:19 UTC
See patch.
Created attachment 328294 [details] [review] stack: Only map children when necessary gtk_widget_set_parent() will map the widget if the parent is mapped and the widget is both visible and child-visible. As we currently only set the child visibility after adding the child, we immediately map all children that are added to a mapped stack, even when they are not actually shown. Avoid this by setting the child visibility before adding the child, so widgets are only mapped when shown.
Comment on attachment 328294 [details] [review] stack: Only map children when necessary Looks good.
Attachment 328294 [details] pushed as 57efcab - stack: Only map children when necessary