Commit 7ac4ba3b authored by Philipp Hörist's avatar Philipp Hörist

util: Convert path to string

parent b749795f
Pipeline #6636 passed with stages
in 3 minutes and 18 seconds
......@@ -729,8 +729,9 @@ def scale_with_ratio(size, width, height):
def load_pixbuf(path, size=None):
try:
if size is None:
return GdkPixbuf.Pixbuf.new_from_file(path)
return GdkPixbuf.Pixbuf.new_from_file_at_scale(path, size, size, True)
return GdkPixbuf.Pixbuf.new_from_file(str(path))
return GdkPixbuf.Pixbuf.new_from_file_at_scale(
str(path), size, size, True)
except GLib.GError:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment