From: Chris Tallon Date: Sun, 4 Nov 2007 22:22:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: r0-2-7~6 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=ffdac950f685f7517d8fd2eb8d2c46f87ce590a3;p=vompclient.git *** empty log message *** --- 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)