mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
[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.
This commit is contained in:
parent
6655fe67c3
commit
e43796ae51
1 changed files with 3 additions and 1 deletions
|
@ -69,8 +69,10 @@ icon_checking = get_pixbuf('checking16.png')
|
||||||
|
|
||||||
|
|
||||||
def get_pixbuf_at_size(filename, size):
|
def get_pixbuf_at_size(filename, size):
|
||||||
|
if not os.path.isabs(filename):
|
||||||
|
filename = get_pixmap(filename)
|
||||||
try:
|
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:
|
except GError as ex:
|
||||||
# Failed to load the pixbuf (Bad image file), so return a blank pixbuf.
|
# Failed to load the pixbuf (Bad image file), so return a blank pixbuf.
|
||||||
log.warning(ex)
|
log.warning(ex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue