Re: Beginner documentation on writing extensions

Ankur Sinha <[email protected]> Tue, 23 Jun 2015 11:34:41 +0100
Newsgroups gmane.comp.gnome.love
Message-ID <[email protected]>
--===============3219452069507569443==
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature";
	boundary="=-sL7hlSOl42u9iisql04V"


--=-sL7hlSOl42u9iisql04V
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, 2015-06-20 at 23:09 -0300, Felipe Borges wrote:
> Hi Ankur,
>=20
> Look at this gnome-documents' module[0], it's a more straightforward=20
> example.
>=20
> 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=20
> you
> want):
>=20
> gdbus introspect --session --dest org.gnome.SessionManager
> --object-path /org/gnome/SessionManager/Presence -x
>=20
> 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.
--=20
Thanks,
Regards,
Ankur Sinha "FranciscoD"

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

--=-sL7hlSOl42u9iisql04V
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJViTZBAAoJEPjYwL66yJi9lMcIAJ28MjV3+Kz6wmdUKQfoSZqC
RQ0vgroq+AR19W/VUCADgxvpBLiWHGmCcOrhxRk6ejy2oeYFvEuZmQy4lIFXqLZA
dYXd6rrEKZO7RO/LEp/6NJjmBYYr32m2bjDoof3rAx6dtpy1XbyE5LE1oNllCR34
iFYRgv2unxSwoDJgnTO7pnTOEQ67tIPR2XKnyhveYUrnOF75g0WIpzWMjO47e8+V
bBJslV4AAP0N+nExrVlHVtJoRyo9i6L+55lo7vZV1KLncYbLWt1k/X51Qxa2Qkp+
jhzHQ55W+6CEh5JEFnyZ+2s3WRpLklyNZPLV7Qy7Wj5IV3vLdnHB5ykubxvZMe4=
=1C/H
-----END PGP SIGNATURE-----

--=-sL7hlSOl42u9iisql04V--


--===============3219452069507569443==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnome-love mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-love

--===============3219452069507569443==--