diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-04-08 20:47:38 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-23 19:54:25 +0200 |
commit | b0a23dbfbdafe83daee16517875a8c2b532af121 (patch) | |
tree | f1f10a06e739017ba5e04b11ce43d4f0ab49af1c /gtk/gtkgesture.h | |
parent | 6433a5452e9a27451f7a9d709c6484296319ca4b (diff) | |
download | gtk+-b0a23dbfbdafe83daee16517875a8c2b532af121.tar.gz |
gesture: Add grouping API
This API eliminates the need for overriding
GtkWidget::sequence-state-changed virtually everywhere. Grouped
gestures share common states for a same GdkEventSequence, so the
state of sequences stay in sync across those.
Diffstat (limited to 'gtk/gtkgesture.h')
-rw-r--r-- | gtk/gtkgesture.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkgesture.h b/gtk/gtkgesture.h index e5976d1381..762dde7ddb 100644 --- a/gtk/gtkgesture.h +++ b/gtk/gtkgesture.h @@ -136,6 +136,19 @@ GDK_AVAILABLE_IN_3_14 void gtk_gesture_set_window (GtkGesture *gesture, GdkWindow *window); +GDK_AVAILABLE_IN_3_14 +void gtk_gesture_group (GtkGesture *group_gesture, + GtkGesture *gesture); +GDK_AVAILABLE_IN_3_14 +void gtk_gesture_ungroup (GtkGesture *gesture); + +GDK_AVAILABLE_IN_3_14 +GList * gtk_gesture_get_group (GtkGesture *gesture); + +GDK_AVAILABLE_IN_3_14 +gboolean gtk_gesture_is_grouped_with (GtkGesture *gesture, + GtkGesture *other); + G_END_DECLS #endif /* __GTK_GESTURE_H__ */ |