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

Re: Pango perl bindings



[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?

-- 
Bye,
-Torsten



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