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

drag 'n' drop details....



Hey all,

Just in case some people missed my previous post

Thx Eric for archive hint! A 3rd party widget repository was found :

http://netcolony/members/gtk/


In testdnd.c the following declarations appear:

******************

enum {
  TARGET_STRING,
  TARGET_ROOTWIN,
  TARGET_URL
};

static GtkTargetEntry target_table[] = {
  { "STRING",     0, TARGET_STRING },
  { "text/plain", 0, TARGET_STRING },
  { "text/uri-list", 0, TARGET_URL },
  { "application/x-rootwin-drop", 0, TARGET_ROOTWIN }

******************

My question is where can I find a list of all the possible candidates
for the first field in the GtkTargetEntry struct, and what they
represent. Grepping through the gtk sources and the X11 headers came up
with nothing (I could have goofed here :) ), except for
application/x-rootwin-drop within GDK (which it checks for but no
indication of its origin).  I get the impression these strings are
recognised internally by X as standard types for drag and drop, but I can
find no mention of them within
Xlib Ref Manual vol II.

Within one of the drag'n'drop tutorials there is a gettargets.c which
outputs the following:

TIMESTAMP
TARGETS
MULTIPLE
STRING
TEXT
COMPOUND_TEXT

using gdk_atom_intern and gdk_atom_name as wrappers to XInternAtom and
XGetAtomName. How does one get from TEXT say, to say the string
"text/uri-list" (a typo? perhaps "text/url-list") in the GtkTargetEntry
struct? (what does MULTIPLE mean?)

Some pointers would be gratefully received.

The reason I ask is that I wish to drag 'n' drop custom widgets between
processes. (Even perhaps custom widgets which are only registered within one
of the process instances of gtk..... he idly fantasises)

Gratitude in advance,
Samuel









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