protected override bool OnButtonPressEvent(Gdk.EventButton e) { // Call this first so context menu has a selected torrent base.OnButtonPressEvent(e); if (e.Button == 3 && Selection.CountSelectedRows() == 1) { TorrentContextMenu contextMenu = new TorrentContextMenu(torrentController); contextMenu.ShowAll(); contextMenu.Popup(); } return(false); }
protected override bool OnButtonPressEvent (Gdk.EventButton e) { // Call this first so context menu has a selected torrent base.OnButtonPressEvent(e); if(e.Button == 3 && Selection.CountSelectedRows() == 1){ TorrentContextMenu contextMenu = new TorrentContextMenu(torrentController); contextMenu.ShowAll(); contextMenu.Popup(); } return false; }