From 7115ac62eb2069d378d67758a3cd221e6620975d Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 5 Jul 2011 00:23:22 +0200 Subject: Added textpopup on mouse hovering support to buttons. I added a use of it to the menu buttons. --- src/gui/windowmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windowmenu.cpp') 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; -- cgit v1.2.3-70-g09d2