Merge lp:~bregma/geis/lp-740284 into lp:geis

Proposed by Stephen M. Webb
Status: Merged
Merged at revision: 121
Proposed branch: lp:~bregma/geis/lp-740284
Merge into: lp:geis
Prerequisite: lp:~bregma/geis/lp-737745
Diff against target: 69 lines (+16/-6)
3 files modified
ChangeLog (+11/-1)
libutouch-geis/backend/xcb/geis_xcb_backend.c (+2/-2)
testsuite/geistest/geistest.c (+3/-3)
To merge this branch: bzr merge lp:~bregma/geis/lp-740284
Reviewer Review Type Date Requested Status
Chase Douglas (community) Approve
Henrik Rydberg (community) Approve
Review via email: mp+54381@code.launchpad.net

Description of the change

Causes the grail gesture_id to be reported via the GEIS v1 API.

Fixes LP: #740284.

To post a comment you must log in.
Revision history for this message
Henrik Rydberg (rydberg) wrote :

It is nice when the problem is of this kind, and the fix so obvious :-)

review: Approve
Revision history for this message
Chase Douglas (chasedouglas) wrote :

Test unit would be nice again, but not necessary right now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-03-22 16:41:07 +0000
+++ ChangeLog 2011-03-22 16:41:07 +0000
@@ -1,6 +1,16 @@
12011-03-22 Stephen M. Webb <stephen.webb@canonical.com>12011-03-22 Stephen M. Webb <stephen.webb@canonical.com>
22
3 Corrected the number of touches on a gesture event (LP: #737745)3 Passed the correct gesture_id to GEIS v1 callbacks (LP: #740284).
4
5 * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture):
6 Used the grail gesture_id as the frame_id.
7 * testsuite/geistest/geistest.c (gesture_update): reported the gesture_id
8 (gesture_start): reported the gesture_id
9 (gesture_finish): reported the gesture_id
10
112011-03-22 Stephen M. Webb <stephen.webb@canonical.com>
12
13 Corrected the number of touches on a gesture event (LP: #737745).
414
5 * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture):15 * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture):
6 replaced geis_xcb_backend_touch_count() call with a calculation based on16 replaced geis_xcb_backend_touch_count() call with a calculation based on
717
=== modified file 'libutouch-geis/backend/xcb/geis_xcb_backend.c'
--- libutouch-geis/backend/xcb/geis_xcb_backend.c 2011-03-22 16:41:07 +0000
+++ libutouch-geis/backend/xcb/geis_xcb_backend.c 2011-03-22 16:41:07 +0000
@@ -227,10 +227,10 @@
227 GeisGroup group = geis_group_new(1);227 GeisGroup group = geis_group_new(1);
228 geis_groupset_insert(groupset, group);228 geis_groupset_insert(groupset, group);
229229
230 GeisFrame frame = geis_frame_new(1);230 GeisFrame frame = geis_frame_new(grail_event->gesture_id);
231 geis_group_insert_frame(group, frame);231 geis_group_insert_frame(group, frame);
232232
233 GeisAttr attr = NULL;;233 GeisAttr attr = NULL;
234234
235 GeisInteger ival = grail_event->device_id;235 GeisInteger ival = grail_event->device_id;
236 attr = geis_attr_new(GEIS_GESTURE_ATTRIBUTE_DEVICE_ID,236 attr = geis_attr_new(GEIS_GESTURE_ATTRIBUTE_DEVICE_ID,
237237
=== modified file 'testsuite/geistest/geistest.c'
--- testsuite/geistest/geistest.c 2011-03-13 04:25:45 +0000
+++ testsuite/geistest/geistest.c 2011-03-22 16:41:07 +0000
@@ -123,7 +123,7 @@
123 GeisGestureAttr *attrs)123 GeisGestureAttr *attrs)
124{124{
125 int i = 0;125 int i = 0;
126 fprintf(stdout, "Gesture type %d started\n", gesture_type);126 fprintf(stdout, "Gesture id %d type %d started\n", gesture_id, gesture_type);
127 for (i = 0; i < attr_count; ++i)127 for (i = 0; i < attr_count; ++i)
128 print_attr(&attrs[i]);128 print_attr(&attrs[i]);
129}129}
@@ -136,7 +136,7 @@
136 GeisGestureAttr *attrs)136 GeisGestureAttr *attrs)
137{137{
138 int i = 0;138 int i = 0;
139 fprintf(stdout, "Gesture type %d updated\n", gesture_type);139 fprintf(stdout, "Gesture id %d type %d updated\n", gesture_id, gesture_type);
140 for (i = 0; i < attr_count; ++i)140 for (i = 0; i < attr_count; ++i)
141 print_attr(&attrs[i]);141 print_attr(&attrs[i]);
142}142}
@@ -149,7 +149,7 @@
149 GeisGestureAttr *attrs)149 GeisGestureAttr *attrs)
150{150{
151 int i = 0;151 int i = 0;
152 fprintf(stdout, "Gesture type %d finished\n", gesture_type);152 fprintf(stdout, "Gesture id %d type %d finished\n", gesture_id, gesture_type);
153 for (i = 0; i < attr_count; ++i)153 for (i = 0; i < attr_count; ++i)
154 print_attr(&attrs[i]);154 print_attr(&attrs[i]);
155}155}

Subscribers

People subscribed via source and target branches