mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +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
|
@ -648,7 +648,7 @@ void TerminalWidget::beep()
|
|||
void TerminalWidget::context_menu_event(GContextMenuEvent& event)
|
||||
{
|
||||
if (!m_context_menu) {
|
||||
m_context_menu = make<GMenu>();
|
||||
m_context_menu = GMenu::construct();
|
||||
m_context_menu->add_action(copy_action());
|
||||
m_context_menu->add_action(paste_action());
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ private:
|
|||
RefPtr<GAction> m_copy_action;
|
||||
RefPtr<GAction> m_paste_action;
|
||||
|
||||
OwnPtr<GMenu> m_context_menu;
|
||||
RefPtr<GMenu> m_context_menu;
|
||||
|
||||
CElapsedTimer m_triple_click_timer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue