Dont fail when IconTheme is not available
This is needed for tests to work
This commit is contained in:
parent
d13baed80f
commit
8be5562b92
|
@ -32,7 +32,8 @@ from gajim.common import i18n
|
||||||
from gajim.common.i18n import _
|
from gajim.common.i18n import _
|
||||||
|
|
||||||
_icon_theme = Gtk.IconTheme.get_default()
|
_icon_theme = Gtk.IconTheme.get_default()
|
||||||
_icon_theme.append_search_path(configpaths.get('ICONS'))
|
if _icon_theme is not None:
|
||||||
|
_icon_theme.append_search_path(configpaths.get('ICONS'))
|
||||||
|
|
||||||
log = logging.getLogger('gajim.gtk.util')
|
log = logging.getLogger('gajim.gtk.util')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue