+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
+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.
+
2001-06-19 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
#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
extern "C" {
#endif /* __cplusplus */
+#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
+
/* Cursor types.
*/
typedef enum
/* Cursors
*/
+
+GType gdk_cursor_get_type (void);
+
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
GdkPixmap *mask,
FALSE);
return our_type;
}
+
+/* These functions are defined here to avoid a new C file, as GdkDevice is
+ * platform specific. (similar to how gdk_visual_get_type() is in gdkcolor.c)
+ */
+GdkDevice *
+gdk_device_ref (GdkDevice *device)
+{
+ return device;
+}
+
+void
+gdk_device_unref (GdkDevice *device)
+{
+ return;
+}
+
+GType
+gdk_device_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("GdkDevice",
+ NULL,
+ (GBoxedCopyFunc)gdk_device_ref,
+ (GBoxedFreeFunc)gdk_device_unref,
+ TRUE);
+ return our_type;
+}
extern "C" {
#endif /* __cplusplus */
+#define GDK_TYPE_DEVICE (gdk_device_get_type ())
+
typedef struct _GdkDeviceKey GdkDeviceKey;
typedef struct _GdkDeviceAxis GdkDeviceAxis;
typedef struct _GdkDevice GdkDevice;
gdouble axes[GDK_MAX_TIMECOORD_AXES];
};
+GType gdk_device_get_type (void);
+/* these two are no ops provided for the boxed type code */
+/* XXXX do they need to be exposed as public APIs at all? */
+GdkDevice *gdk_device_ref (GdkDevice *device);
+void gdk_device_unref (GdkDevice *device);
+
+
/* Returns a list of GdkDevice * */
GList * gdk_devices_list (void);