gtkdnd: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:26:04 +01:00 committed by Carlos Garcia Campos
parent 7f2b08c04d
commit 6e9b06028c

View File

@ -732,7 +732,7 @@ gtk_drag_get_event_actions (GdkEvent *event,
break; 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; *suggested_action = GDK_ACTION_ASK;
*possible_actions = actions; *possible_actions = actions;