From 90d47169af231ca20a49584cae0e1f5fa6f93a9e Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko Date: Thu, 30 Jun 2011 15:34:38 +0300 Subject: [PATCH] display channel for first event in a block --- src/playlist.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 59af44e..1b136c6 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -273,7 +273,10 @@ void omnplay_playlist_draw(omnplay_instance_t* app) { char ch[3]; - snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + if(OMNPLAY_PLAYLIST_BLOCK_BEGIN & app->playlist.item[i].type) + snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + else + ch[0] = 0; gtk_list_store_append(list_store, &iter); @@ -330,7 +333,10 @@ static gboolean omnplay_playlist_draw_item_proc( if(i != item->idx) return FALSE; - snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + if(OMNPLAY_PLAYLIST_BLOCK_BEGIN & app->playlist.item[i].type) + snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + else + ch[0] = 0; gtk_list_store_set(item->list_store, iter, 0, "", -- 1.7.4.4