From 44f2af5c10fb2af07ed5577dc9eb5554b7dfb403 Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 11 May 2005 08:57:53 +0000 Subject: minor optimization --- src/WinButton.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WinButton.cc b/src/WinButton.cc index 33995b4..36639f5 100644 --- a/src/WinButton.cc +++ b/src/WinButton.cc @@ -312,7 +312,7 @@ void WinButton::clear() { FbTk::Button::clear(); // ensure the m_listen_to has actually a client - if (m_type == MENUICON && m_listen_to.numClients() && ( + if (m_type == MENUICON && !m_listen_to.empty() && ( !m_icon_pixmap.drawable() || (m_icon_pixmap.width() != width() - 4 || m_icon_pixmap.height() != height() - 4))) { @@ -347,7 +347,7 @@ void WinButton::clear() { void WinButton::update(FbTk::Subject *subj) { // just checking, if we the app provides a pixmap. - if (m_type == MENUICON && m_listen_to.numClients()) { + if (m_type == MENUICON && !m_listen_to.empty()) { XWMHints* hints = XGetWMHints(m_listen_to.fbWindow().display(), m_listen_to.winClient().window()); if (hints == 0) { -- cgit v0.11.2