From d88c40568f43361ba153d998000598aec2f640fb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 25 Aug 2019 21:38:13 +0200 Subject: [PATCH] TextEditor: Add search-related actions to the text editor context menu Using the new GTextEditor::add_custom_context_menu_action() mechanism. Fixes #478. --- Applications/TextEditor/TextEditorWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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] {