mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 20:45:07 +00:00
GMenu: Update apps now that you can create a nameless GMenu
We had many context menus with names, simply because you were forced to give them names.
This commit is contained in:
parent
5eb2c138e2
commit
11f2e7cd5c
7 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@ VBForm::VBForm(const String& name, GWidget* parent)
|
|||
set_background_color(Color::WarmGray);
|
||||
set_greedy_for_hits(true);
|
||||
|
||||
m_context_menu = make<GMenu>("Context menu");
|
||||
m_context_menu = make<GMenu>();
|
||||
m_context_menu->add_action(GAction::create("Move to front", [this](auto&) {
|
||||
if (auto* widget = single_selected_widget())
|
||||
widget->gwidget()->move_to_front();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue