diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-09 21:12:01 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-09 21:12:01 +0200 |
commit | df9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29 (patch) | |
tree | 1510f931cf2964a24a2b8edc3c22a2b37be5dee4 /src/gui/setup_colors.h | |
parent | f790281b94d37f7ea2c2e8fc7b121266d88f93bb (diff) | |
download | mana-client-df9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29.tar.gz mana-client-df9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29.tar.bz2 mana-client-df9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29.tar.xz mana-client-df9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29.zip |
Fixed the updating of sliders/preview on changing color selection
It only worked when you clicked, not when the selection changed for any
other reason, like click+drag. Use a SelectionListener instead.
Diffstat (limited to 'src/gui/setup_colors.h')
-rw-r--r-- | src/gui/setup_colors.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/setup_colors.h b/src/gui/setup_colors.h index 75c4c07c..023afc7a 100644 --- a/src/gui/setup_colors.h +++ b/src/gui/setup_colors.h @@ -27,6 +27,7 @@ #include "guichanfwd.h" #include <guichan/actionlistener.hpp> +#include <guichan/selectionlistener.hpp> #include <string> @@ -34,7 +35,9 @@ class BrowserBox; class TextField; class TextPreview; -class Setup_Colors : public SetupTab, public gcn::ActionListener +class Setup_Colors : public SetupTab, + public gcn::ActionListener, + public gcn::SelectionListener { public: Setup_Colors(); @@ -42,8 +45,11 @@ class Setup_Colors : public SetupTab, public gcn::ActionListener void apply(); void cancel(); + void action(const gcn::ActionEvent &event); + void valueChanged(const gcn::SelectionEvent &event); + private: static const std::string rawmsg; |