diff options
author | Stef Walter <stefw@gnome.org> | 2012-07-14 08:59:36 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-07-14 09:07:20 +0200 |
commit | 49cdaf5df8732f4085ff3e6b64bb09beb1f7e9c5 (patch) | |
tree | 5061f8ccf0960c5e1cdabdd1b88364abeba0a274 /docs | |
parent | e0ba10ee09d66d5eba05798ea268437fb9e23518 (diff) | |
download | libsecret-49cdaf5df8732f4085ff3e6b64bb09beb1f7e9c5.tar.gz |
Release version 0.60.6
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/libsecret/libsecret-examples.sgml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/docs/reference/libsecret/libsecret-examples.sgml b/docs/reference/libsecret/libsecret-examples.sgml index 67c3bce..b6f881b 100644 --- a/docs/reference/libsecret/libsecret-examples.sgml +++ b/docs/reference/libsecret/libsecret-examples.sgml @@ -215,13 +215,13 @@ <informalexample><programlisting language="c"><![CDATA[ static void - on_password_removed (GObject *source, + on_password_cleared (GObject *source, GAsyncResult *result, gpointer unused) { GError *error = NULL; - gboolean removed = secret_password_remove_finish (result, &error); + gboolean removed = secret_password_clear_finish (result, &error); if (error != NULL) { /* ... handle the failure here */ @@ -236,10 +236,10 @@ * The variable argument list is the attributes used to later * lookup the password. These attributes must conform to the schema. */ - secret_password_remove (EXAMPLE_SCHEMA, NULL, on_password_removed, NULL, - "string", "nine", - "even", FALSE, - NULL); + secret_password_clear (EXAMPLE_SCHEMA, NULL, on_password_cleard, NULL, + "string", "nine", + "even", FALSE, + NULL); ]]></programlisting></informalexample> <para>This next example looks up a password synchronously. The function @@ -253,10 +253,10 @@ * The variable argument list is the attributes used to later * lookup the password. These attributes must conform to the schema. */ - gboolean removed = secret_password_remove_sync (EXAMPLE_SCHEMA, NULL, &error, - "string", "nine", - "even", FALSE, - NULL); + gboolean removed = secret_password_clear_sync (EXAMPLE_SCHEMA, NULL, &error, + "string", "nine", + "even", FALSE, + NULL); if (error != NULL) { /* ... handle the failure here */ @@ -423,14 +423,14 @@ <informalexample><programlisting language="javascript"><![CDATA[ const Secret = imports.gi.Secret; - function on_password_remove(source, result) { - var removed = Secret.password_remove_finish(result); + function on_password_clear(source, result) { + var removed = Secret.password_clear_finish(result); /* removed will be true if the password was removed */ } /* The attributes used to lookup which password to remove should conform to the schema. */ - Secret.password_remove(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, - null, on_password_remove); + Secret.password_clear(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, + null, on_password_clear); ]]></programlisting></informalexample> <para>This next example removes a password synchronously. The function @@ -441,9 +441,9 @@ const Secret = imports.gi.Secret; /* The attributes used to lookup which password to remove should conform to the schema. */ - var removed = Secret.password_remove_sync(EXAMPLE_SCHEMA, - { "number": "8", "even": "true" }, - null); + var removed = Secret.password_clear_sync(EXAMPLE_SCHEMA, + { "number": "8", "even": "true" }, + null); /* removed will be true if the password was removed */ ]]></programlisting></informalexample> @@ -592,12 +592,12 @@ <informalexample><programlisting language="python"><![CDATA[ from gi.repository import Secret - def on_password_remove(source, result, unused): - removed = Secret.password_remove_finish(result) + def on_password_clear(source, result, unused): + removed = Secret.password_clear_finish(result) # removed will be true if the password was removed - Secret.password_remove(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, - None, on_password_remove) + Secret.password_clear(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, + None, on_password_clear) ]]></programlisting></informalexample> <para>This next example removes a password synchronously. The function @@ -607,7 +607,7 @@ <informalexample><programlisting language="python"><![CDATA[ from gi.repository import Secret - removed = Secret.password_remove_sync(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, None) + removed = Secret.password_clear_sync(EXAMPLE_SCHEMA, { "number": "8", "even": "true" }, None) # removed will be true if the password was removed ]]></programlisting></informalexample> </section> @@ -759,8 +759,8 @@ attributes["string"] = "eight"; attributes["even"] = "true"; - Secret.password_removev.begin (example_schema, attributes, null, (obj, async_res) => { - bool removed = Secret.password_removev.end (async_res); + Secret.password_clearv.begin (example_schema, attributes, null, (obj, async_res) => { + bool removed = Secret.password_clearv.end (async_res); }); ]]></programlisting></informalexample> @@ -774,8 +774,8 @@ attributes["string"] = "eight"; attributes["even"] = "true"; - bool removed = Secret.password_remove_sync (example_schema, null, - "number", 8, "string", "eight", "even", true); + bool removed = Secret.password_clear_sync (example_schema, null, + "number", 8, "string", "eight", "even", true); /* removed will be true if the password was removed */ ]]></programlisting></informalexample> </section> |