mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
LibGUI: More work on client-side menus.
This commit is contained in:
parent
c75ecaae32
commit
757429fb55
6 changed files with 55 additions and 3 deletions
|
@ -33,6 +33,10 @@ void GApplication::exit(int exit_code)
|
|||
|
||||
void GApplication::set_menubar(OwnPtr<GMenuBar>&& menubar)
|
||||
{
|
||||
if (m_menubar)
|
||||
m_menubar->notify_removed_from_application(Badge<GApplication>());
|
||||
m_menubar = move(menubar);
|
||||
if (m_menubar)
|
||||
m_menubar->notify_added_to_application(Badge<GApplication>());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue