Skip to content

Commit

Permalink
Support latest VS Mac 17.0
Browse files Browse the repository at this point in the history
PadToolbar API changed.
  • Loading branch information
mrward committed Aug 27, 2021
1 parent 7c0f502 commit e6caa73
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

using System;
using System.Linq;
using Gtk;
using MonoDevelop.Components;
using MonoDevelop.Components.Declarative;
using MonoDevelop.Components.Docking;
Expand Down Expand Up @@ -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;
Expand All @@ -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));
Expand Down

0 comments on commit e6caa73

Please sign in to comment.