summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-09 15:32:05 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-28 18:32:51 +0200
commit7bdae3a386c07e553e1d5667709bb78acaf51223 (patch)
treedf2b64e1551f2bfa2a20ab90c80f3606a6a0ee43 /src/gui/widgets/button.h
parent8842689ccbfdef8da1f651e8493dc4dff7474433 (diff)
downloadmana-client-7bdae3a386c07e553e1d5667709bb78acaf51223.tar.gz
mana-client-7bdae3a386c07e553e1d5667709bb78acaf51223.tar.bz2
mana-client-7bdae3a386c07e553e1d5667709bb78acaf51223.tar.xz
mana-client-7bdae3a386c07e553e1d5667709bb78acaf51223.zip
Made the button icon only shown when the icon file is valid.
And falls back to the text based caption otherwise.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index 39b3eb75..7463d2ad 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -72,7 +72,7 @@ class Button : public gcn::Button
* Standard, Highlighted, Pressed, and Disabled.
* If the image is too short, the missing states won't be loaded.
*/
- void setButtonIcon(const std::string& iconFile = std::string());
+ bool setButtonIcon(const std::string& iconFile = std::string());
/**
* Set the button popup text when hovering it for a few seconds.