diff options
author | Michael Natterer <mitch@lanedo.com> | 2011-09-17 20:05:33 +0200 |
---|---|---|
committer | Michael Natterer <mitch@gimp.org> | 2011-09-26 16:01:50 +0200 |
commit | 0955a59563d0b64a9bc9404ee9e1ec3809df5270 (patch) | |
tree | 7a0b132c8ad110d657d80aff2da30783676adaec /gtk/gtkprivate.h | |
parent | 286fff4e5f0ec5964c974b0efc44ff2a7c5181db (diff) | |
download | gtk+-0955a59563d0b64a9bc9404ee9e1ec3809df5270.tar.gz |
app: abstract which modifiers are used for extending and modifying selections
which are SHIFT and MOD2 on the Mac, and SHIFT and CONTROL otherwise.
Use the new define all over the place and rename variables and
members to not say "shift" or "control".
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r-- | gtk/gtkprivate.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index d92affe6b2..00e9bbe9d2 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -77,6 +77,14 @@ const gchar *_gtk_get_data_prefix (); #define GTK_NO_TEXT_INPUT_MOD_MASK (GDK_MOD2_MASK | GDK_CONTROL_MASK) #endif +#ifndef GDK_WINDOWING_QUARTZ +#define GTK_EXTEND_SELECTION_MOD_MASK GDK_SHIFT_MASK +#define GTK_MODIFY_SELECTION_MOD_MASK GDK_CONTROL_MASK +#else +#define GTK_EXTEND_SELECTION_MOD_MASK GDK_SHIFT_MASK +#define GTK_MODIFY_SELECTION_MOD_MASK GDK_MOD2_MASK +#endif + gboolean _gtk_fnmatch (const char *pattern, const char *string, gboolean no_leading_period); |