From 2c3476d3b7c207acb3f1f622287cb878e2709924 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sun, 16 Aug 2009 05:31:27 +0000 Subject: [PATCH] Further optimization in the construction time of the Preference Panel (ticket #4245). Indentation fix. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32435 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/AppearPrefView.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/apps/terminal/AppearPrefView.cpp b/src/apps/terminal/AppearPrefView.cpp index fefc12aa82..3426f0937a 100644 --- a/src/apps/terminal/AppearPrefView.cpp +++ b/src/apps/terminal/AppearPrefView.cpp @@ -81,7 +81,6 @@ AppearancePrefView::AppearancePrefView(BRect frame, const char *name, }; float greenDividerSize = StringWidth("Green:") + 8.0; - float colorDividerSize = StringWidth("Color:") + 8.0; BRect r(5, 5, 261, 25); @@ -108,13 +107,13 @@ AppearancePrefView::AppearancePrefView(BRect frame, const char *name, fColorField->SetAlignment(B_ALIGN_RIGHT); AddChild(fColorField); - fColorControl = SetupColorControl(BPoint(r.left, r.bottom + 10), - B_CELLS_32x8, 8.0, MSG_COLOR_CHANGED); - fColorControl->SetValue(PrefHandler::Default()->getRGB(PREF_TEXT_FORE_COLOR)); + fColorControl = SetupColorControl(BPoint(r.left, r.bottom + 10), + B_CELLS_32x8, 8.0, MSG_COLOR_CHANGED); + fColorControl->SetValue(PrefHandler::Default()->getRGB(PREF_TEXT_FORE_COLOR)); - BTextControl* redInput = (BTextControl*)fColorControl->FindView("_red"); - BTextControl* greenInput = (BTextControl*)fColorControl->FindView("_green"); - BTextControl* blueInput = (BTextControl*)fColorControl->FindView("_blue"); + BTextControl* redInput = (BTextControl*)fColorControl->ChildAt(0); + BTextControl* greenInput = (BTextControl*)fColorControl->ChildAt(1); + BTextControl* blueInput = (BTextControl*)fColorControl->ChildAt(2); redInput->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT); greenInput->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);