/[ascend]/trunk/pygtk/canvas/blocktype.py
ViewVC logotype

Diff of /trunk/pygtk/canvas/blocktype.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1945 by jpye, Thu Nov 6 08:54:02 2008 UTC revision 1954 by jpye, Tue Nov 11 10:01:18 2008 UTC
# Line 38  class BlockType: Line 38  class BlockType:
38      def get_icon(self, width, height):      def get_icon(self, width, height):
39          return gtk.gdk.pixbuf_new_from_file_at_size("defaultblock.svg",width,height)          return gtk.gdk.pixbuf_new_from_file_at_size("defaultblock.svg",width,height)
40    
41        def __getstate__(self):
42            print "GET STATE ON BLOCKTYPE %s" % self.type.getName()
43            return (str(self.type.getName()),)
44    
45        def __setstate__(self, state):
46            print "SET STATE ON BLOCKTYPE"
47            (typename,) = state
48            print "Recreating type '%s'" % typename
49            self.type = None
50            self.notesdb = None

Legend:
Removed from v.1945  
changed lines
  Added in v.1954

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22