From 1a8a0bef93a4ed4942a9e73f15db4e615dd94670 Mon Sep 17 00:00:00 2001 From: loloof64 Date: Sat, 04 Jun 2011 07:35:42 +0000 Subject: Added Graph MIME type management --- 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 diff --git a/NEWS b/NEWS index 8b4342b..8e5fe23 100644 --- a/NEWS +++ b/NEWS @@ -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 @@ + + + + Learning writing symbol graph + + + -- cgit v0.9.1