Re: Enabling drag destination



On Tue, Nov 22, 2011 at 1:22 PM, Chris Vine <chris cvine freeserve co uk> wrote:
I did check this out before posting and with
gobject-introspection-1.30.0 it doesn't work for the same reason that
constructing a Gtk.TargetEntry object doesn't work, namely that this;

var targets = new Gtk.TargetList();

generates this error in gjs:

Unable to construct boxed type TargetList since it has no zero-args
<constructor>, can only wrap an existing one"

You should be able to work around this by doing

var targets = Gtk.TargetList.new(entries);


Florian


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