[tracker/tracker-0.8] Fixes GB#511474: Remove the option to index remote mounted directories
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] Fixes GB#511474: Remove the option to index remote mounted directories
- Date: Thu, 1 Jul 2010 16:38:39 +0000 (UTC)
commit e280169b02902b65e0cb239135566682aa93711b
Author: Aleksander Morgado <aleksander lanedo com>
Date: Fri Jun 25 11:30:42 2010 +0200
Fixes GB#511474: Remove the option to index remote mounted directories
src/miners/fs/tracker-config.c | 45 ----------------------
src/tracker-preferences/tracker-preferences.ui | 17 --------
src/tracker-preferences/tracker-preferences.vala | 7 ---
3 files changed, 0 insertions(+), 69 deletions(-)
---
diff --git a/src/miners/fs/tracker-config.c b/src/miners/fs/tracker-config.c
index 51134ca..81bb47f 100644
--- a/src/miners/fs/tracker-config.c
+++ b/src/miners/fs/tracker-config.c
@@ -45,7 +45,6 @@
#define DEFAULT_THROTTLE 0 /* 0->20 */
#define DEFAULT_SCAN_TIMEOUT 0 /* 0->1000 */
#define DEFAULT_CACHE_TIMEOUT 60 /* 0->1000 */
-#define DEFAULT_INDEX_MOUNTED_DIRECTORIES TRUE
#define DEFAULT_INDEX_REMOVABLE_DEVICES TRUE
#define DEFAULT_INDEX_OPTICAL_DISCS FALSE
#define DEFAULT_INDEX_ON_BATTERY FALSE
@@ -66,7 +65,6 @@ typedef struct {
gint throttle;
gboolean index_on_battery;
gboolean index_on_battery_first_time;
- gboolean index_mounted_directories;
gboolean index_removable_devices;
gboolean index_optical_discs;
gint low_disk_space_limit;
@@ -126,7 +124,6 @@ enum {
PROP_THROTTLE,
PROP_INDEX_ON_BATTERY,
PROP_INDEX_ON_BATTERY_FIRST_TIME,
- PROP_INDEX_MOUNTED_DIRECTORIES,
PROP_INDEX_REMOVABLE_DEVICES,
PROP_INDEX_OPTICAL_DISCS,
PROP_LOW_DISK_SPACE_LIMIT,
@@ -149,7 +146,6 @@ static ObjectToKeyFile conversions[] = {
{ G_TYPE_INT, "throttle", GROUP_INDEXING, "Throttle" },
{ G_TYPE_BOOLEAN, "index-on-battery", GROUP_INDEXING, "IndexOnBattery" },
{ G_TYPE_BOOLEAN, "index-on-battery-first-time", GROUP_INDEXING, "IndexOnBatteryFirstTime" },
- { G_TYPE_BOOLEAN, "index-mounted-directories", GROUP_INDEXING, "IndexMountedDirectories" },
{ G_TYPE_BOOLEAN, "index-removable-devices", GROUP_INDEXING, "IndexRemovableMedia" },
{ G_TYPE_BOOLEAN, "index-optical-discs", GROUP_INDEXING, "IndexOpticalDiscs" },
{ G_TYPE_INT, "low-disk-space-limit", GROUP_INDEXING, "LowDiskSpaceLimit" },
@@ -247,14 +243,6 @@ tracker_config_class_init (TrackerConfigClass *klass)
DEFAULT_INDEX_ON_BATTERY_FIRST_TIME,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class,
- PROP_INDEX_MOUNTED_DIRECTORIES,
- g_param_spec_boolean ("index-mounted-directories",
- "Index mounted directories",
- " Set to true to enable traversing mounted directories on other file systems\n"
- " (this excludes removable devices)",
- DEFAULT_INDEX_MOUNTED_DIRECTORIES,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
- g_object_class_install_property (object_class,
PROP_INDEX_REMOVABLE_DEVICES,
g_param_spec_boolean ("index-removable-devices",
"index removable devices",
@@ -374,10 +362,6 @@ config_set_property (GObject *object,
tracker_config_set_index_on_battery_first_time (TRACKER_CONFIG (object),
g_value_get_boolean (value));
break;
- case PROP_INDEX_MOUNTED_DIRECTORIES:
- tracker_config_set_index_mounted_directories (TRACKER_CONFIG (object),
- g_value_get_boolean (value));
- break;
case PROP_INDEX_REMOVABLE_DEVICES:
tracker_config_set_index_removable_devices (TRACKER_CONFIG (object),
g_value_get_boolean (value));
@@ -457,9 +441,6 @@ config_get_property (GObject *object,
case PROP_INDEX_ON_BATTERY_FIRST_TIME:
g_value_set_boolean (value, priv->index_on_battery_first_time);
break;
- case PROP_INDEX_MOUNTED_DIRECTORIES:
- g_value_set_boolean (value, priv->index_mounted_directories);
- break;
case PROP_INDEX_REMOVABLE_DEVICES:
g_value_set_boolean (value, priv->index_removable_devices);
break;
@@ -1167,18 +1148,6 @@ tracker_config_get_index_on_battery_first_time (TrackerConfig *config)
}
gboolean
-tracker_config_get_index_mounted_directories (TrackerConfig *config)
-{
- TrackerConfigPrivate *priv;
-
- g_return_val_if_fail (TRACKER_IS_CONFIG (config), DEFAULT_INDEX_MOUNTED_DIRECTORIES);
-
- priv = TRACKER_CONFIG_GET_PRIVATE (config);
-
- return priv->index_mounted_directories;
-}
-
-gboolean
tracker_config_get_index_removable_devices (TrackerConfig *config)
{
TrackerConfigPrivate *priv;
@@ -1431,20 +1400,6 @@ tracker_config_set_index_on_battery_first_time (TrackerConfig *config,
}
void
-tracker_config_set_index_mounted_directories (TrackerConfig *config,
- gboolean value)
-{
- TrackerConfigPrivate *priv;
-
- g_return_if_fail (TRACKER_IS_CONFIG (config));
-
- priv = TRACKER_CONFIG_GET_PRIVATE (config);
-
- priv->index_mounted_directories = value;
- g_object_notify (G_OBJECT (config), "index-mounted-directories");
-}
-
-void
tracker_config_set_index_removable_devices (TrackerConfig *config,
gboolean value)
{
diff --git a/src/tracker-preferences/tracker-preferences.ui b/src/tracker-preferences/tracker-preferences.ui
index 75f7976..7f934c4 100644
--- a/src/tracker-preferences/tracker-preferences.ui
+++ b/src/tracker-preferences/tracker-preferences.ui
@@ -320,23 +320,6 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="checkbutton_index_mounted_directories">
- <property name="label" translatable="yes">Include mou_nted directories</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <signal name="toggled" handler="checkbutton_index_mounted_directories_toggled_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
<object class="GtkCheckButton" id="checkbutton_index_removable_media">
<property name="label" translatable="yes">Include _removable media</property>
<property name="visible">True</property>
diff --git a/src/tracker-preferences/tracker-preferences.vala b/src/tracker-preferences/tracker-preferences.vala
index 6ad764c..31ea602 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -34,7 +34,6 @@ public static CheckButton checkbutton_enable_index_on_battery_first_time;
public static CheckButton checkbutton_enable_index_on_battery;
public static SpinButton spinbutton_delay;
public static CheckButton checkbutton_enable_monitoring;
-public static CheckButton checkbutton_index_mounted_directories;
public static CheckButton checkbutton_index_removable_media;
public static CheckButton checkbutton_index_optical_discs;
public static Scale hscale_disk_space_limit;
@@ -92,10 +91,6 @@ public static void checkbutton_enable_index_on_battery_first_time_toggled_cb (Ch
config.index_on_battery_first_time = source.active;
}
-public static void checkbutton_index_mounted_directories_toggled_cb (CheckButton source) {
- config.index_mounted_directories = source.active;
-}
-
public static void checkbutton_index_removable_media_toggled_cb (CheckButton source) {
config.index_removable_devices = source.active;
checkbutton_index_optical_discs.set_sensitive (source.active);
@@ -362,8 +357,6 @@ static int main (string[] args) {
spinbutton_delay.value = (double) config.initial_sleep;
checkbutton_enable_monitoring = builder.get_object ("checkbutton_enable_monitoring") as CheckButton;
checkbutton_enable_monitoring.active = config.enable_monitors;
- checkbutton_index_mounted_directories = builder.get_object ("checkbutton_index_mounted_directories") as CheckButton;
- checkbutton_index_mounted_directories.active = config.index_mounted_directories;
checkbutton_index_removable_media = builder.get_object ("checkbutton_index_removable_media") as CheckButton;
checkbutton_index_removable_media.active = config.index_removable_devices;
checkbutton_index_optical_discs = builder.get_object ("checkbutton_index_optical_discs") as CheckButton;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]