summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/bindings.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-12-13 06:22:51 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-12-13 07:02:08 -0500
commit545f5bee87062c33ce5aa7bb0fecfbdd1cb1a83b (patch)
tree17ec08a7d3b7c96024ba0c673c4fc457aa61c259 /libs/gtkmm2ext/bindings.cc
parentb34a614df4e5e55d5bebb23629762be812067cb7 (diff)
changes to adapt to modified version of GTK/Quartz which uses only MOD2 for Command, everywhere.
The default version of GTK2/Quartz uses MOD2+META for keys and MOD2 for scroll, which is basically insane
Diffstat (limited to 'libs/gtkmm2ext/bindings.cc')
-rw-r--r--libs/gtkmm2ext/bindings.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc
index 9100ddabc6..2b1762da90 100644
--- a/libs/gtkmm2ext/bindings.cc
+++ b/libs/gtkmm2ext/bindings.cc
@@ -177,18 +177,6 @@ KeyboardKey::display_label () const
uint32_t mod = state();
-#ifdef __APPLE__
- /* We use both bits (MOD2|META) for Primary on OS X,
- * but we don't want MOD2 showing up in listings. So remove
- * it and add back META.
- */
-
- if (mod & GDK_MOD2_MASK) {
- mod = (mod & ~GDK_MOD2_MASK) | GDK_META_MASK;
- }
-#endif
-
-
return gtk_accelerator_get_label (key(), (GdkModifierType) mod);
}
@@ -601,16 +589,6 @@ Bindings::push_to_gtk (KeyboardKey kb, RefPtr<Action> what)
int mod = kb.state();
-#ifdef __APPLE__
- /* See comments in Keyboard::Keyboard about GTK handling of MOD2, META and the Command key.
- *
- * If we do not do this, GTK+ won't show the correct text for shortcuts in menus.
- */
-
- if (mod & GDK_MOD2_MASK) {
- mod = mod | GDK_META_MASK;
- }
-#endif
Gtk::AccelMap::add_entry (what->get_accel_path(), kb.key(), (Gdk::ModifierType) mod);
}