tasque r187 - in trunk: . src
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tasque r187 - in trunk: . src
- Date: Wed, 24 Dec 2008 18:53:20 +0000 (UTC)
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]