tasque r47 - in branches/brainshare08: . src



Author: calvinrg
Date: Thu Mar 20 20:14:16 2008
New Revision: 47
URL: http://svn.gnome.org/viewvc/tasque?rev=47&view=rev

Log:
* src/Application.cs: fixed up giver intergration code

Modified:
   branches/brainshare08/ChangeLog
   branches/brainshare08/src/Application.cs

Modified: branches/brainshare08/src/Application.cs
==============================================================================
--- branches/brainshare08/src/Application.cs	(original)
+++ branches/brainshare08/src/Application.cs	Thu Mar 20 20:14:16 2008
@@ -144,7 +144,6 @@
 
 		private Application (string[] args)
 		{
-			Parse(args);
 			Init(args);
 		}
 
@@ -184,12 +183,16 @@
 								name = node.InnerText;
 								
 								if(name != null) {
+									Logger.Debug("the name is {0}", name);
 									// Register Tasque RemoteControl
 									try {
-										remoteControl = RemoteControlProxy.Register ();
+										remoteControl = RemoteControlProxy.GetInstance();
 										if (remoteControl != null) {
-											remoteControl.CreateTask(String.Empty, name, false);
+											Logger.Debug("We are about to call to create a task");
+											remoteControl.CreateTask("Work", name, false);
 										}
+										else
+											Logger.Debug("RemoteControl was null");
 									} catch (Exception e) {
 										Logger.Debug ("Tasque remote control disabled (DBus exception): {0}",
 										            e.Message);
@@ -266,6 +269,8 @@
 
 			preferences = new Preferences();
 			
+			Parse(args);
+			
 			// Register Tasque RemoteControl
 			try {
 				remoteControl = RemoteControlProxy.Register ();



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