Re: about gnome shell notification



2012/4/26 russel <sqrongyi 163 com>:
> Hi All
> I hava a question about GNOME SHELL notification DBUS service.
> int  /usr/share/gnome-shell/js/ui/notificationDaemon.js file
> function GetCapabilities and GetServerInformation are all return a
> javascript array, but the function's signature are different:
> ====
> { name: 'GetCapabilities',
>                 inSignature: '',
>                 outSignature: 'as'
>               },
>               { name: 'GetServerInformation',
>                 inSignature: '',
>                 outSignature: 'ssss'
>               }
> ====
> I wonder how the javascript return value of function GetServerInformation be
> converted to four string?
> Any help would be great appreciated! thanks in advance!
> russel

DBus methods can have multiple return values. The idea is that you
return an array of return values. The old DBus JS API had a special
case when the signature consisted of one object, like 'as', where you
could just return that value instead.

>
> ________________________________
> 网易Lofter,专注兴趣,分享创作!
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list
>



-- 
  Jasper


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