[seahorse] Update libsecret usage for removal of some varargs functions



commit d8fe8ebdb3064d043269a45d5f221db5c0c8c05e
Author: Stef Walter <stefw gnome org>
Date:   Thu Jun 28 13:21:36 2012 +0200

    Update libsecret usage for removal of some varargs functions

 gkr/seahorse-gkr-add-item.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gkr/seahorse-gkr-add-item.c b/gkr/seahorse-gkr-add-item.c
index 9e7c6cd..97c9b24 100644
--- a/gkr/seahorse-gkr-add-item.c
+++ b/gkr/seahorse-gkr-add-item.c
@@ -88,6 +88,7 @@ on_add_item_response (GtkDialog *dialog,
 	SeahorseWidget *swidget = SEAHORSE_WIDGET (user_data);
 	SecretCollection *collection;
 	GCancellable *cancellable;
+	GHashTable *attributes;
 	GtkWidget *widget;
 	SecretValue *secret;
 	const gchar *label;
@@ -112,12 +113,13 @@ on_add_item_response (GtkDialog *dialog,
 		                           -1, "text/plain");
 
 		cancellable = seahorse_gkr_dialog_begin_request (swidget);
+		attributes = g_hash_table_new (g_str_hash, g_str_equal);
 		secret_service_store (secret_collection_get_service (collection),
-		                      SECRET_SCHEMA_NOTE,
+		                      SECRET_SCHEMA_NOTE, attributes,
 		                      g_dbus_proxy_get_object_path (G_DBUS_PROXY (collection)),
 		                      label, secret, cancellable, on_item_stored,
-		                      g_object_ref (swidget),
-		                      NULL);
+		                      g_object_ref (swidget));
+		g_hash_table_unref (attributes);
 		g_object_unref (cancellable);
 
 	} else {



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