ui: better handling of tray icons
This commit is contained in:
parent
1d18e4d8f7
commit
68049efc41
|
@ -88,7 +88,8 @@ def _init_icon_paths():
|
|||
|
||||
_default_theme = Gtk.IconTheme.get_default()
|
||||
for p in _look_for_application_icons():
|
||||
_default_theme.prepend_search_path(p)
|
||||
if p not in _default_theme.get_search_path():
|
||||
_default_theme.prepend_search_path(p)
|
||||
if _log.isEnabledFor(_DEBUG):
|
||||
_log.debug('icon theme paths: %s', _default_theme.get_search_path())
|
||||
|
||||
|
|
|
@ -181,6 +181,7 @@ try:
|
|||
return icon_info.get_filename() if icon_info else icon_name
|
||||
|
||||
def _create(menu):
|
||||
_icons._init_icon_paths()
|
||||
theme_paths = Gtk.IconTheme.get_default().get_search_path()
|
||||
|
||||
ind = AppIndicator3.Indicator.new_with_path(
|
||||
|
|
Loading…
Reference in New Issue