widget: Don't queue resize handler twice

We already queue it when we set_alloc_needed(), so there's no need to do
it again.
This commit is contained in:
Benjamin Otte 2018-04-10 22:01:18 +02:00
parent d6477d0894
commit b591d7bc20

View File

@ -3985,11 +3985,7 @@ gtk_widget_queue_resize_internal (GtkWidget *widget)
gtk_widget_invalidate_paintable_size (widget);
if (_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
{
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
}
else if (_gtk_widget_get_visible (widget))
if (_gtk_widget_get_visible (widget))
{
GtkWidget *parent = _gtk_widget_get_parent (widget);
if (parent)