detached 0552549

fix(workspace): remove premature Realize() call in stack creation

Remove explicit stackWrapperContainer.Realize() call that violated GTK4
widget lifecycle rules. GTK4 requires widgets to be inside a toplevel
window before realization. The toolkit will automatically realize widgets
when properly added to the hierarchy via reattachToParent().

Fixes: gtk_widget_realize() assertion failure when creating stacked panes
commit
05525490733c603d85c475847d19d1b547aeb33f
author
bamen · · 2025-10-14 18:10 UTC
parent
2e0dabf
signature
unsigned
1 file · +1 -1
M internal/app/browser/stacked_panes.go +1 -1
@@ -197,7 +197,7 @@ func (spm *StackedPaneManager) convertToStackedContainer(target, newLeaf *paneNo
197197 }
198198 stackWrapperContainer.SetHExpand(true)
199199 stackWrapperContainer.SetVExpand(true)
200- stackWrapperContainer.Realize() // Ensures size request is set like regular panes
200+ // Note: Don't call Realize() here - GTK4 will realize automatically when added to toplevel
201201
202202 // Add CSS class to the stack container for proper styling
203203 stackWrapperContainer.AddCSSClass(stackContainerClass)
@@ -197,7 +197,7 @@ func (spm *StackedPaneManager) convertToStackedContainer(target, newLeaf *paneNo
197 }197 }
198 stackWrapperContainer.SetHExpand(true)198 stackWrapperContainer.SetHExpand(true)
199 stackWrapperContainer.SetVExpand(true)199 stackWrapperContainer.SetVExpand(true)
200- stackWrapperContainer.Realize() // Ensures size request is set like regular panes200+ // Note: Don't call Realize() here - GTK4 will realize automatically when added to toplevel
201 201
202 // Add CSS class to the stack container for proper styling202 // Add CSS class to the stack container for proper styling
203 stackWrapperContainer.AddCSSClass(stackContainerClass)203 stackWrapperContainer.AddCSSClass(stackContainerClass)

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