diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-08-26 01:17:44 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-08-26 14:57:56 +0200 |
commit | 904769b0049f5e817d1d85ff1df9ea2dd012836e (patch) | |
tree | 1c754154cd3e5b789b7ebbc1886ec2cbf438576e /gdk/gdkwindowimpl.c | |
parent | 29685170cfd7fcf2d008efc1d16e5a73144993ee (diff) | |
download | gtk+-904769b0049f5e817d1d85ff1df9ea2dd012836e.tar.gz |
gdk/gdkwindowimpl.c: Use G_DEFINE_INTERFACE macro
Diffstat (limited to 'gdk/gdkwindowimpl.c')
-rw-r--r-- | gdk/gdkwindowimpl.c | 18 |
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) +{ } |