[gtk+] widget: Clear pending resizes after size_allocate()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Clear pending resizes after size_allocate()
- Date: Wed, 28 Oct 2015 18:58:28 +0000 (UTC)
commit 4d631a914435ff8f2566ac1abcaffadd1c6ebc7f
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 15579a9..ce77407 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5991,6 +5991,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]