summaryrefslogtreecommitdiffstats
path: root/misc/gourmet/tostring-to-tobytes.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-07-20 14:17:55 +0200
committer Matteo Bernardini2019-07-20 14:17:55 +0200
commit1df1fe40b1b2b3271b05c6fef7a4ab57d58665d4 (patch)
treee2939b3e679d8656c1fc7a85e17fc5e63cd18575 /misc/gourmet/tostring-to-tobytes.patch
parent558a2bcdcff72fc39350cf4a3455e11b0f034d02 (diff)
downloadslackbuilds-1df1fe40b1b2b3271b05c6fef7a4ab57d58665d4.tar.gz
20190720.1 global branch merge.current-20190720.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/gourmet/tostring-to-tobytes.patch')
-rw-r--r--misc/gourmet/tostring-to-tobytes.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/gourmet/tostring-to-tobytes.patch b/misc/gourmet/tostring-to-tobytes.patch
new file mode 100644
index 0000000000..e42c59403d
--- /dev/null
+++ b/misc/gourmet/tostring-to-tobytes.patch
@@ -0,0 +1,26 @@
+diff --git a/gourmet/gtk_extras/ratingWidget.py b/gourmet/gtk_extras/ratingWidget.py
+index 0e01735..efa6463 100644
+--- a/gourmet/gtk_extras/ratingWidget.py
++++ b/gourmet/gtk_extras/ratingWidget.py
+@@ -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 --git a/gourmet/plugins/browse_recipes/icon_helpers.py b/gourmet/plugins/browse_recipes/icon_helpers.py
+index 61c772c..2e7b08b 100644
+--- a/gourmet/plugins/browse_recipes/icon_helpers.py
++++ b/gourmet/plugins/browse_recipes/icon_helpers.py
+@@ -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,