detached 037fd9b

refactor: migrate puregotk module path from jwijenbergh to bnema fork

Rename all imports from github.com/jwijenbergh/puregotk to
github.com/bnema/puregotk across the entire codebase. The fork includes
fixes for the signal callback string parameter crash (purego ABI) and
missing cross-package imports in generated bindings.
commit
037fd9bad7755127b7bbb988b9c0d2b41b38ab27
author
brice · · 2026-03-20 18:58 UTC
committer
brice · · 2026-03-28 04:37 UTC
parent
3d5fac2
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
5 files · +6 -8
M cmd/dumber/main.go +3 -3
@@ -226,7 +226,7 @@ func buildAndConfigureApp(
226226 uiDeps := buildUIDependencies(
227227 ctx, cfg, initResult.ThemeManager,
228228 initResult.ColorResolver, initResult.AdwaitaDetector,
229- engine, repos, useCases, idleInhibitor, browserSession.Session.ID, browserSession.UnexpectedCloseReports(),
229+ engine, repos, useCases, idleInhibitor, browserSession.Session.ID, browserSession.CrashReports(),
230230 )
231231 configureDeferredInit(uiDeps, cfg, browserSession)
232232 return ui.New(uiDeps)
@@ -328,7 +328,7 @@ func configureDeferredInit(
328328 logger.Error().Err(persistErr).Msg("deferred session persistence failed")
329329 } else {
330330 if uiDeps.OnCrashReportsDetected != nil {
331- if reports := session.UnexpectedCloseReports(); len(reports) > 0 {
331+ if reports := session.CrashReports(); len(reports) > 0 {
332332 uiDeps.OnCrashReportsDetected(reports)
333333 }
334334 }
@@ -517,7 +517,7 @@ func createUseCases(repos *repositories, cfg *config.Config) *useCases {
517517 navigate: usecase.NewNavigateUseCase(repos.history, repos.zoom, defaultZoom),
518518 copyURL: usecase.NewCopyURLUseCase(clipboardAdapter),
519519 snapshot: usecase.NewSnapshotSessionUseCase(repos.sessionState),
520- lastRestorable: usecase.NewGetLastRestorableSessionUseCase(repos.session, repos.sessionState, stateDir),
520+ lastRestorable: usecase.NewGetLastRestorableSessionUseCase(repos.session, repos.sessionState),
521521 checkUpdate: usecase.NewCheckUpdateUseCase(updateChecker, updateApplier, buildInfo),
522522 applyUpdate: usecase.NewApplyUpdateUseCase(updateDownloader, updateApplier, xdgDirs.CacheHome),
523523 clipboard: clipboardAdapter,
@@ -226,7 +226,7 @@ func buildAndConfigureApp(
226 uiDeps := buildUIDependencies(226 uiDeps := buildUIDependencies(
227 ctx, cfg, initResult.ThemeManager,227 ctx, cfg, initResult.ThemeManager,
228 initResult.ColorResolver, initResult.AdwaitaDetector,228 initResult.ColorResolver, initResult.AdwaitaDetector,
229- engine, repos, useCases, idleInhibitor, browserSession.Session.ID, browserSession.UnexpectedCloseReports(),229+ engine, repos, useCases, idleInhibitor, browserSession.Session.ID, browserSession.CrashReports(),
230 )230 )
231 configureDeferredInit(uiDeps, cfg, browserSession)231 configureDeferredInit(uiDeps, cfg, browserSession)
232 return ui.New(uiDeps)232 return ui.New(uiDeps)
@@ -328,7 +328,7 @@ func configureDeferredInit(
328 logger.Error().Err(persistErr).Msg("deferred session persistence failed")328 logger.Error().Err(persistErr).Msg("deferred session persistence failed")
329 } else {329 } else {
330 if uiDeps.OnCrashReportsDetected != nil {330 if uiDeps.OnCrashReportsDetected != nil {
331- if reports := session.UnexpectedCloseReports(); len(reports) > 0 {331+ if reports := session.CrashReports(); len(reports) > 0 {
332 uiDeps.OnCrashReportsDetected(reports)332 uiDeps.OnCrashReportsDetected(reports)
333 }333 }
334 }334 }
@@ -517,7 +517,7 @@ func createUseCases(repos *repositories, cfg *config.Config) *useCases {
517 navigate: usecase.NewNavigateUseCase(repos.history, repos.zoom, defaultZoom),517 navigate: usecase.NewNavigateUseCase(repos.history, repos.zoom, defaultZoom),
518 copyURL: usecase.NewCopyURLUseCase(clipboardAdapter),518 copyURL: usecase.NewCopyURLUseCase(clipboardAdapter),
519 snapshot: usecase.NewSnapshotSessionUseCase(repos.sessionState),519 snapshot: usecase.NewSnapshotSessionUseCase(repos.sessionState),
520- lastRestorable: usecase.NewGetLastRestorableSessionUseCase(repos.session, repos.sessionState, stateDir),520+ lastRestorable: usecase.NewGetLastRestorableSessionUseCase(repos.session, repos.sessionState),
521 checkUpdate: usecase.NewCheckUpdateUseCase(updateChecker, updateApplier, buildInfo),521 checkUpdate: usecase.NewCheckUpdateUseCase(updateChecker, updateApplier, buildInfo),
522 applyUpdate: usecase.NewApplyUpdateUseCase(updateDownloader, updateApplier, xdgDirs.CacheHome),522 applyUpdate: usecase.NewApplyUpdateUseCase(updateDownloader, updateApplier, xdgDirs.CacheHome),
523 clipboard: clipboardAdapter,523 clipboard: clipboardAdapter,
M internal/infrastructure/cef/engine.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "time"
77
88 purecef "github.com/bnema/purego-cef/cef"
9- "github.com/jwijenbergh/puregotk/v4/glib"
9+ "github.com/bnema/puregotk/v4/glib"
1010
1111 "github.com/bnema/dumber/internal/application/port"
1212 "github.com/bnema/dumber/internal/logging"
@@ -6,7 +6,7 @@ import (
6 "time"6 "time"
7 7
8 purecef "github.com/bnema/purego-cef/cef"8 purecef "github.com/bnema/purego-cef/cef"
9- "github.com/jwijenbergh/puregotk/v4/glib"9+ "github.com/bnema/puregotk/v4/glib"
10 10
11 "github.com/bnema/dumber/internal/application/port"11 "github.com/bnema/dumber/internal/application/port"
12 "github.com/bnema/dumber/internal/logging"12 "github.com/bnema/dumber/internal/logging"
M internal/infrastructure/cef/render_pipeline.go +1 -1
@@ -7,7 +7,7 @@ import (
77 "unsafe"
88
99 "github.com/bnema/dumber/internal/logging"
10- "github.com/jwijenbergh/puregotk/v4/gtk"
10+ "github.com/bnema/puregotk/v4/gtk"
1111 )
1212
1313 // rect is a simple rectangle for dirty rect tracking.
@@ -7,7 +7,7 @@ import (
7 "unsafe"7 "unsafe"
8 8
9 "github.com/bnema/dumber/internal/logging"9 "github.com/bnema/dumber/internal/logging"
10- "github.com/jwijenbergh/puregotk/v4/gtk"10+ "github.com/bnema/puregotk/v4/gtk"
11 )11 )
12 12
13 // rect is a simple rectangle for dirty rect tracking.13 // rect is a simple rectangle for dirty rect tracking.
M internal/infrastructure/cef/webview.go +1 -1
@@ -9,7 +9,7 @@ import (
99 "unsafe"
1010
1111 purecef "github.com/bnema/purego-cef/cef"
12- "github.com/jwijenbergh/puregotk/v4/glib"
12+ "github.com/bnema/puregotk/v4/glib"
1313
1414 "github.com/bnema/dumber/internal/application/port"
1515 )
@@ -9,7 +9,7 @@ import (
9 "unsafe"9 "unsafe"
10 10
11 purecef "github.com/bnema/purego-cef/cef"11 purecef "github.com/bnema/purego-cef/cef"
12- "github.com/jwijenbergh/puregotk/v4/glib"12+ "github.com/bnema/puregotk/v4/glib"
13 13
14 "github.com/bnema/dumber/internal/application/port"14 "github.com/bnema/dumber/internal/application/port"
15 )15 )
M internal/ui/app.go +0 -2
@@ -868,12 +868,10 @@ func (a *App) initSessionManager(ctx context.Context) {
868868 listSessionsUC = usecase.NewListSessionsUseCase(
869869 a.deps.SessionRepo,
870870 a.deps.SessionStateRepo,
871- a.deps.Config.Logging.LogDir,
872871 )
873872 deleteSessionUC = usecase.NewDeleteSessionUseCase(
874873 a.deps.SessionStateRepo,
875874 a.deps.SessionRepo,
876- a.deps.Config.Logging.LogDir,
877875 )
878876 }
879877
@@ -868,12 +868,10 @@ func (a *App) initSessionManager(ctx context.Context) {
868 listSessionsUC = usecase.NewListSessionsUseCase(868 listSessionsUC = usecase.NewListSessionsUseCase(
869 a.deps.SessionRepo,869 a.deps.SessionRepo,
870 a.deps.SessionStateRepo,870 a.deps.SessionStateRepo,
871- a.deps.Config.Logging.LogDir,
872 )871 )
873 deleteSessionUC = usecase.NewDeleteSessionUseCase(872 deleteSessionUC = usecase.NewDeleteSessionUseCase(
874 a.deps.SessionStateRepo,873 a.deps.SessionStateRepo,
875 a.deps.SessionRepo,874 a.deps.SessionRepo,
876- a.deps.Config.Logging.LogDir,
877 )875 )
878 }876 }
879 877

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