Ticket #1391: Ticket 1391 - Volume Mount Icons.diff

File Ticket 1391 - Volume Mount Icons.diff, 882 bytes (added by anxiety, 16 years ago)

Mostly implimented already but commented out.

  • src/kits/storage/disk_device/Partition.cpp

     
    384384status_t
    385385BPartition::GetIcon(BBitmap* icon, icon_size which) const
    386386{
    387 /*
    388387    status_t error = (icon ? B_OK : B_BAD_VALUE);
    389388    if (error == B_OK) {
    390389        if (IsMounted()) {
     
    396395        } else {
    397396            // not mounted: retrieve the icon ourselves
    398397            if (BDiskDevice* device = Device()) {
     398                BPath path;
     399                error = device->GetPath(&path);
    399400                // get the icon
    400401                if (error == B_OK)
    401                     error = get_device_icon(device->Path(), icon, which);
     402                    error = get_device_icon(path.Path(), icon, which);
    402403            } else
    403404                error = B_ERROR;
    404405        }
    405406    }
    406407    return error;
    407 */
    408     // not implemented
    409     return B_ERROR;
    410408}
    411409
    412410