void AddAction(AtkCocoa.Actions action)
        {
            if (owner.GetType() == typeof(Atk.NoOpObject))
            {
                return;
            }

            actions.Add(action);
            RegenerateActions();
        }
Beispiel #2
0
        public ActionDelegate(Gtk.Widget widget)
        {
            widget.Destroyed += WidgetDestroyed;

            owner = widget.Accessible;

            if (owner.GetType() == typeof(Atk.NoOpObject))
            {
                return;
            }

            HandleSignalAttachment((signal, handler) => signal.AddDelegate(handler));
        }