summaryrefslogtreecommitdiffstats
path: root/editor/plugins/gradient_editor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/gradient_editor_plugin.cpp')
-rw-r--r--editor/plugins/gradient_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/gradient_editor_plugin.cpp b/editor/plugins/gradient_editor_plugin.cpp
index d8f9664e8d..dd7998c6bf 100644
--- a/editor/plugins/gradient_editor_plugin.cpp
+++ b/editor/plugins/gradient_editor_plugin.cpp
@@ -102,7 +102,7 @@ void GradientEdit::_color_changed(const Color &p_color) {
void GradientEdit::set_gradient(const Ref<Gradient> &p_gradient) {
gradient = p_gradient;
- gradient->connect("changed", callable_mp((CanvasItem *)this, &CanvasItem::queue_redraw));
+ gradient->connect(CoreStringName(changed), callable_mp((CanvasItem *)this, &CanvasItem::queue_redraw));
}
const Ref<Gradient> &GradientEdit::get_gradient() const {
@@ -644,7 +644,7 @@ GradientEditor::GradientEditor() {
gradient_editor_rect = memnew(GradientEdit);
add_child(gradient_editor_rect);
- reverse_button->connect("pressed", callable_mp(gradient_editor_rect, &GradientEdit::reverse_gradient));
+ reverse_button->connect(SceneStringName(pressed), callable_mp(gradient_editor_rect, &GradientEdit::reverse_gradient));
set_mouse_filter(MOUSE_FILTER_STOP);
_set_snap_enabled(snap_button->is_pressed());