diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2007-12-30 15:32:53 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2007-12-30 15:32:53 (GMT) |
commit | 04cd2fd14c6f45f61457e034906f630ce46a76cc (patch) | |
tree | 67e2f2f7977c3e8525c2ae7eb30f593f7f440b82 /src/IconButton.cc | |
parent | 4cc810b0d39917d37fa08034ac7dd509292c9ce3 (diff) | |
download | fluxbox-04cd2fd14c6f45f61457e034906f630ce46a76cc.zip fluxbox-04cd2fd14c6f45f61457e034906f630ce46a76cc.tar.bz2 |
removed some unneeded headers
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index b00c335..5db7773 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -51,8 +51,8 @@ | |||
51 | IconButton::IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme, | 51 | IconButton::IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme, |
52 | Focusable &win): | 52 | Focusable &win): |
53 | FbTk::TextButton(parent, theme.focusedText().font(), win.title()), | 53 | FbTk::TextButton(parent, theme.focusedText().font(), win.title()), |
54 | m_win(win), | 54 | m_win(win), |
55 | m_icon_window(*this, 1, 1, 1, 1, | 55 | m_icon_window(*this, 1, 1, 1, 1, |
56 | ExposureMask | ButtonPressMask | ButtonReleaseMask), | 56 | ExposureMask | ButtonPressMask | ButtonReleaseMask), |
57 | m_use_pixmap(true), | 57 | m_use_pixmap(true), |
58 | m_theme(theme), | 58 | m_theme(theme), |
@@ -62,7 +62,7 @@ IconButton::IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme, | |||
62 | m_win.titleSig().attach(this); | 62 | m_win.titleSig().attach(this); |
63 | m_win.focusSig().attach(this); | 63 | m_win.focusSig().attach(this); |
64 | m_win.attentionSig().attach(this); | 64 | m_win.attentionSig().attach(this); |
65 | 65 | ||
66 | FbTk::EventManager::instance()->add(*this, m_icon_window); | 66 | FbTk::EventManager::instance()->add(*this, m_icon_window); |
67 | 67 | ||
68 | reconfigTheme(); | 68 | reconfigTheme(); |
@@ -174,8 +174,8 @@ void IconButton::update(FbTk::Subject *subj) { | |||
174 | return; | 174 | return; |
175 | } | 175 | } |
176 | 176 | ||
177 | // we got signal that either title or | 177 | // we got signal that either title or |
178 | // icon pixmap was updated, | 178 | // icon pixmap was updated, |
179 | // so we refresh everything | 179 | // so we refresh everything |
180 | 180 | ||
181 | Display *display = FbTk::App::instance()->display(); | 181 | Display *display = FbTk::App::instance()->display(); |
@@ -197,7 +197,7 @@ void IconButton::update(FbTk::Subject *subj) { | |||
197 | 197 | ||
198 | FbTk::translateCoords(orientation(), iconx, icony, w, h); | 198 | FbTk::translateCoords(orientation(), iconx, icony, w, h); |
199 | FbTk::translatePosition(orientation(), iconx, icony, neww, newh, 0); | 199 | FbTk::translatePosition(orientation(), iconx, icony, neww, newh, 0); |
200 | 200 | ||
201 | m_icon_window.moveResize(iconx, icony, neww, newh); | 201 | m_icon_window.moveResize(iconx, icony, neww, newh); |
202 | 202 | ||
203 | m_icon_pixmap.copy(m_win.icon().pixmap().drawable(), | 203 | m_icon_pixmap.copy(m_win.icon().pixmap().drawable(), |
@@ -254,7 +254,7 @@ void IconButton::drawText(int x, int y, FbTk::FbDrawable *drawable) { | |||
254 | else | 254 | else |
255 | FbTk::TextButton::drawText(1, y, drawable); | 255 | FbTk::TextButton::drawText(1, y, drawable); |
256 | } | 256 | } |
257 | 257 | ||
258 | bool IconButton::setOrientation(FbTk::Orientation orient) { | 258 | bool IconButton::setOrientation(FbTk::Orientation orient) { |
259 | if (orientation() == orient) | 259 | if (orientation() == orient) |
260 | return true; | 260 | return true; |