mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
[Summary] Fixing little bug in the statemchine
This commit is contained in:
parent
83c93e07a0
commit
3464368f8b
1 changed files with 16 additions and 14 deletions
|
|
@ -325,7 +325,7 @@ WavesButton::on_size_request (Gtk::Requisition* req)
|
|||
bool
|
||||
WavesButton::on_button_press_event (GdkEventButton *ev)
|
||||
{
|
||||
focus_handler ();
|
||||
focus_handler ();
|
||||
|
||||
if (ev->type == GDK_2BUTTON_PRESS) {
|
||||
signal_double_clicked (this);
|
||||
|
|
@ -348,19 +348,21 @@ WavesButton::on_button_press_event (GdkEventButton *ev)
|
|||
bool
|
||||
WavesButton::on_button_release_event (GdkEventButton *)
|
||||
{
|
||||
_pushed = false;
|
||||
queue_draw ();
|
||||
if (_hovering) {
|
||||
signal_clicked (this);
|
||||
if (_toggleable) {
|
||||
set_active_state (active_state () == Gtkmm2ext::ExplicitActive ? Gtkmm2ext::Off : Gtkmm2ext::ExplicitActive);
|
||||
}
|
||||
|
||||
if (_act_on_release) {
|
||||
if (_action) {
|
||||
_action->activate ();
|
||||
return true;
|
||||
}
|
||||
if (_pushed) {
|
||||
_pushed = false;
|
||||
queue_draw ();
|
||||
if (_hovering) {
|
||||
signal_clicked (this);
|
||||
if (_toggleable) {
|
||||
set_active_state (active_state () == Gtkmm2ext::ExplicitActive ? Gtkmm2ext::Off : Gtkmm2ext::ExplicitActive);
|
||||
}
|
||||
|
||||
if (_act_on_release) {
|
||||
if (_action) {
|
||||
_action->activate ();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue