mono/xwt — pull request #372 by alanmcgovern (2014-07-31 23:16:20+00:00)
Title: [Xwt.Gtk] Handle when multiple drag/drop datatypes are allowed

If SetDragDropTarget is called and multiple types are passed in,
DragDataRequests will be set equal to the number of items passed
in.

Util.GetSelectionData already filters out requests which do not
match the current atom, so i believe the correct fix is to simply
remove the 'if' statement which comes after it. As i'm not 100%
sure if that is safe to do, i instead changed it to a >= 0, which
should be perfectly safe.

The exact case where this was failing was if you registered as supporting
Foo and Bar and then tried to do a drag of type Bar. On my system it
would check the 'Bar' TransferDataType' first and then not emit the
events because DragDataRequests was equal to 1.