Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-08-18 17:04:08 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-08-18 17:04:08 (GMT)
commitbd2dd7e57c8e2e9fb85db64e89c965805b6f177d (patch)
tree42ea86caec58a6205af8471d59a6dfdb95aa9d06 /services
parente0785e7aabd89ba21a913fc97d2c6e89352f6f14 (diff)
Add some more media types to the object type registry.
Diffstat (limited to 'services')
-rw-r--r--services/shell/objecttypeservice.py5
1 files changed, 4 insertions, 1 deletions
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,