Re: Glib-Perl - GSList in a signal callback?
- From: muppet <scott asofyet org>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: Glib-Perl - GSList in a signal callback?
- Date: 25 May 2003 23:44:17 -0400
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?
do you have example code?
GSList and GList fall under the category of "functionality that overlaps
with perl", so in general, GSList and GList are translated transparently
to perl lists.
that said, there is no special handling for GSList or GList in the
marshalling code (since they don't have GTypes). i don't recall seeing
list pointers in callback parameters, but that doesn't mean that it
can't happen. so, i can't really say anything without some example
code.
note: the biggest exception to this is radiobutton groups, which are
handled as array references rather than as arrays.
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]