StatusIcon.vala
[gitlive] / StatusIcon.vala
index f2963da..ec1420b 100644 (file)
@@ -76,10 +76,12 @@ public class TestWindow : Window {
 class StatusIconA : StatusIcon {
 
     bool paused = false;
-    
-    MenuA menu = null;
-    
+     
     public StatusIconA() {
+        
+        statusicon = this;
+        
+        
          //title : 'gitlive',
         this.stock = Gtk.STOCK_REFRESH;
         this.tooltip_text = "GitLive";
@@ -155,9 +157,12 @@ class StatusIconA : StatusIcon {
                 
                 this.activate.connect( () => {
                     this.parent.parent.paused = true;
-                    imports.GitMonitor.GitMonitor.stop();
+                    
+                    statusicon.paused = true;
+                    
+                    //GitMonitor.GitMonitor.stop();
                    // this.el.label  = status ? 'Resume' : 'Pause';
-                    this.parent.parent.el.set_from_stock( Gtk.STOCK_MEDIA_PAUSE );
+                    statusicon.el.set_from_stock( Gtk.STOCK_MEDIA_PAUSE );
                     
                     
                 })