Neil Hodgson wrote:
Robert Roessler:
...
Anyway, thanks for looking at this, Neil and John - let me know if I
can do anything to help.  A suggestion - put back the old code for now
as I propose, and then I could help with (or write?) a more correct
version along the lines of the DROPFILES_DND type that John mentions
for the next release cycle.

  Its most likely that "text/uri-list" is spelled differently for
Windows and can be made into a conditional #define.

I followed up on John's look at this with an atom set to match DROPFILES_DND... and things work fine with one of the latest Win32 versions of GTK (2.8.18) and glib (2.10.3).

So it looks to me like one can just take the released version of ScintillaGTK.cxx and use the initial if clause with an
"|| selection_data->type == atomDROPFILES_DND"
added (with the appropriate declarations and intializations for atomDROPFILES_DND, of course) - that is what I have done for testing purposes.

I also note that when *multiple* URIs are dropped at the same time, one gets all of them - but with [on Windows, anyway] a 0D/0A between them.

I would be fine with using this approach all of the time (treating this additional atom type as equivalent to atomUriList), but if you and/or John feel that this should be a GTK-on-Windows thing only, we could - but then there is that much more conditional compile stuff.

Finally, how about uncommenting the "unrecognized" case error print - that seems to be the GTK/glib way anyway... this would have been a little easier to diagnose if that message had shown.

I will post my version of a solution later today (for me) on my site as usual (the older version is still there for now).

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to