From 2e61e1f8c47173b7440565c09b23cadc902ad76d Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 5 Jul 2011 00:52:39 +0200 Subject: Changed the Social button to an image one. I also made the client able to keep the old behaviour, and i changed the button api to not require the icon frames size as it could easily guess them. --- src/gui/widgets/button.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/button.h') diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index cfc5043e..39b3eb75 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -72,15 +72,14 @@ 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(), - int frameHeight = 0, int frameWidth = 0); + void setButtonIcon(const std::string& iconFile = std::string()); /** * Set the button popup text when hovering it for a few seconds. * * @note: An empty text will disable the popup. */ - void setButtonPopupText(const std::string& text = ""); + void setButtonPopupText(const std::string& text = std::string()); void logic(); void mouseMoved(gcn::MouseEvent &event); -- cgit v1.2.3-70-g09d2