Merge lp://staging/~oif-team/libgrip/device-types into lp://staging/libgrip
Proposed by
Chase Douglas
Status: | Merged |
---|---|
Merged at revision: | 44 |
Proposed branch: | lp://staging/~oif-team/libgrip/device-types |
Merge into: | lp://staging/libgrip |
Diff against target: |
391 lines (+196/-3) (has conflicts) 4 files modified
configure.ac (+2/-2) examples/rectangle-mover/gesture.c (+35/-0) src/gripgesturemanager.c (+150/-1) src/gripgesturemanager.h (+9/-0) Text conflict in examples/rectangle-mover/gesture.c Text conflict in src/gripgesturemanager.c |
To merge this branch: | bzr merge lp://staging/~oif-team/libgrip/device-types |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephen M. Webb (community) | Approve | ||
Review via email:
|
Description of the change
Add an argument to libgrip subscriptions to subscribe only on specific device types:
Possible values:
* GRIP_DEVICE_ALL
or the logical OR'ing of:
* GRIP_DEVICE_
* GRIP_DEVICE_
* GRIP_DEVICE_
To post a comment you must log in.
(1) If you initialize GRIP_DEVICE_ALL to (GRIP_DEVICE_ TOUCHSCREEN | GRIP_DEVICE_ TOUCHPAD | GRIP_DEVICE_ INDEPENDENT) it makes the logic in grip_devices_ for_type( ) simpler and makes a lot of sense.
(2) The devices field of the GripGestureMana gerPrivate structure should be initialized in grip_gesture_ manager_ init() not in grip_gesture_ manager_ constructor( ), but grip_get_devices() still should be called from grip_gesture_ manager_ constructor( ).
(3) The public API change breaks the ABI, so this change should really include a version bump. This version is not backwards compatible with earlier versions.