From 69b1485a22dc2b8a2cfe0bd10edcbaad0da0cf6e Mon Sep 17 00:00:00 2001 From: strangerke Date: Thu, 12 May 2011 01:13:57 +0200 Subject: GIT: Clean up: Suppress SVN tags, now useless --- gui/widgets/list.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'gui/widgets/list.cpp') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 1f7846c503..7e7275890e 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -17,9 +17,6 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$ */ #include "common/system.h" -- cgit v1.2.3 From a3fe84cfe67a3eb4ae4750923f712bc9216a2f3f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 17 May 2011 12:11:51 +0200 Subject: GUI: For a list entry in edit mode, move caret to end --- gui/widgets/list.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gui/widgets/list.cpp') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 7e7275890e..065b240471 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -587,6 +587,7 @@ void ListWidget::startEditMode() { if (_editable && !_editMode && _selectedItem >= 0) { _editMode = true; setEditString(_list[_selectedItem]); + _caretPos = _editString.size(); // Force caret to the *end* of the selection. if (_listColors.empty()) { _editColor = ThemeEngine::kFontColorNormal; } else { -- cgit v1.2.3 From 9539017ee35ce280758f22e589aa52c3baf9aaf3 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 25 May 2011 11:17:11 -0400 Subject: ALL: initialise -> initialize --- gui/widgets/list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/widgets/list.cpp') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 065b240471..a0877fc68a 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -38,7 +38,7 @@ ListWidget::ListWidget(Dialog *boss, const String &name, const char *tooltip, ui _scrollBar = NULL; _textWidth = NULL; - // This ensures that _entriesPerPage is properly initialised. + // This ensures that _entriesPerPage is properly initialized. reflowLayout(); _scrollBar = new ScrollBarWidget(this, _w - _scrollBarWidth + 1, 0, _scrollBarWidth, _h); @@ -70,7 +70,7 @@ ListWidget::ListWidget(Dialog *boss, int x, int y, int w, int h, const char *too _scrollBar = NULL; _textWidth = NULL; - // This ensures that _entriesPerPage is properly initialised. + // This ensures that _entriesPerPage is properly initialized. reflowLayout(); _scrollBar = new ScrollBarWidget(this, _w - _scrollBarWidth + 1, 0, _scrollBarWidth, _h); -- cgit v1.2.3