Use correct variant signatures for Secret Service signals

* Fix typo for signatures used when receiving CollectionCreated,
   CollectionChanged, CollectionDeleted, ItemCreated, ItemChanged,
   ItemDeleted
This commit is contained in:
Stef Walter 2012-06-27 16:36:45 +02:00
parent 52d455f673
commit 9b9db3fb51
2 changed files with 6 additions and 6 deletions

View File

@ -458,7 +458,7 @@ secret_collection_signal (GDBusProxy *proxy,
/* A new collection was added, add it to the Collections property */ /* A new collection was added, add it to the Collections property */
if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_CREATED)) { if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_CREATED)) {
g_variant_get (parameters, "@o", &value); g_variant_get (parameters, "(@o)", &value);
g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao"));
g_variant_iter_init (&iter, paths); g_variant_iter_init (&iter, paths);
while ((path = g_variant_iter_next_value (&iter)) != NULL) { while ((path = g_variant_iter_next_value (&iter)) != NULL) {
@ -478,7 +478,7 @@ secret_collection_signal (GDBusProxy *proxy,
/* A collection was deleted, remove it from the Collections property */ /* A collection was deleted, remove it from the Collections property */
} else if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_DELETED)) { } else if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_DELETED)) {
g_variant_get (parameters, "@o", &value); g_variant_get (parameters, "(@o)", &value);
g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao"));
g_variant_iter_init (&iter, paths); g_variant_iter_init (&iter, paths);
while ((path = g_variant_iter_next_value (&iter)) != NULL) { while ((path = g_variant_iter_next_value (&iter)) != NULL) {
@ -494,7 +494,7 @@ secret_collection_signal (GDBusProxy *proxy,
/* The collection changed, update it */ /* The collection changed, update it */
} else if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_CHANGED)) { } else if (g_str_equal (signal_name, SECRET_SIGNAL_ITEM_CHANGED)) {
g_variant_get (parameters, "&o", &item_path); g_variant_get (parameters, "(&o)", &item_path);
g_mutex_lock (&self->pv->mutex); g_mutex_lock (&self->pv->mutex);

View File

@ -354,7 +354,7 @@ secret_service_signal (GDBusProxy *proxy,
/* A new collection was added, add it to the Collections property */ /* A new collection was added, add it to the Collections property */
if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_CREATED)) { if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_CREATED)) {
g_variant_get (parameters, "@o", &value); g_variant_get (parameters, "(@o)", &value);
g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao"));
g_variant_iter_init (&iter, paths); g_variant_iter_init (&iter, paths);
while ((path = g_variant_iter_next_value (&iter)) != NULL) { while ((path = g_variant_iter_next_value (&iter)) != NULL) {
@ -374,7 +374,7 @@ secret_service_signal (GDBusProxy *proxy,
/* A collection was deleted, remove it from the Collections property */ /* A collection was deleted, remove it from the Collections property */
} else if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_DELETED)) { } else if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_DELETED)) {
g_variant_get (parameters, "@o", &value); g_variant_get (parameters, "(@o)", &value);
g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao"));
g_variant_iter_init (&iter, paths); g_variant_iter_init (&iter, paths);
while ((path = g_variant_iter_next_value (&iter)) != NULL) { while ((path = g_variant_iter_next_value (&iter)) != NULL) {
@ -390,7 +390,7 @@ secret_service_signal (GDBusProxy *proxy,
/* The collection changed, update it */ /* The collection changed, update it */
} else if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_CHANGED)) { } else if (g_str_equal (signal_name, SECRET_SIGNAL_COLLECTION_CHANGED)) {
g_variant_get (parameters, "&o", &collection_path); g_variant_get (parameters, "(&o)", &collection_path);
g_mutex_lock (&self->pv->mutex); g_mutex_lock (&self->pv->mutex);