[gnome-photos/wip/rishi/collection: 16/54] base-model: Ignore Filterables that are not search criteria
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 16/54] base-model: Ignore Filterables that are not search criteria
- Date: Sun, 4 Feb 2018 14:02:35 +0000 (UTC)
commit 1e21cde8b8c745a305be001461ca8c60d4a85ac7
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 11 18:44:09 2018 +0100
base-model: Ignore Filterables that are not search criteria
https://gitlab.gnome.org/GNOME/gnome-photos/issues/29
src/photos-base-model.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/photos-base-model.c b/src/photos-base-model.c
index 7ff83c82..077ad487 100644
--- a/src/photos-base-model.c
+++ b/src/photos-base-model.c
@@ -99,6 +99,9 @@ photos_base_model_refresh (PhotosBaseModel *self)
g_autofree gchar *name = NULL;
object = g_list_model_get_object (G_LIST_MODEL (self->mngr), i);
+ if (!photos_filterable_is_search_criterion (PHOTOS_FILTERABLE (object)))
+ continue;
+
id = photos_filterable_get_id (PHOTOS_FILTERABLE (object));
g_object_get (object, "name", &name, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]