changeset 1309:816ea8bbde1c trunk

[svn] - if tuple->length == -1 then don't show a length
author nenolod
date Mon, 19 Jun 2006 01:51:01 -0700
parents 3e4de397d062
children ff98136a93d2
files ChangeLog audacious/ui_fileinfo.c
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 19 01:33:30 2006 -0700
+++ b/ChangeLog	Mon Jun 19 01:51:01 2006 -0700
@@ -1,3 +1,12 @@
+2006-06-19 08:33:30 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1528]
+  - give the labels on the left proper identifiers
+  
+
+  Changes:        Modified:
+  +7 -7           trunk/audacious/glade/fileinfo_popup.glade  
+
+
 2006-06-19 08:00:51 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1526]
   - reset the album art back to the default icon
--- a/audacious/ui_fileinfo.c	Mon Jun 19 01:33:30 2006 -0700
+++ b/audacious/ui_fileinfo.c	Mon Jun 19 01:51:01 2006 -0700
@@ -362,7 +362,9 @@
 	filepopup_entry_set_text("label_artist", tuple->performer);
 	filepopup_entry_set_text("label_album", tuple->album_name);
 	filepopup_entry_set_text("label_genre", tuple->genre);
-	filepopup_entry_set_text_free("label_length", g_strdup_printf("%d:%02d", tuple->length / 60000, (tuple->length / 1000) % 60));
+
+	if (tuple->length != -1)
+		filepopup_entry_set_text_free("label_length", g_strdup_printf("%d:%02d", tuple->length / 60000, (tuple->length / 1000) % 60));
 
 	if (tuple->year != 0)
 		filepopup_entry_set_text_free("label_year", g_strdup_printf("%d", tuple->year));