Stetic.Editor.EditableLabel.OnButtonPressEvent C# (CSharp) Method

OnButtonPressEvent() protected method

protected OnButtonPressEvent ( Gdk ev ) : bool
ev Gdk
return bool
        protected override bool OnButtonPressEvent(Gdk.EventButton ev)
        {
            IDesignArea d = WidgetUtils.GetDesignArea (this);
            if (d.IsSelected (this)) {
                if (Child is Gtk.Label) {
                    StartEditing ();
                    return true;
                }
            } else {
                d.SetSelection (this, null);
                return true;
            }
            return false;
        }