Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7ac4ba3b by lovetox at 2020-10-22T22:39:53+02:00
util: Convert path to string
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -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:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/7ac4ba3b147593407b009d1b1766659e5f1f94a0
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/7ac4ba3b147593407b009d1b1766659e5f1f94a0
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits