[gnome-photos] query-builder: Look for local collections in filter_local



commit 92d0f0bd9cf7766e41d19483fae81dcc0bc0dba2
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Apr 2 17:14:06 2013 +0200

    query-builder: Look for local collections in filter_local

 src/photos-query-builder.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index 5bbe6da..68053a4 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -344,10 +344,12 @@ photos_query_builder_filter_local (void)
 
   filter = g_strdup_printf ("((fn:contains (nie:url (?urn), \"%s\"))"
                             " || (fn:contains (nie:url (?urn), \"%s\"))"
-                            " || (fn:contains (nie:url (?urn), \"%s\")))",
+                            " || (fn:contains (nie:url (?urn), \"%s\"))"
+                            " || (fn:starts-with (nao:identifier (?urn), \"%s\")))",
                             desktop_uri,
                             download_uri,
-                            pictures_uri);
+                            pictures_uri,
+                            PHOTOS_QUERY_LOCAL_COLLECTIONS_IDENTIFIER);
   g_free (desktop_uri);
   g_free (download_uri);
   g_free (pictures_uri);


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