diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-09 03:36:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-09 03:36:00 +0000 |
commit | 14543eb1374dc51834385d2f3886f1e6068223c5 (patch) | |
tree | 5194d0a983b77d79f5310f1216129e84c64f6a42 /libs/gtkmm2ext/bindable_button.cc | |
parent | 138b12b1dd5b7e6175b3349b8ed7fa8b16721809 (diff) |
strip X specific from keyboard.cc; fix up many buttons to avoid prelight (mostly) and make transport buttons bindable (state not saved yet); use const char* not string in route order keys to avoid pointless mallocs during route sorting
git-svn-id: svn://localhost/ardour2/trunk@1437 d708f5d6-7413-0410-9779-e7cbd77b26cf
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) { |