summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-02-27 07:07:48 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-02-27 07:11:43 -0500
commitd36c10bc03ae113d24d60314d900e68be0fbb7b1 (patch)
treee7fac184cf6363d575a9eab5057c2e612c6bc8c8 /gdk/gdkevents.h
parente580c79ae05a10fb33313b9ae36d95905cfc7b89 (diff)
downloadgtk+-d36c10bc03ae113d24d60314d900e68be0fbb7b1.tar.gz
gdk: Use versioned deprecations
This patch changes all uses of GDK_DEPRECATED(_FOR) in gdk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r--gdk/gdkevents.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 197b03ed55..0ee58f9e73 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -31,6 +31,7 @@
#ifndef __GDK_EVENTS_H__
#define __GDK_EVENTS_H__
+#include <gdk/gdkversionmacros.h>
#include <gdk/gdkcolor.h>
#include <gdk/gdktypes.h>
#include <gdk/gdkdnd.h>
@@ -1109,14 +1110,19 @@ gboolean gdk_event_get_coords (const GdkEvent *event,
gboolean gdk_event_get_root_coords (const GdkEvent *event,
gdouble *x_root,
gdouble *y_root);
+GDK_AVAILABLE_IN_3_2
gboolean gdk_event_get_button (const GdkEvent *event,
guint *button);
+GDK_AVAILABLE_IN_3_2
gboolean gdk_event_get_click_count (const GdkEvent *event,
guint *click_count);
+GDK_AVAILABLE_IN_3_2
gboolean gdk_event_get_keyval (const GdkEvent *event,
guint *keyval);
+GDK_AVAILABLE_IN_3_2
gboolean gdk_event_get_keycode (const GdkEvent *event,
guint16 *keycode);
+GDK_AVAILABLE_IN_3_2
gboolean gdk_event_get_scroll_direction (const GdkEvent *event,
GdkScrollDirection *direction);
gboolean gdk_event_get_axis (const GdkEvent *event,
@@ -1129,6 +1135,7 @@ void gdk_event_set_source_device (GdkEvent *event,
GdkDevice *device);
GdkDevice* gdk_event_get_source_device (const GdkEvent *event);
void gdk_event_request_motions (const GdkEventMotion *event);
+GDK_AVAILABLE_IN_3_4
gboolean gdk_event_triggers_context_menu (const GdkEvent *event);
gboolean gdk_events_get_distance (GdkEvent *event1,