diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-19 21:48:49 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-19 21:48:49 +0000 |
commit | 5ccd40564e9524420056a1423209a3066d6db657 (patch) | |
tree | 5abbb5b9326105d19a693207171de88186c2161d /src/gui/buddywindow.cpp | |
parent | 9db14810dd0387f1fa63a4e3bba9b05947bd5d9f (diff) | |
download | mana-5ccd40564e9524420056a1423209a3066d6db657.tar.gz mana-5ccd40564e9524420056a1423209a3066d6db657.tar.bz2 mana-5ccd40564e9524420056a1423209a3066d6db657.tar.xz mana-5ccd40564e9524420056a1423209a3066d6db657.zip |
Mostly indenting fixes and corrected path for OpenGL font version.
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); + } } - |