diff options
Diffstat (limited to 'TurtleArt/tacollaboration.py')
-rw-r--r-- | TurtleArt/tacollaboration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 8316c7a..5fac55d 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -23,7 +23,7 @@ from dbus.service import signal from dbus.gobject_service import ExportedGObject import telepathy -import gtk +from util.gtkcompat import GdkPixbuf import base64 from TurtleArt.tautils import data_to_string, data_from_string, get_path, \ @@ -290,7 +290,7 @@ class Collaboration(): else: tmp_path = '/tmp' file_name = base64_to_image(data, tmp_path) - pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(file_name, + pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(file_name, width, height) x, y = self._tw.canvas.turtle_to_screen_coordinates(x, y) self._tw.canvas.draw_pixbuf(pixbuf, a, b, x, y, w, h, |