Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-11-08 20:05:07 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-11-08 20:05:07 (GMT)
commitb5b37549ff391bb9afe7eb34935c8ccab7d3e314 (patch)
tree942a5f7c0543f9c89bef66d798d5577d11506a62 /TurtleArtActivity.py
parent24ffc688aa24ed4dec4906e0889d5a42dce1f96f (diff)
change scope of init_complete to activity parent
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index af3acc9..0e6880a 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -79,6 +79,8 @@ class TurtleArtActivity(activity.Activity):
_logger.error(str(e))
self.tw = None
+ self.init_complete = False
+
self._check_ver_change(get_path(activity, 'data'))
self.connect("notify::active", self._notify_active_cb)
@@ -111,6 +113,7 @@ class TurtleArtActivity(activity.Activity):
self.metadata['activity count'] = str(count)
self._defer_palette_move = False
+ self.init_complete = True
# Activity toolbar callbacks
def do_save_as_logo_cb(self, button):
@@ -1005,7 +1008,7 @@ Plugin section of plugin.info file.')
create_palette.append(False)
_logger.debug('Initializing plugin...')
self.tw.init_plugin(plugin_name)
- self.tw._plugins[-1].setup()
+ self.tw.turtleart_plugins[-1].setup()
self.tw.load_media_shapes()
for i, palette_name in enumerate(palette_name_list):
if create_palette[i]: