[gnome-photos] search-provider: Simplify code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] search-provider: Simplify code
- Date: Sat, 14 Oct 2017 08:27:13 +0000 (UTC)
commit 6259218b8044e5ce11bad4f29766d72dd0e4df59
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Oct 11 22:44:26 2017 +0200
search-provider: Simplify code
src/photos-search-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-search-provider.c b/src/photos-search-provider.c
index b3bd30e..87b9577 100644
--- a/src/photos-search-provider.c
+++ b/src/photos-search-provider.c
@@ -129,7 +129,7 @@ photos_search_provider_return_metas_from_cache (PhotosSearchProvider *self,
if (meta == NULL)
continue;
- g_variant_builder_open (&builder, G_VARIANT_TYPE ("a{sv}"));
+ g_variant_builder_open (&builder, G_VARIANT_TYPE_VARDICT);
g_variant_builder_add (&builder, "{sv}", "id", g_variant_new_string (meta->id));
g_variant_builder_add (&builder, "{sv}", "name", g_variant_new_string (meta->title));
if (meta->icon != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]