Re: GtkImageView

On 04/12/2007, Emmanuele Bassi <ebassi gmail com> 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 <bjourne gmail com> 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
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
for module Gtk2::ImageView:
undefined symbol: SvGtkImageTransp at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/ line 230.

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



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