tasque r132 - in trunk: . src



Author: sharm
Date: Wed Oct  8 13:44:14 2008
New Revision: 132
URL: http://svn.gnome.org/viewvc/tasque?rev=132&view=rev

Log:
* tasque/src/RemoteControl.cs: Accidentally committed Alex Launi's patch
  for bug #555028, which adds a bunch of really useful dbus methods:
  GetTaskIds, GetNameForTaskById, GetCategoryForTaskById,
  GetStateForTaskById, and MarkTaskAsCompleteById.  In this commit I'm
  commenting-out MarkTaskAsCompleteById because it still needs to be
  reviewed.

Modified:
   trunk/ChangeLog
   trunk/src/RemoteControl.cs

Modified: trunk/src/RemoteControl.cs
==============================================================================
--- trunk/src/RemoteControl.cs	(original)
+++ trunk/src/RemoteControl.cs	Wed Oct  8 13:44:14 2008
@@ -223,25 +223,25 @@
 			return task != null ? (int) task.State : -1;
 		}
 		
-		/// <summary>
-		/// Marks a task complete
-		/// </summary>
-		/// <param name="id">
-		/// A <see cref="System.String"/> for the ID of the task
-		/// </param>
-		public void MarkTaskAsCompleteById (string id)
-		{
-			ITask task = GetTaskById (id);
-			if (task == null)
-				return;
-				
-			if (task.State == TaskState.Active) {
-				if (Application.Preferences.GetBool (Preferences.ShowCompletedTasksKey))
-					task.Complete ();
-				else
-					task.Inactivate ();
-			}
-		}
+//		/// <summary>
+//		/// Marks a task complete
+//		/// </summary>
+//		/// <param name="id">
+//		/// A <see cref="System.String"/> for the ID of the task
+//		/// </param>
+//		public void MarkTaskAsCompleteById (string id)
+//		{
+//			ITask task = GetTaskById (id);
+//			if (task == null)
+//				return;
+//				
+//			if (task.State == TaskState.Active) {
+//				if (Application.Preferences.GetBool (Preferences.ShowCompletedTasksKey))
+//					task.Complete ();
+//				else
+//					task.Inactivate ();
+//			}
+//		}
 		
 		/// <summary>
 		/// Looks up a task by ID in the backend



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