Mercurial > audlegacy
changeset 1139:9563c642d436 trunk
[svn] - convert filenames to UTF-8, as in vorbis plugin. Patch by: Kazuki Shimura <kazuki@ma.ccnw.ne.jp>.
author | nenolod |
---|---|
date | Sun, 04 Jun 2006 13:24:37 -0700 |
parents | fae48961b173 |
children | 8f84ecc1e1f0 |
files | Plugins/Input/flac/fileinfo.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/flac/fileinfo.c Sun Jun 04 13:20:40 2006 -0700 +++ b/Plugins/Input/flac/fileinfo.c Sun Jun 04 13:24:37 2006 -0700 @@ -26,6 +26,7 @@ #include <stdarg.h> #include <gtk/gtk.h> +#include "audacious/util.h" #include "FLAC/metadata.h" #include "charset.h" #include "configure.h" @@ -237,6 +238,7 @@ { unsigned i; gchar *title; + gchar *filename_utf8; if (!window) { @@ -409,13 +411,16 @@ if(!(current_filename = g_strdup(filename))) return; - title = g_strdup_printf(_("File Info - %s"), g_basename(filename)); + filename_utf8 = filename_to_utf8(current_filename); + title = g_strdup_printf(_("File Info - %s"), g_basename(filename_utf8)); gtk_window_set_title(GTK_WINDOW(window), title); g_free(title); - gtk_entry_set_text(GTK_ENTRY(filename_entry), filename); + gtk_entry_set_text(GTK_ENTRY(filename_entry), filename_utf8); gtk_editable_set_position(GTK_EDITABLE(filename_entry), -1); + g_free(filename_utf8); + if(tags_) FLAC_plugin__tags_destroy(&tags_);