[haiku-development] Icon for multiple supported types?

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: Haiku Development <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 1 Aug 2015 21:09:59 -0700

Hi,

Still working away on Sequitur... It has a nice [non-vector, sorry]
icon for its supported 'audio/x-midi' mimetype, if Sequitur is the
preferred application. However, the 'x-midi' version is sort of obsolete
now, I think; Haiku seems to prefer 'audio/midi' pretty much].

To avoid back-compatibilty problems, I'd like it to show the icon
for both mimetypes (it supports them both. now). Is there any way
to specify this in an rdef, without just duplicating the data?

Currently it has this sort of thing:

resource(0, "BEOS:L:audio/x-midi") #'ICON' array {
...........
}

(And similarly for 'MICN')

Is it possible to put two (or more) mimetype tags on one array?

For now, I've just duplicated the data, as it adds a whole 1.3K
to the 400+K rsrc file(!), but it would be more elegant to
combine them.

Thanks,

-- Pete --


Other related posts:

  • » [haiku-development] Icon for multiple supported types? - Pete Goodeve