tostring-to-tobytes.patch 988 B

123456789101112131415161718192021222324252627
  1. diff --git a/gourmet/gtk_extras/ratingWidget.py b/gourmet/gtk_extras/ratingWidget.py
  2. index 0e01735..efa6463 100644
  3. --- a/gourmet/gtk_extras/ratingWidget.py
  4. +++ b/gourmet/gtk_extras/ratingWidget.py
  5. @@ -135,7 +135,7 @@ class StarGenerator:
  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 a/gourmet/plugins/browse_recipes/icon_helpers.py b/gourmet/plugins/browse_recipes/icon_helpers.py
  15. index 61c772c..2e7b08b 100644
  16. --- a/gourmet/plugins/browse_recipes/icon_helpers.py
  17. +++ b/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,