[tracker/rss-enclosures] TrackerMinerFiles: Force recheck on IgnoredFiles changes.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] TrackerMinerFiles: Force recheck on IgnoredFiles changes.
- Date: Sat, 26 Jun 2010 23:28:46 +0000 (UTC)
commit a08cce3a46a7e1fa71f670ab7bbbafa9a8d91c4c
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 23 14:49:46 2010 +0200
TrackerMinerFiles: Force recheck on IgnoredFiles changes.
This was working before commit 063355f410 because recheck was issued
inconditionally.
src/miners/fs/tracker-miner-files.c | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 9bf0e9e..54508db 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -145,9 +145,9 @@ static void index_single_directories_cb (GObject *g
GParamSpec *arg1,
gpointer user_data);
static gboolean miner_files_force_recheck_idle (gpointer user_data);
-static void ignore_directories_cb (GObject *gobject,
- GParamSpec *arg1,
- gpointer user_data);
+static void trigger_recheck_cb (GObject *gobject,
+ GParamSpec *arg1,
+ gpointer user_data);
static void index_volumes_changed_cb (GObject *gobject,
GParamSpec *arg1,
gpointer user_data);
@@ -533,10 +533,13 @@ miner_files_constructed (GObject *object)
G_CALLBACK (index_single_directories_cb),
mf);
g_signal_connect (mf->private->config, "notify::ignored-directories",
- G_CALLBACK (ignore_directories_cb),
+ G_CALLBACK (trigger_recheck_cb),
mf);
g_signal_connect (mf->private->config, "notify::ignored-directories-with-content",
- G_CALLBACK (ignore_directories_cb),
+ G_CALLBACK (trigger_recheck_cb),
+ mf);
+ g_signal_connect (mf->private->config, "notify::ignored-files",
+ G_CALLBACK (trigger_recheck_cb),
mf);
g_signal_connect (mf->private->config, "notify::index-removable-devices",
G_CALLBACK (index_volumes_changed_cb),
@@ -1415,9 +1418,9 @@ miner_files_force_recheck_idle (gpointer user_data)
}
static void
-ignore_directories_cb (GObject *gobject,
- GParamSpec *arg1,
- gpointer user_data)
+trigger_recheck_cb (GObject *gobject,
+ GParamSpec *arg1,
+ gpointer user_data)
{
TrackerMinerFiles *mf = user_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]