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
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2011-10-02 21:56:04 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2011-10-02 21:56:04 +0400
commit349676cc7a498859b7c66c52c64bb5857deb9195 (patch)
tree3f5c7e5fc8bb7c58907bb6de356619eb491c20a2 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs
parentb633104da6474956457c0882a9296b3276c2a63f (diff)
[Ide] About dialog should not be modal on Mac
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/CommonAboutDialog.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/CommonAboutDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/CommonAboutDialog.cs
index eb97726050..5d082b56d4 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/CommonAboutDialog.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/CommonAboutDialog.cs
@@ -80,5 +80,25 @@ namespace MonoDevelop.Ide.Gui.Dialogs
ChangeColor (cw);
}
}
+
+ static CommonAboutDialog instance;
+
+ public static void ShowAboutDialog ()
+ {
+ if (Platform.IsMac) {
+ if (instance == null) {
+ instance = new CommonAboutDialog ();
+ MessageService.PlaceDialog (instance, IdeApp.Workbench.RootWindow);
+ instance.Response += delegate {
+ instance.Destroy ();
+ instance = null;
+ };
+ }
+ instance.Present ();
+ return;
+ }
+
+ MessageService.ShowCustomDialog (new CommonAboutDialog ());
+ }
}
}