From f7061fd5593a2598fab4d821f6c1611b9d005ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 30 Nov 2020 11:15:53 +0100 Subject: [PATCH] Buttons: Don't use deprecated set_enabled_focus_mode It's better to use the equivalent, non-deprecated API. Follow-up to #43974. --- scene/gui/link_button.cpp | 2 +- scene/gui/menu_button.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp index 4b8054bac64..3f33838e9d0 100644 --- a/scene/gui/link_button.cpp +++ b/scene/gui/link_button.cpp @@ -140,6 +140,6 @@ void LinkButton::_bind_methods() { LinkButton::LinkButton() { underline_mode = UNDERLINE_MODE_ALWAYS; - set_enabled_focus_mode(FOCUS_NONE); + set_focus_mode(FOCUS_NONE); set_default_cursor_shape(CURSOR_POINTING_HAND); } diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 6e348054e29..2577f9cecce 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -129,7 +129,7 @@ MenuButton::MenuButton() { set_flat(true); set_toggle_mode(true); set_disable_shortcuts(false); - set_enabled_focus_mode(FOCUS_NONE); + set_focus_mode(FOCUS_NONE); set_process_unhandled_key_input(true); set_action_mode(ACTION_MODE_BUTTON_PRESS);