Use more battery friendly timeout_add_seconds

Bug #734119 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DockManager
New
Wishlist
Unassigned

Bug Description

The following helper scripts should be changed to be more battery friendly:

scripts/mpd_control.py:

gobject.timeout_add(1000, self.update_title)
→ gobject.timeout_add_seconds(1, self.update_title)

scripts/transmission_badge.py:

self.timer = gobject.timeout_add(UPDATE_DELAY, self.refresh_item)
→ self.timer = gobject.timeout_add_seconds(UPDATE_DELAY / 1000, self.refresh_item)

scripts/liferea_badge.py:

self.timer = gobject.timeout_add (10000, self.update_badge)
→ self.timer = gobject.timeout_add_seconds (10, self.update_badge)

scripts/gajim_badge.py:

self.timer = gobject.timeout_add (5000, self.update_badge)
→ self.timer = gobject.timeout_add_seconds (5, self.update_badge)

scripts/banshee_control.py:

self.timer = gobject.timeout_add (1000, self.update_badge)
→ self.timer = gobject.timeout_add_seconds (1, self.update_badge)

scripts/deluge_badge.py:

self.timer = gobject.timeout_add (2000, self.update_badge)
→ self.timer = gobject.timeout_add_seconds (2, self.update_badge)

scripts/workrave_helper.py:

self.timers.append(gobject.timeout_add(5000, self.__poll_workrave))
→ self.timers.append(gobject.timeout_add_seconds(5, self.__poll_workrave))
self.timers.append(gobject.timeout_add(1000, self.__update_ui))
→ self.timers.append(gobject.timeout_add_seconds(1, self.__update_ui))

Robert Dyer (psybers)
Changed in dockmanager:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.