Exemplo n.º 1
0
        void AddAction(AtkCocoa.Actions action)
        {
            if (owner.GetType() == typeof(Atk.NoOpObject))
            {
                return;
            }

            actions.Add(action);
            RegenerateActions();
        }
Exemplo n.º 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));
        }