gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor

Only used in gtkwidget
This commit is contained in:
Javier Jardón 2010-06-03 01:38:05 +02:00
parent dfb24fd56e
commit 63f8313015
3 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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);