diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-27 13:28:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:24 -0500 |
commit | 2cc44e76683d6959cdb44891f084da0830b71337 (patch) | |
tree | 968b3a585ef054e83e0d0b54d4c9b264d94e8f09 /libs/gtkmm2ext/bindings.cc | |
parent | aa71d60ab990275bddd4a9ae0e378ed36e0c0fd4 (diff) |
no more munging with keyvals/accels on OS X
Diffstat (limited to 'libs/gtkmm2ext/bindings.cc')
-rw-r--r-- | libs/gtkmm2ext/bindings.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index 583d3515d2..d1b0e9cee8 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -444,11 +444,7 @@ Bindings::push_to_gtk (KeyboardKey kb, RefPtr<Action> what) * up with all bindings/actions. */ - uint32_t gtk_legal_keyval = kb.key(); - possibly_translate_keyval_to_make_legal_accelerator (gtk_legal_keyval); - KeyboardKey gtk_binding (kb.state(), gtk_legal_keyval); Gtk::AccelKey gtk_key; - bool entry_exists = Gtk::AccelMap::lookup_entry (what->get_accel_path(), gtk_key); if (!entry_exists) { @@ -464,8 +460,8 @@ Bindings::push_to_gtk (KeyboardKey kb, RefPtr<Action> what) * happens. */ - Gtk::AccelMap::add_entry (what->get_accel_path(), gtk_binding.key(), (Gdk::ModifierType) gtk_binding.state()); - } + Gtk::AccelMap::add_entry (what->get_accel_path(), kb.key(), (Gdk::ModifierType) kb.state()); + } } bool |