diff options
Diffstat (limited to 'src/gui/buddywindow.cpp')
-rw-r--r-- | src/gui/buddywindow.cpp | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp index 5ca1b361..be6ee5ee 100644 --- a/src/gui/buddywindow.cpp +++ b/src/gui/buddywindow.cpp @@ -22,6 +22,8 @@ */ #include "buddywindow.h" +#include "scrollarea.h" +#include "button.h" BuddyWindow::BuddyWindow(): Window("Buddy") @@ -63,25 +65,17 @@ BuddyWindow::~BuddyWindow() delete cancel; } -void BuddyWindow::draw(gcn::Graphics *graphics) -{ - // Draw the children - Window::draw(graphics); -} - void BuddyWindow::action(const std::string& eventId) { - if(eventId == "Talk") { - // TODO - } - else if(eventId == "Remove") { - int selected = listbox->getSelected(); - std::string who = getElementAt(selected); - removeBuddy(who); - } - else if(eventId == "Cancel") { - setVisible(false); - } - + if (eventId == "Talk") { + // TODO + } + else if (eventId == "Remove") { + int selected = listbox->getSelected(); + std::string who = getElementAt(selected); + removeBuddy(who); + } + else if (eventId == "Cancel") { + setVisible(false); + } } - |