Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
02e29ce8
Commit
02e29ce8
authored
Jan 13, 2022
by
Daniel Brötzmann
Browse files
Bookmarks: Typing
parent
bbec6ffe
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/gtk/bookmarks.py
View file @
02e29ce8
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment