mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
WindowServer: Remove "system menu" concept from WindowServer
This commit is contained in:
parent
619a223800
commit
327866520a
9 changed files with 19 additions and 148 deletions
|
@ -59,8 +59,6 @@ public:
|
|||
void clear_current_menu();
|
||||
void open_menu(Menu&, bool from_menu_bar, bool as_current_menu = true);
|
||||
|
||||
void set_current_menubar(MenuBar*);
|
||||
|
||||
void close_bar();
|
||||
void close_everyone();
|
||||
void close_everyone_not_in_lineage(Menu&);
|
||||
|
@ -68,22 +66,10 @@ public:
|
|||
|
||||
void close_all_menus_from_client(Badge<ClientConnection>, ClientConnection&);
|
||||
|
||||
Menu* system_menu() { return m_system_menu; }
|
||||
void set_system_menu(Menu&);
|
||||
|
||||
int theme_index() const { return m_theme_index; }
|
||||
|
||||
Window& window() { return *m_window; }
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_active_menubar_menu(Callback callback)
|
||||
{
|
||||
if (system_menu()) {
|
||||
if (callback(*system_menu()) == IterationDecision::Break)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Menu* previous_menu(Menu* current);
|
||||
Menu* next_menu(Menu* current);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue