diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-29 21:58:44 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-29 21:58:44 +0000 |
commit | d367d94c7febe766afc7356e874ba4eb36fcae48 (patch) | |
tree | 55f85dbea41a7ac98cf0b705fd436c25db0aa37a /gtk2_ardour/vst_pluginui.cc | |
parent | fa02a4e61c0dbfae1c2e0f12260c5a97b34928d1 (diff) |
Extremely hacky but somewhat functional passing of keys to VST plugin UIs. Sort-of fixes #3630.
git-svn-id: svn://localhost/ardour2/branches/3.0@8371 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/vst_pluginui.cc')
-rw-r--r-- | gtk2_ardour/vst_pluginui.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/vst_pluginui.cc b/gtk2_ardour/vst_pluginui.cc index b6902445f3..80973eb0e2 100644 --- a/gtk2_ardour/vst_pluginui.cc +++ b/gtk2_ardour/vst_pluginui.cc @@ -39,6 +39,7 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ptr< preset_box.set_spacing (6); preset_box.set_border_width (6); + preset_box.pack_end (focus_button, false, false); preset_box.pack_end (bypass_button, false, false, 10); preset_box.pack_end (delete_button, false, false); preset_box.pack_end (save_button, false, false); @@ -134,6 +135,14 @@ VSTPluginUI::configure_handler (GdkEventConfigure* ev, Gtk::Socket *socket) return false; } +void +VSTPluginUI::forward_key_event (GdkEventKey* ev) +{ + if (ev->type == GDK_KEY_PRESS) { + vst->fst()->pending_key = ev->keyval; + } +} + typedef int (*error_handler_t)( Display *, XErrorEvent *); static Display *the_gtk_display; static error_handler_t wine_error_handler; |