diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-15 23:17:00 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-15 23:17:00 +0000 |
commit | 97cac06ae12026f4be3765f68b0aea3caf02d8f0 (patch) | |
tree | 7b79d7e7319bfe542362ce3396295dd3aded3940 /src/gui | |
parent | 81aee6c4c85649793d9cf38f5a5bc1bdfffdd78e (diff) | |
download | mana-97cac06ae12026f4be3765f68b0aea3caf02d8f0.tar.gz mana-97cac06ae12026f4be3765f68b0aea3caf02d8f0.tar.bz2 mana-97cac06ae12026f4be3765f68b0aea3caf02d8f0.tar.xz mana-97cac06ae12026f4be3765f68b0aea3caf02d8f0.zip |
Initialize joystick to NULL and allow right shift and control keys to be used.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/box.cpp | 5 | ||||
-rw-r--r-- | src/gui/box.h | 42 | ||||
-rw-r--r-- | src/gui/char_server.h | 2 | ||||
-rw-r--r-- | src/gui/updatewindow.cpp | 5 |
4 files changed, 28 insertions, 26 deletions
diff --git a/src/gui/box.cpp b/src/gui/box.cpp index 183eabc3..6af3ae3e 100644 --- a/src/gui/box.cpp +++ b/src/gui/box.cpp @@ -23,9 +23,8 @@ #include "box.h" -Box::Box() - : padding(0), - gcn::Container() +Box::Box(): + padding(0) { setOpaque(false); } diff --git a/src/gui/box.h b/src/gui/box.h index fc6b91ae..d65a6ac3 100644 --- a/src/gui/box.h +++ b/src/gui/box.h @@ -29,27 +29,27 @@ class Box : public gcn::Container { - protected: - Box(); - virtual ~Box(); - - /* - * Spacing between client widgets - */ - unsigned int padding; - - virtual void draw(gcn::Graphics *) = 0; - - public: - /* - * Returns padding - */ - unsigned int getPadding(); - - /* - * Sets padding between widgets - */ - void setPadding(unsigned int); + protected: + Box(); + virtual ~Box(); + + /* + * Spacing between client widgets + */ + unsigned int padding; + + virtual void draw(gcn::Graphics *) = 0; + + public: + /* + * Returns padding + */ + unsigned int getPadding(); + + /* + * Sets padding between widgets + */ + void setPadding(unsigned int); }; #endif diff --git a/src/gui/char_server.h b/src/gui/char_server.h index 42627b9c..bd41a479 100644 --- a/src/gui/char_server.h +++ b/src/gui/char_server.h @@ -32,6 +32,8 @@ */ class ServerListModel : public gcn::ListModel { public: + virtual ~ServerListModel() {}; + int getNumberOfElements(); std::string getElementAt(int i); }; diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 7ee84016..75f94b4b 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -282,8 +282,9 @@ void updateData() case UPDATE_ERROR: SDL_WaitThread(thread, NULL); new OkDialog( - "Error", ("The update process is incomplete. ", - "It is strongly recommended that you try again later"), + "Error", + "The update process is incomplete.\n" + "It is strongly recommended that you try again later", updaterWindow); logger->log("Error during the update process"); downloadStatus = UPDATE_IDLE; |