diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 41adf71a823f475b7f12b00e06056b778311da84 (patch) | |
tree | 55925f737e884f756d05a71238f207c03070a7ad /src/client.cpp | |
parent | 504219f9df4b9dda139dd832e263a136e51c4851 (diff) | |
download | manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2 manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz manaplus-41adf71a823f475b7f12b00e06056b778311da84.zip |
Add palette inheritance to button class.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 8e28bea20..c4284a195 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -999,24 +999,24 @@ int Client::gameExec() mDesktop = new Desktop(nullptr); top->add(mDesktop); int x = top->getWidth(); - mSetupButton = new Button(_("Setup"), "Setup", this); + mSetupButton = new Button(mDesktop, _("Setup"), "Setup", this); x -= mSetupButton->getWidth() + 3; mSetupButton->setPosition(x, 3); top->add(mSetupButton); #ifndef WIN32 - mPerfomanceButton = new Button( + mPerfomanceButton = new Button(mDesktop, _("Perfomance"), "Perfomance", this); x -= mPerfomanceButton->getWidth() + 6; mPerfomanceButton->setPosition(x, 3); top->add(mPerfomanceButton); - mVideoButton = new Button(_("Video"), "Video", this); + mVideoButton = new Button(mDesktop,_("Video"), "Video", this); x -= mVideoButton->getWidth() + 6; mVideoButton->setPosition(x, 3); top->add(mVideoButton); - mThemesButton = new Button(_("Themes"), "Themes", this); + mThemesButton = new Button(mDesktop,_("Themes"), "Themes", this); x -= mThemesButton->getWidth() + 6; mThemesButton->setPosition(x, 3); top->add(mThemesButton); |