Use GetTrackerIcon() in case getting the specific app icon fails, instead of using the (outdated) icon in the resource. Fixes bug #984. Thanks to Stephan for the hint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -624,12 +624,8 @@ TBarApp::AddTeam(team_id team, uint32 flags, const char *sig, entry_ref *ref)
|
|||||||
new BBitmap(kIconSize, kIconFormat), strdup(ref->name));
|
new BBitmap(kIconSize, kIconFormat), strdup(ref->name));
|
||||||
|
|
||||||
barInfo->teams->AddItem((void *)team);
|
barInfo->teams->AddItem((void *)team);
|
||||||
if (appMime.GetIcon(barInfo->icon, B_MINI_ICON) != B_OK) {
|
if (appMime.GetIcon(barInfo->icon, B_MINI_ICON) != B_OK)
|
||||||
const BBitmap* generic = AppResSet()->FindBitmap(B_MESSAGE_TYPE, R_GenericAppIcon);
|
appMime.GetTrackerIcon(barInfo->icon, B_MINI_ICON);
|
||||||
if (generic)
|
|
||||||
barInfo->icon->SetBits(generic->Bits(), barInfo->icon->BitsLength(),
|
|
||||||
0, generic->ColorSpace());
|
|
||||||
}
|
|
||||||
|
|
||||||
sBarTeamInfoList.AddItem(barInfo);
|
sBarTeamInfoList.AddItem(barInfo);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user