mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user