From 203f600373d736853f7dc335275de8c586cd2cdc Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 25 Jan 2012 18:31:32 +0100 Subject: [PATCH] gtkhsv: Use symbolic names for button numbers --- gtk/gtkhsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index 044a3a3ecf..e3756675dd 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -723,7 +723,7 @@ gtk_hsv_button_press (GtkWidget *widget, GtkHSVPrivate *priv = hsv->priv; double x, y; - if (priv->mode != DRAG_NONE || event->button != 1) + if (priv->mode != DRAG_NONE || event->button != GDK_BUTTON_PRIMARY) return FALSE; x = event->x; @@ -773,7 +773,7 @@ gtk_hsv_button_release (GtkWidget *widget, DragMode mode; gdouble x, y; - if (priv->mode == DRAG_NONE || event->button != 1) + if (priv->mode == DRAG_NONE || event->button != GDK_BUTTON_PRIMARY) return FALSE; /* Set the drag mode to DRAG_NONE so that signal handlers for "catched"