changeset 2576:98d02ad44f3b trunk

[svn] - filename in filepopup should be utf8.
author yaz
date Sun, 25 Feb 2007 18:17:25 -0800
parents 9713b5a67cba
children 1967594c1123
files ChangeLog src/audacious/build_stamp.c src/audacious/ui_fileinfopopup.c
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 25 17:55:30 2007 -0800
+++ b/ChangeLog	Sun Feb 25 18:17:25 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-26 01:55:30 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4160]
+  - make directory drag-and-drop work again.
+  
+  trunk/src/audacious/playlist.c |    2 +-
+  trunk/src/audacious/vfs.c      |   14 +++++++++++++-
+  2 files changed, 14 insertions(+), 2 deletions(-)
+
+
 2007-02-25 08:53:19 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4158]
   - enforce playback stop when clearing the playlist to load new files in. closes #808.
--- a/src/audacious/build_stamp.c	Sun Feb 25 17:55:30 2007 -0800
+++ b/src/audacious/build_stamp.c	Sun Feb 25 18:17:25 2007 -0800
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070225-4158";
+const gchar *svn_stamp = "20070226-4160";
--- a/src/audacious/ui_fileinfopopup.c	Sun Feb 25 17:55:30 2007 -0800
+++ b/src/audacious/ui_fileinfopopup.c	Sun Feb 25 18:17:25 2007 -0800
@@ -34,6 +34,7 @@
 #include "playlist.h"
 #include "playback.h"
 #include "util.h"
+#include "strings.h"
 
 static void
 filepopup_entry_set_text(GtkWidget *filepopup_win, const char *entry_name, const char *text)
@@ -404,9 +405,11 @@
 	{
         /* display the filename if track_name is not available */
 	  gchar *markup = g_markup_printf_escaped( "<span style=\"italic\">%s</span>" , _("Filename") );
+	  gchar *utf_filename = filename_to_utf8(tuple->file_name);
 	  gtk_label_set_markup( GTK_LABEL(g_object_get_data(G_OBJECT(filepopup_win),"header_title")), markup );
 	  g_free( markup );
-        filepopup_entry_set_text(filepopup_win, "label_title", tuple->file_name);
+	  filepopup_entry_set_text(filepopup_win, "label_title", utf_filename);
+	  g_free( utf_filename );
 	}
 
 	if ( tuple->performer != NULL )