[tasque/transition: 212/213] Some other places where _List_CollectionView needs to be used



commit 30be4dce3d504237336b056e0d39ec35e86388b3
Author: Antonius Riha <antoniusriha gmail com>
Date:   Mon Aug 20 10:39:17 2012 +0200

    Some other places where _List_CollectionView needs to be used

 src/Tasque.Gtk/CompletedTaskGroup.cs |    2 +-
 src/Tasque.Gtk/PreferencesDialog.cs  |    2 +-
 src/Tasque.Gtk/TaskTreeView.cs       |    2 +-
 src/Tasque.Gtk/TaskWindow.cs         |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Tasque.Gtk/CompletedTaskGroup.cs b/src/Tasque.Gtk/CompletedTaskGroup.cs
index 06418cc..90b00e6 100644
--- a/src/Tasque.Gtk/CompletedTaskGroup.cs
+++ b/src/Tasque.Gtk/CompletedTaskGroup.cs
@@ -32,7 +32,7 @@ namespace Tasque
 		/// </summary>
 		static IEnumerable<Task> GetSortedTasks (IEnumerable<Task> tasks)
 		{
-			var cv = new CollectionView<Task> (tasks);
+			var cv = new ListCollectionView<Task> (tasks);
 			cv.SortDescriptions.Add (new SortDescription ("CompletionDate", ListSortDirection.Descending));
 			cv.IsObserving = true;
 			return cv;
diff --git a/src/Tasque.Gtk/PreferencesDialog.cs b/src/Tasque.Gtk/PreferencesDialog.cs
index a1e810f..b51d734 100644
--- a/src/Tasque.Gtk/PreferencesDialog.cs
+++ b/src/Tasque.Gtk/PreferencesDialog.cs
@@ -595,7 +595,7 @@ namespace Tasque
 			}
 			
 			Backend backend = backendComboMap [selectedBackend];
-			filteredCategories = new CollectionView<Category> (backend.Categories);
+			filteredCategories = new ListCollectionView<Category> (backend.Categories);
 			filteredCategories.IsObserving = true;
 			// Filter out the AllCategory
 			filteredCategories.Filter = c => c != null;
diff --git a/src/Tasque.Gtk/TaskTreeView.cs b/src/Tasque.Gtk/TaskTreeView.cs
index 8121dd9..c5274b8 100644
--- a/src/Tasque.Gtk/TaskTreeView.cs
+++ b/src/Tasque.Gtk/TaskTreeView.cs
@@ -64,7 +64,7 @@ namespace Tasque
 			
 			filterCategory = null;
 			
-			modelFilter = new CollectionView<Task> (model);
+			modelFilter = new ListCollectionView<Task> (model);
 			modelFilter.Filter = FilterFunc;
 			modelFilter.CollectionChanged += HandleModelFilterChanged;
 			Model = new TreeModelListAdapter<Task> (modelFilter);
diff --git a/src/Tasque.Gtk/TaskWindow.cs b/src/Tasque.Gtk/TaskWindow.cs
index a635bde..c9bc93d 100644
--- a/src/Tasque.Gtk/TaskWindow.cs
+++ b/src/Tasque.Gtk/TaskWindow.cs
@@ -1081,7 +1081,7 @@ namespace Tasque
 					 * here in order to enable changing categories. The list of available categories
 					 * is pre-filtered as to not contain the current category and the AllCategory.
 					 */
-					var cvCategories = new CollectionView<Category> (GtkApplication.Instance.Backend.Categories);
+					var cvCategories = new ListCollectionView<Category> (GtkApplication.Instance.Backend.Categories);
 					cvCategories.Filter = c => c != null && !c.Contains (clickedTask);
 					cvCategories.IsObserving = true;
 					



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