After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 88155 - Motif DnD not working properly
Motif DnD not working properly
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Low normal
: Medium fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-07-14 18:54 UTC by Bitt Faulk
Modified: 2013-03-13 00:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bitt Faulk 2002-07-14 18:54:04 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.
Comment 1 Owen Taylor 2002-07-30 22:05:27 UTC
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.

Comment 2 Owen Taylor 2002-10-24 16:58:55 UTC
Move various non-critical bugs onto 2.2.1 milestone.
Comment 3 Owen Taylor 2003-05-22 15:57:02 UTC
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+.
Comment 4 Owen Taylor 2003-08-07 19:28:53 UTC
Bug 113394 is another cause of Motif DND problems
Comment 5 Matthias Clasen 2004-12-22 19:30:49 UTC
J2SE 5.0 implements XDND
Comment 6 Matthias Clasen 2013-03-13 00:04:53 UTC
motif dnd has been dropped now