summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-01-25 15:28:14 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-01-27 09:47:42 +0100
commit2890ac842ff25cde9d59f71f4a2a249587d1d87b (patch)
tree161630478d5f345d5f921e5ed76f474afa7d2b75 /gdk/gdkevents.h
parent7a39912cae49026a9efa4bf705726528e0626045 (diff)
downloadgtk+-2890ac842ff25cde9d59f71f4a2a249587d1d87b.tar.gz
gdk: Add macros for left, middle and right buttons
https://bugzilla.gnome.org/show_bug.cgi?id=668688
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r--gdk/gdkevents.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index d8a1f761d8..197b03ed55 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -94,6 +94,37 @@ G_BEGIN_DECLS
*/
#define GDK_EVENT_STOP (TRUE)
+/**
+ * GDK_BUTTON_PRIMARY:
+ *
+ * The primary button. This is typically the left mouse button, or the
+ * right button in a left-handed setup.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_PRIMARY (1)
+
+/**
+ * GDK_BUTTON_MIDDLE:
+ *
+ * The middle button.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_MIDDLE (2)
+
+/**
+ * GDK_BUTTON_SECONDARY:
+ *
+ * The secondary button. This is typically the right mouse button, or the
+ * left button in a left-handed setup.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_SECONDARY (3)
+
+
+
typedef struct _GdkEventAny GdkEventAny;
typedef struct _GdkEventExpose GdkEventExpose;
typedef struct _GdkEventVisibility GdkEventVisibility;