Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > ce503ce6ab256547344517f97106c45f > files > 2

gourmet-0.17.4-8.1.mga7.src.rpm

diff -Nrup a/gourmet/gtk_extras/ratingWidget.py b/gourmet/gtk_extras/ratingWidget.py
--- a/gourmet/gtk_extras/ratingWidget.py	2014-06-02 18:55:26.000000000 +0200
+++ b/gourmet/gtk_extras/ratingWidget.py	2019-07-27 16:37:18.658156433 +0200
@@ -135,7 +135,7 @@ class StarGenerator:
         if is_rgba: rowstride = 4
         else: rowstride = 3
         pb=gtk.gdk.pixbuf_new_from_data(
-            image.tostring(),
+            image.tobytes(),
             gtk.gdk.COLORSPACE_RGB,
             is_rgba,
             8,
diff -Nrup a/gourmet/plugins/browse_recipes/icon_helpers.py b/gourmet/plugins/browse_recipes/icon_helpers.py
--- a/gourmet/plugins/browse_recipes/icon_helpers.py	2014-06-02 18:55:26.000000000 +0200
+++ b/gourmet/plugins/browse_recipes/icon_helpers.py	2019-07-27 16:35:44.033343131 +0200
@@ -38,7 +38,7 @@ def get_pixbuf_from_image (image):
     if is_rgba: rowstride = 4
     else: rowstride = 3
     pb=gtk.gdk.pixbuf_new_from_data(
-        image.tostring(),
+        image.tobytes(),
         gtk.gdk.COLORSPACE_RGB,
         is_rgba,
         8,