diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-03-12 14:47:02 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-03-13 13:10:30 +0000 |
commit | 45f660ef750457e0ba08052f1800c35c218cc426 (patch) | |
tree | ccde3d0c0bf2cefe30af7908fcc510fc50971f50 /tests/testinput.c | |
parent | 35af1275309783f87fdd00dcaa546ddaccf3605b (diff) | |
download | gtk+-45f660ef750457e0ba08052f1800c35c218cc426.tar.gz |
Use GDK symbolic names for button numbers
Diffstat (limited to 'tests/testinput.c')
-rw-r--r-- | tests/testinput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testinput.c b/tests/testinput.c index 8bea4749d1..957e6ae122 100644 --- a/tests/testinput.c +++ b/tests/testinput.c @@ -181,7 +181,8 @@ button_press_event (GtkWidget *widget, GdkEventButton *event) current_device = event->device; cursor_proximity = TRUE; - if (event->button == 1 && surface != NULL) + if (event->button == GDK_BUTTON_PRIMARY && + surface != NULL) { gdouble pressure = 0.5; |