populate drag-drop list of files in a more cross-platform way (requires latest uwt)

This commit is contained in:
Michael Becker 2020-06-17 18:32:49 -04:00
parent b5af263ae8
commit 961dd0ad54
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace UniversalEditor.Editors.FileSystem
// FIXME: this is GTK-specific...
this.tv.RegisterDragSource(new DragDropTarget[]
{
new DragDropTarget("text/uri-list", DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x0)
new DragDropTarget(DragDropTargetTypes.FileList, DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x0)
}, DragDropEffect.Copy, MouseButtons.Primary | MouseButtons.Secondary, KeyboardModifierKey.None);
this.tv.DragDropDataRequest += tv_DragDropDataRequest;

View File

@ -737,7 +737,7 @@ namespace UniversalEditor.UserInterface
{
this.RegisterDropTarget(new DragDropTarget[]
{
new DragDropTarget("text/uri-list", DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x1)
new DragDropTarget(DragDropTargetTypes.FileList, DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x1)
}, DragDropEffect.Copy, MouseButtons.Primary | MouseButtons.Secondary, KeyboardModifierKey.None);
Engine.CurrentEngine.Windows.Add(this);