Re: Drag and drop to/from GtkTreeView



On 2002.05.12 06:39 Renaud Chaillat wrote:

The long question follows :-)
By looking at the GtkTreeStore example, it made sense to implement 
GtkTreeDragDestIFace and GtkTreeDragSourceIFace in my own tree model.
Fine, and all works, except one little thing: there's no more 
"info" parameter in drag-data-get and drag-data-received handlers 
signatures. How can we format the data to export if we don't know 
the target ?

I also tried with the old gtk_drag_source_set and such, with 
appropriate handlers, but then, even though this works fine to 
export data, things get sad the other way around: the tree does 
not seem to care about the drag-motion. A quick glance at the source 
gave me the impression that the dnd code in gtktreeview expects 
the model to implement the appropriate interface. Fine, this makes 
sense, but I'm back to my question :-)

Hi,

    Does the widget have the pointer motion mask set? It might
not be checking for motion events at all. Next you should take
a look at the updated GTK DND tutorial which now covers drag
motion.

http://wolfpack.twu.net/docs/gtkdnd

--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/



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