diff options
Diffstat (limited to 'ground.py')
-rw-r--r-- | ground.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -33,7 +33,9 @@ def load(): class Ground: + def __init__(self, name, id): + self.name = name self.id = id self._thumb = None @@ -57,7 +59,9 @@ class Ground: class PreinstalledGround(Ground): + def __init__(self, name, filename): + Ground.__init__(self, name, filename) self._orig = theme.pixbuf(filename) @@ -66,7 +70,9 @@ class PreinstalledGround(Ground): class CustomGround(Ground): + def __init__(self, name, filename): + Ground.__init__(self, name, None) self._orig = theme.pixbuf(filename) @@ -79,14 +85,19 @@ class CustomGround(Ground): class RestoredGround(Ground): + def __init__(self, name, id, data): + Ground.__init__(self, name, id) self._orig = pixbuf.from_str(data) 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) |