[gtk/present-toplevel-2: 80/83] popup: require GdkSurface



commit dff549264a44ebdfac376396c639b3b1951869de
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 10 07:23:49 2020 -0400

    popup: require GdkSurface

 gdk/gdkpopup.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkpopup.c b/gdk/gdkpopup.c
index 1269f89e8b..d6f3ef971a 100644
--- a/gdk/gdkpopup.c
+++ b/gdk/gdkpopup.c
@@ -19,9 +19,9 @@
 
 #include "config.h"
 
+#include "gdk-private.h"
 #include "gdkintl.h"
 #include "gdkpopupprivate.h"
-#include "gdk-private.h"
 
 /**
  * SECTION:gdkpopup
@@ -32,11 +32,7 @@
  * and is positioned relative to it.
  */
 
-
-/* FIXME: this can't have GdkSurface as a prerequisite
- * as long as GdkSurface implements this interface itself
- */
-G_DEFINE_INTERFACE (GdkPopup, gdk_popup, G_TYPE_OBJECT)
+G_DEFINE_INTERFACE (GdkPopup, gdk_popup, GDK_TYPE_SURFACE)
 
 static gboolean
 gdk_popup_default_present (GdkPopup       *popup,


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