Merge pull request #344 from bnema/chore/upstream-foundations
chore(deps): integrate approved upstream foundations
921 files · +28709 -25527
M docs/first-presentation.md +5 -2
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||
| 46 | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | |
| 47 | 47 | do not use a device model or other identifier. Publish only the seven reviewed | |
| 48 | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | |
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | |
| 50 | - | invalid run fails collection. | |
| 49 | + | must not be published. `metadata.json` derives the selected | |
| 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git | |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |
| 53 | + | run also fails collection. | |
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||||
| 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | ||
| 47 | do not use a device model or other identifier. Publish only the seven reviewed | 47 | do not use a device model or other identifier. Publish only the seven reviewed | ||
| 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | ||
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | 49 | + | must not be published. `metadata.json` derives the selected |
| 50 | - | invalid run fails collection. | 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |||
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |||
| 53 | + | run also fails collection. | |||
M go.mod +5 -5
| @@ -6,11 +6,11 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.3 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | |
| 13 | - | github.com/bnema/puregotk v0.7.0 | |
| 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -6,11 +6,11 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.3 | 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c |
| 13 | - | github.com/bnema/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +12 -0 generated file: collapsed
A internal/infrastructure/persistence/sqlite/history_repo_benchmark_test.go +71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | package sqlite_test | |
| 2 | + | ||
| 3 | + | import ( | |
| 4 | + | "fmt" | |
| 5 | + | "path/filepath" | |
| 6 | + | "testing" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |
| 15 | + | // history suggestions use Search. | |
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |
| 17 | + | b.Helper() | |
| 18 | + | ||
| 19 | + | ctx := historyTestCtx() | |
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |
| 21 | + | if err != nil { | |
| 22 | + | b.Fatal(err) | |
| 23 | + | } | |
| 24 | + | ||
| 25 | + | b.Cleanup(func() { | |
| 26 | + | if err := db.Close(); err != nil { | |
| 27 | + | b.Errorf("close benchmark database: %v", err) | |
| 28 | + | } | |
| 29 | + | }) | |
| 30 | + | ||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |
| 32 | + | for i := range 200 { | |
| 33 | + | entry := &entity.HistoryEntry{ | |
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |
| 36 | + | } | |
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |
| 38 | + | b.Fatal(err) | |
| 39 | + | } | |
| 40 | + | } | |
| 41 | + | ||
| 42 | + | return repo, func() {} | |
| 43 | + | } | |
| 44 | + | ||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 47 | + | defer closeDB() | |
| 48 | + | ctx := historyTestCtx() | |
| 49 | + | ||
| 50 | + | b.ReportAllocs() | |
| 51 | + | b.ResetTimer() | |
| 52 | + | for range b.N { | |
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |
| 54 | + | b.Fatal(err) | |
| 55 | + | } | |
| 56 | + | } | |
| 57 | + | } | |
| 58 | + | ||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 61 | + | defer closeDB() | |
| 62 | + | ctx := historyTestCtx() | |
| 63 | + | ||
| 64 | + | b.ReportAllocs() | |
| 65 | + | b.ResetTimer() | |
| 66 | + | for range b.N { | |
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |
| 68 | + | b.Fatal(err) | |
| 69 | + | } | |
| 70 | + | } | |
| 71 | + | } | |
| @@ -0,0 +1,71 @@ | |||||
| 1 | + | package sqlite_test | |||
| 2 | + | ||||
| 3 | + | import ( | |||
| 4 | + | "fmt" | |||
| 5 | + | "path/filepath" | |||
| 6 | + | "testing" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |||
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |||
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |||
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |||
| 15 | + | // history suggestions use Search. | |||
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |||
| 17 | + | b.Helper() | |||
| 18 | + | ||||
| 19 | + | ctx := historyTestCtx() | |||
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |||
| 21 | + | if err != nil { | |||
| 22 | + | b.Fatal(err) | |||
| 23 | + | } | |||
| 24 | + | ||||
| 25 | + | b.Cleanup(func() { | |||
| 26 | + | if err := db.Close(); err != nil { | |||
| 27 | + | b.Errorf("close benchmark database: %v", err) | |||
| 28 | + | } | |||
| 29 | + | }) | |||
| 30 | + | ||||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |||
| 32 | + | for i := range 200 { | |||
| 33 | + | entry := &entity.HistoryEntry{ | |||
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |||
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |||
| 36 | + | } | |||
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |||
| 38 | + | b.Fatal(err) | |||
| 39 | + | } | |||
| 40 | + | } | |||
| 41 | + | ||||
| 42 | + | return repo, func() {} | |||
| 43 | + | } | |||
| 44 | + | ||||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |||
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 47 | + | defer closeDB() | |||
| 48 | + | ctx := historyTestCtx() | |||
| 49 | + | ||||
| 50 | + | b.ReportAllocs() | |||
| 51 | + | b.ResetTimer() | |||
| 52 | + | for range b.N { | |||
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |||
| 54 | + | b.Fatal(err) | |||
| 55 | + | } | |||
| 56 | + | } | |||
| 57 | + | } | |||
| 58 | + | ||||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |||
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 61 | + | defer closeDB() | |||
| 62 | + | ctx := historyTestCtx() | |||
| 63 | + | ||||
| 64 | + | b.ReportAllocs() | |||
| 65 | + | b.ResetTimer() | |||
| 66 | + | for range b.N { | |||
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |||
| 68 | + | b.Fatal(err) | |||
| 69 | + | } | |||
| 70 | + | } | |||
| 71 | + | } | |||
M internal/logging/first_presentation_collector_test.go +132 -1
| @@ -2,6 +2,7 @@ package logging | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/json" | |
| 5 | + | "fmt" | |
| 5 | 6 | "os" | |
| 6 | 7 | "os/exec" | |
| 7 | 8 | "path/filepath" | |
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 143 | 144 | } | |
| 144 | 145 | for _, required := range []string{ | |
| 145 | 146 | `"measured_source_revision"`, | |
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |
| 146 | 148 | `"tag": "v0.8.4"`, | |
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | |
| 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, | |
| 148 | 150 | } { | |
| 149 | 151 | require.Contains(t, artifacts.String(), required) | |
| 150 | 152 | } | |
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 166 | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | |
| 167 | 169 | } | |
| 168 | 170 | ||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 173 | + | require.NoError(t, err) | |
| 174 | + | temp := t.TempDir() | |
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 177 | + | binary := filepath.Join(temp, "dumber") | |
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 179 | + | ||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |
| 181 | + | // hardcode; the collector must report what the selected module says. | |
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |
| 185 | + | output := filepath.Join(temp, "artifacts") | |
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 187 | + | cmd.Dir = repoRoot | |
| 188 | + | cmd.Env = append(os.Environ(), | |
| 189 | + | "DISPLAY=:test", | |
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 195 | + | ) | |
| 196 | + | result, err := cmd.CombinedOutput() | |
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |
| 198 | + | ||
| 199 | + | var metadata struct { | |
| 200 | + | Upstream struct { | |
| 201 | + | Module string `json:"module"` | |
| 202 | + | Version string `json:"version"` | |
| 203 | + | Tag string `json:"tag"` | |
| 204 | + | Revision string `json:"revision"` | |
| 205 | + | } `json:"upstream"` | |
| 206 | + | } | |
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |
| 208 | + | require.NoError(t, err) | |
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |
| 214 | + | ||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 216 | + | require.NoError(t, err) | |
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 222 | + | require.NoError(t, err) | |
| 223 | + | ||
| 224 | + | for _, test := range []struct { | |
| 225 | + | name, version, revision, ref string | |
| 226 | + | }{ | |
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |
| 230 | + | } { | |
| 231 | + | t.Run(test.name, func(t *testing.T) { | |
| 232 | + | temp := t.TempDir() | |
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 235 | + | binary := filepath.Join(temp, "dumber") | |
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 237 | + | ||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |
| 239 | + | output := filepath.Join(temp, "artifacts") | |
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 241 | + | cmd.Dir = repoRoot | |
| 242 | + | cmd.Env = append(os.Environ(), | |
| 243 | + | "DISPLAY=:test", | |
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 248 | + | ) | |
| 249 | + | result, runErr := cmd.CombinedOutput() | |
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |
| 252 | + | require.NotContains(t, string(result), temp) | |
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |
| 254 | + | for _, name := range runArtifactNames() { | |
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |
| 256 | + | } | |
| 257 | + | }) | |
| 258 | + | } | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |
| 262 | + | t.Helper() | |
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |
| 264 | + | info := map[string]any{"Version": version} | |
| 265 | + | if revision != "" { | |
| 266 | + | info["Origin"] = map[string]string{ | |
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |
| 268 | + | } | |
| 269 | + | } | |
| 270 | + | infoJSON, err := json.Marshal(info) | |
| 271 | + | require.NoError(t, err) | |
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |
| 273 | + | ||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |
| 276 | + | }) | |
| 277 | + | require.NoError(t, err) | |
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |
| 280 | + | }) | |
| 281 | + | require.NoError(t, err) | |
| 282 | + | binDir := filepath.Join(temp, "bin") | |
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |
| 284 | + | goBin := filepath.Join(binDir, "go") | |
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |
| 287 | + | printf '%%s\n' '%s' | |
| 288 | + | exit 0 | |
| 289 | + | fi | |
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |
| 291 | + | printf '%%s\n' '%s' | |
| 292 | + | exit 0 | |
| 293 | + | fi | |
| 294 | + | exit 1 | |
| 295 | + | `, selectedJSON, version, downloadedJSON) | |
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |
| 297 | + | return goBin | |
| 298 | + | } | |
| 299 | + | ||
| 169 | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | |
| 170 | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 171 | 302 | require.NoError(t, err) | |
| @@ -2,6 +2,7 @@ package logging | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/json" | 4 | "encoding/json" | ||
| 5 | + | "fmt" | |||
| 5 | "os" | 6 | "os" | ||
| 6 | "os/exec" | 7 | "os/exec" | ||
| 7 | "path/filepath" | 8 | "path/filepath" | ||
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 143 | } | 144 | } | ||
| 144 | for _, required := range []string{ | 145 | for _, required := range []string{ | ||
| 145 | `"measured_source_revision"`, | 146 | `"measured_source_revision"`, | ||
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |||
| 146 | `"tag": "v0.8.4"`, | 148 | `"tag": "v0.8.4"`, | ||
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, |
| 148 | } { | 150 | } { | ||
| 149 | require.Contains(t, artifacts.String(), required) | 151 | require.Contains(t, artifacts.String(), required) | ||
| 150 | } | 152 | } | ||
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 166 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | ||
| 167 | } | 169 | } | ||
| 168 | 170 | ||||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |||
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 173 | + | require.NoError(t, err) | |||
| 174 | + | temp := t.TempDir() | |||
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 177 | + | binary := filepath.Join(temp, "dumber") | |||
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 179 | + | ||||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |||
| 181 | + | // hardcode; the collector must report what the selected module says. | |||
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |||
| 185 | + | output := filepath.Join(temp, "artifacts") | |||
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 187 | + | cmd.Dir = repoRoot | |||
| 188 | + | cmd.Env = append(os.Environ(), | |||
| 189 | + | "DISPLAY=:test", | |||
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |||
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 195 | + | ) | |||
| 196 | + | result, err := cmd.CombinedOutput() | |||
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |||
| 198 | + | ||||
| 199 | + | var metadata struct { | |||
| 200 | + | Upstream struct { | |||
| 201 | + | Module string `json:"module"` | |||
| 202 | + | Version string `json:"version"` | |||
| 203 | + | Tag string `json:"tag"` | |||
| 204 | + | Revision string `json:"revision"` | |||
| 205 | + | } `json:"upstream"` | |||
| 206 | + | } | |||
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |||
| 208 | + | require.NoError(t, err) | |||
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |||
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |||
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |||
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |||
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |||
| 214 | + | ||||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 216 | + | require.NoError(t, err) | |||
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |||
| 218 | + | } | |||
| 219 | + | ||||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |||
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 222 | + | require.NoError(t, err) | |||
| 223 | + | ||||
| 224 | + | for _, test := range []struct { | |||
| 225 | + | name, version, revision, ref string | |||
| 226 | + | }{ | |||
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |||
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |||
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |||
| 230 | + | } { | |||
| 231 | + | t.Run(test.name, func(t *testing.T) { | |||
| 232 | + | temp := t.TempDir() | |||
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 235 | + | binary := filepath.Join(temp, "dumber") | |||
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 237 | + | ||||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |||
| 239 | + | output := filepath.Join(temp, "artifacts") | |||
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 241 | + | cmd.Dir = repoRoot | |||
| 242 | + | cmd.Env = append(os.Environ(), | |||
| 243 | + | "DISPLAY=:test", | |||
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 248 | + | ) | |||
| 249 | + | result, runErr := cmd.CombinedOutput() | |||
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |||
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |||
| 252 | + | require.NotContains(t, string(result), temp) | |||
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |||
| 254 | + | for _, name := range runArtifactNames() { | |||
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |||
| 256 | + | } | |||
| 257 | + | }) | |||
| 258 | + | } | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |||
| 262 | + | t.Helper() | |||
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |||
| 264 | + | info := map[string]any{"Version": version} | |||
| 265 | + | if revision != "" { | |||
| 266 | + | info["Origin"] = map[string]string{ | |||
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |||
| 268 | + | } | |||
| 269 | + | } | |||
| 270 | + | infoJSON, err := json.Marshal(info) | |||
| 271 | + | require.NoError(t, err) | |||
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |||
| 273 | + | ||||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |||
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |||
| 276 | + | }) | |||
| 277 | + | require.NoError(t, err) | |||
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |||
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |||
| 280 | + | }) | |||
| 281 | + | require.NoError(t, err) | |||
| 282 | + | binDir := filepath.Join(temp, "bin") | |||
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |||
| 284 | + | goBin := filepath.Join(binDir, "go") | |||
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |||
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |||
| 287 | + | printf '%%s\n' '%s' | |||
| 288 | + | exit 0 | |||
| 289 | + | fi | |||
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |||
| 291 | + | printf '%%s\n' '%s' | |||
| 292 | + | exit 0 | |||
| 293 | + | fi | |||
| 294 | + | exit 1 | |||
| 295 | + | `, selectedJSON, version, downloadedJSON) | |||
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |||
| 297 | + | return goBin | |||
| 298 | + | } | |||
| 299 | + | ||||
| 169 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | ||
| 170 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | ||
| 171 | require.NoError(t, err) | 302 | require.NoError(t, err) | ||
M scripts/collect_first_presentation.sh +78 -9
| @@ -31,8 +31,78 @@ else | |||
| 31 | 31 | fi | |
| 32 | 32 | readonly output | |
| 33 | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | |
| 34 | - | readonly upstream_tag="v0.8.4" | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | |
| 34 | + | ||
| 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS | |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |
| 38 | + | resolve_upstream_provenance() { | |
| 39 | + | local selected_metadata selected_version downloaded_metadata | |
| 40 | + | ||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 43 | + | exit 2 | |
| 44 | + | } | |
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |
| 46 | + | import json, sys | |
| 47 | + | try: | |
| 48 | + | metadata = json.loads(sys.argv[2]) | |
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |
| 50 | + | raise ValueError | |
| 51 | + | print(metadata["Version"]) | |
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 54 | + | PY | |
| 55 | + | )" || exit $? | |
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 58 | + | exit 2 | |
| 59 | + | } | |
| 60 | + | ||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |
| 62 | + | import json, re, sys | |
| 63 | + | ||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |
| 65 | + | ||
| 66 | + | def fail(): | |
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 69 | + | ||
| 70 | + | try: | |
| 71 | + | selected = json.loads(selected_raw) | |
| 72 | + | downloaded = json.loads(downloaded_raw) | |
| 73 | + | version = selected["Version"] | |
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |
| 75 | + | fail() | |
| 76 | + | if downloaded.get("Version") != version: | |
| 77 | + | fail() | |
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |
| 80 | + | if not match: | |
| 81 | + | fail() | |
| 82 | + | info_path = downloaded.get("Info") | |
| 83 | + | if not isinstance(info_path, str) or not info_path: | |
| 84 | + | fail() | |
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |
| 86 | + | info = json.load(info_file) | |
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |
| 89 | + | fail() | |
| 90 | + | revision = origin.get("Hash") | |
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |
| 92 | + | fail() | |
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |
| 94 | + | fail() | |
| 95 | + | if not revision.startswith(match.group(2)): | |
| 96 | + | fail() | |
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |
| 99 | + | fail() | |
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |
| 101 | + | fail() | |
| 102 | + | ||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |
| 104 | + | PY | |
| 105 | + | } | |
| 36 | 106 | ||
| 37 | 107 | # The artifact destination is caller-controlled. Never empty or recursively | |
| 38 | 108 | # clear it: collection only writes to a newly-created directory whose parent is | |
| @@ -66,10 +136,9 @@ prepare_output | |||
| 66 | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | |
| 67 | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | |
| 68 | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | |
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | |
| 71 | - | exit 2 | |
| 72 | - | } | |
| 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? | |
| 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" | |
| 141 | + | readonly upstream_version upstream_tag upstream_revision | |
| 73 | 142 | ||
| 74 | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | |
| 75 | 144 | # outside the committed artifact directory and always remove them. | |
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||
| 80 | 149 | rm -rf -- "$work_root" | |
| 81 | 150 | } | |
| 82 | 151 | trap cleanup_work_root EXIT | |
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 84 | 153 | import hashlib, json, os, platform, subprocess, sys | |
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | |
| 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] | |
| 86 | 155 | with open(binary, "rb") as candidate: | |
| 87 | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | |
| 88 | 157 | ||
| @@ -102,7 +171,7 @@ json.dump({ | |||
| 102 | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | |
| 103 | 172 | "timeout_seconds": int(timeout), | |
| 104 | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | |
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | |
| 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, | |
| 106 | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | |
| 107 | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | |
| 108 | 177 | }, open(path, "w"), indent=2, sort_keys=True) | |
| @@ -31,8 +31,78 @@ else | |||||
| 31 | fi | 31 | fi | ||
| 32 | readonly output | 32 | readonly output | ||
| 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | ||
| 34 | - | readonly upstream_tag="v0.8.4" | 34 | + | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |||
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |||
| 38 | + | resolve_upstream_provenance() { | |||
| 39 | + | local selected_metadata selected_version downloaded_metadata | |||
| 40 | + | ||||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |||
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 43 | + | exit 2 | |||
| 44 | + | } | |||
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |||
| 46 | + | import json, sys | |||
| 47 | + | try: | |||
| 48 | + | metadata = json.loads(sys.argv[2]) | |||
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |||
| 50 | + | raise ValueError | |||
| 51 | + | print(metadata["Version"]) | |||
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |||
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 54 | + | PY | |||
| 55 | + | )" || exit $? | |||
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |||
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 58 | + | exit 2 | |||
| 59 | + | } | |||
| 60 | + | ||||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |||
| 62 | + | import json, re, sys | |||
| 63 | + | ||||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |||
| 65 | + | ||||
| 66 | + | def fail(): | |||
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |||
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 69 | + | ||||
| 70 | + | try: | |||
| 71 | + | selected = json.loads(selected_raw) | |||
| 72 | + | downloaded = json.loads(downloaded_raw) | |||
| 73 | + | version = selected["Version"] | |||
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |||
| 75 | + | fail() | |||
| 76 | + | if downloaded.get("Version") != version: | |||
| 77 | + | fail() | |||
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |||
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |||
| 80 | + | if not match: | |||
| 81 | + | fail() | |||
| 82 | + | info_path = downloaded.get("Info") | |||
| 83 | + | if not isinstance(info_path, str) or not info_path: | |||
| 84 | + | fail() | |||
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |||
| 86 | + | info = json.load(info_file) | |||
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |||
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |||
| 89 | + | fail() | |||
| 90 | + | revision = origin.get("Hash") | |||
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |||
| 92 | + | fail() | |||
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |||
| 94 | + | fail() | |||
| 95 | + | if not revision.startswith(match.group(2)): | |||
| 96 | + | fail() | |||
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |||
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |||
| 99 | + | fail() | |||
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |||
| 101 | + | fail() | |||
| 102 | + | ||||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |||
| 104 | + | PY | |||
| 105 | + | } | |||
| 36 | 106 | ||||
| 37 | # The artifact destination is caller-controlled. Never empty or recursively | 107 | # The artifact destination is caller-controlled. Never empty or recursively | ||
| 38 | # clear it: collection only writes to a newly-created directory whose parent is | 108 | # clear it: collection only writes to a newly-created directory whose parent is | ||
| @@ -66,10 +136,9 @@ prepare_output | |||||
| 66 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | ||
| 67 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | ||
| 68 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | ||
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" |
| 71 | - | exit 2 | 141 | + | readonly upstream_version upstream_tag upstream_revision |
| 72 | - | } | |||
| 73 | 142 | ||||
| 74 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | ||
| 75 | # outside the committed artifact directory and always remove them. | 144 | # outside the committed artifact directory and always remove them. | ||
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||||
| 80 | rm -rf -- "$work_root" | 149 | rm -rf -- "$work_root" | ||
| 81 | } | 150 | } | ||
| 82 | trap cleanup_work_root EXIT | 151 | trap cleanup_work_root EXIT | ||
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' |
| 84 | import hashlib, json, os, platform, subprocess, sys | 153 | import hashlib, json, os, platform, subprocess, sys | ||
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] |
| 86 | with open(binary, "rb") as candidate: | 155 | with open(binary, "rb") as candidate: | ||
| 87 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | ||
| 88 | 157 | ||||
| @@ -102,7 +171,7 @@ json.dump({ | |||||
| 102 | "binary": {"label": "dumber", "sha256": binary_sha256}, | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | ||
| 103 | "timeout_seconds": int(timeout), | 172 | "timeout_seconds": int(timeout), | ||
| 104 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | ||
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, |
| 106 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | ||
| 107 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | ||
| 108 | }, open(path, "w"), indent=2, sort_keys=True) | 177 | }, open(path, "w"), indent=2, sort_keys=True) | ||
M vendor/github.com/bnema/purego-cef/cef/bridge.go +8 -13 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +34 -37 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +38 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +89 -69 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player.go +5 -0 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +10 -6 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +66 -32 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/driver/driver.go +268 -63 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/db.go +8 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +13 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +23 -5 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +3 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47
| @@ -67,6 +67,7 @@ type ResponseAppearance int | |||
| 67 | 67 | var xResponseAppearanceGLibType func() types.GType | |
| 68 | 68 | ||
| 69 | 69 | func ResponseAppearanceGLibType() types.GType { | |
| 70 | + | core.LazyRegister(&xResponseAppearanceGLibType, "ADW", "adw_response_appearance_get_type", false) | |
| 70 | 71 | return xResponseAppearanceGLibType() | |
| 71 | 72 | } | |
| 72 | 73 | ||
| @@ -231,6 +232,7 @@ type AlertDialog struct { | |||
| 231 | 232 | var xAlertDialogGLibType func() types.GType | |
| 232 | 233 | ||
| 233 | 234 | func AlertDialogGLibType() types.GType { | |
| 235 | + | core.LazyRegister(&xAlertDialogGLibType, "ADW", "adw_alert_dialog_get_type", false) | |
| 234 | 236 | return xAlertDialogGLibType() | |
| 235 | 237 | } | |
| 236 | 238 | ||
| @@ -259,6 +261,7 @@ var xNewAlertDialog func(uintptr, uintptr) uintptr | |||
| 259 | 261 | // | |
| 260 | 262 | // ``` | |
| 261 | 263 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | |
| 264 | + | core.LazyRegister(&xNewAlertDialog, "ADW", "adw_alert_dialog_new", false) | |
| 262 | 265 | var cls *AlertDialog | |
| 263 | 266 | ||
| 264 | 267 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| @@ -297,6 +300,8 @@ var xAlertDialogAddResponse func(uintptr, string, string) | |||
| 297 | 300 | // [method@AlertDialog.set_response_appearance] can be used to customize the | |
| 298 | 301 | // responses further. | |
| 299 | 302 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | |
| 303 | + | core.LazyRegister(&xAlertDialogAddResponse, "ADW", "adw_alert_dialog_add_response", false) | |
| 304 | + | ||
| 300 | 305 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | |
| 301 | 306 | } | |
| 302 | 307 | ||
| @@ -320,6 +325,8 @@ var xAlertDialogAddResponses func(uintptr, string, ...interface{}) | |||
| 320 | 325 | // | |
| 321 | 326 | // ``` | |
| 322 | 327 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | |
| 328 | + | core.LazyRegister(&xAlertDialogAddResponses, "ADW", "adw_alert_dialog_add_responses", false) | |
| 329 | + | ||
| 323 | 330 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | |
| 324 | 331 | } | |
| 325 | 332 | ||
| @@ -330,6 +337,8 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 330 | 337 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | |
| 331 | 338 | // will be shown within it. Otherwise, it will be a separate window. | |
| 332 | 339 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 340 | + | core.LazyRegister(&xAlertDialogChoose, "ADW", "adw_alert_dialog_choose", false) | |
| 341 | + | ||
| 333 | 342 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 334 | 343 | } | |
| 335 | 344 | ||
| @@ -337,6 +346,8 @@ var xAlertDialogChooseFinish func(uintptr, uintptr) string | |||
| 337 | 346 | ||
| 338 | 347 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | |
| 339 | 348 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | |
| 349 | + | core.LazyRegister(&xAlertDialogChooseFinish, "ADW", "adw_alert_dialog_choose_finish", false) | |
| 350 | + | ||
| 340 | 351 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | |
| 341 | 352 | return cret | |
| 342 | 353 | } | |
| @@ -347,6 +358,8 @@ var xAlertDialogFormatBody func(uintptr, string, ...interface{}) | |||
| 347 | 358 | // | |
| 348 | 359 | // See [property@AlertDialog:body]. | |
| 349 | 360 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | |
| 361 | + | core.LazyRegister(&xAlertDialogFormatBody, "ADW", "adw_alert_dialog_format_body", false) | |
| 362 | + | ||
| 350 | 363 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | |
| 351 | 364 | } | |
| 352 | 365 | ||
| @@ -362,6 +375,8 @@ var xAlertDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||
| 362 | 375 | // | |
| 363 | 376 | // See [property@AlertDialog:body]. | |
| 364 | 377 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | |
| 378 | + | core.LazyRegister(&xAlertDialogFormatBodyMarkup, "ADW", "adw_alert_dialog_format_body_markup", false) | |
| 379 | + | ||
| 365 | 380 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 366 | 381 | } | |
| 367 | 382 | ||
| @@ -371,6 +386,8 @@ var xAlertDialogFormatHeading func(uintptr, string, ...interface{}) | |||
| 371 | 386 | // | |
| 372 | 387 | // See [property@AlertDialog:heading]. | |
| 373 | 388 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | |
| 389 | + | core.LazyRegister(&xAlertDialogFormatHeading, "ADW", "adw_alert_dialog_format_heading", false) | |
| 390 | + | ||
| 374 | 391 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | |
| 375 | 392 | } | |
| 376 | 393 | ||
| @@ -386,6 +403,8 @@ var xAlertDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||
| 386 | 403 | // | |
| 387 | 404 | // See [property@AlertDialog:heading]. | |
| 388 | 405 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | |
| 406 | + | core.LazyRegister(&xAlertDialogFormatHeadingMarkup, "ADW", "adw_alert_dialog_format_heading_markup", false) | |
| 407 | + | ||
| 389 | 408 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 390 | 409 | } | |
| 391 | 410 | ||
| @@ -393,6 +412,8 @@ var xAlertDialogGetBody func(uintptr) string | |||
| 393 | 412 | ||
| 394 | 413 | // Gets the body text of @self. | |
| 395 | 414 | func (x *AlertDialog) GetBody() string { | |
| 415 | + | core.LazyRegister(&xAlertDialogGetBody, "ADW", "adw_alert_dialog_get_body", false) | |
| 416 | + | ||
| 396 | 417 | cret := xAlertDialogGetBody(x.GoPointer()) | |
| 397 | 418 | return cret | |
| 398 | 419 | } | |
| @@ -401,6 +422,8 @@ var xAlertDialogGetBodyUseMarkup func(uintptr) bool | |||
| 401 | 422 | ||
| 402 | 423 | // Gets whether the body text of @self includes Pango markup. | |
| 403 | 424 | func (x *AlertDialog) GetBodyUseMarkup() bool { | |
| 425 | + | core.LazyRegister(&xAlertDialogGetBodyUseMarkup, "ADW", "adw_alert_dialog_get_body_use_markup", false) | |
| 426 | + | ||
| 404 | 427 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | |
| 405 | 428 | return cret | |
| 406 | 429 | } | |
| @@ -409,6 +432,8 @@ var xAlertDialogGetCloseResponse func(uintptr) string | |||
| 409 | 432 | ||
| 410 | 433 | // Gets the ID of the close response of @self. | |
| 411 | 434 | func (x *AlertDialog) GetCloseResponse() string { | |
| 435 | + | core.LazyRegister(&xAlertDialogGetCloseResponse, "ADW", "adw_alert_dialog_get_close_response", false) | |
| 436 | + | ||
| 412 | 437 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | |
| 413 | 438 | return cret | |
| 414 | 439 | } | |
| @@ -417,6 +442,8 @@ var xAlertDialogGetDefaultResponse func(uintptr) string | |||
| 417 | 442 | ||
| 418 | 443 | // Gets the ID of the default response of @self. | |
| 419 | 444 | func (x *AlertDialog) GetDefaultResponse() string { | |
| 445 | + | core.LazyRegister(&xAlertDialogGetDefaultResponse, "ADW", "adw_alert_dialog_get_default_response", false) | |
| 446 | + | ||
| 420 | 447 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | |
| 421 | 448 | return cret | |
| 422 | 449 | } | |
| @@ -425,6 +452,7 @@ var xAlertDialogGetExtraChild func(uintptr) uintptr | |||
| 425 | 452 | ||
| 426 | 453 | // Gets the child widget of @self. | |
| 427 | 454 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | |
| 455 | + | core.LazyRegister(&xAlertDialogGetExtraChild, "ADW", "adw_alert_dialog_get_extra_child", false) | |
| 428 | 456 | var cls *gtk.Widget | |
| 429 | 457 | ||
| 430 | 458 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | |
| @@ -442,6 +470,8 @@ var xAlertDialogGetHeading func(uintptr) string | |||
| 442 | 470 | ||
| 443 | 471 | // Gets the heading of @self. | |
| 444 | 472 | func (x *AlertDialog) GetHeading() string { | |
| 473 | + | core.LazyRegister(&xAlertDialogGetHeading, "ADW", "adw_alert_dialog_get_heading", false) | |
| 474 | + | ||
| 445 | 475 | cret := xAlertDialogGetHeading(x.GoPointer()) | |
| 446 | 476 | return cret | |
| 447 | 477 | } | |
| @@ -450,6 +480,8 @@ var xAlertDialogGetHeadingUseMarkup func(uintptr) bool | |||
| 450 | 480 | ||
| 451 | 481 | // Gets whether the heading of @self includes Pango markup. | |
| 452 | 482 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | |
| 483 | + | core.LazyRegister(&xAlertDialogGetHeadingUseMarkup, "ADW", "adw_alert_dialog_get_heading_use_markup", false) | |
| 484 | + | ||
| 453 | 485 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | |
| 454 | 486 | return cret | |
| 455 | 487 | } | |
| @@ -458,6 +490,8 @@ var xAlertDialogGetPreferWideLayout func(uintptr) bool | |||
| 458 | 490 | ||
| 459 | 491 | // Gets whether @self prefers horizontal button layout. | |
| 460 | 492 | func (x *AlertDialog) GetPreferWideLayout() bool { | |
| 493 | + | core.LazyRegister(&xAlertDialogGetPreferWideLayout, "ADW", "adw_alert_dialog_get_prefer_wide_layout", false) | |
| 494 | + | ||
| 461 | 495 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | |
| 462 | 496 | return cret | |
| 463 | 497 | } | |
| @@ -468,6 +502,8 @@ var xAlertDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||
| 468 | 502 | // | |
| 469 | 503 | // See [method@AlertDialog.set_response_appearance]. | |
| 470 | 504 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | |
| 505 | + | core.LazyRegister(&xAlertDialogGetResponseAppearance, "ADW", "adw_alert_dialog_get_response_appearance", false) | |
| 506 | + | ||
| 471 | 507 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | |
| 472 | 508 | return cret | |
| 473 | 509 | } | |
| @@ -478,6 +514,8 @@ var xAlertDialogGetResponseEnabled func(uintptr, string) bool | |||
| 478 | 514 | // | |
| 479 | 515 | // See [method@AlertDialog.set_response_enabled]. | |
| 480 | 516 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | |
| 517 | + | core.LazyRegister(&xAlertDialogGetResponseEnabled, "ADW", "adw_alert_dialog_get_response_enabled", false) | |
| 518 | + | ||
| 481 | 519 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | |
| 482 | 520 | return cret | |
| 483 | 521 | } | |
| @@ -488,6 +526,8 @@ var xAlertDialogGetResponseLabel func(uintptr, string) string | |||
| 488 | 526 | // | |
| 489 | 527 | // See [method@AlertDialog.set_response_label]. | |
| 490 | 528 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | |
| 529 | + | core.LazyRegister(&xAlertDialogGetResponseLabel, "ADW", "adw_alert_dialog_get_response_label", false) | |
| 530 | + | ||
| 491 | 531 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | |
| 492 | 532 | return cret | |
| 493 | 533 | } | |
| @@ -496,6 +536,8 @@ var xAlertDialogHasResponse func(uintptr, string) bool | |||
| 496 | 536 | ||
| 497 | 537 | // Gets whether @self has a response with the ID @response. | |
| 498 | 538 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | |
| 539 | + | core.LazyRegister(&xAlertDialogHasResponse, "ADW", "adw_alert_dialog_has_response", false) | |
| 540 | + | ||
| 499 | 541 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | |
| 500 | 542 | return cret | |
| 501 | 543 | } | |
| @@ -504,6 +546,8 @@ var xAlertDialogRemoveResponse func(uintptr, string) | |||
| 504 | 546 | ||
| 505 | 547 | // Removes a response from @self. | |
| 506 | 548 | func (x *AlertDialog) RemoveResponse(IdVar string) { | |
| 549 | + | core.LazyRegister(&xAlertDialogRemoveResponse, "ADW", "adw_alert_dialog_remove_response", false) | |
| 550 | + | ||
| 507 | 551 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | |
| 508 | 552 | } | |
| 509 | 553 | ||
| @@ -511,6 +555,8 @@ var xAlertDialogSetBody func(uintptr, string) | |||
| 511 | 555 | ||
| 512 | 556 | // Sets the body text of @self. | |
| 513 | 557 | func (x *AlertDialog) SetBody(BodyVar string) { | |
| 558 | + | core.LazyRegister(&xAlertDialogSetBody, "ADW", "adw_alert_dialog_set_body", false) | |
| 559 | + | ||
| 514 | 560 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | |
| 515 | 561 | } | |
| 516 | 562 | ||
| @@ -520,6 +566,8 @@ var xAlertDialogSetBodyUseMarkup func(uintptr, bool) | |||
| 520 | 566 | // | |
| 521 | 567 | // See [func@Pango.parse_markup]. | |
| 522 | 568 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | |
| 569 | + | core.LazyRegister(&xAlertDialogSetBodyUseMarkup, "ADW", "adw_alert_dialog_set_body_use_markup", false) | |
| 570 | + | ||
| 523 | 571 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 524 | 572 | } | |
| 525 | 573 | ||
| @@ -534,6 +582,8 @@ var xAlertDialogSetCloseResponse func(uintptr, string) | |||
| 534 | 582 | // | |
| 535 | 583 | // The default close response is `close`. | |
| 536 | 584 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | |
| 585 | + | core.LazyRegister(&xAlertDialogSetCloseResponse, "ADW", "adw_alert_dialog_set_close_response", false) | |
| 586 | + | ||
| 537 | 587 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | |
| 538 | 588 | } | |
| 539 | 589 | ||
| @@ -549,6 +599,8 @@ var xAlertDialogSetDefaultResponse func(uintptr, uintptr) | |||
| 549 | 599 | // | |
| 550 | 600 | // See [property@Dialog:default-widget]. | |
| 551 | 601 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | |
| 602 | + | core.LazyRegister(&xAlertDialogSetDefaultResponse, "ADW", "adw_alert_dialog_set_default_response", false) | |
| 603 | + | ||
| 552 | 604 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | |
| 553 | 605 | defer core.GFreeNullable(ResponseVarPtr) | |
| 554 | 606 | ||
| @@ -561,6 +613,8 @@ var xAlertDialogSetExtraChild func(uintptr, uintptr) | |||
| 561 | 613 | // | |
| 562 | 614 | // The child widget is displayed below the heading and body. | |
| 563 | 615 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | |
| 616 | + | core.LazyRegister(&xAlertDialogSetExtraChild, "ADW", "adw_alert_dialog_set_extra_child", false) | |
| 617 | + | ||
| 564 | 618 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 565 | 619 | } | |
| 566 | 620 | ||
| @@ -568,6 +622,8 @@ var xAlertDialogSetHeading func(uintptr, uintptr) | |||
| 568 | 622 | ||
| 569 | 623 | // Sets the heading of @self. | |
| 570 | 624 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | |
| 625 | + | core.LazyRegister(&xAlertDialogSetHeading, "ADW", "adw_alert_dialog_set_heading", false) | |
| 626 | + | ||
| 571 | 627 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 572 | 628 | defer core.GFreeNullable(HeadingVarPtr) | |
| 573 | 629 | ||
| @@ -580,6 +636,8 @@ var xAlertDialogSetHeadingUseMarkup func(uintptr, bool) | |||
| 580 | 636 | // | |
| 581 | 637 | // See [func@Pango.parse_markup]. | |
| 582 | 638 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | |
| 639 | + | core.LazyRegister(&xAlertDialogSetHeadingUseMarkup, "ADW", "adw_alert_dialog_set_heading_use_markup", false) | |
| 640 | + | ||
| 583 | 641 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 584 | 642 | } | |
| 585 | 643 | ||
| @@ -601,6 +659,8 @@ var xAlertDialogSetPreferWideLayout func(uintptr, bool) | |||
| 601 | 659 | // Does nothing with just one button, or when the buttons are already | |
| 602 | 660 | // horizontal. | |
| 603 | 661 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | |
| 662 | + | core.LazyRegister(&xAlertDialogSetPreferWideLayout, "ADW", "adw_alert_dialog_set_prefer_wide_layout", false) | |
| 663 | + | ||
| 604 | 664 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | |
| 605 | 665 | } | |
| 606 | 666 | ||
| @@ -627,6 +687,8 @@ var xAlertDialogSetResponseAppearance func(uintptr, string, ResponseAppearance) | |||
| 627 | 687 | // | |
| 628 | 688 | // Negative responses like Cancel or Close should use the default appearance. | |
| 629 | 689 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | |
| 690 | + | core.LazyRegister(&xAlertDialogSetResponseAppearance, "ADW", "adw_alert_dialog_set_response_appearance", false) | |
| 691 | + | ||
| 630 | 692 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | |
| 631 | 693 | } | |
| 632 | 694 | ||
| @@ -643,6 +705,8 @@ var xAlertDialogSetResponseEnabled func(uintptr, string, bool) | |||
| 643 | 705 | // | |
| 644 | 706 | // Responses are enabled by default. | |
| 645 | 707 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | |
| 708 | + | core.LazyRegister(&xAlertDialogSetResponseEnabled, "ADW", "adw_alert_dialog_set_response_enabled", false) | |
| 709 | + | ||
| 646 | 710 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | |
| 647 | 711 | } | |
| 648 | 712 | ||
| @@ -653,6 +717,8 @@ var xAlertDialogSetResponseLabel func(uintptr, string, string) | |||
| 653 | 717 | // Labels are displayed on the dialog buttons. An embedded underline in @label | |
| 654 | 718 | // indicates a mnemonic. | |
| 655 | 719 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | |
| 720 | + | core.LazyRegister(&xAlertDialogSetResponseLabel, "ADW", "adw_alert_dialog_set_response_label", false) | |
| 721 | + | ||
| 656 | 722 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | |
| 657 | 723 | } | |
| 658 | 724 | ||
| @@ -1145,51 +1211,4 @@ func (x *AlertDialog) GetBuildableId() string { | |||
| 1145 | 1211 | func init() { | |
| 1146 | 1212 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1147 | 1213 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1148 | - | var libs []uintptr | |
| 1149 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 1150 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1151 | - | if err != nil { | |
| 1152 | - | panic(err) | |
| 1153 | - | } | |
| 1154 | - | libs = append(libs, lib) | |
| 1155 | - | } | |
| 1156 | - | ||
| 1157 | - | core.PuregoSafeRegister(&xResponseAppearanceGLibType, libs, "adw_response_appearance_get_type") | |
| 1158 | - | ||
| 1159 | - | core.PuregoSafeRegister(&xAlertDialogGLibType, libs, "adw_alert_dialog_get_type") | |
| 1160 | - | ||
| 1161 | - | core.PuregoSafeRegister(&xNewAlertDialog, libs, "adw_alert_dialog_new") | |
| 1162 | - | ||
| 1163 | - | core.PuregoSafeRegister(&xAlertDialogAddResponse, libs, "adw_alert_dialog_add_response") | |
| 1164 | - | core.PuregoSafeRegister(&xAlertDialogAddResponses, libs, "adw_alert_dialog_add_responses") | |
| 1165 | - | core.PuregoSafeRegister(&xAlertDialogChoose, libs, "adw_alert_dialog_choose") | |
| 1166 | - | core.PuregoSafeRegister(&xAlertDialogChooseFinish, libs, "adw_alert_dialog_choose_finish") | |
| 1167 | - | core.PuregoSafeRegister(&xAlertDialogFormatBody, libs, "adw_alert_dialog_format_body") | |
| 1168 | - | core.PuregoSafeRegister(&xAlertDialogFormatBodyMarkup, libs, "adw_alert_dialog_format_body_markup") | |
| 1169 | - | core.PuregoSafeRegister(&xAlertDialogFormatHeading, libs, "adw_alert_dialog_format_heading") | |
| 1170 | - | core.PuregoSafeRegister(&xAlertDialogFormatHeadingMarkup, libs, "adw_alert_dialog_format_heading_markup") | |
| 1171 | - | core.PuregoSafeRegister(&xAlertDialogGetBody, libs, "adw_alert_dialog_get_body") | |
| 1172 | - | core.PuregoSafeRegister(&xAlertDialogGetBodyUseMarkup, libs, "adw_alert_dialog_get_body_use_markup") | |
| 1173 | - | core.PuregoSafeRegister(&xAlertDialogGetCloseResponse, libs, "adw_alert_dialog_get_close_response") | |
| 1174 | - | core.PuregoSafeRegister(&xAlertDialogGetDefaultResponse, libs, "adw_alert_dialog_get_default_response") | |
| 1175 | - | core.PuregoSafeRegister(&xAlertDialogGetExtraChild, libs, "adw_alert_dialog_get_extra_child") | |
| 1176 | - | core.PuregoSafeRegister(&xAlertDialogGetHeading, libs, "adw_alert_dialog_get_heading") | |
| 1177 | - | core.PuregoSafeRegister(&xAlertDialogGetHeadingUseMarkup, libs, "adw_alert_dialog_get_heading_use_markup") | |
| 1178 | - | core.PuregoSafeRegister(&xAlertDialogGetPreferWideLayout, libs, "adw_alert_dialog_get_prefer_wide_layout") | |
| 1179 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseAppearance, libs, "adw_alert_dialog_get_response_appearance") | |
| 1180 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseEnabled, libs, "adw_alert_dialog_get_response_enabled") | |
| 1181 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseLabel, libs, "adw_alert_dialog_get_response_label") | |
| 1182 | - | core.PuregoSafeRegister(&xAlertDialogHasResponse, libs, "adw_alert_dialog_has_response") | |
| 1183 | - | core.PuregoSafeRegister(&xAlertDialogRemoveResponse, libs, "adw_alert_dialog_remove_response") | |
| 1184 | - | core.PuregoSafeRegister(&xAlertDialogSetBody, libs, "adw_alert_dialog_set_body") | |
| 1185 | - | core.PuregoSafeRegister(&xAlertDialogSetBodyUseMarkup, libs, "adw_alert_dialog_set_body_use_markup") | |
| 1186 | - | core.PuregoSafeRegister(&xAlertDialogSetCloseResponse, libs, "adw_alert_dialog_set_close_response") | |
| 1187 | - | core.PuregoSafeRegister(&xAlertDialogSetDefaultResponse, libs, "adw_alert_dialog_set_default_response") | |
| 1188 | - | core.PuregoSafeRegister(&xAlertDialogSetExtraChild, libs, "adw_alert_dialog_set_extra_child") | |
| 1189 | - | core.PuregoSafeRegister(&xAlertDialogSetHeading, libs, "adw_alert_dialog_set_heading") | |
| 1190 | - | core.PuregoSafeRegister(&xAlertDialogSetHeadingUseMarkup, libs, "adw_alert_dialog_set_heading_use_markup") | |
| 1191 | - | core.PuregoSafeRegister(&xAlertDialogSetPreferWideLayout, libs, "adw_alert_dialog_set_prefer_wide_layout") | |
| 1192 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseAppearance, libs, "adw_alert_dialog_set_response_appearance") | |
| 1193 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseEnabled, libs, "adw_alert_dialog_set_response_enabled") | |
| 1194 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseLabel, libs, "adw_alert_dialog_set_response_label") | |
| 1195 | 1214 | } | |
| @@ -67,6 +67,7 @@ type ResponseAppearance int | |||||
| 67 | var xResponseAppearanceGLibType func() types.GType | 67 | var xResponseAppearanceGLibType func() types.GType | ||
| 68 | 68 | ||||
| 69 | func ResponseAppearanceGLibType() types.GType { | 69 | func ResponseAppearanceGLibType() types.GType { | ||
| 70 | + | core.LazyRegister(&xResponseAppearanceGLibType, "ADW", "adw_response_appearance_get_type", false) | |||
| 70 | return xResponseAppearanceGLibType() | 71 | return xResponseAppearanceGLibType() | ||
| 71 | } | 72 | } | ||
| 72 | 73 | ||||
| @@ -231,6 +232,7 @@ type AlertDialog struct { | |||||
| 231 | var xAlertDialogGLibType func() types.GType | 232 | var xAlertDialogGLibType func() types.GType | ||
| 232 | 233 | ||||
| 233 | func AlertDialogGLibType() types.GType { | 234 | func AlertDialogGLibType() types.GType { | ||
| 235 | + | core.LazyRegister(&xAlertDialogGLibType, "ADW", "adw_alert_dialog_get_type", false) | |||
| 234 | return xAlertDialogGLibType() | 236 | return xAlertDialogGLibType() | ||
| 235 | } | 237 | } | ||
| 236 | 238 | ||||
| @@ -259,6 +261,7 @@ var xNewAlertDialog func(uintptr, uintptr) uintptr | |||||
| 259 | // | 261 | // | ||
| 260 | // ``` | 262 | // ``` | ||
| 261 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | 263 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | ||
| 264 | + | core.LazyRegister(&xNewAlertDialog, "ADW", "adw_alert_dialog_new", false) | |||
| 262 | var cls *AlertDialog | 265 | var cls *AlertDialog | ||
| 263 | 266 | ||||
| 264 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 267 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| @@ -297,6 +300,8 @@ var xAlertDialogAddResponse func(uintptr, string, string) | |||||
| 297 | // [method@AlertDialog.set_response_appearance] can be used to customize the | 300 | // [method@AlertDialog.set_response_appearance] can be used to customize the | ||
| 298 | // responses further. | 301 | // responses further. | ||
| 299 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | 302 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | ||
| 303 | + | core.LazyRegister(&xAlertDialogAddResponse, "ADW", "adw_alert_dialog_add_response", false) | |||
| 304 | + | ||||
| 300 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | 305 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | ||
| 301 | } | 306 | } | ||
| 302 | 307 | ||||
| @@ -320,6 +325,8 @@ var xAlertDialogAddResponses func(uintptr, string, ...interface{}) | |||||
| 320 | // | 325 | // | ||
| 321 | // ``` | 326 | // ``` | ||
| 322 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | 327 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | ||
| 328 | + | core.LazyRegister(&xAlertDialogAddResponses, "ADW", "adw_alert_dialog_add_responses", false) | |||
| 329 | + | ||||
| 323 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | 330 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | ||
| 324 | } | 331 | } | ||
| 325 | 332 | ||||
| @@ -330,6 +337,8 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 330 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | 337 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | ||
| 331 | // will be shown within it. Otherwise, it will be a separate window. | 338 | // will be shown within it. Otherwise, it will be a separate window. | ||
| 332 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 339 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 340 | + | core.LazyRegister(&xAlertDialogChoose, "ADW", "adw_alert_dialog_choose", false) | |||
| 341 | + | ||||
| 333 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 342 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 334 | } | 343 | } | ||
| 335 | 344 | ||||
| @@ -337,6 +346,8 @@ var xAlertDialogChooseFinish func(uintptr, uintptr) string | |||||
| 337 | 346 | ||||
| 338 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | 347 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | ||
| 339 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | 348 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | ||
| 349 | + | core.LazyRegister(&xAlertDialogChooseFinish, "ADW", "adw_alert_dialog_choose_finish", false) | |||
| 350 | + | ||||
| 340 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | 351 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | ||
| 341 | return cret | 352 | return cret | ||
| 342 | } | 353 | } | ||
| @@ -347,6 +358,8 @@ var xAlertDialogFormatBody func(uintptr, string, ...interface{}) | |||||
| 347 | // | 358 | // | ||
| 348 | // See [property@AlertDialog:body]. | 359 | // See [property@AlertDialog:body]. | ||
| 349 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | 360 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | ||
| 361 | + | core.LazyRegister(&xAlertDialogFormatBody, "ADW", "adw_alert_dialog_format_body", false) | |||
| 362 | + | ||||
| 350 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | 363 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | ||
| 351 | } | 364 | } | ||
| 352 | 365 | ||||
| @@ -362,6 +375,8 @@ var xAlertDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||||
| 362 | // | 375 | // | ||
| 363 | // See [property@AlertDialog:body]. | 376 | // See [property@AlertDialog:body]. | ||
| 364 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | 377 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 378 | + | core.LazyRegister(&xAlertDialogFormatBodyMarkup, "ADW", "adw_alert_dialog_format_body_markup", false) | |||
| 379 | + | ||||
| 365 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | 380 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 366 | } | 381 | } | ||
| 367 | 382 | ||||
| @@ -371,6 +386,8 @@ var xAlertDialogFormatHeading func(uintptr, string, ...interface{}) | |||||
| 371 | // | 386 | // | ||
| 372 | // See [property@AlertDialog:heading]. | 387 | // See [property@AlertDialog:heading]. | ||
| 373 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | 388 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | ||
| 389 | + | core.LazyRegister(&xAlertDialogFormatHeading, "ADW", "adw_alert_dialog_format_heading", false) | |||
| 390 | + | ||||
| 374 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | 391 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | ||
| 375 | } | 392 | } | ||
| 376 | 393 | ||||
| @@ -386,6 +403,8 @@ var xAlertDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||||
| 386 | // | 403 | // | ||
| 387 | // See [property@AlertDialog:heading]. | 404 | // See [property@AlertDialog:heading]. | ||
| 388 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | 405 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 406 | + | core.LazyRegister(&xAlertDialogFormatHeadingMarkup, "ADW", "adw_alert_dialog_format_heading_markup", false) | |||
| 407 | + | ||||
| 389 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | 408 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 390 | } | 409 | } | ||
| 391 | 410 | ||||
| @@ -393,6 +412,8 @@ var xAlertDialogGetBody func(uintptr) string | |||||
| 393 | 412 | ||||
| 394 | // Gets the body text of @self. | 413 | // Gets the body text of @self. | ||
| 395 | func (x *AlertDialog) GetBody() string { | 414 | func (x *AlertDialog) GetBody() string { | ||
| 415 | + | core.LazyRegister(&xAlertDialogGetBody, "ADW", "adw_alert_dialog_get_body", false) | |||
| 416 | + | ||||
| 396 | cret := xAlertDialogGetBody(x.GoPointer()) | 417 | cret := xAlertDialogGetBody(x.GoPointer()) | ||
| 397 | return cret | 418 | return cret | ||
| 398 | } | 419 | } | ||
| @@ -401,6 +422,8 @@ var xAlertDialogGetBodyUseMarkup func(uintptr) bool | |||||
| 401 | 422 | ||||
| 402 | // Gets whether the body text of @self includes Pango markup. | 423 | // Gets whether the body text of @self includes Pango markup. | ||
| 403 | func (x *AlertDialog) GetBodyUseMarkup() bool { | 424 | func (x *AlertDialog) GetBodyUseMarkup() bool { | ||
| 425 | + | core.LazyRegister(&xAlertDialogGetBodyUseMarkup, "ADW", "adw_alert_dialog_get_body_use_markup", false) | |||
| 426 | + | ||||
| 404 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | 427 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | ||
| 405 | return cret | 428 | return cret | ||
| 406 | } | 429 | } | ||
| @@ -409,6 +432,8 @@ var xAlertDialogGetCloseResponse func(uintptr) string | |||||
| 409 | 432 | ||||
| 410 | // Gets the ID of the close response of @self. | 433 | // Gets the ID of the close response of @self. | ||
| 411 | func (x *AlertDialog) GetCloseResponse() string { | 434 | func (x *AlertDialog) GetCloseResponse() string { | ||
| 435 | + | core.LazyRegister(&xAlertDialogGetCloseResponse, "ADW", "adw_alert_dialog_get_close_response", false) | |||
| 436 | + | ||||
| 412 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | 437 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | ||
| 413 | return cret | 438 | return cret | ||
| 414 | } | 439 | } | ||
| @@ -417,6 +442,8 @@ var xAlertDialogGetDefaultResponse func(uintptr) string | |||||
| 417 | 442 | ||||
| 418 | // Gets the ID of the default response of @self. | 443 | // Gets the ID of the default response of @self. | ||
| 419 | func (x *AlertDialog) GetDefaultResponse() string { | 444 | func (x *AlertDialog) GetDefaultResponse() string { | ||
| 445 | + | core.LazyRegister(&xAlertDialogGetDefaultResponse, "ADW", "adw_alert_dialog_get_default_response", false) | |||
| 446 | + | ||||
| 420 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | 447 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | ||
| 421 | return cret | 448 | return cret | ||
| 422 | } | 449 | } | ||
| @@ -425,6 +452,7 @@ var xAlertDialogGetExtraChild func(uintptr) uintptr | |||||
| 425 | 452 | ||||
| 426 | // Gets the child widget of @self. | 453 | // Gets the child widget of @self. | ||
| 427 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | 454 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | ||
| 455 | + | core.LazyRegister(&xAlertDialogGetExtraChild, "ADW", "adw_alert_dialog_get_extra_child", false) | |||
| 428 | var cls *gtk.Widget | 456 | var cls *gtk.Widget | ||
| 429 | 457 | ||||
| 430 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | 458 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | ||
| @@ -442,6 +470,8 @@ var xAlertDialogGetHeading func(uintptr) string | |||||
| 442 | 470 | ||||
| 443 | // Gets the heading of @self. | 471 | // Gets the heading of @self. | ||
| 444 | func (x *AlertDialog) GetHeading() string { | 472 | func (x *AlertDialog) GetHeading() string { | ||
| 473 | + | core.LazyRegister(&xAlertDialogGetHeading, "ADW", "adw_alert_dialog_get_heading", false) | |||
| 474 | + | ||||
| 445 | cret := xAlertDialogGetHeading(x.GoPointer()) | 475 | cret := xAlertDialogGetHeading(x.GoPointer()) | ||
| 446 | return cret | 476 | return cret | ||
| 447 | } | 477 | } | ||
| @@ -450,6 +480,8 @@ var xAlertDialogGetHeadingUseMarkup func(uintptr) bool | |||||
| 450 | 480 | ||||
| 451 | // Gets whether the heading of @self includes Pango markup. | 481 | // Gets whether the heading of @self includes Pango markup. | ||
| 452 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | 482 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | ||
| 483 | + | core.LazyRegister(&xAlertDialogGetHeadingUseMarkup, "ADW", "adw_alert_dialog_get_heading_use_markup", false) | |||
| 484 | + | ||||
| 453 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | 485 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | ||
| 454 | return cret | 486 | return cret | ||
| 455 | } | 487 | } | ||
| @@ -458,6 +490,8 @@ var xAlertDialogGetPreferWideLayout func(uintptr) bool | |||||
| 458 | 490 | ||||
| 459 | // Gets whether @self prefers horizontal button layout. | 491 | // Gets whether @self prefers horizontal button layout. | ||
| 460 | func (x *AlertDialog) GetPreferWideLayout() bool { | 492 | func (x *AlertDialog) GetPreferWideLayout() bool { | ||
| 493 | + | core.LazyRegister(&xAlertDialogGetPreferWideLayout, "ADW", "adw_alert_dialog_get_prefer_wide_layout", false) | |||
| 494 | + | ||||
| 461 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | 495 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | ||
| 462 | return cret | 496 | return cret | ||
| 463 | } | 497 | } | ||
| @@ -468,6 +502,8 @@ var xAlertDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||||
| 468 | // | 502 | // | ||
| 469 | // See [method@AlertDialog.set_response_appearance]. | 503 | // See [method@AlertDialog.set_response_appearance]. | ||
| 470 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | 504 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | ||
| 505 | + | core.LazyRegister(&xAlertDialogGetResponseAppearance, "ADW", "adw_alert_dialog_get_response_appearance", false) | |||
| 506 | + | ||||
| 471 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | 507 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | ||
| 472 | return cret | 508 | return cret | ||
| 473 | } | 509 | } | ||
| @@ -478,6 +514,8 @@ var xAlertDialogGetResponseEnabled func(uintptr, string) bool | |||||
| 478 | // | 514 | // | ||
| 479 | // See [method@AlertDialog.set_response_enabled]. | 515 | // See [method@AlertDialog.set_response_enabled]. | ||
| 480 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | 516 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | ||
| 517 | + | core.LazyRegister(&xAlertDialogGetResponseEnabled, "ADW", "adw_alert_dialog_get_response_enabled", false) | |||
| 518 | + | ||||
| 481 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | 519 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | ||
| 482 | return cret | 520 | return cret | ||
| 483 | } | 521 | } | ||
| @@ -488,6 +526,8 @@ var xAlertDialogGetResponseLabel func(uintptr, string) string | |||||
| 488 | // | 526 | // | ||
| 489 | // See [method@AlertDialog.set_response_label]. | 527 | // See [method@AlertDialog.set_response_label]. | ||
| 490 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | 528 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | ||
| 529 | + | core.LazyRegister(&xAlertDialogGetResponseLabel, "ADW", "adw_alert_dialog_get_response_label", false) | |||
| 530 | + | ||||
| 491 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | 531 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | ||
| 492 | return cret | 532 | return cret | ||
| 493 | } | 533 | } | ||
| @@ -496,6 +536,8 @@ var xAlertDialogHasResponse func(uintptr, string) bool | |||||
| 496 | 536 | ||||
| 497 | // Gets whether @self has a response with the ID @response. | 537 | // Gets whether @self has a response with the ID @response. | ||
| 498 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | 538 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | ||
| 539 | + | core.LazyRegister(&xAlertDialogHasResponse, "ADW", "adw_alert_dialog_has_response", false) | |||
| 540 | + | ||||
| 499 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | 541 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | ||
| 500 | return cret | 542 | return cret | ||
| 501 | } | 543 | } | ||
| @@ -504,6 +546,8 @@ var xAlertDialogRemoveResponse func(uintptr, string) | |||||
| 504 | 546 | ||||
| 505 | // Removes a response from @self. | 547 | // Removes a response from @self. | ||
| 506 | func (x *AlertDialog) RemoveResponse(IdVar string) { | 548 | func (x *AlertDialog) RemoveResponse(IdVar string) { | ||
| 549 | + | core.LazyRegister(&xAlertDialogRemoveResponse, "ADW", "adw_alert_dialog_remove_response", false) | |||
| 550 | + | ||||
| 507 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | 551 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | ||
| 508 | } | 552 | } | ||
| 509 | 553 | ||||
| @@ -511,6 +555,8 @@ var xAlertDialogSetBody func(uintptr, string) | |||||
| 511 | 555 | ||||
| 512 | // Sets the body text of @self. | 556 | // Sets the body text of @self. | ||
| 513 | func (x *AlertDialog) SetBody(BodyVar string) { | 557 | func (x *AlertDialog) SetBody(BodyVar string) { | ||
| 558 | + | core.LazyRegister(&xAlertDialogSetBody, "ADW", "adw_alert_dialog_set_body", false) | |||
| 559 | + | ||||
| 514 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | 560 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | ||
| 515 | } | 561 | } | ||
| 516 | 562 | ||||
| @@ -520,6 +566,8 @@ var xAlertDialogSetBodyUseMarkup func(uintptr, bool) | |||||
| 520 | // | 566 | // | ||
| 521 | // See [func@Pango.parse_markup]. | 567 | // See [func@Pango.parse_markup]. | ||
| 522 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | 568 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | ||
| 569 | + | core.LazyRegister(&xAlertDialogSetBodyUseMarkup, "ADW", "adw_alert_dialog_set_body_use_markup", false) | |||
| 570 | + | ||||
| 523 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | 571 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 524 | } | 572 | } | ||
| 525 | 573 | ||||
| @@ -534,6 +582,8 @@ var xAlertDialogSetCloseResponse func(uintptr, string) | |||||
| 534 | // | 582 | // | ||
| 535 | // The default close response is `close`. | 583 | // The default close response is `close`. | ||
| 536 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | 584 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | ||
| 585 | + | core.LazyRegister(&xAlertDialogSetCloseResponse, "ADW", "adw_alert_dialog_set_close_response", false) | |||
| 586 | + | ||||
| 537 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | 587 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | ||
| 538 | } | 588 | } | ||
| 539 | 589 | ||||
| @@ -549,6 +599,8 @@ var xAlertDialogSetDefaultResponse func(uintptr, uintptr) | |||||
| 549 | // | 599 | // | ||
| 550 | // See [property@Dialog:default-widget]. | 600 | // See [property@Dialog:default-widget]. | ||
| 551 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | 601 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | ||
| 602 | + | core.LazyRegister(&xAlertDialogSetDefaultResponse, "ADW", "adw_alert_dialog_set_default_response", false) | |||
| 603 | + | ||||
| 552 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | 604 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | ||
| 553 | defer core.GFreeNullable(ResponseVarPtr) | 605 | defer core.GFreeNullable(ResponseVarPtr) | ||
| 554 | 606 | ||||
| @@ -561,6 +613,8 @@ var xAlertDialogSetExtraChild func(uintptr, uintptr) | |||||
| 561 | // | 613 | // | ||
| 562 | // The child widget is displayed below the heading and body. | 614 | // The child widget is displayed below the heading and body. | ||
| 563 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | 615 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | ||
| 616 | + | core.LazyRegister(&xAlertDialogSetExtraChild, "ADW", "adw_alert_dialog_set_extra_child", false) | |||
| 617 | + | ||||
| 564 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | 618 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 565 | } | 619 | } | ||
| 566 | 620 | ||||
| @@ -568,6 +622,8 @@ var xAlertDialogSetHeading func(uintptr, uintptr) | |||||
| 568 | 622 | ||||
| 569 | // Sets the heading of @self. | 623 | // Sets the heading of @self. | ||
| 570 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | 624 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | ||
| 625 | + | core.LazyRegister(&xAlertDialogSetHeading, "ADW", "adw_alert_dialog_set_heading", false) | |||
| 626 | + | ||||
| 571 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 627 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| 572 | defer core.GFreeNullable(HeadingVarPtr) | 628 | defer core.GFreeNullable(HeadingVarPtr) | ||
| 573 | 629 | ||||
| @@ -580,6 +636,8 @@ var xAlertDialogSetHeadingUseMarkup func(uintptr, bool) | |||||
| 580 | // | 636 | // | ||
| 581 | // See [func@Pango.parse_markup]. | 637 | // See [func@Pango.parse_markup]. | ||
| 582 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | 638 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | ||
| 639 | + | core.LazyRegister(&xAlertDialogSetHeadingUseMarkup, "ADW", "adw_alert_dialog_set_heading_use_markup", false) | |||
| 640 | + | ||||
| 583 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | 641 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 584 | } | 642 | } | ||
| 585 | 643 | ||||
| @@ -601,6 +659,8 @@ var xAlertDialogSetPreferWideLayout func(uintptr, bool) | |||||
| 601 | // Does nothing with just one button, or when the buttons are already | 659 | // Does nothing with just one button, or when the buttons are already | ||
| 602 | // horizontal. | 660 | // horizontal. | ||
| 603 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | 661 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | ||
| 662 | + | core.LazyRegister(&xAlertDialogSetPreferWideLayout, "ADW", "adw_alert_dialog_set_prefer_wide_layout", false) | |||
| 663 | + | ||||
| 604 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | 664 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | ||
| 605 | } | 665 | } | ||
| 606 | 666 | ||||
| @@ -627,6 +687,8 @@ var xAlertDialogSetResponseAppearance func(uintptr, string, ResponseAppearance) | |||||
| 627 | // | 687 | // | ||
| 628 | // Negative responses like Cancel or Close should use the default appearance. | 688 | // Negative responses like Cancel or Close should use the default appearance. | ||
| 629 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | 689 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | ||
| 690 | + | core.LazyRegister(&xAlertDialogSetResponseAppearance, "ADW", "adw_alert_dialog_set_response_appearance", false) | |||
| 691 | + | ||||
| 630 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | 692 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | ||
| 631 | } | 693 | } | ||
| 632 | 694 | ||||
| @@ -643,6 +705,8 @@ var xAlertDialogSetResponseEnabled func(uintptr, string, bool) | |||||
| 643 | // | 705 | // | ||
| 644 | // Responses are enabled by default. | 706 | // Responses are enabled by default. | ||
| 645 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | 707 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | ||
| 708 | + | core.LazyRegister(&xAlertDialogSetResponseEnabled, "ADW", "adw_alert_dialog_set_response_enabled", false) | |||
| 709 | + | ||||
| 646 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | 710 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | ||
| 647 | } | 711 | } | ||
| 648 | 712 | ||||
| @@ -653,6 +717,8 @@ var xAlertDialogSetResponseLabel func(uintptr, string, string) | |||||
| 653 | // Labels are displayed on the dialog buttons. An embedded underline in @label | 717 | // Labels are displayed on the dialog buttons. An embedded underline in @label | ||
| 654 | // indicates a mnemonic. | 718 | // indicates a mnemonic. | ||
| 655 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | 719 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | ||
| 720 | + | core.LazyRegister(&xAlertDialogSetResponseLabel, "ADW", "adw_alert_dialog_set_response_label", false) | |||
| 721 | + | ||||
| 656 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | 722 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | ||
| 657 | } | 723 | } | ||
| 658 | 724 | ||||
| @@ -1145,51 +1211,4 @@ func (x *AlertDialog) GetBuildableId() string { | |||||
| 1145 | func init() { | 1211 | func init() { | ||
| 1146 | core.SetPackageName("ADW", "libadwaita-1") | 1212 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1147 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 1213 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1148 | - | var libs []uintptr | |||
| 1149 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 1150 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1151 | - | if err != nil { | |||
| 1152 | - | panic(err) | |||
| 1153 | - | } | |||
| 1154 | - | libs = append(libs, lib) | |||
| 1155 | - | } | |||
| 1156 | - | ||||
| 1157 | - | core.PuregoSafeRegister(&xResponseAppearanceGLibType, libs, "adw_response_appearance_get_type") | |||
| 1158 | - | ||||
| 1159 | - | core.PuregoSafeRegister(&xAlertDialogGLibType, libs, "adw_alert_dialog_get_type") | |||
| 1160 | - | ||||
| 1161 | - | core.PuregoSafeRegister(&xNewAlertDialog, libs, "adw_alert_dialog_new") | |||
| 1162 | - | ||||
| 1163 | - | core.PuregoSafeRegister(&xAlertDialogAddResponse, libs, "adw_alert_dialog_add_response") | |||
| 1164 | - | core.PuregoSafeRegister(&xAlertDialogAddResponses, libs, "adw_alert_dialog_add_responses") | |||
| 1165 | - | core.PuregoSafeRegister(&xAlertDialogChoose, libs, "adw_alert_dialog_choose") | |||
| 1166 | - | core.PuregoSafeRegister(&xAlertDialogChooseFinish, libs, "adw_alert_dialog_choose_finish") | |||
| 1167 | - | core.PuregoSafeRegister(&xAlertDialogFormatBody, libs, "adw_alert_dialog_format_body") | |||
| 1168 | - | core.PuregoSafeRegister(&xAlertDialogFormatBodyMarkup, libs, "adw_alert_dialog_format_body_markup") | |||
| 1169 | - | core.PuregoSafeRegister(&xAlertDialogFormatHeading, libs, "adw_alert_dialog_format_heading") | |||
| 1170 | - | core.PuregoSafeRegister(&xAlertDialogFormatHeadingMarkup, libs, "adw_alert_dialog_format_heading_markup") | |||
| 1171 | - | core.PuregoSafeRegister(&xAlertDialogGetBody, libs, "adw_alert_dialog_get_body") | |||
| 1172 | - | core.PuregoSafeRegister(&xAlertDialogGetBodyUseMarkup, libs, "adw_alert_dialog_get_body_use_markup") | |||
| 1173 | - | core.PuregoSafeRegister(&xAlertDialogGetCloseResponse, libs, "adw_alert_dialog_get_close_response") | |||
| 1174 | - | core.PuregoSafeRegister(&xAlertDialogGetDefaultResponse, libs, "adw_alert_dialog_get_default_response") | |||
| 1175 | - | core.PuregoSafeRegister(&xAlertDialogGetExtraChild, libs, "adw_alert_dialog_get_extra_child") | |||
| 1176 | - | core.PuregoSafeRegister(&xAlertDialogGetHeading, libs, "adw_alert_dialog_get_heading") | |||
| 1177 | - | core.PuregoSafeRegister(&xAlertDialogGetHeadingUseMarkup, libs, "adw_alert_dialog_get_heading_use_markup") | |||
| 1178 | - | core.PuregoSafeRegister(&xAlertDialogGetPreferWideLayout, libs, "adw_alert_dialog_get_prefer_wide_layout") | |||
| 1179 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseAppearance, libs, "adw_alert_dialog_get_response_appearance") | |||
| 1180 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseEnabled, libs, "adw_alert_dialog_get_response_enabled") | |||
| 1181 | - | core.PuregoSafeRegister(&xAlertDialogGetResponseLabel, libs, "adw_alert_dialog_get_response_label") | |||
| 1182 | - | core.PuregoSafeRegister(&xAlertDialogHasResponse, libs, "adw_alert_dialog_has_response") | |||
| 1183 | - | core.PuregoSafeRegister(&xAlertDialogRemoveResponse, libs, "adw_alert_dialog_remove_response") | |||
| 1184 | - | core.PuregoSafeRegister(&xAlertDialogSetBody, libs, "adw_alert_dialog_set_body") | |||
| 1185 | - | core.PuregoSafeRegister(&xAlertDialogSetBodyUseMarkup, libs, "adw_alert_dialog_set_body_use_markup") | |||
| 1186 | - | core.PuregoSafeRegister(&xAlertDialogSetCloseResponse, libs, "adw_alert_dialog_set_close_response") | |||
| 1187 | - | core.PuregoSafeRegister(&xAlertDialogSetDefaultResponse, libs, "adw_alert_dialog_set_default_response") | |||
| 1188 | - | core.PuregoSafeRegister(&xAlertDialogSetExtraChild, libs, "adw_alert_dialog_set_extra_child") | |||
| 1189 | - | core.PuregoSafeRegister(&xAlertDialogSetHeading, libs, "adw_alert_dialog_set_heading") | |||
| 1190 | - | core.PuregoSafeRegister(&xAlertDialogSetHeadingUseMarkup, libs, "adw_alert_dialog_set_heading_use_markup") | |||
| 1191 | - | core.PuregoSafeRegister(&xAlertDialogSetPreferWideLayout, libs, "adw_alert_dialog_set_prefer_wide_layout") | |||
| 1192 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseAppearance, libs, "adw_alert_dialog_set_response_appearance") | |||
| 1193 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseEnabled, libs, "adw_alert_dialog_set_response_enabled") | |||
| 1194 | - | core.PuregoSafeRegister(&xAlertDialogSetResponseLabel, libs, "adw_alert_dialog_set_response_label") | |||
| 1195 | } | 1214 | } | ||