diff options
-rw-r--r-- | recmenu.c | 12 | ||||
-rw-r--r-- | recmenu.h | 2 | ||||
-rw-r--r-- | recmenuview.h | 2 | ||||
-rw-r--r-- | tvguideosd.c | 2 |
4 files changed, 2 insertions, 16 deletions
@@ -106,18 +106,6 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) { height += footerHeight; } -void cRecMenu::SetHeader(cRecMenuItem *header) { - this->header = header; - headerHeight = header->GetHeight(); - height += headerHeight; -} - -void cRecMenu::SetFooter(cRecMenuItem *footer) { - this->footer = footer; - footerHeight = footer->GetHeight(); - height += footerHeight; -} - void cRecMenu::ClearMenuItems(bool destructor) { for (std::list<cRecMenuItem*>::iterator it = menuItems.begin(); it != menuItems.end(); it++) { if (deleteMenuItems) @@ -39,8 +39,6 @@ protected: void CreatePixmap(void); void AddHeader(cRecMenuItem *header); void AddFooter(cRecMenuItem *footer); - void SetHeader(cRecMenuItem *header); - void SetFooter(cRecMenuItem *footer); void ClearMenuItems(bool destructor = false); void InitMenu(bool complete); bool AddMenuItemInitial(cRecMenuItem *item, bool inFront = false); diff --git a/recmenuview.h b/recmenuview.h index e1a9930..bd2aba5 100644 --- a/recmenuview.h +++ b/recmenuview.h @@ -32,7 +32,7 @@ private: public: cRecMenuView(void); virtual ~cRecMenuView(void); - void SetFooter(cFooter *footer) { this->footer = footer; }; + void AddFooter(cFooter *footer) { this->footer = footer; }; bool IsActive(void) { return active; }; void Start(const cEvent *event); void StartFavorites(void); diff --git a/tvguideosd.c b/tvguideosd.c index 952a5e5..df93469 100644 --- a/tvguideosd.c +++ b/tvguideosd.c @@ -116,7 +116,7 @@ void cTvGuideOsd::drawOsd() { channelGroups = new cChannelGroups(); channelGroups->ReadChannelGroups(); footer = new cFooter(channelGroups); - recMenuView->SetFooter(footer); + recMenuView->AddFooter(footer); footer->drawRedButton(); if (config.channelJumpMode == eNumJump) { footer->drawGreenButton(); |