summaryrefslogtreecommitdiff
path: root/src/FbTk/MenuTheme.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-24 13:11:27 (GMT)
committersimonb <simonb>2006-06-24 13:11:27 (GMT)
commit1d0b23bd020c9185dc9cbf8952ab97a27f061be0 (patch)
tree90cb1dbe339ec4edbac9bd6a55b910ccc3e73e77 /src/FbTk/MenuTheme.hh
parent5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b (diff)
downloadfluxbox_lack-1d0b23bd020c9185dc9cbf8952ab97a27f061be0.zip
fluxbox_lack-1d0b23bd020c9185dc9cbf8952ab97a27f061be0.tar.bz2
fix disappearing menu selection boxes
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r--src/FbTk/MenuTheme.hh13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh
index c423cf4..da5b65c 100644
--- a/src/FbTk/MenuTheme.hh
+++ b/src/FbTk/MenuTheme.hh
@@ -126,8 +126,17 @@ public:
126 inline const FbTk::Color &borderColor() const { return *m_border_color; } 126 inline const FbTk::Color &borderColor() const { return *m_border_color; }
127 127
128 // special override 128 // special override
129 inline void setSelectedPixmap(Pixmap pm) { m_selected_pixmap->pixmap() = pm; } 129 inline void setSelectedPixmap(Pixmap pm, bool is_imagecached) {
130 inline void setHighlightSelectedPixmap(Pixmap pm) { m_hl_selected_pixmap->pixmap() = pm; } 130 m_selected_pixmap->pixmap() = pm;
131 if (is_imagecached)
132 m_selected_pixmap->pixmap().dontFree();
133 }
134
135 inline void setHighlightSelectedPixmap(Pixmap pm, bool is_imagecached) {
136 m_hl_selected_pixmap->pixmap() = pm;
137 if (is_imagecached)
138 m_hl_selected_pixmap->pixmap().dontFree();
139 }
131 140
132private: 141private:
133 FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; 142 FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text;