Opened 17 years ago
Closed 17 years ago
#2200 closed bug (invalid)
BMimeType::GetIcon() can't get vector icon
Reported by: | shinta | Owned by: | stippi |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Storage Kit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86 |
Attachments (1)
Change History (6)
comment:1 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
Sorry! It was my misunderstanding! BMimeType::GetIcon() works well.
By the way, why doesn't database_access.cpp's get_icon() use BIconUtils::GetIcon() such as the attached file? Sorry, I couldn't test the code because "jam -q" in src/kits/storage didn't work.
by , 17 years ago
Attachment: | database_access.diff added |
---|
comment:3 by , 17 years ago
A mime database entry may specify several icons. Especially application entries may specify the icon of the application, plus one or more icons for associated files. Your code would only retrieve the application icon, since it ignores the "const char* fileType" parameter. As far as I am aware, every code that deals with icons, uses BIconUtils sooner or later.
comment:5 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
No problem at all! I am closing this as invalid then. I hope this conclusion is correct. Please just reopen if I misunderstood and there is a problem still left.
I'm afraid you will need to get more specific. If BMimeType::GetIcon() was generally broken, most icons in Tracker would not be visible. Particularily, BMimeType::GetIcon() is based on BNode like BNodeInfo. Please describe your particular situation in more detail. Thanks!