Commit ff01456e authored by Ludovic Fauvet's avatar Ludovic Fauvet

audio artist view: show the number of albums for each artist

parent 9576086d
......@@ -113,6 +113,10 @@ genlist_text_get_cb(void *data, Evas_Object *obj, const char *part)
asprintf(&buf, "<b>%s</b>", p_view_item->p_artist_item->psz_name ?
p_view_item->p_artist_item->psz_name : "Unknown Artist");
return buf;
} else if (!strcmp(part, "elm.text.sub.right.bottom")) {
asprintf(&buf, "%d album%s", p_view_item->p_artist_item->i_nb_albums,
p_view_item->p_artist_item->i_nb_albums > 1 ? "s" : "" );
return buf;
}
}
return NULL;
......
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