detached f92f507

refactor(browser): complete workspace_pane_ops.go migration to gotk4

Fix remaining webkit widget calls that were missed in previous migration.
commit
f92f507f5393108d0f6c3e7e159ea275af2381f7
author
bamen · · 2025-10-09 05:41 UTC
parent
364f051
signature
unsigned
1 file · +6 -6
M internal/app/browser/workspace_pane_ops.go +6 -6
@@ -313,18 +313,18 @@ func (wm *WorkspaceManager) insertPopupPane(target *paneNode, newPane *BrowserPa
313313 }
314314
315315 newContainer := newPane.webView.RootWidget()
316- if newContainer == 0 {
316+ if newContainer == nil {
317317 return errors.New("new pane missing container")
318318 }
319319
320- webkit.WidgetSetHExpand(newContainer, true)
321- webkit.WidgetSetVExpand(newContainer, true)
322- webkit.WidgetRealizeInContainer(newContainer)
320+ newContainer.SetHExpand(true)
321+ newContainer.SetVExpand(true)
322+ newContainer.Realize()
323323
324324 // Also realize the WebView widget itself for proper popup rendering
325325 webViewWidget := newPane.webView.Widget()
326- if webViewWidget != 0 {
327- webkit.WidgetRealizeInContainer(webViewWidget)
326+ if webViewWidget != nil {
327+ webViewWidget.Realize()
328328 }
329329
330330 // CRITICAL: Handle stacked panes correctly - same logic as splitNode
@@ -313,18 +313,18 @@ func (wm *WorkspaceManager) insertPopupPane(target *paneNode, newPane *BrowserPa
313 }313 }
314 314
315 newContainer := newPane.webView.RootWidget()315 newContainer := newPane.webView.RootWidget()
316- if newContainer == 0 {316+ if newContainer == nil {
317 return errors.New("new pane missing container")317 return errors.New("new pane missing container")
318 }318 }
319 319
320- webkit.WidgetSetHExpand(newContainer, true)320+ newContainer.SetHExpand(true)
321- webkit.WidgetSetVExpand(newContainer, true)321+ newContainer.SetVExpand(true)
322- webkit.WidgetRealizeInContainer(newContainer)322+ newContainer.Realize()
323 323
324 // Also realize the WebView widget itself for proper popup rendering324 // Also realize the WebView widget itself for proper popup rendering
325 webViewWidget := newPane.webView.Widget()325 webViewWidget := newPane.webView.Widget()
326- if webViewWidget != 0 {326+ if webViewWidget != nil {
327- webkit.WidgetRealizeInContainer(webViewWidget)327+ webViewWidget.Realize()
328 }328 }
329 329
330 // CRITICAL: Handle stacked panes correctly - same logic as splitNode330 // CRITICAL: Handle stacked panes correctly - same logic as splitNode

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