aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuSeparator.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-25 03:11:31 (GMT)
committersimonb <simonb>2006-04-25 03:11:31 (GMT)
commite2bc57bc0fef16faba89f996e354445c31aebedd (patch)
treecc6127b87a9c5d5c2e6ecc84a4317c04dabb0e63 /src/FbTk/MenuSeparator.cc
parentcb65dae95fb3bd01cb4e43286ba2a56c41838d2e (diff)
downloadfluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.zip
fluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.tar.bz2
Fix occasional highlighting of menu nops+separators, sf.net patch
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
Diffstat (limited to 'src/FbTk/MenuSeparator.cc')
-rw-r--r--src/FbTk/MenuSeparator.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/MenuSeparator.cc b/src/FbTk/MenuSeparator.cc
index 34c97fe..be43a87 100644
--- a/src/FbTk/MenuSeparator.cc
+++ b/src/FbTk/MenuSeparator.cc
@@ -38,8 +38,10 @@ void MenuSeparator::draw(FbDrawable &drawable,
38 38
39 if (draw_background) { 39 if (draw_background) {
40 const GContext &tgc = 40 const GContext &tgc =
41 (highlight ? theme.hiliteTextGC() : 41// its a separator, it shouldn't be highlighted! or shown as disabled
42 (isEnabled() ? theme.frameTextGC() : theme.disableTextGC() ) ); 42// (highlight ? theme.hiliteTextGC() :
43// (isEnabled() ? theme.frameTextGC() : theme.disableTextGC() ) );
44 theme.frameTextGC();
43 45
44 drawable.drawRectangle(tgc.gc(), 46 drawable.drawRectangle(tgc.gc(),
45 x + theme.bevelWidth() + height + 1, y + height / 2, 47 x + theme.bevelWidth() + height + 1, y + height / 2,