From 6078055e3e407033df88860f2ef5cf79abb934ab Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sun, 23 May 2010 02:47:41 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48557 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/MemcardDlg.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gui') 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, -- cgit v1.2.3