[gtk+] gdk: Add macros for left, middle and right buttons
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Add macros for left, middle and right buttons
- Date: Fri, 27 Jan 2012 08:48:12 +0000 (UTC)
commit 2890ac842ff25cde9d59f71f4a2a249587d1d87b
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Jan 25 15:28:14 2012 +0100
gdk: Add macros for left, middle and right buttons
https://bugzilla.gnome.org/show_bug.cgi?id=668688
docs/reference/gdk/gdk3-sections.txt | 3 +++
gdk/gdkevents.h | 31 +++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index d5deb42..605dbeb 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -759,6 +759,9 @@ GDK_PRIORITY_EVENTS
GDK_PRIORITY_REDRAW
GDK_EVENT_PROPAGATE
GDK_EVENT_STOP
+GDK_BUTTON_PRIMARY
+GDK_BUTTON_MIDDLE
+GDK_BUTTON_SECONDARY
<SUBSECTION>
gdk_events_pending
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index d8a1f76..197b03e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]