summaryrefslogtreecommitdiff
path: root/src/gui/widgets/radiobutton.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 02:37:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit015b14f8e60d64da2999da9c753af62ec1ffdf72 (patch)
tree5a96c0573d7065fc4a3c87bf727c0645946c1222 /src/gui/widgets/radiobutton.cpp
parentb6b4ea19929e7e67d987041aa129366f4fed3a6d (diff)
downloadmv-015b14f8e60d64da2999da9c753af62ec1ffdf72.tar.gz
mv-015b14f8e60d64da2999da9c753af62ec1ffdf72.tar.bz2
mv-015b14f8e60d64da2999da9c753af62ec1ffdf72.tar.xz
mv-015b14f8e60d64da2999da9c753af62ec1ffdf72.zip
Add palette inheritance to radiobutton class.
Diffstat (limited to 'src/gui/widgets/radiobutton.cpp')
-rw-r--r--src/gui/widgets/radiobutton.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/radiobutton.cpp b/src/gui/widgets/radiobutton.cpp
index d7b1769ba..062c426d3 100644
--- a/src/gui/widgets/radiobutton.cpp
+++ b/src/gui/widgets/radiobutton.cpp
@@ -40,9 +40,11 @@ int RadioButton::instances = 0;
Skin *RadioButton::mSkin = nullptr;
float RadioButton::mAlpha = 1.0;
-RadioButton::RadioButton(const std::string &caption, const std::string &group,
+RadioButton::RadioButton(const Widget2 *const widget,
+ const std::string &caption, const std::string &group,
const bool marked):
gcn::RadioButton(caption, group, marked),
+ Widget2(widget),
mHasMouse(false),
mPadding(0),
mImagePadding(0),