[tasque/transition: 151/213] [SQlite] Adjust Initialize method to new model



commit 3f2f3d38c386c6871ed6b65a82a98ffeca6303a1
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Aug 18 18:43:24 2012 +0200

    [SQlite] Adjust Initialize method to new model
    
    * It must be marked override now (abstract base class)
    * AllCategory doesn't exist anymore, hence drop it.
    * To signal initialization rely on base class mechanism

 src/Addins/SqliteBackend/SqliteBackend.cs |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/SqliteBackend.cs b/src/Addins/SqliteBackend/SqliteBackend.cs
index 045145a..7d7f2e5 100644
--- a/src/Addins/SqliteBackend/SqliteBackend.cs
+++ b/src/Addins/SqliteBackend/SqliteBackend.cs
@@ -82,29 +82,17 @@ namespace Tasque.Backends.Sqlite
 		{
 		}
 		
-		public void Initialize ()
+		public override void Initialize ()
 		{
 			if (db == null)
 				db = new Database ();
 				
 			db.Open ();
 			
-			//
-			// Add in the "All" Category
-			//
-			AllCategory allCategory = new Tasque.AllCategory ();
-			Gtk.TreeIter iter = categoryListStore.Append ();
-			categoryListStore.SetValue (iter, 0, allCategory);
-			
-			
 			RefreshCategories ();
-			RefreshTasks ();		
-
+			RefreshTasks ();
 		
-			initialized = true;
-			if (BackendInitialized != null) {
-				BackendInitialized ();
-			}		
+			Initialized = true;		
 		}
 
 		public void Cleanup ()



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