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

Commits:

4 changed files:

Changes:

  • gajim/gtk/controls/base.py
    ... ... @@ -506,7 +506,7 @@ def _sec_labels_received(self, event):
    506 506
             self.xml.label_selector.set_no_show_all(False)
    
    507 507
             self.xml.label_selector.show_all()
    
    508 508
     
    
    509
    -    def delegate_action(self, action):
    
    509
    +    def delegate_action(self, action: str) -> int:
    
    510 510
             if action == 'clear-chat':
    
    511 511
                 self.conversation_view.clear()
    
    512 512
                 self._scrolled_view.reset()
    

  • gajim/gtk/controls/chat.py
    ... ... @@ -271,7 +271,7 @@ def remove_actions(self) -> None:
    271 271
         def focus(self) -> None:
    
    272 272
             self.msg_textview.grab_focus()
    
    273 273
     
    
    274
    -    def delegate_action(self, action):
    
    274
    +    def delegate_action(self, action: str) -> int:
    
    275 275
             res = super().delegate_action(action)
    
    276 276
             if res == Gdk.EVENT_STOP:
    
    277 277
                 return res
    

  • gajim/gtk/controls/groupchat.py
    ... ... @@ -1431,7 +1431,7 @@ def _on_message_textview_key_press_event(self, widget, event):
    1431 1431
                 self.last_key_tabs = False
    
    1432 1432
             return None
    
    1433 1433
     
    
    1434
    -    def delegate_action(self, action):
    
    1434
    +    def delegate_action(self, action: str) -> int:
    
    1435 1435
             res = super().delegate_action(action)
    
    1436 1436
             if res == Gdk.EVENT_STOP:
    
    1437 1437
                 return res
    

  • gajim/gtk/main.py
    ... ... @@ -253,7 +253,7 @@ def _on_action(self,
    253 253
     
    
    254 254
             action_name = action.get_name()
    
    255 255
     
    
    256
    -        res = control.delegate_action(action)
    
    256
    +        res = control.delegate_action(action_name)
    
    257 257
             if res != Gdk.EVENT_PROPAGATE:
    
    258 258
                 return res
    
    259 259