Mercurial > audlegacy
changeset 3373:706e85734317 trunk
progress bar for fileinfopopup lives again
author | Giacomo Lozito <james@develia.org> |
---|---|
date | Mon, 20 Aug 2007 12:02:43 +0200 |
parents | 1b0db603df9d |
children | 5a39f264f9f5 |
files | src/audacious/ui_fileinfopopup.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }