mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
796dc4b1d7
commit
cd3ddf900f
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
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>
|
2001-06-19 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
* gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
|
||||||
|
@ -27,6 +27,20 @@
|
|||||||
#include "gdkcursor.h"
|
#include "gdkcursor.h"
|
||||||
#include "gdkinternals.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:
|
* gdk_cursor_ref:
|
||||||
* @cursor: a #GdkCursor
|
* @cursor: a #GdkCursor
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
|
||||||
|
|
||||||
/* Cursor types.
|
/* Cursor types.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum
|
||||||
@ -24,6 +26,9 @@ struct _GdkCursor
|
|||||||
|
|
||||||
/* Cursors
|
/* Cursors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
GType gdk_cursor_get_type (void);
|
||||||
|
|
||||||
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
|
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
|
||||||
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
||||||
GdkPixmap *mask,
|
GdkPixmap *mask,
|
||||||
|
@ -897,3 +897,32 @@ gdk_event_get_type (void)
|
|||||||
FALSE);
|
FALSE);
|
||||||
return our_type;
|
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;
|
||||||
|
}
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#define GDK_TYPE_DEVICE (gdk_device_get_type ())
|
||||||
|
|
||||||
typedef struct _GdkDeviceKey GdkDeviceKey;
|
typedef struct _GdkDeviceKey GdkDeviceKey;
|
||||||
typedef struct _GdkDeviceAxis GdkDeviceAxis;
|
typedef struct _GdkDeviceAxis GdkDeviceAxis;
|
||||||
typedef struct _GdkDevice GdkDevice;
|
typedef struct _GdkDevice GdkDevice;
|
||||||
@ -86,6 +88,13 @@ struct _GdkTimeCoord
|
|||||||
gdouble axes[GDK_MAX_TIMECOORD_AXES];
|
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 * */
|
/* Returns a list of GdkDevice * */
|
||||||
GList * gdk_devices_list (void);
|
GList * gdk_devices_list (void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user