diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-25 21:38:13 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-25 21:46:28 +0200 |
commit | d88c40568f43361ba153d998000598aec2f640fb (patch) | |
tree | 46c0551b8e019762d608d2bbc30290a7dc1d5b44 /Applications/TextEditor | |
parent | a6be213287977c82eda977f334b0c475e42d308b (diff) | |
download | serenity-d88c40568f43361ba153d998000598aec2f640fb.zip |
TextEditor: Add search-related actions to the text editor context menu
Using the new GTextEditor::add_custom_context_menu_action() mechanism.
Fixes #478.
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index 4d27d34e85..70e2470d85 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -92,6 +92,10 @@ TextEditorWidget::TextEditorWidget() m_find_textbox->set_focus(true); }); + m_editor->add_custom_context_menu_action(*m_find_action); + m_editor->add_custom_context_menu_action(*m_find_next_action); + m_editor->add_custom_context_menu_action(*m_find_previous_action); + auto* statusbar = new GStatusBar(this); m_editor->on_cursor_change = [statusbar, this] { |