[gtk+] colorswatch: Readd accidentally removed call



commit 05085266583dabd20fe6dbceec97b3c9106b276e
Author: Benjamin Otte <otte redhat com>
Date:   Thu Nov 3 00:38:48 2016 +0100

    colorswatch: Readd accidentally removed call

 gtk/gtkcolorswatch.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 565640a..4aedcc3 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -455,6 +455,8 @@ swatch_realize (GtkWidget *widget)
 
   GTK_WIDGET_CLASS (gtk_color_swatch_parent_class)->realize (widget);
 
+  gtk_widget_get_allocation (widget, &allocation);
+
   swatch->priv->event_window = gdk_window_new_input (gtk_widget_get_window (widget),
                                                      gtk_widget_get_events (widget)
                                                      | GDK_BUTTON_PRESS_MASK


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