mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +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
|
void
|
||||||
_gtk_container_queue_restyle (GtkContainer *container)
|
_gtk_container_queue_restyle (GtkContainer *container)
|
||||||
{
|
{
|
||||||
@ -1656,15 +1663,8 @@ _gtk_container_queue_restyle (GtkContainer *container)
|
|||||||
if (priv->restyle_pending)
|
if (priv->restyle_pending)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
gtk_container_start_idle_sizer (container);
|
|
||||||
priv->restyle_pending = TRUE;
|
priv->restyle_pending = TRUE;
|
||||||
}
|
_gtk_container_maybe_start_idle_sizer (container);
|
||||||
|
|
||||||
void
|
|
||||||
_gtk_container_maybe_start_idle_sizer (GtkContainer *container)
|
|
||||||
{
|
|
||||||
if (gtk_container_needs_idle_sizer (container))
|
|
||||||
gtk_container_start_idle_sizer (container);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user