mac: Properly focus the about dialog

This commit is contained in:
Hylke Bons 2012-02-11 19:52:29 +01:00
parent e5f10bbc3c
commit cc0098b6aa

View file

@ -19,12 +19,11 @@ using System;
using System.Drawing;
using System.IO;
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.Foundation;
using MonoMac.ObjCRuntime;
using MonoMac.WebKit;
namespace SparkleShare {
public class SparkleAbout : NSWindow {
@ -54,9 +53,12 @@ namespace SparkleShare {
BackingType = NSBackingStore.Buffered;
CreateAbout ();
OrderFrontRegardless ();
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
MakeKeyAndOrderFront (this);
OrderFrontRegardless ();
Program.UI.UpdateDockIconVisibility ();
Controller.NewVersionEvent += delegate (string new_version) {