[gtk+/gdk-backend] gdk: Use G_DEFINE_TYPE for GdkWindow
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] gdk: Use G_DEFINE_TYPE for GdkWindow
- Date: Tue, 21 Dec 2010 02:59:52 +0000 (UTC)
commit dcd614b8396766f1313d6b3f0ace639bad26369e
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 6e91942..3d75dd0 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]