Re: [Nautilus-list] [PATCH] make the music-view show song info as it should



sön 2002-03-10 klockan 16.49 skrev Diego González:
> 	This little patch to the music view make it show song info with
> "special" characters.
[...]
> +	if (tag.title != NULL)
> +		song_info->title = g_locale_to_utf8 (tag.title, -1, NULL, NULL, NULL);
> +	if (tag.artist != NULL)
> +		song_info->artist = g_locale_to_utf8 (tag.artist, -1, NULL, NULL, NULL);
> +	if (tag.album)
> +		song_info->album = g_locale_to_utf8 (tag.album, -1, NULL, NULL, NULL); 
> +	song_info->year = filter_out_unset_year (tag.year);
> +	if (tag.comment != NULL)
> +		song_info->comment = g_locale_to_utf8 (tag.comment, -1, NULL, NULL, NULL);

Hmm, I think Nautilus coding style requires you to use {} also around
one-line if statements.
At least I think I've heard that on this list on a few occasions before.
;-)


Christian






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]