summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Philippsen <nils@tiptoe.de>2013-12-10 21:20:56 +0100
committerNils Philippsen <nils@tiptoe.de>2013-12-10 23:07:47 +0100
commite5ae775b42ea98587603ee273ca23394a113d44c (patch)
tree31111ac006141e4de6a2d583fc0b7deee8f31c4f
parent51bcb789e33e436d014ec465622c1e32528c1a9c (diff)
don't use deprecated g_strcasecmp()
It's dependent on the current locale and deprecated, use g_ascii_strcasecmp() instead.
-rw-r--r--gtk2_ardour/gtk_pianokeyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/gtk_pianokeyboard.c b/gtk2_ardour/gtk_pianokeyboard.c
index f3897e3d44..4f1740f26a 100644
--- a/gtk2_ardour/gtk_pianokeyboard.c
+++ b/gtk2_ardour/gtk_pianokeyboard.c
@@ -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 {