mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-30 06:01:57 +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
Notes:
sideshowbarker
2024-07-19 12:07:28 +09:00
Author: https://github.com/awesomekling
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