summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2015-11-04 23:10:27 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2015-11-04 23:23:12 +0100
commitd6219416e63dcf3e45593b2ffb6a5953709b492b (patch)
treeddebea6f12934584b79234a353d1bf20cdd0f5f2 /gtk2_ardour/option_editor.h
parent02124c0d16d48d7151c7e68ee8f2355e2536aba9 (diff)
Let Entry of FaderOption react on ENTER and allow only numerical input.
This enables setting click gain and solo gain in the preferences using the text field. -- fixes #6668
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r--gtk2_ardour/option_editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h
index 67835b291a..c69d4e03a4 100644
--- a/gtk2_ardour/option_editor.h
+++ b/gtk2_ardour/option_editor.h
@@ -582,6 +582,8 @@ public:
private:
void db_changed ();
+ void on_activate ();
+ bool on_key_press (GdkEventKey* ev);
Gtk::Adjustment _db_adjustment;
Gtkmm2ext::HSliderController* _db_slider;