GNOME Bugzilla – Bug 88155
Motif DnD not working properly
Last modified: 2013-03-13 00:04:53 UTC
I've discovered that, most of the time, Motif DnDs don't work properly. I'm not really sure exactly where the bug lies, but it seems to be a gtk, possibly a gdk, problem. I've only noticed the problem in dragging *to* Motif destinations, but there could be a similar problem in reverse, as well. I'm not sure. When dragging to a Motif DnD source, only very occasionally does the Motif client recognize the data format, I think. By very occasionally, I mean that it is consistent, but very few sources supply the correct data. For example, I've yet to find any sources within Nautilus or Mozilla that seem to function properly, and the only Galeon source that seems to work right is the Drag-URL-From-Here widget next to the URL entry area. For the Motif destination, I've tried a number of Java apps (where I first noticed the problem), using the Blackdown, IBM, and Sun JDKs (Kaffe doesn't yet support DnD), and also the dtdnddemo app provided with Solaris. They all seem to exhibit exactly the same symptoms. The Java apps never see a ``dataFlavor'' except from my Galeon example above, and dtdnddemo never allows a drop except, again, for that example. I've seen this basic problem with all versions of gtk I've tried, but I've seen these exact results under 2.0.3 and 1.2.10. I can provide a simple Java source to show these symptoms, if you need. And sorry for the imprecise bug report.
See also bug 82354. The basic situation is that Motif DND is: - An undocumented protocol - A buggy implementation. So, the chances of getting GTK+ to work 100% right are low. (And I don't plan on working this in the forseeable future.) The right direction is: - Java should use the Xdnd protocol - Motif apps should be gotten rid of :-) Though it sounds like your problems are mostly lack of standardization of drop data types.
Move various non-critical bugs onto 2.2.1 milestone.
I fixed one bug with Motif DND recently: Tue May 20 15:48:45 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkselection.c (_gtk_selection_request): Handle the case where the property type for the multiple atoms is ATOM_PAIR by doing the conversions ourselve. This is needed for Xt inter-operation. but that would have been a new bug in 2.2.x, and not have been in older versions of GTK+.
Bug 113394 is another cause of Motif DND problems
J2SE 5.0 implements XDND
motif dnd has been dropped now