[tracker/tracker-0.8] Bug 616548 - DIrectory lists and de-duplication in tracker-preferences



commit d390c9fe5ccea68578694a148dfe50e9d04c3e73
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed May 5 18:14:59 2010 +0200

    Bug 616548 - DIrectory lists and de-duplication in tracker-preferences
    
    Make tracker-preferences show the unfiltered recursive/single directories
    list, so there is an identical relation between the contents of the
    configuration file and what the UI offers.

 src/tracker-preferences/tracker-config.vapi      |    2 ++
 src/tracker-preferences/tracker-preferences.vala |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-config.vapi b/src/tracker-preferences/tracker-config.vapi
index 538be29..3b7d5ef 100644
--- a/src/tracker-preferences/tracker-config.vapi
+++ b/src/tracker-preferences/tracker-config.vapi
@@ -38,7 +38,9 @@ namespace Tracker {
 		public bool index_mounted_directories { get; set; }
 		public int low_disk_space_limit { get; set; }
 		public GLib.SList<string> index_recursive_directories { get; set; }
+		public GLib.SList<string> index_recursive_directories_unfiltered { get; }
 		public GLib.SList<string> index_single_directories { get; set; }
+		public GLib.SList<string> index_single_directories_unfiltered { get; }
 		public GLib.SList<string> ignored_directories { get; set; }
 		public GLib.SList<string> ignored_directories_with_content { get; set; }
 		public GLib.SList<string> ignored_files { get; set; }
diff --git a/src/tracker-preferences/tracker-preferences.vala b/src/tracker-preferences/tracker-preferences.vala
index 54a28ee..bbc9ba2 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -386,12 +386,12 @@ static int main (string[] args) {
 		setup_standard_treeview (treeview_ignored_files, _("File"));
 
 		liststore_index_recursively = builder.get_object ("liststore_index_recursively") as ListStore;
-		fill_in_model (liststore_index_recursively, config.index_recursive_directories);
+		fill_in_model (liststore_index_recursively, config.index_recursive_directories_unfiltered);
 
 		togglebutton_home.active = model_contains (liststore_index_recursively, HOME_STRING);
 
 		liststore_index_single = builder.get_object ("liststore_index_single") as ListStore;
-		fill_in_model (liststore_index_single, config.index_single_directories);
+		fill_in_model (liststore_index_single, config.index_single_directories_unfiltered);
 
 		liststore_ignored_directories = builder.get_object ("liststore_ignored_directories") as ListStore;
 		fill_in_model (liststore_ignored_directories, config.ignored_directories);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]