Re: libseed-list Bar.Foo.new doesn't work with seed



@alan_k #introspection on irc.gimp.org occasionally..

It's reasonably quiet so I dont think they will mind us hijacking it every so often..

Regards
Alan


 --- On 04/Aug/2011, siraj razick wrote: 
> Hi, Alan :)
> 
> Thanks we got it working by var factory = new  Tp.SimpleClientFactory ({ 
> dbus_daemon : dbus });
> 
> and  SimpleClientFactory is in unlreleased master of telepathy-glib, 
> these classes are part of
> hand written API layer to help write clients in JS and Python..etc
> 
> btw : are you on irc ? which channel can I you find you.. if you don't 
> mind :) ?
> 
> On 08/04/2011 08:28 AM, Alan Knowles wrote:
> > Try
> > var factory = Tp.SimpleClientFactory.c_new (dbus);
> >
> > The new constructors usually take properties as the argument. - c_new follows the C API, in general.
> >
> > I could not find SimpleClientFactory in the introspection docs (although I've not generated them for a while)
> >
> > Regards
> > Alan
> >
> >
> >   --- On 03/Aug/2011, siraj razick wrote:
> >> Hi :)
> >>
> >> I'm trying to write a telepathy js script for seed, see the snippet here
> >> : https://gist.github.com/4e9afb604c85d0bd550a
> >>
> >> When I try to do something like : var factory = new
> >> Tp.SimpleClientFactory(dbus);
> >>
> >> seed gives me the following error :
> >> tp-glib:ERROR:simple-client-factory.c:320:tp_simple_client_factory_constructed:
> >> assertion failed: (TP_IS_DBUS_DAEMON (self->priv->dbus))
> >>
> >> so I did some debugging and the reason is when I do "new Bar.Foo()" it
> >> results in calling g_object_new to create a Food type object instead of
> >> using the c constructor "p.SimpleClientFactor.new (dbus)"
> >> so the proper property "dbus-deamon" is not set and this results hitting
> >> assert h (TP_IS_DBUS_DAEMON (self->priv->dbus)). ->  so the object
> >> construction fails.
> >>
> >> then I tried the same code in GJS, there also I get the same behavior
> >> but in GJS, if I write this as ( var factory = Tp.SimpleClientFactor.new
> >> (dbus);) it works
> >> so Tp.SimpleClientFactor.new (dbus) doesn't work in seed.. Do you know
> >> why ? any ideas on how i can solve this ? How can I make seed call the
> >> native Tp.SimpleClientFactor.new (dbus) ?
> >>
> >> -- 
> >> BR,
> >> Siraj Razick
> >>
> >> _______________________________________________
> >> libseed-list mailing list
> >> libseed-list gnome org
> >> http://mail.gnome.org/mailman/listinfo/libseed-list
> > _______________________________________________
> > libseed-list mailing list
> > libseed-list gnome org
> > http://mail.gnome.org/mailman/listinfo/libseed-list
> 
> 
> -- 
> BR,
> Siraj Razick
> 
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list



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