diff options
author | simonb <simonb> | 2006-06-24 13:11:27 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-24 13:11:27 (GMT) |
commit | 1d0b23bd020c9185dc9cbf8952ab97a27f061be0 (patch) | |
tree | 90cb1dbe339ec4edbac9bd6a55b910ccc3e73e77 /src/FbTk/MenuTheme.hh | |
parent | 5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b (diff) | |
download | fluxbox_pavel-1d0b23bd020c9185dc9cbf8952ab97a27f061be0.zip fluxbox_pavel-1d0b23bd020c9185dc9cbf8952ab97a27f061be0.tar.bz2 |
fix disappearing menu selection boxes
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r-- | src/FbTk/MenuTheme.hh | 13 |
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 | ||
132 | private: | 141 | private: |
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; |