Use more xdg icon names
This commit is contained in:
parent
f834a16b24
commit
59b7544370
|
@ -408,9 +408,9 @@ class SessionStatus(Table):
|
|||
self.uploads_l.text = t
|
||||
self.listen_l.text = str(self.session.is_listening())
|
||||
if self.session.is_paused():
|
||||
icon = "player_pause"
|
||||
icon = "media-playback-pause"
|
||||
else:
|
||||
icon = "player_play"
|
||||
icon = "media-playback-play"
|
||||
try:
|
||||
self.ses_pause_ic.standard = icon
|
||||
except Exception as e:
|
||||
|
@ -482,12 +482,18 @@ class TorrentClass(GenlistItemClass):
|
|||
try:
|
||||
ic.standard = "up"
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
ic.standard = "arrow-up"
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
ic.standard = "down"
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
ic.standard = "arrow-down"
|
||||
except Exception:
|
||||
pass
|
||||
except RuntimeError:
|
||||
log.debug("Setting torrent ic failed")
|
||||
ic.tooltip_text_set(self.state_str[s.state])
|
||||
|
|
Loading…
Reference in New Issue