From da1df8da094da605786faeb2fa6d7ba5ab6b4928 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Mon, 09 Feb 2009 10:23:32 +0000 Subject: Add collab code --- (limited to 'ground.py') diff --git a/ground.py b/ground.py index 4aef242..1f97514 100644 --- a/ground.py +++ b/ground.py @@ -22,7 +22,7 @@ def load(): from document import Document if Document.ground and Document.ground.custom(): - THEMES.insert(-1, Document.ground) + THEMES.append(Document.ground) class Ground: def __init__(self, name, id): @@ -33,7 +33,7 @@ class Ground: def custom(self): return True - def read(self): + def serialize(self): return theme.pixbuf2str(self._orig) def thumb(self): @@ -75,6 +75,7 @@ class JournalGround(Ground): def __init__(self, jobject): Ground.__init__(self, jobject.metadata['title'], jobject.object_id) self._orig = theme.pixbuf(jobject.file_path) + THEMES.append(self) THEMES = [ PreinstalledGround(_('Saturn'), 'images/backpics/bigbg01.gif'), -- cgit v0.9.1