mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
container: Use maybe_start_idle_sizer()
That way, we don't accidentally start an idle sizer for unrealized widgets.
This commit is contained in:
parent
e0415fccd7
commit
3df94fe099
@ -1646,6 +1646,13 @@ gtk_container_queue_resize_handler (GtkContainer *container)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_container_maybe_start_idle_sizer (GtkContainer *container)
|
||||
{
|
||||
if (gtk_container_needs_idle_sizer (container))
|
||||
gtk_container_start_idle_sizer (container);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_container_queue_restyle (GtkContainer *container)
|
||||
{
|
||||
@ -1656,15 +1663,8 @@ _gtk_container_queue_restyle (GtkContainer *container)
|
||||
if (priv->restyle_pending)
|
||||
return;
|
||||
|
||||
gtk_container_start_idle_sizer (container);
|
||||
priv->restyle_pending = TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_container_maybe_start_idle_sizer (GtkContainer *container)
|
||||
{
|
||||
if (gtk_container_needs_idle_sizer (container))
|
||||
gtk_container_start_idle_sizer (container);
|
||||
_gtk_container_maybe_start_idle_sizer (container);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user