mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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.
This commit is contained in:
parent
ad690c61b1
commit
1506ec4a54
@ -140,8 +140,10 @@ while (<IN_KEYSYMDEF>)
|
|||||||
my $compat_binding = $element;
|
my $compat_binding = $element;
|
||||||
$compat_binding =~ s/^XK_/CLUTTER_/g;
|
$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 "#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;
|
close IN_KEYSYMDEF;
|
||||||
|
Loading…
Reference in New Issue
Block a user