private void OnViewPopup(object o, StationViewPopupArgs args) { Menu menu = Globals.ActionManager.GetWidget("/StationViewPopup") as Menu; menu.ShowAll(); menu.Popup(null, null, null, 0, args.Time); }
private void OnViewPopup(object o, StationViewPopupArgs args) { Station station = view.NodeSelection.SelectedNode as Station; plugin.StationActions.Sensitive = !(station == null || station is StationGroup); Menu menu = Globals.ActionManager.GetWidget("/RadioMenu") as Menu; menu.ShowAll(); menu.Popup(null, null, null, 0, args.Time); }
protected override bool OnButtonPressEvent(Gdk.EventButton evnt) { if(evnt.Window != BinWindow || evnt.Button != 3) { return base.OnButtonPressEvent(evnt); } bool ret = base.OnButtonPressEvent(evnt); StationViewPopupHandler handler = Popup; if(handler != null) { StationViewPopupArgs args = new StationViewPopupArgs(); args.Time = evnt.Time; handler(this, args); } return ret; }
protected override bool OnButtonPressEvent(Gdk.EventButton evnt) { if (evnt.Window != BinWindow || evnt.Button != 3) { return(base.OnButtonPressEvent(evnt)); } bool ret = base.OnButtonPressEvent(evnt); StationViewPopupHandler handler = Popup; if (handler != null) { StationViewPopupArgs args = new StationViewPopupArgs(); args.Time = evnt.Time; handler(this, args); } return(ret); }
private void OnViewPopup(object o, StationViewPopupArgs args) { Station station = view.NodeSelection.SelectedNode as Station; plugin.StationActions.Sensitive = !(station == null || station is StationGroup); Menu menu = Globals.ActionManager.GetWidget("/RadioMenu") as Menu; menu.ShowAll(); menu.Popup(null, null, null, 0, args.Time); }
private void OnViewPopup(object o, StationViewPopupArgs args) { Menu menu = Globals.ActionManager.GetWidget("/StationViewPopup") as Menu; menu.ShowAll(); menu.Popup(null, null, null, 0, args.Time); }