aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuTheme.hh
diff options
context:
space:
mode:
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;