[gnome-photos/wip/rishi/collection: 10/52] tracker-controller: Ignore addition/removal of non-Filterable Sources
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 10/52] tracker-controller: Ignore addition/removal of non-Filterable Sources
- Date: Tue, 6 Feb 2018 21:56:09 +0000 (UTC)
commit 08e60c37186c98738fc2f6731076c40121f541f8
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Feb 2 12:48:14 2018 +0100
tracker-controller: Ignore addition/removal of non-Filterable Sources
https://gitlab.gnome.org/GNOME/gnome-photos/issues/29
src/photos-tracker-controller.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-tracker-controller.c b/src/photos-tracker-controller.c
index a8109158..9019948b 100644
--- a/src/photos-tracker-controller.c
+++ b/src/photos-tracker-controller.c
@@ -405,7 +405,7 @@ photos_tracker_controller_refresh_for_source (PhotosTrackerController *self)
static void
-photos_tracker_controller_source_object_added_removed (PhotosTrackerController *self)
+photos_tracker_controller_source_object_added_removed (PhotosTrackerController *self, GObject *source)
{
PhotosTrackerControllerPrivate *priv;
PhotosWindowMode mode;
@@ -414,11 +414,17 @@ photos_tracker_controller_source_object_added_removed (PhotosTrackerController *
g_return_if_fail (priv->mode_cntrlr != NULL);
+ if (!photos_filterable_is_search_criterion (PHOTOS_FILTERABLE (source)))
+ goto out;
+
mode = photos_mode_controller_get_window_mode (priv->mode_cntrlr);
if (mode == priv->mode)
photos_tracker_controller_refresh_for_source (self);
else
priv->refresh_pending = TRUE;
+
+ out:
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]