]> Dogcows Code - chaz/openbox/blobdiff - otk/timerqueuemanager.cc
add an OBBackgroundWidget and use it for setting colors so far.
[chaz/openbox] / otk / timerqueuemanager.cc
index 0d7d4983be51646a973620ed532ab3550f0519f5..a37fe94dbca4827e8ccff7aed72f4f090cea140e 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C++; indent-tabs-mode: nil; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
 #ifdef    HAVE_CONFIG_H
 #  include "../config.h"
@@ -23,7 +23,7 @@ void OBTimerQueueManager::fire()
     const OBTimer* const timer = timerList.top();
 
     gettimeofday(&now, 0);
-    tm = timer->timeRemaining(now);
+    tm = timer->remainingTime(now);
 
     timeout = &tm;
   }
@@ -44,9 +44,8 @@ void OBTimerQueueManager::fire()
 
     timerList.pop();
 
-    timer->fireTimeout();
-    timer->halt();
-    if (timer->isRecurring())
+    timer->fire();
+    if (timer->recurring())
       timer->start();
   }
 }
This page took 0.024024 seconds and 4 git commands to generate.