summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-02-03 10:53:19 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-02-03 14:38:20 +0100
commit86c4819bee1bcd990b6be20f36dcb26938acac8e (patch)
treecb43808529b6bd0e7d540803630e03f33ee3c26d /src/client.cpp
parent19bc88f34713968864922f8f3f2342d10c4f4dbd (diff)
downloadmana-86c4819bee1bcd990b6be20f36dcb26938acac8e.tar.gz
mana-86c4819bee1bcd990b6be20f36dcb26938acac8e.tar.bz2
mana-86c4819bee1bcd990b6be20f36dcb26938acac8e.tar.xz
mana-86c4819bee1bcd990b6be20f36dcb26938acac8e.zip
Changed the setup button at login stage to use the icon.
I also made the button not readjust its size when deleted to avoid a crash. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d50257f2..538ecb54 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -581,7 +581,9 @@ int Client::exec()
mDesktop = new Desktop;
top->add(mDesktop);
- mSetupButton = new Button(_("Setup"), "Setup", this);
+ mSetupButton = new Button("", "Setup", this);
+ mSetupButton->setButtonPopupText(_("Setup"));
+ mSetupButton->setButtonIcon("button-icon-setup.png");
mSetupButton->setPosition(top->getWidth() - mSetupButton->getWidth()
- 3, 3);
top->add(mSetupButton);