Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: feb5b792 by wurstsalat at 2021-12-06T21:37:07+01:00 Roster: Remove all actions on destroy
- - - - - 636f2b86 by wurstsalat at 2021-12-06T21:45:23+01:00 Add check_finalize to some dialogs
- - - - -
4 changed files:
- gajim/gtk/account_page.py - gajim/gtk/add_contact.py - gajim/gtk/profile.py - gajim/gtk/roster.py
Changes:
===================================== gajim/gtk/account_page.py ===================================== @@ -82,6 +82,10 @@ def __init__(self, account: str) -> None:
self.update() self.show_all() + self.connect('destroy', self._on_destroy) + + def _on_destroy(self, *args): + app.check_finalize(self)
def _on_edit_profile(self, _button): open_window('ProfileWindow', account=self._account)
===================================== gajim/gtk/add_contact.py ===================================== @@ -76,6 +76,10 @@ def __init__(self, self.connect('button-clicked', self._on_button_clicked)
self.show_all() + self.connect('destroy', self._on_destroy) + + def _on_destroy(self, *args): + app.check_finalize(self)
def _on_button_clicked(self, _assistant, button_name): page = self.get_current_page()
===================================== gajim/gtk/profile.py ===================================== @@ -117,6 +117,11 @@ def __init__(self, account, *args): self._ui.connect_signals(self) self.connect('key-press-event', self._on_key_press_event)
+ self.connect('destroy', self._on_destroy) + + def _on_destroy(self, *args): + app.check_finalize(self) + def _on_access_model_received(self, task): namespace = task.get_user_data()
===================================== gajim/gtk/roster.py ===================================== @@ -167,6 +167,7 @@ def _remove_actions(self): 'block-contact', 'remove-contact', 'show-offline', + 'sort-by-show', ] for action in actions: app.window.remove_action(f'{action}-{self._account}')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/ab24173c3b07fb45c061f608eed03fa5...