HaikuDepot: Set default icon for all packages.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013, Stephan Aßmus <[email protected]>.
|
* Copyright 2013-2014, Stephan Aßmus <[email protected]>.
|
||||||
* Copyright 2013, Rene Gollent, [email protected].
|
* Copyright 2013, Rene Gollent, [email protected].
|
||||||
* Copyright 2013, Ingo Weinhold, [email protected].
|
* Copyright 2013, Ingo Weinhold, [email protected].
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
@@ -493,6 +493,9 @@ MainWindow::_RefreshPackageList()
|
|||||||
// system packages in order to compute the list of protected
|
// system packages in order to compute the list of protected
|
||||||
// dependencies indicated above.
|
// dependencies indicated above.
|
||||||
|
|
||||||
|
BitmapRef defaultIcon(new(std::nothrow) SharedBitmap(
|
||||||
|
"application/x-vnd.haiku-package"), true);
|
||||||
|
|
||||||
for (int32 i = 0; i < packages.CountItems(); i++) {
|
for (int32 i = 0; i < packages.CountItems(); i++) {
|
||||||
BSolverPackage* package = packages.ItemAt(i);
|
BSolverPackage* package = packages.ItemAt(i);
|
||||||
const BPackageInfo& repoPackageInfo = package->Info();
|
const BPackageInfo& repoPackageInfo = package->Info();
|
||||||
@@ -527,6 +530,7 @@ MainWindow::_RefreshPackageList()
|
|||||||
foundPackages[repoPackageInfo.Name()] = modelInfo;
|
foundPackages[repoPackageInfo.Name()] = modelInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
modelInfo->SetIcon(defaultIcon);
|
||||||
modelInfo->AddListener(this);
|
modelInfo->AddListener(this);
|
||||||
|
|
||||||
BSolverRepository* repository = package->Repository();
|
BSolverRepository* repository = package->Repository();
|
||||||
|
|||||||
Reference in New Issue
Block a user