mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +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
Notes:
sideshowbarker
2024-07-19 10:54:17 +09:00
Author: https://github.com/awesomekling
Commit: fd5eb79d19
39 changed files with 88 additions and 86 deletions
|
@ -1180,7 +1180,7 @@ void GTextEditor::did_update_selection()
|
|||
void GTextEditor::context_menu_event(GContextMenuEvent& event)
|
||||
{
|
||||
if (!m_context_menu) {
|
||||
m_context_menu = make<GMenu>();
|
||||
m_context_menu = GMenu::construct();
|
||||
m_context_menu->add_action(undo_action());
|
||||
m_context_menu->add_action(redo_action());
|
||||
m_context_menu->add_separator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue