diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-17 13:20:35 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-17 13:20:35 (GMT) |
commit | ccca798196b9eef3e08c93826f4d4f8f4f85327e (patch) | |
tree | 4448b1c482622bf84aa7205fe2efb917ba7d203d /utils.py | |
parent | 192750ecf53a180fc2dba141b4d149ce5abf9bf4 (diff) |
Add binary blobs selector
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ import time from time import strftime from sugar import util -import _camera +import camerac def getStringFromPixbuf(pixbuf): data = [""] @@ -68,7 +68,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 = _camera.cairo_surface_from_gdk_pixbuf(pixbuf) + img = camerac.cairo_surface_from_gdk_pixbuf(pixbuf) tctx.scale(scale, scale) tctx.set_source_surface(img, 0, 0) tctx.paint() |