[Scummvm-cvs-logs] SF.net SVN: scummvm:[35489] scummvm/trunk/gui/chooser.cpp
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Mon Dec 22 16:40:11 CET 2008
Revision: 35489
http://scummvm.svn.sourceforge.net/scummvm/?rev=35489&view=rev
Author: jvprat
Date: 2008-12-22 15:40:11 +0000 (Mon, 22 Dec 2008)
Log Message:
-----------
Changed the game chooser to make the game candidates not editable and selectable by pressing enter
Modified Paths:
--------------
scummvm/trunk/gui/chooser.cpp
Modified: scummvm/trunk/gui/chooser.cpp
===================================================================
--- scummvm/trunk/gui/chooser.cpp 2008-12-22 14:36:58 UTC (rev 35488)
+++ scummvm/trunk/gui/chooser.cpp 2008-12-22 15:40:11 UTC (rev 35489)
@@ -42,6 +42,7 @@
// Add choice list
_list = new ListWidget(this, dialogId + ".List");
_list->setNumberingMode(kListNumberingOff);
+ _list->setEditable(false);
// Buttons
new ButtonWidget(this, dialogId + ".Cancel", "Cancel", kCloseCmd, 0);
@@ -57,6 +58,7 @@
int item = _list->getSelected();
switch (cmd) {
case kChooseCmd:
+ case kListItemActivatedCmd:
case kListItemDoubleClickedCmd:
_list->endEditMode();
setResult(item);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list