tasque r102 - in trunk: . src/Backends/Dummy



Author: bgmerrell
Date: Thu Sep  4 20:39:01 2008
New Revision: 102
URL: http://svn.gnome.org/viewvc/tasque?rev=102&view=rev

Log:
* src/Backends/Dummy/DummyTask.cs: add id proprety to adhere to
AbstractTask.
* src/Backends/Dummy/DummyBackend.cs: add id property to adhere
to the AbstractTask.

This fixes a compiler error when trying to compile with the
dummy backend.


Modified:
   trunk/ChangeLog
   trunk/src/Backends/Dummy/DummyBackend.cs
   trunk/src/Backends/Dummy/DummyTask.cs

Modified: trunk/src/Backends/Dummy/DummyBackend.cs
==============================================================================
--- trunk/src/Backends/Dummy/DummyBackend.cs	(original)
+++ trunk/src/Backends/Dummy/DummyBackend.cs	Thu Sep  4 20:39:01 2008
@@ -301,13 +301,13 @@
 			// Set the task in the store so the model will update the UI.
 			Gtk.TreeIter iter;
 			
-			if (taskIters.ContainsKey (task.Id) == false)
+			if (taskIters.ContainsKey (task.DummyId) == false)
 				return;
 				
-			iter = taskIters [task.Id];
+			iter = taskIters [task.DummyId];
 			
 			if (task.State == TaskState.Deleted) {
-				taskIters.Remove (task.Id);
+				taskIters.Remove (task.DummyId);
 				if (taskStore.Remove (ref iter) == false) {
 					Logger.Debug ("Successfully deleted from taskStore: {0}",
 						task.Name);

Modified: trunk/src/Backends/Dummy/DummyTask.cs
==============================================================================
--- trunk/src/Backends/Dummy/DummyTask.cs	(original)
+++ trunk/src/Backends/Dummy/DummyTask.cs	Thu Sep  4 20:39:01 2008
@@ -31,11 +31,17 @@
 		
 		#region Public Properties
 		
-		public int Id
+		public int DummyId
 		{
 			get { return id; }
 			set { id = value; }
 		}
+
+		public override string Id
+		{
+			get { return id.ToString(); }
+		}
+
 		
 		public override string Name
 		{



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