Gtk2::TreeView drag'n drop



Jens Luedicke writes:
I would like to enable drag'n drop between
two Gtk2::TreeView's. My code allows
to start dragging, but I can't drop anything.

I don't exactly understand drag-n-drop, but I have got enough of it
working for me to do what I want, so maybe we can muddle through
this. Have you done something like:

$treeview->drag_dest_set('all',
                         ['default','copy','move','link','private', 'ask'],
                         {'target' => 'text/plain', 'flags' => 0, 'info' => TARGET_STRING},
                         );

Where that last hash ref is actually probably not what I offered up,
but that might at least get the messages flowing.

Dan




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