*fix* calculate right struts for multiple monitors. fixes issue 148 and issue 178
*fix* uninstall all timers on reconfiguring git-svn-id: http://tint2.googlecode.com/svn/trunk@291 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -71,3 +71,12 @@ void uninstall_timer(int id)
|
||||
timer_iter = timer_iter->next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void uninstall_all_timer()
|
||||
{
|
||||
while (timer_list) {
|
||||
struct timer* t = timer_list->data;
|
||||
uninstall_timer(t->id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,7 @@ void reset_timer(int id, int value_sec, int value_nsec, int interval_sec, int in
|
||||
/** uninstalls a timer with the given 'id'. If no timer is installed with this id nothing happens **/
|
||||
void uninstall_timer(int id);
|
||||
|
||||
/** uninstalls all timer. Calls uninstall_timer for all available id's **/
|
||||
void uninstall_all_timer();
|
||||
|
||||
#endif // TIMER_H
|
||||
|
||||
Reference in New Issue
Block a user