aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-25 17:16:40 (GMT)
committerrathnor <rathnor>2004-08-25 17:16:40 (GMT)
commit5337fc6640efbe911682568b6281850fd322e4bb (patch)
treeb2a722b45550cee7dc612b113ddebd9395841ab7 /src/ClockTool.cc
parentf32969d4e5a18bddd426b481824eb50902cba5de (diff)
downloadfluxbox-5337fc6640efbe911682568b6281850fd322e4bb.zip
fluxbox-5337fc6640efbe911682568b6281850fd322e4bb.tar.bz2
fix up theming of the toolbar
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index fc2bfc3..dca1d86 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ClockTool.cc,v 1.11 2004/06/16 15:38:19 rathnor Exp $ 23// $Id: ClockTool.cc,v 1.12 2004/08/25 17:16:40 rathnor Exp $
24 24
25#include "ClockTool.hh" 25#include "ClockTool.hh"
26 26
@@ -204,7 +204,11 @@ void ClockTool::update(FbTk::Subject *subj) {
204 for (size_t i=0; i<m_button.text().size() + 2; ++i) 204 for (size_t i=0; i<m_button.text().size() + 2; ++i)
205 text += '0'; 205 text += '0';
206 206
207 resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height()); 207 int new_width = m_theme.font().textWidth(text.c_str(), text.size());
208 if (new_width != m_button.width()) {
209 resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height());
210 resizeSig().notify();
211 }
208} 212}
209 213
210unsigned int ClockTool::borderWidth() const { 214unsigned int ClockTool::borderWidth() const {