summaryrefslogtreecommitdiff
path: root/gtk/gtkprivate.h
diff options
context:
space:
mode:
authorYevgen Muntyan <muntyan@tamu.edu>2009-10-25 23:46:19 +0100
committerJavier Jardón <jjardon@gnome.org>2009-10-26 00:03:05 +0100
commit3c510f028f9a399c80851d2cb8c230e930abd4ff (patch)
tree693735fb564c87ba4149c56b4018ebc3c1e884f6 /gtk/gtkprivate.h
parente21355495a056488fdea98372de2754530b3c86a (diff)
downloadgtk+-3c510f028f9a399c80851d2cb8c230e930abd4ff.tar.gz
Use standard mac shortcuts
This changes Ctrl-X, Ctrl-C, etc. to Cmd-X, Cmd-C, etc. Also, Alt-Left and Alt-Right in text widgets bound to Ctrl-Left and Ctrl-Right actions https://bugzilla.gnome.org/show_bug.cgi?id=530351
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r--gtk/gtkprivate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 5e51844c5b..7ba5a5db62 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -103,6 +103,15 @@ gboolean _gtk_fnmatch (const char *pattern,
#define GTK_PARAM_WRITABLE G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
#define GTK_PARAM_READWRITE G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
+/* Many keyboard shortcuts for Mac are the same as for X
+ * except they use Command key instead of Control (e.g. Cut,
+ * Copy, Paste). This symbol is for those simple cases. */
+#ifndef GDK_WINDOWING_QUARTZ
+#define GTK_DEFAULT_ACCEL_MOD_MASK GDK_CONTROL_MASK
+#else
+#define GTK_DEFAULT_ACCEL_MOD_MASK GDK_META_MASK
+#endif
+
G_END_DECLS
#endif /* __GTK_PRIVATE_H__ */