Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
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 e9aa6cf..c98c831 100644
--- a/utils.py
+++ b/utils.py
@@ -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()