Re: When to use GLib/glib or GObject/gobject




----- Original Message -----
> On Sun, 2011-03-06 at 18:03 +0100, Laszlo Pandy wrote:
> > On Sun, Mar 6, 2011 at 12:26 PM, John Stowers
> > <john stowers lists gmail com> wrote:
> > > Hi,
> > >
> > > I've recently been porting some of my software to PyGObject + g-i
> > > and
> > > was wondering;
> > >
> > > 1) Is it recommended to use the g-i bindings for the GObject
> > > namespace?
> > > (i.e. based on the demos GObject.timeout_add seem to work fine but
> > > the
> > > pygi-convert script still uses import gobject)
> > >
> > > 2) Is it recommended to use the g-i bindings for the glib
> > > namespace?
> > > My (threaded) application [1] needed glib.threads_init() to be
> > > called,
> > > inorder to work as before, and AFAIK there is no equivalent to
> > > this
> > > special function in g-i.
> > >
> >
> > I believe that the idea is to use GObject and GLib, because we still
> > want gobject and glib to installable and useable for applications
> > expecting to use the static bindings.
> 
> This isn't really what I was asking. Things break in subtle ways (in
> my
> multithreaded programs when I use gobject instead of GObject).
> 
> Is there an official position on this? Can I just assume (and tell
> others) that this breakage means "use GObject"

yes using GObject will also get you the gobject symbols

> You are correct, the GLib bindings seem to be missing many annotations
> to make them useful, so using glib here is a matter of necessity.

Please file bugs at the same time otherwise it will never get fixed.

> 
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list gnome org
> http://mail.gnome.org/mailman/listinfo/python-hackers-list

-- 
--
John (J5) Palmieri
Software Engineer
Red Hat, Inc.


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