Author: czeidler Date: 2010-09-23 02:04:50 +0200 (Thu, 23 Sep 2010) New Revision: 38791 Changeset: http://dev.haiku-os.org/changeset/38791 Modified: haiku/trunk/src/tests/libs/alm/Areas.cpp haiku/trunk/src/tests/libs/alm/Pinwheel.cpp Log: Adjust the test apps. Modified: haiku/trunk/src/tests/libs/alm/Areas.cpp =================================================================== --- haiku/trunk/src/tests/libs/alm/Areas.cpp 2010-09-23 00:04:08 UTC (rev 38790) +++ haiku/trunk/src/tests/libs/alm/Areas.cpp 2010-09-23 00:04:50 UTC (rev 38791) @@ -38,19 +38,18 @@ a1->SetRightInset(10); layout->AddArea(layout->Left(), y1, layout->Right(), y2, button2); - button2->SetExplicitAlignment( - BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP)); + button2->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP)); Area* a3 = layout->AddArea(layout->Left(), y2, layout->Right(), y3, button3); - button3->SetExplicitAlignment( - BAlignment(B_ALIGN_HORIZONTAL_CENTER, B_ALIGN_VERTICAL_CENTER)); - a3->HasSameHeightAs(a1); + button3->SetExplicitAlignment(BAlignment(B_ALIGN_HORIZONTAL_CENTER, + B_ALIGN_VERTICAL_CENTER)); + a3->SetHeightAs(a1); layout->AddArea(layout->Left(), y3, layout->Right(), layout->Bottom(), button4); - button4->SetExplicitAlignment( - BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM)); + button4->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, + B_ALIGN_BOTTOM)); } private: Modified: haiku/trunk/src/tests/libs/alm/Pinwheel.cpp =================================================================== --- haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-09-23 00:04:08 UTC (rev 38790) +++ haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-09-23 00:04:50 UTC (rev 38791) @@ -55,7 +55,8 @@ layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), button4); layout->AddArea(x1, y1, x2, y2, textView1); - a1->HasSameSizeAs(a3); + a1->SetWidthAs(a3); + a1->SetHeightAs(a3); } private: