From bd2dd7e57c8e2e9fb85db64e89c965805b6f177d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 18 Aug 2007 17:04:08 +0000 Subject: Add some more media types to the object type registry. --- (limited to 'services/shell') diff --git a/services/shell/objecttypeservice.py b/services/shell/objecttypeservice.py index 01e387d..f949375 100644 --- a/services/shell/objecttypeservice.py +++ b/services/shell/objecttypeservice.py @@ -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, -- cgit v0.9.1