[gtk+] gtkhsv: Use symbolic names for button numbers
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkhsv: Use symbolic names for button numbers
- Date: Fri, 27 Jan 2012 08:49:13 +0000 (UTC)
commit 203f600373d736853f7dc335275de8c586cd2cdc
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Jan 25 18:31:32 2012 +0100
gtkhsv: Use symbolic names for button numbers
gtk/gtkhsv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index 044a3a3..e375667 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]