From b37468eb683bf91b363c8fcd17e7c0542937ded7 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 02 Feb 2010 14:06:59 +0000 Subject: clean up of save code; clean up of skin sizing/positioning --- (limited to 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index fece777..df03b38 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -568,7 +568,8 @@ class TurtleArtActivity(activity.Activity): # sharer should send current state to joiner if self.initiating is True: _logger.debug("serialize the project and send to joiner") - text = self.tw.save_string() + data = self.tw.assemble_data_to_save(True, True) + text = data_to_string(data) self._send_event("I:" + text) self.tw.show_palette() elif text[0] == 'I': # receiving current state @@ -1203,8 +1204,9 @@ class EditToolbar(gtk.Toolbar): def _copy_cb(self, button): clipBoard = gtk.Clipboard() _logger.debug("serialize the project and copy to clipboard") - text = tawindow.serialize_stack(self.activity.tw) - if text is not None: + data = self.activity.tw.assemble_data_to_save(False, False) + if data is not []: + text = data_to_string(data) clipBoard.set_text(text) def _paste_cb(self, button): -- cgit v0.9.1