summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-07-17 13:15:32 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-07-17 13:15:32 +0100
commit1506ec4a541938293d931a1bd1909d46a0d0a0e3 (patch)
treed86098efa63c91ec2f9a96df81d33d007c7aa963
parentad690c61b1f590a904da7c3b4d3e94678b990547 (diff)
downloadclutter-1506ec4a541938293d931a1bd1909d46a0d0a0e3.tar.gz
keysyms-update: Add deprecation notice for compat symbols
Now that we can warn about deprecated macros, we should finally do it for the old, non-namespaced key symbol macros that we've been stringing along since the 1.0 days.
-rwxr-xr-xclutter/clutter-keysyms-update.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/clutter/clutter-keysyms-update.pl b/clutter/clutter-keysyms-update.pl
index 7c7af1eff..35440ee97 100755
--- a/clutter/clutter-keysyms-update.pl
+++ b/clutter/clutter-keysyms-update.pl
@@ -140,8 +140,10 @@ while (<IN_KEYSYMDEF>)
my $compat_binding = $element;
$compat_binding =~ s/^XK_/CLUTTER_/g;
+ my $deprecation = "CLUTTER_DEPRECATED_MACRO_FOR(\"Deprecated key symbol. Use $binding instead.\")";
+
printf OUT_KEYSYMS "#define %s 0x%03x\n", $binding, hex($keysymelements[2]);
- printf OUT_KEYSYMS_COMPAT "#define %s 0x%03x\n", $compat_binding, hex($keysymelements[2]);
+ printf OUT_KEYSYMS_COMPAT "#define %s 0x%03x %s\n", $compat_binding, hex($keysymelements[2]), $deprecation;
}
close IN_KEYSYMDEF;