Commit 904769b0 authored by Javier Jardón's avatar Javier Jardón

gdk/gdkwindowimpl.c: Use G_DEFINE_INTERFACE macro

parent 29685170
......@@ -29,19 +29,11 @@
#include "gdkinternals.h"
GType
gdk_window_impl_get_type (void)
{
static GType gtype = 0;
typedef GdkWindowImplIface GdkWindowImplInterface;
G_DEFINE_INTERFACE (GdkWindowImpl, gdk_window_impl, G_TYPE_OBJECT);
if (G_UNLIKELY (!gtype))
{
gtype = g_type_register_static_simple (G_TYPE_INTERFACE,
"GdkWindowImpl",
sizeof (GdkWindowImplIface),
NULL, 0, NULL, 0);
g_type_interface_add_prerequisite (gtype, G_TYPE_OBJECT);
}
return gtype;
static void
gdk_window_impl_default_init (GdkWindowImplInterface *iface)
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment