tasque r187 - in trunk: . src



Author: sharm
Date: Wed Dec 24 18:53:20 2008
New Revision: 187
URL: http://svn.gnome.org/viewvc/tasque?rev=187&view=rev

Log:
* src/Application.cs: DllImport system function from libc to open
URLs, since the Process class is broken in OS X 10.4 and earlier
(should be fixed when Mono 2.2 comes out).


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

Modified: trunk/src/OSXApplication.cs
==============================================================================
--- trunk/src/OSXApplication.cs	(original)
+++ trunk/src/OSXApplication.cs	Wed Dec 24 18:53:20 2008
@@ -1,6 +1,7 @@
 
 
 using System;
+using System.Runtime.InteropServices;
 using Gtk;
 using IgeMacIntegration;
 using Mono.Unix;
@@ -77,5 +78,14 @@
 			// Hide StatusIcon
 			Application.Instance.Tray.Visible = false;
 		}
+			
+			[DllImport ("libc", EntryPoint="system")]
+			public static extern int system (string command);
+			
+			public override void OpenUrl (string url)
+			{
+				system ("open \"" + url + "\"");
+			}
+
 	}
 }



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