From fa49f5059f50c8effce0aedb983ecf5aadcf44dc Mon Sep 17 00:00:00 2001 From: Marc Flerackers Date: Fri, 13 Dec 2002 15:10:34 +0000 Subject: [PATCH] Some fixes git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2236 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TabView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index 99080b834c..01e5d31858 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -398,8 +398,9 @@ void BTabView::AttachedToWindow() BView::AttachedToWindow(); // TODO: check if this color is set in the BeOS implementation - if (Parent()) - SetViewColor(Parent()->ViewColor ()); + //if (Parent()) + // SetViewColor(Parent()->ViewColor ()); + SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); Select(0); } @@ -521,7 +522,7 @@ void BTabView::MakeFocus(bool focused) { BView::MakeFocus(focused); - SetFocusTab(Selection(), true); + SetFocusTab(Selection(), focused); } //------------------------------------------------------------------------------ void BTabView::SetFocusTab(int32 tab, bool focused) @@ -612,7 +613,6 @@ BRect BTabView::TabFrame(int32 tab_index) const } case B_WIDTH_FROM_WIDEST: { - float x = 6.0f; float width = 0.0f; for (int32 i = 0; i < CountTabs(); i++)