Mercurial > audlegacy-plugins
diff src/vorbis/fileinfo.c @ 1279:2ebffac54865
unescape url encoded filename where real filename is needed.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Tue, 17 Jul 2007 01:14:36 +0900 |
parents | 6a656a7f40fa |
children | 1d81217767ab |
line wrap: on
line diff
--- a/src/vorbis/fileinfo.c Mon Jul 16 23:47:42 2007 +0900 +++ b/src/vorbis/fileinfo.c Tue Jul 17 01:14:36 2007 +0900 @@ -1014,8 +1014,12 @@ gtk_entry_set_text(GTK_ENTRY(location_entry), get_comment(comment, "location")); #endif - - filename_utf8 = filename_to_utf8(vte.filename); + { + gchar *realfn = NULL; + realfn = g_filename_from_uri(vte.filename, NULL, NULL); + filename_utf8 = filename_to_utf8(realfn ? realfn : vte.filename); + g_free(realfn); realfn = NULL; + } title = g_strdup_printf(_("%s - Audacious"), g_basename(filename_utf8)); gtk_window_set_title(GTK_WINDOW(window), title);