Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
d59aa320 by wurstsalat at 2022-04-06T12:56:47+02:00
fix: Plugins: Change default icon to non-legacy one
- - - - -
1 changed file:
- gajim/plugins/gui.py
Changes:
=====================================
gajim/plugins/gui.py
=====================================
@@ -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,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d59aa3202df9ff59cfea1861be3b37571b6cc641
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d59aa3202df9ff59cfea1861be3b37571b6cc641
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits