From b4429c325af3c89778fdf94124c329bd88382b26 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 14 Mar 2020 10:47:36 -0300 Subject: [PATCH] Fix incorrect TabContainer documentation for 'get_tab_control()' (cherry picked from commit 8f925b197041dcca02313778ce9166eccc47918b) --- doc/classes/TabContainer.xml | 4 ++-- scene/gui/tab_container.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/classes/TabContainer.xml b/doc/classes/TabContainer.xml index 8ec4489fb09..d2339976c59 100644 --- a/doc/classes/TabContainer.xml +++ b/doc/classes/TabContainer.xml @@ -36,10 +36,10 @@ - + - Returns the currently visible tab's [Control] node. + Returns the [Control] node from the tab at index [code]tab_idx[/code]. diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index b045ff4fe1c..d4217838a10 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -990,7 +990,7 @@ void TabContainer::_bind_methods() { ClassDB::bind_method(D_METHOD("get_current_tab"), &TabContainer::get_current_tab); ClassDB::bind_method(D_METHOD("get_previous_tab"), &TabContainer::get_previous_tab); ClassDB::bind_method(D_METHOD("get_current_tab_control"), &TabContainer::get_current_tab_control); - ClassDB::bind_method(D_METHOD("get_tab_control", "idx"), &TabContainer::get_tab_control); + ClassDB::bind_method(D_METHOD("get_tab_control", "tab_idx"), &TabContainer::get_tab_control); ClassDB::bind_method(D_METHOD("set_tab_align", "align"), &TabContainer::set_tab_align); ClassDB::bind_method(D_METHOD("get_tab_align"), &TabContainer::get_tab_align); ClassDB::bind_method(D_METHOD("set_tabs_visible", "visible"), &TabContainer::set_tabs_visible);