[network-manager-applet] agent: give the keyring a delete callback
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] agent: give the keyring a delete callback
- Date: Thu, 10 Mar 2011 07:14:05 +0000 (UTC)
commit 8ca69bd9e76ca9f579f700035b5ebd0b65eee3f4
Author: Dan Williams <dcbw redhat com>
Date: Thu Mar 10 01:15:16 2011 -0600
agent: give the keyring a delete callback
The keyring asserts without one.
src/applet-agent.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-agent.c b/src/applet-agent.c
index 1a8dddc..3e65ab4 100644
--- a/src/applet-agent.c
+++ b/src/applet-agent.c
@@ -631,6 +631,12 @@ save_secrets (NMSecretAgent *agent,
/*******************************************************/
static void
+keyring_delete_cb (GnomeKeyringResult result, gpointer user_data)
+{
+ /* Ignored */
+}
+
+static void
delete_find_items_cb (GnomeKeyringResult result, GList *list, gpointer user_data)
{
KeyringCall *call = user_data;
@@ -644,7 +650,7 @@ delete_find_items_cb (GnomeKeyringResult result, GList *list, gpointer user_data
for (iter = list; iter != NULL; iter = g_list_next (iter)) {
GnomeKeyringFound *found = (GnomeKeyringFound *) iter->data;
- gnome_keyring_item_delete (found->keyring, found->item_id, NULL, NULL, NULL);
+ gnome_keyring_item_delete (found->keyring, found->item_id, keyring_delete_cb, NULL, NULL);
}
} else {
error = g_error_new (NM_SECRET_AGENT_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]