diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-27 20:38:23 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-27 20:38:23 +0000 |
commit | 33cde64ba350219e5642dc0ad05d532e9fa51c83 (patch) | |
tree | edfa55dc0aaf1334e3e795720527ce5f4b45c809 /gtk2_ardour/keyeditor.h | |
parent | 9a00f412535d46aee3d1044f72b6339e979591be (diff) |
fixes for keystate handling in the key binding editor (from trunk)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2578 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyeditor.h')
-rw-r--r-- | gtk2_ardour/keyeditor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/keyeditor.h b/gtk2_ardour/keyeditor.h index b200adabf4..9fd129ca31 100644 --- a/gtk2_ardour/keyeditor.h +++ b/gtk2_ardour/keyeditor.h @@ -18,6 +18,7 @@ class KeyEditor : public ArdourDialog protected: void on_show (); void on_unmap (); + bool on_key_press_event (GdkEventKey*); bool on_key_release_event (GdkEventKey*); private: @@ -26,10 +27,12 @@ class KeyEditor : public ArdourDialog add (action); add (binding); add (path); + add (bindable); } Gtk::TreeModelColumn<Glib::ustring> action; Gtk::TreeModelColumn<std::string> binding; Gtk::TreeModelColumn<std::string> path; + Gtk::TreeModelColumn<bool> bindable; }; Gtk::ScrolledWindow scroller; @@ -37,6 +40,9 @@ class KeyEditor : public ArdourDialog Glib::RefPtr<Gtk::TreeStore> model; KeyEditorColumns columns; + bool can_bind; + guint last_state; + void action_selected (); void populate (); }; |