mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
gdk: Remove explicit event type numbering
The numeric values of event types are irrelevant, so we don't need to declare them explicitly.
This commit is contained in:
parent
bcf570cc16
commit
8d42ab6b91
@ -281,44 +281,44 @@ typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent,
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GDK_NOTHING = -1,
|
||||
GDK_DELETE = 0,
|
||||
GDK_DESTROY = 1,
|
||||
GDK_EXPOSE = 2,
|
||||
GDK_MOTION_NOTIFY = 3,
|
||||
GDK_BUTTON_PRESS = 4,
|
||||
GDK_BUTTON_RELEASE = 7,
|
||||
GDK_KEY_PRESS = 8,
|
||||
GDK_KEY_RELEASE = 9,
|
||||
GDK_ENTER_NOTIFY = 10,
|
||||
GDK_LEAVE_NOTIFY = 11,
|
||||
GDK_FOCUS_CHANGE = 12,
|
||||
GDK_CONFIGURE = 13,
|
||||
GDK_MAP = 14,
|
||||
GDK_UNMAP = 15,
|
||||
GDK_PROXIMITY_IN = 20,
|
||||
GDK_PROXIMITY_OUT = 21,
|
||||
GDK_DRAG_ENTER = 22,
|
||||
GDK_DRAG_LEAVE = 23,
|
||||
GDK_DRAG_MOTION = 24,
|
||||
GDK_DRAG_STATUS = 25,
|
||||
GDK_DROP_START = 26,
|
||||
GDK_DROP_FINISHED = 27,
|
||||
GDK_CLIENT_EVENT = 28,
|
||||
GDK_SCROLL = 31,
|
||||
GDK_GRAB_BROKEN = 35,
|
||||
GDK_DAMAGE = 36,
|
||||
GDK_TOUCH_BEGIN = 37,
|
||||
GDK_TOUCH_UPDATE = 38,
|
||||
GDK_TOUCH_END = 39,
|
||||
GDK_TOUCH_CANCEL = 40,
|
||||
GDK_TOUCHPAD_SWIPE = 41,
|
||||
GDK_TOUCHPAD_PINCH = 42,
|
||||
GDK_PAD_BUTTON_PRESS = 43,
|
||||
GDK_PAD_BUTTON_RELEASE = 44,
|
||||
GDK_PAD_RING = 45,
|
||||
GDK_PAD_STRIP = 46,
|
||||
GDK_PAD_GROUP_MODE = 47,
|
||||
GDK_NOTHING,
|
||||
GDK_DELETE,
|
||||
GDK_DESTROY,
|
||||
GDK_EXPOSE,
|
||||
GDK_MOTION_NOTIFY,
|
||||
GDK_BUTTON_PRESS,
|
||||
GDK_BUTTON_RELEASE,
|
||||
GDK_KEY_PRESS,
|
||||
GDK_KEY_RELEASE,
|
||||
GDK_ENTER_NOTIFY,
|
||||
GDK_LEAVE_NOTIFY,
|
||||
GDK_FOCUS_CHANGE,
|
||||
GDK_CONFIGURE,
|
||||
GDK_MAP,
|
||||
GDK_UNMAP,
|
||||
GDK_PROXIMITY_IN,
|
||||
GDK_PROXIMITY_OUT,
|
||||
GDK_DRAG_ENTER,
|
||||
GDK_DRAG_LEAVE,
|
||||
GDK_DRAG_MOTION,
|
||||
GDK_DRAG_STATUS,
|
||||
GDK_DROP_START,
|
||||
GDK_DROP_FINISHED,
|
||||
GDK_CLIENT_EVENT,
|
||||
GDK_SCROLL,
|
||||
GDK_GRAB_BROKEN,
|
||||
GDK_DAMAGE,
|
||||
GDK_TOUCH_BEGIN,
|
||||
GDK_TOUCH_UPDATE,
|
||||
GDK_TOUCH_END,
|
||||
GDK_TOUCH_CANCEL,
|
||||
GDK_TOUCHPAD_SWIPE,
|
||||
GDK_TOUCHPAD_PINCH,
|
||||
GDK_PAD_BUTTON_PRESS,
|
||||
GDK_PAD_BUTTON_RELEASE,
|
||||
GDK_PAD_RING,
|
||||
GDK_PAD_STRIP,
|
||||
GDK_PAD_GROUP_MODE,
|
||||
GDK_EVENT_LAST /* helper variable for decls */
|
||||
} GdkEventType;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user