Changeset 25477

Show
Ignore:
Timestamp:
05/12/08 15:58:20 (6 months ago)
Author:
stippi
Message:

BRoster::GetAppInfo() only works on running applications, for the replicant to
find the DeskCalc icon, we need to use BRoster::FindApp() instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/apps/deskcalc/CalcView.cpp

    r23061 r25477  
    10551055CalcView::_FetchAppIcon(BBitmap* into) 
    10561056{ 
    1057         app_info info; 
    1058         be_roster->GetAppInfo(kAppSig, &info); 
    1059         BFile file(&info.ref, B_READ_ONLY); 
     1057        entry_ref appRef; 
     1058        be_roster->FindApp(kAppSig, &appRef); 
     1059        BFile file(&appRef, B_READ_ONLY); 
    10601060        BAppFileInfo appInfo(&file); 
    1061         if (appInfo.GetIcon(into, B_MINI_ICON) < B_OK) 
     1061        if (appInfo.GetIcon(into, B_MINI_ICON) != B_OK) 
    10621062                memset(into->Bits(), 0, into->BitsLength()); 
    10631063}