From e78a1b6a6ff48d00c0a4d370d65dd7df7cd8b4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 25 May 2011 17:10:27 +0000 Subject: [PATCH] * Reenabled flags via the new BLocaleRoster::GetFlagIconForLanguage() method. +alpha (also for the previous commit) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41745 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/readonlybootprompt/BootPromptWindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/apps/readonlybootprompt/BootPromptWindow.cpp b/src/apps/readonlybootprompt/BootPromptWindow.cpp index 5008177cf5..71f1473a43 100644 --- a/src/apps/readonlybootprompt/BootPromptWindow.cpp +++ b/src/apps/readonlybootprompt/BootPromptWindow.cpp @@ -63,20 +63,14 @@ public: BStringItem(label), fLanguage(language) { -// Don't use *country* flags for *languages*. Can be re-enabled and adjusted -// accordingly once we have language icons. -#if 0 fIcon = new(std::nothrow) BBitmap(BRect(0, 0, 15, 15), B_RGBA32); if (fIcon != NULL && (!fIcon->IsValid() - || BLocaleRoster::Default()->GetFlagIconForCountry(fIcon, + || BLocaleRoster::Default()->GetFlagIconForLanguage(fIcon, language) != B_OK)) { delete fIcon; fIcon = NULL; } -#else - fIcon = NULL; -#endif } ~LanguageItem() @@ -313,7 +307,7 @@ BootPromptWindow::_PopulateLanguages() // Try to instantiate a BCatalog for each language, it will only work // for translations of this application. So the list of languages will be - // limited to catalogs written for this application, which is on purpose! + // limited to catalogs written for this application, which is on purpose! const char* languageID; LanguageItem* currentItem = NULL;