Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorAlan McGovern <alan@xamarin.com>2013-08-19 19:52:09 +0400
committerAlan McGovern <alan@xamarin.com>2013-08-19 19:53:54 +0400
commit1cfbb7db701ca57cfb94c601e9c4093e4db48afe (patch)
treecfe8635fd952473a4dd52de78f7adc29028421f2 /main/src
parent779f5cecc4d6da4dfde37c66c66880986c564b3e (diff)
[MacPlatform] Remove some duplicated NSApplication.Init calls
We need to enforce that NSApplication is only initalised at application startup. We still call NSApplication.Init more than once and we still do it lazily which is Bad. We can end up (re)initializing on the wrong thread and break monomac. This kills the worst of the issues and should allow MonoDevelop to run again.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/addins/MacPlatform/MacPlatform.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs
index 99a44c1aeb..3ce0204116 100644
--- a/main/src/addins/MacPlatform/MacPlatform.cs
+++ b/main/src/addins/MacPlatform/MacPlatform.cs
@@ -635,8 +635,6 @@ end tell", directory.ToString ().Replace ("\"", "\\\"")));
internal override MainToolbar CreateMainToolbar (Gtk.Window window)
{
- NSApplication.Init ();
-
NSWindow w = GtkQuartz.GetWindow (window);
w.IsOpaque = false;