[Gtk-sharp-list] DnD Sample

underdog10 at netcourrier.com underdog10 at netcourrier.com
Sat Jul 9 15:41:06 EDT 2005


Hi!

I'd like to drop to my application files from Explorer on GNU/Linux and win32. The testdnd program in the GTK# distribution doesn't show how to received data from an another application.

The drag can be initiated but I can not drop into another program.
The testdnd program uses the following target entry list:

static GtkTargetEntry target_table[] = {
  { "STRING",     0, TARGET_STRING },
  { "text/plain", 0, TARGET_STRING },
  { "application/x-rootwindow-drop", 0, TARGET_ROOTWIN }
};

I try to replace uri string to match the files type i want to drop, but did not have any succes.

I would like to be able to drop archive file into my application.

Do I need to add another entry? Or is it a feature not already implemented in 
GTK?

Thanks for help,

Underdog

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,16 € TTC/min)



More information about the Gtk-sharp-list mailing list