summaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index 052035e..4258f13 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -288,12 +288,12 @@ void IconButton::setupWindow() {
288 FbTk::TextButton::clear(); 288 FbTk::TextButton::clear();
289} 289}
290 290
291void IconButton::drawText(int x, int y) { 291void IconButton::drawText(int x, int y, FbTk::FbDrawable *drawable) {
292 // offset text 292 // offset text
293 if (m_icon_pixmap.drawable() != 0) 293 if (m_icon_pixmap.drawable() != 0)
294 FbTk::TextButton::drawText(m_icon_window.x() + m_icon_window.width() + 1, y); 294 FbTk::TextButton::drawText(m_icon_window.x() + m_icon_window.width() + 1, y, drawable);
295 else 295 else
296 FbTk::TextButton::drawText(1, y); 296 FbTk::TextButton::drawText(1, y, drawable);
297} 297}
298 298
299 299