~unity-team/unity/trunk

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/GeisAdapter.cpp

  • Committer: Tarmac
  • Author(s): Daniel d'Andrada
  • Date: 2012-04-06 02:11:51 UTC
  • mfrom: (2198.1.6 lp940612_v2)
  • Revision ID: tarmac-20120406021151-wpjwi2lgqivdl0p3
Fix the three-finger move for unity.. Fixes: https://bugs.launchpad.net/bugs/940612. Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TIMESTAMP))
238
238
      result->timestamp = attr.integer_val;
239
239
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_X))
240
 
      result->focus_x = attr.integer_val;
 
240
      result->focus_x = attr.float_val;
241
241
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y))
242
 
      result->focus_y = attr.integer_val;
 
242
      result->focus_y = attr.float_val;
243
243
    else if (g_str_equal (attr.name, GEIS_GESTURE_ATTRIBUTE_TOUCHES))
244
244
      result->touches = attr.integer_val;
245
245
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_GESTURE_NAME))
289
289
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TIMESTAMP))
290
290
      result->timestamp = attr.integer_val;
291
291
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_X))
292
 
      result->focus_x = attr.integer_val;
 
292
      result->focus_x = attr.float_val;
293
293
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y))
294
 
      result->focus_y = attr.integer_val;
 
294
      result->focus_y = attr.float_val;
295
295
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TOUCHES))
296
296
      result->touches = attr.integer_val;
297
297
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_BOUNDINGBOX_X1))
322
322
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TIMESTAMP))
323
323
      result->timestamp = attr.integer_val;
324
324
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_X))
325
 
      result->focus_x = attr.integer_val;
 
325
      result->focus_x = attr.float_val;
326
326
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y))
327
 
      result->focus_y = attr.integer_val;
 
327
      result->focus_y = attr.float_val;
328
328
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TOUCHES))
329
329
      result->touches = attr.integer_val;
330
330
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_POSITION_X))
367
367
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TIMESTAMP))
368
368
      result->timestamp = attr.integer_val;
369
369
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_X))
370
 
      result->focus_x = attr.integer_val;
 
370
      result->focus_x = attr.float_val;
371
371
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y))
372
 
      result->focus_y = attr.integer_val;
 
372
      result->focus_y = attr.float_val;
373
373
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TOUCHES))
374
374
      result->touches = attr.integer_val;
375
375
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_RADIUS))
406
406
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TIMESTAMP))
407
407
      result->timestamp = attr.integer_val;
408
408
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_X))
409
 
      result->focus_x = attr.integer_val;
 
409
      result->focus_x = attr.float_val;
410
410
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_FOCUS_Y))
411
 
      result->focus_y = attr.integer_val;
 
411
      result->focus_y = attr.float_val;
412
412
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_TOUCHES))
413
413
      result->touches = attr.integer_val;
414
414
    else if (g_str_equal(attr.name, GEIS_GESTURE_ATTRIBUTE_ANGLE))