diff options
author | Cody Russell <crussell@canonical.com> | 2010-09-14 16:08:04 -0500 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-09-14 16:08:04 -0500 |
commit | 846ae96e138bf2f0d9b488168f02b3350dcae0d9 (patch) | |
tree | 8e773cccfad055b8e8cc245291db524968c9e3d8 /example | |
parent | 8a939cf2afb51763af03f765384133c99a682576 (diff) | |
download | ayatana-ido-846ae96e138bf2f0d9b488168f02b3350dcae0d9.tar.gz ayatana-ido-846ae96e138bf2f0d9b488168f02b3350dcae0d9.tar.bz2 ayatana-ido-846ae96e138bf2f0d9b488168f02b3350dcae0d9.zip |
GEIS updates.
Diffstat (limited to 'example')
-rw-r--r-- | example/gesture.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/example/gesture.c b/example/gesture.c index 57c4c24..da5c65e 100644 --- a/example/gesture.c +++ b/example/gesture.c @@ -97,6 +97,8 @@ pinch_update (GtkWindow *window, scale += e->radius_delta / 100; + g_print ("radius_delta == %f, scale is now %f\n", e->radius_delta, scale); + gtk_widget_queue_draw (GTK_WIDGET (window)); } @@ -120,21 +122,24 @@ window_mapped (GtkWidget *widget) ido_gesture_manager_register_window (manager, window, - IDO_GESTURE_PINCH2, + IDO_GESTURE_PINCH, + 2, gesture_start, pinch_update, gesture_end); ido_gesture_manager_register_window (manager, window, - IDO_GESTURE_ROTATE2, + IDO_GESTURE_ROTATE, + 2, gesture_start, rotate_update, gesture_end); ido_gesture_manager_register_window (manager, window, - IDO_GESTURE_DRAG2, + IDO_GESTURE_DRAG, + 2, gesture_start, drag_update, gesture_end); |