How do I control the incoming DND content type?




I'm trying to control the incoming DND content type.  Specifically, I want
to received content of type text/uri-list from Rasca's xtree application
[1].  I've hacked up the testdnd target table to the following:

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

xtree's table looks something like this:

static GtkTargetEntry target_table[] = {
 {"application/x-xtree-widget",GTK_TARGET_SAME_WIDGET,TARGET_XTREE_WIDGET },
 {"application/x-xtree-app", GTK_TARGET_SAME_APP, TARGET_XTREE_WINDOW },
 {"STRING",     	0, TARGET_STRING },
 {"text/plain", 	0, TARGET_PLAIN },
 {"text/uri-list",	0, TARGET_URI_LIST },
};


When I drag a file from xtree to my app, I get something of type STRING
and the content is something specific to xtree.

I've tried several variations for my target_table (reordering, using a
different type for text/uri-list, getting rid of STRING).  I've talked
with Rasca also and tried all of his ideas.  I'm using gtk/glib 1.1.13,
X11 6.1, Xext 6.3.

Any ideas?

	David

[1] http://www.komm.hdk-berlin.de/~rasca/xap/


      __          _    __  
  ___/ /__ __  __(_)__/ /  David Helder - University of Michigan
 / _  / _ `/ |/ / / _  /   dhelder@umich.edu
 \_,_/\_,_/|___/_/\_,_/    http://www.eecs.umich.edu/~dhelder





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