diff options
Diffstat (limited to 'libs/gtkmm2ext/bindable_button.cc')
-rw-r--r-- | libs/gtkmm2ext/bindable_button.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libs/gtkmm2ext/bindable_button.cc b/libs/gtkmm2ext/bindable_button.cc index 76b89deb02..3c3cad6e46 100644 --- a/libs/gtkmm2ext/bindable_button.cc +++ b/libs/gtkmm2ext/bindable_button.cc @@ -42,7 +42,7 @@ BindableToggleButton::BindableToggleButton (MIDI::Controllable *mc) } BindableToggleButton::BindableToggleButton(MIDI::Controllable *mc, const string &label) - : ToggleButton (label), + : StatefulButton (label), prompter (Gtk::WIN_POS_MOUSE, 30000, false), midi_control (mc), bind_button (2), @@ -90,17 +90,6 @@ BindableToggleButton::midi_learn() } bool -BindableToggleButton::on_button_press_event (GdkEventButton *ev) -{ - if ((ev->state & bind_statemask) && ev->button == bind_button) { - midi_learn (); - return true; - } - - return false; -} - -bool BindableToggleButton::prompter_hiding (GdkEventAny *ev) { if (unprompting) { |