Merge pull request #344 from bnema/chore/upstream-foundations
chore(deps): integrate approved upstream foundations
921 files · +28709 -25527
M docs/first-presentation.md +5 -2
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||
| 46 | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | |
| 47 | 47 | do not use a device model or other identifier. Publish only the seven reviewed | |
| 48 | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | |
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | |
| 50 | - | invalid run fails collection. | |
| 49 | + | must not be published. `metadata.json` derives the selected | |
| 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git | |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |
| 53 | + | run also fails collection. | |
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||||
| 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | ||
| 47 | do not use a device model or other identifier. Publish only the seven reviewed | 47 | do not use a device model or other identifier. Publish only the seven reviewed | ||
| 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | ||
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | 49 | + | must not be published. `metadata.json` derives the selected |
| 50 | - | invalid run fails collection. | 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |||
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |||
| 53 | + | run also fails collection. | |||
M go.mod +5 -5
| @@ -6,11 +6,11 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.3 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | |
| 13 | - | github.com/bnema/puregotk v0.7.0 | |
| 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -6,11 +6,11 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.3 | 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c |
| 13 | - | github.com/bnema/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +12 -0 generated file: collapsed
A internal/infrastructure/persistence/sqlite/history_repo_benchmark_test.go +71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | package sqlite_test | |
| 2 | + | ||
| 3 | + | import ( | |
| 4 | + | "fmt" | |
| 5 | + | "path/filepath" | |
| 6 | + | "testing" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |
| 15 | + | // history suggestions use Search. | |
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |
| 17 | + | b.Helper() | |
| 18 | + | ||
| 19 | + | ctx := historyTestCtx() | |
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |
| 21 | + | if err != nil { | |
| 22 | + | b.Fatal(err) | |
| 23 | + | } | |
| 24 | + | ||
| 25 | + | b.Cleanup(func() { | |
| 26 | + | if err := db.Close(); err != nil { | |
| 27 | + | b.Errorf("close benchmark database: %v", err) | |
| 28 | + | } | |
| 29 | + | }) | |
| 30 | + | ||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |
| 32 | + | for i := range 200 { | |
| 33 | + | entry := &entity.HistoryEntry{ | |
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |
| 36 | + | } | |
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |
| 38 | + | b.Fatal(err) | |
| 39 | + | } | |
| 40 | + | } | |
| 41 | + | ||
| 42 | + | return repo, func() {} | |
| 43 | + | } | |
| 44 | + | ||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 47 | + | defer closeDB() | |
| 48 | + | ctx := historyTestCtx() | |
| 49 | + | ||
| 50 | + | b.ReportAllocs() | |
| 51 | + | b.ResetTimer() | |
| 52 | + | for range b.N { | |
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |
| 54 | + | b.Fatal(err) | |
| 55 | + | } | |
| 56 | + | } | |
| 57 | + | } | |
| 58 | + | ||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 61 | + | defer closeDB() | |
| 62 | + | ctx := historyTestCtx() | |
| 63 | + | ||
| 64 | + | b.ReportAllocs() | |
| 65 | + | b.ResetTimer() | |
| 66 | + | for range b.N { | |
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |
| 68 | + | b.Fatal(err) | |
| 69 | + | } | |
| 70 | + | } | |
| 71 | + | } | |
| @@ -0,0 +1,71 @@ | |||||
| 1 | + | package sqlite_test | |||
| 2 | + | ||||
| 3 | + | import ( | |||
| 4 | + | "fmt" | |||
| 5 | + | "path/filepath" | |||
| 6 | + | "testing" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |||
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |||
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |||
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |||
| 15 | + | // history suggestions use Search. | |||
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |||
| 17 | + | b.Helper() | |||
| 18 | + | ||||
| 19 | + | ctx := historyTestCtx() | |||
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |||
| 21 | + | if err != nil { | |||
| 22 | + | b.Fatal(err) | |||
| 23 | + | } | |||
| 24 | + | ||||
| 25 | + | b.Cleanup(func() { | |||
| 26 | + | if err := db.Close(); err != nil { | |||
| 27 | + | b.Errorf("close benchmark database: %v", err) | |||
| 28 | + | } | |||
| 29 | + | }) | |||
| 30 | + | ||||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |||
| 32 | + | for i := range 200 { | |||
| 33 | + | entry := &entity.HistoryEntry{ | |||
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |||
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |||
| 36 | + | } | |||
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |||
| 38 | + | b.Fatal(err) | |||
| 39 | + | } | |||
| 40 | + | } | |||
| 41 | + | ||||
| 42 | + | return repo, func() {} | |||
| 43 | + | } | |||
| 44 | + | ||||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |||
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 47 | + | defer closeDB() | |||
| 48 | + | ctx := historyTestCtx() | |||
| 49 | + | ||||
| 50 | + | b.ReportAllocs() | |||
| 51 | + | b.ResetTimer() | |||
| 52 | + | for range b.N { | |||
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |||
| 54 | + | b.Fatal(err) | |||
| 55 | + | } | |||
| 56 | + | } | |||
| 57 | + | } | |||
| 58 | + | ||||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |||
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 61 | + | defer closeDB() | |||
| 62 | + | ctx := historyTestCtx() | |||
| 63 | + | ||||
| 64 | + | b.ReportAllocs() | |||
| 65 | + | b.ResetTimer() | |||
| 66 | + | for range b.N { | |||
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |||
| 68 | + | b.Fatal(err) | |||
| 69 | + | } | |||
| 70 | + | } | |||
| 71 | + | } | |||
M internal/logging/first_presentation_collector_test.go +132 -1
| @@ -2,6 +2,7 @@ package logging | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/json" | |
| 5 | + | "fmt" | |
| 5 | 6 | "os" | |
| 6 | 7 | "os/exec" | |
| 7 | 8 | "path/filepath" | |
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 143 | 144 | } | |
| 144 | 145 | for _, required := range []string{ | |
| 145 | 146 | `"measured_source_revision"`, | |
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |
| 146 | 148 | `"tag": "v0.8.4"`, | |
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | |
| 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, | |
| 148 | 150 | } { | |
| 149 | 151 | require.Contains(t, artifacts.String(), required) | |
| 150 | 152 | } | |
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 166 | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | |
| 167 | 169 | } | |
| 168 | 170 | ||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 173 | + | require.NoError(t, err) | |
| 174 | + | temp := t.TempDir() | |
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 177 | + | binary := filepath.Join(temp, "dumber") | |
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 179 | + | ||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |
| 181 | + | // hardcode; the collector must report what the selected module says. | |
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |
| 185 | + | output := filepath.Join(temp, "artifacts") | |
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 187 | + | cmd.Dir = repoRoot | |
| 188 | + | cmd.Env = append(os.Environ(), | |
| 189 | + | "DISPLAY=:test", | |
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 195 | + | ) | |
| 196 | + | result, err := cmd.CombinedOutput() | |
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |
| 198 | + | ||
| 199 | + | var metadata struct { | |
| 200 | + | Upstream struct { | |
| 201 | + | Module string `json:"module"` | |
| 202 | + | Version string `json:"version"` | |
| 203 | + | Tag string `json:"tag"` | |
| 204 | + | Revision string `json:"revision"` | |
| 205 | + | } `json:"upstream"` | |
| 206 | + | } | |
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |
| 208 | + | require.NoError(t, err) | |
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |
| 214 | + | ||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 216 | + | require.NoError(t, err) | |
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 222 | + | require.NoError(t, err) | |
| 223 | + | ||
| 224 | + | for _, test := range []struct { | |
| 225 | + | name, version, revision, ref string | |
| 226 | + | }{ | |
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |
| 230 | + | } { | |
| 231 | + | t.Run(test.name, func(t *testing.T) { | |
| 232 | + | temp := t.TempDir() | |
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 235 | + | binary := filepath.Join(temp, "dumber") | |
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 237 | + | ||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |
| 239 | + | output := filepath.Join(temp, "artifacts") | |
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 241 | + | cmd.Dir = repoRoot | |
| 242 | + | cmd.Env = append(os.Environ(), | |
| 243 | + | "DISPLAY=:test", | |
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 248 | + | ) | |
| 249 | + | result, runErr := cmd.CombinedOutput() | |
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |
| 252 | + | require.NotContains(t, string(result), temp) | |
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |
| 254 | + | for _, name := range runArtifactNames() { | |
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |
| 256 | + | } | |
| 257 | + | }) | |
| 258 | + | } | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |
| 262 | + | t.Helper() | |
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |
| 264 | + | info := map[string]any{"Version": version} | |
| 265 | + | if revision != "" { | |
| 266 | + | info["Origin"] = map[string]string{ | |
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |
| 268 | + | } | |
| 269 | + | } | |
| 270 | + | infoJSON, err := json.Marshal(info) | |
| 271 | + | require.NoError(t, err) | |
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |
| 273 | + | ||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |
| 276 | + | }) | |
| 277 | + | require.NoError(t, err) | |
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |
| 280 | + | }) | |
| 281 | + | require.NoError(t, err) | |
| 282 | + | binDir := filepath.Join(temp, "bin") | |
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |
| 284 | + | goBin := filepath.Join(binDir, "go") | |
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |
| 287 | + | printf '%%s\n' '%s' | |
| 288 | + | exit 0 | |
| 289 | + | fi | |
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |
| 291 | + | printf '%%s\n' '%s' | |
| 292 | + | exit 0 | |
| 293 | + | fi | |
| 294 | + | exit 1 | |
| 295 | + | `, selectedJSON, version, downloadedJSON) | |
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |
| 297 | + | return goBin | |
| 298 | + | } | |
| 299 | + | ||
| 169 | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | |
| 170 | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 171 | 302 | require.NoError(t, err) | |
| @@ -2,6 +2,7 @@ package logging | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/json" | 4 | "encoding/json" | ||
| 5 | + | "fmt" | |||
| 5 | "os" | 6 | "os" | ||
| 6 | "os/exec" | 7 | "os/exec" | ||
| 7 | "path/filepath" | 8 | "path/filepath" | ||
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 143 | } | 144 | } | ||
| 144 | for _, required := range []string{ | 145 | for _, required := range []string{ | ||
| 145 | `"measured_source_revision"`, | 146 | `"measured_source_revision"`, | ||
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |||
| 146 | `"tag": "v0.8.4"`, | 148 | `"tag": "v0.8.4"`, | ||
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, |
| 148 | } { | 150 | } { | ||
| 149 | require.Contains(t, artifacts.String(), required) | 151 | require.Contains(t, artifacts.String(), required) | ||
| 150 | } | 152 | } | ||
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 166 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | ||
| 167 | } | 169 | } | ||
| 168 | 170 | ||||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |||
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 173 | + | require.NoError(t, err) | |||
| 174 | + | temp := t.TempDir() | |||
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 177 | + | binary := filepath.Join(temp, "dumber") | |||
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 179 | + | ||||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |||
| 181 | + | // hardcode; the collector must report what the selected module says. | |||
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |||
| 185 | + | output := filepath.Join(temp, "artifacts") | |||
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 187 | + | cmd.Dir = repoRoot | |||
| 188 | + | cmd.Env = append(os.Environ(), | |||
| 189 | + | "DISPLAY=:test", | |||
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |||
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 195 | + | ) | |||
| 196 | + | result, err := cmd.CombinedOutput() | |||
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |||
| 198 | + | ||||
| 199 | + | var metadata struct { | |||
| 200 | + | Upstream struct { | |||
| 201 | + | Module string `json:"module"` | |||
| 202 | + | Version string `json:"version"` | |||
| 203 | + | Tag string `json:"tag"` | |||
| 204 | + | Revision string `json:"revision"` | |||
| 205 | + | } `json:"upstream"` | |||
| 206 | + | } | |||
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |||
| 208 | + | require.NoError(t, err) | |||
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |||
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |||
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |||
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |||
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |||
| 214 | + | ||||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 216 | + | require.NoError(t, err) | |||
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |||
| 218 | + | } | |||
| 219 | + | ||||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |||
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 222 | + | require.NoError(t, err) | |||
| 223 | + | ||||
| 224 | + | for _, test := range []struct { | |||
| 225 | + | name, version, revision, ref string | |||
| 226 | + | }{ | |||
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |||
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |||
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |||
| 230 | + | } { | |||
| 231 | + | t.Run(test.name, func(t *testing.T) { | |||
| 232 | + | temp := t.TempDir() | |||
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 235 | + | binary := filepath.Join(temp, "dumber") | |||
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 237 | + | ||||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |||
| 239 | + | output := filepath.Join(temp, "artifacts") | |||
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 241 | + | cmd.Dir = repoRoot | |||
| 242 | + | cmd.Env = append(os.Environ(), | |||
| 243 | + | "DISPLAY=:test", | |||
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 248 | + | ) | |||
| 249 | + | result, runErr := cmd.CombinedOutput() | |||
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |||
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |||
| 252 | + | require.NotContains(t, string(result), temp) | |||
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |||
| 254 | + | for _, name := range runArtifactNames() { | |||
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |||
| 256 | + | } | |||
| 257 | + | }) | |||
| 258 | + | } | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |||
| 262 | + | t.Helper() | |||
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |||
| 264 | + | info := map[string]any{"Version": version} | |||
| 265 | + | if revision != "" { | |||
| 266 | + | info["Origin"] = map[string]string{ | |||
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |||
| 268 | + | } | |||
| 269 | + | } | |||
| 270 | + | infoJSON, err := json.Marshal(info) | |||
| 271 | + | require.NoError(t, err) | |||
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |||
| 273 | + | ||||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |||
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |||
| 276 | + | }) | |||
| 277 | + | require.NoError(t, err) | |||
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |||
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |||
| 280 | + | }) | |||
| 281 | + | require.NoError(t, err) | |||
| 282 | + | binDir := filepath.Join(temp, "bin") | |||
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |||
| 284 | + | goBin := filepath.Join(binDir, "go") | |||
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |||
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |||
| 287 | + | printf '%%s\n' '%s' | |||
| 288 | + | exit 0 | |||
| 289 | + | fi | |||
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |||
| 291 | + | printf '%%s\n' '%s' | |||
| 292 | + | exit 0 | |||
| 293 | + | fi | |||
| 294 | + | exit 1 | |||
| 295 | + | `, selectedJSON, version, downloadedJSON) | |||
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |||
| 297 | + | return goBin | |||
| 298 | + | } | |||
| 299 | + | ||||
| 169 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | ||
| 170 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | ||
| 171 | require.NoError(t, err) | 302 | require.NoError(t, err) | ||
M scripts/collect_first_presentation.sh +78 -9
| @@ -31,8 +31,78 @@ else | |||
| 31 | 31 | fi | |
| 32 | 32 | readonly output | |
| 33 | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | |
| 34 | - | readonly upstream_tag="v0.8.4" | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | |
| 34 | + | ||
| 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS | |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |
| 38 | + | resolve_upstream_provenance() { | |
| 39 | + | local selected_metadata selected_version downloaded_metadata | |
| 40 | + | ||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 43 | + | exit 2 | |
| 44 | + | } | |
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |
| 46 | + | import json, sys | |
| 47 | + | try: | |
| 48 | + | metadata = json.loads(sys.argv[2]) | |
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |
| 50 | + | raise ValueError | |
| 51 | + | print(metadata["Version"]) | |
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 54 | + | PY | |
| 55 | + | )" || exit $? | |
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 58 | + | exit 2 | |
| 59 | + | } | |
| 60 | + | ||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |
| 62 | + | import json, re, sys | |
| 63 | + | ||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |
| 65 | + | ||
| 66 | + | def fail(): | |
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 69 | + | ||
| 70 | + | try: | |
| 71 | + | selected = json.loads(selected_raw) | |
| 72 | + | downloaded = json.loads(downloaded_raw) | |
| 73 | + | version = selected["Version"] | |
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |
| 75 | + | fail() | |
| 76 | + | if downloaded.get("Version") != version: | |
| 77 | + | fail() | |
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |
| 80 | + | if not match: | |
| 81 | + | fail() | |
| 82 | + | info_path = downloaded.get("Info") | |
| 83 | + | if not isinstance(info_path, str) or not info_path: | |
| 84 | + | fail() | |
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |
| 86 | + | info = json.load(info_file) | |
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |
| 89 | + | fail() | |
| 90 | + | revision = origin.get("Hash") | |
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |
| 92 | + | fail() | |
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |
| 94 | + | fail() | |
| 95 | + | if not revision.startswith(match.group(2)): | |
| 96 | + | fail() | |
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |
| 99 | + | fail() | |
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |
| 101 | + | fail() | |
| 102 | + | ||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |
| 104 | + | PY | |
| 105 | + | } | |
| 36 | 106 | ||
| 37 | 107 | # The artifact destination is caller-controlled. Never empty or recursively | |
| 38 | 108 | # clear it: collection only writes to a newly-created directory whose parent is | |
| @@ -66,10 +136,9 @@ prepare_output | |||
| 66 | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | |
| 67 | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | |
| 68 | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | |
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | |
| 71 | - | exit 2 | |
| 72 | - | } | |
| 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? | |
| 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" | |
| 141 | + | readonly upstream_version upstream_tag upstream_revision | |
| 73 | 142 | ||
| 74 | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | |
| 75 | 144 | # outside the committed artifact directory and always remove them. | |
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||
| 80 | 149 | rm -rf -- "$work_root" | |
| 81 | 150 | } | |
| 82 | 151 | trap cleanup_work_root EXIT | |
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 84 | 153 | import hashlib, json, os, platform, subprocess, sys | |
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | |
| 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] | |
| 86 | 155 | with open(binary, "rb") as candidate: | |
| 87 | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | |
| 88 | 157 | ||
| @@ -102,7 +171,7 @@ json.dump({ | |||
| 102 | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | |
| 103 | 172 | "timeout_seconds": int(timeout), | |
| 104 | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | |
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | |
| 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, | |
| 106 | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | |
| 107 | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | |
| 108 | 177 | }, open(path, "w"), indent=2, sort_keys=True) | |
| @@ -31,8 +31,78 @@ else | |||||
| 31 | fi | 31 | fi | ||
| 32 | readonly output | 32 | readonly output | ||
| 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | ||
| 34 | - | readonly upstream_tag="v0.8.4" | 34 | + | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |||
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |||
| 38 | + | resolve_upstream_provenance() { | |||
| 39 | + | local selected_metadata selected_version downloaded_metadata | |||
| 40 | + | ||||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |||
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 43 | + | exit 2 | |||
| 44 | + | } | |||
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |||
| 46 | + | import json, sys | |||
| 47 | + | try: | |||
| 48 | + | metadata = json.loads(sys.argv[2]) | |||
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |||
| 50 | + | raise ValueError | |||
| 51 | + | print(metadata["Version"]) | |||
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |||
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 54 | + | PY | |||
| 55 | + | )" || exit $? | |||
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |||
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 58 | + | exit 2 | |||
| 59 | + | } | |||
| 60 | + | ||||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |||
| 62 | + | import json, re, sys | |||
| 63 | + | ||||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |||
| 65 | + | ||||
| 66 | + | def fail(): | |||
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |||
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 69 | + | ||||
| 70 | + | try: | |||
| 71 | + | selected = json.loads(selected_raw) | |||
| 72 | + | downloaded = json.loads(downloaded_raw) | |||
| 73 | + | version = selected["Version"] | |||
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |||
| 75 | + | fail() | |||
| 76 | + | if downloaded.get("Version") != version: | |||
| 77 | + | fail() | |||
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |||
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |||
| 80 | + | if not match: | |||
| 81 | + | fail() | |||
| 82 | + | info_path = downloaded.get("Info") | |||
| 83 | + | if not isinstance(info_path, str) or not info_path: | |||
| 84 | + | fail() | |||
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |||
| 86 | + | info = json.load(info_file) | |||
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |||
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |||
| 89 | + | fail() | |||
| 90 | + | revision = origin.get("Hash") | |||
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |||
| 92 | + | fail() | |||
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |||
| 94 | + | fail() | |||
| 95 | + | if not revision.startswith(match.group(2)): | |||
| 96 | + | fail() | |||
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |||
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |||
| 99 | + | fail() | |||
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |||
| 101 | + | fail() | |||
| 102 | + | ||||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |||
| 104 | + | PY | |||
| 105 | + | } | |||
| 36 | 106 | ||||
| 37 | # The artifact destination is caller-controlled. Never empty or recursively | 107 | # The artifact destination is caller-controlled. Never empty or recursively | ||
| 38 | # clear it: collection only writes to a newly-created directory whose parent is | 108 | # clear it: collection only writes to a newly-created directory whose parent is | ||
| @@ -66,10 +136,9 @@ prepare_output | |||||
| 66 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | ||
| 67 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | ||
| 68 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | ||
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" |
| 71 | - | exit 2 | 141 | + | readonly upstream_version upstream_tag upstream_revision |
| 72 | - | } | |||
| 73 | 142 | ||||
| 74 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | ||
| 75 | # outside the committed artifact directory and always remove them. | 144 | # outside the committed artifact directory and always remove them. | ||
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||||
| 80 | rm -rf -- "$work_root" | 149 | rm -rf -- "$work_root" | ||
| 81 | } | 150 | } | ||
| 82 | trap cleanup_work_root EXIT | 151 | trap cleanup_work_root EXIT | ||
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' |
| 84 | import hashlib, json, os, platform, subprocess, sys | 153 | import hashlib, json, os, platform, subprocess, sys | ||
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] |
| 86 | with open(binary, "rb") as candidate: | 155 | with open(binary, "rb") as candidate: | ||
| 87 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | ||
| 88 | 157 | ||||
| @@ -102,7 +171,7 @@ json.dump({ | |||||
| 102 | "binary": {"label": "dumber", "sha256": binary_sha256}, | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | ||
| 103 | "timeout_seconds": int(timeout), | 172 | "timeout_seconds": int(timeout), | ||
| 104 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | ||
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, |
| 106 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | ||
| 107 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | ||
| 108 | }, open(path, "w"), indent=2, sort_keys=True) | 177 | }, open(path, "w"), indent=2, sort_keys=True) | ||
M vendor/github.com/bnema/purego-cef/cef/bridge.go +8 -13 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +34 -37 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +38 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +89 -69 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player.go +5 -0 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +10 -6 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +66 -32 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/driver/driver.go +268 -63 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/db.go +8 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +13 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +23 -5 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +3 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gdk" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -37,6 +36,8 @@ var xShowAboutWindow func(uintptr, string, ...interface{}) | |||
| 37 | 36 | ||
| 38 | 37 | // A convenience function for showing an application’s about window. | |
| 39 | 38 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 39 | + | core.LazyRegister(&xShowAboutWindow, "ADW", "adw_show_about_window", false) | |
| 40 | + | ||
| 40 | 41 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | |
| 41 | 42 | } | |
| 42 | 43 | ||
| @@ -47,6 +48,8 @@ var xShowAboutWindowFromAppdata func(uintptr, string, uintptr, string, ...interf | |||
| 47 | 48 | // | |
| 48 | 49 | // See [ctor@AboutWindow.new_from_appdata] for details. | |
| 49 | 50 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 51 | + | core.LazyRegister(&xShowAboutWindowFromAppdata, "ADW", "adw_show_about_window_from_appdata", false) | |
| 52 | + | ||
| 50 | 53 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 51 | 54 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 52 | 55 | ||
| @@ -231,6 +234,7 @@ type AboutWindow struct { | |||
| 231 | 234 | var xAboutWindowGLibType func() types.GType | |
| 232 | 235 | ||
| 233 | 236 | func AboutWindowGLibType() types.GType { | |
| 237 | + | core.LazyRegister(&xAboutWindowGLibType, "ADW", "adw_about_window_get_type", false) | |
| 234 | 238 | return xAboutWindowGLibType() | |
| 235 | 239 | } | |
| 236 | 240 | ||
| @@ -244,6 +248,7 @@ var xNewAboutWindow func() uintptr | |||
| 244 | 248 | ||
| 245 | 249 | // Creates a new `AdwAboutWindow`. | |
| 246 | 250 | func NewAboutWindow() *AboutWindow { | |
| 251 | + | core.LazyRegister(&xNewAboutWindow, "ADW", "adw_about_window_new", false) | |
| 247 | 252 | var cls *AboutWindow | |
| 248 | 253 | ||
| 249 | 254 | cret := xNewAboutWindow() | |
| @@ -281,6 +286,7 @@ var xNewAboutWindowFromAppdata func(string, uintptr) uintptr | |||
| 281 | 286 | // [property@AboutWindow:release-notes] is set from the AppStream release | |
| 282 | 287 | // description for that version. | |
| 283 | 288 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | |
| 289 | + | core.LazyRegister(&xNewAboutWindowFromAppdata, "ADW", "adw_about_window_new_from_appdata", false) | |
| 284 | 290 | var cls *AboutWindow | |
| 285 | 291 | ||
| 286 | 292 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| @@ -317,6 +323,8 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, uintptr, []string) | |||
| 317 | 323 | // * [property@AboutWindow:translator-credits] | |
| 318 | 324 | // * [method@AboutWindow.add_credit_section] | |
| 319 | 325 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | |
| 326 | + | core.LazyRegister(&xAboutWindowAddAcknowledgementSection, "ADW", "adw_about_window_add_acknowledgement_section", false) | |
| 327 | + | ||
| 320 | 328 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 321 | 329 | defer core.GFreeNullable(NameVarPtr) | |
| 322 | 330 | ||
| @@ -341,6 +349,8 @@ var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |||
| 341 | 349 | // * [property@AboutWindow:translator-credits] | |
| 342 | 350 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 343 | 351 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | |
| 352 | + | core.LazyRegister(&xAboutWindowAddCreditSection, "ADW", "adw_about_window_add_credit_section", false) | |
| 353 | + | ||
| 344 | 354 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 345 | 355 | defer core.GFreeNullable(NameVarPtr) | |
| 346 | 356 | ||
| @@ -395,6 +405,8 @@ var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||
| 395 | 405 | // | |
| 396 | 406 | // ``` | |
| 397 | 407 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | |
| 408 | + | core.LazyRegister(&xAboutWindowAddLegalSection, "ADW", "adw_about_window_add_legal_section", false) | |
| 409 | + | ||
| 398 | 410 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | |
| 399 | 411 | defer core.GFreeNullable(CopyrightVarPtr) | |
| 400 | 412 | ||
| @@ -414,6 +426,8 @@ var xAboutWindowAddLink func(uintptr, string, string) | |||
| 414 | 426 | // | |
| 415 | 427 | // See [property@AboutWindow:website]. | |
| 416 | 428 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | |
| 429 | + | core.LazyRegister(&xAboutWindowAddLink, "ADW", "adw_about_window_add_link", false) | |
| 430 | + | ||
| 417 | 431 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | |
| 418 | 432 | } | |
| 419 | 433 | ||
| @@ -421,6 +435,8 @@ var xAboutWindowGetApplicationIcon func(uintptr) string | |||
| 421 | 435 | ||
| 422 | 436 | // Gets the name of the application icon for @self. | |
| 423 | 437 | func (x *AboutWindow) GetApplicationIcon() string { | |
| 438 | + | core.LazyRegister(&xAboutWindowGetApplicationIcon, "ADW", "adw_about_window_get_application_icon", false) | |
| 439 | + | ||
| 424 | 440 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | |
| 425 | 441 | return cret | |
| 426 | 442 | } | |
| @@ -429,6 +445,8 @@ var xAboutWindowGetApplicationName func(uintptr) string | |||
| 429 | 445 | ||
| 430 | 446 | // Gets the application name for @self. | |
| 431 | 447 | func (x *AboutWindow) GetApplicationName() string { | |
| 448 | + | core.LazyRegister(&xAboutWindowGetApplicationName, "ADW", "adw_about_window_get_application_name", false) | |
| 449 | + | ||
| 432 | 450 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | |
| 433 | 451 | return cret | |
| 434 | 452 | } | |
| @@ -437,6 +455,8 @@ var xAboutWindowGetArtists func(uintptr) []string | |||
| 437 | 455 | ||
| 438 | 456 | // Gets the list of artists of the application. | |
| 439 | 457 | func (x *AboutWindow) GetArtists() []string { | |
| 458 | + | core.LazyRegister(&xAboutWindowGetArtists, "ADW", "adw_about_window_get_artists", false) | |
| 459 | + | ||
| 440 | 460 | cret := xAboutWindowGetArtists(x.GoPointer()) | |
| 441 | 461 | return cret | |
| 442 | 462 | } | |
| @@ -445,6 +465,8 @@ var xAboutWindowGetComments func(uintptr) string | |||
| 445 | 465 | ||
| 446 | 466 | // Gets the comments about the application. | |
| 447 | 467 | func (x *AboutWindow) GetComments() string { | |
| 468 | + | core.LazyRegister(&xAboutWindowGetComments, "ADW", "adw_about_window_get_comments", false) | |
| 469 | + | ||
| 448 | 470 | cret := xAboutWindowGetComments(x.GoPointer()) | |
| 449 | 471 | return cret | |
| 450 | 472 | } | |
| @@ -453,6 +475,8 @@ var xAboutWindowGetCopyright func(uintptr) string | |||
| 453 | 475 | ||
| 454 | 476 | // Gets the copyright information for @self. | |
| 455 | 477 | func (x *AboutWindow) GetCopyright() string { | |
| 478 | + | core.LazyRegister(&xAboutWindowGetCopyright, "ADW", "adw_about_window_get_copyright", false) | |
| 479 | + | ||
| 456 | 480 | cret := xAboutWindowGetCopyright(x.GoPointer()) | |
| 457 | 481 | return cret | |
| 458 | 482 | } | |
| @@ -461,6 +485,8 @@ var xAboutWindowGetDebugInfo func(uintptr) string | |||
| 461 | 485 | ||
| 462 | 486 | // Gets the debug information for @self. | |
| 463 | 487 | func (x *AboutWindow) GetDebugInfo() string { | |
| 488 | + | core.LazyRegister(&xAboutWindowGetDebugInfo, "ADW", "adw_about_window_get_debug_info", false) | |
| 489 | + | ||
| 464 | 490 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | |
| 465 | 491 | return cret | |
| 466 | 492 | } | |
| @@ -469,6 +495,8 @@ var xAboutWindowGetDebugInfoFilename func(uintptr) string | |||
| 469 | 495 | ||
| 470 | 496 | // Gets the debug information filename for @self. | |
| 471 | 497 | func (x *AboutWindow) GetDebugInfoFilename() string { | |
| 498 | + | core.LazyRegister(&xAboutWindowGetDebugInfoFilename, "ADW", "adw_about_window_get_debug_info_filename", false) | |
| 499 | + | ||
| 472 | 500 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | |
| 473 | 501 | return cret | |
| 474 | 502 | } | |
| @@ -477,6 +505,8 @@ var xAboutWindowGetDesigners func(uintptr) []string | |||
| 477 | 505 | ||
| 478 | 506 | // Gets the list of designers of the application. | |
| 479 | 507 | func (x *AboutWindow) GetDesigners() []string { | |
| 508 | + | core.LazyRegister(&xAboutWindowGetDesigners, "ADW", "adw_about_window_get_designers", false) | |
| 509 | + | ||
| 480 | 510 | cret := xAboutWindowGetDesigners(x.GoPointer()) | |
| 481 | 511 | return cret | |
| 482 | 512 | } | |
| @@ -485,6 +515,8 @@ var xAboutWindowGetDeveloperName func(uintptr) string | |||
| 485 | 515 | ||
| 486 | 516 | // Gets the developer name for @self. | |
| 487 | 517 | func (x *AboutWindow) GetDeveloperName() string { | |
| 518 | + | core.LazyRegister(&xAboutWindowGetDeveloperName, "ADW", "adw_about_window_get_developer_name", false) | |
| 519 | + | ||
| 488 | 520 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | |
| 489 | 521 | return cret | |
| 490 | 522 | } | |
| @@ -493,6 +525,8 @@ var xAboutWindowGetDevelopers func(uintptr) []string | |||
| 493 | 525 | ||
| 494 | 526 | // Gets the list of developers of the application. | |
| 495 | 527 | func (x *AboutWindow) GetDevelopers() []string { | |
| 528 | + | core.LazyRegister(&xAboutWindowGetDevelopers, "ADW", "adw_about_window_get_developers", false) | |
| 529 | + | ||
| 496 | 530 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | |
| 497 | 531 | return cret | |
| 498 | 532 | } | |
| @@ -501,6 +535,8 @@ var xAboutWindowGetDocumenters func(uintptr) []string | |||
| 501 | 535 | ||
| 502 | 536 | // Gets the list of documenters of the application. | |
| 503 | 537 | func (x *AboutWindow) GetDocumenters() []string { | |
| 538 | + | core.LazyRegister(&xAboutWindowGetDocumenters, "ADW", "adw_about_window_get_documenters", false) | |
| 539 | + | ||
| 504 | 540 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | |
| 505 | 541 | return cret | |
| 506 | 542 | } | |
| @@ -509,6 +545,8 @@ var xAboutWindowGetIssueUrl func(uintptr) string | |||
| 509 | 545 | ||
| 510 | 546 | // Gets the issue tracker URL for @self. | |
| 511 | 547 | func (x *AboutWindow) GetIssueUrl() string { | |
| 548 | + | core.LazyRegister(&xAboutWindowGetIssueUrl, "ADW", "adw_about_window_get_issue_url", false) | |
| 549 | + | ||
| 512 | 550 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | |
| 513 | 551 | return cret | |
| 514 | 552 | } | |
| @@ -517,6 +555,8 @@ var xAboutWindowGetLicense func(uintptr) string | |||
| 517 | 555 | ||
| 518 | 556 | // Gets the license for @self. | |
| 519 | 557 | func (x *AboutWindow) GetLicense() string { | |
| 558 | + | core.LazyRegister(&xAboutWindowGetLicense, "ADW", "adw_about_window_get_license", false) | |
| 559 | + | ||
| 520 | 560 | cret := xAboutWindowGetLicense(x.GoPointer()) | |
| 521 | 561 | return cret | |
| 522 | 562 | } | |
| @@ -525,6 +565,8 @@ var xAboutWindowGetLicenseType func(uintptr) gtk.License | |||
| 525 | 565 | ||
| 526 | 566 | // Gets the license type for @self. | |
| 527 | 567 | func (x *AboutWindow) GetLicenseType() gtk.License { | |
| 568 | + | core.LazyRegister(&xAboutWindowGetLicenseType, "ADW", "adw_about_window_get_license_type", false) | |
| 569 | + | ||
| 528 | 570 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | |
| 529 | 571 | return cret | |
| 530 | 572 | } | |
| @@ -533,6 +575,8 @@ var xAboutWindowGetReleaseNotes func(uintptr) string | |||
| 533 | 575 | ||
| 534 | 576 | // Gets the release notes for @self. | |
| 535 | 577 | func (x *AboutWindow) GetReleaseNotes() string { | |
| 578 | + | core.LazyRegister(&xAboutWindowGetReleaseNotes, "ADW", "adw_about_window_get_release_notes", false) | |
| 579 | + | ||
| 536 | 580 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | |
| 537 | 581 | return cret | |
| 538 | 582 | } | |
| @@ -541,6 +585,8 @@ var xAboutWindowGetReleaseNotesVersion func(uintptr) string | |||
| 541 | 585 | ||
| 542 | 586 | // Gets the version described by the application's release notes. | |
| 543 | 587 | func (x *AboutWindow) GetReleaseNotesVersion() string { | |
| 588 | + | core.LazyRegister(&xAboutWindowGetReleaseNotesVersion, "ADW", "adw_about_window_get_release_notes_version", false) | |
| 589 | + | ||
| 544 | 590 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | |
| 545 | 591 | return cret | |
| 546 | 592 | } | |
| @@ -549,6 +595,8 @@ var xAboutWindowGetSupportUrl func(uintptr) string | |||
| 549 | 595 | ||
| 550 | 596 | // Gets the URL of the support page for @self. | |
| 551 | 597 | func (x *AboutWindow) GetSupportUrl() string { | |
| 598 | + | core.LazyRegister(&xAboutWindowGetSupportUrl, "ADW", "adw_about_window_get_support_url", false) | |
| 599 | + | ||
| 552 | 600 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | |
| 553 | 601 | return cret | |
| 554 | 602 | } | |
| @@ -557,6 +605,8 @@ var xAboutWindowGetTranslatorCredits func(uintptr) string | |||
| 557 | 605 | ||
| 558 | 606 | // Gets the translator credits string. | |
| 559 | 607 | func (x *AboutWindow) GetTranslatorCredits() string { | |
| 608 | + | core.LazyRegister(&xAboutWindowGetTranslatorCredits, "ADW", "adw_about_window_get_translator_credits", false) | |
| 609 | + | ||
| 560 | 610 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | |
| 561 | 611 | return cret | |
| 562 | 612 | } | |
| @@ -565,6 +615,8 @@ var xAboutWindowGetVersion func(uintptr) string | |||
| 565 | 615 | ||
| 566 | 616 | // Gets the version for @self. | |
| 567 | 617 | func (x *AboutWindow) GetVersion() string { | |
| 618 | + | core.LazyRegister(&xAboutWindowGetVersion, "ADW", "adw_about_window_get_version", false) | |
| 619 | + | ||
| 568 | 620 | cret := xAboutWindowGetVersion(x.GoPointer()) | |
| 569 | 621 | return cret | |
| 570 | 622 | } | |
| @@ -573,6 +625,8 @@ var xAboutWindowGetWebsite func(uintptr) string | |||
| 573 | 625 | ||
| 574 | 626 | // Gets the application website URL for @self. | |
| 575 | 627 | func (x *AboutWindow) GetWebsite() string { | |
| 628 | + | core.LazyRegister(&xAboutWindowGetWebsite, "ADW", "adw_about_window_get_website", false) | |
| 629 | + | ||
| 576 | 630 | cret := xAboutWindowGetWebsite(x.GoPointer()) | |
| 577 | 631 | return cret | |
| 578 | 632 | } | |
| @@ -583,6 +637,8 @@ var xAboutWindowSetApplicationIcon func(uintptr, string) | |||
| 583 | 637 | // | |
| 584 | 638 | // The icon is displayed at the top of the main page. | |
| 585 | 639 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | |
| 640 | + | core.LazyRegister(&xAboutWindowSetApplicationIcon, "ADW", "adw_about_window_set_application_icon", false) | |
| 641 | + | ||
| 586 | 642 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | |
| 587 | 643 | } | |
| 588 | 644 | ||
| @@ -592,6 +648,8 @@ var xAboutWindowSetApplicationName func(uintptr, string) | |||
| 592 | 648 | // | |
| 593 | 649 | // The name is displayed at the top of the main page. | |
| 594 | 650 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | |
| 651 | + | core.LazyRegister(&xAboutWindowSetApplicationName, "ADW", "adw_about_window_set_application_name", false) | |
| 652 | + | ||
| 595 | 653 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | |
| 596 | 654 | } | |
| 597 | 655 | ||
| @@ -613,6 +671,8 @@ var xAboutWindowSetArtists func(uintptr, []string) | |||
| 613 | 671 | // * [method@AboutWindow.add_credit_section] | |
| 614 | 672 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 615 | 673 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | |
| 674 | + | core.LazyRegister(&xAboutWindowSetArtists, "ADW", "adw_about_window_set_artists", false) | |
| 675 | + | ||
| 616 | 676 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | |
| 617 | 677 | } | |
| 618 | 678 | ||
| @@ -625,6 +685,8 @@ var xAboutWindowSetComments func(uintptr, string) | |||
| 625 | 685 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | |
| 626 | 686 | // detailed. It can also contain links and Pango markup. | |
| 627 | 687 | func (x *AboutWindow) SetComments(CommentsVar string) { | |
| 688 | + | core.LazyRegister(&xAboutWindowSetComments, "ADW", "adw_about_window_set_comments", false) | |
| 689 | + | ||
| 628 | 690 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | |
| 629 | 691 | } | |
| 630 | 692 | ||
| @@ -641,6 +703,8 @@ var xAboutWindowSetCopyright func(uintptr, string) | |||
| 641 | 703 | // [method@AboutWindow.add_legal_section] can be used to add copyright | |
| 642 | 704 | // information for the application dependencies or other components. | |
| 643 | 705 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | |
| 706 | + | core.LazyRegister(&xAboutWindowSetCopyright, "ADW", "adw_about_window_set_copyright", false) | |
| 707 | + | ||
| 644 | 708 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | |
| 645 | 709 | } | |
| 646 | 710 | ||
| @@ -658,6 +722,8 @@ var xAboutWindowSetDebugInfo func(uintptr, string) | |||
| 658 | 722 | // | |
| 659 | 723 | // Debug information cannot contain markup or links. | |
| 660 | 724 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | |
| 725 | + | core.LazyRegister(&xAboutWindowSetDebugInfo, "ADW", "adw_about_window_set_debug_info", false) | |
| 726 | + | ||
| 661 | 727 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | |
| 662 | 728 | } | |
| 663 | 729 | ||
| @@ -670,6 +736,8 @@ var xAboutWindowSetDebugInfoFilename func(uintptr, string) | |||
| 670 | 736 | // | |
| 671 | 737 | // See [property@AboutWindow:debug-info]. | |
| 672 | 738 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | |
| 739 | + | core.LazyRegister(&xAboutWindowSetDebugInfoFilename, "ADW", "adw_about_window_set_debug_info_filename", false) | |
| 740 | + | ||
| 673 | 741 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | |
| 674 | 742 | } | |
| 675 | 743 | ||
| @@ -691,6 +759,8 @@ var xAboutWindowSetDesigners func(uintptr, []string) | |||
| 691 | 759 | // * [method@AboutWindow.add_credit_section] | |
| 692 | 760 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 693 | 761 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | |
| 762 | + | core.LazyRegister(&xAboutWindowSetDesigners, "ADW", "adw_about_window_set_designers", false) | |
| 763 | + | ||
| 694 | 764 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | |
| 695 | 765 | } | |
| 696 | 766 | ||
| @@ -705,6 +775,8 @@ var xAboutWindowSetDeveloperName func(uintptr, string) | |||
| 705 | 775 | // "The AppName project", and the individual contributors can be listed on the | |
| 706 | 776 | // Credits page, with [property@AboutWindow:developers] and related properties. | |
| 707 | 777 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | |
| 778 | + | core.LazyRegister(&xAboutWindowSetDeveloperName, "ADW", "adw_about_window_set_developer_name", false) | |
| 779 | + | ||
| 708 | 780 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | |
| 709 | 781 | } | |
| 710 | 782 | ||
| @@ -726,6 +798,8 @@ var xAboutWindowSetDevelopers func(uintptr, []string) | |||
| 726 | 798 | // * [method@AboutWindow.add_credit_section] | |
| 727 | 799 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 728 | 800 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | |
| 801 | + | core.LazyRegister(&xAboutWindowSetDevelopers, "ADW", "adw_about_window_set_developers", false) | |
| 802 | + | ||
| 729 | 803 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | |
| 730 | 804 | } | |
| 731 | 805 | ||
| @@ -747,6 +821,8 @@ var xAboutWindowSetDocumenters func(uintptr, []string) | |||
| 747 | 821 | // * [method@AboutWindow.add_credit_section] | |
| 748 | 822 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 749 | 823 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | |
| 824 | + | core.LazyRegister(&xAboutWindowSetDocumenters, "ADW", "adw_about_window_set_documenters", false) | |
| 825 | + | ||
| 750 | 826 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | |
| 751 | 827 | } | |
| 752 | 828 | ||
| @@ -756,6 +832,8 @@ var xAboutWindowSetIssueUrl func(uintptr, string) | |||
| 756 | 832 | // | |
| 757 | 833 | // The issue tracker link is displayed on the main page. | |
| 758 | 834 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | |
| 835 | + | core.LazyRegister(&xAboutWindowSetIssueUrl, "ADW", "adw_about_window_set_issue_url", false) | |
| 836 | + | ||
| 759 | 837 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | |
| 760 | 838 | } | |
| 761 | 839 | ||
| @@ -777,6 +855,8 @@ var xAboutWindowSetLicense func(uintptr, string) | |||
| 777 | 855 | // [method@AboutWindow.add_legal_section] can be used to add license information | |
| 778 | 856 | // for the application dependencies or other components. | |
| 779 | 857 | func (x *AboutWindow) SetLicense(LicenseVar string) { | |
| 858 | + | core.LazyRegister(&xAboutWindowSetLicense, "ADW", "adw_about_window_set_license", false) | |
| 859 | + | ||
| 780 | 860 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | |
| 781 | 861 | } | |
| 782 | 862 | ||
| @@ -799,6 +879,8 @@ var xAboutWindowSetLicenseType func(uintptr, gtk.License) | |||
| 799 | 879 | // [method@AboutWindow.add_legal_section] can be used to add license information | |
| 800 | 880 | // for the application dependencies or other components. | |
| 801 | 881 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | |
| 882 | + | core.LazyRegister(&xAboutWindowSetLicenseType, "ADW", "adw_about_window_set_license_type", false) | |
| 883 | + | ||
| 802 | 884 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | |
| 803 | 885 | } | |
| 804 | 886 | ||
| @@ -829,6 +911,8 @@ var xAboutWindowSetReleaseNotes func(uintptr, string) | |||
| 829 | 911 | // [property@AboutWindow:release-notes-version] of the property will be used | |
| 830 | 912 | // as the version; otherwise, [property@AboutWindow:version] is used. | |
| 831 | 913 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | |
| 914 | + | core.LazyRegister(&xAboutWindowSetReleaseNotes, "ADW", "adw_about_window_set_release_notes", false) | |
| 915 | + | ||
| 832 | 916 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | |
| 833 | 917 | } | |
| 834 | 918 | ||
| @@ -847,6 +931,8 @@ var xAboutWindowSetReleaseNotesVersion func(uintptr, string) | |||
| 847 | 931 | // | |
| 848 | 932 | // See [property@AboutWindow:release-notes]. | |
| 849 | 933 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | |
| 934 | + | core.LazyRegister(&xAboutWindowSetReleaseNotesVersion, "ADW", "adw_about_window_set_release_notes_version", false) | |
| 935 | + | ||
| 850 | 936 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | |
| 851 | 937 | } | |
| 852 | 938 | ||
| @@ -856,6 +942,8 @@ var xAboutWindowSetSupportUrl func(uintptr, string) | |||
| 856 | 942 | // | |
| 857 | 943 | // The support page link is displayed on the main page. | |
| 858 | 944 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | |
| 945 | + | core.LazyRegister(&xAboutWindowSetSupportUrl, "ADW", "adw_about_window_set_support_url", false) | |
| 946 | + | ||
| 859 | 947 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | |
| 860 | 948 | } | |
| 861 | 949 | ||
| @@ -881,6 +969,8 @@ var xAboutWindowSetTranslatorCredits func(uintptr, string) | |||
| 881 | 969 | // * [method@AboutWindow.add_credit_section] | |
| 882 | 970 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 883 | 971 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | |
| 972 | + | core.LazyRegister(&xAboutWindowSetTranslatorCredits, "ADW", "adw_about_window_set_translator_credits", false) | |
| 973 | + | ||
| 884 | 974 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | |
| 885 | 975 | } | |
| 886 | 976 | ||
| @@ -893,6 +983,8 @@ var xAboutWindowSetVersion func(uintptr, string) | |||
| 893 | 983 | // If [property@AboutWindow:release-notes-version] is not set, the version will | |
| 894 | 984 | // also be displayed above the release notes on the What's New page. | |
| 895 | 985 | func (x *AboutWindow) SetVersion(VersionVar string) { | |
| 986 | + | core.LazyRegister(&xAboutWindowSetVersion, "ADW", "adw_about_window_set_version", false) | |
| 987 | + | ||
| 896 | 988 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | |
| 897 | 989 | } | |
| 898 | 990 | ||
| @@ -905,6 +997,8 @@ var xAboutWindowSetWebsite func(uintptr, string) | |||
| 905 | 997 | // | |
| 906 | 998 | // Applications can add other links below, see [method@AboutWindow.add_link]. | |
| 907 | 999 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | |
| 1000 | + | core.LazyRegister(&xAboutWindowSetWebsite, "ADW", "adw_about_window_set_website", false) | |
| 1001 | + | ||
| 908 | 1002 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | |
| 909 | 1003 | } | |
| 910 | 1004 | ||
| @@ -1986,65 +2080,4 @@ func (x *AboutWindow) SetFocus(FocusVar *gtk.Widget) { | |||
| 1986 | 2080 | func init() { | |
| 1987 | 2081 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1988 | 2082 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1989 | - | var libs []uintptr | |
| 1990 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 1991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1992 | - | if err != nil { | |
| 1993 | - | panic(err) | |
| 1994 | - | } | |
| 1995 | - | libs = append(libs, lib) | |
| 1996 | - | } | |
| 1997 | - | ||
| 1998 | - | core.PuregoSafeRegister(&xShowAboutWindow, libs, "adw_show_about_window") | |
| 1999 | - | core.PuregoSafeRegister(&xShowAboutWindowFromAppdata, libs, "adw_show_about_window_from_appdata") | |
| 2000 | - | ||
| 2001 | - | core.PuregoSafeRegister(&xAboutWindowGLibType, libs, "adw_about_window_get_type") | |
| 2002 | - | ||
| 2003 | - | core.PuregoSafeRegister(&xNewAboutWindow, libs, "adw_about_window_new") | |
| 2004 | - | core.PuregoSafeRegister(&xNewAboutWindowFromAppdata, libs, "adw_about_window_new_from_appdata") | |
| 2005 | - | ||
| 2006 | - | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, libs, "adw_about_window_add_acknowledgement_section") | |
| 2007 | - | core.PuregoSafeRegister(&xAboutWindowAddCreditSection, libs, "adw_about_window_add_credit_section") | |
| 2008 | - | core.PuregoSafeRegister(&xAboutWindowAddLegalSection, libs, "adw_about_window_add_legal_section") | |
| 2009 | - | core.PuregoSafeRegister(&xAboutWindowAddLink, libs, "adw_about_window_add_link") | |
| 2010 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationIcon, libs, "adw_about_window_get_application_icon") | |
| 2011 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationName, libs, "adw_about_window_get_application_name") | |
| 2012 | - | core.PuregoSafeRegister(&xAboutWindowGetArtists, libs, "adw_about_window_get_artists") | |
| 2013 | - | core.PuregoSafeRegister(&xAboutWindowGetComments, libs, "adw_about_window_get_comments") | |
| 2014 | - | core.PuregoSafeRegister(&xAboutWindowGetCopyright, libs, "adw_about_window_get_copyright") | |
| 2015 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfo, libs, "adw_about_window_get_debug_info") | |
| 2016 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfoFilename, libs, "adw_about_window_get_debug_info_filename") | |
| 2017 | - | core.PuregoSafeRegister(&xAboutWindowGetDesigners, libs, "adw_about_window_get_designers") | |
| 2018 | - | core.PuregoSafeRegister(&xAboutWindowGetDeveloperName, libs, "adw_about_window_get_developer_name") | |
| 2019 | - | core.PuregoSafeRegister(&xAboutWindowGetDevelopers, libs, "adw_about_window_get_developers") | |
| 2020 | - | core.PuregoSafeRegister(&xAboutWindowGetDocumenters, libs, "adw_about_window_get_documenters") | |
| 2021 | - | core.PuregoSafeRegister(&xAboutWindowGetIssueUrl, libs, "adw_about_window_get_issue_url") | |
| 2022 | - | core.PuregoSafeRegister(&xAboutWindowGetLicense, libs, "adw_about_window_get_license") | |
| 2023 | - | core.PuregoSafeRegister(&xAboutWindowGetLicenseType, libs, "adw_about_window_get_license_type") | |
| 2024 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotes, libs, "adw_about_window_get_release_notes") | |
| 2025 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotesVersion, libs, "adw_about_window_get_release_notes_version") | |
| 2026 | - | core.PuregoSafeRegister(&xAboutWindowGetSupportUrl, libs, "adw_about_window_get_support_url") | |
| 2027 | - | core.PuregoSafeRegister(&xAboutWindowGetTranslatorCredits, libs, "adw_about_window_get_translator_credits") | |
| 2028 | - | core.PuregoSafeRegister(&xAboutWindowGetVersion, libs, "adw_about_window_get_version") | |
| 2029 | - | core.PuregoSafeRegister(&xAboutWindowGetWebsite, libs, "adw_about_window_get_website") | |
| 2030 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationIcon, libs, "adw_about_window_set_application_icon") | |
| 2031 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationName, libs, "adw_about_window_set_application_name") | |
| 2032 | - | core.PuregoSafeRegister(&xAboutWindowSetArtists, libs, "adw_about_window_set_artists") | |
| 2033 | - | core.PuregoSafeRegister(&xAboutWindowSetComments, libs, "adw_about_window_set_comments") | |
| 2034 | - | core.PuregoSafeRegister(&xAboutWindowSetCopyright, libs, "adw_about_window_set_copyright") | |
| 2035 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfo, libs, "adw_about_window_set_debug_info") | |
| 2036 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfoFilename, libs, "adw_about_window_set_debug_info_filename") | |
| 2037 | - | core.PuregoSafeRegister(&xAboutWindowSetDesigners, libs, "adw_about_window_set_designers") | |
| 2038 | - | core.PuregoSafeRegister(&xAboutWindowSetDeveloperName, libs, "adw_about_window_set_developer_name") | |
| 2039 | - | core.PuregoSafeRegister(&xAboutWindowSetDevelopers, libs, "adw_about_window_set_developers") | |
| 2040 | - | core.PuregoSafeRegister(&xAboutWindowSetDocumenters, libs, "adw_about_window_set_documenters") | |
| 2041 | - | core.PuregoSafeRegister(&xAboutWindowSetIssueUrl, libs, "adw_about_window_set_issue_url") | |
| 2042 | - | core.PuregoSafeRegister(&xAboutWindowSetLicense, libs, "adw_about_window_set_license") | |
| 2043 | - | core.PuregoSafeRegister(&xAboutWindowSetLicenseType, libs, "adw_about_window_set_license_type") | |
| 2044 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotes, libs, "adw_about_window_set_release_notes") | |
| 2045 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotesVersion, libs, "adw_about_window_set_release_notes_version") | |
| 2046 | - | core.PuregoSafeRegister(&xAboutWindowSetSupportUrl, libs, "adw_about_window_set_support_url") | |
| 2047 | - | core.PuregoSafeRegister(&xAboutWindowSetTranslatorCredits, libs, "adw_about_window_set_translator_credits") | |
| 2048 | - | core.PuregoSafeRegister(&xAboutWindowSetVersion, libs, "adw_about_window_set_version") | |
| 2049 | - | core.PuregoSafeRegister(&xAboutWindowSetWebsite, libs, "adw_about_window_set_website") | |
| 2050 | 2083 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gdk" | 9 | "github.com/bnema/puregotk/v4/gdk" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -37,6 +36,8 @@ var xShowAboutWindow func(uintptr, string, ...interface{}) | |||||
| 37 | 36 | ||||
| 38 | // A convenience function for showing an application’s about window. | 37 | // A convenience function for showing an application’s about window. | ||
| 39 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | 38 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 39 | + | core.LazyRegister(&xShowAboutWindow, "ADW", "adw_show_about_window", false) | |||
| 40 | + | ||||
| 40 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | 41 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | ||
| 41 | } | 42 | } | ||
| 42 | 43 | ||||
| @@ -47,6 +48,8 @@ var xShowAboutWindowFromAppdata func(uintptr, string, uintptr, string, ...interf | |||||
| 47 | // | 48 | // | ||
| 48 | // See [ctor@AboutWindow.new_from_appdata] for details. | 49 | // See [ctor@AboutWindow.new_from_appdata] for details. | ||
| 49 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | 50 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 51 | + | core.LazyRegister(&xShowAboutWindowFromAppdata, "ADW", "adw_show_about_window_from_appdata", false) | |||
| 52 | + | ||||
| 50 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 53 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| 51 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | 54 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | ||
| 52 | 55 | ||||
| @@ -231,6 +234,7 @@ type AboutWindow struct { | |||||
| 231 | var xAboutWindowGLibType func() types.GType | 234 | var xAboutWindowGLibType func() types.GType | ||
| 232 | 235 | ||||
| 233 | func AboutWindowGLibType() types.GType { | 236 | func AboutWindowGLibType() types.GType { | ||
| 237 | + | core.LazyRegister(&xAboutWindowGLibType, "ADW", "adw_about_window_get_type", false) | |||
| 234 | return xAboutWindowGLibType() | 238 | return xAboutWindowGLibType() | ||
| 235 | } | 239 | } | ||
| 236 | 240 | ||||
| @@ -244,6 +248,7 @@ var xNewAboutWindow func() uintptr | |||||
| 244 | 248 | ||||
| 245 | // Creates a new `AdwAboutWindow`. | 249 | // Creates a new `AdwAboutWindow`. | ||
| 246 | func NewAboutWindow() *AboutWindow { | 250 | func NewAboutWindow() *AboutWindow { | ||
| 251 | + | core.LazyRegister(&xNewAboutWindow, "ADW", "adw_about_window_new", false) | |||
| 247 | var cls *AboutWindow | 252 | var cls *AboutWindow | ||
| 248 | 253 | ||||
| 249 | cret := xNewAboutWindow() | 254 | cret := xNewAboutWindow() | ||
| @@ -281,6 +286,7 @@ var xNewAboutWindowFromAppdata func(string, uintptr) uintptr | |||||
| 281 | // [property@AboutWindow:release-notes] is set from the AppStream release | 286 | // [property@AboutWindow:release-notes] is set from the AppStream release | ||
| 282 | // description for that version. | 287 | // description for that version. | ||
| 283 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | 288 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | ||
| 289 | + | core.LazyRegister(&xNewAboutWindowFromAppdata, "ADW", "adw_about_window_new_from_appdata", false) | |||
| 284 | var cls *AboutWindow | 290 | var cls *AboutWindow | ||
| 285 | 291 | ||||
| 286 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 292 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| @@ -317,6 +323,8 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, uintptr, []string) | |||||
| 317 | // * [property@AboutWindow:translator-credits] | 323 | // * [property@AboutWindow:translator-credits] | ||
| 318 | // * [method@AboutWindow.add_credit_section] | 324 | // * [method@AboutWindow.add_credit_section] | ||
| 319 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | 325 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | ||
| 326 | + | core.LazyRegister(&xAboutWindowAddAcknowledgementSection, "ADW", "adw_about_window_add_acknowledgement_section", false) | |||
| 327 | + | ||||
| 320 | NameVarPtr := core.GStrdupNullable(NameVar) | 328 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 321 | defer core.GFreeNullable(NameVarPtr) | 329 | defer core.GFreeNullable(NameVarPtr) | ||
| 322 | 330 | ||||
| @@ -341,6 +349,8 @@ var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |||||
| 341 | // * [property@AboutWindow:translator-credits] | 349 | // * [property@AboutWindow:translator-credits] | ||
| 342 | // * [method@AboutWindow.add_acknowledgement_section] | 350 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 343 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | 351 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | ||
| 352 | + | core.LazyRegister(&xAboutWindowAddCreditSection, "ADW", "adw_about_window_add_credit_section", false) | |||
| 353 | + | ||||
| 344 | NameVarPtr := core.GStrdupNullable(NameVar) | 354 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 345 | defer core.GFreeNullable(NameVarPtr) | 355 | defer core.GFreeNullable(NameVarPtr) | ||
| 346 | 356 | ||||
| @@ -395,6 +405,8 @@ var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||||
| 395 | // | 405 | // | ||
| 396 | // ``` | 406 | // ``` | ||
| 397 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | 407 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | ||
| 408 | + | core.LazyRegister(&xAboutWindowAddLegalSection, "ADW", "adw_about_window_add_legal_section", false) | |||
| 409 | + | ||||
| 398 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | 410 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | ||
| 399 | defer core.GFreeNullable(CopyrightVarPtr) | 411 | defer core.GFreeNullable(CopyrightVarPtr) | ||
| 400 | 412 | ||||
| @@ -414,6 +426,8 @@ var xAboutWindowAddLink func(uintptr, string, string) | |||||
| 414 | // | 426 | // | ||
| 415 | // See [property@AboutWindow:website]. | 427 | // See [property@AboutWindow:website]. | ||
| 416 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | 428 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | ||
| 429 | + | core.LazyRegister(&xAboutWindowAddLink, "ADW", "adw_about_window_add_link", false) | |||
| 430 | + | ||||
| 417 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | 431 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | ||
| 418 | } | 432 | } | ||
| 419 | 433 | ||||
| @@ -421,6 +435,8 @@ var xAboutWindowGetApplicationIcon func(uintptr) string | |||||
| 421 | 435 | ||||
| 422 | // Gets the name of the application icon for @self. | 436 | // Gets the name of the application icon for @self. | ||
| 423 | func (x *AboutWindow) GetApplicationIcon() string { | 437 | func (x *AboutWindow) GetApplicationIcon() string { | ||
| 438 | + | core.LazyRegister(&xAboutWindowGetApplicationIcon, "ADW", "adw_about_window_get_application_icon", false) | |||
| 439 | + | ||||
| 424 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | 440 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | ||
| 425 | return cret | 441 | return cret | ||
| 426 | } | 442 | } | ||
| @@ -429,6 +445,8 @@ var xAboutWindowGetApplicationName func(uintptr) string | |||||
| 429 | 445 | ||||
| 430 | // Gets the application name for @self. | 446 | // Gets the application name for @self. | ||
| 431 | func (x *AboutWindow) GetApplicationName() string { | 447 | func (x *AboutWindow) GetApplicationName() string { | ||
| 448 | + | core.LazyRegister(&xAboutWindowGetApplicationName, "ADW", "adw_about_window_get_application_name", false) | |||
| 449 | + | ||||
| 432 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | 450 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | ||
| 433 | return cret | 451 | return cret | ||
| 434 | } | 452 | } | ||
| @@ -437,6 +455,8 @@ var xAboutWindowGetArtists func(uintptr) []string | |||||
| 437 | 455 | ||||
| 438 | // Gets the list of artists of the application. | 456 | // Gets the list of artists of the application. | ||
| 439 | func (x *AboutWindow) GetArtists() []string { | 457 | func (x *AboutWindow) GetArtists() []string { | ||
| 458 | + | core.LazyRegister(&xAboutWindowGetArtists, "ADW", "adw_about_window_get_artists", false) | |||
| 459 | + | ||||
| 440 | cret := xAboutWindowGetArtists(x.GoPointer()) | 460 | cret := xAboutWindowGetArtists(x.GoPointer()) | ||
| 441 | return cret | 461 | return cret | ||
| 442 | } | 462 | } | ||
| @@ -445,6 +465,8 @@ var xAboutWindowGetComments func(uintptr) string | |||||
| 445 | 465 | ||||
| 446 | // Gets the comments about the application. | 466 | // Gets the comments about the application. | ||
| 447 | func (x *AboutWindow) GetComments() string { | 467 | func (x *AboutWindow) GetComments() string { | ||
| 468 | + | core.LazyRegister(&xAboutWindowGetComments, "ADW", "adw_about_window_get_comments", false) | |||
| 469 | + | ||||
| 448 | cret := xAboutWindowGetComments(x.GoPointer()) | 470 | cret := xAboutWindowGetComments(x.GoPointer()) | ||
| 449 | return cret | 471 | return cret | ||
| 450 | } | 472 | } | ||
| @@ -453,6 +475,8 @@ var xAboutWindowGetCopyright func(uintptr) string | |||||
| 453 | 475 | ||||
| 454 | // Gets the copyright information for @self. | 476 | // Gets the copyright information for @self. | ||
| 455 | func (x *AboutWindow) GetCopyright() string { | 477 | func (x *AboutWindow) GetCopyright() string { | ||
| 478 | + | core.LazyRegister(&xAboutWindowGetCopyright, "ADW", "adw_about_window_get_copyright", false) | |||
| 479 | + | ||||
| 456 | cret := xAboutWindowGetCopyright(x.GoPointer()) | 480 | cret := xAboutWindowGetCopyright(x.GoPointer()) | ||
| 457 | return cret | 481 | return cret | ||
| 458 | } | 482 | } | ||
| @@ -461,6 +485,8 @@ var xAboutWindowGetDebugInfo func(uintptr) string | |||||
| 461 | 485 | ||||
| 462 | // Gets the debug information for @self. | 486 | // Gets the debug information for @self. | ||
| 463 | func (x *AboutWindow) GetDebugInfo() string { | 487 | func (x *AboutWindow) GetDebugInfo() string { | ||
| 488 | + | core.LazyRegister(&xAboutWindowGetDebugInfo, "ADW", "adw_about_window_get_debug_info", false) | |||
| 489 | + | ||||
| 464 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | 490 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | ||
| 465 | return cret | 491 | return cret | ||
| 466 | } | 492 | } | ||
| @@ -469,6 +495,8 @@ var xAboutWindowGetDebugInfoFilename func(uintptr) string | |||||
| 469 | 495 | ||||
| 470 | // Gets the debug information filename for @self. | 496 | // Gets the debug information filename for @self. | ||
| 471 | func (x *AboutWindow) GetDebugInfoFilename() string { | 497 | func (x *AboutWindow) GetDebugInfoFilename() string { | ||
| 498 | + | core.LazyRegister(&xAboutWindowGetDebugInfoFilename, "ADW", "adw_about_window_get_debug_info_filename", false) | |||
| 499 | + | ||||
| 472 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | 500 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | ||
| 473 | return cret | 501 | return cret | ||
| 474 | } | 502 | } | ||
| @@ -477,6 +505,8 @@ var xAboutWindowGetDesigners func(uintptr) []string | |||||
| 477 | 505 | ||||
| 478 | // Gets the list of designers of the application. | 506 | // Gets the list of designers of the application. | ||
| 479 | func (x *AboutWindow) GetDesigners() []string { | 507 | func (x *AboutWindow) GetDesigners() []string { | ||
| 508 | + | core.LazyRegister(&xAboutWindowGetDesigners, "ADW", "adw_about_window_get_designers", false) | |||
| 509 | + | ||||
| 480 | cret := xAboutWindowGetDesigners(x.GoPointer()) | 510 | cret := xAboutWindowGetDesigners(x.GoPointer()) | ||
| 481 | return cret | 511 | return cret | ||
| 482 | } | 512 | } | ||
| @@ -485,6 +515,8 @@ var xAboutWindowGetDeveloperName func(uintptr) string | |||||
| 485 | 515 | ||||
| 486 | // Gets the developer name for @self. | 516 | // Gets the developer name for @self. | ||
| 487 | func (x *AboutWindow) GetDeveloperName() string { | 517 | func (x *AboutWindow) GetDeveloperName() string { | ||
| 518 | + | core.LazyRegister(&xAboutWindowGetDeveloperName, "ADW", "adw_about_window_get_developer_name", false) | |||
| 519 | + | ||||
| 488 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | 520 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | ||
| 489 | return cret | 521 | return cret | ||
| 490 | } | 522 | } | ||
| @@ -493,6 +525,8 @@ var xAboutWindowGetDevelopers func(uintptr) []string | |||||
| 493 | 525 | ||||
| 494 | // Gets the list of developers of the application. | 526 | // Gets the list of developers of the application. | ||
| 495 | func (x *AboutWindow) GetDevelopers() []string { | 527 | func (x *AboutWindow) GetDevelopers() []string { | ||
| 528 | + | core.LazyRegister(&xAboutWindowGetDevelopers, "ADW", "adw_about_window_get_developers", false) | |||
| 529 | + | ||||
| 496 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | 530 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | ||
| 497 | return cret | 531 | return cret | ||
| 498 | } | 532 | } | ||
| @@ -501,6 +535,8 @@ var xAboutWindowGetDocumenters func(uintptr) []string | |||||
| 501 | 535 | ||||
| 502 | // Gets the list of documenters of the application. | 536 | // Gets the list of documenters of the application. | ||
| 503 | func (x *AboutWindow) GetDocumenters() []string { | 537 | func (x *AboutWindow) GetDocumenters() []string { | ||
| 538 | + | core.LazyRegister(&xAboutWindowGetDocumenters, "ADW", "adw_about_window_get_documenters", false) | |||
| 539 | + | ||||
| 504 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | 540 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | ||
| 505 | return cret | 541 | return cret | ||
| 506 | } | 542 | } | ||
| @@ -509,6 +545,8 @@ var xAboutWindowGetIssueUrl func(uintptr) string | |||||
| 509 | 545 | ||||
| 510 | // Gets the issue tracker URL for @self. | 546 | // Gets the issue tracker URL for @self. | ||
| 511 | func (x *AboutWindow) GetIssueUrl() string { | 547 | func (x *AboutWindow) GetIssueUrl() string { | ||
| 548 | + | core.LazyRegister(&xAboutWindowGetIssueUrl, "ADW", "adw_about_window_get_issue_url", false) | |||
| 549 | + | ||||
| 512 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | 550 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | ||
| 513 | return cret | 551 | return cret | ||
| 514 | } | 552 | } | ||
| @@ -517,6 +555,8 @@ var xAboutWindowGetLicense func(uintptr) string | |||||
| 517 | 555 | ||||
| 518 | // Gets the license for @self. | 556 | // Gets the license for @self. | ||
| 519 | func (x *AboutWindow) GetLicense() string { | 557 | func (x *AboutWindow) GetLicense() string { | ||
| 558 | + | core.LazyRegister(&xAboutWindowGetLicense, "ADW", "adw_about_window_get_license", false) | |||
| 559 | + | ||||
| 520 | cret := xAboutWindowGetLicense(x.GoPointer()) | 560 | cret := xAboutWindowGetLicense(x.GoPointer()) | ||
| 521 | return cret | 561 | return cret | ||
| 522 | } | 562 | } | ||
| @@ -525,6 +565,8 @@ var xAboutWindowGetLicenseType func(uintptr) gtk.License | |||||
| 525 | 565 | ||||
| 526 | // Gets the license type for @self. | 566 | // Gets the license type for @self. | ||
| 527 | func (x *AboutWindow) GetLicenseType() gtk.License { | 567 | func (x *AboutWindow) GetLicenseType() gtk.License { | ||
| 568 | + | core.LazyRegister(&xAboutWindowGetLicenseType, "ADW", "adw_about_window_get_license_type", false) | |||
| 569 | + | ||||
| 528 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | 570 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | ||
| 529 | return cret | 571 | return cret | ||
| 530 | } | 572 | } | ||
| @@ -533,6 +575,8 @@ var xAboutWindowGetReleaseNotes func(uintptr) string | |||||
| 533 | 575 | ||||
| 534 | // Gets the release notes for @self. | 576 | // Gets the release notes for @self. | ||
| 535 | func (x *AboutWindow) GetReleaseNotes() string { | 577 | func (x *AboutWindow) GetReleaseNotes() string { | ||
| 578 | + | core.LazyRegister(&xAboutWindowGetReleaseNotes, "ADW", "adw_about_window_get_release_notes", false) | |||
| 579 | + | ||||
| 536 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | 580 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | ||
| 537 | return cret | 581 | return cret | ||
| 538 | } | 582 | } | ||
| @@ -541,6 +585,8 @@ var xAboutWindowGetReleaseNotesVersion func(uintptr) string | |||||
| 541 | 585 | ||||
| 542 | // Gets the version described by the application's release notes. | 586 | // Gets the version described by the application's release notes. | ||
| 543 | func (x *AboutWindow) GetReleaseNotesVersion() string { | 587 | func (x *AboutWindow) GetReleaseNotesVersion() string { | ||
| 588 | + | core.LazyRegister(&xAboutWindowGetReleaseNotesVersion, "ADW", "adw_about_window_get_release_notes_version", false) | |||
| 589 | + | ||||
| 544 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | 590 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | ||
| 545 | return cret | 591 | return cret | ||
| 546 | } | 592 | } | ||
| @@ -549,6 +595,8 @@ var xAboutWindowGetSupportUrl func(uintptr) string | |||||
| 549 | 595 | ||||
| 550 | // Gets the URL of the support page for @self. | 596 | // Gets the URL of the support page for @self. | ||
| 551 | func (x *AboutWindow) GetSupportUrl() string { | 597 | func (x *AboutWindow) GetSupportUrl() string { | ||
| 598 | + | core.LazyRegister(&xAboutWindowGetSupportUrl, "ADW", "adw_about_window_get_support_url", false) | |||
| 599 | + | ||||
| 552 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | 600 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | ||
| 553 | return cret | 601 | return cret | ||
| 554 | } | 602 | } | ||
| @@ -557,6 +605,8 @@ var xAboutWindowGetTranslatorCredits func(uintptr) string | |||||
| 557 | 605 | ||||
| 558 | // Gets the translator credits string. | 606 | // Gets the translator credits string. | ||
| 559 | func (x *AboutWindow) GetTranslatorCredits() string { | 607 | func (x *AboutWindow) GetTranslatorCredits() string { | ||
| 608 | + | core.LazyRegister(&xAboutWindowGetTranslatorCredits, "ADW", "adw_about_window_get_translator_credits", false) | |||
| 609 | + | ||||
| 560 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | 610 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | ||
| 561 | return cret | 611 | return cret | ||
| 562 | } | 612 | } | ||
| @@ -565,6 +615,8 @@ var xAboutWindowGetVersion func(uintptr) string | |||||
| 565 | 615 | ||||
| 566 | // Gets the version for @self. | 616 | // Gets the version for @self. | ||
| 567 | func (x *AboutWindow) GetVersion() string { | 617 | func (x *AboutWindow) GetVersion() string { | ||
| 618 | + | core.LazyRegister(&xAboutWindowGetVersion, "ADW", "adw_about_window_get_version", false) | |||
| 619 | + | ||||
| 568 | cret := xAboutWindowGetVersion(x.GoPointer()) | 620 | cret := xAboutWindowGetVersion(x.GoPointer()) | ||
| 569 | return cret | 621 | return cret | ||
| 570 | } | 622 | } | ||
| @@ -573,6 +625,8 @@ var xAboutWindowGetWebsite func(uintptr) string | |||||
| 573 | 625 | ||||
| 574 | // Gets the application website URL for @self. | 626 | // Gets the application website URL for @self. | ||
| 575 | func (x *AboutWindow) GetWebsite() string { | 627 | func (x *AboutWindow) GetWebsite() string { | ||
| 628 | + | core.LazyRegister(&xAboutWindowGetWebsite, "ADW", "adw_about_window_get_website", false) | |||
| 629 | + | ||||
| 576 | cret := xAboutWindowGetWebsite(x.GoPointer()) | 630 | cret := xAboutWindowGetWebsite(x.GoPointer()) | ||
| 577 | return cret | 631 | return cret | ||
| 578 | } | 632 | } | ||
| @@ -583,6 +637,8 @@ var xAboutWindowSetApplicationIcon func(uintptr, string) | |||||
| 583 | // | 637 | // | ||
| 584 | // The icon is displayed at the top of the main page. | 638 | // The icon is displayed at the top of the main page. | ||
| 585 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | 639 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | ||
| 640 | + | core.LazyRegister(&xAboutWindowSetApplicationIcon, "ADW", "adw_about_window_set_application_icon", false) | |||
| 641 | + | ||||
| 586 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | 642 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | ||
| 587 | } | 643 | } | ||
| 588 | 644 | ||||
| @@ -592,6 +648,8 @@ var xAboutWindowSetApplicationName func(uintptr, string) | |||||
| 592 | // | 648 | // | ||
| 593 | // The name is displayed at the top of the main page. | 649 | // The name is displayed at the top of the main page. | ||
| 594 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | 650 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | ||
| 651 | + | core.LazyRegister(&xAboutWindowSetApplicationName, "ADW", "adw_about_window_set_application_name", false) | |||
| 652 | + | ||||
| 595 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | 653 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | ||
| 596 | } | 654 | } | ||
| 597 | 655 | ||||
| @@ -613,6 +671,8 @@ var xAboutWindowSetArtists func(uintptr, []string) | |||||
| 613 | // * [method@AboutWindow.add_credit_section] | 671 | // * [method@AboutWindow.add_credit_section] | ||
| 614 | // * [method@AboutWindow.add_acknowledgement_section] | 672 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 615 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | 673 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | ||
| 674 | + | core.LazyRegister(&xAboutWindowSetArtists, "ADW", "adw_about_window_set_artists", false) | |||
| 675 | + | ||||
| 616 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | 676 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | ||
| 617 | } | 677 | } | ||
| 618 | 678 | ||||
| @@ -625,6 +685,8 @@ var xAboutWindowSetComments func(uintptr, string) | |||||
| 625 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | 685 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | ||
| 626 | // detailed. It can also contain links and Pango markup. | 686 | // detailed. It can also contain links and Pango markup. | ||
| 627 | func (x *AboutWindow) SetComments(CommentsVar string) { | 687 | func (x *AboutWindow) SetComments(CommentsVar string) { | ||
| 688 | + | core.LazyRegister(&xAboutWindowSetComments, "ADW", "adw_about_window_set_comments", false) | |||
| 689 | + | ||||
| 628 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | 690 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | ||
| 629 | } | 691 | } | ||
| 630 | 692 | ||||
| @@ -641,6 +703,8 @@ var xAboutWindowSetCopyright func(uintptr, string) | |||||
| 641 | // [method@AboutWindow.add_legal_section] can be used to add copyright | 703 | // [method@AboutWindow.add_legal_section] can be used to add copyright | ||
| 642 | // information for the application dependencies or other components. | 704 | // information for the application dependencies or other components. | ||
| 643 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | 705 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | ||
| 706 | + | core.LazyRegister(&xAboutWindowSetCopyright, "ADW", "adw_about_window_set_copyright", false) | |||
| 707 | + | ||||
| 644 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | 708 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | ||
| 645 | } | 709 | } | ||
| 646 | 710 | ||||
| @@ -658,6 +722,8 @@ var xAboutWindowSetDebugInfo func(uintptr, string) | |||||
| 658 | // | 722 | // | ||
| 659 | // Debug information cannot contain markup or links. | 723 | // Debug information cannot contain markup or links. | ||
| 660 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | 724 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | ||
| 725 | + | core.LazyRegister(&xAboutWindowSetDebugInfo, "ADW", "adw_about_window_set_debug_info", false) | |||
| 726 | + | ||||
| 661 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | 727 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | ||
| 662 | } | 728 | } | ||
| 663 | 729 | ||||
| @@ -670,6 +736,8 @@ var xAboutWindowSetDebugInfoFilename func(uintptr, string) | |||||
| 670 | // | 736 | // | ||
| 671 | // See [property@AboutWindow:debug-info]. | 737 | // See [property@AboutWindow:debug-info]. | ||
| 672 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | 738 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | ||
| 739 | + | core.LazyRegister(&xAboutWindowSetDebugInfoFilename, "ADW", "adw_about_window_set_debug_info_filename", false) | |||
| 740 | + | ||||
| 673 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | 741 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | ||
| 674 | } | 742 | } | ||
| 675 | 743 | ||||
| @@ -691,6 +759,8 @@ var xAboutWindowSetDesigners func(uintptr, []string) | |||||
| 691 | // * [method@AboutWindow.add_credit_section] | 759 | // * [method@AboutWindow.add_credit_section] | ||
| 692 | // * [method@AboutWindow.add_acknowledgement_section] | 760 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 693 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | 761 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | ||
| 762 | + | core.LazyRegister(&xAboutWindowSetDesigners, "ADW", "adw_about_window_set_designers", false) | |||
| 763 | + | ||||
| 694 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | 764 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | ||
| 695 | } | 765 | } | ||
| 696 | 766 | ||||
| @@ -705,6 +775,8 @@ var xAboutWindowSetDeveloperName func(uintptr, string) | |||||
| 705 | // "The AppName project", and the individual contributors can be listed on the | 775 | // "The AppName project", and the individual contributors can be listed on the | ||
| 706 | // Credits page, with [property@AboutWindow:developers] and related properties. | 776 | // Credits page, with [property@AboutWindow:developers] and related properties. | ||
| 707 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | 777 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | ||
| 778 | + | core.LazyRegister(&xAboutWindowSetDeveloperName, "ADW", "adw_about_window_set_developer_name", false) | |||
| 779 | + | ||||
| 708 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | 780 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | ||
| 709 | } | 781 | } | ||
| 710 | 782 | ||||
| @@ -726,6 +798,8 @@ var xAboutWindowSetDevelopers func(uintptr, []string) | |||||
| 726 | // * [method@AboutWindow.add_credit_section] | 798 | // * [method@AboutWindow.add_credit_section] | ||
| 727 | // * [method@AboutWindow.add_acknowledgement_section] | 799 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 728 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | 800 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | ||
| 801 | + | core.LazyRegister(&xAboutWindowSetDevelopers, "ADW", "adw_about_window_set_developers", false) | |||
| 802 | + | ||||
| 729 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | 803 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | ||
| 730 | } | 804 | } | ||
| 731 | 805 | ||||
| @@ -747,6 +821,8 @@ var xAboutWindowSetDocumenters func(uintptr, []string) | |||||
| 747 | // * [method@AboutWindow.add_credit_section] | 821 | // * [method@AboutWindow.add_credit_section] | ||
| 748 | // * [method@AboutWindow.add_acknowledgement_section] | 822 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 749 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | 823 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | ||
| 824 | + | core.LazyRegister(&xAboutWindowSetDocumenters, "ADW", "adw_about_window_set_documenters", false) | |||
| 825 | + | ||||
| 750 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | 826 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | ||
| 751 | } | 827 | } | ||
| 752 | 828 | ||||
| @@ -756,6 +832,8 @@ var xAboutWindowSetIssueUrl func(uintptr, string) | |||||
| 756 | // | 832 | // | ||
| 757 | // The issue tracker link is displayed on the main page. | 833 | // The issue tracker link is displayed on the main page. | ||
| 758 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | 834 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | ||
| 835 | + | core.LazyRegister(&xAboutWindowSetIssueUrl, "ADW", "adw_about_window_set_issue_url", false) | |||
| 836 | + | ||||
| 759 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | 837 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | ||
| 760 | } | 838 | } | ||
| 761 | 839 | ||||
| @@ -777,6 +855,8 @@ var xAboutWindowSetLicense func(uintptr, string) | |||||
| 777 | // [method@AboutWindow.add_legal_section] can be used to add license information | 855 | // [method@AboutWindow.add_legal_section] can be used to add license information | ||
| 778 | // for the application dependencies or other components. | 856 | // for the application dependencies or other components. | ||
| 779 | func (x *AboutWindow) SetLicense(LicenseVar string) { | 857 | func (x *AboutWindow) SetLicense(LicenseVar string) { | ||
| 858 | + | core.LazyRegister(&xAboutWindowSetLicense, "ADW", "adw_about_window_set_license", false) | |||
| 859 | + | ||||
| 780 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | 860 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | ||
| 781 | } | 861 | } | ||
| 782 | 862 | ||||
| @@ -799,6 +879,8 @@ var xAboutWindowSetLicenseType func(uintptr, gtk.License) | |||||
| 799 | // [method@AboutWindow.add_legal_section] can be used to add license information | 879 | // [method@AboutWindow.add_legal_section] can be used to add license information | ||
| 800 | // for the application dependencies or other components. | 880 | // for the application dependencies or other components. | ||
| 801 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | 881 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | ||
| 882 | + | core.LazyRegister(&xAboutWindowSetLicenseType, "ADW", "adw_about_window_set_license_type", false) | |||
| 883 | + | ||||
| 802 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | 884 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | ||
| 803 | } | 885 | } | ||
| 804 | 886 | ||||
| @@ -829,6 +911,8 @@ var xAboutWindowSetReleaseNotes func(uintptr, string) | |||||
| 829 | // [property@AboutWindow:release-notes-version] of the property will be used | 911 | // [property@AboutWindow:release-notes-version] of the property will be used | ||
| 830 | // as the version; otherwise, [property@AboutWindow:version] is used. | 912 | // as the version; otherwise, [property@AboutWindow:version] is used. | ||
| 831 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | 913 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | ||
| 914 | + | core.LazyRegister(&xAboutWindowSetReleaseNotes, "ADW", "adw_about_window_set_release_notes", false) | |||
| 915 | + | ||||
| 832 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | 916 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | ||
| 833 | } | 917 | } | ||
| 834 | 918 | ||||
| @@ -847,6 +931,8 @@ var xAboutWindowSetReleaseNotesVersion func(uintptr, string) | |||||
| 847 | // | 931 | // | ||
| 848 | // See [property@AboutWindow:release-notes]. | 932 | // See [property@AboutWindow:release-notes]. | ||
| 849 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | 933 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | ||
| 934 | + | core.LazyRegister(&xAboutWindowSetReleaseNotesVersion, "ADW", "adw_about_window_set_release_notes_version", false) | |||
| 935 | + | ||||
| 850 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | 936 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | ||
| 851 | } | 937 | } | ||
| 852 | 938 | ||||
| @@ -856,6 +942,8 @@ var xAboutWindowSetSupportUrl func(uintptr, string) | |||||
| 856 | // | 942 | // | ||
| 857 | // The support page link is displayed on the main page. | 943 | // The support page link is displayed on the main page. | ||
| 858 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | 944 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | ||
| 945 | + | core.LazyRegister(&xAboutWindowSetSupportUrl, "ADW", "adw_about_window_set_support_url", false) | |||
| 946 | + | ||||
| 859 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | 947 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | ||
| 860 | } | 948 | } | ||
| 861 | 949 | ||||
| @@ -881,6 +969,8 @@ var xAboutWindowSetTranslatorCredits func(uintptr, string) | |||||
| 881 | // * [method@AboutWindow.add_credit_section] | 969 | // * [method@AboutWindow.add_credit_section] | ||
| 882 | // * [method@AboutWindow.add_acknowledgement_section] | 970 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 883 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | 971 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | ||
| 972 | + | core.LazyRegister(&xAboutWindowSetTranslatorCredits, "ADW", "adw_about_window_set_translator_credits", false) | |||
| 973 | + | ||||
| 884 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | 974 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | ||
| 885 | } | 975 | } | ||
| 886 | 976 | ||||
| @@ -893,6 +983,8 @@ var xAboutWindowSetVersion func(uintptr, string) | |||||
| 893 | // If [property@AboutWindow:release-notes-version] is not set, the version will | 983 | // If [property@AboutWindow:release-notes-version] is not set, the version will | ||
| 894 | // also be displayed above the release notes on the What's New page. | 984 | // also be displayed above the release notes on the What's New page. | ||
| 895 | func (x *AboutWindow) SetVersion(VersionVar string) { | 985 | func (x *AboutWindow) SetVersion(VersionVar string) { | ||
| 986 | + | core.LazyRegister(&xAboutWindowSetVersion, "ADW", "adw_about_window_set_version", false) | |||
| 987 | + | ||||
| 896 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | 988 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | ||
| 897 | } | 989 | } | ||
| 898 | 990 | ||||
| @@ -905,6 +997,8 @@ var xAboutWindowSetWebsite func(uintptr, string) | |||||
| 905 | // | 997 | // | ||
| 906 | // Applications can add other links below, see [method@AboutWindow.add_link]. | 998 | // Applications can add other links below, see [method@AboutWindow.add_link]. | ||
| 907 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | 999 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | ||
| 1000 | + | core.LazyRegister(&xAboutWindowSetWebsite, "ADW", "adw_about_window_set_website", false) | |||
| 1001 | + | ||||
| 908 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | 1002 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | ||
| 909 | } | 1003 | } | ||
| 910 | 1004 | ||||
| @@ -1986,65 +2080,4 @@ func (x *AboutWindow) SetFocus(FocusVar *gtk.Widget) { | |||||
| 1986 | func init() { | 2080 | func init() { | ||
| 1987 | core.SetPackageName("ADW", "libadwaita-1") | 2081 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1988 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 2082 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1989 | - | var libs []uintptr | |||
| 1990 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 1991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1992 | - | if err != nil { | |||
| 1993 | - | panic(err) | |||
| 1994 | - | } | |||
| 1995 | - | libs = append(libs, lib) | |||
| 1996 | - | } | |||
| 1997 | - | ||||
| 1998 | - | core.PuregoSafeRegister(&xShowAboutWindow, libs, "adw_show_about_window") | |||
| 1999 | - | core.PuregoSafeRegister(&xShowAboutWindowFromAppdata, libs, "adw_show_about_window_from_appdata") | |||
| 2000 | - | ||||
| 2001 | - | core.PuregoSafeRegister(&xAboutWindowGLibType, libs, "adw_about_window_get_type") | |||
| 2002 | - | ||||
| 2003 | - | core.PuregoSafeRegister(&xNewAboutWindow, libs, "adw_about_window_new") | |||
| 2004 | - | core.PuregoSafeRegister(&xNewAboutWindowFromAppdata, libs, "adw_about_window_new_from_appdata") | |||
| 2005 | - | ||||
| 2006 | - | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, libs, "adw_about_window_add_acknowledgement_section") | |||
| 2007 | - | core.PuregoSafeRegister(&xAboutWindowAddCreditSection, libs, "adw_about_window_add_credit_section") | |||
| 2008 | - | core.PuregoSafeRegister(&xAboutWindowAddLegalSection, libs, "adw_about_window_add_legal_section") | |||
| 2009 | - | core.PuregoSafeRegister(&xAboutWindowAddLink, libs, "adw_about_window_add_link") | |||
| 2010 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationIcon, libs, "adw_about_window_get_application_icon") | |||
| 2011 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationName, libs, "adw_about_window_get_application_name") | |||
| 2012 | - | core.PuregoSafeRegister(&xAboutWindowGetArtists, libs, "adw_about_window_get_artists") | |||
| 2013 | - | core.PuregoSafeRegister(&xAboutWindowGetComments, libs, "adw_about_window_get_comments") | |||
| 2014 | - | core.PuregoSafeRegister(&xAboutWindowGetCopyright, libs, "adw_about_window_get_copyright") | |||
| 2015 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfo, libs, "adw_about_window_get_debug_info") | |||
| 2016 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfoFilename, libs, "adw_about_window_get_debug_info_filename") | |||
| 2017 | - | core.PuregoSafeRegister(&xAboutWindowGetDesigners, libs, "adw_about_window_get_designers") | |||
| 2018 | - | core.PuregoSafeRegister(&xAboutWindowGetDeveloperName, libs, "adw_about_window_get_developer_name") | |||
| 2019 | - | core.PuregoSafeRegister(&xAboutWindowGetDevelopers, libs, "adw_about_window_get_developers") | |||
| 2020 | - | core.PuregoSafeRegister(&xAboutWindowGetDocumenters, libs, "adw_about_window_get_documenters") | |||
| 2021 | - | core.PuregoSafeRegister(&xAboutWindowGetIssueUrl, libs, "adw_about_window_get_issue_url") | |||
| 2022 | - | core.PuregoSafeRegister(&xAboutWindowGetLicense, libs, "adw_about_window_get_license") | |||
| 2023 | - | core.PuregoSafeRegister(&xAboutWindowGetLicenseType, libs, "adw_about_window_get_license_type") | |||
| 2024 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotes, libs, "adw_about_window_get_release_notes") | |||
| 2025 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotesVersion, libs, "adw_about_window_get_release_notes_version") | |||
| 2026 | - | core.PuregoSafeRegister(&xAboutWindowGetSupportUrl, libs, "adw_about_window_get_support_url") | |||
| 2027 | - | core.PuregoSafeRegister(&xAboutWindowGetTranslatorCredits, libs, "adw_about_window_get_translator_credits") | |||
| 2028 | - | core.PuregoSafeRegister(&xAboutWindowGetVersion, libs, "adw_about_window_get_version") | |||
| 2029 | - | core.PuregoSafeRegister(&xAboutWindowGetWebsite, libs, "adw_about_window_get_website") | |||
| 2030 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationIcon, libs, "adw_about_window_set_application_icon") | |||
| 2031 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationName, libs, "adw_about_window_set_application_name") | |||
| 2032 | - | core.PuregoSafeRegister(&xAboutWindowSetArtists, libs, "adw_about_window_set_artists") | |||
| 2033 | - | core.PuregoSafeRegister(&xAboutWindowSetComments, libs, "adw_about_window_set_comments") | |||
| 2034 | - | core.PuregoSafeRegister(&xAboutWindowSetCopyright, libs, "adw_about_window_set_copyright") | |||
| 2035 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfo, libs, "adw_about_window_set_debug_info") | |||
| 2036 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfoFilename, libs, "adw_about_window_set_debug_info_filename") | |||
| 2037 | - | core.PuregoSafeRegister(&xAboutWindowSetDesigners, libs, "adw_about_window_set_designers") | |||
| 2038 | - | core.PuregoSafeRegister(&xAboutWindowSetDeveloperName, libs, "adw_about_window_set_developer_name") | |||
| 2039 | - | core.PuregoSafeRegister(&xAboutWindowSetDevelopers, libs, "adw_about_window_set_developers") | |||
| 2040 | - | core.PuregoSafeRegister(&xAboutWindowSetDocumenters, libs, "adw_about_window_set_documenters") | |||
| 2041 | - | core.PuregoSafeRegister(&xAboutWindowSetIssueUrl, libs, "adw_about_window_set_issue_url") | |||
| 2042 | - | core.PuregoSafeRegister(&xAboutWindowSetLicense, libs, "adw_about_window_set_license") | |||
| 2043 | - | core.PuregoSafeRegister(&xAboutWindowSetLicenseType, libs, "adw_about_window_set_license_type") | |||
| 2044 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotes, libs, "adw_about_window_set_release_notes") | |||
| 2045 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotesVersion, libs, "adw_about_window_set_release_notes_version") | |||
| 2046 | - | core.PuregoSafeRegister(&xAboutWindowSetSupportUrl, libs, "adw_about_window_set_support_url") | |||
| 2047 | - | core.PuregoSafeRegister(&xAboutWindowSetTranslatorCredits, libs, "adw_about_window_set_translator_credits") | |||
| 2048 | - | core.PuregoSafeRegister(&xAboutWindowSetVersion, libs, "adw_about_window_set_version") | |||
| 2049 | - | core.PuregoSafeRegister(&xAboutWindowSetWebsite, libs, "adw_about_window_set_website") | |||
| 2050 | } | 2083 | } | ||