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

Commits:

1 changed file:

Changes:

  • gajim/gtk/bookmarks.py
    ... ... @@ -27,7 +27,7 @@
    27 27
     
    
    28 28
     
    
    29 29
     class Bookmarks(Gtk.ApplicationWindow):
    
    30
    -    def __init__(self, account):
    
    30
    +    def __init__(self, account: str) -> None:
    
    31 31
             Gtk.ApplicationWindow.__init__(self)
    
    32 32
             self.set_application(app.app)
    
    33 33
             self.set_position(Gtk.WindowPosition.CENTER)
    
    ... ... @@ -55,10 +55,13 @@ def __init__(self, account):
    55 55
     
    
    56 56
             self.show_all()
    
    57 57
     
    
    58
    -    def _on_key_press(self, _widget, event):
    
    58
    +    def _on_key_press(self, _widget: Gtk.Widget, event: Gdk.EventKey):
    
    59 59
             if event.keyval == Gdk.KEY_Escape:
    
    60 60
                 self.destroy()
    
    61 61
     
    
    62 62
         @staticmethod
    
    63
    -    def _search_func(model, _column, search_text, iter_):
    
    63
    +    def _search_func(model: Gtk.TreeModel,
    
    64
    +                     _column: int,
    
    65
    +                     search_text: str,
    
    66
    +                     iter_: Gtk.TreeIter):
    
    64 67
             return search_text.lower() not in model[iter_][0].lower()