diff options
author | Christian Persch <chpe@gnome.org> | 2010-04-27 13:31:23 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2010-08-18 15:34:47 +0200 |
commit | ffa07ee21eac827d79e58fa565b2faf3ba662c46 (patch) | |
tree | 7244904942279a792e3ee199d6ee6559897711bb /gdk/gdkcursor.c | |
parent | f730af8360b8785317f5ff5ad75961928c155157 (diff) | |
download | gtk+-ffa07ee21eac827d79e58fa565b2faf3ba662c46.tar.gz |
Use G_DEFINE_BOXED_TYPE
Bug #627214.
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r-- | gdk/gdkcursor.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 5d6e0d41ea..dbed4f2e10 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -30,17 +30,9 @@ #include "gdkinternals.h" -GType -gdk_cursor_get_type (void) -{ - static GType our_type = 0; - - if (our_type == 0) - our_type = g_boxed_type_register_static (g_intern_static_string ("GdkCursor"), - (GBoxedCopyFunc)gdk_cursor_ref, - (GBoxedFreeFunc)gdk_cursor_unref); - return our_type; -} +G_DEFINE_BOXED_TYPE (GdkCursor, gdk_cursor, + gdk_cursor_ref, + gdk_cursor_unref) /** * gdk_cursor_ref: |