[gtk+/wip/otte/queue-resize: 21/32] widget: Clear pending resizes after size_allocate()



commit b5954ee4f26cb8bb9a0d9fab3981b19772a1852f
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 28 05:23:32 2015 +0200

    widget: Clear pending resizes after size_allocate()
    
    This catches the cases where widgets call gtk_widget_queue_resize()
    in their size_allocate() callback.

 gtk/gtkwidget.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 3d0a5fd..b39a33c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5988,6 +5988,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget     *widget,
     GTK_WIDGET_GET_CLASS (widget)->size_allocate (widget, &real_allocation);
 
   /* Size allocation is god... after consulting god, no further requests or allocations are needed */
+  gtk_widget_ensure_resize (widget);
   priv->alloc_needed = FALSE;
 
   size_changed |= (old_clip.width != priv->clip.width ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]