diff options
author | Michael Natterer <mitch@lanedo.com> | 2011-09-16 16:10:06 +0200 |
---|---|---|
committer | Michael Natterer <mitch@gimp.org> | 2011-09-26 16:01:50 +0200 |
commit | 2a8be23d1717a9b48d957a7ccfce9032b1e18a64 (patch) | |
tree | cc864182ac0d42cb33fbb662192ca154d1cd5394 /gtk/gtkprivate.h | |
parent | d3df4678ca8f286e93ac6944b92b76bc79e01f90 (diff) | |
download | gtk+-2a8be23d1717a9b48d957a7ccfce9032b1e18a64.tar.gz |
gtk: fix entering of Option-foo symbols on the Mac
define GTK_NO_TEXT_INPUT_MOD_MASK in gtkprivate.h
and use it in the IM contexts, so Option-foo is no longer
filtered away.
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r-- | gtk/gtkprivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index 458a4b95ae..d92affe6b2 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -67,6 +67,16 @@ const gchar *_gtk_get_data_prefix (); #define GTK_DEFAULT_ACCEL_MOD_MASK GDK_META_MASK #endif +/* When any of these modifiers are active, a key + * event cannot produce a symbol, so should be + * skipped when handling text input + */ +#ifndef GDK_WINDOWING_QUARTZ +#define GTK_NO_TEXT_INPUT_MOD_MASK (GDK_MOD1_MASK | GDK_CONTROL_MASK) +#else +#define GTK_NO_TEXT_INPUT_MOD_MASK (GDK_MOD2_MASK | GDK_CONTROL_MASK) +#endif + gboolean _gtk_fnmatch (const char *pattern, const char *string, gboolean no_leading_period); |