From 36a83b428188188f5f583aee23351ceed83f43d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 4 Jul 2003 17:12:19 +0000 Subject: [PATCH] Handle correctly the 3d bar look now git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3839 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/media/MediaWindow.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/prefs/media/MediaWindow.cpp b/src/prefs/media/MediaWindow.cpp index a91abb1f1c..9ba64992a9 100644 --- a/src/prefs/media/MediaWindow.cpp +++ b/src/prefs/media/MediaWindow.cpp @@ -494,14 +494,7 @@ MediaWindow::MessageReceived (BMessage *message) mContentView->RemoveChild(mContentView->ChildAt(0)); mTitleView->SetText(item->GetLabel()); - //if(item->OutlineLevel() == 0 || item->IsAudioMixer()) { - // Display the 3D Look Divider Bar - if(mBar->IsHidden()) - mBar->Show(); - //} else - // if(!mBar->IsHidden()) - // mBar->Hide(); - + if(item->OutlineLevel() == 0) { if(item->IsVideo()) mContentView->AddChild(mVideoView); @@ -525,6 +518,7 @@ MediaWindow::MessageReceived (BMessage *message) BView* paramView = theme->ViewFor(mParamWeb); mContentView->AddChild(paramView); paramView->ResizeTo(mContentView->Bounds().Width(), mContentView->Bounds().Height()); + } else { mParamWeb = NULL; BRect bounds = mContentView->Bounds(); @@ -534,11 +528,16 @@ MediaWindow::MessageReceived (BMessage *message) mContentView->AddChild(stringView); stringView->MoveBy((bounds.Width()-stringView->Bounds().Width())/2, (bounds.Height()-stringView->Bounds().Height())/2); - if(mBar->IsHidden()) - mBar->Show(); } } - + + if(item->OutlineLevel() == 0 || mParamWeb == NULL || mParamWeb->CountGroups()<2) { + // Display the 3D Look Divider Bar + if(mBar->IsHidden()) + mBar->Show(); + } else if(!mBar->IsHidden()) + mBar->Hide(); + } break; default: