Popup() public method

public Popup ( ) : void
return void
コード例 #1
0
        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();
            }
        }
コード例 #2
0
ファイル: TransfersPage.cs プロジェクト: codebutler/meshwork
        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();
            }
        }