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:
parent
51bcb789e3
commit
e5ae775b42
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user