From 9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 7 Feb 2015 10:13:43 +0100 Subject: Show toggleitems in menu --- src/FbTk/MenuItem.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc index 7890188..172725d 100644 --- a/src/FbTk/MenuItem.cc +++ b/src/FbTk/MenuItem.cc @@ -207,12 +207,14 @@ void MenuItem::draw(FbDrawable &draw, if (theme->bulletPos() == FbTk::RIGHT) sel_x += static_cast(width) - h - bevel; - // selected pixmap is foreground - if (draw_foreground && isToggleItem()) { - // - // ToggleItem - // + // 'draw_foreground' was used to decide if to draw the toggleitem. + // somehow(tm) this lead to not rendering the toggleitem on bringing + // up the menu. it would be rendered once the user highlights the item, + // but not before. i removed the check against 'draw_foreground' and + // thus make it an unused variable. + if (isToggleItem()) { + const PixmapWithMask *pm = 0; if (isSelected()) { -- cgit v0.11.2