On Thu, 25 Jan 2001, James Henstridge wrote:
> On Wed, 24 Jan 2001, Martin Preishuber wrote:
>
> > Hi,
> >
> > I've some problems with the D&D thingie ... I'm the author of ERoaster,
> > a GNOME-frontend for cdrecord & mkisofs. I've D&D support included,
> > which works fine for gmc, but not for other file-managers
> > (I'm thinking especially of konqueror). The code I use is basically
> >
> > targets = [('text/plain', 0, 1),
> > ('text/uri-list', 0, 2)]
> >
> > files.connect("drag_data_received", self.DragDataReceive)
> > files.drag_dest_set(DEST_DEFAULT_ALL, targets, GDK.ACTION_COPY)
> >
> > which is enough for getting the files in self.DragDataReceive
> >
> > I tried DEST_DEFAULT_DROP but then I didn't get any response
> > (except of one avi file with gmc).
>
> Do you know what types konquerer uses for its drags? If you don't specify
> a type it uses, then the drag will not complete.
it uses 'text/uri-list' (at least that's what the author of ksysv told
me) ... but as far as I know, the target is only used if you use
DEST_DEFAULT_DROP ... it's not used with DEST_DEFAULT_ALL
I tried using DEST_DEFAULT_DROP but then I didn't get any drop events
at all (even if the icon wasn't a forbidden sign from konqueror any
more)
> Also make sure the app is a Qt >= 2.0 app, as earlier ones didn't use the
> XDnD protocol.
I use KDE 2.0.1 and QT 2.2.2
Martin
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk