summaryrefslogtreecommitdiff
path: root/tests/testinput.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-03-12 14:47:02 +0000
committerJavier Jardón <jjardon@gnome.org>2012-03-13 13:10:30 +0000
commit45f660ef750457e0ba08052f1800c35c218cc426 (patch)
treeccde3d0c0bf2cefe30af7908fcc510fc50971f50 /tests/testinput.c
parent35af1275309783f87fdd00dcaa546ddaccf3605b (diff)
downloadgtk+-45f660ef750457e0ba08052f1800c35c218cc426.tar.gz
Use GDK symbolic names for button numbers
Diffstat (limited to 'tests/testinput.c')
-rw-r--r--tests/testinput.c3
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;