[gtk+/wip/baedert/drawing: 34/128] flowbox: Initialize allocation



commit 763c57b8dea8711fabff2d88cfe87b3f3a0fa805
Author: Timm Bäder <mail baedert org>
Date:   Thu May 4 18:32:45 2017 +0200

    flowbox: Initialize allocation

 gtk/gtkflowbox.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 0f9e9ab..edde6cd 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -2451,6 +2451,8 @@ gtk_flow_box_snapshot (GtkWidget   *widget,
 
   GTK_WIDGET_CLASS (gtk_flow_box_parent_class)->snapshot (widget, snapshot);
 
+  gtk_widget_get_allocation (widget, &allocation);
+
   x = allocation.x;
   y = allocation.y;
   width = allocation.width;


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