Gtk3 and drag'n'drop

I've almost got drag'n'drop working in Gtk3, but I'm just missing the
final piece:

To finish a drag in Gtk2, you call finish() on the context, typically like:

 $context->finish(1, $delete, time);

If I do this in Gtk3, I get:

*** unhandled exception in callback:
***   Can't locate object method "finish" via package
"Glib::Object::_Unregistered::GdkX11DragContext" at ../
line 251.
***  ignoring at /usr/share/perl5/ line 546.

I can't find any docs or examples for dnd and Gtk3 in Perl, but the C
docs describes finish:

This python example doesn't finish the drag:

So - what is the Perl equivalent of gtk_drag_finish()?



P.S. For those interested, I got most of the way through transcribing
the drag and drop tutorial here:

and have attached the results (which show the above problem).

Description: Perl program

Attachment: signature.asc
Description: OpenPGP digital signature

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