diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-24 09:36:00 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-24 09:36:00 (GMT) |
commit | 75cf246de5c11d1a702ce4bc7cec4730cd9195ef (patch) | |
tree | d803d845df68a11d51eafd39e866c9518027df47 /src/IconButton.cc | |
parent | e0c5436f44c262967c5934265ef68d07b4048b45 (diff) | |
download | fluxbox-75cf246de5c11d1a702ce4bc7cec4730cd9195ef.zip fluxbox-75cf246de5c11d1a702ce4bc7cec4730cd9195ef.tar.bz2 |
Cleanup
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index f1dd1f0..d1f1451 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -250,6 +250,7 @@ void IconButton::setupWindow() { | |||
250 | } | 250 | } |
251 | 251 | ||
252 | void IconButton::drawText(int x, int y, FbTk::FbDrawable *drawable) { | 252 | void IconButton::drawText(int x, int y, FbTk::FbDrawable *drawable) { |
253 | |||
253 | // offset text | 254 | // offset text |
254 | if (m_icon_pixmap.drawable() != 0) | 255 | if (m_icon_pixmap.drawable() != 0) |
255 | FbTk::TextButton::drawText(m_icon_window.x() + m_icon_window.width() + 1, y, drawable); | 256 | FbTk::TextButton::drawText(m_icon_window.x() + m_icon_window.width() + 1, y, drawable); |
@@ -269,8 +270,7 @@ bool IconButton::setOrientation(FbTk::Orientation orient) { | |||
269 | FbTk::translatePosition(orient, iconx, icony, m_icon_window.width(), m_icon_window.height(), 0); | 270 | FbTk::translatePosition(orient, iconx, icony, m_icon_window.width(), m_icon_window.height(), 0); |
270 | m_icon_window.move(iconx, icony); | 271 | m_icon_window.move(iconx, icony); |
271 | return true; | 272 | return true; |
272 | } else { | ||
273 | return false; | ||
274 | } | 273 | } |
274 | return false; | ||
275 | } | 275 | } |
276 | 276 | ||