diff options
author | loloof64 <laurent.bernabe@gmail.com> | 2011-06-04 07:35:42 (GMT) |
---|---|---|
committer | loloof64 <laurent.bernabe@gmail.com> | 2011-06-04 07:35:42 (GMT) |
commit | 1a8a0bef93a4ed4942a9e73f15db4e615dd94670 (patch) | |
tree | 54486a352dd9d6b1cdfcb00b7dbd668fea7ad090 | |
parent | a860d0cde813a74e30802ecb547f2bca3337c9e8 (diff) |
Added Graph MIME type management
-rwxr-xr-x | Launcher.py | 1 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | activity/activity.info | 2 | ||||
-rw-r--r-- | activity/mimetypes.xml | 7 |
4 files changed, 12 insertions, 2 deletions
diff --git a/Launcher.py b/Launcher.py index 74bd54d..525b01b 100755 --- a/Launcher.py +++ b/Launcher.py @@ -112,6 +112,7 @@ class Launcher(activity.Activity): ''' Manages sugar activity journal entry updating ''' + self.metadata['mime_type'] = 'application/x-graph' saves_text_file = open(file_path, 'w') self.__wrapped_drawing_area.saveFiguresInTextFile(saves_text_file) saves_text_file.close()
\ No newline at end of file @@ -2,5 +2,7 @@ version 1: * we can draw some figures * we can choose line size before starting the drawing * then we can read the figure - * we can choose reading speed (intervals between parts drawings) + * we can choose reading speed (intervals between parts drawings + * there is integration with the journal + * saving to a *.gph file diff --git a/activity/activity.info b/activity/activity.info index c45895e..977921f 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -5,6 +5,6 @@ service_name = com.gmail.bernabe.laurent.sugar_olpc.learning_writing exec = sugar-activity Launcher.Launcher icon = activity-icon activity_version = 1 -mime_types = text/plain +mime_types = application/x-graph; application/zip; show_launcher = yes license = GPLv2+ diff --git a/activity/mimetypes.xml b/activity/mimetypes.xml new file mode 100644 index 0000000..ed12169 --- /dev/null +++ b/activity/mimetypes.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="application/x-graph"> + <comment>Learning writing symbol graph</comment> + <glob pattern="*.gph"/> + </mime-type> +</mime-info> |