aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc6
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
246void ClockTool::renderTheme() { 245void 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}