Popup() public méthode

public Popup ( ) : void
Résultat void
Exemple #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();
            }
        }
Exemple #2
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();
            }
        }