Add some more media types to the object type registry.

This commit is contained in:
Tomeu Vizoso 2007-08-18 19:04:08 +02:00
parent e0785e7aab
commit bd2dd7e57c

View File

@ -33,9 +33,12 @@ class ObjectTypeRegistry(dbus.service.Object):
self._add_primitive('Text', _('Text'), 'theme:text',
[ 'text/plain', 'text/rtf', 'application/pdf',
'application/x-pdf', 'text/html',
'application/vnd.oasis.opendocument.text' ])
'application/vnd.oasis.opendocument.text',
'application/rtf', 'text/rtf' ])
self._add_primitive('Image', _('Image'), 'theme:image',
[ 'image/png', 'image/gif', 'image/jpeg' ])
self._add_primitive('Audio', _('Audio'), 'theme:audio', [ 'audio/ogg' ])
self._add_primitive('Video', _('Video'), 'theme:video', [ 'video/ogg' ])
def _add_primitive(self, type_id, name, icon, mime_types):
object_type = {'type_id': type_id,