[banshee] Add [STAThread] to Main for COM support if WIN32



commit 9d040ceb8acbca9c7878b4f6fea4ef49bfdc4faa
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Jul 2 13:22:57 2009 -0500

    Add [STAThread] to Main for COM support if WIN32

 src/Clients/Nereid/Nereid/Client.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/Client.cs b/src/Clients/Nereid/Nereid/Client.cs
index e7dd9d4..8675f57 100644
--- a/src/Clients/Nereid/Nereid/Client.cs
+++ b/src/Clients/Nereid/Nereid/Client.cs
@@ -43,6 +43,12 @@ namespace Nereid
 {
     public class Client : Banshee.Gui.GtkBaseClient
     {
+
+#if WIN32
+        // Extracted from Scott's old windows-port branch.  I believe this is needed
+        // for COM-interop needed by the notification-area widget.
+        [STAThread]
+#endif
         public static void Main (string [] args)
         {
             Startup<Nereid.Client> (args);



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