summaryrefslogtreecommitdiff
path: root/LibGUI/GMenu.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-20 02:39:46 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-20 02:39:46 +0100
commitb704d3d295dd364279546f7b04b89420fda39751 (patch)
tree4afdadfedf64ce82a1cfff65774fb502b0a7e9e0 /LibGUI/GMenu.cpp
parent4804609b7e8e2488b28d68e5171a61cd7a5ea848 (diff)
downloadserenity-b704d3d295dd364279546f7b04b89420fda39751.zip
LibGUI: Add a GToolBar class that can be populated with GActions.
The same action can be added to both a menu and a toolbar. Use this to put a toolbar into FileManager. This is pretty neat. :^)
Diffstat (limited to 'LibGUI/GMenu.cpp')
-rw-r--r--LibGUI/GMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GMenu.cpp b/LibGUI/GMenu.cpp
index 105b9a93ba..0a859d5978 100644
--- a/LibGUI/GMenu.cpp
+++ b/LibGUI/GMenu.cpp
@@ -29,7 +29,7 @@ GMenu::~GMenu()
unrealize_menu();
}
-void GMenu::add_action(OwnPtr<GAction>&& action)
+void GMenu::add_action(RetainPtr<GAction>&& action)
{
m_items.append(make<GMenuItem>(move(action)));
}