Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
ae32e629
by lovetox at 2021-12-08T13:39:37+01:00
-
bd12add5
by lovetox at 2021-12-08T13:40:00+01:00
-
97c1cc8c
by lovetox at 2021-12-08T13:52:41+01:00
2 changed files:
Changes:
| ... | ... | @@ -95,6 +95,7 @@ def __init__(self): |
| 95 | 95 |
self._ui.audio_video_info_bar.set_revealed(not app.is_installed('AV'))
|
| 96 | 96 |
|
| 97 | 97 |
self.connect('key-press-event', self._on_key_press)
|
| 98 |
+ self.connect('destroy', self._on_destroy)
|
|
| 98 | 99 |
self._ui.connect_signals(self)
|
| 99 | 100 |
|
| 100 | 101 |
self.show_all()
|
| ... | ... | @@ -145,6 +146,10 @@ def _check_emoji_theme(): |
| 145 | 146 |
if settings_theme not in emoji_themes:
|
| 146 | 147 |
app.settings.set('emoticons_theme', 'font')
|
| 147 | 148 |
|
| 149 |
+ def _on_destroy(self, _widget):
|
|
| 150 |
+ self._prefs.clear()
|
|
| 151 |
+ app.check_finalize(self)
|
|
| 152 |
+ |
|
| 148 | 153 |
|
| 149 | 154 |
class PreferenceBox(SettingsBox):
|
| 150 | 155 |
def __init__(self, settings):
|
| ... | ... | @@ -104,6 +104,13 @@ def __init__(self, account=None, jid=None, extend=None): |
| 104 | 104 |
self.map[setting] = callback
|
| 105 | 105 |
|
| 106 | 106 |
self.connect('row-activated', self.on_row_activated)
|
| 107 |
+ self.connect('destroy', self.__on_destroy)
|
|
| 108 |
+ |
|
| 109 |
+ @staticmethod
|
|
| 110 |
+ def __on_destroy(widget):
|
|
| 111 |
+ app.check_finalize(widget)
|
|
| 112 |
+ for row in widget.get_children():
|
|
| 113 |
+ app.check_finalize(row)
|
|
| 107 | 114 |
|
| 108 | 115 |
@staticmethod
|
| 109 | 116 |
def on_row_activated(_listbox, row):
|
| ... | ... | @@ -717,6 +724,7 @@ def update_entries(self, entries): |
| 717 | 724 |
self._add_menu_entries()
|
| 718 | 725 |
|
| 719 | 726 |
def _on_destroy(self, *args):
|
| 727 |
+ self._popover.destroy()
|
|
| 720 | 728 |
app.settings.disconnect_signals(self)
|
| 721 | 729 |
|
| 722 | 730 |
|