Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

2 changed files:

Changes:

  • gajim/gtk/contact_info.py
    ... ... @@ -123,8 +123,6 @@ def __init__(self, account, contact, page=None):
    123 123
                 if contact.real_jid is not None:
    
    124 124
                     self._devices_grid = DevicesGrid(self._ui.devices_grid)
    
    125 125
                     self._query_devices()
    
    126
    -                self._update_timeout_id = GLib.timeout_add(
    
    127
    -                    100, self._update_timer)
    
    128 126
     
    
    129 127
                     self._ui.contact_jid_label.set_text(
    
    130 128
                         str(contact.real_jid.bare))
    
    ... ... @@ -144,9 +142,7 @@ def __init__(self, account, contact, page=None):
    144 142
             if contact.is_in_roster:
    
    145 143
                 self._devices_grid = DevicesGrid(self._ui.devices_grid)
    
    146 144
                 self._query_devices()
    
    147
    -            self._update_timeout_id = GLib.timeout_add(100, self._update_timer)
    
    148 145
     
    
    149
    -        if contact.is_in_roster:
    
    150 146
                 note = self._client.get_module('Annotations').get_note(contact.jid)
    
    151 147
                 if note is not None:
    
    152 148
                     self._ui.textview_annotation.get_buffer().set_text(note.data)
    
    ... ... @@ -234,6 +230,8 @@ def _load_avatar(self):
    234 230
             self._ui.header_image.set_from_surface(surface_2)
    
    235 231
     
    
    236 232
         def _query_devices(self):
    
    233
    +        self._update_timeout_id = GLib.timeout_add(100, self._update_timer)
    
    234
    +
    
    237 235
             if self.contact.is_pm_contact:
    
    238 236
                 self._query_device(self.contact)
    
    239 237
             else:
    

  • gajim/gtk/conversation/view.py
    ... ... @@ -123,6 +123,11 @@ def __init__(self, account, contact):
    123 123
     
    
    124 124
             self._scroll_hint_row = ScrollHintRow(self._account)
    
    125 125
             self.add(self._scroll_hint_row)
    
    126
    +        self.connect('destroy', self._on_destroy)
    
    127
    +
    
    128
    +    def _on_destroy(self, *args):
    
    129
    +        self.set_filter_func(None)
    
    130
    +        app.check_finalize(self)
    
    126 131
     
    
    127 132
         def lock(self) -> None:
    
    128 133
             self.locked = True