diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-16 23:18:55 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-16 23:18:55 +0000 |
commit | dc53baaaf65943c6768e3ad209129609334133e8 (patch) | |
tree | cfd4ba52d94e2f2238195addaa53f80f4013f36a /src/gui/listbox.h | |
parent | 35afca876ece89be5b282c73a200d0d3c5d27fe0 (diff) | |
download | mana-dc53baaaf65943c6768e3ad209129609334133e8.tar.gz mana-dc53baaaf65943c6768e3ad209129609334133e8.tar.bz2 mana-dc53baaaf65943c6768e3ad209129609334133e8.tar.xz mana-dc53baaaf65943c6768e3ad209129609334133e8.zip |
Subclassed ShopListBox from ListBox to get rid of some duplicated code, and
fixed a problem with scrolling to the current selection. Also aligned the text
a bit better and put the price in parenthesis.
Diffstat (limited to 'src/gui/listbox.h')
-rw-r--r-- | src/gui/listbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/listbox.h b/src/gui/listbox.h index c1932f54..deca07cf 100644 --- a/src/gui/listbox.h +++ b/src/gui/listbox.h @@ -73,9 +73,9 @@ class ListBox : public gcn::ListBox /** * Sets the index of the selected element. */ - void setSelected(int selected); + virtual void setSelected(int selected); - private: + protected: /** * Sends out selection events to the list of selection listeners. */ |