Commit 5515799d authored by Andy Hertzfeld's avatar Andy Hertzfeld

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.
parent 81d7ee4c
2000-03-09 Andy Hertzfeld <andy@eazel.com>
* libnautilus/nautilus-icons-view-icon-item.c:
tweaked constants used to control amount of pre-lighting in "lighten"
routine
* components/music/nautilus-music-view.c:
fixed bug that Maciej found where the track number would show up as -1
if there was no encoded track number; now they show up as blank.
2000-03-09 Maciej Stachowiak <mjs@eazel.com>
* libnautilus/nautilus-zoomable.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;
......
......@@ -812,7 +812,7 @@ static guchar
lighten_component (guchar cur_value)
{
int new_value = cur_value;
new_value += 32 + (new_value >> 3);
new_value += 24 + (new_value >> 3);
if (new_value > 255)
new_value = 255;
return (guchar) new_value;
......
......@@ -812,7 +812,7 @@ static guchar
lighten_component (guchar cur_value)
{
int new_value = cur_value;
new_value += 32 + (new_value >> 3);
new_value += 24 + (new_value >> 3);
if (new_value > 255)
new_value = 255;
return (guchar) new_value;
......
......@@ -812,7 +812,7 @@ static guchar
lighten_component (guchar cur_value)
{
int new_value = cur_value;
new_value += 32 + (new_value >> 3);
new_value += 24 + (new_value >> 3);
if (new_value > 255)
new_value = 255;
return (guchar) new_value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment