diff options
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() |