summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-11-02 17:29:16 +0000
committerCalum Lind <calumlind@gmail.com>2018-11-05 08:26:23 +0000
commite43796ae516738d27a4abf8c77c50c12a5a5c004 (patch)
treea884e212043dbccd6bd42a1ea2d20217a704ecb9
parent6655fe67c3728833e92152b216da89a211e28c0c (diff)
downloaddeluge-e43796ae516738d27a4abf8c77c50c12a5a5c004.tar.gz
deluge-e43796ae516738d27a4abf8c77c50c12a5a5c004.tar.bz2
deluge-e43796ae516738d27a4abf8c77c50c12a5a5c004.zip
[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.
-rw-r--r--deluge/ui/gtk3/common.py4
1 files changed, 3 insertions, 1 deletions
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)