google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Drag And Drop Data from CAJA and Nautilus #373

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.

I've recently ported over to MATE on Linux Mint 14.

The only issue I have come across is that I wrote a few applications in gambas 
2 & 3 that use the "drop and drag" feature of nautilus - in that I can drag a 
file from nautilus into my gambas program and it will give me the URL to the 
file to then process. Caja doesn't seem to support this, but instead only gives 
me the X & Y of where the mouse is on the drop target and not the file location.

Has anyone played with this sort of thing before with Caja? It works fine in 
Nautilus.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: 3.3.3
Operating system: Linux
Distribution: Mint (Ubuntu Nadia)
Architecture: x86_64 & ARM
GUI component:QT4
Desktop used: MATE

5) Explain clearly how to reproduce the bug or the crash.
Make any form object able to receive a drop target.. ie image

PUBLIC SUB PictureBox1_Drop()

  'recieve drop and get file path
  drop_picture_path = urlencode(Drag.Data)
  'PRINT drop_picture_path
  picture_filename = findfilename(drop_picture_path)
  'PRINT picture_filename

The problem is under nautilus it works just fine, but Caja reports the mouse X 
& Y co-ordinates in the drag.DATA instead of the URL.

Original issue reported on code.google.com by bjda...@gmail.com on 4 Jan 2013 at 6:54