aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authormathias <mathias>2005-04-29 11:20:41 (GMT)
committermathias <mathias>2005-04-29 11:20:41 (GMT)
commit08601c23d3960e724223767f0ad5460287ddfd9d (patch)
tree5ea204267312d68947660bce8a8e11b860a035a4 /src/FbTk
parente108c5cac0e12c323b4a730201748ee96455125e (diff)
downloadfluxbox-08601c23d3960e724223767f0ad5460287ddfd9d.zip
fluxbox-08601c23d3960e724223767f0ad5460287ddfd9d.tar.bz2
enabled MenuItems / Separators are not clickable and the same logic should
apply to keys.
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 4d6a6c0..fbf7e45 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -830,10 +830,9 @@ bool Menu::isItemSelectable(unsigned int index) const {
830 if (index >= menuitems.size()) return false; 830 if (index >= menuitems.size()) return false;
831 831
832 const MenuItem *item = find(index); 832 const MenuItem *item = find(index);
833 if (!item) 833 return (!item ||
834 return false; 834 (typeid(*item) == typeid(FbTk::MenuSeparator)) ||
835 835 !item->isEnabled()) ? false : true;
836 return (typeid(*item) != typeid(FbTk::MenuSeparator));
837} 836}
838 837
839 838