Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
20736c1b by wurstsalat at 2025-01-26T20:21:00+01:00
cfix: ContactInfo: Use SignalManager and improve finalization
- - - - -
1 changed file:
- gajim/gtk/contact_info.py
Changes:
=====================================
gajim/gtk/contact_info.py
=====================================
@@ -87,8 +87,10 @@ def __init__(
self._switcher = SideBarSwitcher(width=250)
self._switcher.set_stack(self._ui.main_stack, rows_visible=False)
self._ui.main_grid.attach(self._switcher, 0, 0, 1, 1)
- self._ui.main_stack.connect(
- "notify::visible-child-name", self._on_stack_child_changed
+ self._connect(
+ self._ui.main_stack,
+ "notify::visible-child-name",
+ self._on_stack_child_changed,
)
self._load_avatar()
@@ -175,6 +177,8 @@ def _cleanup(self) -> None:
del self._switcher
del self._contact_name_widget
+
+ self._client.disconnect_all_from_obj(self)
self._disconnect_all()
self.unregister_events()
app.check_finalize(self)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/20736c1b8798332d718b4d50b6756c2661d266a2
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/20736c1b8798332d718b4d50b6756c2661d266a2
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]