13
0

don't use deprecated g_strcasecmp()

It's dependent on the current locale and deprecated, use
g_ascii_strcasecmp() instead.
This commit is contained in:
Nils Philippsen 2013-12-10 21:20:56 +01:00
parent 51bcb789e3
commit e5ae775b42

View File

@ -732,13 +732,13 @@ piano_keyboard_set_keyboard_layout(PianoKeyboard *pk, const char *layout)
{
assert(layout);
if (!g_strcasecmp(layout, "QWERTY")) {
if (!g_ascii_strcasecmp(layout, "QWERTY")) {
bind_keys_qwerty(pk);
} else if (!g_strcasecmp(layout, "QWERTZ")) {
} else if (!g_ascii_strcasecmp(layout, "QWERTZ")) {
bind_keys_qwertz(pk);
} else if (!g_strcasecmp(layout, "AZERTY")) {
} else if (!g_ascii_strcasecmp(layout, "AZERTY")) {
bind_keys_azerty(pk);
} else {