diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2010-04-03 21:59:04 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2010-04-03 21:59:04 (GMT) |
commit | 9a77b10363f14231b39a9a7e0893f9e8921aae3b (patch) | |
tree | 9232faf638f4c2ca945cbaa1de3ab5e25cf8f0ab /utils.py | |
parent | 55c3a14a63c3a659b2e01d3a657aff0226fe8130 (diff) |
Use hippo.cairo_surface_from_gdk_pixbuf instead of bundling blobs
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,9 +8,9 @@ import gc import gtk import time from time import strftime +import hippo from sugar import util -import camerac def getStringFromPixbuf(pixbuf): data = [""] @@ -58,7 +58,7 @@ def generateThumbnail( pixbuf, scale, thumbw, thumbh ): #need to generate thumbnail version here thumbImg = cairo.ImageSurface(cairo.FORMAT_ARGB32, thumbw, thumbh) tctx = cairo.Context(thumbImg) - img = camerac.cairo_surface_from_gdk_pixbuf(pixbuf) + img = hippo.cairo_surface_from_gdk_pixbuf(pixbuf) tctx.scale(scale, scale) tctx.set_source_surface(img, 0, 0) tctx.paint() |