diff options
author | rathnor <rathnor> | 2004-08-29 08:33:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-08-29 08:33:13 (GMT) |
commit | 97ef84da598aed61a6cb57a62796f302043181e8 (patch) | |
tree | fd68f9ef6703322537eca3743c3217b281d6ce7c /src/FbTk/MenuItem.cc | |
parent | 8a59b9b4541490badaf3e1a0503b4ca5f0105c8f (diff) | |
download | fluxbox-97ef84da598aed61a6cb57a62796f302043181e8.zip fluxbox-97ef84da598aed61a6cb57a62796f302043181e8.tar.bz2 |
a few random fixes
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r-- | src/FbTk/MenuItem.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc index 898bf99..ee1db93 100644 --- a/src/FbTk/MenuItem.cc +++ b/src/FbTk/MenuItem.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: MenuItem.cc,v 1.5 2004/08/03 21:31:31 fluxgen Exp $ | 22 | // $Id: MenuItem.cc,v 1.6 2004/08/29 08:33:13 rathnor Exp $ |
23 | 23 | ||
24 | #include "MenuItem.hh" | 24 | #include "MenuItem.hh" |
25 | #include "Command.hh" | 25 | #include "Command.hh" |
@@ -91,7 +91,8 @@ void MenuItem::draw(FbDrawable &draw, | |||
91 | 91 | ||
92 | int text_w = theme.frameFont().textWidth(label().c_str(), label().size()); | 92 | int text_w = theme.frameFont().textWidth(label().c_str(), label().size()); |
93 | 93 | ||
94 | text_y = y - theme.bevelWidth()/2 + theme.frameFont().ascent()/2 + height/2; | 94 | int height_offset = theme.itemHeight() - (theme.frameFont().height() + 2*theme.bevelWidth()); |
95 | text_y = y + theme.bevelWidth() + theme.frameFont().ascent() + height_offset/2; ///2 + height/2; | ||
95 | 96 | ||
96 | switch(theme.frameFontJustify()) { | 97 | switch(theme.frameFontJustify()) { |
97 | case FbTk::LEFT: | 98 | case FbTk::LEFT: |