[Gambas-user] Drag mimetypes, trying to get pluma to open a file
adamnt42 at gmail.com
Mon Sep 13 20:04:31 CEST 2021
On Mon, 2021-09-13 at 18:20 +0100, Bruce Steers wrote:
> I'm struggling with this one..
> trying to get pluma to accept a drop as a file to open and not just
> the filename into the document.
> I've tried...
> *MyObject.Drag(sFileName, "text/plain")*
> *MyObject.Drag("file://" & sFilePath, "text/plain")*
> this only inserts text into document.
> *MyObject.Drag( "file://" & sFilePath, "text/uri-list")*
> with uri-list it causes my drag operation to lock up my program
> (only with pluma not my own gambas apps that do not differentiate
> drag formats yet)
> *MyObject.Drag( "file://" & sFilePath, "text/uri-list;text/plain")*
> same result as using text/uri-list alone
> if use *Drag.Formats.Join(";")* from caja onto my app i get...
> trying to use *x-special/mate-icon-list* causes the drag operation to
> with "Bad drag format"
> Anyone cleared this hurdle before?
> Thanks in advance
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Try this: https://forums.linuxmint.com/viewtopic.php?t=208477
(buggered if I'm going to wade through it.)
More information about the User