Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
7ac4ba3b
by lovetox at 2020-10-22T22:39:53+02:00
1 changed file:
Changes:
| ... | ... | @@ -729,8 +729,9 @@ def scale_with_ratio(size, width, height): |
| 729 | 729 |
def load_pixbuf(path, size=None):
|
| 730 | 730 |
try:
|
| 731 | 731 |
if size is None:
|
| 732 |
- return GdkPixbuf.Pixbuf.new_from_file(path)
|
|
| 733 |
- return GdkPixbuf.Pixbuf.new_from_file_at_scale(path, size, size, True)
|
|
| 732 |
+ return GdkPixbuf.Pixbuf.new_from_file(str(path))
|
|
| 733 |
+ return GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
|
| 734 |
+ str(path), size, size, True)
|
|
| 734 | 735 |
|
| 735 | 736 |
except GLib.GError:
|
| 736 | 737 |
try:
|