aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
authormathias <mathias>2004-12-10 01:58:09 (GMT)
committermathias <mathias>2004-12-10 01:58:09 (GMT)
commit82a03ec83ef56d4ee8bb7b52fe4e8cd035c437a4 (patch)
tree679f22fb1a9508f2ae2033852fc011d5cb4e3362 /src/ClockTool.cc
parent10a171c5bd470d1432635f3355710ca1fa7c2a7f (diff)
downloadfluxbox-82a03ec83ef56d4ee8bb7b52fe4e8cd035c437a4.zip
fluxbox-82a03ec83ef56d4ee8bb7b52fe4e8cd035c437a4.tar.bz2
changing the timeformat of the clocktool is done via the editdialog which
causes a reconfigure .. which causes a loop over all toolbaritems and call updateSizing() .. where we should check, if a new timeformat makes the clock bigger or smaller... closes #1026096
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index f4fb4c5..c81513b 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -217,7 +217,7 @@ void ClockTool::update(FbTk::Subject *subj) {
217 217
218 int new_width = m_theme.font().textWidth(text.c_str(), text.size()); 218 int new_width = m_theme.font().textWidth(text.c_str(), text.size());
219 if (new_width != m_button.width()) { 219 if (new_width != m_button.width()) {
220 resize(m_theme.font().textWidth(text.c_str(), text.size()), m_button.height()); 220 resize(new_width, m_button.height());
221 resizeSig().notify(); 221 resizeSig().notify();
222 } 222 }
223} 223}
@@ -260,6 +260,8 @@ void ClockTool::updateTime() {
260// Just change things that affect the size 260// Just change things that affect the size
261void ClockTool::updateSizing() { 261void ClockTool::updateSizing() {
262 m_button.setBorderWidth(m_theme.border().width()); 262 m_button.setBorderWidth(m_theme.border().width());
263 // resizes if new timeformat
264 update(0);
263} 265}
264 266
265void ClockTool::reRender() { 267void ClockTool::reRender() {