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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gio" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -62,6 +61,7 @@ type TabViewShortcuts int | |||
| 62 | 61 | var xTabViewShortcutsGLibType func() types.GType | |
| 63 | 62 | ||
| 64 | 63 | func TabViewShortcutsGLibType() types.GType { | |
| 64 | + | core.LazyRegister(&xTabViewShortcutsGLibType, "ADW", "adw_tab_view_shortcuts_get_type", false) | |
| 65 | 65 | return xTabViewShortcutsGLibType() | |
| 66 | 66 | } | |
| 67 | 67 | ||
| @@ -110,6 +110,7 @@ type TabPage struct { | |||
| 110 | 110 | var xTabPageGLibType func() types.GType | |
| 111 | 111 | ||
| 112 | 112 | func TabPageGLibType() types.GType { | |
| 113 | + | core.LazyRegister(&xTabPageGLibType, "ADW", "adw_tab_page_get_type", false) | |
| 113 | 114 | return xTabPageGLibType() | |
| 114 | 115 | } | |
| 115 | 116 | ||
| @@ -123,6 +124,7 @@ var xTabPageGetChild func(uintptr) uintptr | |||
| 123 | 124 | ||
| 124 | 125 | // Gets the child of @self. | |
| 125 | 126 | func (x *TabPage) GetChild() *gtk.Widget { | |
| 127 | + | core.LazyRegister(&xTabPageGetChild, "ADW", "adw_tab_page_get_child", false) | |
| 126 | 128 | var cls *gtk.Widget | |
| 127 | 129 | ||
| 128 | 130 | cret := xTabPageGetChild(x.GoPointer()) | |
| @@ -140,6 +142,7 @@ var xTabPageGetIcon func(uintptr) uintptr | |||
| 140 | 142 | ||
| 141 | 143 | // Gets the icon of @self. | |
| 142 | 144 | func (x *TabPage) GetIcon() *gio.IconBase { | |
| 145 | + | core.LazyRegister(&xTabPageGetIcon, "ADW", "adw_tab_page_get_icon", false) | |
| 143 | 146 | var cls *gio.IconBase | |
| 144 | 147 | ||
| 145 | 148 | cret := xTabPageGetIcon(x.GoPointer()) | |
| @@ -157,6 +160,8 @@ var xTabPageGetIndicatorActivatable func(uintptr) bool | |||
| 157 | 160 | ||
| 158 | 161 | // Gets whether the indicator of @self is activatable. | |
| 159 | 162 | func (x *TabPage) GetIndicatorActivatable() bool { | |
| 163 | + | core.LazyRegister(&xTabPageGetIndicatorActivatable, "ADW", "adw_tab_page_get_indicator_activatable", false) | |
| 164 | + | ||
| 160 | 165 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | |
| 161 | 166 | return cret | |
| 162 | 167 | } | |
| @@ -165,6 +170,7 @@ var xTabPageGetIndicatorIcon func(uintptr) uintptr | |||
| 165 | 170 | ||
| 166 | 171 | // Gets the indicator icon of @self. | |
| 167 | 172 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | |
| 173 | + | core.LazyRegister(&xTabPageGetIndicatorIcon, "ADW", "adw_tab_page_get_indicator_icon", false) | |
| 168 | 174 | var cls *gio.IconBase | |
| 169 | 175 | ||
| 170 | 176 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | |
| @@ -182,6 +188,8 @@ var xTabPageGetIndicatorTooltip func(uintptr) string | |||
| 182 | 188 | ||
| 183 | 189 | // Gets the tooltip of the indicator icon of @self. | |
| 184 | 190 | func (x *TabPage) GetIndicatorTooltip() string { | |
| 191 | + | core.LazyRegister(&xTabPageGetIndicatorTooltip, "ADW", "adw_tab_page_get_indicator_tooltip", false) | |
| 192 | + | ||
| 185 | 193 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | |
| 186 | 194 | return cret | |
| 187 | 195 | } | |
| @@ -190,6 +198,8 @@ var xTabPageGetKeyword func(uintptr) string | |||
| 190 | 198 | ||
| 191 | 199 | // Gets the search keyword of @self. | |
| 192 | 200 | func (x *TabPage) GetKeyword() string { | |
| 201 | + | core.LazyRegister(&xTabPageGetKeyword, "ADW", "adw_tab_page_get_keyword", false) | |
| 202 | + | ||
| 193 | 203 | cret := xTabPageGetKeyword(x.GoPointer()) | |
| 194 | 204 | return cret | |
| 195 | 205 | } | |
| @@ -198,6 +208,8 @@ var xTabPageGetLiveThumbnail func(uintptr) bool | |||
| 198 | 208 | ||
| 199 | 209 | // Gets whether to live thumbnail is enabled @self. | |
| 200 | 210 | func (x *TabPage) GetLiveThumbnail() bool { | |
| 211 | + | core.LazyRegister(&xTabPageGetLiveThumbnail, "ADW", "adw_tab_page_get_live_thumbnail", false) | |
| 212 | + | ||
| 201 | 213 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | |
| 202 | 214 | return cret | |
| 203 | 215 | } | |
| @@ -206,6 +218,8 @@ var xTabPageGetLoading func(uintptr) bool | |||
| 206 | 218 | ||
| 207 | 219 | // Gets whether @self is loading. | |
| 208 | 220 | func (x *TabPage) GetLoading() bool { | |
| 221 | + | core.LazyRegister(&xTabPageGetLoading, "ADW", "adw_tab_page_get_loading", false) | |
| 222 | + | ||
| 209 | 223 | cret := xTabPageGetLoading(x.GoPointer()) | |
| 210 | 224 | return cret | |
| 211 | 225 | } | |
| @@ -214,6 +228,8 @@ var xTabPageGetNeedsAttention func(uintptr) bool | |||
| 214 | 228 | ||
| 215 | 229 | // Gets whether @self needs attention. | |
| 216 | 230 | func (x *TabPage) GetNeedsAttention() bool { | |
| 231 | + | core.LazyRegister(&xTabPageGetNeedsAttention, "ADW", "adw_tab_page_get_needs_attention", false) | |
| 232 | + | ||
| 217 | 233 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | |
| 218 | 234 | return cret | |
| 219 | 235 | } | |
| @@ -224,6 +240,7 @@ var xTabPageGetParent func(uintptr) uintptr | |||
| 224 | 240 | // | |
| 225 | 241 | // See [method@TabView.add_page] and [method@TabView.close_page]. | |
| 226 | 242 | func (x *TabPage) GetParent() *TabPage { | |
| 243 | + | core.LazyRegister(&xTabPageGetParent, "ADW", "adw_tab_page_get_parent", false) | |
| 227 | 244 | var cls *TabPage | |
| 228 | 245 | ||
| 229 | 246 | cret := xTabPageGetParent(x.GoPointer()) | |
| @@ -243,6 +260,8 @@ var xTabPageGetPinned func(uintptr) bool | |||
| 243 | 260 | // | |
| 244 | 261 | // See [method@TabView.set_page_pinned]. | |
| 245 | 262 | func (x *TabPage) GetPinned() bool { | |
| 263 | + | core.LazyRegister(&xTabPageGetPinned, "ADW", "adw_tab_page_get_pinned", false) | |
| 264 | + | ||
| 246 | 265 | cret := xTabPageGetPinned(x.GoPointer()) | |
| 247 | 266 | return cret | |
| 248 | 267 | } | |
| @@ -251,6 +270,8 @@ var xTabPageGetSelected func(uintptr) bool | |||
| 251 | 270 | ||
| 252 | 271 | // Gets whether @self is selected. | |
| 253 | 272 | func (x *TabPage) GetSelected() bool { | |
| 273 | + | core.LazyRegister(&xTabPageGetSelected, "ADW", "adw_tab_page_get_selected", false) | |
| 274 | + | ||
| 254 | 275 | cret := xTabPageGetSelected(x.GoPointer()) | |
| 255 | 276 | return cret | |
| 256 | 277 | } | |
| @@ -259,6 +280,8 @@ var xTabPageGetThumbnailXalign func(uintptr) float32 | |||
| 259 | 280 | ||
| 260 | 281 | // Gets the horizontal alignment of the thumbnail for @self. | |
| 261 | 282 | func (x *TabPage) GetThumbnailXalign() float32 { | |
| 283 | + | core.LazyRegister(&xTabPageGetThumbnailXalign, "ADW", "adw_tab_page_get_thumbnail_xalign", false) | |
| 284 | + | ||
| 262 | 285 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | |
| 263 | 286 | return cret | |
| 264 | 287 | } | |
| @@ -267,6 +290,8 @@ var xTabPageGetThumbnailYalign func(uintptr) float32 | |||
| 267 | 290 | ||
| 268 | 291 | // Gets the vertical alignment of the thumbnail for @self. | |
| 269 | 292 | func (x *TabPage) GetThumbnailYalign() float32 { | |
| 293 | + | core.LazyRegister(&xTabPageGetThumbnailYalign, "ADW", "adw_tab_page_get_thumbnail_yalign", false) | |
| 294 | + | ||
| 270 | 295 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | |
| 271 | 296 | return cret | |
| 272 | 297 | } | |
| @@ -275,6 +300,8 @@ var xTabPageGetTitle func(uintptr) string | |||
| 275 | 300 | ||
| 276 | 301 | // Gets the title of @self. | |
| 277 | 302 | func (x *TabPage) GetTitle() string { | |
| 303 | + | core.LazyRegister(&xTabPageGetTitle, "ADW", "adw_tab_page_get_title", false) | |
| 304 | + | ||
| 278 | 305 | cret := xTabPageGetTitle(x.GoPointer()) | |
| 279 | 306 | return cret | |
| 280 | 307 | } | |
| @@ -283,6 +310,8 @@ var xTabPageGetTooltip func(uintptr) string | |||
| 283 | 310 | ||
| 284 | 311 | // Gets the tooltip of @self. | |
| 285 | 312 | func (x *TabPage) GetTooltip() string { | |
| 313 | + | core.LazyRegister(&xTabPageGetTooltip, "ADW", "adw_tab_page_get_tooltip", false) | |
| 314 | + | ||
| 286 | 315 | cret := xTabPageGetTooltip(x.GoPointer()) | |
| 287 | 316 | return cret | |
| 288 | 317 | } | |
| @@ -298,6 +327,8 @@ var xTabPageInvalidateThumbnail func(uintptr) | |||
| 298 | 327 | // | |
| 299 | 328 | // See also [method@TabView.invalidate_thumbnails]. | |
| 300 | 329 | func (x *TabPage) InvalidateThumbnail() { | |
| 330 | + | core.LazyRegister(&xTabPageInvalidateThumbnail, "ADW", "adw_tab_page_invalidate_thumbnail", false) | |
| 331 | + | ||
| 301 | 332 | xTabPageInvalidateThumbnail(x.GoPointer()) | |
| 302 | 333 | } | |
| 303 | 334 | ||
| @@ -311,6 +342,8 @@ var xTabPageSetIcon func(uintptr, uintptr) | |||
| 311 | 342 | // `AdwTabBar` also won't show the icon if the page is pinned and | |
| 312 | 343 | // [propertyTabPage:indicator-icon] is set. | |
| 313 | 344 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | |
| 345 | + | core.LazyRegister(&xTabPageSetIcon, "ADW", "adw_tab_page_set_icon", false) | |
| 346 | + | ||
| 314 | 347 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | |
| 315 | 348 | } | |
| 316 | 349 | ||
| @@ -323,6 +356,8 @@ var xTabPageSetIndicatorActivatable func(uintptr, bool) | |||
| 323 | 356 | // | |
| 324 | 357 | // If [property@TabPage:indicator-icon] is not set, does nothing. | |
| 325 | 358 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | |
| 359 | + | core.LazyRegister(&xTabPageSetIndicatorActivatable, "ADW", "adw_tab_page_set_indicator_activatable", false) | |
| 360 | + | ||
| 326 | 361 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | |
| 327 | 362 | } | |
| 328 | 363 | ||
| @@ -346,6 +381,8 @@ var xTabPageSetIndicatorIcon func(uintptr, uintptr) | |||
| 346 | 381 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | |
| 347 | 382 | // indicator icon can act as a button. | |
| 348 | 383 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | |
| 384 | + | core.LazyRegister(&xTabPageSetIndicatorIcon, "ADW", "adw_tab_page_set_indicator_icon", false) | |
| 385 | + | ||
| 349 | 386 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | |
| 350 | 387 | } | |
| 351 | 388 | ||
| @@ -357,6 +394,8 @@ var xTabPageSetIndicatorTooltip func(uintptr, string) | |||
| 357 | 394 | // | |
| 358 | 395 | // See [property@TabPage:indicator-icon]. | |
| 359 | 396 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | |
| 397 | + | core.LazyRegister(&xTabPageSetIndicatorTooltip, "ADW", "adw_tab_page_set_indicator_tooltip", false) | |
| 398 | + | ||
| 360 | 399 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | |
| 361 | 400 | } | |
| 362 | 401 | ||
| @@ -369,6 +408,8 @@ var xTabPageSetKeyword func(uintptr, string) | |||
| 369 | 408 | // | |
| 370 | 409 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | |
| 371 | 410 | func (x *TabPage) SetKeyword(KeywordVar string) { | |
| 411 | + | core.LazyRegister(&xTabPageSetKeyword, "ADW", "adw_tab_page_set_keyword", false) | |
| 412 | + | ||
| 372 | 413 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | |
| 373 | 414 | } | |
| 374 | 415 | ||
| @@ -384,6 +425,8 @@ var xTabPageSetLiveThumbnail func(uintptr, bool) | |||
| 384 | 425 | // [method@TabPage.invalidate_thumbnail] or | |
| 385 | 426 | // [method@TabView.invalidate_thumbnails] is called. | |
| 386 | 427 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | |
| 428 | + | core.LazyRegister(&xTabPageSetLiveThumbnail, "ADW", "adw_tab_page_set_live_thumbnail", false) | |
| 429 | + | ||
| 387 | 430 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | |
| 388 | 431 | } | |
| 389 | 432 | ||
| @@ -397,6 +440,8 @@ var xTabPageSetLoading func(uintptr, bool) | |||
| 397 | 440 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | |
| 398 | 441 | // status will not be visible with `AdwTabBar`. | |
| 399 | 442 | func (x *TabPage) SetLoading(LoadingVar bool) { | |
| 443 | + | core.LazyRegister(&xTabPageSetLoading, "ADW", "adw_tab_page_set_loading", false) | |
| 444 | + | ||
| 400 | 445 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | |
| 401 | 446 | } | |
| 402 | 447 | ||
| @@ -414,6 +459,8 @@ var xTabPageSetNeedsAttention func(uintptr, bool) | |||
| 414 | 459 | // [class@TabButton] will display a dot if any of the pages that aren't | |
| 415 | 460 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | |
| 416 | 461 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | |
| 462 | + | core.LazyRegister(&xTabPageSetNeedsAttention, "ADW", "adw_tab_page_set_needs_attention", false) | |
| 463 | + | ||
| 417 | 464 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | |
| 418 | 465 | } | |
| 419 | 466 | ||
| @@ -430,6 +477,8 @@ var xTabPageSetThumbnailXalign func(uintptr, float32) | |||
| 430 | 477 | // | |
| 431 | 478 | // The default horizontal alignment is 0. | |
| 432 | 479 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | |
| 480 | + | core.LazyRegister(&xTabPageSetThumbnailXalign, "ADW", "adw_tab_page_set_thumbnail_xalign", false) | |
| 481 | + | ||
| 433 | 482 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | |
| 434 | 483 | } | |
| 435 | 484 | ||
| @@ -446,6 +495,8 @@ var xTabPageSetThumbnailYalign func(uintptr, float32) | |||
| 446 | 495 | // | |
| 447 | 496 | // The default vertical alignment is 0. | |
| 448 | 497 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | |
| 498 | + | core.LazyRegister(&xTabPageSetThumbnailYalign, "ADW", "adw_tab_page_set_thumbnail_yalign", false) | |
| 499 | + | ||
| 449 | 500 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | |
| 450 | 501 | } | |
| 451 | 502 | ||
| @@ -460,6 +511,8 @@ var xTabPageSetTitle func(uintptr, string) | |||
| 460 | 511 | // | |
| 461 | 512 | // Sets the title of @self. | |
| 462 | 513 | func (x *TabPage) SetTitle(TitleVar string) { | |
| 514 | + | core.LazyRegister(&xTabPageSetTitle, "ADW", "adw_tab_page_set_title", false) | |
| 515 | + | ||
| 463 | 516 | xTabPageSetTitle(x.GoPointer(), TitleVar) | |
| 464 | 517 | } | |
| 465 | 518 | ||
| @@ -472,6 +525,8 @@ var xTabPageSetTooltip func(uintptr, string) | |||
| 472 | 525 | // If not set, [class@TabBar] and [class@TabOverview] will use | |
| 473 | 526 | // [property@TabPage:title] as a tooltip instead. | |
| 474 | 527 | func (x *TabPage) SetTooltip(TooltipVar string) { | |
| 528 | + | core.LazyRegister(&xTabPageSetTooltip, "ADW", "adw_tab_page_set_tooltip", false) | |
| 529 | + | ||
| 475 | 530 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | |
| 476 | 531 | } | |
| 477 | 532 | ||
| @@ -1111,6 +1166,7 @@ type TabView struct { | |||
| 1111 | 1166 | var xTabViewGLibType func() types.GType | |
| 1112 | 1167 | ||
| 1113 | 1168 | func TabViewGLibType() types.GType { | |
| 1169 | + | core.LazyRegister(&xTabViewGLibType, "ADW", "adw_tab_view_get_type", false) | |
| 1114 | 1170 | return xTabViewGLibType() | |
| 1115 | 1171 | } | |
| 1116 | 1172 | ||
| @@ -1124,6 +1180,7 @@ var xNewTabView func() uintptr | |||
| 1124 | 1180 | ||
| 1125 | 1181 | // Creates a new `AdwTabView`. | |
| 1126 | 1182 | func NewTabView() *TabView { | |
| 1183 | + | core.LazyRegister(&xNewTabView, "ADW", "adw_tab_view_new", false) | |
| 1127 | 1184 | var cls *TabView | |
| 1128 | 1185 | ||
| 1129 | 1186 | cret := xNewTabView() | |
| @@ -1147,6 +1204,7 @@ var xTabViewAddPage func(uintptr, uintptr, uintptr) uintptr | |||
| 1147 | 1204 | // | |
| 1148 | 1205 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | |
| 1149 | 1206 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | |
| 1207 | + | core.LazyRegister(&xTabViewAddPage, "ADW", "adw_tab_view_add_page", false) | |
| 1150 | 1208 | var cls *TabPage | |
| 1151 | 1209 | ||
| 1152 | 1210 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | |
| @@ -1166,6 +1224,8 @@ var xTabViewAddShortcuts func(uintptr, TabViewShortcuts) | |||
| 1166 | 1224 | // | |
| 1167 | 1225 | // See [property@TabView:shortcuts] for details. | |
| 1168 | 1226 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1227 | + | core.LazyRegister(&xTabViewAddShortcuts, "ADW", "adw_tab_view_add_shortcuts", false) | |
| 1228 | + | ||
| 1169 | 1229 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1170 | 1230 | } | |
| 1171 | 1231 | ||
| @@ -1173,6 +1233,7 @@ var xTabViewAppend func(uintptr, uintptr) uintptr | |||
| 1173 | 1233 | ||
| 1174 | 1234 | // Inserts @child as the last non-pinned page. | |
| 1175 | 1235 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | |
| 1236 | + | core.LazyRegister(&xTabViewAppend, "ADW", "adw_tab_view_append", false) | |
| 1176 | 1237 | var cls *TabPage | |
| 1177 | 1238 | ||
| 1178 | 1239 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1190,6 +1251,7 @@ var xTabViewAppendPinned func(uintptr, uintptr) uintptr | |||
| 1190 | 1251 | ||
| 1191 | 1252 | // Inserts @child as the last pinned page. | |
| 1192 | 1253 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | |
| 1254 | + | core.LazyRegister(&xTabViewAppendPinned, "ADW", "adw_tab_view_append_pinned", false) | |
| 1193 | 1255 | var cls *TabPage | |
| 1194 | 1256 | ||
| 1195 | 1257 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1207,6 +1269,8 @@ var xTabViewCloseOtherPages func(uintptr, uintptr) | |||
| 1207 | 1269 | ||
| 1208 | 1270 | // Requests to close all pages other than @page. | |
| 1209 | 1271 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | |
| 1272 | + | core.LazyRegister(&xTabViewCloseOtherPages, "ADW", "adw_tab_view_close_other_pages", false) | |
| 1273 | + | ||
| 1210 | 1274 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | |
| 1211 | 1275 | } | |
| 1212 | 1276 | ||
| @@ -1235,6 +1299,8 @@ var xTabViewClosePage func(uintptr, uintptr) | |||
| 1235 | 1299 | // (possibly indirect) of the parent. If both the previous page and the parent | |
| 1236 | 1300 | // are pinned, the parent will be selected instead. | |
| 1237 | 1301 | func (x *TabView) ClosePage(PageVar *TabPage) { | |
| 1302 | + | core.LazyRegister(&xTabViewClosePage, "ADW", "adw_tab_view_close_page", false) | |
| 1303 | + | ||
| 1238 | 1304 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | |
| 1239 | 1305 | } | |
| 1240 | 1306 | ||
| @@ -1249,6 +1315,8 @@ var xTabViewClosePageFinish func(uintptr, uintptr, bool) | |||
| 1249 | 1315 | // This function should not be called unless a custom handler for | |
| 1250 | 1316 | // [signal@TabView::close-page] is used. | |
| 1251 | 1317 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | |
| 1318 | + | core.LazyRegister(&xTabViewClosePageFinish, "ADW", "adw_tab_view_close_page_finish", false) | |
| 1319 | + | ||
| 1252 | 1320 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | |
| 1253 | 1321 | } | |
| 1254 | 1322 | ||
| @@ -1256,6 +1324,8 @@ var xTabViewClosePagesAfter func(uintptr, uintptr) | |||
| 1256 | 1324 | ||
| 1257 | 1325 | // Requests to close all pages after @page. | |
| 1258 | 1326 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | |
| 1327 | + | core.LazyRegister(&xTabViewClosePagesAfter, "ADW", "adw_tab_view_close_pages_after", false) | |
| 1328 | + | ||
| 1259 | 1329 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | |
| 1260 | 1330 | } | |
| 1261 | 1331 | ||
| @@ -1263,6 +1333,8 @@ var xTabViewClosePagesBefore func(uintptr, uintptr) | |||
| 1263 | 1333 | ||
| 1264 | 1334 | // Requests to close all pages before @page. | |
| 1265 | 1335 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | |
| 1336 | + | core.LazyRegister(&xTabViewClosePagesBefore, "ADW", "adw_tab_view_close_pages_before", false) | |
| 1337 | + | ||
| 1266 | 1338 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | |
| 1267 | 1339 | } | |
| 1268 | 1340 | ||
| @@ -1270,6 +1342,7 @@ var xTabViewGetDefaultIcon func(uintptr) uintptr | |||
| 1270 | 1342 | ||
| 1271 | 1343 | // Gets the default icon of @self. | |
| 1272 | 1344 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | |
| 1345 | + | core.LazyRegister(&xTabViewGetDefaultIcon, "ADW", "adw_tab_view_get_default_icon", false) | |
| 1273 | 1346 | var cls *gio.IconBase | |
| 1274 | 1347 | ||
| 1275 | 1348 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | |
| @@ -1293,6 +1366,8 @@ var xTabViewGetIsTransferringPage func(uintptr) bool | |||
| 1293 | 1366 | // During the transfer, children cannot receive pointer input and a tab can | |
| 1294 | 1367 | // be safely dropped on the tab view. | |
| 1295 | 1368 | func (x *TabView) GetIsTransferringPage() bool { | |
| 1369 | + | core.LazyRegister(&xTabViewGetIsTransferringPage, "ADW", "adw_tab_view_get_is_transferring_page", false) | |
| 1370 | + | ||
| 1296 | 1371 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | |
| 1297 | 1372 | return cret | |
| 1298 | 1373 | } | |
| @@ -1301,6 +1376,7 @@ var xTabViewGetMenuModel func(uintptr) uintptr | |||
| 1301 | 1376 | ||
| 1302 | 1377 | // Gets the tab context menu model for @self. | |
| 1303 | 1378 | func (x *TabView) GetMenuModel() *gio.MenuModel { | |
| 1379 | + | core.LazyRegister(&xTabViewGetMenuModel, "ADW", "adw_tab_view_get_menu_model", false) | |
| 1304 | 1380 | var cls *gio.MenuModel | |
| 1305 | 1381 | ||
| 1306 | 1382 | cret := xTabViewGetMenuModel(x.GoPointer()) | |
| @@ -1318,6 +1394,8 @@ var xTabViewGetNPages func(uintptr) int | |||
| 1318 | 1394 | ||
| 1319 | 1395 | // Gets the number of pages in @self. | |
| 1320 | 1396 | func (x *TabView) GetNPages() int { | |
| 1397 | + | core.LazyRegister(&xTabViewGetNPages, "ADW", "adw_tab_view_get_n_pages", false) | |
| 1398 | + | ||
| 1321 | 1399 | cret := xTabViewGetNPages(x.GoPointer()) | |
| 1322 | 1400 | return cret | |
| 1323 | 1401 | } | |
| @@ -1328,6 +1406,8 @@ var xTabViewGetNPinnedPages func(uintptr) int | |||
| 1328 | 1406 | // | |
| 1329 | 1407 | // See [method@TabView.set_page_pinned]. | |
| 1330 | 1408 | func (x *TabView) GetNPinnedPages() int { | |
| 1409 | + | core.LazyRegister(&xTabViewGetNPinnedPages, "ADW", "adw_tab_view_get_n_pinned_pages", false) | |
| 1410 | + | ||
| 1331 | 1411 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | |
| 1332 | 1412 | return cret | |
| 1333 | 1413 | } | |
| @@ -1336,6 +1416,7 @@ var xTabViewGetNthPage func(uintptr, int) uintptr | |||
| 1336 | 1416 | ||
| 1337 | 1417 | // Gets the [class@TabPage] representing the child at @position. | |
| 1338 | 1418 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | |
| 1419 | + | core.LazyRegister(&xTabViewGetNthPage, "ADW", "adw_tab_view_get_nth_page", false) | |
| 1339 | 1420 | var cls *TabPage | |
| 1340 | 1421 | ||
| 1341 | 1422 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | |
| @@ -1353,6 +1434,7 @@ var xTabViewGetPage func(uintptr, uintptr) uintptr | |||
| 1353 | 1434 | ||
| 1354 | 1435 | // Gets the [class@TabPage] object representing @child. | |
| 1355 | 1436 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | |
| 1437 | + | core.LazyRegister(&xTabViewGetPage, "ADW", "adw_tab_view_get_page", false) | |
| 1356 | 1438 | var cls *TabPage | |
| 1357 | 1439 | ||
| 1358 | 1440 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1370,6 +1452,8 @@ var xTabViewGetPagePosition func(uintptr, uintptr) int | |||
| 1370 | 1452 | ||
| 1371 | 1453 | // Finds the position of @page in @self, starting from 0. | |
| 1372 | 1454 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | |
| 1455 | + | core.LazyRegister(&xTabViewGetPagePosition, "ADW", "adw_tab_view_get_page_position", false) | |
| 1456 | + | ||
| 1373 | 1457 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | |
| 1374 | 1458 | return cret | |
| 1375 | 1459 | } | |
| @@ -1386,6 +1470,7 @@ var xTabViewGetPages func(uintptr) uintptr | |||
| 1386 | 1470 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | |
| 1387 | 1471 | // change the selected page. | |
| 1388 | 1472 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | |
| 1473 | + | core.LazyRegister(&xTabViewGetPages, "ADW", "adw_tab_view_get_pages", false) | |
| 1389 | 1474 | var cls *gtk.SelectionModelBase | |
| 1390 | 1475 | ||
| 1391 | 1476 | cret := xTabViewGetPages(x.GoPointer()) | |
| @@ -1402,6 +1487,7 @@ var xTabViewGetSelectedPage func(uintptr) uintptr | |||
| 1402 | 1487 | ||
| 1403 | 1488 | // Gets the currently selected page in @self. | |
| 1404 | 1489 | func (x *TabView) GetSelectedPage() *TabPage { | |
| 1490 | + | core.LazyRegister(&xTabViewGetSelectedPage, "ADW", "adw_tab_view_get_selected_page", false) | |
| 1405 | 1491 | var cls *TabPage | |
| 1406 | 1492 | ||
| 1407 | 1493 | cret := xTabViewGetSelectedPage(x.GoPointer()) | |
| @@ -1419,6 +1505,8 @@ var xTabViewGetShortcuts func(uintptr) TabViewShortcuts | |||
| 1419 | 1505 | ||
| 1420 | 1506 | // Gets the enabled shortcuts for @self. | |
| 1421 | 1507 | func (x *TabView) GetShortcuts() TabViewShortcuts { | |
| 1508 | + | core.LazyRegister(&xTabViewGetShortcuts, "ADW", "adw_tab_view_get_shortcuts", false) | |
| 1509 | + | ||
| 1422 | 1510 | cret := xTabViewGetShortcuts(x.GoPointer()) | |
| 1423 | 1511 | return cret | |
| 1424 | 1512 | } | |
| @@ -1430,6 +1518,7 @@ var xTabViewInsert func(uintptr, uintptr, int) uintptr | |||
| 1430 | 1518 | // It's an error to try to insert a page before a pinned page, in that case | |
| 1431 | 1519 | // [method@TabView.insert_pinned] should be used instead. | |
| 1432 | 1520 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | |
| 1521 | + | core.LazyRegister(&xTabViewInsert, "ADW", "adw_tab_view_insert", false) | |
| 1433 | 1522 | var cls *TabPage | |
| 1434 | 1523 | ||
| 1435 | 1524 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| @@ -1450,6 +1539,7 @@ var xTabViewInsertPinned func(uintptr, uintptr, int) uintptr | |||
| 1450 | 1539 | // It's an error to try to insert a pinned page after a non-pinned page, in | |
| 1451 | 1540 | // that case [method@TabView.insert] should be used instead. | |
| 1452 | 1541 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | |
| 1542 | + | core.LazyRegister(&xTabViewInsertPinned, "ADW", "adw_tab_view_insert_pinned", false) | |
| 1453 | 1543 | var cls *TabPage | |
| 1454 | 1544 | ||
| 1455 | 1545 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| @@ -1470,6 +1560,8 @@ var xTabViewInvalidateThumbnails func(uintptr) | |||
| 1470 | 1560 | // This is a convenience method, equivalent to calling | |
| 1471 | 1561 | // [method@TabPage.invalidate_thumbnail] on each page. | |
| 1472 | 1562 | func (x *TabView) InvalidateThumbnails() { | |
| 1563 | + | core.LazyRegister(&xTabViewInvalidateThumbnails, "ADW", "adw_tab_view_invalidate_thumbnails", false) | |
| 1564 | + | ||
| 1473 | 1565 | xTabViewInvalidateThumbnails(x.GoPointer()) | |
| 1474 | 1566 | } | |
| 1475 | 1567 | ||
| @@ -1477,6 +1569,7 @@ var xTabViewPrepend func(uintptr, uintptr) uintptr | |||
| 1477 | 1569 | ||
| 1478 | 1570 | // Inserts @child as the first non-pinned page. | |
| 1479 | 1571 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | |
| 1572 | + | core.LazyRegister(&xTabViewPrepend, "ADW", "adw_tab_view_prepend", false) | |
| 1480 | 1573 | var cls *TabPage | |
| 1481 | 1574 | ||
| 1482 | 1575 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1494,6 +1587,7 @@ var xTabViewPrependPinned func(uintptr, uintptr) uintptr | |||
| 1494 | 1587 | ||
| 1495 | 1588 | // Inserts @child as the first pinned page. | |
| 1496 | 1589 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | |
| 1590 | + | core.LazyRegister(&xTabViewPrependPinned, "ADW", "adw_tab_view_prepend_pinned", false) | |
| 1497 | 1591 | var cls *TabPage | |
| 1498 | 1592 | ||
| 1499 | 1593 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1513,6 +1607,8 @@ var xTabViewRemoveShortcuts func(uintptr, TabViewShortcuts) | |||
| 1513 | 1607 | // | |
| 1514 | 1608 | // See [property@TabView:shortcuts] for details. | |
| 1515 | 1609 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1610 | + | core.LazyRegister(&xTabViewRemoveShortcuts, "ADW", "adw_tab_view_remove_shortcuts", false) | |
| 1611 | + | ||
| 1516 | 1612 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1517 | 1613 | } | |
| 1518 | 1614 | ||
| @@ -1520,6 +1616,8 @@ var xTabViewReorderBackward func(uintptr, uintptr) bool | |||
| 1520 | 1616 | ||
| 1521 | 1617 | // Reorders @page to before its previous page if possible. | |
| 1522 | 1618 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | |
| 1619 | + | core.LazyRegister(&xTabViewReorderBackward, "ADW", "adw_tab_view_reorder_backward", false) | |
| 1620 | + | ||
| 1523 | 1621 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | |
| 1524 | 1622 | return cret | |
| 1525 | 1623 | } | |
| @@ -1528,6 +1626,8 @@ var xTabViewReorderFirst func(uintptr, uintptr) bool | |||
| 1528 | 1626 | ||
| 1529 | 1627 | // Reorders @page to the first possible position. | |
| 1530 | 1628 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | |
| 1629 | + | core.LazyRegister(&xTabViewReorderFirst, "ADW", "adw_tab_view_reorder_first", false) | |
| 1630 | + | ||
| 1531 | 1631 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | |
| 1532 | 1632 | return cret | |
| 1533 | 1633 | } | |
| @@ -1536,6 +1636,8 @@ var xTabViewReorderForward func(uintptr, uintptr) bool | |||
| 1536 | 1636 | ||
| 1537 | 1637 | // Reorders @page to after its next page if possible. | |
| 1538 | 1638 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | |
| 1639 | + | core.LazyRegister(&xTabViewReorderForward, "ADW", "adw_tab_view_reorder_forward", false) | |
| 1640 | + | ||
| 1539 | 1641 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | |
| 1540 | 1642 | return cret | |
| 1541 | 1643 | } | |
| @@ -1544,6 +1646,8 @@ var xTabViewReorderLast func(uintptr, uintptr) bool | |||
| 1544 | 1646 | ||
| 1545 | 1647 | // Reorders @page to the last possible position. | |
| 1546 | 1648 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | |
| 1649 | + | core.LazyRegister(&xTabViewReorderLast, "ADW", "adw_tab_view_reorder_last", false) | |
| 1650 | + | ||
| 1547 | 1651 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | |
| 1548 | 1652 | return cret | |
| 1549 | 1653 | } | |
| @@ -1555,6 +1659,8 @@ var xTabViewReorderPage func(uintptr, uintptr, int) bool | |||
| 1555 | 1659 | // It's a programmer error to try to reorder a pinned page after a non-pinned | |
| 1556 | 1660 | // one, or a non-pinned page before a pinned one. | |
| 1557 | 1661 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | |
| 1662 | + | core.LazyRegister(&xTabViewReorderPage, "ADW", "adw_tab_view_reorder_page", false) | |
| 1663 | + | ||
| 1558 | 1664 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | |
| 1559 | 1665 | return cret | |
| 1560 | 1666 | } | |
| @@ -1565,6 +1671,8 @@ var xTabViewSelectNextPage func(uintptr) bool | |||
| 1565 | 1671 | // | |
| 1566 | 1672 | // If the last page was already selected, this function does nothing. | |
| 1567 | 1673 | func (x *TabView) SelectNextPage() bool { | |
| 1674 | + | core.LazyRegister(&xTabViewSelectNextPage, "ADW", "adw_tab_view_select_next_page", false) | |
| 1675 | + | ||
| 1568 | 1676 | cret := xTabViewSelectNextPage(x.GoPointer()) | |
| 1569 | 1677 | return cret | |
| 1570 | 1678 | } | |
| @@ -1575,6 +1683,8 @@ var xTabViewSelectPreviousPage func(uintptr) bool | |||
| 1575 | 1683 | // | |
| 1576 | 1684 | // If the first page was already selected, this function does nothing. | |
| 1577 | 1685 | func (x *TabView) SelectPreviousPage() bool { | |
| 1686 | + | core.LazyRegister(&xTabViewSelectPreviousPage, "ADW", "adw_tab_view_select_previous_page", false) | |
| 1687 | + | ||
| 1578 | 1688 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | |
| 1579 | 1689 | return cret | |
| 1580 | 1690 | } | |
| @@ -1594,6 +1704,8 @@ var xTabViewSetDefaultIcon func(uintptr, uintptr) | |||
| 1594 | 1704 | // | |
| 1595 | 1705 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | |
| 1596 | 1706 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | |
| 1707 | + | core.LazyRegister(&xTabViewSetDefaultIcon, "ADW", "adw_tab_view_set_default_icon", false) | |
| 1708 | + | ||
| 1597 | 1709 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | |
| 1598 | 1710 | } | |
| 1599 | 1711 | ||
| @@ -1605,6 +1717,8 @@ var xTabViewSetMenuModel func(uintptr, uintptr) | |||
| 1605 | 1717 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | |
| 1606 | 1718 | // the menu actions for the particular tab. | |
| 1607 | 1719 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | |
| 1720 | + | core.LazyRegister(&xTabViewSetMenuModel, "ADW", "adw_tab_view_set_menu_model", false) | |
| 1721 | + | ||
| 1608 | 1722 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | |
| 1609 | 1723 | } | |
| 1610 | 1724 | ||
| @@ -1640,6 +1754,8 @@ var xTabViewSetPagePinned func(uintptr, uintptr, bool) | |||
| 1640 | 1754 | // | |
| 1641 | 1755 | // Changes the value of the [property@TabPage:pinned] property. | |
| 1642 | 1756 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | |
| 1757 | + | core.LazyRegister(&xTabViewSetPagePinned, "ADW", "adw_tab_view_set_page_pinned", false) | |
| 1758 | + | ||
| 1643 | 1759 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | |
| 1644 | 1760 | } | |
| 1645 | 1761 | ||
| @@ -1647,6 +1763,8 @@ var xTabViewSetSelectedPage func(uintptr, uintptr) | |||
| 1647 | 1763 | ||
| 1648 | 1764 | // Sets the currently selected page in @self. | |
| 1649 | 1765 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | |
| 1766 | + | core.LazyRegister(&xTabViewSetSelectedPage, "ADW", "adw_tab_view_set_selected_page", false) | |
| 1767 | + | ||
| 1650 | 1768 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | |
| 1651 | 1769 | } | |
| 1652 | 1770 | ||
| @@ -1660,6 +1778,8 @@ var xTabViewSetShortcuts func(uintptr, TabViewShortcuts) | |||
| 1660 | 1778 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | |
| 1661 | 1779 | // a convenient way to manage individual shortcuts. | |
| 1662 | 1780 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1781 | + | core.LazyRegister(&xTabViewSetShortcuts, "ADW", "adw_tab_view_set_shortcuts", false) | |
| 1782 | + | ||
| 1663 | 1783 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1664 | 1784 | } | |
| 1665 | 1785 | ||
| @@ -1672,6 +1792,8 @@ var xTabViewTransferPage func(uintptr, uintptr, uintptr, int) | |||
| 1672 | 1792 | // It's a programmer error to try to insert a pinned page after a non-pinned | |
| 1673 | 1793 | // one, or a non-pinned page before a pinned one. | |
| 1674 | 1794 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | |
| 1795 | + | core.LazyRegister(&xTabViewTransferPage, "ADW", "adw_tab_view_transfer_page", false) | |
| 1796 | + | ||
| 1675 | 1797 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | |
| 1676 | 1798 | } | |
| 1677 | 1799 | ||
| @@ -2202,90 +2324,4 @@ func (x *TabView) GetBuildableId() string { | |||
| 2202 | 2324 | func init() { | |
| 2203 | 2325 | core.SetPackageName("ADW", "libadwaita-1") | |
| 2204 | 2326 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 2205 | - | var libs []uintptr | |
| 2206 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 2207 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2208 | - | if err != nil { | |
| 2209 | - | panic(err) | |
| 2210 | - | } | |
| 2211 | - | libs = append(libs, lib) | |
| 2212 | - | } | |
| 2213 | - | ||
| 2214 | - | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, libs, "adw_tab_view_shortcuts_get_type") | |
| 2215 | - | ||
| 2216 | - | core.PuregoSafeRegister(&xTabPageGLibType, libs, "adw_tab_page_get_type") | |
| 2217 | - | ||
| 2218 | - | core.PuregoSafeRegister(&xTabPageGetChild, libs, "adw_tab_page_get_child") | |
| 2219 | - | core.PuregoSafeRegister(&xTabPageGetIcon, libs, "adw_tab_page_get_icon") | |
| 2220 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, libs, "adw_tab_page_get_indicator_activatable") | |
| 2221 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorIcon, libs, "adw_tab_page_get_indicator_icon") | |
| 2222 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorTooltip, libs, "adw_tab_page_get_indicator_tooltip") | |
| 2223 | - | core.PuregoSafeRegister(&xTabPageGetKeyword, libs, "adw_tab_page_get_keyword") | |
| 2224 | - | core.PuregoSafeRegister(&xTabPageGetLiveThumbnail, libs, "adw_tab_page_get_live_thumbnail") | |
| 2225 | - | core.PuregoSafeRegister(&xTabPageGetLoading, libs, "adw_tab_page_get_loading") | |
| 2226 | - | core.PuregoSafeRegister(&xTabPageGetNeedsAttention, libs, "adw_tab_page_get_needs_attention") | |
| 2227 | - | core.PuregoSafeRegister(&xTabPageGetParent, libs, "adw_tab_page_get_parent") | |
| 2228 | - | core.PuregoSafeRegister(&xTabPageGetPinned, libs, "adw_tab_page_get_pinned") | |
| 2229 | - | core.PuregoSafeRegister(&xTabPageGetSelected, libs, "adw_tab_page_get_selected") | |
| 2230 | - | core.PuregoSafeRegister(&xTabPageGetThumbnailXalign, libs, "adw_tab_page_get_thumbnail_xalign") | |
| 2231 | - | core.PuregoSafeRegister(&xTabPageGetThumbnailYalign, libs, "adw_tab_page_get_thumbnail_yalign") | |
| 2232 | - | core.PuregoSafeRegister(&xTabPageGetTitle, libs, "adw_tab_page_get_title") | |
| 2233 | - | core.PuregoSafeRegister(&xTabPageGetTooltip, libs, "adw_tab_page_get_tooltip") | |
| 2234 | - | core.PuregoSafeRegister(&xTabPageInvalidateThumbnail, libs, "adw_tab_page_invalidate_thumbnail") | |
| 2235 | - | core.PuregoSafeRegister(&xTabPageSetIcon, libs, "adw_tab_page_set_icon") | |
| 2236 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorActivatable, libs, "adw_tab_page_set_indicator_activatable") | |
| 2237 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorIcon, libs, "adw_tab_page_set_indicator_icon") | |
| 2238 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorTooltip, libs, "adw_tab_page_set_indicator_tooltip") | |
| 2239 | - | core.PuregoSafeRegister(&xTabPageSetKeyword, libs, "adw_tab_page_set_keyword") | |
| 2240 | - | core.PuregoSafeRegister(&xTabPageSetLiveThumbnail, libs, "adw_tab_page_set_live_thumbnail") | |
| 2241 | - | core.PuregoSafeRegister(&xTabPageSetLoading, libs, "adw_tab_page_set_loading") | |
| 2242 | - | core.PuregoSafeRegister(&xTabPageSetNeedsAttention, libs, "adw_tab_page_set_needs_attention") | |
| 2243 | - | core.PuregoSafeRegister(&xTabPageSetThumbnailXalign, libs, "adw_tab_page_set_thumbnail_xalign") | |
| 2244 | - | core.PuregoSafeRegister(&xTabPageSetThumbnailYalign, libs, "adw_tab_page_set_thumbnail_yalign") | |
| 2245 | - | core.PuregoSafeRegister(&xTabPageSetTitle, libs, "adw_tab_page_set_title") | |
| 2246 | - | core.PuregoSafeRegister(&xTabPageSetTooltip, libs, "adw_tab_page_set_tooltip") | |
| 2247 | - | ||
| 2248 | - | core.PuregoSafeRegister(&xTabViewGLibType, libs, "adw_tab_view_get_type") | |
| 2249 | - | ||
| 2250 | - | core.PuregoSafeRegister(&xNewTabView, libs, "adw_tab_view_new") | |
| 2251 | - | ||
| 2252 | - | core.PuregoSafeRegister(&xTabViewAddPage, libs, "adw_tab_view_add_page") | |
| 2253 | - | core.PuregoSafeRegister(&xTabViewAddShortcuts, libs, "adw_tab_view_add_shortcuts") | |
| 2254 | - | core.PuregoSafeRegister(&xTabViewAppend, libs, "adw_tab_view_append") | |
| 2255 | - | core.PuregoSafeRegister(&xTabViewAppendPinned, libs, "adw_tab_view_append_pinned") | |
| 2256 | - | core.PuregoSafeRegister(&xTabViewCloseOtherPages, libs, "adw_tab_view_close_other_pages") | |
| 2257 | - | core.PuregoSafeRegister(&xTabViewClosePage, libs, "adw_tab_view_close_page") | |
| 2258 | - | core.PuregoSafeRegister(&xTabViewClosePageFinish, libs, "adw_tab_view_close_page_finish") | |
| 2259 | - | core.PuregoSafeRegister(&xTabViewClosePagesAfter, libs, "adw_tab_view_close_pages_after") | |
| 2260 | - | core.PuregoSafeRegister(&xTabViewClosePagesBefore, libs, "adw_tab_view_close_pages_before") | |
| 2261 | - | core.PuregoSafeRegister(&xTabViewGetDefaultIcon, libs, "adw_tab_view_get_default_icon") | |
| 2262 | - | core.PuregoSafeRegister(&xTabViewGetIsTransferringPage, libs, "adw_tab_view_get_is_transferring_page") | |
| 2263 | - | core.PuregoSafeRegister(&xTabViewGetMenuModel, libs, "adw_tab_view_get_menu_model") | |
| 2264 | - | core.PuregoSafeRegister(&xTabViewGetNPages, libs, "adw_tab_view_get_n_pages") | |
| 2265 | - | core.PuregoSafeRegister(&xTabViewGetNPinnedPages, libs, "adw_tab_view_get_n_pinned_pages") | |
| 2266 | - | core.PuregoSafeRegister(&xTabViewGetNthPage, libs, "adw_tab_view_get_nth_page") | |
| 2267 | - | core.PuregoSafeRegister(&xTabViewGetPage, libs, "adw_tab_view_get_page") | |
| 2268 | - | core.PuregoSafeRegister(&xTabViewGetPagePosition, libs, "adw_tab_view_get_page_position") | |
| 2269 | - | core.PuregoSafeRegister(&xTabViewGetPages, libs, "adw_tab_view_get_pages") | |
| 2270 | - | core.PuregoSafeRegister(&xTabViewGetSelectedPage, libs, "adw_tab_view_get_selected_page") | |
| 2271 | - | core.PuregoSafeRegister(&xTabViewGetShortcuts, libs, "adw_tab_view_get_shortcuts") | |
| 2272 | - | core.PuregoSafeRegister(&xTabViewInsert, libs, "adw_tab_view_insert") | |
| 2273 | - | core.PuregoSafeRegister(&xTabViewInsertPinned, libs, "adw_tab_view_insert_pinned") | |
| 2274 | - | core.PuregoSafeRegister(&xTabViewInvalidateThumbnails, libs, "adw_tab_view_invalidate_thumbnails") | |
| 2275 | - | core.PuregoSafeRegister(&xTabViewPrepend, libs, "adw_tab_view_prepend") | |
| 2276 | - | core.PuregoSafeRegister(&xTabViewPrependPinned, libs, "adw_tab_view_prepend_pinned") | |
| 2277 | - | core.PuregoSafeRegister(&xTabViewRemoveShortcuts, libs, "adw_tab_view_remove_shortcuts") | |
| 2278 | - | core.PuregoSafeRegister(&xTabViewReorderBackward, libs, "adw_tab_view_reorder_backward") | |
| 2279 | - | core.PuregoSafeRegister(&xTabViewReorderFirst, libs, "adw_tab_view_reorder_first") | |
| 2280 | - | core.PuregoSafeRegister(&xTabViewReorderForward, libs, "adw_tab_view_reorder_forward") | |
| 2281 | - | core.PuregoSafeRegister(&xTabViewReorderLast, libs, "adw_tab_view_reorder_last") | |
| 2282 | - | core.PuregoSafeRegister(&xTabViewReorderPage, libs, "adw_tab_view_reorder_page") | |
| 2283 | - | core.PuregoSafeRegister(&xTabViewSelectNextPage, libs, "adw_tab_view_select_next_page") | |
| 2284 | - | core.PuregoSafeRegister(&xTabViewSelectPreviousPage, libs, "adw_tab_view_select_previous_page") | |
| 2285 | - | core.PuregoSafeRegister(&xTabViewSetDefaultIcon, libs, "adw_tab_view_set_default_icon") | |
| 2286 | - | core.PuregoSafeRegister(&xTabViewSetMenuModel, libs, "adw_tab_view_set_menu_model") | |
| 2287 | - | core.PuregoSafeRegister(&xTabViewSetPagePinned, libs, "adw_tab_view_set_page_pinned") | |
| 2288 | - | core.PuregoSafeRegister(&xTabViewSetSelectedPage, libs, "adw_tab_view_set_selected_page") | |
| 2289 | - | core.PuregoSafeRegister(&xTabViewSetShortcuts, libs, "adw_tab_view_set_shortcuts") | |
| 2290 | - | core.PuregoSafeRegister(&xTabViewTransferPage, libs, "adw_tab_view_transfer_page") | |
| 2291 | 2327 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gio" | 9 | "github.com/bnema/puregotk/v4/gio" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -62,6 +61,7 @@ type TabViewShortcuts int | |||||
| 62 | var xTabViewShortcutsGLibType func() types.GType | 61 | var xTabViewShortcutsGLibType func() types.GType | ||
| 63 | 62 | ||||
| 64 | func TabViewShortcutsGLibType() types.GType { | 63 | func TabViewShortcutsGLibType() types.GType { | ||
| 64 | + | core.LazyRegister(&xTabViewShortcutsGLibType, "ADW", "adw_tab_view_shortcuts_get_type", false) | |||
| 65 | return xTabViewShortcutsGLibType() | 65 | return xTabViewShortcutsGLibType() | ||
| 66 | } | 66 | } | ||
| 67 | 67 | ||||
| @@ -110,6 +110,7 @@ type TabPage struct { | |||||
| 110 | var xTabPageGLibType func() types.GType | 110 | var xTabPageGLibType func() types.GType | ||
| 111 | 111 | ||||
| 112 | func TabPageGLibType() types.GType { | 112 | func TabPageGLibType() types.GType { | ||
| 113 | + | core.LazyRegister(&xTabPageGLibType, "ADW", "adw_tab_page_get_type", false) | |||
| 113 | return xTabPageGLibType() | 114 | return xTabPageGLibType() | ||
| 114 | } | 115 | } | ||
| 115 | 116 | ||||
| @@ -123,6 +124,7 @@ var xTabPageGetChild func(uintptr) uintptr | |||||
| 123 | 124 | ||||
| 124 | // Gets the child of @self. | 125 | // Gets the child of @self. | ||
| 125 | func (x *TabPage) GetChild() *gtk.Widget { | 126 | func (x *TabPage) GetChild() *gtk.Widget { | ||
| 127 | + | core.LazyRegister(&xTabPageGetChild, "ADW", "adw_tab_page_get_child", false) | |||
| 126 | var cls *gtk.Widget | 128 | var cls *gtk.Widget | ||
| 127 | 129 | ||||
| 128 | cret := xTabPageGetChild(x.GoPointer()) | 130 | cret := xTabPageGetChild(x.GoPointer()) | ||
| @@ -140,6 +142,7 @@ var xTabPageGetIcon func(uintptr) uintptr | |||||
| 140 | 142 | ||||
| 141 | // Gets the icon of @self. | 143 | // Gets the icon of @self. | ||
| 142 | func (x *TabPage) GetIcon() *gio.IconBase { | 144 | func (x *TabPage) GetIcon() *gio.IconBase { | ||
| 145 | + | core.LazyRegister(&xTabPageGetIcon, "ADW", "adw_tab_page_get_icon", false) | |||
| 143 | var cls *gio.IconBase | 146 | var cls *gio.IconBase | ||
| 144 | 147 | ||||
| 145 | cret := xTabPageGetIcon(x.GoPointer()) | 148 | cret := xTabPageGetIcon(x.GoPointer()) | ||
| @@ -157,6 +160,8 @@ var xTabPageGetIndicatorActivatable func(uintptr) bool | |||||
| 157 | 160 | ||||
| 158 | // Gets whether the indicator of @self is activatable. | 161 | // Gets whether the indicator of @self is activatable. | ||
| 159 | func (x *TabPage) GetIndicatorActivatable() bool { | 162 | func (x *TabPage) GetIndicatorActivatable() bool { | ||
| 163 | + | core.LazyRegister(&xTabPageGetIndicatorActivatable, "ADW", "adw_tab_page_get_indicator_activatable", false) | |||
| 164 | + | ||||
| 160 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | 165 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | ||
| 161 | return cret | 166 | return cret | ||
| 162 | } | 167 | } | ||
| @@ -165,6 +170,7 @@ var xTabPageGetIndicatorIcon func(uintptr) uintptr | |||||
| 165 | 170 | ||||
| 166 | // Gets the indicator icon of @self. | 171 | // Gets the indicator icon of @self. | ||
| 167 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | 172 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | ||
| 173 | + | core.LazyRegister(&xTabPageGetIndicatorIcon, "ADW", "adw_tab_page_get_indicator_icon", false) | |||
| 168 | var cls *gio.IconBase | 174 | var cls *gio.IconBase | ||
| 169 | 175 | ||||
| 170 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | 176 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | ||
| @@ -182,6 +188,8 @@ var xTabPageGetIndicatorTooltip func(uintptr) string | |||||
| 182 | 188 | ||||
| 183 | // Gets the tooltip of the indicator icon of @self. | 189 | // Gets the tooltip of the indicator icon of @self. | ||
| 184 | func (x *TabPage) GetIndicatorTooltip() string { | 190 | func (x *TabPage) GetIndicatorTooltip() string { | ||
| 191 | + | core.LazyRegister(&xTabPageGetIndicatorTooltip, "ADW", "adw_tab_page_get_indicator_tooltip", false) | |||
| 192 | + | ||||
| 185 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | 193 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | ||
| 186 | return cret | 194 | return cret | ||
| 187 | } | 195 | } | ||
| @@ -190,6 +198,8 @@ var xTabPageGetKeyword func(uintptr) string | |||||
| 190 | 198 | ||||
| 191 | // Gets the search keyword of @self. | 199 | // Gets the search keyword of @self. | ||
| 192 | func (x *TabPage) GetKeyword() string { | 200 | func (x *TabPage) GetKeyword() string { | ||
| 201 | + | core.LazyRegister(&xTabPageGetKeyword, "ADW", "adw_tab_page_get_keyword", false) | |||
| 202 | + | ||||
| 193 | cret := xTabPageGetKeyword(x.GoPointer()) | 203 | cret := xTabPageGetKeyword(x.GoPointer()) | ||
| 194 | return cret | 204 | return cret | ||
| 195 | } | 205 | } | ||
| @@ -198,6 +208,8 @@ var xTabPageGetLiveThumbnail func(uintptr) bool | |||||
| 198 | 208 | ||||
| 199 | // Gets whether to live thumbnail is enabled @self. | 209 | // Gets whether to live thumbnail is enabled @self. | ||
| 200 | func (x *TabPage) GetLiveThumbnail() bool { | 210 | func (x *TabPage) GetLiveThumbnail() bool { | ||
| 211 | + | core.LazyRegister(&xTabPageGetLiveThumbnail, "ADW", "adw_tab_page_get_live_thumbnail", false) | |||
| 212 | + | ||||
| 201 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | 213 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | ||
| 202 | return cret | 214 | return cret | ||
| 203 | } | 215 | } | ||
| @@ -206,6 +218,8 @@ var xTabPageGetLoading func(uintptr) bool | |||||
| 206 | 218 | ||||
| 207 | // Gets whether @self is loading. | 219 | // Gets whether @self is loading. | ||
| 208 | func (x *TabPage) GetLoading() bool { | 220 | func (x *TabPage) GetLoading() bool { | ||
| 221 | + | core.LazyRegister(&xTabPageGetLoading, "ADW", "adw_tab_page_get_loading", false) | |||
| 222 | + | ||||
| 209 | cret := xTabPageGetLoading(x.GoPointer()) | 223 | cret := xTabPageGetLoading(x.GoPointer()) | ||
| 210 | return cret | 224 | return cret | ||
| 211 | } | 225 | } | ||
| @@ -214,6 +228,8 @@ var xTabPageGetNeedsAttention func(uintptr) bool | |||||
| 214 | 228 | ||||
| 215 | // Gets whether @self needs attention. | 229 | // Gets whether @self needs attention. | ||
| 216 | func (x *TabPage) GetNeedsAttention() bool { | 230 | func (x *TabPage) GetNeedsAttention() bool { | ||
| 231 | + | core.LazyRegister(&xTabPageGetNeedsAttention, "ADW", "adw_tab_page_get_needs_attention", false) | |||
| 232 | + | ||||
| 217 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | 233 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | ||
| 218 | return cret | 234 | return cret | ||
| 219 | } | 235 | } | ||
| @@ -224,6 +240,7 @@ var xTabPageGetParent func(uintptr) uintptr | |||||
| 224 | // | 240 | // | ||
| 225 | // See [method@TabView.add_page] and [method@TabView.close_page]. | 241 | // See [method@TabView.add_page] and [method@TabView.close_page]. | ||
| 226 | func (x *TabPage) GetParent() *TabPage { | 242 | func (x *TabPage) GetParent() *TabPage { | ||
| 243 | + | core.LazyRegister(&xTabPageGetParent, "ADW", "adw_tab_page_get_parent", false) | |||
| 227 | var cls *TabPage | 244 | var cls *TabPage | ||
| 228 | 245 | ||||
| 229 | cret := xTabPageGetParent(x.GoPointer()) | 246 | cret := xTabPageGetParent(x.GoPointer()) | ||
| @@ -243,6 +260,8 @@ var xTabPageGetPinned func(uintptr) bool | |||||
| 243 | // | 260 | // | ||
| 244 | // See [method@TabView.set_page_pinned]. | 261 | // See [method@TabView.set_page_pinned]. | ||
| 245 | func (x *TabPage) GetPinned() bool { | 262 | func (x *TabPage) GetPinned() bool { | ||
| 263 | + | core.LazyRegister(&xTabPageGetPinned, "ADW", "adw_tab_page_get_pinned", false) | |||
| 264 | + | ||||
| 246 | cret := xTabPageGetPinned(x.GoPointer()) | 265 | cret := xTabPageGetPinned(x.GoPointer()) | ||
| 247 | return cret | 266 | return cret | ||
| 248 | } | 267 | } | ||
| @@ -251,6 +270,8 @@ var xTabPageGetSelected func(uintptr) bool | |||||
| 251 | 270 | ||||
| 252 | // Gets whether @self is selected. | 271 | // Gets whether @self is selected. | ||
| 253 | func (x *TabPage) GetSelected() bool { | 272 | func (x *TabPage) GetSelected() bool { | ||
| 273 | + | core.LazyRegister(&xTabPageGetSelected, "ADW", "adw_tab_page_get_selected", false) | |||
| 274 | + | ||||
| 254 | cret := xTabPageGetSelected(x.GoPointer()) | 275 | cret := xTabPageGetSelected(x.GoPointer()) | ||
| 255 | return cret | 276 | return cret | ||
| 256 | } | 277 | } | ||
| @@ -259,6 +280,8 @@ var xTabPageGetThumbnailXalign func(uintptr) float32 | |||||
| 259 | 280 | ||||
| 260 | // Gets the horizontal alignment of the thumbnail for @self. | 281 | // Gets the horizontal alignment of the thumbnail for @self. | ||
| 261 | func (x *TabPage) GetThumbnailXalign() float32 { | 282 | func (x *TabPage) GetThumbnailXalign() float32 { | ||
| 283 | + | core.LazyRegister(&xTabPageGetThumbnailXalign, "ADW", "adw_tab_page_get_thumbnail_xalign", false) | |||
| 284 | + | ||||
| 262 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | 285 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | ||
| 263 | return cret | 286 | return cret | ||
| 264 | } | 287 | } | ||
| @@ -267,6 +290,8 @@ var xTabPageGetThumbnailYalign func(uintptr) float32 | |||||
| 267 | 290 | ||||
| 268 | // Gets the vertical alignment of the thumbnail for @self. | 291 | // Gets the vertical alignment of the thumbnail for @self. | ||
| 269 | func (x *TabPage) GetThumbnailYalign() float32 { | 292 | func (x *TabPage) GetThumbnailYalign() float32 { | ||
| 293 | + | core.LazyRegister(&xTabPageGetThumbnailYalign, "ADW", "adw_tab_page_get_thumbnail_yalign", false) | |||
| 294 | + | ||||
| 270 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | 295 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | ||
| 271 | return cret | 296 | return cret | ||
| 272 | } | 297 | } | ||
| @@ -275,6 +300,8 @@ var xTabPageGetTitle func(uintptr) string | |||||
| 275 | 300 | ||||
| 276 | // Gets the title of @self. | 301 | // Gets the title of @self. | ||
| 277 | func (x *TabPage) GetTitle() string { | 302 | func (x *TabPage) GetTitle() string { | ||
| 303 | + | core.LazyRegister(&xTabPageGetTitle, "ADW", "adw_tab_page_get_title", false) | |||
| 304 | + | ||||
| 278 | cret := xTabPageGetTitle(x.GoPointer()) | 305 | cret := xTabPageGetTitle(x.GoPointer()) | ||
| 279 | return cret | 306 | return cret | ||
| 280 | } | 307 | } | ||
| @@ -283,6 +310,8 @@ var xTabPageGetTooltip func(uintptr) string | |||||
| 283 | 310 | ||||
| 284 | // Gets the tooltip of @self. | 311 | // Gets the tooltip of @self. | ||
| 285 | func (x *TabPage) GetTooltip() string { | 312 | func (x *TabPage) GetTooltip() string { | ||
| 313 | + | core.LazyRegister(&xTabPageGetTooltip, "ADW", "adw_tab_page_get_tooltip", false) | |||
| 314 | + | ||||
| 286 | cret := xTabPageGetTooltip(x.GoPointer()) | 315 | cret := xTabPageGetTooltip(x.GoPointer()) | ||
| 287 | return cret | 316 | return cret | ||
| 288 | } | 317 | } | ||
| @@ -298,6 +327,8 @@ var xTabPageInvalidateThumbnail func(uintptr) | |||||
| 298 | // | 327 | // | ||
| 299 | // See also [method@TabView.invalidate_thumbnails]. | 328 | // See also [method@TabView.invalidate_thumbnails]. | ||
| 300 | func (x *TabPage) InvalidateThumbnail() { | 329 | func (x *TabPage) InvalidateThumbnail() { | ||
| 330 | + | core.LazyRegister(&xTabPageInvalidateThumbnail, "ADW", "adw_tab_page_invalidate_thumbnail", false) | |||
| 331 | + | ||||
| 301 | xTabPageInvalidateThumbnail(x.GoPointer()) | 332 | xTabPageInvalidateThumbnail(x.GoPointer()) | ||
| 302 | } | 333 | } | ||
| 303 | 334 | ||||
| @@ -311,6 +342,8 @@ var xTabPageSetIcon func(uintptr, uintptr) | |||||
| 311 | // `AdwTabBar` also won't show the icon if the page is pinned and | 342 | // `AdwTabBar` also won't show the icon if the page is pinned and | ||
| 312 | // [propertyTabPage:indicator-icon] is set. | 343 | // [propertyTabPage:indicator-icon] is set. | ||
| 313 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | 344 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | ||
| 345 | + | core.LazyRegister(&xTabPageSetIcon, "ADW", "adw_tab_page_set_icon", false) | |||
| 346 | + | ||||
| 314 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | 347 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | ||
| 315 | } | 348 | } | ||
| 316 | 349 | ||||
| @@ -323,6 +356,8 @@ var xTabPageSetIndicatorActivatable func(uintptr, bool) | |||||
| 323 | // | 356 | // | ||
| 324 | // If [property@TabPage:indicator-icon] is not set, does nothing. | 357 | // If [property@TabPage:indicator-icon] is not set, does nothing. | ||
| 325 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | 358 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | ||
| 359 | + | core.LazyRegister(&xTabPageSetIndicatorActivatable, "ADW", "adw_tab_page_set_indicator_activatable", false) | |||
| 360 | + | ||||
| 326 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | 361 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | ||
| 327 | } | 362 | } | ||
| 328 | 363 | ||||
| @@ -346,6 +381,8 @@ var xTabPageSetIndicatorIcon func(uintptr, uintptr) | |||||
| 346 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | 381 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | ||
| 347 | // indicator icon can act as a button. | 382 | // indicator icon can act as a button. | ||
| 348 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | 383 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | ||
| 384 | + | core.LazyRegister(&xTabPageSetIndicatorIcon, "ADW", "adw_tab_page_set_indicator_icon", false) | |||
| 385 | + | ||||
| 349 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | 386 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | ||
| 350 | } | 387 | } | ||
| 351 | 388 | ||||
| @@ -357,6 +394,8 @@ var xTabPageSetIndicatorTooltip func(uintptr, string) | |||||
| 357 | // | 394 | // | ||
| 358 | // See [property@TabPage:indicator-icon]. | 395 | // See [property@TabPage:indicator-icon]. | ||
| 359 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | 396 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | ||
| 397 | + | core.LazyRegister(&xTabPageSetIndicatorTooltip, "ADW", "adw_tab_page_set_indicator_tooltip", false) | |||
| 398 | + | ||||
| 360 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | 399 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | ||
| 361 | } | 400 | } | ||
| 362 | 401 | ||||
| @@ -369,6 +408,8 @@ var xTabPageSetKeyword func(uintptr, string) | |||||
| 369 | // | 408 | // | ||
| 370 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | 409 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | ||
| 371 | func (x *TabPage) SetKeyword(KeywordVar string) { | 410 | func (x *TabPage) SetKeyword(KeywordVar string) { | ||
| 411 | + | core.LazyRegister(&xTabPageSetKeyword, "ADW", "adw_tab_page_set_keyword", false) | |||
| 412 | + | ||||
| 372 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | 413 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | ||
| 373 | } | 414 | } | ||
| 374 | 415 | ||||
| @@ -384,6 +425,8 @@ var xTabPageSetLiveThumbnail func(uintptr, bool) | |||||
| 384 | // [method@TabPage.invalidate_thumbnail] or | 425 | // [method@TabPage.invalidate_thumbnail] or | ||
| 385 | // [method@TabView.invalidate_thumbnails] is called. | 426 | // [method@TabView.invalidate_thumbnails] is called. | ||
| 386 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | 427 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | ||
| 428 | + | core.LazyRegister(&xTabPageSetLiveThumbnail, "ADW", "adw_tab_page_set_live_thumbnail", false) | |||
| 429 | + | ||||
| 387 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | 430 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | ||
| 388 | } | 431 | } | ||
| 389 | 432 | ||||
| @@ -397,6 +440,8 @@ var xTabPageSetLoading func(uintptr, bool) | |||||
| 397 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | 440 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | ||
| 398 | // status will not be visible with `AdwTabBar`. | 441 | // status will not be visible with `AdwTabBar`. | ||
| 399 | func (x *TabPage) SetLoading(LoadingVar bool) { | 442 | func (x *TabPage) SetLoading(LoadingVar bool) { | ||
| 443 | + | core.LazyRegister(&xTabPageSetLoading, "ADW", "adw_tab_page_set_loading", false) | |||
| 444 | + | ||||
| 400 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | 445 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | ||
| 401 | } | 446 | } | ||
| 402 | 447 | ||||
| @@ -414,6 +459,8 @@ var xTabPageSetNeedsAttention func(uintptr, bool) | |||||
| 414 | // [class@TabButton] will display a dot if any of the pages that aren't | 459 | // [class@TabButton] will display a dot if any of the pages that aren't | ||
| 415 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | 460 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | ||
| 416 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | 461 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | ||
| 462 | + | core.LazyRegister(&xTabPageSetNeedsAttention, "ADW", "adw_tab_page_set_needs_attention", false) | |||
| 463 | + | ||||
| 417 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | 464 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | ||
| 418 | } | 465 | } | ||
| 419 | 466 | ||||
| @@ -430,6 +477,8 @@ var xTabPageSetThumbnailXalign func(uintptr, float32) | |||||
| 430 | // | 477 | // | ||
| 431 | // The default horizontal alignment is 0. | 478 | // The default horizontal alignment is 0. | ||
| 432 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | 479 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | ||
| 480 | + | core.LazyRegister(&xTabPageSetThumbnailXalign, "ADW", "adw_tab_page_set_thumbnail_xalign", false) | |||
| 481 | + | ||||
| 433 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | 482 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | ||
| 434 | } | 483 | } | ||
| 435 | 484 | ||||
| @@ -446,6 +495,8 @@ var xTabPageSetThumbnailYalign func(uintptr, float32) | |||||
| 446 | // | 495 | // | ||
| 447 | // The default vertical alignment is 0. | 496 | // The default vertical alignment is 0. | ||
| 448 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | 497 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | ||
| 498 | + | core.LazyRegister(&xTabPageSetThumbnailYalign, "ADW", "adw_tab_page_set_thumbnail_yalign", false) | |||
| 499 | + | ||||
| 449 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | 500 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | ||
| 450 | } | 501 | } | ||
| 451 | 502 | ||||
| @@ -460,6 +511,8 @@ var xTabPageSetTitle func(uintptr, string) | |||||
| 460 | // | 511 | // | ||
| 461 | // Sets the title of @self. | 512 | // Sets the title of @self. | ||
| 462 | func (x *TabPage) SetTitle(TitleVar string) { | 513 | func (x *TabPage) SetTitle(TitleVar string) { | ||
| 514 | + | core.LazyRegister(&xTabPageSetTitle, "ADW", "adw_tab_page_set_title", false) | |||
| 515 | + | ||||
| 463 | xTabPageSetTitle(x.GoPointer(), TitleVar) | 516 | xTabPageSetTitle(x.GoPointer(), TitleVar) | ||
| 464 | } | 517 | } | ||
| 465 | 518 | ||||
| @@ -472,6 +525,8 @@ var xTabPageSetTooltip func(uintptr, string) | |||||
| 472 | // If not set, [class@TabBar] and [class@TabOverview] will use | 525 | // If not set, [class@TabBar] and [class@TabOverview] will use | ||
| 473 | // [property@TabPage:title] as a tooltip instead. | 526 | // [property@TabPage:title] as a tooltip instead. | ||
| 474 | func (x *TabPage) SetTooltip(TooltipVar string) { | 527 | func (x *TabPage) SetTooltip(TooltipVar string) { | ||
| 528 | + | core.LazyRegister(&xTabPageSetTooltip, "ADW", "adw_tab_page_set_tooltip", false) | |||
| 529 | + | ||||
| 475 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | 530 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | ||
| 476 | } | 531 | } | ||
| 477 | 532 | ||||
| @@ -1111,6 +1166,7 @@ type TabView struct { | |||||
| 1111 | var xTabViewGLibType func() types.GType | 1166 | var xTabViewGLibType func() types.GType | ||
| 1112 | 1167 | ||||
| 1113 | func TabViewGLibType() types.GType { | 1168 | func TabViewGLibType() types.GType { | ||
| 1169 | + | core.LazyRegister(&xTabViewGLibType, "ADW", "adw_tab_view_get_type", false) | |||
| 1114 | return xTabViewGLibType() | 1170 | return xTabViewGLibType() | ||
| 1115 | } | 1171 | } | ||
| 1116 | 1172 | ||||
| @@ -1124,6 +1180,7 @@ var xNewTabView func() uintptr | |||||
| 1124 | 1180 | ||||
| 1125 | // Creates a new `AdwTabView`. | 1181 | // Creates a new `AdwTabView`. | ||
| 1126 | func NewTabView() *TabView { | 1182 | func NewTabView() *TabView { | ||
| 1183 | + | core.LazyRegister(&xNewTabView, "ADW", "adw_tab_view_new", false) | |||
| 1127 | var cls *TabView | 1184 | var cls *TabView | ||
| 1128 | 1185 | ||||
| 1129 | cret := xNewTabView() | 1186 | cret := xNewTabView() | ||
| @@ -1147,6 +1204,7 @@ var xTabViewAddPage func(uintptr, uintptr, uintptr) uintptr | |||||
| 1147 | // | 1204 | // | ||
| 1148 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | 1205 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | ||
| 1149 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | 1206 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | ||
| 1207 | + | core.LazyRegister(&xTabViewAddPage, "ADW", "adw_tab_view_add_page", false) | |||
| 1150 | var cls *TabPage | 1208 | var cls *TabPage | ||
| 1151 | 1209 | ||||
| 1152 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | 1210 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | ||
| @@ -1166,6 +1224,8 @@ var xTabViewAddShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1166 | // | 1224 | // | ||
| 1167 | // See [property@TabView:shortcuts] for details. | 1225 | // See [property@TabView:shortcuts] for details. | ||
| 1168 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | 1226 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1227 | + | core.LazyRegister(&xTabViewAddShortcuts, "ADW", "adw_tab_view_add_shortcuts", false) | |||
| 1228 | + | ||||
| 1169 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | 1229 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1170 | } | 1230 | } | ||
| 1171 | 1231 | ||||
| @@ -1173,6 +1233,7 @@ var xTabViewAppend func(uintptr, uintptr) uintptr | |||||
| 1173 | 1233 | ||||
| 1174 | // Inserts @child as the last non-pinned page. | 1234 | // Inserts @child as the last non-pinned page. | ||
| 1175 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | 1235 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | ||
| 1236 | + | core.LazyRegister(&xTabViewAppend, "ADW", "adw_tab_view_append", false) | |||
| 1176 | var cls *TabPage | 1237 | var cls *TabPage | ||
| 1177 | 1238 | ||||
| 1178 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | 1239 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1190,6 +1251,7 @@ var xTabViewAppendPinned func(uintptr, uintptr) uintptr | |||||
| 1190 | 1251 | ||||
| 1191 | // Inserts @child as the last pinned page. | 1252 | // Inserts @child as the last pinned page. | ||
| 1192 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | 1253 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | ||
| 1254 | + | core.LazyRegister(&xTabViewAppendPinned, "ADW", "adw_tab_view_append_pinned", false) | |||
| 1193 | var cls *TabPage | 1255 | var cls *TabPage | ||
| 1194 | 1256 | ||||
| 1195 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | 1257 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1207,6 +1269,8 @@ var xTabViewCloseOtherPages func(uintptr, uintptr) | |||||
| 1207 | 1269 | ||||
| 1208 | // Requests to close all pages other than @page. | 1270 | // Requests to close all pages other than @page. | ||
| 1209 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | 1271 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | ||
| 1272 | + | core.LazyRegister(&xTabViewCloseOtherPages, "ADW", "adw_tab_view_close_other_pages", false) | |||
| 1273 | + | ||||
| 1210 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | 1274 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | ||
| 1211 | } | 1275 | } | ||
| 1212 | 1276 | ||||
| @@ -1235,6 +1299,8 @@ var xTabViewClosePage func(uintptr, uintptr) | |||||
| 1235 | // (possibly indirect) of the parent. If both the previous page and the parent | 1299 | // (possibly indirect) of the parent. If both the previous page and the parent | ||
| 1236 | // are pinned, the parent will be selected instead. | 1300 | // are pinned, the parent will be selected instead. | ||
| 1237 | func (x *TabView) ClosePage(PageVar *TabPage) { | 1301 | func (x *TabView) ClosePage(PageVar *TabPage) { | ||
| 1302 | + | core.LazyRegister(&xTabViewClosePage, "ADW", "adw_tab_view_close_page", false) | |||
| 1303 | + | ||||
| 1238 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | 1304 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | ||
| 1239 | } | 1305 | } | ||
| 1240 | 1306 | ||||
| @@ -1249,6 +1315,8 @@ var xTabViewClosePageFinish func(uintptr, uintptr, bool) | |||||
| 1249 | // This function should not be called unless a custom handler for | 1315 | // This function should not be called unless a custom handler for | ||
| 1250 | // [signal@TabView::close-page] is used. | 1316 | // [signal@TabView::close-page] is used. | ||
| 1251 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | 1317 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | ||
| 1318 | + | core.LazyRegister(&xTabViewClosePageFinish, "ADW", "adw_tab_view_close_page_finish", false) | |||
| 1319 | + | ||||
| 1252 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | 1320 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | ||
| 1253 | } | 1321 | } | ||
| 1254 | 1322 | ||||
| @@ -1256,6 +1324,8 @@ var xTabViewClosePagesAfter func(uintptr, uintptr) | |||||
| 1256 | 1324 | ||||
| 1257 | // Requests to close all pages after @page. | 1325 | // Requests to close all pages after @page. | ||
| 1258 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | 1326 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | ||
| 1327 | + | core.LazyRegister(&xTabViewClosePagesAfter, "ADW", "adw_tab_view_close_pages_after", false) | |||
| 1328 | + | ||||
| 1259 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | 1329 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | ||
| 1260 | } | 1330 | } | ||
| 1261 | 1331 | ||||
| @@ -1263,6 +1333,8 @@ var xTabViewClosePagesBefore func(uintptr, uintptr) | |||||
| 1263 | 1333 | ||||
| 1264 | // Requests to close all pages before @page. | 1334 | // Requests to close all pages before @page. | ||
| 1265 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | 1335 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | ||
| 1336 | + | core.LazyRegister(&xTabViewClosePagesBefore, "ADW", "adw_tab_view_close_pages_before", false) | |||
| 1337 | + | ||||
| 1266 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | 1338 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | ||
| 1267 | } | 1339 | } | ||
| 1268 | 1340 | ||||
| @@ -1270,6 +1342,7 @@ var xTabViewGetDefaultIcon func(uintptr) uintptr | |||||
| 1270 | 1342 | ||||
| 1271 | // Gets the default icon of @self. | 1343 | // Gets the default icon of @self. | ||
| 1272 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | 1344 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | ||
| 1345 | + | core.LazyRegister(&xTabViewGetDefaultIcon, "ADW", "adw_tab_view_get_default_icon", false) | |||
| 1273 | var cls *gio.IconBase | 1346 | var cls *gio.IconBase | ||
| 1274 | 1347 | ||||
| 1275 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | 1348 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | ||
| @@ -1293,6 +1366,8 @@ var xTabViewGetIsTransferringPage func(uintptr) bool | |||||
| 1293 | // During the transfer, children cannot receive pointer input and a tab can | 1366 | // During the transfer, children cannot receive pointer input and a tab can | ||
| 1294 | // be safely dropped on the tab view. | 1367 | // be safely dropped on the tab view. | ||
| 1295 | func (x *TabView) GetIsTransferringPage() bool { | 1368 | func (x *TabView) GetIsTransferringPage() bool { | ||
| 1369 | + | core.LazyRegister(&xTabViewGetIsTransferringPage, "ADW", "adw_tab_view_get_is_transferring_page", false) | |||
| 1370 | + | ||||
| 1296 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | 1371 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | ||
| 1297 | return cret | 1372 | return cret | ||
| 1298 | } | 1373 | } | ||
| @@ -1301,6 +1376,7 @@ var xTabViewGetMenuModel func(uintptr) uintptr | |||||
| 1301 | 1376 | ||||
| 1302 | // Gets the tab context menu model for @self. | 1377 | // Gets the tab context menu model for @self. | ||
| 1303 | func (x *TabView) GetMenuModel() *gio.MenuModel { | 1378 | func (x *TabView) GetMenuModel() *gio.MenuModel { | ||
| 1379 | + | core.LazyRegister(&xTabViewGetMenuModel, "ADW", "adw_tab_view_get_menu_model", false) | |||
| 1304 | var cls *gio.MenuModel | 1380 | var cls *gio.MenuModel | ||
| 1305 | 1381 | ||||
| 1306 | cret := xTabViewGetMenuModel(x.GoPointer()) | 1382 | cret := xTabViewGetMenuModel(x.GoPointer()) | ||
| @@ -1318,6 +1394,8 @@ var xTabViewGetNPages func(uintptr) int | |||||
| 1318 | 1394 | ||||
| 1319 | // Gets the number of pages in @self. | 1395 | // Gets the number of pages in @self. | ||
| 1320 | func (x *TabView) GetNPages() int { | 1396 | func (x *TabView) GetNPages() int { | ||
| 1397 | + | core.LazyRegister(&xTabViewGetNPages, "ADW", "adw_tab_view_get_n_pages", false) | |||
| 1398 | + | ||||
| 1321 | cret := xTabViewGetNPages(x.GoPointer()) | 1399 | cret := xTabViewGetNPages(x.GoPointer()) | ||
| 1322 | return cret | 1400 | return cret | ||
| 1323 | } | 1401 | } | ||
| @@ -1328,6 +1406,8 @@ var xTabViewGetNPinnedPages func(uintptr) int | |||||
| 1328 | // | 1406 | // | ||
| 1329 | // See [method@TabView.set_page_pinned]. | 1407 | // See [method@TabView.set_page_pinned]. | ||
| 1330 | func (x *TabView) GetNPinnedPages() int { | 1408 | func (x *TabView) GetNPinnedPages() int { | ||
| 1409 | + | core.LazyRegister(&xTabViewGetNPinnedPages, "ADW", "adw_tab_view_get_n_pinned_pages", false) | |||
| 1410 | + | ||||
| 1331 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | 1411 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | ||
| 1332 | return cret | 1412 | return cret | ||
| 1333 | } | 1413 | } | ||
| @@ -1336,6 +1416,7 @@ var xTabViewGetNthPage func(uintptr, int) uintptr | |||||
| 1336 | 1416 | ||||
| 1337 | // Gets the [class@TabPage] representing the child at @position. | 1417 | // Gets the [class@TabPage] representing the child at @position. | ||
| 1338 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | 1418 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | ||
| 1419 | + | core.LazyRegister(&xTabViewGetNthPage, "ADW", "adw_tab_view_get_nth_page", false) | |||
| 1339 | var cls *TabPage | 1420 | var cls *TabPage | ||
| 1340 | 1421 | ||||
| 1341 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | 1422 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | ||
| @@ -1353,6 +1434,7 @@ var xTabViewGetPage func(uintptr, uintptr) uintptr | |||||
| 1353 | 1434 | ||||
| 1354 | // Gets the [class@TabPage] object representing @child. | 1435 | // Gets the [class@TabPage] object representing @child. | ||
| 1355 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | 1436 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | ||
| 1437 | + | core.LazyRegister(&xTabViewGetPage, "ADW", "adw_tab_view_get_page", false) | |||
| 1356 | var cls *TabPage | 1438 | var cls *TabPage | ||
| 1357 | 1439 | ||||
| 1358 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | 1440 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1370,6 +1452,8 @@ var xTabViewGetPagePosition func(uintptr, uintptr) int | |||||
| 1370 | 1452 | ||||
| 1371 | // Finds the position of @page in @self, starting from 0. | 1453 | // Finds the position of @page in @self, starting from 0. | ||
| 1372 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | 1454 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | ||
| 1455 | + | core.LazyRegister(&xTabViewGetPagePosition, "ADW", "adw_tab_view_get_page_position", false) | |||
| 1456 | + | ||||
| 1373 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | 1457 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | ||
| 1374 | return cret | 1458 | return cret | ||
| 1375 | } | 1459 | } | ||
| @@ -1386,6 +1470,7 @@ var xTabViewGetPages func(uintptr) uintptr | |||||
| 1386 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | 1470 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | ||
| 1387 | // change the selected page. | 1471 | // change the selected page. | ||
| 1388 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | 1472 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | ||
| 1473 | + | core.LazyRegister(&xTabViewGetPages, "ADW", "adw_tab_view_get_pages", false) | |||
| 1389 | var cls *gtk.SelectionModelBase | 1474 | var cls *gtk.SelectionModelBase | ||
| 1390 | 1475 | ||||
| 1391 | cret := xTabViewGetPages(x.GoPointer()) | 1476 | cret := xTabViewGetPages(x.GoPointer()) | ||
| @@ -1402,6 +1487,7 @@ var xTabViewGetSelectedPage func(uintptr) uintptr | |||||
| 1402 | 1487 | ||||
| 1403 | // Gets the currently selected page in @self. | 1488 | // Gets the currently selected page in @self. | ||
| 1404 | func (x *TabView) GetSelectedPage() *TabPage { | 1489 | func (x *TabView) GetSelectedPage() *TabPage { | ||
| 1490 | + | core.LazyRegister(&xTabViewGetSelectedPage, "ADW", "adw_tab_view_get_selected_page", false) | |||
| 1405 | var cls *TabPage | 1491 | var cls *TabPage | ||
| 1406 | 1492 | ||||
| 1407 | cret := xTabViewGetSelectedPage(x.GoPointer()) | 1493 | cret := xTabViewGetSelectedPage(x.GoPointer()) | ||
| @@ -1419,6 +1505,8 @@ var xTabViewGetShortcuts func(uintptr) TabViewShortcuts | |||||
| 1419 | 1505 | ||||
| 1420 | // Gets the enabled shortcuts for @self. | 1506 | // Gets the enabled shortcuts for @self. | ||
| 1421 | func (x *TabView) GetShortcuts() TabViewShortcuts { | 1507 | func (x *TabView) GetShortcuts() TabViewShortcuts { | ||
| 1508 | + | core.LazyRegister(&xTabViewGetShortcuts, "ADW", "adw_tab_view_get_shortcuts", false) | |||
| 1509 | + | ||||
| 1422 | cret := xTabViewGetShortcuts(x.GoPointer()) | 1510 | cret := xTabViewGetShortcuts(x.GoPointer()) | ||
| 1423 | return cret | 1511 | return cret | ||
| 1424 | } | 1512 | } | ||
| @@ -1430,6 +1518,7 @@ var xTabViewInsert func(uintptr, uintptr, int) uintptr | |||||
| 1430 | // It's an error to try to insert a page before a pinned page, in that case | 1518 | // It's an error to try to insert a page before a pinned page, in that case | ||
| 1431 | // [method@TabView.insert_pinned] should be used instead. | 1519 | // [method@TabView.insert_pinned] should be used instead. | ||
| 1432 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | 1520 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | ||
| 1521 | + | core.LazyRegister(&xTabViewInsert, "ADW", "adw_tab_view_insert", false) | |||
| 1433 | var cls *TabPage | 1522 | var cls *TabPage | ||
| 1434 | 1523 | ||||
| 1435 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 1524 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| @@ -1450,6 +1539,7 @@ var xTabViewInsertPinned func(uintptr, uintptr, int) uintptr | |||||
| 1450 | // It's an error to try to insert a pinned page after a non-pinned page, in | 1539 | // It's an error to try to insert a pinned page after a non-pinned page, in | ||
| 1451 | // that case [method@TabView.insert] should be used instead. | 1540 | // that case [method@TabView.insert] should be used instead. | ||
| 1452 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | 1541 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | ||
| 1542 | + | core.LazyRegister(&xTabViewInsertPinned, "ADW", "adw_tab_view_insert_pinned", false) | |||
| 1453 | var cls *TabPage | 1543 | var cls *TabPage | ||
| 1454 | 1544 | ||||
| 1455 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 1545 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| @@ -1470,6 +1560,8 @@ var xTabViewInvalidateThumbnails func(uintptr) | |||||
| 1470 | // This is a convenience method, equivalent to calling | 1560 | // This is a convenience method, equivalent to calling | ||
| 1471 | // [method@TabPage.invalidate_thumbnail] on each page. | 1561 | // [method@TabPage.invalidate_thumbnail] on each page. | ||
| 1472 | func (x *TabView) InvalidateThumbnails() { | 1562 | func (x *TabView) InvalidateThumbnails() { | ||
| 1563 | + | core.LazyRegister(&xTabViewInvalidateThumbnails, "ADW", "adw_tab_view_invalidate_thumbnails", false) | |||
| 1564 | + | ||||
| 1473 | xTabViewInvalidateThumbnails(x.GoPointer()) | 1565 | xTabViewInvalidateThumbnails(x.GoPointer()) | ||
| 1474 | } | 1566 | } | ||
| 1475 | 1567 | ||||
| @@ -1477,6 +1569,7 @@ var xTabViewPrepend func(uintptr, uintptr) uintptr | |||||
| 1477 | 1569 | ||||
| 1478 | // Inserts @child as the first non-pinned page. | 1570 | // Inserts @child as the first non-pinned page. | ||
| 1479 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | 1571 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | ||
| 1572 | + | core.LazyRegister(&xTabViewPrepend, "ADW", "adw_tab_view_prepend", false) | |||
| 1480 | var cls *TabPage | 1573 | var cls *TabPage | ||
| 1481 | 1574 | ||||
| 1482 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | 1575 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1494,6 +1587,7 @@ var xTabViewPrependPinned func(uintptr, uintptr) uintptr | |||||
| 1494 | 1587 | ||||
| 1495 | // Inserts @child as the first pinned page. | 1588 | // Inserts @child as the first pinned page. | ||
| 1496 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | 1589 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | ||
| 1590 | + | core.LazyRegister(&xTabViewPrependPinned, "ADW", "adw_tab_view_prepend_pinned", false) | |||
| 1497 | var cls *TabPage | 1591 | var cls *TabPage | ||
| 1498 | 1592 | ||||
| 1499 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | 1593 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1513,6 +1607,8 @@ var xTabViewRemoveShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1513 | // | 1607 | // | ||
| 1514 | // See [property@TabView:shortcuts] for details. | 1608 | // See [property@TabView:shortcuts] for details. | ||
| 1515 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | 1609 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1610 | + | core.LazyRegister(&xTabViewRemoveShortcuts, "ADW", "adw_tab_view_remove_shortcuts", false) | |||
| 1611 | + | ||||
| 1516 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | 1612 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1517 | } | 1613 | } | ||
| 1518 | 1614 | ||||
| @@ -1520,6 +1616,8 @@ var xTabViewReorderBackward func(uintptr, uintptr) bool | |||||
| 1520 | 1616 | ||||
| 1521 | // Reorders @page to before its previous page if possible. | 1617 | // Reorders @page to before its previous page if possible. | ||
| 1522 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | 1618 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | ||
| 1619 | + | core.LazyRegister(&xTabViewReorderBackward, "ADW", "adw_tab_view_reorder_backward", false) | |||
| 1620 | + | ||||
| 1523 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | 1621 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | ||
| 1524 | return cret | 1622 | return cret | ||
| 1525 | } | 1623 | } | ||
| @@ -1528,6 +1626,8 @@ var xTabViewReorderFirst func(uintptr, uintptr) bool | |||||
| 1528 | 1626 | ||||
| 1529 | // Reorders @page to the first possible position. | 1627 | // Reorders @page to the first possible position. | ||
| 1530 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | 1628 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | ||
| 1629 | + | core.LazyRegister(&xTabViewReorderFirst, "ADW", "adw_tab_view_reorder_first", false) | |||
| 1630 | + | ||||
| 1531 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | 1631 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | ||
| 1532 | return cret | 1632 | return cret | ||
| 1533 | } | 1633 | } | ||
| @@ -1536,6 +1636,8 @@ var xTabViewReorderForward func(uintptr, uintptr) bool | |||||
| 1536 | 1636 | ||||
| 1537 | // Reorders @page to after its next page if possible. | 1637 | // Reorders @page to after its next page if possible. | ||
| 1538 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | 1638 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | ||
| 1639 | + | core.LazyRegister(&xTabViewReorderForward, "ADW", "adw_tab_view_reorder_forward", false) | |||
| 1640 | + | ||||
| 1539 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | 1641 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | ||
| 1540 | return cret | 1642 | return cret | ||
| 1541 | } | 1643 | } | ||
| @@ -1544,6 +1646,8 @@ var xTabViewReorderLast func(uintptr, uintptr) bool | |||||
| 1544 | 1646 | ||||
| 1545 | // Reorders @page to the last possible position. | 1647 | // Reorders @page to the last possible position. | ||
| 1546 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | 1648 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | ||
| 1649 | + | core.LazyRegister(&xTabViewReorderLast, "ADW", "adw_tab_view_reorder_last", false) | |||
| 1650 | + | ||||
| 1547 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | 1651 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | ||
| 1548 | return cret | 1652 | return cret | ||
| 1549 | } | 1653 | } | ||
| @@ -1555,6 +1659,8 @@ var xTabViewReorderPage func(uintptr, uintptr, int) bool | |||||
| 1555 | // It's a programmer error to try to reorder a pinned page after a non-pinned | 1659 | // It's a programmer error to try to reorder a pinned page after a non-pinned | ||
| 1556 | // one, or a non-pinned page before a pinned one. | 1660 | // one, or a non-pinned page before a pinned one. | ||
| 1557 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | 1661 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | ||
| 1662 | + | core.LazyRegister(&xTabViewReorderPage, "ADW", "adw_tab_view_reorder_page", false) | |||
| 1663 | + | ||||
| 1558 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | 1664 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | ||
| 1559 | return cret | 1665 | return cret | ||
| 1560 | } | 1666 | } | ||
| @@ -1565,6 +1671,8 @@ var xTabViewSelectNextPage func(uintptr) bool | |||||
| 1565 | // | 1671 | // | ||
| 1566 | // If the last page was already selected, this function does nothing. | 1672 | // If the last page was already selected, this function does nothing. | ||
| 1567 | func (x *TabView) SelectNextPage() bool { | 1673 | func (x *TabView) SelectNextPage() bool { | ||
| 1674 | + | core.LazyRegister(&xTabViewSelectNextPage, "ADW", "adw_tab_view_select_next_page", false) | |||
| 1675 | + | ||||
| 1568 | cret := xTabViewSelectNextPage(x.GoPointer()) | 1676 | cret := xTabViewSelectNextPage(x.GoPointer()) | ||
| 1569 | return cret | 1677 | return cret | ||
| 1570 | } | 1678 | } | ||
| @@ -1575,6 +1683,8 @@ var xTabViewSelectPreviousPage func(uintptr) bool | |||||
| 1575 | // | 1683 | // | ||
| 1576 | // If the first page was already selected, this function does nothing. | 1684 | // If the first page was already selected, this function does nothing. | ||
| 1577 | func (x *TabView) SelectPreviousPage() bool { | 1685 | func (x *TabView) SelectPreviousPage() bool { | ||
| 1686 | + | core.LazyRegister(&xTabViewSelectPreviousPage, "ADW", "adw_tab_view_select_previous_page", false) | |||
| 1687 | + | ||||
| 1578 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | 1688 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | ||
| 1579 | return cret | 1689 | return cret | ||
| 1580 | } | 1690 | } | ||
| @@ -1594,6 +1704,8 @@ var xTabViewSetDefaultIcon func(uintptr, uintptr) | |||||
| 1594 | // | 1704 | // | ||
| 1595 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | 1705 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | ||
| 1596 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | 1706 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | ||
| 1707 | + | core.LazyRegister(&xTabViewSetDefaultIcon, "ADW", "adw_tab_view_set_default_icon", false) | |||
| 1708 | + | ||||
| 1597 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | 1709 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | ||
| 1598 | } | 1710 | } | ||
| 1599 | 1711 | ||||
| @@ -1605,6 +1717,8 @@ var xTabViewSetMenuModel func(uintptr, uintptr) | |||||
| 1605 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | 1717 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | ||
| 1606 | // the menu actions for the particular tab. | 1718 | // the menu actions for the particular tab. | ||
| 1607 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | 1719 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | ||
| 1720 | + | core.LazyRegister(&xTabViewSetMenuModel, "ADW", "adw_tab_view_set_menu_model", false) | |||
| 1721 | + | ||||
| 1608 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | 1722 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | ||
| 1609 | } | 1723 | } | ||
| 1610 | 1724 | ||||
| @@ -1640,6 +1754,8 @@ var xTabViewSetPagePinned func(uintptr, uintptr, bool) | |||||
| 1640 | // | 1754 | // | ||
| 1641 | // Changes the value of the [property@TabPage:pinned] property. | 1755 | // Changes the value of the [property@TabPage:pinned] property. | ||
| 1642 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | 1756 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | ||
| 1757 | + | core.LazyRegister(&xTabViewSetPagePinned, "ADW", "adw_tab_view_set_page_pinned", false) | |||
| 1758 | + | ||||
| 1643 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | 1759 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | ||
| 1644 | } | 1760 | } | ||
| 1645 | 1761 | ||||
| @@ -1647,6 +1763,8 @@ var xTabViewSetSelectedPage func(uintptr, uintptr) | |||||
| 1647 | 1763 | ||||
| 1648 | // Sets the currently selected page in @self. | 1764 | // Sets the currently selected page in @self. | ||
| 1649 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | 1765 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | ||
| 1766 | + | core.LazyRegister(&xTabViewSetSelectedPage, "ADW", "adw_tab_view_set_selected_page", false) | |||
| 1767 | + | ||||
| 1650 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | 1768 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | ||
| 1651 | } | 1769 | } | ||
| 1652 | 1770 | ||||
| @@ -1660,6 +1778,8 @@ var xTabViewSetShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1660 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | 1778 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | ||
| 1661 | // a convenient way to manage individual shortcuts. | 1779 | // a convenient way to manage individual shortcuts. | ||
| 1662 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | 1780 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1781 | + | core.LazyRegister(&xTabViewSetShortcuts, "ADW", "adw_tab_view_set_shortcuts", false) | |||
| 1782 | + | ||||
| 1663 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | 1783 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1664 | } | 1784 | } | ||
| 1665 | 1785 | ||||
| @@ -1672,6 +1792,8 @@ var xTabViewTransferPage func(uintptr, uintptr, uintptr, int) | |||||
| 1672 | // It's a programmer error to try to insert a pinned page after a non-pinned | 1792 | // It's a programmer error to try to insert a pinned page after a non-pinned | ||
| 1673 | // one, or a non-pinned page before a pinned one. | 1793 | // one, or a non-pinned page before a pinned one. | ||
| 1674 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | 1794 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | ||
| 1795 | + | core.LazyRegister(&xTabViewTransferPage, "ADW", "adw_tab_view_transfer_page", false) | |||
| 1796 | + | ||||
| 1675 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | 1797 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | ||
| 1676 | } | 1798 | } | ||
| 1677 | 1799 | ||||
| @@ -2202,90 +2324,4 @@ func (x *TabView) GetBuildableId() string { | |||||
| 2202 | func init() { | 2324 | func init() { | ||
| 2203 | core.SetPackageName("ADW", "libadwaita-1") | 2325 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 2204 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 2326 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 2205 | - | var libs []uintptr | |||
| 2206 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 2207 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2208 | - | if err != nil { | |||
| 2209 | - | panic(err) | |||
| 2210 | - | } | |||
| 2211 | - | libs = append(libs, lib) | |||
| 2212 | - | } | |||
| 2213 | - | ||||
| 2214 | - | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, libs, "adw_tab_view_shortcuts_get_type") | |||
| 2215 | - | ||||
| 2216 | - | core.PuregoSafeRegister(&xTabPageGLibType, libs, "adw_tab_page_get_type") | |||
| 2217 | - | ||||
| 2218 | - | core.PuregoSafeRegister(&xTabPageGetChild, libs, "adw_tab_page_get_child") | |||
| 2219 | - | core.PuregoSafeRegister(&xTabPageGetIcon, libs, "adw_tab_page_get_icon") | |||
| 2220 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, libs, "adw_tab_page_get_indicator_activatable") | |||
| 2221 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorIcon, libs, "adw_tab_page_get_indicator_icon") | |||
| 2222 | - | core.PuregoSafeRegister(&xTabPageGetIndicatorTooltip, libs, "adw_tab_page_get_indicator_tooltip") | |||
| 2223 | - | core.PuregoSafeRegister(&xTabPageGetKeyword, libs, "adw_tab_page_get_keyword") | |||
| 2224 | - | core.PuregoSafeRegister(&xTabPageGetLiveThumbnail, libs, "adw_tab_page_get_live_thumbnail") | |||
| 2225 | - | core.PuregoSafeRegister(&xTabPageGetLoading, libs, "adw_tab_page_get_loading") | |||
| 2226 | - | core.PuregoSafeRegister(&xTabPageGetNeedsAttention, libs, "adw_tab_page_get_needs_attention") | |||
| 2227 | - | core.PuregoSafeRegister(&xTabPageGetParent, libs, "adw_tab_page_get_parent") | |||
| 2228 | - | core.PuregoSafeRegister(&xTabPageGetPinned, libs, "adw_tab_page_get_pinned") | |||
| 2229 | - | core.PuregoSafeRegister(&xTabPageGetSelected, libs, "adw_tab_page_get_selected") | |||
| 2230 | - | core.PuregoSafeRegister(&xTabPageGetThumbnailXalign, libs, "adw_tab_page_get_thumbnail_xalign") | |||
| 2231 | - | core.PuregoSafeRegister(&xTabPageGetThumbnailYalign, libs, "adw_tab_page_get_thumbnail_yalign") | |||
| 2232 | - | core.PuregoSafeRegister(&xTabPageGetTitle, libs, "adw_tab_page_get_title") | |||
| 2233 | - | core.PuregoSafeRegister(&xTabPageGetTooltip, libs, "adw_tab_page_get_tooltip") | |||
| 2234 | - | core.PuregoSafeRegister(&xTabPageInvalidateThumbnail, libs, "adw_tab_page_invalidate_thumbnail") | |||
| 2235 | - | core.PuregoSafeRegister(&xTabPageSetIcon, libs, "adw_tab_page_set_icon") | |||
| 2236 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorActivatable, libs, "adw_tab_page_set_indicator_activatable") | |||
| 2237 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorIcon, libs, "adw_tab_page_set_indicator_icon") | |||
| 2238 | - | core.PuregoSafeRegister(&xTabPageSetIndicatorTooltip, libs, "adw_tab_page_set_indicator_tooltip") | |||
| 2239 | - | core.PuregoSafeRegister(&xTabPageSetKeyword, libs, "adw_tab_page_set_keyword") | |||
| 2240 | - | core.PuregoSafeRegister(&xTabPageSetLiveThumbnail, libs, "adw_tab_page_set_live_thumbnail") | |||
| 2241 | - | core.PuregoSafeRegister(&xTabPageSetLoading, libs, "adw_tab_page_set_loading") | |||
| 2242 | - | core.PuregoSafeRegister(&xTabPageSetNeedsAttention, libs, "adw_tab_page_set_needs_attention") | |||
| 2243 | - | core.PuregoSafeRegister(&xTabPageSetThumbnailXalign, libs, "adw_tab_page_set_thumbnail_xalign") | |||
| 2244 | - | core.PuregoSafeRegister(&xTabPageSetThumbnailYalign, libs, "adw_tab_page_set_thumbnail_yalign") | |||
| 2245 | - | core.PuregoSafeRegister(&xTabPageSetTitle, libs, "adw_tab_page_set_title") | |||
| 2246 | - | core.PuregoSafeRegister(&xTabPageSetTooltip, libs, "adw_tab_page_set_tooltip") | |||
| 2247 | - | ||||
| 2248 | - | core.PuregoSafeRegister(&xTabViewGLibType, libs, "adw_tab_view_get_type") | |||
| 2249 | - | ||||
| 2250 | - | core.PuregoSafeRegister(&xNewTabView, libs, "adw_tab_view_new") | |||
| 2251 | - | ||||
| 2252 | - | core.PuregoSafeRegister(&xTabViewAddPage, libs, "adw_tab_view_add_page") | |||
| 2253 | - | core.PuregoSafeRegister(&xTabViewAddShortcuts, libs, "adw_tab_view_add_shortcuts") | |||
| 2254 | - | core.PuregoSafeRegister(&xTabViewAppend, libs, "adw_tab_view_append") | |||
| 2255 | - | core.PuregoSafeRegister(&xTabViewAppendPinned, libs, "adw_tab_view_append_pinned") | |||
| 2256 | - | core.PuregoSafeRegister(&xTabViewCloseOtherPages, libs, "adw_tab_view_close_other_pages") | |||
| 2257 | - | core.PuregoSafeRegister(&xTabViewClosePage, libs, "adw_tab_view_close_page") | |||
| 2258 | - | core.PuregoSafeRegister(&xTabViewClosePageFinish, libs, "adw_tab_view_close_page_finish") | |||
| 2259 | - | core.PuregoSafeRegister(&xTabViewClosePagesAfter, libs, "adw_tab_view_close_pages_after") | |||
| 2260 | - | core.PuregoSafeRegister(&xTabViewClosePagesBefore, libs, "adw_tab_view_close_pages_before") | |||
| 2261 | - | core.PuregoSafeRegister(&xTabViewGetDefaultIcon, libs, "adw_tab_view_get_default_icon") | |||
| 2262 | - | core.PuregoSafeRegister(&xTabViewGetIsTransferringPage, libs, "adw_tab_view_get_is_transferring_page") | |||
| 2263 | - | core.PuregoSafeRegister(&xTabViewGetMenuModel, libs, "adw_tab_view_get_menu_model") | |||
| 2264 | - | core.PuregoSafeRegister(&xTabViewGetNPages, libs, "adw_tab_view_get_n_pages") | |||
| 2265 | - | core.PuregoSafeRegister(&xTabViewGetNPinnedPages, libs, "adw_tab_view_get_n_pinned_pages") | |||
| 2266 | - | core.PuregoSafeRegister(&xTabViewGetNthPage, libs, "adw_tab_view_get_nth_page") | |||
| 2267 | - | core.PuregoSafeRegister(&xTabViewGetPage, libs, "adw_tab_view_get_page") | |||
| 2268 | - | core.PuregoSafeRegister(&xTabViewGetPagePosition, libs, "adw_tab_view_get_page_position") | |||
| 2269 | - | core.PuregoSafeRegister(&xTabViewGetPages, libs, "adw_tab_view_get_pages") | |||
| 2270 | - | core.PuregoSafeRegister(&xTabViewGetSelectedPage, libs, "adw_tab_view_get_selected_page") | |||
| 2271 | - | core.PuregoSafeRegister(&xTabViewGetShortcuts, libs, "adw_tab_view_get_shortcuts") | |||
| 2272 | - | core.PuregoSafeRegister(&xTabViewInsert, libs, "adw_tab_view_insert") | |||
| 2273 | - | core.PuregoSafeRegister(&xTabViewInsertPinned, libs, "adw_tab_view_insert_pinned") | |||
| 2274 | - | core.PuregoSafeRegister(&xTabViewInvalidateThumbnails, libs, "adw_tab_view_invalidate_thumbnails") | |||
| 2275 | - | core.PuregoSafeRegister(&xTabViewPrepend, libs, "adw_tab_view_prepend") | |||
| 2276 | - | core.PuregoSafeRegister(&xTabViewPrependPinned, libs, "adw_tab_view_prepend_pinned") | |||
| 2277 | - | core.PuregoSafeRegister(&xTabViewRemoveShortcuts, libs, "adw_tab_view_remove_shortcuts") | |||
| 2278 | - | core.PuregoSafeRegister(&xTabViewReorderBackward, libs, "adw_tab_view_reorder_backward") | |||
| 2279 | - | core.PuregoSafeRegister(&xTabViewReorderFirst, libs, "adw_tab_view_reorder_first") | |||
| 2280 | - | core.PuregoSafeRegister(&xTabViewReorderForward, libs, "adw_tab_view_reorder_forward") | |||
| 2281 | - | core.PuregoSafeRegister(&xTabViewReorderLast, libs, "adw_tab_view_reorder_last") | |||
| 2282 | - | core.PuregoSafeRegister(&xTabViewReorderPage, libs, "adw_tab_view_reorder_page") | |||
| 2283 | - | core.PuregoSafeRegister(&xTabViewSelectNextPage, libs, "adw_tab_view_select_next_page") | |||
| 2284 | - | core.PuregoSafeRegister(&xTabViewSelectPreviousPage, libs, "adw_tab_view_select_previous_page") | |||
| 2285 | - | core.PuregoSafeRegister(&xTabViewSetDefaultIcon, libs, "adw_tab_view_set_default_icon") | |||
| 2286 | - | core.PuregoSafeRegister(&xTabViewSetMenuModel, libs, "adw_tab_view_set_menu_model") | |||
| 2287 | - | core.PuregoSafeRegister(&xTabViewSetPagePinned, libs, "adw_tab_view_set_page_pinned") | |||
| 2288 | - | core.PuregoSafeRegister(&xTabViewSetSelectedPage, libs, "adw_tab_view_set_selected_page") | |||
| 2289 | - | core.PuregoSafeRegister(&xTabViewSetShortcuts, libs, "adw_tab_view_set_shortcuts") | |||
| 2290 | - | core.PuregoSafeRegister(&xTabViewTransferPage, libs, "adw_tab_view_transfer_page") | |||
| 2291 | } | 2327 | } | ||