# HG changeset patch # User Giacomo Lozito # Date 1187604163 -7200 # Node ID 706e85734317cda5c89597464d1b9805b12acfb3 # Parent 1b0db603df9d347437cc7106b85331e483dfcf37 progress bar for fileinfopopup lives again diff -r 1b0db603df9d -r 706e85734317 src/audacious/ui_fileinfopopup.c --- a/src/audacious/ui_fileinfopopup.c Sun Aug 19 14:57:20 2007 +0200 +++ b/src/audacious/ui_fileinfopopup.c Mon Aug 20 12:02:43 2007 +0200 @@ -92,7 +92,7 @@ GtkWidget *progressbar = g_object_get_data(G_OBJECT(filepopup_win), "progressbar"); gchar *tooltip_file = g_object_get_data(G_OBJECT(filepopup_win), "file"); - gchar *current_file; + gchar *current_file_u, *current_file; Playlist *pl; gint length = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(filepopup_win), "length")); @@ -105,9 +105,9 @@ pos = playlist_get_position(pl); - current_file = playlist_get_filename(pl , pos); - - g_return_val_if_fail(current_file != NULL, FALSE); + current_file_u = playlist_get_filename(pl , pos); + g_return_val_if_fail(current_file_u != NULL, FALSE); + current_file = g_filename_from_uri(current_file_u, NULL, NULL); if (playback_get_playing() && length != -1 && current_file != NULL && tooltip_file != NULL && @@ -133,6 +133,7 @@ gtk_widget_hide(progressbar); } + g_free( current_file ); return TRUE; }