forked from AuroraMiddleware/gtk
gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor
Only used in gtkwidget
This commit is contained in:
parent
dfb24fd56e
commit
63f8313015
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user