From ffdac950f685f7517d8fd2eb8d2c46f87ce590a3 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 4 Nov 2007 22:22:38 +0000 Subject: [PATCH] *** empty log message *** --- videowin.cc | 1 - wtabbar.cc | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/videowin.cc b/videowin.cc index 0d69fcd..0115fa5 100644 --- a/videowin.cc +++ b/videowin.cc @@ -25,7 +25,6 @@ #include "vdr.h" #include "osdwin.h" #include "audiowin.h" -#include "vtabsviewman.h" #include "wwinvideofilter.h" #include "wtabbar.h" #include "i18n.h" diff --git a/wtabbar.cc b/wtabbar.cc index 2a1b06b..b318287 100644 --- a/wtabbar.cc +++ b/wtabbar.cc @@ -35,7 +35,7 @@ WTabBar::WTabBar() symbolLeft.nextSymbol = WSymbol::LEFTARROW; add(&symbolLeft); - symbolRight.setPosition(getWidth() - 28, 4); + symbolRight.setPosition(0, 4); // will be reset in addtab symbolRight.nextColour = Colour::BUTTONBACKGROUND; symbolRight.nextSymbol = WSymbol::RIGHTARROW; add(&symbolRight); @@ -90,6 +90,10 @@ void WTabBar::addTab(const char* name, Boxx* boxx) boxx->setVisible(false); symbolRight.nextColour = Colour::SELECTHIGHLIGHT; // if this is the 2nd+ tab, ensure right arrow goes active } + + // WTabbar doesn't know its width during the constructor + // So this is moved to here for now + symbolRight.setPosition(getWidth() - 28, 4); } int WTabBar::handleCommand(int command) -- 2.39.2