Skip to content

Commit

Permalink
Resolve some gtk errors/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Feb 4, 2024
1 parent d59dbf4 commit b55f5a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions keyhint/resources/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
box-shadow: inset 0 -3px @shadow_color;
}

.dim-label {
margin-left: -3px;
margin-right: -3px;
}

.bindings-section header label {
color: @accent_color;
margin-top: 26px;
Expand Down
6 changes: 5 additions & 1 deletion keyhint/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, cli_args: dict) -> None:
if self.cli_args.get("orientation", "vertical") == "horizontal":
self.sheet_container_box.set_orientation(1)

if self.cli_args.get("no-fullscreen", False):
if not self.cli_args.get("no-fullscreen", False):
self.fullscreen()

# Make sure the window is focused
Expand Down Expand Up @@ -131,6 +131,10 @@ def init_search_entry(self) -> None:
evk = Gtk.EventControllerKey()
evk.connect("key-pressed", self.on_search_entry_key_pressed)
self.search_entry.add_controller(evk)

# Reusing the same evk leads to critical assertion error
evk = Gtk.EventControllerKey()
evk.connect("key-pressed", self.on_search_entry_key_pressed)
self.search_entry_fullscreen.add_controller(evk)

@Gtk.Template.Callback()
Expand Down

0 comments on commit b55f5a0

Please sign in to comment.