Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
02e29ce8 by wurstsalat at 2022-01-13T23:04:56+01:00
Bookmarks: Typing
- - - - -
1 changed file:
- gajim/gtk/bookmarks.py
Changes:
=====================================
gajim/gtk/bookmarks.py
=====================================
@@ -27,7 +27,7 @@
class Bookmarks(Gtk.ApplicationWindow):
- def __init__(self, account):
+ def __init__(self, account: str) -> None:
Gtk.ApplicationWindow.__init__(self)
self.set_application(app.app)
self.set_position(Gtk.WindowPosition.CENTER)
@@ -55,10 +55,13 @@ def __init__(self, account):
self.show_all()
- def _on_key_press(self, _widget, event):
+ def _on_key_press(self, _widget: Gtk.Widget, event: Gdk.EventKey):
if event.keyval == Gdk.KEY_Escape:
self.destroy()
@staticmethod
- def _search_func(model, _column, search_text, iter_):
+ def _search_func(model: Gtk.TreeModel,
+ _column: int,
+ search_text: str,
+ iter_: Gtk.TreeIter):
return search_text.lower() not in model[iter_][0].lower()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/02e29ce873a06ccd849661d635dcbd771690e7b0
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/02e29ce873a06ccd849661d635dcbd771690e7b0
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits