From 5c047ad1c3983aee5fd2513016189bd9ab63c857 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 18 Apr 2004 18:53:55 +0000 Subject: virtual update, fixed round courners bug --- src/FbMenu.cc | 8 +++++++- src/FbMenu.hh | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/FbMenu.cc b/src/FbMenu.cc index 9a62050..6efb34e 100644 --- a/src/FbMenu.cc +++ b/src/FbMenu.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbMenu.cc,v 1.2 2003/12/10 23:08:03 fluxgen Exp $ +// $Id: FbMenu.cc,v 1.3 2004/04/18 18:53:55 fluxgen Exp $ #include "FbMenu.hh" @@ -39,7 +39,13 @@ FbMenu::~FbMenu() { } +void FbMenu::update(int index) { + FbTk::Menu::update(index); + m_shape->update(); +} + void FbMenu::clearWindow() { + FbTk::Menu::clearWindow(); m_shape->update(); } diff --git a/src/FbMenu.hh b/src/FbMenu.hh index 4252aa4..bf7bd29 100644 --- a/src/FbMenu.hh +++ b/src/FbMenu.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbMenu.hh,v 1.3 2003/12/10 23:08:03 fluxgen Exp $ +// $Id: FbMenu.hh,v 1.4 2004/04/18 18:53:55 fluxgen Exp $ #ifndef FBMENU_HH #define FBMENU_HH @@ -36,6 +36,7 @@ public: FbMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, FbTk::XLayer &layer); ~FbMenu(); + void update(int index = -1); void clearWindow(); void raise() { m_layeritem.raise(); } void lower() { m_layeritem.lower(); } -- cgit v0.11.2