summaryrefslogtreecommitdiff
path: root/Applications/TextEditor
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-28 21:13:30 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-29 06:36:35 +0200
commit72950f93a3f3694bae640827ccd0371de4cfacd8 (patch)
tree314ac82691d3a995dc511149528696d653ccde2a /Applications/TextEditor
parent63e6b09816c5d144e83138d3fd471b800d29a52a (diff)
downloadserenity-72950f93a3f3694bae640827ccd0371de4cfacd8.zip
TextEditor: Move the Font menu inside the View menu
This will be our first user of the nested menus feature. :^)
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index 1627d9fadd..0d0d073a54 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/Applications/TextEditor/TextEditorWidget.cpp
@@ -198,10 +198,11 @@ TextEditorWidget::TextEditorWidget()
m_editor->update();
}));
});
- menubar->add_menu(move(font_menu));
auto view_menu = make<GMenu>("View");
view_menu->add_action(*m_line_wrapping_setting_action);
+ view_menu->add_separator();
+ view_menu->add_submenu(move(font_menu));
menubar->add_menu(move(view_menu));
auto help_menu = make<GMenu>("Help");