mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 21:38:27 +02:00
IDE/Cocoa: adapt to the new API of Modern Form Style Tool Bar
This commit is contained in:
parent
8f2d7ca2b5
commit
fc0fe67716
@ -70,10 +70,7 @@ begin
|
||||
SourceEditorManager.JumpForwardClicked( nil );
|
||||
end;
|
||||
|
||||
function onGetCommandMenu: TMenuItem;
|
||||
var
|
||||
menu: TMenuItem;
|
||||
|
||||
procedure onGetCommandMenu( const menu: TMenu );
|
||||
function createSearchMenuItem: TMenuItem;
|
||||
begin
|
||||
Result:= TMenuItem.Create( menu );
|
||||
@ -83,9 +80,7 @@ var
|
||||
end;
|
||||
|
||||
begin
|
||||
menu:= TMenuItem.Create( nil );
|
||||
menu.Add( createSearchMenuItem );
|
||||
Result:= menu;
|
||||
menu.Items.Add( createSearchMenuItem );
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user