[gtk+/wip/otte/queue-resize: 23/31] widget: Clear pending resizes after size_allocate()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/queue-resize: 23/31] widget: Clear pending resizes after size_allocate()
- Date: Tue, 29 Sep 2015 21:23:42 +0000 (UTC)
commit b410a0fa342488ebbf9dc277714afae34b941780
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 896d6c4..4014826 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]