[gtk/wip/matthiasc/popup: 3/4] wip: Window assumption in idle sizer
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup: 3/4] wip: Window assumption in idle sizer
- Date: Sun, 24 Feb 2019 13:21:19 +0000 (UTC)
commit 4d3529dfe732e1c935fc7ef25e6337627a1ddb8e
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 4c6219ec8a..65dc082f2b 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"
@@ -1387,6 +1388,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]