[gtk+] gdk: Use G_DEFINE_TYPE for GdkWindow
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Use G_DEFINE_TYPE for GdkWindow
- Date: Tue, 21 Dec 2010 17:19:10 +0000 (UTC)
commit dcb03b1085dbe763c6afc50154e2dc150f495068
Author: Benjamin Otte <otte redhat com>
Date: Tue Dec 21 03:39:32 2010 +0100
gdk: Use G_DEFINE_TYPE for GdkWindow
gdk/gdkwindow.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index c4055df..cb159e6 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -219,8 +219,6 @@ static void gdk_window_drop_cairo_surface (GdkWindow *private);
static void gdk_window_free_paint_stack (GdkWindow *window);
-static void gdk_window_init (GdkWindow *window);
-static void gdk_window_class_init (GdkWindowClass *klass);
static void gdk_window_finalize (GObject *object);
static void gdk_window_set_property (GObject *object,
@@ -273,22 +271,7 @@ new_region_tag (void)
return ++tag;
}
-GType
-gdk_window_get_type (void)
-{
- static GType object_type = 0;
-
- if (!object_type)
- object_type = g_type_register_static_simple (G_TYPE_OBJECT,
- "GdkWindow",
- sizeof (GdkWindowClass),
- (GClassInitFunc) gdk_window_class_init,
- sizeof (GdkWindow),
- (GInstanceInitFunc) gdk_window_init,
- 0);
-
- return object_type;
-}
+G_DEFINE_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
GType
_gdk_paintable_get_type (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]