mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibGUI: Give GTextEditor a context menu.
Now GTextEditor manages its own editing actions (cut/copy/paste/etc) and will show a context menu containing them when requested. Apps that want to put a GTextEditor's actions in its menu can get to the actions via public getters. :^)
This commit is contained in:
@@ -29,7 +29,7 @@ GMenu::~GMenu()
|
||||
unrealize_menu();
|
||||
}
|
||||
|
||||
void GMenu::add_action(Retained<GAction>&& action)
|
||||
void GMenu::add_action(Retained<GAction> action)
|
||||
{
|
||||
m_items.append(make<GMenuItem>(m_menu_id, move(action)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user