Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a035d6e4 by Philipp Hörist at 2025-01-25T21:57:20+01:00
cfix: Plugins: Fix opening plugin config
- - - - -
ee939bd1 by Philipp Hörist at 2025-01-25T21:57:54+01:00
change: Plugins: Rename tooltip extension point
- - - - -
3 changed files:
- gajim/gtk/plugins.py
- gajim/gtk/tooltips.py
- gajim/plugins/helpers.py
Changes:
=====================================
gajim/gtk/plugins.py
=====================================
@@ -348,7 +348,7 @@ def _on_configure_plugin(self, _button: Gtk.Button) -> None:
manifest = model.get_value(iter_, Column.MANIFEST)
plugin = app.plugin_manager.get_plugin(manifest.short_name)
assert plugin is not None
- plugin.config_dialog(self) # pyright: ignore
+ plugin.config_dialog(self.window) # pyright: ignore
def _on_uninstall_plugin(self, _button: Gtk.Button) -> None:
selection = self._ui.plugins_treeview.get_selection()
=====================================
gajim/gtk/tooltips.py
=====================================
@@ -187,7 +187,7 @@ def _populate_grid(self, contact: types.BareContact) ->
None:
self._append_pep_info(contact)
- app.plugin_manager.extension_point("roster_tooltip_populate", self,
contact)
+ app.plugin_manager.extension_point("contact_tooltip_populate", self,
contact)
# This sets the bottom-most widget to expand, in case the avatar
# takes more space than the labels
@@ -267,7 +267,7 @@ def _add_resources(
resource_box.append(idle_label)
app.plugin_manager.extension_point(
- "roster_tooltip_resource_populate", resource_box, contact
+ "contact_tooltip_resource_populate", resource_box, contact
)
self._ui.resources_box.append(resource_box)
=====================================
gajim/plugins/helpers.py
=====================================
@@ -21,7 +21,7 @@ class GajimPluginActivateException(Exception):
def get_builder(
- file_name: str, instance: Any, widgets: list[str] | None = None
+ file_name: str, instance: Any = None, widgets: list[str] | None = None
) -> GajimBuilder:
return GajimBuilder(file_name,
instance,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/ee9c79da1d287cf978a0d4e81ca7981c51634c9d...ee939bd1e23eb687d63bb387099676cbc844e575
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/ee9c79da1d287cf978a0d4e81ca7981c51634c9d...ee939bd1e23eb687d63bb387099676cbc844e575
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]