public void OnTransferListButtonPressEvent(object o, Gtk.ButtonPressEventArgs args) { TreePath path; if (transferList.GetPathAtPos((int)args.Event.X, (int)args.Event.Y, out path)) { transferList.Selection.SelectPath(path); } else { transferList.Selection.UnselectAll(); } if (args.Event.Button == 3) { TransfersMenu transfersMenu = new TransfersMenu(transferList, GetSelectedTransfer()); transfersMenu.Popup(); } }
public void OnTransferListButtonPressEvent(object o, Gtk.ButtonPressEventArgs args) { TreePath path; if (transferList.GetPathAtPos ((int)args.Event.X, (int)args.Event.Y, out path)) { transferList.Selection.SelectPath (path); } else { transferList.Selection.UnselectAll (); } if (args.Event.Button == 3) { TransfersMenu transfersMenu = new TransfersMenu (transferList, GetSelectedTransfer()); transfersMenu.Popup(); } }