From e43796ae516738d27a4abf8c77c50c12a5a5c004 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 2 Nov 2018 17:29:16 +0000 Subject: [GTK] Fix missing sidebar tracker icons The filename for tracker_icons is an absolute path so check the path before calling get_pixmap which is for relative ui/data paths. --- deluge/ui/gtk3/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/common.py b/deluge/ui/gtk3/common.py index ddb52720c..a8b2ffffb 100644 --- a/deluge/ui/gtk3/common.py +++ b/deluge/ui/gtk3/common.py @@ -69,8 +69,10 @@ icon_checking = get_pixbuf('checking16.png') def get_pixbuf_at_size(filename, size): + if not os.path.isabs(filename): + filename = get_pixmap(filename) try: - return Pixbuf.new_from_file_at_size(get_pixmap(filename), size, size) + return Pixbuf.new_from_file_at_size(filename, size, size) except GError as ex: # Failed to load the pixbuf (Bad image file), so return a blank pixbuf. log.warning(ex) -- cgit