1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

WindowServer: Remove "system menu" concept from WindowServer

This commit is contained in:
Andreas Kling 2021-03-25 23:08:34 +01:00
parent 619a223800
commit 327866520a
9 changed files with 19 additions and 148 deletions

View file

@ -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);