Commit d59aa320 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

fix: Plugins: Change default icon to non-legacy one

parent 8c0b2857
......@@ -112,8 +112,6 @@ def __init__(self) -> None:
activatable=Column.ACTIVATABLE)
self._ui.installed_plugins_treeview.append_column(col)
self.def_icon = load_icon_pixbuf('preferences-desktop')
# connect signal for selection change
selection = self._ui.installed_plugins_treeview.get_selection()
selection.connect(
......@@ -216,10 +214,11 @@ def _fill_installed_plugins_model(self) -> None:
def _get_plugin_icon(self, plugin: GajimPlugin) -> GdkPixbuf.Pixbuf:
icon_file = os.path.join(
plugin.__path__, os.path.split(plugin.__path__)[1]) + '.png'
assert self.def_icon is not None
icon = self.def_icon
if os.path.isfile(icon_file):
icon = GdkPixbuf.Pixbuf.new_from_file_at_size(icon_file, 16, 16)
else:
icon = load_icon_pixbuf('applications-utilities')
assert icon is not None
return icon
def _installed_plugin_toggled(self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment