sync
[gitlive] / StatusIcon.vala
index e728ff4..42bccd7 100644 (file)
@@ -98,27 +98,30 @@ public class StatusIconA : StatusIcon {
         
     }
     
-    void pause()
+    public void pause()
     {
                this.set_from_stock( Gtk.Stock.MEDIA_PAUSE );
+               this.paused = true;
     }
-    void resume()
+    
+    public void resume()
     {
                this.set_from_stock( Gtk.Stock.MEDIA_PLAY );
-               this.error_animate= false;
+               this.paused = false;
     }
     
-    void refreshing()
+    public void refreshing()
     {
                this.set_from_stock( Gtk.Stock.REFRESH );
     }
-    void pauseError()
+    
+    public void pauseError()
     {
-                this.error_animate = true;
+                this.paused = true;
                 var flag = true;
                 Timeout.add_full(Priority.LOW, 500, () => {
                 
-                       if (!this.error_animate) {
+                       if (!this.paused) {
                                return false;
                        }
                        this.set_from_stock( flag == true ? Gtk.Stock.MEDIA_RECORD  
@@ -364,4 +367,4 @@ public class StatusIconA : StatusIcon {
 }
       
                 
-                  
+                  
\ No newline at end of file