Added menu organization hooks

This commit is contained in:
Kyle J Cardoza 2023-09-20 12:52:01 -04:00
parent 81b59ad0a0
commit a9f33627f1
3 changed files with 29 additions and 0 deletions

View file

@ -1531,6 +1531,18 @@ withRepeatedImage: (NSImage*)image
- (NSString *) proposedTitle: (NSString *)title
forMenuItem: (NSMenuItem *)menuItem;
/**
* Used to determine whether or not the theme handles organizing the app's main
* menu. The default implementation returns NO.
*/
- (BOOL) organizesMainMenu;
/**
* Used by the theme to organize the main menu. The default implementation does
* nothing, because it will never be called.
*/
- (void) organizeMainMenu: (NSMenu *)menu;
@end
@interface GSTheme (OpenSavePanels)