Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-26 14:50:08 (GMT)
committer Ignacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-26 14:50:08 (GMT)
commitdb0d08685410d174d7eab0fb875a8807f6cd01db (patch)
tree64794fdc1af45ee5ea111f1556b1ff96dea1a8b3 /utils.py
parent704742313a2c5a60e34510fca8d410c6384409b7 (diff)
Port finish, But I Need Summary!
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 285e6a7..766ed2d 100644
--- a/utils.py
+++ b/utils.py
@@ -1,4 +1,5 @@
#Copyright (c) 2011 Walter Bender
+#Copyright (c) 2012 Ignacio Rodriguez
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -10,7 +11,7 @@
# Foundation, 51 Franklin Street, Suite 500 Boston, MA 02110-1335 USA
import os
-import gtk
+from gi.repository import GdkPixbuf
import subprocess
from StringIO import StringIO
try:
@@ -134,6 +135,6 @@ def base64_to_pixbuf(activity, data, width=55, height=55):
''' Convert base64-encoded data to a pixbuf '''
png_file = os.path.join(get_path(activity, 'instance'), 'imagetmp.png')
base64_to_file(activity, data, png_file)
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(png_file, width, height)
+ pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(png_file, width, height)
os.remove(png_file)
return pixbuf