aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-07-21 02:45:27 (GMT)
committerrathnor <rathnor>2003-07-21 02:45:27 (GMT)
commit370a9d474475d708f03795665d915f314f1665fa (patch)
tree4387c04b6df7caa238a72b3e5f5606cb568eb573 /src/FbTk/Menu.cc
parent037bd174bfb107fef4657c949ce49c188090f3e7 (diff)
downloadfluxbox_pavel-370a9d474475d708f03795665d915f314f1665fa.zip
fluxbox_pavel-370a9d474475d708f03795665d915f314f1665fa.tar.bz2
fix little bug that highlighted items that went disabled after selected
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index ee7c231..f4e9340 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.31 2003/07/20 10:41:56 rathnor Exp $ 25// $Id: Menu.cc,v 1.32 2003/07/21 02:45:27 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -542,7 +542,7 @@ void Menu::update(int active_index) {
542 drawItem(i, true, true, false); 542 drawItem(i, true, true, false);
543 drawSubmenu(i); 543 drawSubmenu(i);
544 } else 544 } else
545 drawItem(i, (i == active_index), true, false); 545 drawItem(i, (i == active_index && isItemEnabled(i)), true, false);
546 } 546 }
547 547
548 if (m_parent && visible) 548 if (m_parent && visible)