diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-08-18 19:59:39 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-08-18 19:59:39 (GMT) |
commit | 1fa0ee3cfc1b6a6d81f63a0920d9ffb69fc55cb2 (patch) | |
tree | 6ffc1efa6fdf8925f440ebc3f6e5d0594995d7d0 | |
parent | ffce098632d16364fa098d295d8b5eccc99ce860 (diff) |
PixbufLoader bug fixed
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ def base64_to_pixbuf(activity, data, width=300, height=225): def get_pixbuf_from_journal(dsobject, w, h): """ Load a pixbuf from a Journal object. """ pixbufloader = \ - GdkPixbuf.Pixbuf.loader_new_with_mime_type('image/png') + GdkPixbuf.PixbufLoader.new_with_mime_type('image/png') pixbufloader.set_size(min(300, int(w)), min(225, int(h))) try: pixbufloader.write(dsobject.metadata['preview']) |