Bacon.VolumeButton.VolumeScale.OnButtonReleaseEvent C# (CSharp) Method

OnButtonReleaseEvent() protected method

protected OnButtonReleaseEvent ( Gdk evnt ) : bool
evnt Gdk
return bool
            protected override bool OnButtonReleaseEvent(Gdk.EventButton evnt)
            {
                if(button.timeout) {
                    if(evnt.Time > button.pop_time + CLICK_TIMEOUT) {
                        button.ReleaseGrab(evnt);
                        return base.OnButtonReleaseEvent(evnt);
                    }

                    button.timeout = false;
                }

                bool result = base.OnButtonReleaseEvent(evnt);

                Gtk.Grab.Add(button.dock);

                return result;
            }