summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2000-03-10 00:53:01 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2000-03-10 00:53:01 +0000
commit5515799d9f768ae30951a105dcb163431a053566 (patch)
treef1f2f34cf4c2ec878dc0d742780e16087dd9dd36 /components
parent81d7ee4ca8d63fd33e2271b82d3e560c6ab14f42 (diff)
downloadnautilus-5515799d9f768ae30951a105dcb163431a053566.tar.gz
2 small fixes: tweaked constants used for pre-lighting icons and fixed bug
2 small fixes: tweaked constants used for pre-lighting icons and fixed bug in music view where track numbers were displayed as -1 if they were not present in the id3 data; now they are blank.
Diffstat (limited to 'components')
-rw-r--r--components/music/nautilus-music-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/music/nautilus-music-view.c b/components/music/nautilus-music-view.c
index fbdc52d68..a45ef2511 100644
--- a/components/music/nautilus-music-view.c
+++ b/components/music/nautilus-music-view.c
@@ -506,8 +506,11 @@ nautilus_music_view_update_from_uri (NautilusMusicView *music_view, const char *
info = (SongInfo*) this_song->data;
clist_entry[0] = malloc(4);
- sprintf(clist_entry[0], "%d", info->track_number);
-
+ if (info->track_number > 0)
+ sprintf(clist_entry[0], "%d", info->track_number);
+ else
+ clist_entry[0] = '\0';
+
clist_entry[1] = NULL;
clist_entry[2] = NULL;
clist_entry[3] = NULL;