detached 7928d62

fix(zoom): connect notify::zoom-level signal to persist zoom changes

commit
7928d626fbd842f1b660181960976be47f40ffe5
author
bamen · · 2025-10-15 16:22 UTC
parent
8abf46b
signature
unsigned
2 files · +9 -0
M CHANGELOG.md +1 -0
@@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file.
4343 - **Stacked pane active border**: Fixed active border incorrectly appearing on stacked pane containers instead of individual panes
4444 - **Stacked pane creation**: Fixed premature Realize() call causing widget lifecycle issues during stack creation
4545 - **Browser exit on last pane close**: Fixed browser not properly quitting when closing the last webview via Ctrl+P x by calling GTK main loop quit instead of window close
46+- **Zoom level persistence restored**: Fixed per-domain zoom settings not being saved to database (broken during gotk4 migration). Added missing `notify::zoom-level` signal connection in setupEventHandlers to properly persist zoom changes
4647
4748 ## [0.11.0] - 2025-10-07
4849
@@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file.
43 - **Stacked pane active border**: Fixed active border incorrectly appearing on stacked pane containers instead of individual panes43 - **Stacked pane active border**: Fixed active border incorrectly appearing on stacked pane containers instead of individual panes
44 - **Stacked pane creation**: Fixed premature Realize() call causing widget lifecycle issues during stack creation44 - **Stacked pane creation**: Fixed premature Realize() call causing widget lifecycle issues during stack creation
45 - **Browser exit on last pane close**: Fixed browser not properly quitting when closing the last webview via Ctrl+P x by calling GTK main loop quit instead of window close45 - **Browser exit on last pane close**: Fixed browser not properly quitting when closing the last webview via Ctrl+P x by calling GTK main loop quit instead of window close
46+- **Zoom level persistence restored**: Fixed per-domain zoom settings not being saved to database (broken during gotk4 migration). Added missing `notify::zoom-level` signal connection in setupEventHandlers to properly persist zoom changes
46 47
47 ## [0.11.0] - 2025-10-0748 ## [0.11.0] - 2025-10-07
48 49
M pkg/webkit/webview.go +8 -0
@@ -201,6 +201,14 @@ func (w *WebView) setupEventHandlers() {
201201 }
202202 })
203203
204+ // Zoom level changed - connect to notify::zoom-level signal
205+ w.view.Connect("notify::zoom-level", func() {
206+ if w.onZoomChanged != nil {
207+ zoomLevel := w.view.ZoomLevel()
208+ w.onZoomChanged(zoomLevel)
209+ }
210+ })
211+
204212 // Favicon changed - connect to FaviconDatabase
205213 w.setupFaviconHandlers()
206214
@@ -201,6 +201,14 @@ func (w *WebView) setupEventHandlers() {
201 }201 }
202 })202 })
203 203
204+ // Zoom level changed - connect to notify::zoom-level signal
205+ w.view.Connect("notify::zoom-level", func() {
206+ if w.onZoomChanged != nil {
207+ zoomLevel := w.view.ZoomLevel()
208+ w.onZoomChanged(zoomLevel)
209+ }
210+ })
211+
204 // Favicon changed - connect to FaviconDatabase212 // Favicon changed - connect to FaviconDatabase
205 w.setupFaviconHandlers()213 w.setupFaviconHandlers()
206 214

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close