Commit 63f83130 authored by Javier Jardón's avatar Javier Jardón

gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor

Only used in gtkwidget
parent dfb24fd5
......@@ -2696,3 +2696,9 @@ _gtk_container_set_need_resize (GtkContainer *container,
{
container->priv->need_resize = need_resize;
}
gboolean
_gtk_container_get_reallocate_redraws (GtkContainer *container)
{
return container->priv->reallocate_redraws;
}
......@@ -211,6 +211,7 @@ GList *_gtk_container_focus_sort (GtkContainer *container,
gboolean _gtk_container_get_need_resize (GtkContainer *container);
void _gtk_container_set_need_resize (GtkContainer *container,
gboolean need_resize);
gboolean _gtk_container_get_reallocate_redraws (GtkContainer *container);
G_END_DECLS
......
......@@ -4065,7 +4065,7 @@ gtk_widget_size_allocate (GtkWidget *widget,
}
if ((size_changed || position_changed) && widget->parent &&
gtk_widget_get_realized (widget->parent) && GTK_CONTAINER (widget->parent)->reallocate_redraws)
gtk_widget_get_realized (widget->parent) && _gtk_container_get_reallocate_redraws (GTK_CONTAINER (widget->parent)))
{
cairo_region_t *invalidate = cairo_region_create_rectangle (&widget->parent->allocation);
gtk_widget_invalidate_widget_windows (widget->parent, invalidate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment