summaryrefslogtreecommitdiff
path: root/gdk/gdkwindowimpl.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-08-26 01:17:44 +0200
committerJavier Jardón <jjardon@gnome.org>2010-08-26 14:57:56 +0200
commit904769b0049f5e817d1d85ff1df9ea2dd012836e (patch)
tree1c754154cd3e5b789b7ebbc1886ec2cbf438576e /gdk/gdkwindowimpl.c
parent29685170cfd7fcf2d008efc1d16e5a73144993ee (diff)
downloadgtk+-904769b0049f5e817d1d85ff1df9ea2dd012836e.tar.gz
gdk/gdkwindowimpl.c: Use G_DEFINE_INTERFACE macro
Diffstat (limited to 'gdk/gdkwindowimpl.c')
-rw-r--r--gdk/gdkwindowimpl.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/gdk/gdkwindowimpl.c b/gdk/gdkwindowimpl.c
index 48fe438fd8..2c4df30d51 100644
--- a/gdk/gdkwindowimpl.c
+++ b/gdk/gdkwindowimpl.c
@@ -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)
+{
}