Re: Re: DBus



No it is gjs, but I have tried seed and got same result



If this is seed, from what I remember there is a open bug for the dbus code.

Regards
Alan

 --- On 03/Oct/2011, Pavol Klacansky wrote:
> Hi,
>
> const DBus = imports.dbus
>
> const _DBUS_PATH = '/com/klacansky/speedyrss' const _DBUS_NAME =
> 'com.klacansky.speedyrss'
>
> const serviceIface = { name: _DBUS_NAME,
>
> methods: [ { name: 'GetFeedIds', inSignature: '', outSignature: '' }
> ] }
>
> function Service() { this._init() }
>
> Service.prototype = { _init: function() {
> DBus.session.proxifyObject(this, _DBUS_NAME, _DBUS_PATH) } }
> DBus.proxifyPrototype(Service.prototype, serviceIface)
>
> service = new Service() test = service.GetFeedIdsRemote()
> print(test)
>
>
>
> This prints "undefined", but it should print "Haha"
>
> Where is problem?
>
> Thank you _______________________________________________
> _javascript_-list mailing list _javascript_-list gnome org
> http://mail.gnome.org/mailman/listinfo/_javascript_-list



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