]> Pileus Git - ~andy/gtk/commit
Don't queue resize for hidden widgets without a size group
authorAlexander Larsson <alexl@redhat.com>
Tue, 4 Dec 2012 15:53:06 +0000 (16:53 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 4 Dec 2012 19:16:44 +0000 (20:16 +0100)
commitfaaae520c98af1c27ca1e97ca8f33655ec6b575e
tree76c04158b3b1a547da869c74ce7fc443860ae304
parent47714f55eef78aadef3dacd041388daf1e8a40d9
Don't queue resize for hidden widgets without a size group

queue_resize basically tells the parent widget that it may need
to pick a different size/layout. However, for a hidden child widget
that should never be needed. It may be that the widget is in a
sizegroup that has ignore_hidden == FALSE though, so it may
affect the size group calculations.

However, if a widget is not visible and not in a size group then
its safe to avoid the resize, as the widget will be resized on
becoming visible anyway.

This avoids a lot of size allocation for hidden things like menus
and tooltips.
gtk/gtkwidget.c