Ticket #4031: ProgGuideIcons.patch

File ProgGuideIcons.patch, 1.9 KB (added by Alex Halovanic <halovanic@…>, 17 years ago)

patch against svn 14575

  • libs/libmythtv/guidegrid.cpp

     
    11461153
    11471154    ChannelInfo *chinfo = &(m_channelInfos[m_currentStartChannel]);
    11481155
     1156    bool showChannelIcon = gContext->GetNumSetting("EPGShowChannelIcon", 0);
     1157
    11491158    for (unsigned int y = 0; y < (unsigned int)DISPLAY_CHANS; y++)
    11501159    {
    11511160        unsigned int chanNumber = y + m_currentStartChannel;
     
    11581167        if ((y == (unsigned int)2 && scrolltype != 1) ||
    11591168            ((signed int)y == m_currentRow && scrolltype == 1))
    11601169        {
    1161             if (!chinfo->iconpath.isEmpty() && chinfo->iconpath != "none")
     1170            if (showChannelIcon && !chinfo->iconpath.isEmpty() && chinfo->iconpath != "none")
    11621171            {
    11631172                int iconsize = 0;
    11641173                if (itype)
     
    11861195
    11871196        if (type)
    11881197        {
    1189             if (!chinfo->iconpath.isEmpty() && chinfo->iconpath != "none")
     1198            if (showChannelIcon && !chinfo->iconpath.isEmpty() && chinfo->iconpath != "none")
    11901199            {
    11911200                int iconsize = 0;
    11921201                iconsize = type->GetSize();
  • programs/mythfrontend/globalsettings.cpp

     
    28472847static HostCheckBox *EPGShowChannelIcon()
    28482848{
    28492849    HostCheckBox *gc = new HostCheckBox("EPGShowChannelIcon");
    2850     gc->setLabel(QObject::tr("Display the channel icon"));
     2850    gc->setLabel(QObject::tr("Display the channel icons"));
     2851    gc->setHelpText(QObject::tr("Display the icons/logos for the channels "
     2852                    "in the guide.  See section 9.5 of the "
     2853                    "Installation Guide for how to grab icons."));
    28512854    gc->setValue(true);
    28522855    return gc;
    28532856}