summaryrefslogtreecommitdiff
path: root/editor/plugins/text_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-19 21:36:56 +0100
committerGitHub <noreply@github.com>2022-01-19 21:36:56 +0100
commitd661835a1878cd26c37303a3d6550d60e287506b (patch)
treeb1b7e77a627bf626e5858208c74036685f326f48 /editor/plugins/text_editor.cpp
parentd3129058b1e0269cbf7fe086299aa632e99ff94b (diff)
parentf43f68f605440795e39a66927b125d9f779d59f9 (diff)
Merge pull request #54729 from Paulb23/text-edit-callable
Diffstat (limited to 'editor/plugins/text_editor.cpp')
-rw-r--r--editor/plugins/text_editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/plugins/text_editor.cpp b/editor/plugins/text_editor.cpp
index 12d13571f8..940f269803 100644
--- a/editor/plugins/text_editor.cpp
+++ b/editor/plugins/text_editor.cpp
@@ -272,8 +272,10 @@ void TextEditor::update_settings() {
code_editor->update_editor_settings();
}
-void TextEditor::set_tooltip_request_func(String p_method, Object *p_obj) {
- code_editor->get_text_editor()->set_tooltip_request_func(p_obj, p_method, this);
+void TextEditor::set_tooltip_request_func(const Callable &p_toolip_callback) {
+ Variant args[1] = { this };
+ const Variant *argp[] = { &args[0] };
+ code_editor->get_text_editor()->set_tooltip_request_func(p_toolip_callback.bind(argp, 1));
}
Control *TextEditor::get_edit_menu() {