diff options
author | rathnor <rathnor> | 2004-06-16 15:38:19 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-06-16 15:38:19 (GMT) |
commit | 8f88c1fecb28dc15ecfd2ee210a8e466afe5456c (patch) | |
tree | 5adbb44deec68449ee216c10ff047d4446c2a510 /src/ClockTool.cc | |
parent | db6e78bba9fbd0e216f0ebbe5d4f55090ca62069 (diff) | |
download | fluxbox-8f88c1fecb28dc15ecfd2ee210a8e466afe5456c.zip fluxbox-8f88c1fecb28dc15ecfd2ee210a8e466afe5456c.tar.bz2 |
toolbar fixes, updates and optimisations
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc index a65a4ea..fc2bfc3 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.10 2004/01/13 14:41:32 rathnor Exp $ | 23 | // $Id: ClockTool.cc,v 1.11 2004/06/16 15:38:19 rathnor Exp $ |
24 | 24 | ||
25 | #include "ClockTool.hh" | 25 | #include "ClockTool.hh" |
26 | 26 | ||
@@ -231,7 +231,7 @@ void ClockTool::updateTime() { | |||
231 | return; | 231 | return; |
232 | 232 | ||
233 | #ifdef HAVE_STRFTIME | 233 | #ifdef HAVE_STRFTIME |
234 | if (!strftime(time_string, 255, m_timeformat->c_str(), time_type)) | 234 | if (!strftime(time_string, 255, m_timeformat->c_str(), time_type) || m_button.text() == time_string) |
235 | return; | 235 | return; |
236 | m_button.setText(time_string); | 236 | m_button.setText(time_string); |
237 | #else // dont have strftime so we have to set it to hour:minut | 237 | #else // dont have strftime so we have to set it to hour:minut |
@@ -240,7 +240,6 @@ void ClockTool::updateTime() { | |||
240 | } | 240 | } |
241 | 241 | ||
242 | m_button.clear(); | 242 | m_button.clear(); |
243 | m_button.updateTransparent(); | ||
244 | } | 243 | } |
245 | 244 | ||
246 | void ClockTool::renderTheme() { | 245 | void ClockTool::renderTheme() { |
@@ -261,5 +260,4 @@ void ClockTool::renderTheme() { | |||
261 | m_button.setBorderColor(m_theme.border().color()); | 260 | m_button.setBorderColor(m_theme.border().color()); |
262 | m_button.setAlpha(m_theme.alpha()); | 261 | m_button.setAlpha(m_theme.alpha()); |
263 | m_button.clear(); | 262 | m_button.clear(); |
264 | m_button.updateTransparent(); | ||
265 | } | 263 | } |