From fff07ea64eb24a31ccefb779d757a3d301474ecb Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 30 Apr 2013 12:59:13 +0200 Subject: [PATCH] - eventlist: move info button from header to buttonbar * remove unused button_label structs Conflicts: src/gui/eventlist.cpp --- src/gui/eventlist.cpp | 48 ++++++++++--------------------------------- 1 file changed, 11 insertions(+), 37 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 1d9d461e2..397f68e6d 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -790,15 +790,13 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI) void CNeutrinoEventList::paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next) { const short font_h = 8; - int iw = 0, ih = 0; - frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_INFO, &iw, &ih); frameBuffer->paintBoxRel(x,y, width,theight+0, COL_MENUHEAD_PLUS_0, RADIUS_LARGE, CORNER_TOP); - int name_width =((width-8-iw)/3); + int name_width = width/3 ; short prev_len = g_Font[font_h]->getRenderWidth(_channelname_prev.c_str(),true); short next_len = g_Font[font_h]->getRenderWidth(_channelname_next.c_str(),true); short middle_len = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE]->getRenderWidth(_channelname.c_str(),true); - short middle_offset = (width- next_len- prev_len- middle_len-iw-8)/2; + short middle_offset = (width- next_len- prev_len- middle_len)/2; if(middle_offset < 0){ int fw_h = g_Font[font_h]->getWidth(); int newsize = abs(middle_offset / fw_h) + 1; @@ -838,13 +836,6 @@ void CNeutrinoEventList::paint(t_channel_id channel_id) { liststart = (selected/listmaxshow)*listmaxshow; - int iw = 0, ih = 0; - if (evtlist[0].eventID != 0) { - frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_INFO, &iw, &ih); - frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_INFO, x+ width - 4 - iw, y, theight); - } - - for(unsigned int count=0;count