aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuSeparator.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
commitac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (patch)
treec8fb9c618184e7ac44f6138409cab3fab86b23e4 /src/FbTk/MenuSeparator.cc
parent60ba709c2f47cc2c7b877aef1b0f297b097853e5 (diff)
downloadfluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.zip
fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.tar.bz2
update code to use ThemeProxy
Diffstat (limited to 'src/FbTk/MenuSeparator.cc')
-rw-r--r--src/FbTk/MenuSeparator.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FbTk/MenuSeparator.cc b/src/FbTk/MenuSeparator.cc
index 928fe77..ea73a0c 100644
--- a/src/FbTk/MenuSeparator.cc
+++ b/src/FbTk/MenuSeparator.cc
@@ -29,7 +29,7 @@
29namespace FbTk { 29namespace FbTk {
30 30
31void MenuSeparator::draw(FbDrawable &drawable, 31void MenuSeparator::draw(FbDrawable &drawable,
32 const MenuTheme &theme, 32 const FbTk::ThemeProxy<MenuTheme> &theme,
33 bool highlight, bool draw_foreground, bool draw_background, 33 bool highlight, bool draw_foreground, bool draw_background,
34 int x, int y, 34 int x, int y,
35 unsigned int width, unsigned int height) const { 35 unsigned int width, unsigned int height) const {
@@ -37,13 +37,13 @@ void MenuSeparator::draw(FbDrawable &drawable,
37 if (draw_background) { 37 if (draw_background) {
38 const GContext &tgc = 38 const GContext &tgc =
39// its a separator, it shouldn't be highlighted! or shown as disabled 39// its a separator, it shouldn't be highlighted! or shown as disabled
40// (highlight ? theme.hiliteTextGC() : 40// (highlight ? theme->hiliteTextGC() :
41// (isEnabled() ? theme.frameTextGC() : theme.disableTextGC() ) ); 41// (isEnabled() ? theme->frameTextGC() : theme->disableTextGC() ) );
42 theme.frameTextGC(); 42 theme->frameTextGC();
43 43
44 drawable.drawRectangle(tgc.gc(), 44 drawable.drawRectangle(tgc.gc(),
45 x + theme.bevelWidth() + height + 1, y + height / 2, 45 x + theme->bevelWidth() + height + 1, y + height / 2,
46 width - ((theme.bevelWidth() + height) * 2) - 1, 0); 46 width - ((theme->bevelWidth() + height) * 2) - 1, 0);
47 } 47 }
48} 48}
49 49