[gnome-photos/wip/rishi/misc-fixes: 1/18] search-type-manager: Skip empty collections in Favorites



commit 2e4cb4abda1bc1d9e8682debe38bb366a1fcd606
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 11 09:47:35 2015 +0100

    search-type-manager: Skip empty collections in Favorites
    
    Completes 288a52a8cb7193b7f711ed143bad4d048b3912b3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759331

 src/photos-search-type-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-search-type-manager.c b/src/photos-search-type-manager.c
index 9abaab1..cb2acd0 100644
--- a/src/photos-search-type-manager.c
+++ b/src/photos-search-type-manager.c
@@ -115,7 +115,8 @@ photos_search_type_manager_init (PhotosSearchTypeManager *self)
 
   search_type = photos_search_type_new_full (PHOTOS_SEARCH_TYPE_STOCK_FAVORITES,
                                              _("Favorites"),
-                                             "?urn nao:hasTag nao:predefined-tag-favorite",
+                                             "?urn a rdfs:Resource; nao:hasTag nao:predefined-tag-favorite. "
+                                             "OPTIONAL {?item a nie:InformationElement; nie:isPartOf ?urn}",
                                              fav_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]