Re: [gnome-love] Beginner documentation on writing extensions



On Sat, 2015-06-20 at 23:09 -0300, Felipe Borges wrote:
Hi Ankur,

Look at this gnome-documents' module[0], it's a more straightforward 
example.

Basically, you'll need to define the interface (which describes the
interface, methods and their properties exposed via dbus).
For that, run the following command line to obtain the xml-formatted
interface for the object you need (look specifically at the method 
you
want):

gdbus introspect --session --dest org.gnome.SessionManager
--object-path /org/gnome/SessionManager/Presence -x

After that, you'll make a proxy object and instantiate it. In doing
so, this proxy object will be capable of calling the method you want
"as a native gjs object method", like:
sessionManagerObj.SetStatus() [1]. Each argument must be specified as
a serialized GVariant.

Thank you for the reply, Felipe. Someone beat me to the extension
already, so I won't need to write it after all :D. I'll look at the
documents you've linked to and learn the process, though.
-- 
Thanks,
Regards,
Ankur Sinha "FranciscoD"

http://fedoraproject.org/wiki/User:Ankursinha

Attachment: signature.asc
Description: This is a digitally signed message part



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