mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
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:
parent
d6477d0894
commit
b591d7bc20
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user