From 6e9b06028cc506932cb0c21849904557d0598855 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 25 Jan 2012 18:26:04 +0100 Subject: [PATCH] gtkdnd: Use symbolic names for button numbers --- gtk/gtkdnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index bcd7a29dff..f77cc7ea0c 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -732,7 +732,7 @@ gtk_drag_get_event_actions (GdkEvent *event, break; } - if ((button == 2 || button == 3) && (actions & GDK_ACTION_ASK)) + if ((button == GDK_BUTTON_MIDDLE || button == GDK_BUTTON_SECONDARY) && (actions & GDK_ACTION_ASK)) { *suggested_action = GDK_ACTION_ASK; *possible_actions = actions;