summaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r--src/WinButton.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index d64034e..d570758 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.cc
@@ -284,11 +284,10 @@ void WinButton::update(FbTk::Subject *subj) {
284 // update the menu icon 284 // update the menu icon
285 if (m_type == MENUICON && !m_listen_to.empty()) { 285 if (m_type == MENUICON && !m_listen_to.empty()) {
286 286
287 Display* display = m_listen_to.fbWindow().display();
288 int screen = m_listen_to.screen().screenNumber(); 287 int screen = m_listen_to.screen().screenNumber();
289 if (m_listen_to.icon().pixmap().drawable() != None) { 288 if (m_listen_to.icon().pixmap().drawable() != None) {
290 m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(), 289 m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(),
291 DefaultDepth(display, screen), screen); 290 FbTk::App::instance()->defaultDepth(screen), screen);
292 m_icon_pixmap.scale(width() - 4, height() - 4); 291 m_icon_pixmap.scale(width() - 4, height() - 4);
293 } else 292 } else
294 m_icon_pixmap.release(); 293 m_icon_pixmap.release();