Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activity.py4
-rwxr-xr-xactivity/activity.info1
-rw-r--r--activity/application-x-physics-project.svg18
3 files changed, 23 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 0a8eead..eafb155 100644
--- a/activity.py
+++ b/activity.py
@@ -11,6 +11,10 @@ class PhysicsActivity(olpcgames.PyGameActivity):
game_name = 'physics'
game_title = _('Physics')
game_size = None # olpcgame will choose size
+
+ def __init__(self, handle):
+ super(PhysicsActivity, self).__init__(handle)
+ self.metadata['mime_type'] = 'application/x-physics-activity'
# setup the toolbar
def build_toolbar(self):
diff --git a/activity/activity.info b/activity/activity.info
index c745a6c..f28a49f 100755
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -5,3 +5,4 @@ class = activity.PhysicsActivity
icon = activity-physics
activity_version = 2
show_launcher = yes
+mime_types = application/x-physics-activity; \ No newline at end of file
diff --git a/activity/application-x-physics-project.svg b/activity/application-x-physics-project.svg
new file mode 100644
index 0000000..4710321
--- /dev/null
+++ b/activity/application-x-physics-project.svg
@@ -0,0 +1,18 @@
+<?xml version="1.0" ?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY stroke_color "#010101">
+ <!ENTITY fill_color "#FFFFFF">
+]>
+<svg enable-background="new 0 0 55 55" height="55px" version="1.1" viewBox="0 0 55 55" width="55px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g display="block" id="clipping-text">
+ <g display="inline">
+ <g>
+ <polygon fill="&fill_color;" points="10.932,6.088 31.874,6.088 43.818,18.027 43.818,48.914 10.932,48.914" stroke="&stroke_color;" stroke-width="3.5"/>
+ <polyline fill="none" points="43.818,18.027 31.874,18.027 31.874,6.088" stroke="&stroke_color;" stroke-width="3.5"/>
+
+ <circle cx="20.5" cy="28.75" r="5" fill="&fill_color;" stroke="&stroke_color;" stroke-width="1.75"/>
+ <path d="M 28.5 23.5 l 9 -1.25 l 1.25 9 l -9 1.25 z" fill="&fill_color;" stroke="&stroke_color;" stroke-width="1.75"/>
+ <path d="M 21.5 44.5 l 6 -7 l 6 7 z" fill="&fill_color;" stroke="&stroke_color;" stroke-width="1.5"/>
+ <path d="M 15.5 35 l 23.5 -3 l .5 2.75 l -23.5 3 z" fill="&fill_color;" stroke="&stroke_color;" stroke-width="1.5"/>
+ </g>
+ </g>
+</g></svg> \ No newline at end of file