summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-05 00:23:22 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-11 02:39:48 +0200
commit7115ac62eb2069d378d67758a3cd221e6620975d (patch)
tree93391a3b3ce247467bc8b05ef69c65fd0a02646d /src/gui/windowmenu.cpp
parentebc1db2172d3dc1e954647fc21e80f074e6cda4b (diff)
downloadmana-7115ac62eb2069d378d67758a3cd221e6620975d.tar.gz
mana-7115ac62eb2069d378d67758a3cd221e6620975d.tar.bz2
mana-7115ac62eb2069d378d67758a3cd221e6620975d.tar.xz
mana-7115ac62eb2069d378d67758a3cd221e6620975d.zip
Added textpopup on mouse hovering support to buttons.
I added a use of it to the menu buttons.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 542ab4a0..7011c82a 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -158,7 +158,8 @@ void WindowMenu::valueChanged(const gcn::SelectionEvent &event)
void WindowMenu::addButton(const char* text, int &x, int &h)
{
- gcn::Button *btn = new Button(gettext(text), text, this);
+ Button *btn = new Button(gettext(text), text, this);
+ btn->setButtonPopupText(gettext(text));
btn->setPosition(x, 0);
add(btn);
x += btn->getWidth() + 3;