Skip to content
Snippets Groups Projects
Commit 7ac4ba3b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

util: Convert path to string

parent b749795f
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment