~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/MacPlatform/MacIntegrationCommands.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
using MonoDevelop.Ide;
28
28
using MonoDevelop.Components.Commands;
29
29
using MonoDevelop.MacInterop;
 
30
using MonoMac.AppKit;
30
31
 
31
32
namespace MonoDevelop.MacIntegration
32
33
{
35
36
                MinimizeWindow,
36
37
                HideWindow,
37
38
                HideOthers,
 
39
                Services,
38
40
        }
39
41
        
40
42
        internal class MacMinimizeWindowHandler : CommandHandler
49
51
        {
50
52
                protected override void Run ()
51
53
                {
52
 
                        MacHideOthersHandler.RunMenuCommand (CarbonCommandID.Hide);
 
54
                        NSApplication.SharedApplication.Hide (NSApplication.SharedApplication);
53
55
                }
54
56
        }
55
57
        
57
59
        {
58
60
                protected override void Run ()
59
61
                {
60
 
                        RunMenuCommand (CarbonCommandID.HideOthers);
61
 
                }
62
 
                
63
 
                internal static void RunMenuCommand (CarbonCommandID commandID)
64
 
                {
65
 
                        var item = HIToolbox.GetMenuItem ((uint)commandID);
66
 
                        var cmd = new CarbonHICommand ((uint)commandID, item);
67
 
                        Carbon.ProcessHICommand (ref cmd);
 
62
                        NSApplication.SharedApplication.HideOtherApplications (NSApplication.SharedApplication);
68
63
                }
69
64
        }
70
65
}