summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-23 02:47:41 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-23 02:47:41 +0000
commit6078055e3e407033df88860f2ef5cf79abb934ab (patch)
treed6610193885a1b1496eec1e1283bcee2c6a2401e /gui
parent7c4427cb435c50b2772d69521b34c4979a950ea8 (diff)
downloadpcsxr-6078055e3e407033df88860f2ef5cf79abb934ab.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48557 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui')
-rw-r--r--gui/MemcardDlg.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gui/MemcardDlg.c b/gui/MemcardDlg.c
index b700dc20..6f5768e2 100644
--- a/gui/MemcardDlg.c
+++ b/gui/MemcardDlg.c
@@ -131,6 +131,7 @@ static void LoadListItems(int mcd, GtkWidget *widget) {
GtkListStore *store;
GtkTreeIter iter;
GdkPixbuf *pixbuf;
+ gchar *title;
store = gtk_list_store_new(NUM_CL, GDK_TYPE_PIXBUF, G_TYPE_STRING,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
@@ -162,13 +163,19 @@ static void LoadListItems(int mcd, GtkWidget *widget) {
pixbuf = SetIcon(dialog, Info->Icon, i + 1);
gtk_list_store_append(store, &iter);
+
+ title = g_convert(Info->sTitle, strlen(Info->sTitle), "UTF-8",
+ "Shift-JIS", NULL, NULL, NULL);
+
gtk_list_store_set(store, &iter,
CL_ICON, pixbuf,
- CL_TITLE, Info->Title,
+ CL_TITLE, title,
CL_STAT, state,
CL_NAME, Info->Name,
CL_ID, Info->ID,
-1);
+
+ g_free(title);
g_object_unref(pixbuf);
}
@@ -265,7 +272,7 @@ static void UpdateListItems(int mcd, GtkWidget *widget) {
pixbuf = SetIcon(dialog, pIcon, i + 1);
title = g_convert(Info->sTitle, strlen(Info->sTitle), "UTF-8",
- "Shift-JIS", NULL, NULL, NULL);
+ "Shift-JIS", NULL, NULL, NULL);
gtk_list_store_set(store, &iter,
CL_ICON, pixbuf,