summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuprivate.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-12-12 18:11:57 +0100
committerMatthias Clasen <mclasen@redhat.com>2012-03-01 16:25:23 -0500
commit47f9435e995b1d5cb4d3c67841e4e809bafaf730 (patch)
tree2e1e5db3c6c15f324867f9a9c475f5bda78da554 /gtk/gtkmenuprivate.h
parent5139617b91004c0aaa69da0ffa56dfc832bddacb (diff)
downloadgtk+-47f9435e995b1d5cb4d3c67841e4e809bafaf730.tar.gz
menus: Implement scrolling through event capture for touch devices
This makes overflown menus scrollable via direct manipulation. Once past the threshold, the item below the pointer is unselected and scrolling starts.
Diffstat (limited to 'gtk/gtkmenuprivate.h')
-rw-r--r--gtk/gtkmenuprivate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkmenuprivate.h b/gtk/gtkmenuprivate.h
index 37617c7286..f4583582be 100644
--- a/gtk/gtkmenuprivate.h
+++ b/gtk/gtkmenuprivate.h
@@ -99,6 +99,8 @@ struct _GtkMenuPrivate
guint seen_item_enter : 1;
guint ignore_button_release : 1;
guint no_toggle_size : 1;
+ guint drag_already_pressed : 1;
+ guint drag_scroll_started : 1;
/* info used for the table */
guint *heights;
@@ -125,6 +127,9 @@ struct _GtkMenuPrivate
gint navigation_height;
guint navigation_timeout;
+
+ gdouble drag_start_y;
+ gint initial_drag_offset;
};
G_END_DECLS