Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 40987 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I have some problems with the drag and drop feature of GTKSharp.
I are using this code for set data from a custom widget:
private static TargetEntry target_table = new TargetEntry
new TargetEntry ("STRING", 0, (uint) TargetType.String ),
new TargetEntry ("text/plain", 0, (uint) TargetType.String),
new TargetEntry ("application/x-rootwindow-drop", 0, (uint) TargetType.RootWindow)
On constructor method:
// Drag and drop
Gtk.Drag.SourceSet(this, Gdk.ModifierType.Button1Mask | Gdk.ModifierType.Button3Mask, target_table, Gdk.DragAction.Copy | Gdk.DragAction.Move);
this.DragDataGet += HandleSourceDragDataGet;
And finally HandleSourceDragDataGet method:
private void HandleSourceDragDataGet(object sender, DragDataGetArgs args)
if (args.Info == (uint)TargetType.RootWindow)
WaveEditorServices.LogService.WriteDebug("Asset Preview debug", "I was dropped on the rootwin");
args.SelectionData.Text = this.file.Id;
After the line "args.SelectionData.Text = this.file.Id;" the Text property is null on MacOSX. However this work fine on Windows and Linux. So data are sending as null.
Which is the problem with my code?
This seems like maybe a bug in gtk, but I need to investigate more to be certain.
Hi Cody Russell, Did you find some workaround that we can use?