Re: Passing a GType to a native function from Perl



On Mon, Nov 14, 2011 at 11:33, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
On 14.11.2011 09:23, Emmanuel Rodriguez wrote:

WebKit registers some "features" that I would like to remove from a
Perl script. I couldn't find a direct way to pass a GType or to
retrieve one from Perl without using XS. Is that possible?

G:O:Introspection has code to handle this in exactly the way you do in the
xsub:

<http://git.gnome.org/browse/perl-Glib-Object-Introspection/tree/gperl-i11n-marshal-arg.c#n83>
<http://git.gnome.org/browse/perl-Glib-Object-Introspection/tree/gperl-i11n-marshal-arg.c#n195>

Does that not work for you?

Now it does! I had a typo in the class name
Gtk3::WebKitSoupAuthDialog (bad) vs Gtk3::WebKit::SoupAuthDialog
(Good)

Thanks,
-- 
Emmanuel Rodriguez



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