From b0ca5f88bda2154f566038f2a2eebf183884e830 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 15 Nov 2009 15:39:17 +0000 Subject: [PATCH] ListBox --- Src/gui/widgets.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Src/gui/widgets.hpp b/Src/gui/widgets.hpp index a583cc1..45553ba 100644 --- a/Src/gui/widgets.hpp +++ b/Src/gui/widgets.hpp @@ -53,7 +53,7 @@ private: }; -class List : public gcn::Widget +class List : public gcn::ListBox { public: class PrivListModel : public gcn::ListModel @@ -77,8 +77,12 @@ public: int n_msgs; }; - List(const char **msgs, int n_msgs) { + List(const char **msgs, int n_msgs) + { + this->model = new PrivListModel(msgs, n_msgs); } +private: + PrivListModel *model; }; /*