StatusIcon.vala
[gitlive] / StatusIcon.vala
index 189ca8e..8e90270 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( ((uint button, uint time) =>{
-            
+
+           
+       this.popup_menu.connect( (  button,   time) =>{
+       //this.button_press_event.connect( (  ) =>{
+               
             //print(Array.prototype.slice.call(arguments).join(','));
             print("menu activiate called\n");
             //var menu = this.get('menu');
@@ -73,14 +75,14 @@ public class StatusIconA : StatusIcon {
               
             //Gtk.get_current_event_device ()
             menu.popup(
-                    
-                        null, null,
-                        this.position_menu, 0,
-                         Gtk.get_current_event_time()
+
+                        null,
+                       this.position_menu,
+                       null,  
+                    0,  time //   time
             );
                         
             
-            
             //var g = { };
             //var a = new Gdk.Rectangle();
             //  needs direction=inout setting in gir to work (in bugzilla @present)
@@ -89,6 +91,7 @@ public class StatusIconA : StatusIcon {
             // should check to see if @ top or bottom I guess..
             //menu.el.get_toplevel().move(a.x, a.y +a.height);
             //menu.el.get_toplevel().move(10,10);
+            //return false;
               
         });