[Haiku-bugs] [Haiku] #984: Generic application icon in deskbar is old style 8 bit
jackburton
trac at haiku-os.org
Wed Sep 17 15:35:10 CEST 2008
#984: Generic application icon in deskbar is old style 8 bit
-----------------------------------+----------------------------------------
Reporter: jackburton | Owner: stippi
Type: bug | Status: new
Priority: low | Milestone: R1
Component: Applications/Deskbar | Version: R1 development
Resolution: | Blockedby:
Platform: All | Blocking:
-----------------------------------+----------------------------------------
Comment(by jackburton):
Seems the old style icon is only used when there is no icon for the
application.
This is caused by the following lines in BarApp.cpp:
<pre>
if (appMime.GetIcon(barInfo->icon, B_MINI_ICON) != B_OK) {
const BBitmap* generic =
AppResSet()->FindBitmap(B_MESSAGE_TYPE, R_GenericAppIcon);
if (generic)
barInfo->icon->SetBits(generic->Bits(),
barInfo->icon->BitsLength(),
0, generic->ColorSpace());
}
</pre>
Basically if getting the icon for the application fails, it uses an icon
stored in its resources.
--
Ticket URL: <http://dev.haiku-os.org/ticket/984#comment:3>
Haiku <http://dev.haiku-os.org>
The Haiku operating system.
More information about the Haiku-bugs
mailing list