[libgnome-keyring] Proper dbus argument encoding for CreateItem.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgnome-keyring] Proper dbus argument encoding for CreateItem.
- Date: Fri, 11 Dec 2009 01:36:18 +0000 (UTC)
commit 01add3e593aaffda96feac25c27c8f9336002b14
Author: Stef Walter <stef memberwebs com>
Date: Thu Dec 10 23:42:45 2009 +0000
Proper dbus argument encoding for CreateItem.
library/gnome-keyring.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/library/gnome-keyring.c b/library/gnome-keyring.c
index 1f756fd..fad399c 100644
--- a/library/gnome-keyring.c
+++ b/library/gnome-keyring.c
@@ -2259,14 +2259,14 @@ item_create_prepare (const gchar *path, GnomeKeyringItemType type, const gchar *
COLLECTION_INTERFACE, "CreateItem");
dbus_message_iter_init_append (req, iter);
- dbus_message_iter_open_container (iter, DBUS_TYPE_ARRAY, NULL, &array);
+ dbus_message_iter_open_container (iter, DBUS_TYPE_ARRAY, "{sv}", &array);
/* Set the label */
string = "Label";
dbus_message_iter_open_container (&array, DBUS_TYPE_DICT_ENTRY, NULL, &dict);
dbus_message_iter_append_basic (&dict, DBUS_TYPE_STRING, &string);
dbus_message_iter_open_container (&dict, DBUS_TYPE_VARIANT, "s", &variant);
- dbus_message_iter_append_basic (&dict, DBUS_TYPE_STRING, &label);
+ dbus_message_iter_append_basic (&variant, DBUS_TYPE_STRING, &label);
dbus_message_iter_close_container (&dict, &variant);
dbus_message_iter_close_container (&array, &dict);
@@ -2407,7 +2407,7 @@ gnome_keyring_item_create (const char *keyring,
GkrOperation *op;
gchar *path;
- if (display_name)
+ if (!display_name)
display_name = "";
args = g_slice_new (item_create_args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]