From 7923100820b3d79e74ab8100c5ab3b837af1c40c Mon Sep 17 00:00:00 2001 From: yabause Date: Mon, 10 Nov 2008 22:23:49 +0000 Subject: [PATCH] Patch by Magliocchetti Riccardo: show key name instead of code when modifying controls, the very same change has been committed some times ago to the function that show it --- desmume/src/gtk/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 39f039a24..1644d9a28 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -972,7 +972,7 @@ static void Modify_Key(GtkWidget* widget, gpointer data) switch(gtk_dialog_run(GTK_DIALOG(mkDialog))) { case GTK_RESPONSE_OK: Keypad_Temp[Key] = Modify_Key_Chosen; - Key_Label = g_strdup_printf("%s (%d)", key_names[Key], Keypad_Temp[Key]); + Key_Label = g_strdup_printf("%s (%s)", key_names[Key], gdk_keyval_name(Keypad_Temp[Key])); gtk_button_set_label(GTK_BUTTON(widget), Key_Label); g_free(Key_Label); break;