Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorAleksey 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)
commitccca798196b9eef3e08c93826f4d4f8f4f85327e (patch)
tree4448b1c482622bf84aa7205fe2efb917ba7d203d /utils.py
parent192750ecf53a180fc2dba141b4d149ce5abf9bf4 (diff)
Add binary blobs selector
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 7244ab0..d91633c 100644
--- a/utils.py
+++ b/utils.py
@@ -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()