summaryrefslogtreecommitdiff
path: root/gdk/gdktoplevel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-03-10 07:24:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-03-12 15:30:11 -0400
commitf005dfa5fbf72af1f9b302d56a0c4fcf5ee34fb2 (patch)
tree15d4165251f5b5b9e3fd57eb68207b30179b3502 /gdk/gdktoplevel.c
parent31d2b686d67c0307f369a2b5a79ff71aaf98543a (diff)
downloadgtk+-f005dfa5fbf72af1f9b302d56a0c4fcf5ee34fb2.tar.gz
toplevel: require GdkSurface
Diffstat (limited to 'gdk/gdktoplevel.c')
-rw-r--r--gdk/gdktoplevel.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c
index 6d9e2a9955..1cfeb2c448 100644
--- a/gdk/gdktoplevel.c
+++ b/gdk/gdktoplevel.c
@@ -31,11 +31,7 @@
* A #GdkToplevel is a freestanding toplevel surface.
*/
-
-/* FIXME: this can't have GdkSurface as a prerequisite
- * as long as GdkSurface implements this interface itself
- */
-G_DEFINE_INTERFACE (GdkToplevel, gdk_toplevel, G_TYPE_OBJECT)
+G_DEFINE_INTERFACE (GdkToplevel, gdk_toplevel, GDK_TYPE_SURFACE)
static gboolean
gdk_toplevel_default_present (GdkToplevel *toplevel,