From d4ddb6a1e03fa480c76e872db093f057bca2f5ca Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 14 Aug 2017 10:31:17 +0800 Subject: [PATCH] StatusIcon.vala --- StatusIcon.vala | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/StatusIcon.vala b/StatusIcon.vala index c176e27f..8e902707 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -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; }); -- 2.39.2