mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject* is expected.
This commit is contained in:
parent
e9dda8d592
commit
fd5eb79d19
39 changed files with 88 additions and 86 deletions
|
@ -11,7 +11,7 @@ public:
|
|||
GMenuBar();
|
||||
~GMenuBar();
|
||||
|
||||
void add_menu(NonnullOwnPtr<GMenu>&&);
|
||||
void add_menu(NonnullRefPtr<GMenu>);
|
||||
|
||||
void notify_added_to_application(Badge<GApplication>);
|
||||
void notify_removed_from_application(Badge<GApplication>);
|
||||
|
@ -21,5 +21,5 @@ private:
|
|||
void unrealize_menubar();
|
||||
|
||||
int m_menubar_id { -1 };
|
||||
NonnullOwnPtrVector<GMenu> m_menus;
|
||||
NonnullRefPtrVector<GMenu> m_menus;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue