mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
WindowServer: Remove the global app menu
The SetApplicationMenu IPC message is still there, since we also need to clean up all of the client code before we can remove that.
This commit is contained in:
parent
05cc7d69ac
commit
fcc8e3484f
6 changed files with 3 additions and 48 deletions
|
@ -59,9 +59,7 @@ public:
|
|||
void clear_current_menu();
|
||||
void open_menu(Menu&, bool from_menu_bar, bool as_current_menu = true);
|
||||
|
||||
MenuBar* current_menubar() { return m_current_menubar.ptr(); }
|
||||
void set_current_menubar(MenuBar*);
|
||||
void close_menubar(MenuBar&);
|
||||
|
||||
void close_bar();
|
||||
void close_everyone();
|
||||
|
@ -84,8 +82,6 @@ public:
|
|||
if (callback(*system_menu()) == IterationDecision::Break)
|
||||
return;
|
||||
}
|
||||
if (m_current_menubar)
|
||||
m_current_menubar->for_each_menu(callback);
|
||||
}
|
||||
|
||||
Menu* previous_menu(Menu* current);
|
||||
|
@ -123,7 +119,6 @@ private:
|
|||
|
||||
int m_theme_index { 0 };
|
||||
|
||||
WeakPtr<MenuBar> m_current_menubar;
|
||||
WeakPtr<Menu> m_hovered_menu;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue