Skip to content

Commit

Permalink
Expose category type as a statetype in PBB. Valid states are movie, s…
Browse files Browse the repository at this point in the history
…eries, tvshow and sports (not especially useful in it's current form)
  • Loading branch information
stuartm committed Feb 15, 2012
1 parent 2cb7fc6 commit 75b8683
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -1144,6 +1144,13 @@ void PlaybackBox::updateIcons(const ProgramInfo *pginfo)

if (iconState && !haveIcon)
iconState->Reset();

iconState = dynamic_cast<MythUIStateType *>(GetChild("categorytype"));
if (iconState)
{
if (!(pginfo && iconState->DisplayState(pginfo->GetCategoryType())))
iconState->Reset();
}
}

bool PlaybackBox::IsUsageUIVisible(void) const
Expand Down Expand Up @@ -1374,6 +1381,8 @@ void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item)
if ((*it)->GetSubtitleType() & sit.key())
item->DisplayState(sit.value(), "subtitletypes");
}

item->DisplayState((*it)->GetCategoryType(), "categorytype");
}

if (m_noRecordingsText)
Expand Down

0 comments on commit 75b8683

Please sign in to comment.