Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/mime.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/mime.py')
-rw-r--r--src/sugar3/mime.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sugar3/mime.py b/src/sugar3/mime.py
index be9b5eb..b76a639 100644
--- a/src/sugar3/mime.py
+++ b/src/sugar3/mime.py
@@ -32,6 +32,7 @@ from sugar3 import _sugarbaseext
_ = lambda msg: gettext.dgettext('sugar-base', msg)
+GENERIC_TYPE_READ_TEXT = 'Read_Text'
GENERIC_TYPE_TEXT = 'Text'
GENERIC_TYPE_IMAGE = 'Image'
GENERIC_TYPE_AUDIO = 'Audio'
@@ -50,6 +51,15 @@ _extensions = {}
_globs_timestamps = []
_generic_types = [
{
+ 'id': GENERIC_TYPE_READ_TEXT,
+ 'name': _('Text'),
+ 'icon': 'text-x-generic',
+ 'types': [
+ 'application/pdf', 'image/vnd.djvu',
+ 'image/x.djvu', 'image/tiff', 'application/epub+zip',
+ 'text/plain', 'application/zip'],
+},
+{
'id': GENERIC_TYPE_TEXT,
'name': _('Text'),
'icon': 'text-x-generic',