[gtk+] accellabel: Initialize allocation variable



commit e542d411acc1565fab4a82bc80a13893310e4b84
Author: Benjamin Otte <otte redhat com>
Date:   Sat Dec 31 14:13:32 2016 +0100

    accellabel: Initialize allocation variable
    
    I have no idea why gcc didn't catch this.

 gtk/gtkaccellabel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 6dde745..b1a95b8 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -470,6 +470,7 @@ gtk_accel_label_snapshot (GtkWidget   *widget,
   GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->snapshot (widget, snapshot);
 
   ac_width = gtk_accel_label_get_accel_width (accel_label);
+  gtk_widget_get_allocation (widget, &allocation);
   gtk_widget_get_preferred_size (widget, NULL, &requisition);
 
   if (allocation.width >= requisition.width + ac_width)


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