[gtk/wip/matthiasc/popup: 37/63] wip: Window assumption in idle sizer



commit 96e64168856478baaa802cde72d40d8c72c993f7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 24 08:18:16 2019 -0500

    wip: Window assumption in idle sizer

 gtk/gtkcontainer.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 9fb6d81d9e..0f758de4eb 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -39,6 +39,7 @@
 #include "gtktypebuiltins.h"
 #include "gtkwidgetprivate.h"
 #include "gtkwindowprivate.h"
+#include "gtkpopup.h"
 
 #include "a11y/gtkcontaineraccessibleprivate.h"
 
@@ -1377,6 +1378,8 @@ gtk_container_idle_sizer (GdkFrameClock *clock,
     {
       if (GTK_IS_WINDOW (container))
         gtk_window_check_resize (GTK_WINDOW (container));
+      else if (GTK_IS_POPUP (container))
+        gtk_popup_check_resize (GTK_POPUP (container));
       else
         g_warning ("gtk_container_idle_sizer() called on a non-window");
     }


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