[gnome-photos/wip/rishi/de-dup: 1/9] search-type-manager: Only look for nmm:Photos inside collections



commit 5f2f62833e3cd5cc0482a0d02ddebc5956fdb397
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Sep 6 18:10:29 2016 +0200

    search-type-manager: Only look for nmm:Photos inside collections
    
    ... not nie:InformationElements. Since we don't want nested collections
    (see commit be7553dbb4db), we are only interested in the nmm:Photo
    objects that a nfo:DataContainer might have. So, let's tighten the net
    a bit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770782

 src/photos-search-type-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-search-type-manager.c b/src/photos-search-type-manager.c
index 73cd8d8..d2ad1c9 100644
--- a/src/photos-search-type-manager.c
+++ b/src/photos-search-type-manager.c
@@ -111,7 +111,7 @@ photos_search_type_manager_init (PhotosSearchTypeManager *self)
   search_type = photos_search_type_new_full (PHOTOS_SEARCH_TYPE_STOCK_ALL,
                                              _("All"),
                                              "?urn a rdfs:Resource. "
-                                             "OPTIONAL {?item a nie:InformationElement; nie:isPartOf ?urn}",
+                                             "OPTIONAL {?item a nmm:Photo; nie:isPartOf ?urn}",
                                              all_filter);
   photos_base_manager_add_object (PHOTOS_BASE_MANAGER (self), G_OBJECT (search_type));
   g_object_unref (search_type);
@@ -119,7 +119,7 @@ photos_search_type_manager_init (PhotosSearchTypeManager *self)
   search_type = photos_search_type_new_full (PHOTOS_SEARCH_TYPE_STOCK_COLLECTIONS,
                                              _("Albums"),
                                              "?urn a nfo:DataContainer. "
-                                             "?item a nie:InformationElement; nie:isPartOf ?urn.",
+                                             "?item a nmm:Photo; nie:isPartOf ?urn.",
                                              col_filter);
   photos_base_manager_add_object (PHOTOS_BASE_MANAGER (self), G_OBJECT (search_type));
   g_object_unref (search_type);


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