From 7e8736a47df98828e9761fb19ea64751c0f05f5f Mon Sep 17 00:00:00 2001 From: "M. Huri" Date: Sat, 13 Oct 2018 17:34:57 +0700 Subject: [PATCH] [Docs] Fixed 'get_button_count's link and a typo related to 'button'. (cherry picked from commit 967831d9a0a11d79a1c186a590a132a88f36df03) --- doc/classes/TreeItem.xml | 2 +- scene/gui/tree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index b9b39b5db6a..17e706ab49c 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -25,7 +25,7 @@ - Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [code]get_buton_count()[/code] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. + Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index b8fd2ce16e8..7cd105ac4af 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2948,7 +2948,7 @@ void Tree::_notification(int p_what) { if (show_column_titles) { - //title butons + //title buttons int ofs = cache.bg->get_margin(MARGIN_LEFT); for (int i = 0; i < columns.size(); i++) {