Commits

Anonymous committed 189f86a

use png icons as rendering svgs seems to be very slow

Comments (0)

Files changed (4)

Added
New image
 
 class Pomodoro:
     def __init__(self):
-        self.icon=gtk.status_icon_new_from_file("idle.svg")
+        self.icon=gtk.status_icon_new_from_file("idle.png")
         self.icon.set_tooltip("Idle")
         self.state = "idle"
         self.tick_interval=10 #number of seconds between each poll
             return "%d minute" % minutes
     def set_state(self,state):
         old_state=self.state
-        self.icon.set_from_file(state+".svg")
+        self.icon.set_from_file(state+".png")
         if state == "idle":
             delta = time() - self.start_working_time
             if old_state == "ok":
Added
New image