summaryrefslogtreecommitdiff
path: root/gdk/gdkcursor.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-06-28 16:35:38 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-06-28 16:35:38 +0000
commitcd3ddf900fe4c392ba864bd6d12d914de211114a (patch)
tree19208d6a113e165fd0d831d61f781d46fd3edfa8 /gdk/gdkcursor.c
parent796dc4b1d76e79ef3c4a95751c33aabf721bfc51 (diff)
downloadgdk-pixbuf-cd3ddf900fe4c392ba864bd6d12d914de211114a.tar.gz
The following changes correspond to bug #56812
2001-06-29 James Henstridge <james@daa.com.au> The following changes correspond to bug #56812 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type code for GdkDevice. * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for GdkCursor.
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r--gdk/gdkcursor.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index e743f28f7..ca1ff045a 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -27,6 +27,20 @@
#include "gdkcursor.h"
#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 ("GdkCursor",
+ NULL,
+ (GBoxedCopyFunc)gdk_cursor_ref,
+ (GBoxedFreeFunc)gdk_cursor_unref,
+ TRUE);
+ return our_type;
+}
+
/**
* gdk_cursor_ref:
* @cursor: a #GdkCursor