Commit 6e9b0602 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

gtkdnd: Use symbolic names for button numbers

parent 7f2b08c0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment