Re: Glib-Perl - GSList in a signal callback?



we could (have) provide(d) typemaps that translated glists back and
forth between perl array references, but that seemed a little in
efficient and a few cases it didn't seem like what you would want to
happen. there's plenty of code around Gtk2 that gives examples of how to
deal with them in several different ways.

-rm

On Sun, 2003-05-25 at 23:10, Brett Kosinski wrote:
Does Glib-Perl know how to deal with GSList instances being passed as
parameters to a signal callback?  AFAICT, Glib-Perl uses introspection to
figure out how to marshall parameters into Perl objects, however GSLists
have no inherent type, meaning G_TYPE_POINTER is used, causing Glib-Perl
to simply return an integer value instead of an expanded list.  So, does
this sound right, or am I missing something?

Brett.

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list




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