Default value for property 'selected' is now -1, i.e. no selection. Defining this value's default in the default style would be awkward.

This was SVN commit r2505.
This commit is contained in:
Gee 2005-07-21 07:34:48 +00:00
parent 9b2736e1d1
commit abdc96b300

View File

@ -34,7 +34,8 @@ CList::CList()
GUI<bool>::SetSetting(this, "scrollbar", false);
GUI<int>::SetSetting(this, "selected", 1);
// Nothing is selected as default.
GUI<int>::SetSetting(this, "selected", -1);
// Add scroll-bar
CGUIScrollBarVertical * bar = new CGUIScrollBarVertical();
@ -374,8 +375,6 @@ void CList::DrawList(const int &selected,
void CList::AddItem(const CStr& str)
{
LOG(ERROR, "gui", "Hej: %s", str.c_str());
CGUIList *pList;
GUI<CGUIList>::GetSettingPointer(this, "list", pList);