| 1 | diff --git gourmet/gtk_extras/ratingWidget.py gourmet/gtk_extras/ratingWidget.py |
| 2 | index 0e01735..efa6463 100644 |
| 3 | --- gourmet/gtk_extras/ratingWidget.py |
| 4 | +++ gourmet/gtk_extras/ratingWidget.py |
| 5 | @@ -135,7 +135,7 @@ def get_pixbuf_from_image (self, image, make_white_opaque=True): |
| 6 | if is_rgba: rowstride = 4 |
| 7 | else: rowstride = 3 |
| 8 | pb=gtk.gdk.pixbuf_new_from_data( |
| 9 | - image.tostring(), |
| 10 | + image.tobytes(), |
| 11 | gtk.gdk.COLORSPACE_RGB, |
| 12 | is_rgba, |
| 13 | 8, |
| 14 | diff --git gourmet/plugins/browse_recipes/icon_helpers.py gourmet/plugins/browse_recipes/icon_helpers.py |
| 15 | index 61c772c..2e7b08b 100644 |
| 16 | --- gourmet/plugins/browse_recipes/icon_helpers.py |
| 17 | +++ gourmet/plugins/browse_recipes/icon_helpers.py |
| 18 | @@ -38,7 +38,7 @@ def get_pixbuf_from_image (image): |
| 19 | if is_rgba: rowstride = 4 |
| 20 | else: rowstride = 3 |
| 21 | pb=gtk.gdk.pixbuf_new_from_data( |
| 22 | - image.tostring(), |
| 23 | + image.tobytes(), |
| 24 | gtk.gdk.COLORSPACE_RGB, |
| 25 | is_rgba, |
| 26 | 8, |