On 04/12/2007, Emmanuele Bassi <[EMAIL PROTECTED]> wrote:
> the library should provide the GType for this enumeration, not the
> bindings; you should ask the author to do that, because bindings will
> have to keep a private function and nobody will be able to use that
> enumeration in properties or signal marshallers even in C.

I suggested this to Björn:

On 05/12/2007, BJörn Lindqvist <[EMAIL PROTECTED]> wrote:
> It is true that the enumeration GTypes probably should be declared in
> the C library, although it is not strictly necessary AFAIK. Take a
> look at how PyGtkImageView gets around it in
> http://trac.bjourne.webfactional.com/browser/pygtkimageview/src/Makefile.am.
> I think a similar workaround should be possible for the Perl bindings.

But as far as I can see, he has simply the .h, as I do, and his
corresponding .c is what you said should go in the .xs (thanks).

> you have to actually write the GType function:

> and then use the usual bindings stuff. you can also look at
> Gnome2::GConf for some custom defined types.

I added your GType function to the .xs (looking at Gnome2::GConf to see where).

I still have the problem that although I can use the widget OK without
error messaging from a stand-alone script, make test gives me:

t/01....#     Failed test (t/01.t at line 11)
#     Tried to use 'Gtk2::ImageView'.
#     Error:  Can't load
'/home/jeff/perl/Gtk2-ImageView/blib/arch/auto/Gtk2/ImageView/ImageView.so'
for module Gtk2::ImageView:
/home/jeff/perl/Gtk2-ImageView/blib/arch/auto/Gtk2/ImageView/ImageView.so:
undefined symbol: SvGtkImageTransp at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.

I don't understand why I only get the above error with make test.

Regards

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

Reply via email to