-
- // skip xvala_id - not pipe
- public class Xcls_button : Object
- {
- public Gtk.Button el;
- private Xcls_WindowLeftTree __this;
-
- // ctor
- public void init(Xcls_WindowLeftTree _owner)
- {
-
- this.el = new Gtk.Button.with_label ("Click me (0)");
- __this = _owner;
- __this.button = this;
-
-
-
- // listeners
- this.el.button_press_event.connect( ( ev) => {
- //console.log("button press?");
-
-
-
- if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
- //print("click" + ev.type);
- return false;
- }
-
-
- __this.LeftTreeMenu.el.set_screen(Gdk.Screen.get_default());
-
- __this.LeftTreeMenu.el.popup(null, null, null, ev.button, ev.time);
-
- // print("click:" + res.path.to_string());
- return true;
- } );
-
- }
-
-
- }
-
-
-
+ leftmenu.popup(null, null, null, ev.button, ev.time);