From e6caa7318169d753b49b0b531dcf25ece92472c9 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Fri, 27 Aug 2021 17:44:10 +0100 Subject: [PATCH] Support latest VS Mac 17.0 PadToolbar API changed. --- .../MonoDevelop.ProjectSystem.Tools.Gui/BuildLoggingPad.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/MonoDevelop.ProjectSystem.Tools/MonoDevelop.ProjectSystem.Tools.Gui/BuildLoggingPad.cs b/src/MonoDevelop.ProjectSystem.Tools/MonoDevelop.ProjectSystem.Tools.Gui/BuildLoggingPad.cs index b0ca02d..9824060 100644 --- a/src/MonoDevelop.ProjectSystem.Tools/MonoDevelop.ProjectSystem.Tools.Gui/BuildLoggingPad.cs +++ b/src/MonoDevelop.ProjectSystem.Tools/MonoDevelop.ProjectSystem.Tools.Gui/BuildLoggingPad.cs @@ -26,7 +26,6 @@ using System; using System.Linq; -using Gtk; using MonoDevelop.Components; using MonoDevelop.Components.Declarative; using MonoDevelop.Components.Docking; @@ -88,7 +87,7 @@ public override void Dispose () protected override void Initialize (IPadWindow window) { - var toolbar = new PadToolbar (); + var toolbar = new Toolbar (); startButton = new ToolbarButtonItem (toolbar.Properties, nameof (startButton)); startButton.Icon = Ide.Gui.Stock.RunProgramIcon; @@ -111,7 +110,7 @@ protected override void Initialize (IPadWindow window) toolbar.AddItem (clearButton); buildTypeFilterComboBox = new ToolbarPopUpButtonItem (toolbar.Properties, nameof (buildTypeFilterComboBox)); - buildTypeFilterComboBox.MenuCreator = () => CreateBuildTypeFilterMenu (); + buildTypeFilterComboBox.Menu = CreateBuildTypeFilterMenu (); toolbar.AddItem (buildTypeFilterComboBox); searchEntry = new ToolbarSearchItem (toolbar.Properties, nameof (searchEntry));