StatusIcon.vala
[gitlive] / StatusIcon.vala
index 027ecf9..c176e27 100644 (file)
@@ -47,16 +47,18 @@ public class StatusIconA : StatusIcon {
          //title : 'gitlive',
         this.stock = Gtk.Stock.REFRESH;
         this.tooltip_text = "GitLive";
-        this.title = "vgitlive";
+        this.title = "gitlive";
         
-        this.set_name("vgitlive");
+        this.set_name("gitlive");
         this.set_visible(true);      
         
         var menu = new MenuA();
         menu.ref();       
-         
-        this.popup_menu.connect( () =>{
-            
+
+           
+        //this.popup_menu.connect( (  button,   time) =>{
+       this.button_press_event.connect( (  button) =>{
+               
             //print(Array.prototype.slice.call(arguments).join(','));
             print("menu activiate called\n");
             //var menu = this.get('menu');
@@ -75,8 +77,10 @@ public class StatusIconA : StatusIcon {
             menu.popup(
                     
                         null, null,
-                        this.position_menu, 0,
-                         Gtk.get_current_event_time()
+                        //this.position_menu,
+                       null,
+                        button,
+                      0 //   time
             );