Not understanding GtkTargetEntry



I'm trying to get my app to do drag and drop but I'm getting a bit confused.

I want to call gtk_drag_dest_set on my widget, but I have to supply an array of GtkTargetEntry structs to tell GTK what types of data my widget will accept being dropped onto it. I looked into setting these up but the manual and tutorial only talk vaguely about setting the target field of these GtkTargetEntry structs to "a string representing the drag type". Nowhere does it say what this string is supposed to be. I want to accept the dropping of files onto my widget, so is it something like "file"?

Thanks.

Chris Seaton



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]