From 14bf259ade4aebe13a9d663ac26e090ab256b4f3 Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Sun, 15 May 2005 10:18:44 +0000 Subject: Small fixes --- src/gui/buddywindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp index 54652a30..b125f34c 100644 --- a/src/gui/buddywindow.cpp +++ b/src/gui/buddywindow.cpp @@ -26,9 +26,16 @@ BuddyWindow::BuddyWindow(): Window("Buddys") { setContentSize(80,200); + listbox = new gcn::ListBox(); listbox->setListModel(dynamic_cast(this)); + scrollArea = new ScrollArea(listbox); + scrollArea->setDimension(gcn::Rectangle( + 2, 0, 76, 180)); + add(scrollArea); + + addBuddy("Usiu"); // for testing } BuddyWindow::~BuddyWindow() @@ -41,7 +48,6 @@ void BuddyWindow::draw(gcn::Graphics *graphics) { // Draw the children Window::draw(graphics); - } void BuddyWindow::action(const std::string& eventId) -- cgit v1.2.3-70-g09d2