Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-26 09:55:02 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-26 09:55:02 (GMT)
commit770864358ab20d94288ad95ef7f8fb4d4ea7e062 (patch)
tree4a09cc001ab6934157e13ac5e644502d735ef473 /turtleblocks.py
parent6675f1181529a6c893ee5c6f3244e73801f93f26 (diff)
resync with 194
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index d8bd71b..7e3aba4 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -71,6 +71,7 @@ class TurtleMain():
_ICON_SUBPATH = 'images/turtle.png'
_GNOME_PLUGIN_SUBPATH = 'gnome_plugins'
_HOVER_HELP = '/desktop/sugar/activities/turtleart/hoverhelp'
+ _ORIENTATION = '/desktop/sugar/activities/turtleart/orientation'
_COORDINATE_SCALE = '/desktop/sugar/activities/turtleart/coordinatescale'
def __init__(self):
@@ -240,6 +241,8 @@ return %s(self)" % (p, P, P)
self.tw.coord_scale = 1
else:
self.tw.coord_scale = 0
+ if self.client.get_int(self._ORIENTATION) == 1:
+ self.tw.orientation = 1
def _set_gconf_overrides(self):
if self.tw.coord_scale == 0:
@@ -492,6 +495,8 @@ return %s(self)" % (p, P, P)
elif resp == gtk.RESPONSE_CANCEL:
return
+ self.client.set_int(self._ORIENTATION, self.tw.orientation)
+
for plugin in self.tw.turtleart_plugins:
if hasattr(plugin, 'quit'):
plugin.quit()