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

Re: Pango perl bindings



--- Torsten Schoenfeld <kaffeetisch gmx de> wrote:

> [I'm CC'ing the gtk-perl list, since that's where this kind of
> discussion should happen.]
> 
> On Thu, 2008-03-27 at 03:14 +0800, Chia-liang Kao wrote:
> 
> > I am wondering if it makes sense to separate the Pango bindings as its
> > own dist (or to allow building only Pango from the current dist), as
> > pango renders to cairo context, rather thanto gtk, and is useful for
> > people doing vector drawing that aren't using any of gtk.
> 
> Yes, I think it does make sense to be able to use pango independently of
> Gtk2.  The question is how to do the separation in a
> backwards-compatible way.
> 
> Saying "use Gtk2;" will still need to pull in the pango stuff -- this
> can be accomplished by making Gtk2 depend on the new pango module.
> 
> Also, Gtk2 currently makes the pango stuff available under the namespace
> Gtk2::Pango, and that will have to continue to be the case.
> Unfortunately, Gtk2 also provides a Gtk2/Pango.pm file for some
> constants.  So the new pango module can't just use the Gtk2::Pango
> namespace -- "use Gtk2::Pango;" still has to pull in Gtk2's
> Gtk2/Pango.pm.  So I think the new pango module should just use the
> namespace "Pango".  Gtk2 would then need to map Pango::* to
> Gtk2::Pango::*.  How could this be done?

Can't you manipulate directly Perl namespace which, IIRC, is a global hash ?

Simply duplicate each Gtk2::Pango => FOO to also become Pango => FOO.

I think there is a module to manipulate Perl namespace.

> 
> -- 
> Bye,
> -Torsten
> 
> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
> 

Regards,
  Sergei.

Applications From Scratch: http://appsfromscratch.berlios.de/


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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