[gtk+/refactor: 35/106] gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 35/106] gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor
- Date: Tue, 13 Jul 2010 17:44:57 +0000 (UTC)
commit 63f83130154be9d773c1e8c939766d59a0040cc7
Author: Javier Jardón <jjardon gnome org>
Date: Thu Jun 3 01:38:05 2010 +0200
gtkcontainer: Add _gtk_container_get_reallocate_redraws internal accessor
Only used in gtkwidget
gtk/gtkcontainer.c | 6 ++++++
gtk/gtkcontainer.h | 1 +
gtk/gtkwidget.c | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 2ce2b4f..d62e301 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -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;
+}
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h
index bb4f546..bf44a66 100644
--- a/gtk/gtkcontainer.h
+++ b/gtk/gtkcontainer.h
@@ -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
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9852350..e4f9ca7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]