Discussion:
how do you get the "blank" icon?
(too old to reply)
Jøhnny Fävòrítê (it means "halo, then resonate")
2004-02-24 10:40:05 UTC
Permalink
here's another one of those "let's see who's still lurking" tests ...

when tracker encounters a file whose type is unknown, it will display
the "i don't know what it is" icon for it, which looks like a metallic
document. is there a way for a beos program to get access to that icon?
i need it for occasions when an e-mail message or usenet article has an
attachment of a type that can't be found in the filetypes database.

for now i just copied the raw bitmap data into structures inside my
program, but that's hacky, and also borderline copyright infringement.
m***@xs4a11.nl
2004-02-24 18:25:10 UTC
Permalink
Post by Jøhnny Fävòrítê (it means "halo, then resonate")
here's another one of those "let's see who's still lurking" tests ...
when tracker encounters a file whose type is unknown, it will display
the "i don't know what it is" icon for it, which looks like a metallic
document. is there a way for a beos program to get access to that icon?
i need it for occasions when an e-mail message or usenet article has an
attachment of a type that can't be found in the filetypes database.
for now i just copied the raw bitmap data into structures inside my
program, but that's hacky, and also borderline copyright infringement.
Probably not the answer you were looking for, but have you checked to
see how OpenTracker gets that icon? (whether it can get that through
BMimeType for example, or if it's hardcoded in Tracker)
Mark Hellegers
2004-02-24 19:49:10 UTC
Permalink
Post by Jøhnny Fävòrítê (it means "halo, then resonate")
here's another one of those "let's see who's still lurking" tests ...
when tracker encounters a file whose type is unknown, it will display
the "i don't know what it is" icon for it, which looks like a metallic
document. is there a way for a beos program to get access to that icon?
i need it for occasions when an e-mail message or usenet article has an
attachment of a type that can't be found in the filetypes database.
for now i just copied the raw bitmap data into structures inside my
program, but that's hacky, and also borderline copyright infringement.
That's the application/octet-stream icon, which you can get at with the
BMimeType class.
I believe you can simply do this:
BMimeType generic( "application/octet-stream" );

But if that doesn't work (it's been a while), I have a little program that
extracts all the mimetypes to gif files, which uses the generic icon when some
mimetype doesn't have it's own icon.
Let me know if you want it.

Mark
Jøhnny Fävòrítê (it means "halo, then resonate")
2004-02-25 05:30:51 UTC
Permalink
Post by m***@xs4a11.nl
Probably not the answer you were looking for, but have you checked to
see how OpenTracker gets that icon? (whether it can get that through
BMimeType for example, or if it's hardcoded in Tracker)
i've solved problems by grepping through the opentracker source before,
i was just hoping there was going to be an easier way this time.
Post by m***@xs4a11.nl
That's the application/octet-stream icon, which you can get at with
the BMimeType class.
dude! so it is. now that i know it's in the filetypes database, i'm
sure i can rig up something to get a copy of it from there. thanks.
Continue reading on narkive:
Loading...