Hiroyuki Ikezoe
ikezo****@users*****
Sat Jan 6 10:35:01 JST 2007
Index: kazehakase/src/actions/kz-actions.c diff -u kazehakase/src/actions/kz-actions.c:1.237 kazehakase/src/actions/kz-actions.c:1.238 --- kazehakase/src/actions/kz-actions.c:1.237 Thu Jan 4 22:45:54 2007 +++ kazehakase/src/actions/kz-actions.c Sat Jan 6 10:35:01 2007 @@ -245,16 +245,7 @@ if (filename) { - gchar *utf8, *urlencode, *dirname, *basename; - basename = g_path_get_basename(filename); - dirname = g_path_get_dirname(filename); - utf8 = g_filename_to_utf8 (basename, -1, NULL, NULL, NULL); - urlencode = url_encode(utf8); - uri = g_strdup_printf("file://%s/%s", dirname, urlencode); - g_free(utf8); - g_free(basename); - g_free(dirname); - g_free(urlencode); + uri = g_filename_to_uri(filename, NULL, NULL); g_free(filename); }