StatusIcon.vala
authorAlan Knowles <alan@roojs.com>
Mon, 14 Aug 2017 02:31:17 +0000 (10:31 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 14 Aug 2017 02:31:17 +0000 (10:31 +0800)
StatusIcon.vala

index c176e27..8e90270 100644 (file)
@@ -56,8 +56,8 @@ public class StatusIconA : StatusIcon {
         menu.ref();       
 
            
-        //this.popup_menu.connect( (  button,   time) =>{
-       this.button_press_event.connect( (  button) =>{
+       this.popup_menu.connect( (  button,   time) =>{
+       //this.button_press_event.connect( (  ) =>{
                
             //print(Array.prototype.slice.call(arguments).join(','));
             print("menu activiate called\n");
@@ -75,16 +75,14 @@ public class StatusIconA : StatusIcon {
               
             //Gtk.get_current_event_device ()
             menu.popup(
-                    
-                        null, null,
-                        //this.position_menu,
-                       null,
-                        button,
-                      0 //   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)
@@ -93,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;
               
         });