aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2005-04-26 01:41:55 (GMT)
committersimonb <simonb>2005-04-26 01:41:55 (GMT)
commit1c2f92a3d2288b1cae9500110a72173506a18072 (patch)
treecdb695da16dcee74872790c772bb535def9f2895 /src/IconButton.cc
parentb49432be05c6cf748e662e196778463e2190b4c3 (diff)
downloadfluxbox-1c2f92a3d2288b1cae9500110a72173506a18072.zip
fluxbox-1c2f92a3d2288b1cae9500110a72173506a18072.tar.bz2
extension of previous big patch. Move a bunch of menu things onto
background pixmap. Same for textbuttons.
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