XDND interoperability?

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
XDND interoperability?

Submitted by Anonymous on Wed, 08/07/2002 - 15:41. Developers
Hi,

I`ve read somewhere that KDE and GNOME, which both use the XDND protocol, now also support Motif drag-n-drop (at least partially). So I gave it a shot and added a "text/uri-list" target (the standard XDND target for filename lists) to my file manager (xplore), passing the filename(s) as a cr-lf-delimited list of URLs in plain ASCII, as specified by the text/uri-list MIME format.

The result Konqueror apparently just ignores the target, and nautilus complains about an invalid transfer type and then dumps core. And in both cases, my conversion callback apparently never gets invoked. (

Does anyone have a working piece of Motif code demonstrating how to do drag-n-drop between Motif and GNOME/Gtk or KDE/Qt applications? (Preferably using the Motif 2.x dnd interface.)

To the OpenMotif developers Are there any plans to add XDND interoperability to a future OpenMotif version? I think that this would be a good idea.

Any help appreciated.

TIA
Albert Graef

Anonymous

The great news in the open model is you can fix Gnome and KDE youself )

Though documentation for the expensive systems are not supposed to be available on the interent some have allowed them to be.

You can probably find the real specification and an example. Its not infrequent that colleges do this; they aquire expensive machines to attract students - and their students need to study it.

On the other hand, I`d poke into the online cvs of Gnome at source forge and look at Gnome`s source. That might prove quicker and easier. That might point out an X structure member unknown to you that it checks, right? Then you`d know right away their was one more minimum structure to fill out and you`d likely be able to supply the rest.

Hope that helps,

John Hendrickson

Anonymous

> The great news in the open model is you can fix Gnome and KDE youself )

Hmm yes, thanks, but I don`t have the time to do that right now, I`m busy enough fixing my own bugs. )

I`m not very inclined to dig into the Qt/Gtk sources to find out how exactly they support Motif either. I`ve done my web search, of course, but that didn`t turn up much docs or code on Motif/XDND interoperability.

Well, I guess I`ll just add XDND support to my application, then I won`t have to rely on compatibility layers in Qt, Gtk or Motif. But OM really should add XDND support some time, it`s getting so ubiquitous these days...

Thanks,
Albert Graef

Anonymous

Ok, I finally figured it out (more or less)

- KDE only supports Motif drops, and uses the STRING target
instead of text/uri-list (however, the value should be encoded
as a text/uri-list).

- GNOME supports both Motif drags and drops, and uses the
text/uri-list target, but in GNOME 1.4 Nautilus dumps core on a
Motif drop, whereas Motif drags work as expected. This seems to
be a bug in that Nautilus version, as other GNOME apps like
gedit work ok.