Remove last usage of hardcoded k_app_mini old BeOS generic app icon.
That should gracefully close #7219. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42706 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e53d637520
commit
2bd5013756
@ -23,6 +23,7 @@
|
||||
|
||||
#include <Bitmap.h>
|
||||
#include <Entry.h>
|
||||
#include <MimeType.h>
|
||||
#include <NodeInfo.h>
|
||||
#include <Roster.h>
|
||||
|
||||
@ -45,8 +46,10 @@ AutoIcon::Bitmap()
|
||||
if (fSignature) {
|
||||
entry_ref ref;
|
||||
be_roster->FindApp (fSignature, &ref);
|
||||
if (BNodeInfo::GetTrackerIcon(&ref, fBitmap, B_MINI_ICON) != B_OK)
|
||||
fBitmap->SetBits(k_app_mini, 256, 0, B_CMAP8);
|
||||
if (BNodeInfo::GetTrackerIcon(&ref, fBitmap, B_MINI_ICON) != B_OK) {
|
||||
BMimeType genericAppType(B_APP_MIME_TYPE);
|
||||
genericAppType.GetIcon(fBitmap, B_MINI_ICON);
|
||||
}
|
||||
}
|
||||
|
||||
if (fbits)
|
||||
|
@ -35,7 +35,6 @@ extern const char* kVersionName;
|
||||
extern const int kCurrentVersion;
|
||||
|
||||
|
||||
extern const uchar k_app_mini[];
|
||||
extern const char* kProgramName;
|
||||
extern const char* kPCSemaphoreName;
|
||||
|
||||
|
@ -44,6 +44,5 @@ void move_to_deskbar(BDeskbar& deskbar);
|
||||
void make_window_visible(BWindow* window, bool mayResize = false);
|
||||
|
||||
extern const uchar k_cpu_mini[];
|
||||
extern const uchar k_app_mini[];
|
||||
|
||||
#endif // UTILITIES_H
|
||||
|
@ -17,17 +17,6 @@
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
const uchar k_app_mini[] = {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
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ff,0x0,0x0,0x0,0x0,0x11,
|
||||
0x11,0xff,0x0,0x0,0x0,0x0,0x11,0x11};
|
||||
|
||||
const uchar k_cpu_mini[] = {
|
||||
0xFF, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0x0B, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0xFF, 0xFF,
|
||||
|
Loading…
x
Reference in New Issue
Block a user