Re: Gtk3

On 01.03.2011 23:46, Kevin Ryde wrote:
Torsten Schoenfeld<kaffeetisch gmx de>  writes:
   use Glib::Object::Introspection;
   Glib::Object::Introspection->setup (
     basename =>  'Gtk',
     version =>  '3.0',
     package =>  'Gtk3');

Does that load up pretty much all classes and function methods etc?

Yes, it does. It was using AUTOLOAD trickery originally, but that turned out to be too fragile, so now G:O:I installs sub stubs for every method, function and constant.

Seeing gtk2 grow and grow made me think it could be handy to load and
create the perl wrappers for only the classes in use.  Not sure how
tedious it would be to have to declare you want each individual
"use Gtk::Button" or whatever, but it could keep a lid on big libraries.

I think this would be easy to implement as an option for G:O:I->setup. Patches welcome.

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