From 303269dc2280ca25750b877cfc9947476aa26d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 Aug 2010 12:07:32 +0000 Subject: [PATCH] * Hide the "GCC 2 Hybrid" string since this is the default - only deviations from the default are shown now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38367 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/aboutsystem/AboutSystem.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/apps/aboutsystem/AboutSystem.cpp b/src/apps/aboutsystem/AboutSystem.cpp index b8438251f2..b3ba59de93 100644 --- a/src/apps/aboutsystem/AboutSystem.cpp +++ b/src/apps/aboutsystem/AboutSystem.cpp @@ -512,16 +512,25 @@ AboutView::AboutView() // GCC version BEntry gccFourHybrid("/boot/system/lib/gcc2/libstdc++.r4.so"); BEntry gccTwoHybrid("/boot/system/lib/gcc4/libsupc++.so"); - if (gccFourHybrid.Exists() || gccTwoHybrid.Exists()) + bool isHybrid = gccFourHybrid.Exists() || gccTwoHybrid.Exists(); + + if (isHybrid) { snprintf(string, sizeof(string), B_TRANSLATE("GCC %d Hybrid"), __GNUC__); - else + } else snprintf(string, sizeof(string), "GCC %d", __GNUC__); BStringView* gccView = new BStringView("gcctext", string); gccView->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_VERTICAL_UNSET)); +#if __GNUC__ == 2 + if (isHybrid) { + // do now show the GCC version if it's the default + gccView->Hide(); + } +#endif + // CPU count, type and clock speed char processorLabel[256]; if (systemInfo.cpu_count > 1) {