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