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
| @@ -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/glib" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -35,6 +34,8 @@ var xShowAboutDialog func(uintptr, string, ...interface{}) | |||
| 35 | 34 | ||
| 36 | 35 | // A convenience function for showing an application’s about dialog. | |
| 37 | 36 | func ShowAboutDialog(ParentVar *gtk.Widget, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 37 | + | core.LazyRegister(&xShowAboutDialog, "ADW", "adw_show_about_dialog", false) | |
| 38 | + | ||
| 38 | 39 | xShowAboutDialog(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | |
| 39 | 40 | } | |
| 40 | 41 | ||
| @@ -45,6 +46,8 @@ var xShowAboutDialogFromAppdata func(uintptr, string, uintptr, string, ...interf | |||
| 45 | 46 | // | |
| 46 | 47 | // See [ctor@AboutDialog.new_from_appdata] for details. | |
| 47 | 48 | func ShowAboutDialogFromAppdata(ParentVar *gtk.Widget, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 49 | + | core.LazyRegister(&xShowAboutDialogFromAppdata, "ADW", "adw_show_about_dialog_from_appdata", false) | |
| 50 | + | ||
| 48 | 51 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 49 | 52 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 50 | 53 | ||
| @@ -234,6 +237,7 @@ type AboutDialog struct { | |||
| 234 | 237 | var xAboutDialogGLibType func() types.GType | |
| 235 | 238 | ||
| 236 | 239 | func AboutDialogGLibType() types.GType { | |
| 240 | + | core.LazyRegister(&xAboutDialogGLibType, "ADW", "adw_about_dialog_get_type", false) | |
| 237 | 241 | return xAboutDialogGLibType() | |
| 238 | 242 | } | |
| 239 | 243 | ||
| @@ -247,6 +251,7 @@ var xNewAboutDialog func() uintptr | |||
| 247 | 251 | ||
| 248 | 252 | // Creates a new `AdwAboutDialog`. | |
| 249 | 253 | func NewAboutDialog() *AboutDialog { | |
| 254 | + | core.LazyRegister(&xNewAboutDialog, "ADW", "adw_about_dialog_new", false) | |
| 250 | 255 | var cls *AboutDialog | |
| 251 | 256 | ||
| 252 | 257 | cret := xNewAboutDialog() | |
| @@ -284,6 +289,7 @@ var xNewAboutDialogFromAppdata func(string, uintptr) uintptr | |||
| 284 | 289 | // [property@AboutDialog:release-notes] is set from the AppStream release | |
| 285 | 290 | // description for that version. | |
| 286 | 291 | func NewAboutDialogFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutDialog { | |
| 292 | + | core.LazyRegister(&xNewAboutDialogFromAppdata, "ADW", "adw_about_dialog_new_from_appdata", false) | |
| 287 | 293 | var cls *AboutDialog | |
| 288 | 294 | ||
| 289 | 295 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| @@ -320,6 +326,8 @@ var xAboutDialogAddAcknowledgementSection func(uintptr, uintptr, []string) | |||
| 320 | 326 | // * [property@AboutDialog:translator-credits] | |
| 321 | 327 | // * [method@AboutDialog.add_credit_section] | |
| 322 | 328 | func (x *AboutDialog) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | |
| 329 | + | core.LazyRegister(&xAboutDialogAddAcknowledgementSection, "ADW", "adw_about_dialog_add_acknowledgement_section", false) | |
| 330 | + | ||
| 323 | 331 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 324 | 332 | defer core.GFreeNullable(NameVarPtr) | |
| 325 | 333 | ||
| @@ -344,6 +352,8 @@ var xAboutDialogAddCreditSection func(uintptr, uintptr, []string) | |||
| 344 | 352 | // * [property@AboutDialog:translator-credits] | |
| 345 | 353 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 346 | 354 | func (x *AboutDialog) AddCreditSection(NameVar *string, PeopleVar []string) { | |
| 355 | + | core.LazyRegister(&xAboutDialogAddCreditSection, "ADW", "adw_about_dialog_add_credit_section", false) | |
| 356 | + | ||
| 347 | 357 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 348 | 358 | defer core.GFreeNullable(NameVarPtr) | |
| 349 | 359 | ||
| @@ -398,6 +408,8 @@ var xAboutDialogAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||
| 398 | 408 | // | |
| 399 | 409 | // ``` | |
| 400 | 410 | func (x *AboutDialog) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | |
| 411 | + | core.LazyRegister(&xAboutDialogAddLegalSection, "ADW", "adw_about_dialog_add_legal_section", false) | |
| 412 | + | ||
| 401 | 413 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | |
| 402 | 414 | defer core.GFreeNullable(CopyrightVarPtr) | |
| 403 | 415 | ||
| @@ -417,6 +429,8 @@ var xAboutDialogAddLink func(uintptr, string, string) | |||
| 417 | 429 | // | |
| 418 | 430 | // See [property@AboutDialog:website]. | |
| 419 | 431 | func (x *AboutDialog) AddLink(TitleVar string, UrlVar string) { | |
| 432 | + | core.LazyRegister(&xAboutDialogAddLink, "ADW", "adw_about_dialog_add_link", false) | |
| 433 | + | ||
| 420 | 434 | xAboutDialogAddLink(x.GoPointer(), TitleVar, UrlVar) | |
| 421 | 435 | } | |
| 422 | 436 | ||
| @@ -442,6 +456,8 @@ var xAboutDialogAddOtherApp func(uintptr, string, string, string) | |||
| 442 | 456 | // | |
| 443 | 457 | // ``` | |
| 444 | 458 | func (x *AboutDialog) AddOtherApp(AppidVar string, NameVar string, SummaryVar string) { | |
| 459 | + | core.LazyRegister(&xAboutDialogAddOtherApp, "ADW", "adw_about_dialog_add_other_app", false) | |
| 460 | + | ||
| 445 | 461 | xAboutDialogAddOtherApp(x.GoPointer(), AppidVar, NameVar, SummaryVar) | |
| 446 | 462 | } | |
| 447 | 463 | ||
| @@ -449,6 +465,8 @@ var xAboutDialogGetAppdataResourcePath func(uintptr) string | |||
| 449 | 465 | ||
| 450 | 466 | // Gets the AppStream metadata resource path for @self. | |
| 451 | 467 | func (x *AboutDialog) GetAppdataResourcePath() string { | |
| 468 | + | core.LazyRegister(&xAboutDialogGetAppdataResourcePath, "ADW", "adw_about_dialog_get_appdata_resource_path", false) | |
| 469 | + | ||
| 452 | 470 | cret := xAboutDialogGetAppdataResourcePath(x.GoPointer()) | |
| 453 | 471 | return cret | |
| 454 | 472 | } | |
| @@ -457,6 +475,8 @@ var xAboutDialogGetApplicationIcon func(uintptr) string | |||
| 457 | 475 | ||
| 458 | 476 | // Gets the name of the application icon for @self. | |
| 459 | 477 | func (x *AboutDialog) GetApplicationIcon() string { | |
| 478 | + | core.LazyRegister(&xAboutDialogGetApplicationIcon, "ADW", "adw_about_dialog_get_application_icon", false) | |
| 479 | + | ||
| 460 | 480 | cret := xAboutDialogGetApplicationIcon(x.GoPointer()) | |
| 461 | 481 | return cret | |
| 462 | 482 | } | |
| @@ -465,6 +485,8 @@ var xAboutDialogGetApplicationName func(uintptr) string | |||
| 465 | 485 | ||
| 466 | 486 | // Gets the application name for @self. | |
| 467 | 487 | func (x *AboutDialog) GetApplicationName() string { | |
| 488 | + | core.LazyRegister(&xAboutDialogGetApplicationName, "ADW", "adw_about_dialog_get_application_name", false) | |
| 489 | + | ||
| 468 | 490 | cret := xAboutDialogGetApplicationName(x.GoPointer()) | |
| 469 | 491 | return cret | |
| 470 | 492 | } | |
| @@ -473,6 +495,8 @@ var xAboutDialogGetArtists func(uintptr) []string | |||
| 473 | 495 | ||
| 474 | 496 | // Gets the list of artists of the application. | |
| 475 | 497 | func (x *AboutDialog) GetArtists() []string { | |
| 498 | + | core.LazyRegister(&xAboutDialogGetArtists, "ADW", "adw_about_dialog_get_artists", false) | |
| 499 | + | ||
| 476 | 500 | cret := xAboutDialogGetArtists(x.GoPointer()) | |
| 477 | 501 | return cret | |
| 478 | 502 | } | |
| @@ -481,6 +505,8 @@ var xAboutDialogGetComments func(uintptr) string | |||
| 481 | 505 | ||
| 482 | 506 | // Gets the comments about the application. | |
| 483 | 507 | func (x *AboutDialog) GetComments() string { | |
| 508 | + | core.LazyRegister(&xAboutDialogGetComments, "ADW", "adw_about_dialog_get_comments", false) | |
| 509 | + | ||
| 484 | 510 | cret := xAboutDialogGetComments(x.GoPointer()) | |
| 485 | 511 | return cret | |
| 486 | 512 | } | |
| @@ -489,6 +515,8 @@ var xAboutDialogGetCopyright func(uintptr) string | |||
| 489 | 515 | ||
| 490 | 516 | // Gets the copyright information for @self. | |
| 491 | 517 | func (x *AboutDialog) GetCopyright() string { | |
| 518 | + | core.LazyRegister(&xAboutDialogGetCopyright, "ADW", "adw_about_dialog_get_copyright", false) | |
| 519 | + | ||
| 492 | 520 | cret := xAboutDialogGetCopyright(x.GoPointer()) | |
| 493 | 521 | return cret | |
| 494 | 522 | } | |
| @@ -497,6 +525,8 @@ var xAboutDialogGetDebugInfo func(uintptr) string | |||
| 497 | 525 | ||
| 498 | 526 | // Gets the debug information for @self. | |
| 499 | 527 | func (x *AboutDialog) GetDebugInfo() string { | |
| 528 | + | core.LazyRegister(&xAboutDialogGetDebugInfo, "ADW", "adw_about_dialog_get_debug_info", false) | |
| 529 | + | ||
| 500 | 530 | cret := xAboutDialogGetDebugInfo(x.GoPointer()) | |
| 501 | 531 | return cret | |
| 502 | 532 | } | |
| @@ -505,6 +535,8 @@ var xAboutDialogGetDebugInfoFilename func(uintptr) string | |||
| 505 | 535 | ||
| 506 | 536 | // Gets the debug information filename for @self. | |
| 507 | 537 | func (x *AboutDialog) GetDebugInfoFilename() string { | |
| 538 | + | core.LazyRegister(&xAboutDialogGetDebugInfoFilename, "ADW", "adw_about_dialog_get_debug_info_filename", false) | |
| 539 | + | ||
| 508 | 540 | cret := xAboutDialogGetDebugInfoFilename(x.GoPointer()) | |
| 509 | 541 | return cret | |
| 510 | 542 | } | |
| @@ -513,6 +545,8 @@ var xAboutDialogGetDesigners func(uintptr) []string | |||
| 513 | 545 | ||
| 514 | 546 | // Gets the list of designers of the application. | |
| 515 | 547 | func (x *AboutDialog) GetDesigners() []string { | |
| 548 | + | core.LazyRegister(&xAboutDialogGetDesigners, "ADW", "adw_about_dialog_get_designers", false) | |
| 549 | + | ||
| 516 | 550 | cret := xAboutDialogGetDesigners(x.GoPointer()) | |
| 517 | 551 | return cret | |
| 518 | 552 | } | |
| @@ -521,6 +555,8 @@ var xAboutDialogGetDeveloperName func(uintptr) string | |||
| 521 | 555 | ||
| 522 | 556 | // Gets the developer name for @self. | |
| 523 | 557 | func (x *AboutDialog) GetDeveloperName() string { | |
| 558 | + | core.LazyRegister(&xAboutDialogGetDeveloperName, "ADW", "adw_about_dialog_get_developer_name", false) | |
| 559 | + | ||
| 524 | 560 | cret := xAboutDialogGetDeveloperName(x.GoPointer()) | |
| 525 | 561 | return cret | |
| 526 | 562 | } | |
| @@ -529,6 +565,8 @@ var xAboutDialogGetDevelopers func(uintptr) []string | |||
| 529 | 565 | ||
| 530 | 566 | // Gets the list of developers of the application. | |
| 531 | 567 | func (x *AboutDialog) GetDevelopers() []string { | |
| 568 | + | core.LazyRegister(&xAboutDialogGetDevelopers, "ADW", "adw_about_dialog_get_developers", false) | |
| 569 | + | ||
| 532 | 570 | cret := xAboutDialogGetDevelopers(x.GoPointer()) | |
| 533 | 571 | return cret | |
| 534 | 572 | } | |
| @@ -537,6 +575,8 @@ var xAboutDialogGetDocumenters func(uintptr) []string | |||
| 537 | 575 | ||
| 538 | 576 | // Gets the list of documenters of the application. | |
| 539 | 577 | func (x *AboutDialog) GetDocumenters() []string { | |
| 578 | + | core.LazyRegister(&xAboutDialogGetDocumenters, "ADW", "adw_about_dialog_get_documenters", false) | |
| 579 | + | ||
| 540 | 580 | cret := xAboutDialogGetDocumenters(x.GoPointer()) | |
| 541 | 581 | return cret | |
| 542 | 582 | } | |
| @@ -545,6 +585,8 @@ var xAboutDialogGetIssueUrl func(uintptr) string | |||
| 545 | 585 | ||
| 546 | 586 | // Gets the issue tracker URL for @self. | |
| 547 | 587 | func (x *AboutDialog) GetIssueUrl() string { | |
| 588 | + | core.LazyRegister(&xAboutDialogGetIssueUrl, "ADW", "adw_about_dialog_get_issue_url", false) | |
| 589 | + | ||
| 548 | 590 | cret := xAboutDialogGetIssueUrl(x.GoPointer()) | |
| 549 | 591 | return cret | |
| 550 | 592 | } | |
| @@ -553,6 +595,8 @@ var xAboutDialogGetLicense func(uintptr) string | |||
| 553 | 595 | ||
| 554 | 596 | // Gets the license for @self. | |
| 555 | 597 | func (x *AboutDialog) GetLicense() string { | |
| 598 | + | core.LazyRegister(&xAboutDialogGetLicense, "ADW", "adw_about_dialog_get_license", false) | |
| 599 | + | ||
| 556 | 600 | cret := xAboutDialogGetLicense(x.GoPointer()) | |
| 557 | 601 | return cret | |
| 558 | 602 | } | |
| @@ -561,6 +605,8 @@ var xAboutDialogGetLicenseType func(uintptr) gtk.License | |||
| 561 | 605 | ||
| 562 | 606 | // Gets the license type for @self. | |
| 563 | 607 | func (x *AboutDialog) GetLicenseType() gtk.License { | |
| 608 | + | core.LazyRegister(&xAboutDialogGetLicenseType, "ADW", "adw_about_dialog_get_license_type", false) | |
| 609 | + | ||
| 564 | 610 | cret := xAboutDialogGetLicenseType(x.GoPointer()) | |
| 565 | 611 | return cret | |
| 566 | 612 | } | |
| @@ -569,6 +615,8 @@ var xAboutDialogGetReleaseNotes func(uintptr) string | |||
| 569 | 615 | ||
| 570 | 616 | // Gets the release notes for @self. | |
| 571 | 617 | func (x *AboutDialog) GetReleaseNotes() string { | |
| 618 | + | core.LazyRegister(&xAboutDialogGetReleaseNotes, "ADW", "adw_about_dialog_get_release_notes", false) | |
| 619 | + | ||
| 572 | 620 | cret := xAboutDialogGetReleaseNotes(x.GoPointer()) | |
| 573 | 621 | return cret | |
| 574 | 622 | } | |
| @@ -577,6 +625,8 @@ var xAboutDialogGetReleaseNotesVersion func(uintptr) string | |||
| 577 | 625 | ||
| 578 | 626 | // Gets the version described by the application's release notes. | |
| 579 | 627 | func (x *AboutDialog) GetReleaseNotesVersion() string { | |
| 628 | + | core.LazyRegister(&xAboutDialogGetReleaseNotesVersion, "ADW", "adw_about_dialog_get_release_notes_version", false) | |
| 629 | + | ||
| 580 | 630 | cret := xAboutDialogGetReleaseNotesVersion(x.GoPointer()) | |
| 581 | 631 | return cret | |
| 582 | 632 | } | |
| @@ -585,6 +635,8 @@ var xAboutDialogGetSupportUrl func(uintptr) string | |||
| 585 | 635 | ||
| 586 | 636 | // Gets the URL of the support page for @self. | |
| 587 | 637 | func (x *AboutDialog) GetSupportUrl() string { | |
| 638 | + | core.LazyRegister(&xAboutDialogGetSupportUrl, "ADW", "adw_about_dialog_get_support_url", false) | |
| 639 | + | ||
| 588 | 640 | cret := xAboutDialogGetSupportUrl(x.GoPointer()) | |
| 589 | 641 | return cret | |
| 590 | 642 | } | |
| @@ -593,6 +645,8 @@ var xAboutDialogGetTranslatorCredits func(uintptr) string | |||
| 593 | 645 | ||
| 594 | 646 | // Gets the translator credits string. | |
| 595 | 647 | func (x *AboutDialog) GetTranslatorCredits() string { | |
| 648 | + | core.LazyRegister(&xAboutDialogGetTranslatorCredits, "ADW", "adw_about_dialog_get_translator_credits", false) | |
| 649 | + | ||
| 596 | 650 | cret := xAboutDialogGetTranslatorCredits(x.GoPointer()) | |
| 597 | 651 | return cret | |
| 598 | 652 | } | |
| @@ -601,6 +655,8 @@ var xAboutDialogGetVersion func(uintptr) string | |||
| 601 | 655 | ||
| 602 | 656 | // Gets the version for @self. | |
| 603 | 657 | func (x *AboutDialog) GetVersion() string { | |
| 658 | + | core.LazyRegister(&xAboutDialogGetVersion, "ADW", "adw_about_dialog_get_version", false) | |
| 659 | + | ||
| 604 | 660 | cret := xAboutDialogGetVersion(x.GoPointer()) | |
| 605 | 661 | return cret | |
| 606 | 662 | } | |
| @@ -609,6 +665,8 @@ var xAboutDialogGetWebsite func(uintptr) string | |||
| 609 | 665 | ||
| 610 | 666 | // Gets the application website URL for @self. | |
| 611 | 667 | func (x *AboutDialog) GetWebsite() string { | |
| 668 | + | core.LazyRegister(&xAboutDialogGetWebsite, "ADW", "adw_about_dialog_get_website", false) | |
| 669 | + | ||
| 612 | 670 | cret := xAboutDialogGetWebsite(x.GoPointer()) | |
| 613 | 671 | return cret | |
| 614 | 672 | } | |
| @@ -619,6 +677,8 @@ var xAboutDialogSetApplicationIcon func(uintptr, string) | |||
| 619 | 677 | // | |
| 620 | 678 | // The icon is displayed at the top of the main page. | |
| 621 | 679 | func (x *AboutDialog) SetApplicationIcon(ApplicationIconVar string) { | |
| 680 | + | core.LazyRegister(&xAboutDialogSetApplicationIcon, "ADW", "adw_about_dialog_set_application_icon", false) | |
| 681 | + | ||
| 622 | 682 | xAboutDialogSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | |
| 623 | 683 | } | |
| 624 | 684 | ||
| @@ -628,6 +688,8 @@ var xAboutDialogSetApplicationName func(uintptr, string) | |||
| 628 | 688 | // | |
| 629 | 689 | // The name is displayed at the top of the main page. | |
| 630 | 690 | func (x *AboutDialog) SetApplicationName(ApplicationNameVar string) { | |
| 691 | + | core.LazyRegister(&xAboutDialogSetApplicationName, "ADW", "adw_about_dialog_set_application_name", false) | |
| 692 | + | ||
| 631 | 693 | xAboutDialogSetApplicationName(x.GoPointer(), ApplicationNameVar) | |
| 632 | 694 | } | |
| 633 | 695 | ||
| @@ -649,6 +711,8 @@ var xAboutDialogSetArtists func(uintptr, []string) | |||
| 649 | 711 | // * [method@AboutDialog.add_credit_section] | |
| 650 | 712 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 651 | 713 | func (x *AboutDialog) SetArtists(ArtistsVar []string) { | |
| 714 | + | core.LazyRegister(&xAboutDialogSetArtists, "ADW", "adw_about_dialog_set_artists", false) | |
| 715 | + | ||
| 652 | 716 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | |
| 653 | 717 | } | |
| 654 | 718 | ||
| @@ -661,6 +725,8 @@ var xAboutDialogSetComments func(uintptr, string) | |||
| 661 | 725 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | |
| 662 | 726 | // detailed. It can also contain links and Pango markup. | |
| 663 | 727 | func (x *AboutDialog) SetComments(CommentsVar string) { | |
| 728 | + | core.LazyRegister(&xAboutDialogSetComments, "ADW", "adw_about_dialog_set_comments", false) | |
| 729 | + | ||
| 664 | 730 | xAboutDialogSetComments(x.GoPointer(), CommentsVar) | |
| 665 | 731 | } | |
| 666 | 732 | ||
| @@ -677,6 +743,8 @@ var xAboutDialogSetCopyright func(uintptr, string) | |||
| 677 | 743 | // [method@AboutDialog.add_legal_section] can be used to add copyright | |
| 678 | 744 | // information for the application dependencies or other components. | |
| 679 | 745 | func (x *AboutDialog) SetCopyright(CopyrightVar string) { | |
| 746 | + | core.LazyRegister(&xAboutDialogSetCopyright, "ADW", "adw_about_dialog_set_copyright", false) | |
| 747 | + | ||
| 680 | 748 | xAboutDialogSetCopyright(x.GoPointer(), CopyrightVar) | |
| 681 | 749 | } | |
| 682 | 750 | ||
| @@ -694,6 +762,8 @@ var xAboutDialogSetDebugInfo func(uintptr, string) | |||
| 694 | 762 | // | |
| 695 | 763 | // Debug information cannot contain markup or links. | |
| 696 | 764 | func (x *AboutDialog) SetDebugInfo(DebugInfoVar string) { | |
| 765 | + | core.LazyRegister(&xAboutDialogSetDebugInfo, "ADW", "adw_about_dialog_set_debug_info", false) | |
| 766 | + | ||
| 697 | 767 | xAboutDialogSetDebugInfo(x.GoPointer(), DebugInfoVar) | |
| 698 | 768 | } | |
| 699 | 769 | ||
| @@ -706,6 +776,8 @@ var xAboutDialogSetDebugInfoFilename func(uintptr, string) | |||
| 706 | 776 | // | |
| 707 | 777 | // See [property@AboutDialog:debug-info]. | |
| 708 | 778 | func (x *AboutDialog) SetDebugInfoFilename(FilenameVar string) { | |
| 779 | + | core.LazyRegister(&xAboutDialogSetDebugInfoFilename, "ADW", "adw_about_dialog_set_debug_info_filename", false) | |
| 780 | + | ||
| 709 | 781 | xAboutDialogSetDebugInfoFilename(x.GoPointer(), FilenameVar) | |
| 710 | 782 | } | |
| 711 | 783 | ||
| @@ -727,6 +799,8 @@ var xAboutDialogSetDesigners func(uintptr, []string) | |||
| 727 | 799 | // * [method@AboutDialog.add_credit_section] | |
| 728 | 800 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 729 | 801 | func (x *AboutDialog) SetDesigners(DesignersVar []string) { | |
| 802 | + | core.LazyRegister(&xAboutDialogSetDesigners, "ADW", "adw_about_dialog_set_designers", false) | |
| 803 | + | ||
| 730 | 804 | xAboutDialogSetDesigners(x.GoPointer(), DesignersVar) | |
| 731 | 805 | } | |
| 732 | 806 | ||
| @@ -741,6 +815,8 @@ var xAboutDialogSetDeveloperName func(uintptr, string) | |||
| 741 | 815 | // "The AppName project", and the individual contributors can be listed on the | |
| 742 | 816 | // Credits page, with [property@AboutDialog:developers] and related properties. | |
| 743 | 817 | func (x *AboutDialog) SetDeveloperName(DeveloperNameVar string) { | |
| 818 | + | core.LazyRegister(&xAboutDialogSetDeveloperName, "ADW", "adw_about_dialog_set_developer_name", false) | |
| 819 | + | ||
| 744 | 820 | xAboutDialogSetDeveloperName(x.GoPointer(), DeveloperNameVar) | |
| 745 | 821 | } | |
| 746 | 822 | ||
| @@ -762,6 +838,8 @@ var xAboutDialogSetDevelopers func(uintptr, []string) | |||
| 762 | 838 | // * [method@AboutDialog.add_credit_section] | |
| 763 | 839 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 764 | 840 | func (x *AboutDialog) SetDevelopers(DevelopersVar []string) { | |
| 841 | + | core.LazyRegister(&xAboutDialogSetDevelopers, "ADW", "adw_about_dialog_set_developers", false) | |
| 842 | + | ||
| 765 | 843 | xAboutDialogSetDevelopers(x.GoPointer(), DevelopersVar) | |
| 766 | 844 | } | |
| 767 | 845 | ||
| @@ -783,6 +861,8 @@ var xAboutDialogSetDocumenters func(uintptr, []string) | |||
| 783 | 861 | // * [method@AboutDialog.add_credit_section] | |
| 784 | 862 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 785 | 863 | func (x *AboutDialog) SetDocumenters(DocumentersVar []string) { | |
| 864 | + | core.LazyRegister(&xAboutDialogSetDocumenters, "ADW", "adw_about_dialog_set_documenters", false) | |
| 865 | + | ||
| 786 | 866 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | |
| 787 | 867 | } | |
| 788 | 868 | ||
| @@ -792,6 +872,8 @@ var xAboutDialogSetIssueUrl func(uintptr, string) | |||
| 792 | 872 | // | |
| 793 | 873 | // The issue tracker link is displayed on the main page. | |
| 794 | 874 | func (x *AboutDialog) SetIssueUrl(IssueUrlVar string) { | |
| 875 | + | core.LazyRegister(&xAboutDialogSetIssueUrl, "ADW", "adw_about_dialog_set_issue_url", false) | |
| 876 | + | ||
| 795 | 877 | xAboutDialogSetIssueUrl(x.GoPointer(), IssueUrlVar) | |
| 796 | 878 | } | |
| 797 | 879 | ||
| @@ -813,6 +895,8 @@ var xAboutDialogSetLicense func(uintptr, string) | |||
| 813 | 895 | // [method@AboutDialog.add_legal_section] can be used to add license information | |
| 814 | 896 | // for the application dependencies or other components. | |
| 815 | 897 | func (x *AboutDialog) SetLicense(LicenseVar string) { | |
| 898 | + | core.LazyRegister(&xAboutDialogSetLicense, "ADW", "adw_about_dialog_set_license", false) | |
| 899 | + | ||
| 816 | 900 | xAboutDialogSetLicense(x.GoPointer(), LicenseVar) | |
| 817 | 901 | } | |
| 818 | 902 | ||
| @@ -836,6 +920,8 @@ var xAboutDialogSetLicenseType func(uintptr, gtk.License) | |||
| 836 | 920 | // [method@AboutDialog.add_legal_section] can be used to add license information | |
| 837 | 921 | // for the application dependencies or other components. | |
| 838 | 922 | func (x *AboutDialog) SetLicenseType(LicenseTypeVar gtk.License) { | |
| 923 | + | core.LazyRegister(&xAboutDialogSetLicenseType, "ADW", "adw_about_dialog_set_license_type", false) | |
| 924 | + | ||
| 839 | 925 | xAboutDialogSetLicenseType(x.GoPointer(), LicenseTypeVar) | |
| 840 | 926 | } | |
| 841 | 927 | ||
| @@ -866,6 +952,8 @@ var xAboutDialogSetReleaseNotes func(uintptr, string) | |||
| 866 | 952 | // [property@AboutDialog:release-notes-version] of the property will be used | |
| 867 | 953 | // as the version; otherwise, [property@AboutDialog:version] is used. | |
| 868 | 954 | func (x *AboutDialog) SetReleaseNotes(ReleaseNotesVar string) { | |
| 955 | + | core.LazyRegister(&xAboutDialogSetReleaseNotes, "ADW", "adw_about_dialog_set_release_notes", false) | |
| 956 | + | ||
| 869 | 957 | xAboutDialogSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | |
| 870 | 958 | } | |
| 871 | 959 | ||
| @@ -884,6 +972,8 @@ var xAboutDialogSetReleaseNotesVersion func(uintptr, string) | |||
| 884 | 972 | // | |
| 885 | 973 | // See [property@AboutDialog:release-notes]. | |
| 886 | 974 | func (x *AboutDialog) SetReleaseNotesVersion(VersionVar string) { | |
| 975 | + | core.LazyRegister(&xAboutDialogSetReleaseNotesVersion, "ADW", "adw_about_dialog_set_release_notes_version", false) | |
| 976 | + | ||
| 887 | 977 | xAboutDialogSetReleaseNotesVersion(x.GoPointer(), VersionVar) | |
| 888 | 978 | } | |
| 889 | 979 | ||
| @@ -893,6 +983,8 @@ var xAboutDialogSetSupportUrl func(uintptr, string) | |||
| 893 | 983 | // | |
| 894 | 984 | // The support page link is displayed on the main page. | |
| 895 | 985 | func (x *AboutDialog) SetSupportUrl(SupportUrlVar string) { | |
| 986 | + | core.LazyRegister(&xAboutDialogSetSupportUrl, "ADW", "adw_about_dialog_set_support_url", false) | |
| 987 | + | ||
| 896 | 988 | xAboutDialogSetSupportUrl(x.GoPointer(), SupportUrlVar) | |
| 897 | 989 | } | |
| 898 | 990 | ||
| @@ -918,6 +1010,8 @@ var xAboutDialogSetTranslatorCredits func(uintptr, string) | |||
| 918 | 1010 | // * [method@AboutDialog.add_credit_section] | |
| 919 | 1011 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 920 | 1012 | func (x *AboutDialog) SetTranslatorCredits(TranslatorCreditsVar string) { | |
| 1013 | + | core.LazyRegister(&xAboutDialogSetTranslatorCredits, "ADW", "adw_about_dialog_set_translator_credits", false) | |
| 1014 | + | ||
| 921 | 1015 | xAboutDialogSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | |
| 922 | 1016 | } | |
| 923 | 1017 | ||
| @@ -930,6 +1024,8 @@ var xAboutDialogSetVersion func(uintptr, string) | |||
| 930 | 1024 | // If [property@AboutDialog:release-notes-version] is not set, the version will | |
| 931 | 1025 | // also be displayed above the release notes on the What's New page. | |
| 932 | 1026 | func (x *AboutDialog) SetVersion(VersionVar string) { | |
| 1027 | + | core.LazyRegister(&xAboutDialogSetVersion, "ADW", "adw_about_dialog_set_version", false) | |
| 1028 | + | ||
| 933 | 1029 | xAboutDialogSetVersion(x.GoPointer(), VersionVar) | |
| 934 | 1030 | } | |
| 935 | 1031 | ||
| @@ -942,6 +1038,8 @@ var xAboutDialogSetWebsite func(uintptr, string) | |||
| 942 | 1038 | // | |
| 943 | 1039 | // Applications can add other links below, see [method@AboutDialog.add_link]. | |
| 944 | 1040 | func (x *AboutDialog) SetWebsite(WebsiteVar string) { | |
| 1041 | + | core.LazyRegister(&xAboutDialogSetWebsite, "ADW", "adw_about_dialog_set_website", false) | |
| 1042 | + | ||
| 945 | 1043 | xAboutDialogSetWebsite(x.GoPointer(), WebsiteVar) | |
| 946 | 1044 | } | |
| 947 | 1045 | ||
| @@ -1955,67 +2053,4 @@ func (x *AboutDialog) GetBuildableId() string { | |||
| 1955 | 2053 | func init() { | |
| 1956 | 2054 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1957 | 2055 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1958 | - | var libs []uintptr | |
| 1959 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 1960 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1961 | - | if err != nil { | |
| 1962 | - | panic(err) | |
| 1963 | - | } | |
| 1964 | - | libs = append(libs, lib) | |
| 1965 | - | } | |
| 1966 | - | ||
| 1967 | - | core.PuregoSafeRegister(&xShowAboutDialog, libs, "adw_show_about_dialog") | |
| 1968 | - | core.PuregoSafeRegister(&xShowAboutDialogFromAppdata, libs, "adw_show_about_dialog_from_appdata") | |
| 1969 | - | ||
| 1970 | - | core.PuregoSafeRegister(&xAboutDialogGLibType, libs, "adw_about_dialog_get_type") | |
| 1971 | - | ||
| 1972 | - | core.PuregoSafeRegister(&xNewAboutDialog, libs, "adw_about_dialog_new") | |
| 1973 | - | core.PuregoSafeRegister(&xNewAboutDialogFromAppdata, libs, "adw_about_dialog_new_from_appdata") | |
| 1974 | - | ||
| 1975 | - | core.PuregoSafeRegister(&xAboutDialogAddAcknowledgementSection, libs, "adw_about_dialog_add_acknowledgement_section") | |
| 1976 | - | core.PuregoSafeRegister(&xAboutDialogAddCreditSection, libs, "adw_about_dialog_add_credit_section") | |
| 1977 | - | core.PuregoSafeRegister(&xAboutDialogAddLegalSection, libs, "adw_about_dialog_add_legal_section") | |
| 1978 | - | core.PuregoSafeRegister(&xAboutDialogAddLink, libs, "adw_about_dialog_add_link") | |
| 1979 | - | core.PuregoSafeRegister(&xAboutDialogAddOtherApp, libs, "adw_about_dialog_add_other_app") | |
| 1980 | - | core.PuregoSafeRegister(&xAboutDialogGetAppdataResourcePath, libs, "adw_about_dialog_get_appdata_resource_path") | |
| 1981 | - | core.PuregoSafeRegister(&xAboutDialogGetApplicationIcon, libs, "adw_about_dialog_get_application_icon") | |
| 1982 | - | core.PuregoSafeRegister(&xAboutDialogGetApplicationName, libs, "adw_about_dialog_get_application_name") | |
| 1983 | - | core.PuregoSafeRegister(&xAboutDialogGetArtists, libs, "adw_about_dialog_get_artists") | |
| 1984 | - | core.PuregoSafeRegister(&xAboutDialogGetComments, libs, "adw_about_dialog_get_comments") | |
| 1985 | - | core.PuregoSafeRegister(&xAboutDialogGetCopyright, libs, "adw_about_dialog_get_copyright") | |
| 1986 | - | core.PuregoSafeRegister(&xAboutDialogGetDebugInfo, libs, "adw_about_dialog_get_debug_info") | |
| 1987 | - | core.PuregoSafeRegister(&xAboutDialogGetDebugInfoFilename, libs, "adw_about_dialog_get_debug_info_filename") | |
| 1988 | - | core.PuregoSafeRegister(&xAboutDialogGetDesigners, libs, "adw_about_dialog_get_designers") | |
| 1989 | - | core.PuregoSafeRegister(&xAboutDialogGetDeveloperName, libs, "adw_about_dialog_get_developer_name") | |
| 1990 | - | core.PuregoSafeRegister(&xAboutDialogGetDevelopers, libs, "adw_about_dialog_get_developers") | |
| 1991 | - | core.PuregoSafeRegister(&xAboutDialogGetDocumenters, libs, "adw_about_dialog_get_documenters") | |
| 1992 | - | core.PuregoSafeRegister(&xAboutDialogGetIssueUrl, libs, "adw_about_dialog_get_issue_url") | |
| 1993 | - | core.PuregoSafeRegister(&xAboutDialogGetLicense, libs, "adw_about_dialog_get_license") | |
| 1994 | - | core.PuregoSafeRegister(&xAboutDialogGetLicenseType, libs, "adw_about_dialog_get_license_type") | |
| 1995 | - | core.PuregoSafeRegister(&xAboutDialogGetReleaseNotes, libs, "adw_about_dialog_get_release_notes") | |
| 1996 | - | core.PuregoSafeRegister(&xAboutDialogGetReleaseNotesVersion, libs, "adw_about_dialog_get_release_notes_version") | |
| 1997 | - | core.PuregoSafeRegister(&xAboutDialogGetSupportUrl, libs, "adw_about_dialog_get_support_url") | |
| 1998 | - | core.PuregoSafeRegister(&xAboutDialogGetTranslatorCredits, libs, "adw_about_dialog_get_translator_credits") | |
| 1999 | - | core.PuregoSafeRegister(&xAboutDialogGetVersion, libs, "adw_about_dialog_get_version") | |
| 2000 | - | core.PuregoSafeRegister(&xAboutDialogGetWebsite, libs, "adw_about_dialog_get_website") | |
| 2001 | - | core.PuregoSafeRegister(&xAboutDialogSetApplicationIcon, libs, "adw_about_dialog_set_application_icon") | |
| 2002 | - | core.PuregoSafeRegister(&xAboutDialogSetApplicationName, libs, "adw_about_dialog_set_application_name") | |
| 2003 | - | core.PuregoSafeRegister(&xAboutDialogSetArtists, libs, "adw_about_dialog_set_artists") | |
| 2004 | - | core.PuregoSafeRegister(&xAboutDialogSetComments, libs, "adw_about_dialog_set_comments") | |
| 2005 | - | core.PuregoSafeRegister(&xAboutDialogSetCopyright, libs, "adw_about_dialog_set_copyright") | |
| 2006 | - | core.PuregoSafeRegister(&xAboutDialogSetDebugInfo, libs, "adw_about_dialog_set_debug_info") | |
| 2007 | - | core.PuregoSafeRegister(&xAboutDialogSetDebugInfoFilename, libs, "adw_about_dialog_set_debug_info_filename") | |
| 2008 | - | core.PuregoSafeRegister(&xAboutDialogSetDesigners, libs, "adw_about_dialog_set_designers") | |
| 2009 | - | core.PuregoSafeRegister(&xAboutDialogSetDeveloperName, libs, "adw_about_dialog_set_developer_name") | |
| 2010 | - | core.PuregoSafeRegister(&xAboutDialogSetDevelopers, libs, "adw_about_dialog_set_developers") | |
| 2011 | - | core.PuregoSafeRegister(&xAboutDialogSetDocumenters, libs, "adw_about_dialog_set_documenters") | |
| 2012 | - | core.PuregoSafeRegister(&xAboutDialogSetIssueUrl, libs, "adw_about_dialog_set_issue_url") | |
| 2013 | - | core.PuregoSafeRegister(&xAboutDialogSetLicense, libs, "adw_about_dialog_set_license") | |
| 2014 | - | core.PuregoSafeRegister(&xAboutDialogSetLicenseType, libs, "adw_about_dialog_set_license_type") | |
| 2015 | - | core.PuregoSafeRegister(&xAboutDialogSetReleaseNotes, libs, "adw_about_dialog_set_release_notes") | |
| 2016 | - | core.PuregoSafeRegister(&xAboutDialogSetReleaseNotesVersion, libs, "adw_about_dialog_set_release_notes_version") | |
| 2017 | - | core.PuregoSafeRegister(&xAboutDialogSetSupportUrl, libs, "adw_about_dialog_set_support_url") | |
| 2018 | - | core.PuregoSafeRegister(&xAboutDialogSetTranslatorCredits, libs, "adw_about_dialog_set_translator_credits") | |
| 2019 | - | core.PuregoSafeRegister(&xAboutDialogSetVersion, libs, "adw_about_dialog_set_version") | |
| 2020 | - | core.PuregoSafeRegister(&xAboutDialogSetWebsite, libs, "adw_about_dialog_set_website") | |
| 2021 | 2056 | } | |
| @@ -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/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -35,6 +34,8 @@ var xShowAboutDialog func(uintptr, string, ...interface{}) | |||||
| 35 | 34 | ||||
| 36 | // A convenience function for showing an application’s about dialog. | 35 | // A convenience function for showing an application’s about dialog. | ||
| 37 | func ShowAboutDialog(ParentVar *gtk.Widget, FirstPropertyNameVar string, varArgs ...interface{}) { | 36 | func ShowAboutDialog(ParentVar *gtk.Widget, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 37 | + | core.LazyRegister(&xShowAboutDialog, "ADW", "adw_show_about_dialog", false) | |||
| 38 | + | ||||
| 38 | xShowAboutDialog(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | 39 | xShowAboutDialog(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | ||
| 39 | } | 40 | } | ||
| 40 | 41 | ||||
| @@ -45,6 +46,8 @@ var xShowAboutDialogFromAppdata func(uintptr, string, uintptr, string, ...interf | |||||
| 45 | // | 46 | // | ||
| 46 | // See [ctor@AboutDialog.new_from_appdata] for details. | 47 | // See [ctor@AboutDialog.new_from_appdata] for details. | ||
| 47 | func ShowAboutDialogFromAppdata(ParentVar *gtk.Widget, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | 48 | func ShowAboutDialogFromAppdata(ParentVar *gtk.Widget, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 49 | + | core.LazyRegister(&xShowAboutDialogFromAppdata, "ADW", "adw_show_about_dialog_from_appdata", false) | |||
| 50 | + | ||||
| 48 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 51 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| 49 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | 52 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | ||
| 50 | 53 | ||||
| @@ -234,6 +237,7 @@ type AboutDialog struct { | |||||
| 234 | var xAboutDialogGLibType func() types.GType | 237 | var xAboutDialogGLibType func() types.GType | ||
| 235 | 238 | ||||
| 236 | func AboutDialogGLibType() types.GType { | 239 | func AboutDialogGLibType() types.GType { | ||
| 240 | + | core.LazyRegister(&xAboutDialogGLibType, "ADW", "adw_about_dialog_get_type", false) | |||
| 237 | return xAboutDialogGLibType() | 241 | return xAboutDialogGLibType() | ||
| 238 | } | 242 | } | ||
| 239 | 243 | ||||
| @@ -247,6 +251,7 @@ var xNewAboutDialog func() uintptr | |||||
| 247 | 251 | ||||
| 248 | // Creates a new `AdwAboutDialog`. | 252 | // Creates a new `AdwAboutDialog`. | ||
| 249 | func NewAboutDialog() *AboutDialog { | 253 | func NewAboutDialog() *AboutDialog { | ||
| 254 | + | core.LazyRegister(&xNewAboutDialog, "ADW", "adw_about_dialog_new", false) | |||
| 250 | var cls *AboutDialog | 255 | var cls *AboutDialog | ||
| 251 | 256 | ||||
| 252 | cret := xNewAboutDialog() | 257 | cret := xNewAboutDialog() | ||
| @@ -284,6 +289,7 @@ var xNewAboutDialogFromAppdata func(string, uintptr) uintptr | |||||
| 284 | // [property@AboutDialog:release-notes] is set from the AppStream release | 289 | // [property@AboutDialog:release-notes] is set from the AppStream release | ||
| 285 | // description for that version. | 290 | // description for that version. | ||
| 286 | func NewAboutDialogFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutDialog { | 291 | func NewAboutDialogFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutDialog { | ||
| 292 | + | core.LazyRegister(&xNewAboutDialogFromAppdata, "ADW", "adw_about_dialog_new_from_appdata", false) | |||
| 287 | var cls *AboutDialog | 293 | var cls *AboutDialog | ||
| 288 | 294 | ||||
| 289 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 295 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| @@ -320,6 +326,8 @@ var xAboutDialogAddAcknowledgementSection func(uintptr, uintptr, []string) | |||||
| 320 | // * [property@AboutDialog:translator-credits] | 326 | // * [property@AboutDialog:translator-credits] | ||
| 321 | // * [method@AboutDialog.add_credit_section] | 327 | // * [method@AboutDialog.add_credit_section] | ||
| 322 | func (x *AboutDialog) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | 328 | func (x *AboutDialog) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | ||
| 329 | + | core.LazyRegister(&xAboutDialogAddAcknowledgementSection, "ADW", "adw_about_dialog_add_acknowledgement_section", false) | |||
| 330 | + | ||||
| 323 | NameVarPtr := core.GStrdupNullable(NameVar) | 331 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 324 | defer core.GFreeNullable(NameVarPtr) | 332 | defer core.GFreeNullable(NameVarPtr) | ||
| 325 | 333 | ||||
| @@ -344,6 +352,8 @@ var xAboutDialogAddCreditSection func(uintptr, uintptr, []string) | |||||
| 344 | // * [property@AboutDialog:translator-credits] | 352 | // * [property@AboutDialog:translator-credits] | ||
| 345 | // * [method@AboutDialog.add_acknowledgement_section] | 353 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 346 | func (x *AboutDialog) AddCreditSection(NameVar *string, PeopleVar []string) { | 354 | func (x *AboutDialog) AddCreditSection(NameVar *string, PeopleVar []string) { | ||
| 355 | + | core.LazyRegister(&xAboutDialogAddCreditSection, "ADW", "adw_about_dialog_add_credit_section", false) | |||
| 356 | + | ||||
| 347 | NameVarPtr := core.GStrdupNullable(NameVar) | 357 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 348 | defer core.GFreeNullable(NameVarPtr) | 358 | defer core.GFreeNullable(NameVarPtr) | ||
| 349 | 359 | ||||
| @@ -398,6 +408,8 @@ var xAboutDialogAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||||
| 398 | // | 408 | // | ||
| 399 | // ``` | 409 | // ``` | ||
| 400 | func (x *AboutDialog) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | 410 | func (x *AboutDialog) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | ||
| 411 | + | core.LazyRegister(&xAboutDialogAddLegalSection, "ADW", "adw_about_dialog_add_legal_section", false) | |||
| 412 | + | ||||
| 401 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | 413 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | ||
| 402 | defer core.GFreeNullable(CopyrightVarPtr) | 414 | defer core.GFreeNullable(CopyrightVarPtr) | ||
| 403 | 415 | ||||
| @@ -417,6 +429,8 @@ var xAboutDialogAddLink func(uintptr, string, string) | |||||
| 417 | // | 429 | // | ||
| 418 | // See [property@AboutDialog:website]. | 430 | // See [property@AboutDialog:website]. | ||
| 419 | func (x *AboutDialog) AddLink(TitleVar string, UrlVar string) { | 431 | func (x *AboutDialog) AddLink(TitleVar string, UrlVar string) { | ||
| 432 | + | core.LazyRegister(&xAboutDialogAddLink, "ADW", "adw_about_dialog_add_link", false) | |||
| 433 | + | ||||
| 420 | xAboutDialogAddLink(x.GoPointer(), TitleVar, UrlVar) | 434 | xAboutDialogAddLink(x.GoPointer(), TitleVar, UrlVar) | ||
| 421 | } | 435 | } | ||
| 422 | 436 | ||||
| @@ -442,6 +456,8 @@ var xAboutDialogAddOtherApp func(uintptr, string, string, string) | |||||
| 442 | // | 456 | // | ||
| 443 | // ``` | 457 | // ``` | ||
| 444 | func (x *AboutDialog) AddOtherApp(AppidVar string, NameVar string, SummaryVar string) { | 458 | func (x *AboutDialog) AddOtherApp(AppidVar string, NameVar string, SummaryVar string) { | ||
| 459 | + | core.LazyRegister(&xAboutDialogAddOtherApp, "ADW", "adw_about_dialog_add_other_app", false) | |||
| 460 | + | ||||
| 445 | xAboutDialogAddOtherApp(x.GoPointer(), AppidVar, NameVar, SummaryVar) | 461 | xAboutDialogAddOtherApp(x.GoPointer(), AppidVar, NameVar, SummaryVar) | ||
| 446 | } | 462 | } | ||
| 447 | 463 | ||||
| @@ -449,6 +465,8 @@ var xAboutDialogGetAppdataResourcePath func(uintptr) string | |||||
| 449 | 465 | ||||
| 450 | // Gets the AppStream metadata resource path for @self. | 466 | // Gets the AppStream metadata resource path for @self. | ||
| 451 | func (x *AboutDialog) GetAppdataResourcePath() string { | 467 | func (x *AboutDialog) GetAppdataResourcePath() string { | ||
| 468 | + | core.LazyRegister(&xAboutDialogGetAppdataResourcePath, "ADW", "adw_about_dialog_get_appdata_resource_path", false) | |||
| 469 | + | ||||
| 452 | cret := xAboutDialogGetAppdataResourcePath(x.GoPointer()) | 470 | cret := xAboutDialogGetAppdataResourcePath(x.GoPointer()) | ||
| 453 | return cret | 471 | return cret | ||
| 454 | } | 472 | } | ||
| @@ -457,6 +475,8 @@ var xAboutDialogGetApplicationIcon func(uintptr) string | |||||
| 457 | 475 | ||||
| 458 | // Gets the name of the application icon for @self. | 476 | // Gets the name of the application icon for @self. | ||
| 459 | func (x *AboutDialog) GetApplicationIcon() string { | 477 | func (x *AboutDialog) GetApplicationIcon() string { | ||
| 478 | + | core.LazyRegister(&xAboutDialogGetApplicationIcon, "ADW", "adw_about_dialog_get_application_icon", false) | |||
| 479 | + | ||||
| 460 | cret := xAboutDialogGetApplicationIcon(x.GoPointer()) | 480 | cret := xAboutDialogGetApplicationIcon(x.GoPointer()) | ||
| 461 | return cret | 481 | return cret | ||
| 462 | } | 482 | } | ||
| @@ -465,6 +485,8 @@ var xAboutDialogGetApplicationName func(uintptr) string | |||||
| 465 | 485 | ||||
| 466 | // Gets the application name for @self. | 486 | // Gets the application name for @self. | ||
| 467 | func (x *AboutDialog) GetApplicationName() string { | 487 | func (x *AboutDialog) GetApplicationName() string { | ||
| 488 | + | core.LazyRegister(&xAboutDialogGetApplicationName, "ADW", "adw_about_dialog_get_application_name", false) | |||
| 489 | + | ||||
| 468 | cret := xAboutDialogGetApplicationName(x.GoPointer()) | 490 | cret := xAboutDialogGetApplicationName(x.GoPointer()) | ||
| 469 | return cret | 491 | return cret | ||
| 470 | } | 492 | } | ||
| @@ -473,6 +495,8 @@ var xAboutDialogGetArtists func(uintptr) []string | |||||
| 473 | 495 | ||||
| 474 | // Gets the list of artists of the application. | 496 | // Gets the list of artists of the application. | ||
| 475 | func (x *AboutDialog) GetArtists() []string { | 497 | func (x *AboutDialog) GetArtists() []string { | ||
| 498 | + | core.LazyRegister(&xAboutDialogGetArtists, "ADW", "adw_about_dialog_get_artists", false) | |||
| 499 | + | ||||
| 476 | cret := xAboutDialogGetArtists(x.GoPointer()) | 500 | cret := xAboutDialogGetArtists(x.GoPointer()) | ||
| 477 | return cret | 501 | return cret | ||
| 478 | } | 502 | } | ||
| @@ -481,6 +505,8 @@ var xAboutDialogGetComments func(uintptr) string | |||||
| 481 | 505 | ||||
| 482 | // Gets the comments about the application. | 506 | // Gets the comments about the application. | ||
| 483 | func (x *AboutDialog) GetComments() string { | 507 | func (x *AboutDialog) GetComments() string { | ||
| 508 | + | core.LazyRegister(&xAboutDialogGetComments, "ADW", "adw_about_dialog_get_comments", false) | |||
| 509 | + | ||||
| 484 | cret := xAboutDialogGetComments(x.GoPointer()) | 510 | cret := xAboutDialogGetComments(x.GoPointer()) | ||
| 485 | return cret | 511 | return cret | ||
| 486 | } | 512 | } | ||
| @@ -489,6 +515,8 @@ var xAboutDialogGetCopyright func(uintptr) string | |||||
| 489 | 515 | ||||
| 490 | // Gets the copyright information for @self. | 516 | // Gets the copyright information for @self. | ||
| 491 | func (x *AboutDialog) GetCopyright() string { | 517 | func (x *AboutDialog) GetCopyright() string { | ||
| 518 | + | core.LazyRegister(&xAboutDialogGetCopyright, "ADW", "adw_about_dialog_get_copyright", false) | |||
| 519 | + | ||||
| 492 | cret := xAboutDialogGetCopyright(x.GoPointer()) | 520 | cret := xAboutDialogGetCopyright(x.GoPointer()) | ||
| 493 | return cret | 521 | return cret | ||
| 494 | } | 522 | } | ||
| @@ -497,6 +525,8 @@ var xAboutDialogGetDebugInfo func(uintptr) string | |||||
| 497 | 525 | ||||
| 498 | // Gets the debug information for @self. | 526 | // Gets the debug information for @self. | ||
| 499 | func (x *AboutDialog) GetDebugInfo() string { | 527 | func (x *AboutDialog) GetDebugInfo() string { | ||
| 528 | + | core.LazyRegister(&xAboutDialogGetDebugInfo, "ADW", "adw_about_dialog_get_debug_info", false) | |||
| 529 | + | ||||
| 500 | cret := xAboutDialogGetDebugInfo(x.GoPointer()) | 530 | cret := xAboutDialogGetDebugInfo(x.GoPointer()) | ||
| 501 | return cret | 531 | return cret | ||
| 502 | } | 532 | } | ||
| @@ -505,6 +535,8 @@ var xAboutDialogGetDebugInfoFilename func(uintptr) string | |||||
| 505 | 535 | ||||
| 506 | // Gets the debug information filename for @self. | 536 | // Gets the debug information filename for @self. | ||
| 507 | func (x *AboutDialog) GetDebugInfoFilename() string { | 537 | func (x *AboutDialog) GetDebugInfoFilename() string { | ||
| 538 | + | core.LazyRegister(&xAboutDialogGetDebugInfoFilename, "ADW", "adw_about_dialog_get_debug_info_filename", false) | |||
| 539 | + | ||||
| 508 | cret := xAboutDialogGetDebugInfoFilename(x.GoPointer()) | 540 | cret := xAboutDialogGetDebugInfoFilename(x.GoPointer()) | ||
| 509 | return cret | 541 | return cret | ||
| 510 | } | 542 | } | ||
| @@ -513,6 +545,8 @@ var xAboutDialogGetDesigners func(uintptr) []string | |||||
| 513 | 545 | ||||
| 514 | // Gets the list of designers of the application. | 546 | // Gets the list of designers of the application. | ||
| 515 | func (x *AboutDialog) GetDesigners() []string { | 547 | func (x *AboutDialog) GetDesigners() []string { | ||
| 548 | + | core.LazyRegister(&xAboutDialogGetDesigners, "ADW", "adw_about_dialog_get_designers", false) | |||
| 549 | + | ||||
| 516 | cret := xAboutDialogGetDesigners(x.GoPointer()) | 550 | cret := xAboutDialogGetDesigners(x.GoPointer()) | ||
| 517 | return cret | 551 | return cret | ||
| 518 | } | 552 | } | ||
| @@ -521,6 +555,8 @@ var xAboutDialogGetDeveloperName func(uintptr) string | |||||
| 521 | 555 | ||||
| 522 | // Gets the developer name for @self. | 556 | // Gets the developer name for @self. | ||
| 523 | func (x *AboutDialog) GetDeveloperName() string { | 557 | func (x *AboutDialog) GetDeveloperName() string { | ||
| 558 | + | core.LazyRegister(&xAboutDialogGetDeveloperName, "ADW", "adw_about_dialog_get_developer_name", false) | |||
| 559 | + | ||||
| 524 | cret := xAboutDialogGetDeveloperName(x.GoPointer()) | 560 | cret := xAboutDialogGetDeveloperName(x.GoPointer()) | ||
| 525 | return cret | 561 | return cret | ||
| 526 | } | 562 | } | ||
| @@ -529,6 +565,8 @@ var xAboutDialogGetDevelopers func(uintptr) []string | |||||
| 529 | 565 | ||||
| 530 | // Gets the list of developers of the application. | 566 | // Gets the list of developers of the application. | ||
| 531 | func (x *AboutDialog) GetDevelopers() []string { | 567 | func (x *AboutDialog) GetDevelopers() []string { | ||
| 568 | + | core.LazyRegister(&xAboutDialogGetDevelopers, "ADW", "adw_about_dialog_get_developers", false) | |||
| 569 | + | ||||
| 532 | cret := xAboutDialogGetDevelopers(x.GoPointer()) | 570 | cret := xAboutDialogGetDevelopers(x.GoPointer()) | ||
| 533 | return cret | 571 | return cret | ||
| 534 | } | 572 | } | ||
| @@ -537,6 +575,8 @@ var xAboutDialogGetDocumenters func(uintptr) []string | |||||
| 537 | 575 | ||||
| 538 | // Gets the list of documenters of the application. | 576 | // Gets the list of documenters of the application. | ||
| 539 | func (x *AboutDialog) GetDocumenters() []string { | 577 | func (x *AboutDialog) GetDocumenters() []string { | ||
| 578 | + | core.LazyRegister(&xAboutDialogGetDocumenters, "ADW", "adw_about_dialog_get_documenters", false) | |||
| 579 | + | ||||
| 540 | cret := xAboutDialogGetDocumenters(x.GoPointer()) | 580 | cret := xAboutDialogGetDocumenters(x.GoPointer()) | ||
| 541 | return cret | 581 | return cret | ||
| 542 | } | 582 | } | ||
| @@ -545,6 +585,8 @@ var xAboutDialogGetIssueUrl func(uintptr) string | |||||
| 545 | 585 | ||||
| 546 | // Gets the issue tracker URL for @self. | 586 | // Gets the issue tracker URL for @self. | ||
| 547 | func (x *AboutDialog) GetIssueUrl() string { | 587 | func (x *AboutDialog) GetIssueUrl() string { | ||
| 588 | + | core.LazyRegister(&xAboutDialogGetIssueUrl, "ADW", "adw_about_dialog_get_issue_url", false) | |||
| 589 | + | ||||
| 548 | cret := xAboutDialogGetIssueUrl(x.GoPointer()) | 590 | cret := xAboutDialogGetIssueUrl(x.GoPointer()) | ||
| 549 | return cret | 591 | return cret | ||
| 550 | } | 592 | } | ||
| @@ -553,6 +595,8 @@ var xAboutDialogGetLicense func(uintptr) string | |||||
| 553 | 595 | ||||
| 554 | // Gets the license for @self. | 596 | // Gets the license for @self. | ||
| 555 | func (x *AboutDialog) GetLicense() string { | 597 | func (x *AboutDialog) GetLicense() string { | ||
| 598 | + | core.LazyRegister(&xAboutDialogGetLicense, "ADW", "adw_about_dialog_get_license", false) | |||
| 599 | + | ||||
| 556 | cret := xAboutDialogGetLicense(x.GoPointer()) | 600 | cret := xAboutDialogGetLicense(x.GoPointer()) | ||
| 557 | return cret | 601 | return cret | ||
| 558 | } | 602 | } | ||
| @@ -561,6 +605,8 @@ var xAboutDialogGetLicenseType func(uintptr) gtk.License | |||||
| 561 | 605 | ||||
| 562 | // Gets the license type for @self. | 606 | // Gets the license type for @self. | ||
| 563 | func (x *AboutDialog) GetLicenseType() gtk.License { | 607 | func (x *AboutDialog) GetLicenseType() gtk.License { | ||
| 608 | + | core.LazyRegister(&xAboutDialogGetLicenseType, "ADW", "adw_about_dialog_get_license_type", false) | |||
| 609 | + | ||||
| 564 | cret := xAboutDialogGetLicenseType(x.GoPointer()) | 610 | cret := xAboutDialogGetLicenseType(x.GoPointer()) | ||
| 565 | return cret | 611 | return cret | ||
| 566 | } | 612 | } | ||
| @@ -569,6 +615,8 @@ var xAboutDialogGetReleaseNotes func(uintptr) string | |||||
| 569 | 615 | ||||
| 570 | // Gets the release notes for @self. | 616 | // Gets the release notes for @self. | ||
| 571 | func (x *AboutDialog) GetReleaseNotes() string { | 617 | func (x *AboutDialog) GetReleaseNotes() string { | ||
| 618 | + | core.LazyRegister(&xAboutDialogGetReleaseNotes, "ADW", "adw_about_dialog_get_release_notes", false) | |||
| 619 | + | ||||
| 572 | cret := xAboutDialogGetReleaseNotes(x.GoPointer()) | 620 | cret := xAboutDialogGetReleaseNotes(x.GoPointer()) | ||
| 573 | return cret | 621 | return cret | ||
| 574 | } | 622 | } | ||
| @@ -577,6 +625,8 @@ var xAboutDialogGetReleaseNotesVersion func(uintptr) string | |||||
| 577 | 625 | ||||
| 578 | // Gets the version described by the application's release notes. | 626 | // Gets the version described by the application's release notes. | ||
| 579 | func (x *AboutDialog) GetReleaseNotesVersion() string { | 627 | func (x *AboutDialog) GetReleaseNotesVersion() string { | ||
| 628 | + | core.LazyRegister(&xAboutDialogGetReleaseNotesVersion, "ADW", "adw_about_dialog_get_release_notes_version", false) | |||
| 629 | + | ||||
| 580 | cret := xAboutDialogGetReleaseNotesVersion(x.GoPointer()) | 630 | cret := xAboutDialogGetReleaseNotesVersion(x.GoPointer()) | ||
| 581 | return cret | 631 | return cret | ||
| 582 | } | 632 | } | ||
| @@ -585,6 +635,8 @@ var xAboutDialogGetSupportUrl func(uintptr) string | |||||
| 585 | 635 | ||||
| 586 | // Gets the URL of the support page for @self. | 636 | // Gets the URL of the support page for @self. | ||
| 587 | func (x *AboutDialog) GetSupportUrl() string { | 637 | func (x *AboutDialog) GetSupportUrl() string { | ||
| 638 | + | core.LazyRegister(&xAboutDialogGetSupportUrl, "ADW", "adw_about_dialog_get_support_url", false) | |||
| 639 | + | ||||
| 588 | cret := xAboutDialogGetSupportUrl(x.GoPointer()) | 640 | cret := xAboutDialogGetSupportUrl(x.GoPointer()) | ||
| 589 | return cret | 641 | return cret | ||
| 590 | } | 642 | } | ||
| @@ -593,6 +645,8 @@ var xAboutDialogGetTranslatorCredits func(uintptr) string | |||||
| 593 | 645 | ||||
| 594 | // Gets the translator credits string. | 646 | // Gets the translator credits string. | ||
| 595 | func (x *AboutDialog) GetTranslatorCredits() string { | 647 | func (x *AboutDialog) GetTranslatorCredits() string { | ||
| 648 | + | core.LazyRegister(&xAboutDialogGetTranslatorCredits, "ADW", "adw_about_dialog_get_translator_credits", false) | |||
| 649 | + | ||||
| 596 | cret := xAboutDialogGetTranslatorCredits(x.GoPointer()) | 650 | cret := xAboutDialogGetTranslatorCredits(x.GoPointer()) | ||
| 597 | return cret | 651 | return cret | ||
| 598 | } | 652 | } | ||
| @@ -601,6 +655,8 @@ var xAboutDialogGetVersion func(uintptr) string | |||||
| 601 | 655 | ||||
| 602 | // Gets the version for @self. | 656 | // Gets the version for @self. | ||
| 603 | func (x *AboutDialog) GetVersion() string { | 657 | func (x *AboutDialog) GetVersion() string { | ||
| 658 | + | core.LazyRegister(&xAboutDialogGetVersion, "ADW", "adw_about_dialog_get_version", false) | |||
| 659 | + | ||||
| 604 | cret := xAboutDialogGetVersion(x.GoPointer()) | 660 | cret := xAboutDialogGetVersion(x.GoPointer()) | ||
| 605 | return cret | 661 | return cret | ||
| 606 | } | 662 | } | ||
| @@ -609,6 +665,8 @@ var xAboutDialogGetWebsite func(uintptr) string | |||||
| 609 | 665 | ||||
| 610 | // Gets the application website URL for @self. | 666 | // Gets the application website URL for @self. | ||
| 611 | func (x *AboutDialog) GetWebsite() string { | 667 | func (x *AboutDialog) GetWebsite() string { | ||
| 668 | + | core.LazyRegister(&xAboutDialogGetWebsite, "ADW", "adw_about_dialog_get_website", false) | |||
| 669 | + | ||||
| 612 | cret := xAboutDialogGetWebsite(x.GoPointer()) | 670 | cret := xAboutDialogGetWebsite(x.GoPointer()) | ||
| 613 | return cret | 671 | return cret | ||
| 614 | } | 672 | } | ||
| @@ -619,6 +677,8 @@ var xAboutDialogSetApplicationIcon func(uintptr, string) | |||||
| 619 | // | 677 | // | ||
| 620 | // The icon is displayed at the top of the main page. | 678 | // The icon is displayed at the top of the main page. | ||
| 621 | func (x *AboutDialog) SetApplicationIcon(ApplicationIconVar string) { | 679 | func (x *AboutDialog) SetApplicationIcon(ApplicationIconVar string) { | ||
| 680 | + | core.LazyRegister(&xAboutDialogSetApplicationIcon, "ADW", "adw_about_dialog_set_application_icon", false) | |||
| 681 | + | ||||
| 622 | xAboutDialogSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | 682 | xAboutDialogSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | ||
| 623 | } | 683 | } | ||
| 624 | 684 | ||||
| @@ -628,6 +688,8 @@ var xAboutDialogSetApplicationName func(uintptr, string) | |||||
| 628 | // | 688 | // | ||
| 629 | // The name is displayed at the top of the main page. | 689 | // The name is displayed at the top of the main page. | ||
| 630 | func (x *AboutDialog) SetApplicationName(ApplicationNameVar string) { | 690 | func (x *AboutDialog) SetApplicationName(ApplicationNameVar string) { | ||
| 691 | + | core.LazyRegister(&xAboutDialogSetApplicationName, "ADW", "adw_about_dialog_set_application_name", false) | |||
| 692 | + | ||||
| 631 | xAboutDialogSetApplicationName(x.GoPointer(), ApplicationNameVar) | 693 | xAboutDialogSetApplicationName(x.GoPointer(), ApplicationNameVar) | ||
| 632 | } | 694 | } | ||
| 633 | 695 | ||||
| @@ -649,6 +711,8 @@ var xAboutDialogSetArtists func(uintptr, []string) | |||||
| 649 | // * [method@AboutDialog.add_credit_section] | 711 | // * [method@AboutDialog.add_credit_section] | ||
| 650 | // * [method@AboutDialog.add_acknowledgement_section] | 712 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 651 | func (x *AboutDialog) SetArtists(ArtistsVar []string) { | 713 | func (x *AboutDialog) SetArtists(ArtistsVar []string) { | ||
| 714 | + | core.LazyRegister(&xAboutDialogSetArtists, "ADW", "adw_about_dialog_set_artists", false) | |||
| 715 | + | ||||
| 652 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | 716 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | ||
| 653 | } | 717 | } | ||
| 654 | 718 | ||||
| @@ -661,6 +725,8 @@ var xAboutDialogSetComments func(uintptr, string) | |||||
| 661 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | 725 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | ||
| 662 | // detailed. It can also contain links and Pango markup. | 726 | // detailed. It can also contain links and Pango markup. | ||
| 663 | func (x *AboutDialog) SetComments(CommentsVar string) { | 727 | func (x *AboutDialog) SetComments(CommentsVar string) { | ||
| 728 | + | core.LazyRegister(&xAboutDialogSetComments, "ADW", "adw_about_dialog_set_comments", false) | |||
| 729 | + | ||||
| 664 | xAboutDialogSetComments(x.GoPointer(), CommentsVar) | 730 | xAboutDialogSetComments(x.GoPointer(), CommentsVar) | ||
| 665 | } | 731 | } | ||
| 666 | 732 | ||||
| @@ -677,6 +743,8 @@ var xAboutDialogSetCopyright func(uintptr, string) | |||||
| 677 | // [method@AboutDialog.add_legal_section] can be used to add copyright | 743 | // [method@AboutDialog.add_legal_section] can be used to add copyright | ||
| 678 | // information for the application dependencies or other components. | 744 | // information for the application dependencies or other components. | ||
| 679 | func (x *AboutDialog) SetCopyright(CopyrightVar string) { | 745 | func (x *AboutDialog) SetCopyright(CopyrightVar string) { | ||
| 746 | + | core.LazyRegister(&xAboutDialogSetCopyright, "ADW", "adw_about_dialog_set_copyright", false) | |||
| 747 | + | ||||
| 680 | xAboutDialogSetCopyright(x.GoPointer(), CopyrightVar) | 748 | xAboutDialogSetCopyright(x.GoPointer(), CopyrightVar) | ||
| 681 | } | 749 | } | ||
| 682 | 750 | ||||
| @@ -694,6 +762,8 @@ var xAboutDialogSetDebugInfo func(uintptr, string) | |||||
| 694 | // | 762 | // | ||
| 695 | // Debug information cannot contain markup or links. | 763 | // Debug information cannot contain markup or links. | ||
| 696 | func (x *AboutDialog) SetDebugInfo(DebugInfoVar string) { | 764 | func (x *AboutDialog) SetDebugInfo(DebugInfoVar string) { | ||
| 765 | + | core.LazyRegister(&xAboutDialogSetDebugInfo, "ADW", "adw_about_dialog_set_debug_info", false) | |||
| 766 | + | ||||
| 697 | xAboutDialogSetDebugInfo(x.GoPointer(), DebugInfoVar) | 767 | xAboutDialogSetDebugInfo(x.GoPointer(), DebugInfoVar) | ||
| 698 | } | 768 | } | ||
| 699 | 769 | ||||
| @@ -706,6 +776,8 @@ var xAboutDialogSetDebugInfoFilename func(uintptr, string) | |||||
| 706 | // | 776 | // | ||
| 707 | // See [property@AboutDialog:debug-info]. | 777 | // See [property@AboutDialog:debug-info]. | ||
| 708 | func (x *AboutDialog) SetDebugInfoFilename(FilenameVar string) { | 778 | func (x *AboutDialog) SetDebugInfoFilename(FilenameVar string) { | ||
| 779 | + | core.LazyRegister(&xAboutDialogSetDebugInfoFilename, "ADW", "adw_about_dialog_set_debug_info_filename", false) | |||
| 780 | + | ||||
| 709 | xAboutDialogSetDebugInfoFilename(x.GoPointer(), FilenameVar) | 781 | xAboutDialogSetDebugInfoFilename(x.GoPointer(), FilenameVar) | ||
| 710 | } | 782 | } | ||
| 711 | 783 | ||||
| @@ -727,6 +799,8 @@ var xAboutDialogSetDesigners func(uintptr, []string) | |||||
| 727 | // * [method@AboutDialog.add_credit_section] | 799 | // * [method@AboutDialog.add_credit_section] | ||
| 728 | // * [method@AboutDialog.add_acknowledgement_section] | 800 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 729 | func (x *AboutDialog) SetDesigners(DesignersVar []string) { | 801 | func (x *AboutDialog) SetDesigners(DesignersVar []string) { | ||
| 802 | + | core.LazyRegister(&xAboutDialogSetDesigners, "ADW", "adw_about_dialog_set_designers", false) | |||
| 803 | + | ||||
| 730 | xAboutDialogSetDesigners(x.GoPointer(), DesignersVar) | 804 | xAboutDialogSetDesigners(x.GoPointer(), DesignersVar) | ||
| 731 | } | 805 | } | ||
| 732 | 806 | ||||
| @@ -741,6 +815,8 @@ var xAboutDialogSetDeveloperName func(uintptr, string) | |||||
| 741 | // "The AppName project", and the individual contributors can be listed on the | 815 | // "The AppName project", and the individual contributors can be listed on the | ||
| 742 | // Credits page, with [property@AboutDialog:developers] and related properties. | 816 | // Credits page, with [property@AboutDialog:developers] and related properties. | ||
| 743 | func (x *AboutDialog) SetDeveloperName(DeveloperNameVar string) { | 817 | func (x *AboutDialog) SetDeveloperName(DeveloperNameVar string) { | ||
| 818 | + | core.LazyRegister(&xAboutDialogSetDeveloperName, "ADW", "adw_about_dialog_set_developer_name", false) | |||
| 819 | + | ||||
| 744 | xAboutDialogSetDeveloperName(x.GoPointer(), DeveloperNameVar) | 820 | xAboutDialogSetDeveloperName(x.GoPointer(), DeveloperNameVar) | ||
| 745 | } | 821 | } | ||
| 746 | 822 | ||||
| @@ -762,6 +838,8 @@ var xAboutDialogSetDevelopers func(uintptr, []string) | |||||
| 762 | // * [method@AboutDialog.add_credit_section] | 838 | // * [method@AboutDialog.add_credit_section] | ||
| 763 | // * [method@AboutDialog.add_acknowledgement_section] | 839 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 764 | func (x *AboutDialog) SetDevelopers(DevelopersVar []string) { | 840 | func (x *AboutDialog) SetDevelopers(DevelopersVar []string) { | ||
| 841 | + | core.LazyRegister(&xAboutDialogSetDevelopers, "ADW", "adw_about_dialog_set_developers", false) | |||
| 842 | + | ||||
| 765 | xAboutDialogSetDevelopers(x.GoPointer(), DevelopersVar) | 843 | xAboutDialogSetDevelopers(x.GoPointer(), DevelopersVar) | ||
| 766 | } | 844 | } | ||
| 767 | 845 | ||||
| @@ -783,6 +861,8 @@ var xAboutDialogSetDocumenters func(uintptr, []string) | |||||
| 783 | // * [method@AboutDialog.add_credit_section] | 861 | // * [method@AboutDialog.add_credit_section] | ||
| 784 | // * [method@AboutDialog.add_acknowledgement_section] | 862 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 785 | func (x *AboutDialog) SetDocumenters(DocumentersVar []string) { | 863 | func (x *AboutDialog) SetDocumenters(DocumentersVar []string) { | ||
| 864 | + | core.LazyRegister(&xAboutDialogSetDocumenters, "ADW", "adw_about_dialog_set_documenters", false) | |||
| 865 | + | ||||
| 786 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | 866 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | ||
| 787 | } | 867 | } | ||
| 788 | 868 | ||||
| @@ -792,6 +872,8 @@ var xAboutDialogSetIssueUrl func(uintptr, string) | |||||
| 792 | // | 872 | // | ||
| 793 | // The issue tracker link is displayed on the main page. | 873 | // The issue tracker link is displayed on the main page. | ||
| 794 | func (x *AboutDialog) SetIssueUrl(IssueUrlVar string) { | 874 | func (x *AboutDialog) SetIssueUrl(IssueUrlVar string) { | ||
| 875 | + | core.LazyRegister(&xAboutDialogSetIssueUrl, "ADW", "adw_about_dialog_set_issue_url", false) | |||
| 876 | + | ||||
| 795 | xAboutDialogSetIssueUrl(x.GoPointer(), IssueUrlVar) | 877 | xAboutDialogSetIssueUrl(x.GoPointer(), IssueUrlVar) | ||
| 796 | } | 878 | } | ||
| 797 | 879 | ||||
| @@ -813,6 +895,8 @@ var xAboutDialogSetLicense func(uintptr, string) | |||||
| 813 | // [method@AboutDialog.add_legal_section] can be used to add license information | 895 | // [method@AboutDialog.add_legal_section] can be used to add license information | ||
| 814 | // for the application dependencies or other components. | 896 | // for the application dependencies or other components. | ||
| 815 | func (x *AboutDialog) SetLicense(LicenseVar string) { | 897 | func (x *AboutDialog) SetLicense(LicenseVar string) { | ||
| 898 | + | core.LazyRegister(&xAboutDialogSetLicense, "ADW", "adw_about_dialog_set_license", false) | |||
| 899 | + | ||||
| 816 | xAboutDialogSetLicense(x.GoPointer(), LicenseVar) | 900 | xAboutDialogSetLicense(x.GoPointer(), LicenseVar) | ||
| 817 | } | 901 | } | ||
| 818 | 902 | ||||
| @@ -836,6 +920,8 @@ var xAboutDialogSetLicenseType func(uintptr, gtk.License) | |||||
| 836 | // [method@AboutDialog.add_legal_section] can be used to add license information | 920 | // [method@AboutDialog.add_legal_section] can be used to add license information | ||
| 837 | // for the application dependencies or other components. | 921 | // for the application dependencies or other components. | ||
| 838 | func (x *AboutDialog) SetLicenseType(LicenseTypeVar gtk.License) { | 922 | func (x *AboutDialog) SetLicenseType(LicenseTypeVar gtk.License) { | ||
| 923 | + | core.LazyRegister(&xAboutDialogSetLicenseType, "ADW", "adw_about_dialog_set_license_type", false) | |||
| 924 | + | ||||
| 839 | xAboutDialogSetLicenseType(x.GoPointer(), LicenseTypeVar) | 925 | xAboutDialogSetLicenseType(x.GoPointer(), LicenseTypeVar) | ||
| 840 | } | 926 | } | ||
| 841 | 927 | ||||
| @@ -866,6 +952,8 @@ var xAboutDialogSetReleaseNotes func(uintptr, string) | |||||
| 866 | // [property@AboutDialog:release-notes-version] of the property will be used | 952 | // [property@AboutDialog:release-notes-version] of the property will be used | ||
| 867 | // as the version; otherwise, [property@AboutDialog:version] is used. | 953 | // as the version; otherwise, [property@AboutDialog:version] is used. | ||
| 868 | func (x *AboutDialog) SetReleaseNotes(ReleaseNotesVar string) { | 954 | func (x *AboutDialog) SetReleaseNotes(ReleaseNotesVar string) { | ||
| 955 | + | core.LazyRegister(&xAboutDialogSetReleaseNotes, "ADW", "adw_about_dialog_set_release_notes", false) | |||
| 956 | + | ||||
| 869 | xAboutDialogSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | 957 | xAboutDialogSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | ||
| 870 | } | 958 | } | ||
| 871 | 959 | ||||
| @@ -884,6 +972,8 @@ var xAboutDialogSetReleaseNotesVersion func(uintptr, string) | |||||
| 884 | // | 972 | // | ||
| 885 | // See [property@AboutDialog:release-notes]. | 973 | // See [property@AboutDialog:release-notes]. | ||
| 886 | func (x *AboutDialog) SetReleaseNotesVersion(VersionVar string) { | 974 | func (x *AboutDialog) SetReleaseNotesVersion(VersionVar string) { | ||
| 975 | + | core.LazyRegister(&xAboutDialogSetReleaseNotesVersion, "ADW", "adw_about_dialog_set_release_notes_version", false) | |||
| 976 | + | ||||
| 887 | xAboutDialogSetReleaseNotesVersion(x.GoPointer(), VersionVar) | 977 | xAboutDialogSetReleaseNotesVersion(x.GoPointer(), VersionVar) | ||
| 888 | } | 978 | } | ||
| 889 | 979 | ||||
| @@ -893,6 +983,8 @@ var xAboutDialogSetSupportUrl func(uintptr, string) | |||||
| 893 | // | 983 | // | ||
| 894 | // The support page link is displayed on the main page. | 984 | // The support page link is displayed on the main page. | ||
| 895 | func (x *AboutDialog) SetSupportUrl(SupportUrlVar string) { | 985 | func (x *AboutDialog) SetSupportUrl(SupportUrlVar string) { | ||
| 986 | + | core.LazyRegister(&xAboutDialogSetSupportUrl, "ADW", "adw_about_dialog_set_support_url", false) | |||
| 987 | + | ||||
| 896 | xAboutDialogSetSupportUrl(x.GoPointer(), SupportUrlVar) | 988 | xAboutDialogSetSupportUrl(x.GoPointer(), SupportUrlVar) | ||
| 897 | } | 989 | } | ||
| 898 | 990 | ||||
| @@ -918,6 +1010,8 @@ var xAboutDialogSetTranslatorCredits func(uintptr, string) | |||||
| 918 | // * [method@AboutDialog.add_credit_section] | 1010 | // * [method@AboutDialog.add_credit_section] | ||
| 919 | // * [method@AboutDialog.add_acknowledgement_section] | 1011 | // * [method@AboutDialog.add_acknowledgement_section] | ||
| 920 | func (x *AboutDialog) SetTranslatorCredits(TranslatorCreditsVar string) { | 1012 | func (x *AboutDialog) SetTranslatorCredits(TranslatorCreditsVar string) { | ||
| 1013 | + | core.LazyRegister(&xAboutDialogSetTranslatorCredits, "ADW", "adw_about_dialog_set_translator_credits", false) | |||
| 1014 | + | ||||
| 921 | xAboutDialogSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | 1015 | xAboutDialogSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | ||
| 922 | } | 1016 | } | ||
| 923 | 1017 | ||||
| @@ -930,6 +1024,8 @@ var xAboutDialogSetVersion func(uintptr, string) | |||||
| 930 | // If [property@AboutDialog:release-notes-version] is not set, the version will | 1024 | // If [property@AboutDialog:release-notes-version] is not set, the version will | ||
| 931 | // also be displayed above the release notes on the What's New page. | 1025 | // also be displayed above the release notes on the What's New page. | ||
| 932 | func (x *AboutDialog) SetVersion(VersionVar string) { | 1026 | func (x *AboutDialog) SetVersion(VersionVar string) { | ||
| 1027 | + | core.LazyRegister(&xAboutDialogSetVersion, "ADW", "adw_about_dialog_set_version", false) | |||
| 1028 | + | ||||
| 933 | xAboutDialogSetVersion(x.GoPointer(), VersionVar) | 1029 | xAboutDialogSetVersion(x.GoPointer(), VersionVar) | ||
| 934 | } | 1030 | } | ||
| 935 | 1031 | ||||
| @@ -942,6 +1038,8 @@ var xAboutDialogSetWebsite func(uintptr, string) | |||||
| 942 | // | 1038 | // | ||
| 943 | // Applications can add other links below, see [method@AboutDialog.add_link]. | 1039 | // Applications can add other links below, see [method@AboutDialog.add_link]. | ||
| 944 | func (x *AboutDialog) SetWebsite(WebsiteVar string) { | 1040 | func (x *AboutDialog) SetWebsite(WebsiteVar string) { | ||
| 1041 | + | core.LazyRegister(&xAboutDialogSetWebsite, "ADW", "adw_about_dialog_set_website", false) | |||
| 1042 | + | ||||
| 945 | xAboutDialogSetWebsite(x.GoPointer(), WebsiteVar) | 1043 | xAboutDialogSetWebsite(x.GoPointer(), WebsiteVar) | ||
| 946 | } | 1044 | } | ||
| 947 | 1045 | ||||
| @@ -1955,67 +2053,4 @@ func (x *AboutDialog) GetBuildableId() string { | |||||
| 1955 | func init() { | 2053 | func init() { | ||
| 1956 | core.SetPackageName("ADW", "libadwaita-1") | 2054 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1957 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 2055 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1958 | - | var libs []uintptr | |||
| 1959 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 1960 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1961 | - | if err != nil { | |||
| 1962 | - | panic(err) | |||
| 1963 | - | } | |||
| 1964 | - | libs = append(libs, lib) | |||
| 1965 | - | } | |||
| 1966 | - | ||||
| 1967 | - | core.PuregoSafeRegister(&xShowAboutDialog, libs, "adw_show_about_dialog") | |||
| 1968 | - | core.PuregoSafeRegister(&xShowAboutDialogFromAppdata, libs, "adw_show_about_dialog_from_appdata") | |||
| 1969 | - | ||||
| 1970 | - | core.PuregoSafeRegister(&xAboutDialogGLibType, libs, "adw_about_dialog_get_type") | |||
| 1971 | - | ||||
| 1972 | - | core.PuregoSafeRegister(&xNewAboutDialog, libs, "adw_about_dialog_new") | |||
| 1973 | - | core.PuregoSafeRegister(&xNewAboutDialogFromAppdata, libs, "adw_about_dialog_new_from_appdata") | |||
| 1974 | - | ||||
| 1975 | - | core.PuregoSafeRegister(&xAboutDialogAddAcknowledgementSection, libs, "adw_about_dialog_add_acknowledgement_section") | |||
| 1976 | - | core.PuregoSafeRegister(&xAboutDialogAddCreditSection, libs, "adw_about_dialog_add_credit_section") | |||
| 1977 | - | core.PuregoSafeRegister(&xAboutDialogAddLegalSection, libs, "adw_about_dialog_add_legal_section") | |||
| 1978 | - | core.PuregoSafeRegister(&xAboutDialogAddLink, libs, "adw_about_dialog_add_link") | |||
| 1979 | - | core.PuregoSafeRegister(&xAboutDialogAddOtherApp, libs, "adw_about_dialog_add_other_app") | |||
| 1980 | - | core.PuregoSafeRegister(&xAboutDialogGetAppdataResourcePath, libs, "adw_about_dialog_get_appdata_resource_path") | |||
| 1981 | - | core.PuregoSafeRegister(&xAboutDialogGetApplicationIcon, libs, "adw_about_dialog_get_application_icon") | |||
| 1982 | - | core.PuregoSafeRegister(&xAboutDialogGetApplicationName, libs, "adw_about_dialog_get_application_name") | |||
| 1983 | - | core.PuregoSafeRegister(&xAboutDialogGetArtists, libs, "adw_about_dialog_get_artists") | |||
| 1984 | - | core.PuregoSafeRegister(&xAboutDialogGetComments, libs, "adw_about_dialog_get_comments") | |||
| 1985 | - | core.PuregoSafeRegister(&xAboutDialogGetCopyright, libs, "adw_about_dialog_get_copyright") | |||
| 1986 | - | core.PuregoSafeRegister(&xAboutDialogGetDebugInfo, libs, "adw_about_dialog_get_debug_info") | |||
| 1987 | - | core.PuregoSafeRegister(&xAboutDialogGetDebugInfoFilename, libs, "adw_about_dialog_get_debug_info_filename") | |||
| 1988 | - | core.PuregoSafeRegister(&xAboutDialogGetDesigners, libs, "adw_about_dialog_get_designers") | |||
| 1989 | - | core.PuregoSafeRegister(&xAboutDialogGetDeveloperName, libs, "adw_about_dialog_get_developer_name") | |||
| 1990 | - | core.PuregoSafeRegister(&xAboutDialogGetDevelopers, libs, "adw_about_dialog_get_developers") | |||
| 1991 | - | core.PuregoSafeRegister(&xAboutDialogGetDocumenters, libs, "adw_about_dialog_get_documenters") | |||
| 1992 | - | core.PuregoSafeRegister(&xAboutDialogGetIssueUrl, libs, "adw_about_dialog_get_issue_url") | |||
| 1993 | - | core.PuregoSafeRegister(&xAboutDialogGetLicense, libs, "adw_about_dialog_get_license") | |||
| 1994 | - | core.PuregoSafeRegister(&xAboutDialogGetLicenseType, libs, "adw_about_dialog_get_license_type") | |||
| 1995 | - | core.PuregoSafeRegister(&xAboutDialogGetReleaseNotes, libs, "adw_about_dialog_get_release_notes") | |||
| 1996 | - | core.PuregoSafeRegister(&xAboutDialogGetReleaseNotesVersion, libs, "adw_about_dialog_get_release_notes_version") | |||
| 1997 | - | core.PuregoSafeRegister(&xAboutDialogGetSupportUrl, libs, "adw_about_dialog_get_support_url") | |||
| 1998 | - | core.PuregoSafeRegister(&xAboutDialogGetTranslatorCredits, libs, "adw_about_dialog_get_translator_credits") | |||
| 1999 | - | core.PuregoSafeRegister(&xAboutDialogGetVersion, libs, "adw_about_dialog_get_version") | |||
| 2000 | - | core.PuregoSafeRegister(&xAboutDialogGetWebsite, libs, "adw_about_dialog_get_website") | |||
| 2001 | - | core.PuregoSafeRegister(&xAboutDialogSetApplicationIcon, libs, "adw_about_dialog_set_application_icon") | |||
| 2002 | - | core.PuregoSafeRegister(&xAboutDialogSetApplicationName, libs, "adw_about_dialog_set_application_name") | |||
| 2003 | - | core.PuregoSafeRegister(&xAboutDialogSetArtists, libs, "adw_about_dialog_set_artists") | |||
| 2004 | - | core.PuregoSafeRegister(&xAboutDialogSetComments, libs, "adw_about_dialog_set_comments") | |||
| 2005 | - | core.PuregoSafeRegister(&xAboutDialogSetCopyright, libs, "adw_about_dialog_set_copyright") | |||
| 2006 | - | core.PuregoSafeRegister(&xAboutDialogSetDebugInfo, libs, "adw_about_dialog_set_debug_info") | |||
| 2007 | - | core.PuregoSafeRegister(&xAboutDialogSetDebugInfoFilename, libs, "adw_about_dialog_set_debug_info_filename") | |||
| 2008 | - | core.PuregoSafeRegister(&xAboutDialogSetDesigners, libs, "adw_about_dialog_set_designers") | |||
| 2009 | - | core.PuregoSafeRegister(&xAboutDialogSetDeveloperName, libs, "adw_about_dialog_set_developer_name") | |||
| 2010 | - | core.PuregoSafeRegister(&xAboutDialogSetDevelopers, libs, "adw_about_dialog_set_developers") | |||
| 2011 | - | core.PuregoSafeRegister(&xAboutDialogSetDocumenters, libs, "adw_about_dialog_set_documenters") | |||
| 2012 | - | core.PuregoSafeRegister(&xAboutDialogSetIssueUrl, libs, "adw_about_dialog_set_issue_url") | |||
| 2013 | - | core.PuregoSafeRegister(&xAboutDialogSetLicense, libs, "adw_about_dialog_set_license") | |||
| 2014 | - | core.PuregoSafeRegister(&xAboutDialogSetLicenseType, libs, "adw_about_dialog_set_license_type") | |||
| 2015 | - | core.PuregoSafeRegister(&xAboutDialogSetReleaseNotes, libs, "adw_about_dialog_set_release_notes") | |||
| 2016 | - | core.PuregoSafeRegister(&xAboutDialogSetReleaseNotesVersion, libs, "adw_about_dialog_set_release_notes_version") | |||
| 2017 | - | core.PuregoSafeRegister(&xAboutDialogSetSupportUrl, libs, "adw_about_dialog_set_support_url") | |||
| 2018 | - | core.PuregoSafeRegister(&xAboutDialogSetTranslatorCredits, libs, "adw_about_dialog_set_translator_credits") | |||
| 2019 | - | core.PuregoSafeRegister(&xAboutDialogSetVersion, libs, "adw_about_dialog_set_version") | |||
| 2020 | - | core.PuregoSafeRegister(&xAboutDialogSetWebsite, libs, "adw_about_dialog_set_website") | |||
| 2021 | } | 2056 | } | ||