[gtk+/wip/events: 20/25] eventtracker: Add some private APIs for use by gestures



commit c7f55213ee261c6ef67ceb486ff4c3642b26d134
Author: Benjamin Otte <otte redhat com>
Date:   Tue Mar 13 21:39:48 2012 +0100

    eventtracker: Add some private APIs for use by gestures

 gtk/gtkeventtracker.c        |   15 +++++++++++++++
 gtk/gtkeventtrackerprivate.h |    3 +++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkeventtracker.c b/gtk/gtkeventtracker.c
index 85124c0..dcbf5b7 100644
--- a/gtk/gtkeventtracker.c
+++ b/gtk/gtkeventtracker.c
@@ -439,3 +439,18 @@ _gtk_event_trackers_invoke (GdkEvent *event)
 
   return eat_event;
 }
+
+GtkEventTracker *
+_gtk_event_tracker_get_first (void)
+{
+  return first_tracker;
+}
+
+GtkEventTracker *
+_gtk_event_tracker_get_next (GtkEventTracker *tracker)
+{
+  g_return_val_if_fail (GTK_IS_EVENT_TRACKER (tracker), NULL);
+
+  return tracker->priv->next;
+}
+
diff --git a/gtk/gtkeventtrackerprivate.h b/gtk/gtkeventtrackerprivate.h
index dbc8999..14faccf 100644
--- a/gtk/gtkeventtrackerprivate.h
+++ b/gtk/gtkeventtrackerprivate.h
@@ -29,5 +29,8 @@ void                _gtk_event_tracker_add                (GtkEventTracker *trac
 
 gboolean            _gtk_event_trackers_invoke            (GdkEvent        *event);
 
+GtkEventTracker *   _gtk_event_tracker_get_first          (void);
+GtkEventTracker *   _gtk_event_tracker_get_next           (GtkEventTracker *tracker);
+
 
 #endif /* __GTK_EVENT_TRACKER_PRIVATE_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]