Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Theme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Theme.py')
-rw-r--r--Theme.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Theme.py b/Theme.py
index 8329bb6..343adfb 100644
--- a/Theme.py
+++ b/Theme.py
@@ -96,11 +96,13 @@ def pixbuf(file, size = None):
out = gtk.gdk.pixbuf_new_from_file(path(file))
return out
-EMPTY_PIXBUF = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, 1, 1)
-
def scale(pixbuf, size = THUMB_SIZE):
return pixbuf.scale_simple(size, size, gtk.gdk.INTERP_BILINEAR)
+EMPTY_FILENAME = 'images/pics/empty.png'
+EMPTY_ORIG = pixbuf(EMPTY_FILENAME)
+EMPTY_THUMB = scale(EMPTY_ORIG)
+
def choose(out_fun):
from sugar.graphics.objectchooser import ObjectChooser