diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-27 17:01:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-27 17:01:52 +0200 |
commit | b6de723eb32be64d3fcba4815719615218f9594d (patch) | |
tree | 89de0d3936d52a556bb0884fe118473f7ff28087 /Applications/TextEditor | |
parent | 8ea25ca3b0bb1e674afdba9973d2d86b525d847f (diff) | |
download | serenity-b6de723eb32be64d3fcba4815719615218f9594d.zip |
TextEditor: Move line wrapping setting to a new "View" menu
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index 2925ed292a..57056dc2aa 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -158,15 +158,12 @@ TextEditorWidget::TextEditorWidget() app_menu->add_action(*m_save_action); app_menu->add_action(*m_save_as_action); app_menu->add_separator(); - app_menu->add_action(*m_line_wrapping_setting_action); - app_menu->add_separator(); app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) { GApplication::the().quit(0); return; })); menubar->add_menu(move(app_menu)); - auto edit_menu = make<GMenu>("Edit"); edit_menu->add_action(m_editor->undo_action()); edit_menu->add_action(m_editor->redo_action()); @@ -190,6 +187,11 @@ TextEditorWidget::TextEditorWidget() }); menubar->add_menu(move(font_menu)); + + auto view_menu = make<GMenu>("View"); + view_menu->add_action(*m_line_wrapping_setting_action); + menubar->add_menu(move(view_menu)); + auto help_menu = make<GMenu>("Help"); help_menu->add_action(GAction::create("About", [](const GAction&) { dbgprintf("FIXME: Implement Help/About\n"); |