diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2016-11-29 18:56:16 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2016-11-29 18:59:26 +0300 |
commit | 615bf61bd70532abe620b69ef4b20c9af2278831 (patch) | |
tree | 7275b3f2a4118328222225a6f7b6755c2576c78a /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage | |
parent | ebf7efe8f268982d70213a6e8937ec5e3bf03507 (diff) |
[Ide][Welcome] Remove the Close Solution button from the welcome page toolbar
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageFrame.cs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageFrame.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageFrame.cs index 71908ebbea..9a40fa5e94 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageFrame.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageFrame.cs @@ -130,7 +130,6 @@ namespace MonoDevelop.Ide.WelcomePage class WelcomePageProjectBar: HeaderBox { Gtk.Label messageLabel; - Gtk.Button closeButton; Gtk.Button backButton; public WelcomePageProjectBar () @@ -142,15 +141,7 @@ namespace MonoDevelop.Ide.WelcomePage box.PackStart (messageLabel = new Gtk.Label () { Xalign = 0 }, true, true, 0); backButton = new Gtk.Button (); box.PackEnd (backButton, false, false, 0); - closeButton = new Gtk.Button (); - box.PackEnd (closeButton, false, false, 0); - - closeButton.Clicked += delegate { - if (IdeApp.Workspace.IsOpen) - IdeApp.Workspace.Close (); - else - IdeApp.Workbench.CloseAllDocuments (false); - }; + backButton.Clicked += delegate { WelcomePageService.HideWelcomePage (true); }; @@ -165,32 +156,26 @@ namespace MonoDevelop.Ide.WelcomePage if (sols.Length == 1) { messageLabel.Text = GettextCatalog.GetString ("Solution '{0}' is currently open", sols [0].Name); backButton.Label = GettextCatalog.GetString ("Go Back to Solution"); - closeButton.Label = GettextCatalog.GetString ("Close Solution"); } else if (sols.Length > 1) { messageLabel.Text = GettextCatalog.GetString ("Solution '{0}' and others are currently open", sols [0].Name); backButton.Label = GettextCatalog.GetString ("Go Back to Solutions"); - closeButton.Label = GettextCatalog.GetString ("Close all Solutions"); } else { messageLabel.Text = GettextCatalog.GetString ("A workspace is currently open"); backButton.Label = GettextCatalog.GetString ("Go Back to Workspace"); - closeButton.Label = GettextCatalog.GetString ("Close Workspace"); } } else if (IdeApp.Workbench.Documents.Count> 0) { var files = IdeApp.Workbench.Documents.Where (d => d.IsFile).ToArray (); if (files.Length == 1) { messageLabel.Text = GettextCatalog.GetString ("The file '{0}' is currently open", files[0].FileName.FileName); backButton.Label = GettextCatalog.GetString ("Go Back to File"); - closeButton.Label = GettextCatalog.GetString ("Close File"); } else if (files.Length > 1) { messageLabel.Text = GettextCatalog.GetString ("The file '{0}' and other are currently open", files[0].FileName.FileName); backButton.Label = GettextCatalog.GetString ("Go Back to Files"); - closeButton.Label = GettextCatalog.GetString ("Close Files"); } else { messageLabel.Text = GettextCatalog.GetString ("Some documents are currently open"); backButton.Label = GettextCatalog.GetString ("Go Back to Documents"); - closeButton.Label = GettextCatalog.GetString ("Close Documents"); } } } |