Carlos Garnacho
f73f4d82e0
widget: remove GtkGesture-related signals
...
The utility of those signals is somewhat dubious now that there is
gtk_gesture_group(), so make that the only way to coordinate gestures.
The cooperation model offered by gtk_gesture_group() is flexible
enough,
2014-05-23 19:54:28 +02:00
Carlos Garnacho
bf6181a382
docs: Add missing GtkEventController functions
2014-05-23 19:54:28 +02:00
Carlos Garnacho
35bed1ac14
widget: Add docs for GtkGesture-related API
2014-05-23 19:54:28 +02:00
Carlos Garnacho
63dd7a568e
gesturesingle: doc fixes
2014-05-23 19:54:28 +02:00
Carlos Garnacho
556eb398e5
zoom: doc fixes
2014-05-23 19:54:28 +02:00
Carlos Garnacho
ad2346f762
swipe: doc fixes
2014-05-23 19:54:28 +02:00
Carlos Garnacho
1f8cf3c322
rotate: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
135a653ee2
pan: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
24dc172b46
multipress: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
fa168e202e
longpress: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
3cbd2b97b8
drag: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
ec50d776ce
gesture: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
dbc7f011b3
eventcontroller: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
958efad71d
docs: Add missing controller/gesture docs
2014-05-23 19:54:27 +02:00
Carlos Garnacho
a0e9de671b
pan: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
c10998edb5
zoom: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
dc1e8454a7
rotate: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
2df48ba886
swipe: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
28237f80f5
drag: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
90b2f386e7
longpress: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
4602f34111
multipress: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
862f9d876e
gesturesingle: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
ac8dcccb32
gesture: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
c60c0fe4c5
eventcontroller: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
48367b1432
enums: Add missing docs to controller/gesture enums
2014-05-23 19:54:27 +02:00
Carlos Garnacho
d768c2cb84
Remove GtkPressAndHold
...
This is replaced by GtkGestureLongPress, and all its callers have
been updated to use the replacement.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
4401be22ad
enums: Document GtkPropagationPhase
2014-05-23 19:54:26 +02:00
Carlos Garnacho
6296aa84b2
spinbutton: increase/decrease value on upwards/downwards touch swipes
...
This is somewhat analogous to scroll events on pointer devices, the
greater the velocity, the faster the spinbutton spins.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
c7da5b54f5
Add GtkGesturePan
...
This gesture reports events on horizontal/vertical panning gestures.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
75b6f4aa52
range: Replace GtkPressAndHold with GtkGestureLongPress
2014-05-23 19:54:26 +02:00
Carlos Garnacho
2166be96d2
swipe: Add function to retrieve the current velocity
...
This can be used to fetch the current velocity on update(), as opposed
to swipe() which happens after the sequence is finished.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
bd722499dc
colorswatch: Replace GtkPressAndHold
...
GtkGestureLongPress and GtkGestureMultiPress are both used
to replace it.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
d5cb4841c8
colorscale: Replace GtkPressAndHold with GtkLongPressGesture
2014-05-23 19:54:26 +02:00
Carlos Garnacho
8c139c1fca
colorplane: Replace GtkPressAndHold with GtkLongPressGesture
2014-05-23 19:54:26 +02:00
Carlos Garnacho
e3d25b3c3c
entry: Don't show text handles too eagerly on button press
...
Instead do so on button release, or after text selection dragging
starts.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
c3075f1d56
longpress: Ensure check() happens after cancel()
...
And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.
2014-05-23 19:54:26 +02:00
Carlos Garnacho
c506dfe600
longpress: fix reentrancy on ::reset()
2014-05-23 19:54:26 +02:00
Carlos Garnacho
3cc9543e64
gesturemultipress: fix reentrancy on ::reset()
2014-05-23 19:54:26 +02:00
Carlos Garnacho
cdb5ba9426
gesturesingle: check the current sequence before resetting the pressed button
2014-05-23 19:54:26 +02:00
Carlos Garnacho
490c356954
scrolledwindow: update to gesture widget-level API changes
2014-05-23 19:54:26 +02:00
Carlos Garnacho
ff627511b7
window: update to gesture widget-level API changes
2014-05-23 19:54:26 +02:00
Carlos Garnacho
6350f58c1c
treeview: update to gesture widget-level API changes
2014-05-23 19:54:25 +02:00
Carlos Garnacho
c4a39f5abf
drag: remove unused #define
2014-05-23 19:54:25 +02:00
Carlos Garnacho
3221d53010
eventcontroller: Add documentation blurb
2014-05-23 19:54:25 +02:00
Carlos Garnacho
040c82f0e8
dnd: Update to gesture widget-level API changes
2014-05-23 19:54:25 +02:00
Carlos Garnacho
51b5fa3bf0
demo: Update to gesture widget-level API changes
2014-05-23 19:54:25 +02:00
Carlos Garnacho
7a71c16317
widget: refactor gesture integration
...
Listen for notify::sequence-state-changed on the controller, so the
only way to manipulate a sequence state are gtk_gesture_set_sequence_state()
and gtk_gesture_set_state().
Also, make use of gesture groups, so the sequence state is set at once
on all gestures pertaining to a single group. Within a widget, if a sequence
is claimed on one group, it is made to be denied on every other group.
2014-05-23 19:54:25 +02:00
Carlos Garnacho
b0a23dbfbd
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.
2014-05-23 19:54:25 +02:00
Carlos Garnacho
6433a5452e
gesture: Add gtk_gesture_set_state() helper.
...
This function sets the state on all sequences where it actually
can, just a helper function to avoid iterating over sequences
yourself.
2014-05-23 19:54:25 +02:00
Carlos Garnacho
72f8c673da
gesture: emit the current state on ::sequence-state-changed
2014-05-23 19:54:25 +02:00