summaryrefslogtreecommitdiff
path: root/src/gui/setup_colors.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 21:12:01 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 21:12:01 +0200
commitdf9f7aa2d3f33f70b7aa9fd8ac7f1b7ddece0b29 (patch)
tree1510f931cf2964a24a2b8edc3c22a2b37be5dee4 /src/gui/setup_colors.h
parentf790281b94d37f7ea2c2e8fc7b121266d88f93bb (diff)
downloadmana-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.h8
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;