[gtk/wip/matthiasc/popup5: 91/115] color swatch: Allocate popovers



commit 5a81ae2063b870c8912ace2005226a03805ef741
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 4 18:43:04 2019 +0000

    color swatch: Allocate popovers

 gtk/gtkcolorswatch.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 7ad2bb0945..0fa499b429 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -39,6 +39,7 @@
 #include "gtkstylecontextprivate.h"
 #include "gtkwidgetprivate.h"
 #include "gtkeventcontrollerkey.h"
+#include "gtknative.h"
 
 #include "a11y/gtkcolorswatchaccessibleprivate.h"
 
@@ -362,6 +363,9 @@ swatch_size_allocate (GtkWidget *widget,
                               0, 0,
                               width, height
                             }, -1);
+
+  if (priv->popover)
+    gtk_native_check_resize (GTK_NATIVE (priv->popover));
 }
 
 static void


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