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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +132 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +63 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +62 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +242 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gversion.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/main.go +31 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +14 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +6 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +37 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/genums.go +24 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +45 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +116 -82
| @@ -435,6 +435,7 @@ var xObjectClassFindProperty func(uintptr, string) uintptr | |||
| 435 | 435 | ||
| 436 | 436 | // Looks up the #GParamSpec for a property of a class. | |
| 437 | 437 | func (x *ObjectClass) FindProperty(PropertyNameVar string) *ParamSpec { | |
| 438 | + | core.LazyRegister(&xObjectClassFindProperty, "GOBJECT", "g_object_class_find_property", false) | |
| 438 | 439 | var cls *ParamSpec | |
| 439 | 440 | ||
| 440 | 441 | cret := xObjectClassFindProperty(x.GoPointer(), PropertyNameVar) | |
| @@ -519,6 +520,8 @@ var xObjectClassInstallProperties func(uintptr, uint, uintptr) | |||
| 519 | 520 | // | |
| 520 | 521 | // ]| | |
| 521 | 522 | func (x *ObjectClass) InstallProperties(NPspecsVar uint, PspecsVar uintptr) { | |
| 523 | + | core.LazyRegister(&xObjectClassInstallProperties, "GOBJECT", "g_object_class_install_properties", false) | |
| 524 | + | ||
| 522 | 525 | xObjectClassInstallProperties(x.GoPointer(), NPspecsVar, PspecsVar) | |
| 523 | 526 | } | |
| 524 | 527 | ||
| @@ -535,6 +538,8 @@ var xObjectClassInstallProperty func(uintptr, uint, uintptr) | |||
| 535 | 538 | // by installing a property with the same name. This can be useful at times, | |
| 536 | 539 | // e.g. to change the range of allowed values or the default value. | |
| 537 | 540 | func (x *ObjectClass) InstallProperty(PropertyIdVar uint, PspecVar *ParamSpec) { | |
| 541 | + | core.LazyRegister(&xObjectClassInstallProperty, "GOBJECT", "g_object_class_install_property", false) | |
| 542 | + | ||
| 538 | 543 | xObjectClassInstallProperty(x.GoPointer(), PropertyIdVar, PspecVar.GoPointer()) | |
| 539 | 544 | } | |
| 540 | 545 | ||
| @@ -542,6 +547,8 @@ var xObjectClassListProperties func(uintptr, *uint) uintptr | |||
| 542 | 547 | ||
| 543 | 548 | // Get an array of #GParamSpec* for all properties of a class. | |
| 544 | 549 | func (x *ObjectClass) ListProperties(NPropertiesVar *uint) uintptr { | |
| 550 | + | core.LazyRegister(&xObjectClassListProperties, "GOBJECT", "g_object_class_list_properties", false) | |
| 551 | + | ||
| 545 | 552 | cret := xObjectClassListProperties(x.GoPointer(), NPropertiesVar) | |
| 546 | 553 | return cret | |
| 547 | 554 | } | |
| @@ -565,6 +572,8 @@ var xObjectClassOverrideProperty func(uintptr, uint, string) | |||
| 565 | 572 | // need to get the overridden property, you can call | |
| 566 | 573 | // g_param_spec_get_redirect_target(). | |
| 567 | 574 | func (x *ObjectClass) OverrideProperty(PropertyIdVar uint, NameVar string) { | |
| 575 | + | core.LazyRegister(&xObjectClassOverrideProperty, "GOBJECT", "g_object_class_override_property", false) | |
| 576 | + | ||
| 568 | 577 | xObjectClassOverrideProperty(x.GoPointer(), PropertyIdVar, NameVar) | |
| 569 | 578 | } | |
| 570 | 579 | ||
| @@ -888,6 +897,8 @@ var xWeakRefClear func(uintptr) | |||
| 888 | 897 | // You should only call this on a #GWeakRef that previously had | |
| 889 | 898 | // g_weak_ref_init() called on it. | |
| 890 | 899 | func (x *WeakRef) Clear() { | |
| 900 | + | core.LazyRegister(&xWeakRefClear, "GOBJECT", "g_weak_ref_clear", false) | |
| 901 | + | ||
| 891 | 902 | xWeakRefClear(x.GoPointer()) | |
| 892 | 903 | } | |
| 893 | 904 | ||
| @@ -903,6 +914,7 @@ var xWeakRefGet func(uintptr) uintptr | |||
| 903 | 914 | // The caller should release the resulting reference in the usual way, | |
| 904 | 915 | // by using g_object_unref(). | |
| 905 | 916 | func (x *WeakRef) Get() *Object { | |
| 917 | + | core.LazyRegister(&xWeakRefGet, "GOBJECT", "g_weak_ref_get", false) | |
| 906 | 918 | var cls *Object | |
| 907 | 919 | ||
| 908 | 920 | cret := xWeakRefGet(x.GoPointer()) | |
| @@ -927,6 +939,8 @@ var xWeakRefInit func(uintptr, uintptr) | |||
| 927 | 939 | // #GWeakRef in static storage because it will already be | |
| 928 | 940 | // properly initialised. Just use g_weak_ref_set() directly. | |
| 929 | 941 | func (x *WeakRef) Init(ObjectVar *Object) { | |
| 942 | + | core.LazyRegister(&xWeakRefInit, "GOBJECT", "g_weak_ref_init", false) | |
| 943 | + | ||
| 930 | 944 | xWeakRefInit(x.GoPointer(), ObjectVar.GoPointer()) | |
| 931 | 945 | } | |
| 932 | 946 | ||
| @@ -938,6 +952,8 @@ var xWeakRefSet func(uintptr, uintptr) | |||
| 938 | 952 | // You must own a strong reference on @object while calling this | |
| 939 | 953 | // function. | |
| 940 | 954 | func (x *WeakRef) Set(ObjectVar *Object) { | |
| 955 | + | core.LazyRegister(&xWeakRefSet, "GOBJECT", "g_weak_ref_set", false) | |
| 956 | + | ||
| 941 | 957 | xWeakRefSet(x.GoPointer(), ObjectVar.GoPointer()) | |
| 942 | 958 | } | |
| 943 | 959 | ||
| @@ -949,6 +965,8 @@ var xCclosureNewObject func(uintptr, uintptr) uintptr | |||
| 949 | 965 | // associated with a #GObject, and want the callback to no longer run | |
| 950 | 966 | // after the object is is freed. | |
| 951 | 967 | func CclosureNewObject(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | |
| 968 | + | core.LazyRegister(&xCclosureNewObject, "GOBJECT", "g_cclosure_new_object", false) | |
| 969 | + | ||
| 952 | 970 | cret := xCclosureNewObject(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | |
| 953 | 971 | if cret == 0 { | |
| 954 | 972 | return nil | |
| @@ -964,6 +982,8 @@ var xCclosureNewObjectSwap func(uintptr, uintptr) uintptr | |||
| 964 | 982 | // associated with a #GObject, and want the callback to no longer run | |
| 965 | 983 | // after the object is is freed. | |
| 966 | 984 | func CclosureNewObjectSwap(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | |
| 985 | + | core.LazyRegister(&xCclosureNewObjectSwap, "GOBJECT", "g_cclosure_new_object_swap", false) | |
| 986 | + | ||
| 967 | 987 | cret := xCclosureNewObjectSwap(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | |
| 968 | 988 | if cret == 0 { | |
| 969 | 989 | return nil | |
| @@ -984,6 +1004,8 @@ var xClearObject func(uintptr) | |||
| 984 | 1004 | // A macro is also included that allows this function to be used without | |
| 985 | 1005 | // pointer casts. | |
| 986 | 1006 | func ClearObject(ObjectPtrVar **Object) { | |
| 1007 | + | core.LazyRegister(&xClearObject, "GOBJECT", "g_clear_object", false) | |
| 1008 | + | ||
| 987 | 1009 | xClearObject(*ConvertPtr(ObjectPtrVar)) | |
| 988 | 1010 | } | |
| 989 | 1011 | ||
| @@ -1006,6 +1028,8 @@ var xSignalConnectObject func(*TypeInstance, string, uintptr, uintptr, ConnectFl | |||
| 1006 | 1028 | // Refer to the [signals documentation](signals.html) for more | |
| 1007 | 1029 | // details. | |
| 1008 | 1030 | func SignalConnectObject(InstanceVar *TypeInstance, DetailedSignalVar string, CHandlerVar *Callback, GobjectVar *Object, ConnectFlagsVar ConnectFlags) uint { | |
| 1031 | + | core.LazyRegister(&xSignalConnectObject, "GOBJECT", "g_signal_connect_object", false) | |
| 1032 | + | ||
| 1009 | 1033 | cret := xSignalConnectObject(InstanceVar, DetailedSignalVar, glib.NewCallback(CHandlerVar), GobjectVar.GoPointer(), ConnectFlagsVar) | |
| 1010 | 1034 | return cret | |
| 1011 | 1035 | } | |
| @@ -1021,6 +1045,7 @@ type InitiallyUnowned struct { | |||
| 1021 | 1045 | var xInitiallyUnownedGLibType func() types.GType | |
| 1022 | 1046 | ||
| 1023 | 1047 | func InitiallyUnownedGLibType() types.GType { | |
| 1048 | + | core.LazyRegister(&xInitiallyUnownedGLibType, "GOBJECT", "g_initially_unowned_get_type", false) | |
| 1024 | 1049 | return xInitiallyUnownedGLibType() | |
| 1025 | 1050 | } | |
| 1026 | 1051 | ||
| @@ -1070,6 +1095,7 @@ type Object struct { | |||
| 1070 | 1095 | var xObjectGLibType func() types.GType | |
| 1071 | 1096 | ||
| 1072 | 1097 | func ObjectGLibType() types.GType { | |
| 1098 | + | core.LazyRegister(&xObjectGLibType, "GOBJECT", "g_object_get_type", false) | |
| 1073 | 1099 | return xObjectGLibType() | |
| 1074 | 1100 | } | |
| 1075 | 1101 | ||
| @@ -1108,6 +1134,7 @@ var xNewObject func(types.GType, string, ...interface{}) uintptr | |||
| 1108 | 1134 | // should allocate it on the heap (aligned), or arrange for your #GObject to be | |
| 1109 | 1135 | // appropriately padded. | |
| 1110 | 1136 | func NewObject(ObjectTypeVar types.GType, FirstPropertyNameVar string, varArgs ...interface{}) *Object { | |
| 1137 | + | core.LazyRegister(&xNewObject, "GOBJECT", "g_object_new", false) | |
| 1111 | 1138 | var cls *Object | |
| 1112 | 1139 | ||
| 1113 | 1140 | cret := xNewObject(ObjectTypeVar, FirstPropertyNameVar, varArgs...) | |
| @@ -1127,6 +1154,7 @@ var xNewObjectValist func(types.GType, string, []interface{}) uintptr | |||
| 1127 | 1154 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 1128 | 1155 | // which are not explicitly specified are set to their default values. | |
| 1129 | 1156 | func NewObjectValist(ObjectTypeVar types.GType, FirstPropertyNameVar string, VarArgsVar []interface{}) *Object { | |
| 1157 | + | core.LazyRegister(&xNewObjectValist, "GOBJECT", "g_object_new_valist", false) | |
| 1130 | 1158 | var cls *Object | |
| 1131 | 1159 | ||
| 1132 | 1160 | cret := xNewObjectValist(ObjectTypeVar, FirstPropertyNameVar, VarArgsVar) | |
| @@ -1148,6 +1176,7 @@ var xNewObjectWithProperties func(types.GType, uint, []string, []Value) uintptr | |||
| 1148 | 1176 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 1149 | 1177 | // which are not explicitly specified are set to their default values. | |
| 1150 | 1178 | func NewObjectWithProperties(ObjectTypeVar types.GType, NPropertiesVar uint, NamesVar []string, ValuesVar []Value) *Object { | |
| 1179 | + | core.LazyRegister(&xNewObjectWithProperties, "GOBJECT", "g_object_new_with_properties", false) | |
| 1151 | 1180 | var cls *Object | |
| 1152 | 1181 | ||
| 1153 | 1182 | cret := xNewObjectWithProperties(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | |
| @@ -1167,6 +1196,7 @@ var xNewObjectv func(types.GType, uint, []Parameter) uintptr | |||
| 1167 | 1196 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 1168 | 1197 | // which are not explicitly specified are set to their default values. | |
| 1169 | 1198 | func NewObjectv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar []Parameter) *Object { | |
| 1199 | + | core.LazyRegister(&xNewObjectv, "GOBJECT", "g_object_newv", false) | |
| 1170 | 1200 | var cls *Object | |
| 1171 | 1201 | ||
| 1172 | 1202 | cret := xNewObjectv(ObjectTypeVar, NParametersVar, ParametersVar) | |
| @@ -1217,6 +1247,8 @@ var xObjectAddToggleRef func(uintptr, uintptr, uintptr) | |||
| 1217 | 1247 | // | |
| 1218 | 1248 | // A g_object_add_toggle_ref() must be released with g_object_remove_toggle_ref(). | |
| 1219 | 1249 | func (x *Object) AddToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | |
| 1250 | + | core.LazyRegister(&xObjectAddToggleRef, "GOBJECT", "g_object_add_toggle_ref", false) | |
| 1251 | + | ||
| 1220 | 1252 | xObjectAddToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | |
| 1221 | 1253 | } | |
| 1222 | 1254 | ||
| @@ -1232,6 +1264,8 @@ var xObjectAddWeakPointer func(uintptr, *uintptr) | |||
| 1232 | 1264 | // thread if the object's last g_object_unref() might happen in another | |
| 1233 | 1265 | // thread. Use #GWeakRef if thread-safety is required. | |
| 1234 | 1266 | func (x *Object) AddWeakPointer(WeakPointerLocationVar *uintptr) { | |
| 1267 | + | core.LazyRegister(&xObjectAddWeakPointer, "GOBJECT", "g_object_add_weak_pointer", false) | |
| 1268 | + | ||
| 1235 | 1269 | xObjectAddWeakPointer(x.GoPointer(), WeakPointerLocationVar) | |
| 1236 | 1270 | } | |
| 1237 | 1271 | ||
| @@ -1271,6 +1305,7 @@ var xObjectBindProperty func(uintptr, string, uintptr, string, BindingFlags) uin | |||
| 1271 | 1305 | // | |
| 1272 | 1306 | // A #GObject can have multiple bindings. | |
| 1273 | 1307 | func (x *Object) BindProperty(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags) *Binding { | |
| 1308 | + | core.LazyRegister(&xObjectBindProperty, "GOBJECT", "g_object_bind_property", false) | |
| 1274 | 1309 | var cls *Binding | |
| 1275 | 1310 | ||
| 1276 | 1311 | cret := xObjectBindProperty(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar) | |
| @@ -1312,6 +1347,7 @@ var xObjectBindPropertyFull func(uintptr, string, uintptr, string, BindingFlags, | |||
| 1312 | 1347 | // for each transformation function, please use | |
| 1313 | 1348 | // g_object_bind_property_with_closures() instead. | |
| 1314 | 1349 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | |
| 1350 | + | core.LazyRegister(&xObjectBindPropertyFull, "GOBJECT", "g_object_bind_property_full", false) | |
| 1315 | 1351 | var cls *Binding | |
| 1316 | 1352 | ||
| 1317 | 1353 | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| @@ -1335,6 +1371,7 @@ var xObjectBindPropertyWithClosures func(uintptr, string, uintptr, string, Bindi | |||
| 1335 | 1371 | // g_object_bind_property_full(), using #GClosures instead of | |
| 1336 | 1372 | // function pointers. | |
| 1337 | 1373 | func (x *Object) BindPropertyWithClosures(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *Closure, TransformFromVar *Closure) *Binding { | |
| 1374 | + | core.LazyRegister(&xObjectBindPropertyWithClosures, "GOBJECT", "g_object_bind_property_with_closures", false) | |
| 1338 | 1375 | var cls *Binding | |
| 1339 | 1376 | ||
| 1340 | 1377 | cret := xObjectBindPropertyWithClosures(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, TransformToVar, TransformFromVar) | |
| @@ -1378,6 +1415,7 @@ var xObjectConnect func(uintptr, string, ...interface{}) uintptr | |||
| 1378 | 1415 | // | |
| 1379 | 1416 | // ``` | |
| 1380 | 1417 | func (x *Object) Connect(SignalSpecVar string, varArgs ...interface{}) *Object { | |
| 1418 | + | core.LazyRegister(&xObjectConnect, "GOBJECT", "g_object_connect", false) | |
| 1381 | 1419 | var cls *Object | |
| 1382 | 1420 | ||
| 1383 | 1421 | cret := xObjectConnect(x.GoPointer(), SignalSpecVar, varArgs...) | |
| @@ -1400,6 +1438,8 @@ var xObjectDisconnect func(uintptr, string, ...interface{}) | |||
| 1400 | 1438 | // callback and data, or "any_signal::signal_name", which only | |
| 1401 | 1439 | // disconnects the signal named "signal_name". | |
| 1402 | 1440 | func (x *Object) Disconnect(SignalSpecVar string, varArgs ...interface{}) { | |
| 1441 | + | core.LazyRegister(&xObjectDisconnect, "GOBJECT", "g_object_disconnect", false) | |
| 1442 | + | ||
| 1403 | 1443 | xObjectDisconnect(x.GoPointer(), SignalSpecVar, varArgs...) | |
| 1404 | 1444 | } | |
| 1405 | 1445 | ||
| @@ -1420,6 +1460,8 @@ var xObjectDupData func(uintptr, string, uintptr, uintptr) uintptr | |||
| 1420 | 1460 | // threads are using object data on the same key on the same | |
| 1421 | 1461 | // object. | |
| 1422 | 1462 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | |
| 1463 | + | core.LazyRegister(&xObjectDupData, "GOBJECT", "g_object_dup_data", false) | |
| 1464 | + | ||
| 1423 | 1465 | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | |
| 1424 | 1466 | return cret | |
| 1425 | 1467 | } | |
| @@ -1441,6 +1483,8 @@ var xObjectDupQdata func(uintptr, glib.Quark, uintptr, uintptr) uintptr | |||
| 1441 | 1483 | // threads are using object data on the same key on the same | |
| 1442 | 1484 | // object. | |
| 1443 | 1485 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | |
| 1486 | + | core.LazyRegister(&xObjectDupQdata, "GOBJECT", "g_object_dup_qdata", false) | |
| 1487 | + | ||
| 1444 | 1488 | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | |
| 1445 | 1489 | return cret | |
| 1446 | 1490 | } | |
| @@ -1452,6 +1496,8 @@ var xObjectForceFloating func(uintptr) | |||
| 1452 | 1496 | // required: all #GInitiallyUnowneds are created with a floating reference | |
| 1453 | 1497 | // which usually just needs to be sunken by calling g_object_ref_sink(). | |
| 1454 | 1498 | func (x *Object) ForceFloating() { | |
| 1499 | + | core.LazyRegister(&xObjectForceFloating, "GOBJECT", "g_object_force_floating", false) | |
| 1500 | + | ||
| 1455 | 1501 | xObjectForceFloating(x.GoPointer()) | |
| 1456 | 1502 | } | |
| 1457 | 1503 | ||
| @@ -1467,6 +1513,8 @@ var xObjectFreezeNotify func(uintptr) | |||
| 1467 | 1513 | // This is necessary for accessors that modify multiple properties to prevent | |
| 1468 | 1514 | // premature notification while the object is still being modified. | |
| 1469 | 1515 | func (x *Object) FreezeNotify() { | |
| 1516 | + | core.LazyRegister(&xObjectFreezeNotify, "GOBJECT", "g_object_freeze_notify", false) | |
| 1517 | + | ||
| 1470 | 1518 | xObjectFreezeNotify(x.GoPointer()) | |
| 1471 | 1519 | } | |
| 1472 | 1520 | ||
| @@ -1501,6 +1549,8 @@ var xObjectGet func(uintptr, string, ...interface{}) | |||
| 1501 | 1549 | // | |
| 1502 | 1550 | // ]| | |
| 1503 | 1551 | func (x *Object) Get(FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 1552 | + | core.LazyRegister(&xObjectGet, "GOBJECT", "g_object_get", false) | |
| 1553 | + | ||
| 1504 | 1554 | xObjectGet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | |
| 1505 | 1555 | } | |
| 1506 | 1556 | ||
| @@ -1508,6 +1558,8 @@ var xObjectGetData func(uintptr, string) uintptr | |||
| 1508 | 1558 | ||
| 1509 | 1559 | // Gets a named field from the objects table of associations (see g_object_set_data()). | |
| 1510 | 1560 | func (x *Object) GetData(KeyVar string) uintptr { | |
| 1561 | + | core.LazyRegister(&xObjectGetData, "GOBJECT", "g_object_get_data", false) | |
| 1562 | + | ||
| 1511 | 1563 | cret := xObjectGetData(x.GoPointer(), KeyVar) | |
| 1512 | 1564 | return cret | |
| 1513 | 1565 | } | |
| @@ -1531,6 +1583,8 @@ var xObjectGetProperty func(uintptr, string, *Value) | |||
| 1531 | 1583 | // Note that g_object_get_property() is really intended for language | |
| 1532 | 1584 | // bindings, g_object_get() is much more convenient for C programming. | |
| 1533 | 1585 | func (x *Object) GetProperty(PropertyNameVar string, ValueVar *Value) { | |
| 1586 | + | core.LazyRegister(&xObjectGetProperty, "GOBJECT", "g_object_get_property", false) | |
| 1587 | + | ||
| 1534 | 1588 | xObjectGetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | |
| 1535 | 1589 | } | |
| 1536 | 1590 | ||
| @@ -1539,6 +1593,8 @@ var xObjectGetQdata func(uintptr, glib.Quark) uintptr | |||
| 1539 | 1593 | // This function gets back user data pointers stored via | |
| 1540 | 1594 | // g_object_set_qdata(). | |
| 1541 | 1595 | func (x *Object) GetQdata(QuarkVar glib.Quark) uintptr { | |
| 1596 | + | core.LazyRegister(&xObjectGetQdata, "GOBJECT", "g_object_get_qdata", false) | |
| 1597 | + | ||
| 1542 | 1598 | cret := xObjectGetQdata(x.GoPointer(), QuarkVar) | |
| 1543 | 1599 | return cret | |
| 1544 | 1600 | } | |
| @@ -1553,6 +1609,8 @@ var xObjectGetValist func(uintptr, string, []interface{}) | |||
| 1553 | 1609 | // | |
| 1554 | 1610 | // See g_object_get(). | |
| 1555 | 1611 | func (x *Object) GetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | |
| 1612 | + | core.LazyRegister(&xObjectGetValist, "GOBJECT", "g_object_get_valist", false) | |
| 1613 | + | ||
| 1556 | 1614 | xObjectGetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | |
| 1557 | 1615 | } | |
| 1558 | 1616 | ||
| @@ -1563,6 +1621,8 @@ var xObjectGetv func(uintptr, uint, []string, []Value) | |||
| 1563 | 1621 | // Warnings will be emitted and undefined behaviour may result if invalid | |
| 1564 | 1622 | // properties are passed in. | |
| 1565 | 1623 | func (x *Object) Getv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | |
| 1624 | + | core.LazyRegister(&xObjectGetv, "GOBJECT", "g_object_getv", false) | |
| 1625 | + | ||
| 1566 | 1626 | xObjectGetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | |
| 1567 | 1627 | } | |
| 1568 | 1628 | ||
| @@ -1570,6 +1630,8 @@ var xObjectIsFloating func(uintptr) bool | |||
| 1570 | 1630 | ||
| 1571 | 1631 | // Checks whether @object has a [floating](floating-refs.html) reference. | |
| 1572 | 1632 | func (x *Object) IsFloating() bool { | |
| 1633 | + | core.LazyRegister(&xObjectIsFloating, "GOBJECT", "g_object_is_floating", false) | |
| 1634 | + | ||
| 1573 | 1635 | cret := xObjectIsFloating(x.GoPointer()) | |
| 1574 | 1636 | return cret | |
| 1575 | 1637 | } | |
| @@ -1587,6 +1649,8 @@ var xObjectNotify func(uintptr, string) | |||
| 1587 | 1649 | // and will be emitted (in reverse order) when g_object_thaw_notify() is | |
| 1588 | 1650 | // called. | |
| 1589 | 1651 | func (x *Object) Notify(PropertyNameVar string) { | |
| 1652 | + | core.LazyRegister(&xObjectNotify, "GOBJECT", "g_object_notify", false) | |
| 1653 | + | ||
| 1590 | 1654 | xObjectNotify(x.GoPointer(), PropertyNameVar) | |
| 1591 | 1655 | } | |
| 1592 | 1656 | ||
| @@ -1634,6 +1698,8 @@ var xObjectNotifyByPspec func(uintptr, uintptr) | |||
| 1634 | 1698 | // | |
| 1635 | 1699 | // ]| | |
| 1636 | 1700 | func (x *Object) NotifyByPspec(PspecVar *ParamSpec) { | |
| 1701 | + | core.LazyRegister(&xObjectNotifyByPspec, "GOBJECT", "g_object_notify_by_pspec", false) | |
| 1702 | + | ||
| 1637 | 1703 | xObjectNotifyByPspec(x.GoPointer(), PspecVar.GoPointer()) | |
| 1638 | 1704 | } | |
| 1639 | 1705 | ||
| @@ -1646,6 +1712,7 @@ var xObjectRef func(uintptr) uintptr | |||
| 1646 | 1712 | // extension), so any casting the caller needs to do on the return type must be | |
| 1647 | 1713 | // explicit. | |
| 1648 | 1714 | func (x *Object) Ref() *Object { | |
| 1715 | + | core.LazyRegister(&xObjectRef, "GOBJECT", "g_object_ref", false) | |
| 1649 | 1716 | var cls *Object | |
| 1650 | 1717 | ||
| 1651 | 1718 | cret := xObjectRef(x.GoPointer()) | |
| @@ -1672,6 +1739,7 @@ var xObjectRefSink func(uintptr) uintptr | |||
| 1672 | 1739 | // Since GLib 2.56, the type of @object will be propagated to the return type | |
| 1673 | 1740 | // under the same conditions as for g_object_ref(). | |
| 1674 | 1741 | func (x *Object) RefSink() *Object { | |
| 1742 | + | core.LazyRegister(&xObjectRefSink, "GOBJECT", "g_object_ref_sink", false) | |
| 1675 | 1743 | var cls *Object | |
| 1676 | 1744 | ||
| 1677 | 1745 | cret := xObjectRefSink(x.GoPointer()) | |
| @@ -1695,6 +1763,8 @@ var xObjectRemoveToggleRef func(uintptr, uintptr, uintptr) | |||
| 1695 | 1763 | // might be a dangling pointer. If the object is destroyed on other threads, | |
| 1696 | 1764 | // you must take care of that yourself. | |
| 1697 | 1765 | func (x *Object) RemoveToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | |
| 1766 | + | core.LazyRegister(&xObjectRemoveToggleRef, "GOBJECT", "g_object_remove_toggle_ref", false) | |
| 1767 | + | ||
| 1698 | 1768 | xObjectRemoveToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | |
| 1699 | 1769 | } | |
| 1700 | 1770 | ||
| @@ -1704,6 +1774,8 @@ var xObjectRemoveWeakPointer func(uintptr, *uintptr) | |||
| 1704 | 1774 | // using g_object_add_weak_pointer(). The @weak_pointer_location has | |
| 1705 | 1775 | // to match the one used with g_object_add_weak_pointer(). | |
| 1706 | 1776 | func (x *Object) RemoveWeakPointer(WeakPointerLocationVar *uintptr) { | |
| 1777 | + | core.LazyRegister(&xObjectRemoveWeakPointer, "GOBJECT", "g_object_remove_weak_pointer", false) | |
| 1778 | + | ||
| 1707 | 1779 | xObjectRemoveWeakPointer(x.GoPointer(), WeakPointerLocationVar) | |
| 1708 | 1780 | } | |
| 1709 | 1781 | ||
| @@ -1726,6 +1798,8 @@ var xObjectReplaceData func(uintptr, string, uintptr, uintptr, uintptr, *glib.De | |||
| 1726 | 1798 | // See g_object_set_data() for guidance on using a small, bounded set of values | |
| 1727 | 1799 | // for @key. | |
| 1728 | 1800 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | |
| 1801 | + | core.LazyRegister(&xObjectReplaceData, "GOBJECT", "g_object_replace_data", false) | |
| 1802 | + | ||
| 1729 | 1803 | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | |
| 1730 | 1804 | return cret | |
| 1731 | 1805 | } | |
| @@ -1746,6 +1820,8 @@ var xObjectReplaceQdata func(uintptr, glib.Quark, uintptr, uintptr, uintptr, *gl | |||
| 1746 | 1820 | // or may not include using @old_destroy as sometimes replacement | |
| 1747 | 1821 | // should not destroy the object in the normal way. | |
| 1748 | 1822 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | |
| 1823 | + | core.LazyRegister(&xObjectReplaceQdata, "GOBJECT", "g_object_replace_qdata", false) | |
| 1824 | + | ||
| 1749 | 1825 | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | |
| 1750 | 1826 | return cret | |
| 1751 | 1827 | } | |
| @@ -1757,6 +1833,8 @@ var xObjectRunDispose func(uintptr) | |||
| 1757 | 1833 | // | |
| 1758 | 1834 | // This function should only be called from object system implementations. | |
| 1759 | 1835 | func (x *Object) RunDispose() { | |
| 1836 | + | core.LazyRegister(&xObjectRunDispose, "GOBJECT", "g_object_run_dispose", false) | |
| 1837 | + | ||
| 1760 | 1838 | xObjectRunDispose(x.GoPointer()) | |
| 1761 | 1839 | } | |
| 1762 | 1840 | ||
| @@ -1773,6 +1851,8 @@ var xObjectSet func(uintptr, string, ...interface{}) | |||
| 1773 | 1851 | // reverse order) after all properties have been set. See | |
| 1774 | 1852 | // g_object_freeze_notify(). | |
| 1775 | 1853 | func (x *Object) Set(FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 1854 | + | core.LazyRegister(&xObjectSet, "GOBJECT", "g_object_set", false) | |
| 1855 | + | ||
| 1776 | 1856 | xObjectSet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | |
| 1777 | 1857 | } | |
| 1778 | 1858 | ||
| @@ -1789,6 +1869,8 @@ var xObjectSetData func(uintptr, string, uintptr) | |||
| 1789 | 1869 | // finalized) — so it is recommended to only use a small, bounded set of values | |
| 1790 | 1870 | // for @key in your program, to avoid the #GQuark storage growing unbounded. | |
| 1791 | 1871 | func (x *Object) SetData(KeyVar string, DataVar uintptr) { | |
| 1872 | + | core.LazyRegister(&xObjectSetData, "GOBJECT", "g_object_set_data", false) | |
| 1873 | + | ||
| 1792 | 1874 | xObjectSetData(x.GoPointer(), KeyVar, DataVar) | |
| 1793 | 1875 | } | |
| 1794 | 1876 | ||
| @@ -1800,6 +1882,8 @@ var xObjectSetDataFull func(uintptr, string, uintptr, uintptr) | |||
| 1800 | 1882 | // | |
| 1801 | 1883 | // Note that the @destroy callback is not called if @data is %NULL. | |
| 1802 | 1884 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1885 | + | core.LazyRegister(&xObjectSetDataFull, "GOBJECT", "g_object_set_data_full", false) | |
| 1886 | + | ||
| 1803 | 1887 | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 1804 | 1888 | } | |
| 1805 | 1889 | ||
| @@ -1807,6 +1891,8 @@ var xObjectSetProperty func(uintptr, string, *Value) | |||
| 1807 | 1891 | ||
| 1808 | 1892 | // Sets a property on an object. | |
| 1809 | 1893 | func (x *Object) SetProperty(PropertyNameVar string, ValueVar *Value) { | |
| 1894 | + | core.LazyRegister(&xObjectSetProperty, "GOBJECT", "g_object_set_property", false) | |
| 1895 | + | ||
| 1810 | 1896 | xObjectSetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | |
| 1811 | 1897 | } | |
| 1812 | 1898 | ||
| @@ -1821,6 +1907,8 @@ var xObjectSetQdata func(uintptr, glib.Quark, uintptr) | |||
| 1821 | 1907 | // the old pointer set, using #NULL as pointer essentially | |
| 1822 | 1908 | // removes the data stored. | |
| 1823 | 1909 | func (x *Object) SetQdata(QuarkVar glib.Quark, DataVar uintptr) { | |
| 1910 | + | core.LazyRegister(&xObjectSetQdata, "GOBJECT", "g_object_set_qdata", false) | |
| 1911 | + | ||
| 1824 | 1912 | xObjectSetQdata(x.GoPointer(), QuarkVar, DataVar) | |
| 1825 | 1913 | } | |
| 1826 | 1914 | ||
| @@ -1832,6 +1920,8 @@ var xObjectSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||
| 1832 | 1920 | // the data is being overwritten by a call to g_object_set_qdata() | |
| 1833 | 1921 | // with the same @quark. | |
| 1834 | 1922 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1923 | + | core.LazyRegister(&xObjectSetQdataFull, "GOBJECT", "g_object_set_qdata_full", false) | |
| 1924 | + | ||
| 1835 | 1925 | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 1836 | 1926 | } | |
| 1837 | 1927 | ||
| @@ -1839,6 +1929,8 @@ var xObjectSetValist func(uintptr, string, []interface{}) | |||
| 1839 | 1929 | ||
| 1840 | 1930 | // Sets properties on an object. | |
| 1841 | 1931 | func (x *Object) SetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | |
| 1932 | + | core.LazyRegister(&xObjectSetValist, "GOBJECT", "g_object_set_valist", false) | |
| 1933 | + | ||
| 1842 | 1934 | xObjectSetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | |
| 1843 | 1935 | } | |
| 1844 | 1936 | ||
| @@ -1849,6 +1941,8 @@ var xObjectSetv func(uintptr, uint, []string, []Value) | |||
| 1849 | 1941 | // valid. Warnings will be emitted and undefined behaviour may result if invalid | |
| 1850 | 1942 | // properties are passed in. | |
| 1851 | 1943 | func (x *Object) Setv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | |
| 1944 | + | core.LazyRegister(&xObjectSetv, "GOBJECT", "g_object_setv", false) | |
| 1945 | + | ||
| 1852 | 1946 | xObjectSetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | |
| 1853 | 1947 | } | |
| 1854 | 1948 | ||
| @@ -1857,6 +1951,8 @@ var xObjectStealData func(uintptr, string) uintptr | |||
| 1857 | 1951 | // Remove a specified datum from the object's data associations, | |
| 1858 | 1952 | // without invoking the association's destroy handler. | |
| 1859 | 1953 | func (x *Object) StealData(KeyVar string) uintptr { | |
| 1954 | + | core.LazyRegister(&xObjectStealData, "GOBJECT", "g_object_steal_data", false) | |
| 1955 | + | ||
| 1860 | 1956 | cret := xObjectStealData(x.GoPointer(), KeyVar) | |
| 1861 | 1957 | return cret | |
| 1862 | 1958 | } | |
| @@ -1904,6 +2000,8 @@ var xObjectStealQdata func(uintptr, glib.Quark) uintptr | |||
| 1904 | 2000 | // and thus the partial string list would have been freed upon | |
| 1905 | 2001 | // g_object_set_qdata_full(). | |
| 1906 | 2002 | func (x *Object) StealQdata(QuarkVar glib.Quark) uintptr { | |
| 2003 | + | core.LazyRegister(&xObjectStealQdata, "GOBJECT", "g_object_steal_qdata", false) | |
| 2004 | + | ||
| 1907 | 2005 | cret := xObjectStealQdata(x.GoPointer(), QuarkVar) | |
| 1908 | 2006 | return cret | |
| 1909 | 2007 | } | |
| @@ -1946,6 +2044,7 @@ var xObjectTakeRef func(uintptr) uintptr | |||
| 1946 | 2044 | // additional reference on top of that one is added. It is best to avoid | |
| 1947 | 2045 | // this situation. | |
| 1948 | 2046 | func (x *Object) TakeRef() *Object { | |
| 2047 | + | core.LazyRegister(&xObjectTakeRef, "GOBJECT", "g_object_take_ref", false) | |
| 1949 | 2048 | var cls *Object | |
| 1950 | 2049 | ||
| 1951 | 2050 | cret := xObjectTakeRef(x.GoPointer()) | |
| @@ -1970,6 +2069,8 @@ var xObjectThawNotify func(uintptr) | |||
| 1970 | 2069 | // | |
| 1971 | 2070 | // It is an error to call this function when the freeze count is zero. | |
| 1972 | 2071 | func (x *Object) ThawNotify() { | |
| 2072 | + | core.LazyRegister(&xObjectThawNotify, "GOBJECT", "g_object_thaw_notify", false) | |
| 2073 | + | ||
| 1973 | 2074 | xObjectThawNotify(x.GoPointer()) | |
| 1974 | 2075 | } | |
| 1975 | 2076 | ||
| @@ -1983,6 +2084,8 @@ var xObjectUnref func(uintptr) | |||
| 1983 | 2084 | // pointer to %NULL rather than retain a dangling pointer to a potentially | |
| 1984 | 2085 | // invalid #GObject instance. Use g_clear_object() for this. | |
| 1985 | 2086 | func (x *Object) Unref() { | |
| 2087 | + | core.LazyRegister(&xObjectUnref, "GOBJECT", "g_object_unref", false) | |
| 2088 | + | ||
| 1986 | 2089 | xObjectUnref(x.GoPointer()) | |
| 1987 | 2090 | } | |
| 1988 | 2091 | ||
| @@ -1998,6 +2101,8 @@ var xObjectWatchClosure func(uintptr, *Closure) | |||
| 1998 | 2101 | // @closure. Usually, this function will be called on closures that | |
| 1999 | 2102 | // use this @object as closure data. | |
| 2000 | 2103 | func (x *Object) WatchClosure(ClosureVar *Closure) { | |
| 2104 | + | core.LazyRegister(&xObjectWatchClosure, "GOBJECT", "g_object_watch_closure", false) | |
| 2105 | + | ||
| 2001 | 2106 | xObjectWatchClosure(x.GoPointer(), ClosureVar) | |
| 2002 | 2107 | } | |
| 2003 | 2108 | ||
| @@ -2014,6 +2119,8 @@ var xObjectWeakRef func(uintptr, uintptr, uintptr) | |||
| 2014 | 2119 | // object's last g_object_unref() might happen in another thread. | |
| 2015 | 2120 | // Use #GWeakRef if thread-safety is required. | |
| 2016 | 2121 | func (x *Object) WeakRef(NotifyVar *WeakNotify, DataVar uintptr) { | |
| 2122 | + | core.LazyRegister(&xObjectWeakRef, "GOBJECT", "g_object_weak_ref", false) | |
| 2123 | + | ||
| 2017 | 2124 | xObjectWeakRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | |
| 2018 | 2125 | } | |
| 2019 | 2126 | ||
| @@ -2021,6 +2128,8 @@ var xObjectWeakUnref func(uintptr, uintptr, uintptr) | |||
| 2021 | 2128 | ||
| 2022 | 2129 | // Removes a weak reference callback to an object. | |
| 2023 | 2130 | func (x *Object) WeakUnref(NotifyVar *WeakNotify, DataVar uintptr) { | |
| 2131 | + | core.LazyRegister(&xObjectWeakUnref, "GOBJECT", "g_object_weak_unref", false) | |
| 2132 | + | ||
| 2024 | 2133 | xObjectWeakUnref(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | |
| 2025 | 2134 | } | |
| 2026 | 2135 | ||
| @@ -2087,6 +2196,8 @@ func (x *Object) ConnectNotify(cb *func(Object, uintptr)) uint { | |||
| 2087 | 2196 | var xObjectCompatControl func(uint, uintptr) uint | |
| 2088 | 2197 | ||
| 2089 | 2198 | func ObjectCompatControl(WhatVar uint, DataVar uintptr) uint { | |
| 2199 | + | core.LazyRegister(&xObjectCompatControl, "GOBJECT", "g_object_compat_control", false) | |
| 2200 | + | ||
| 2090 | 2201 | cret := xObjectCompatControl(WhatVar, DataVar) | |
| 2091 | 2202 | return cret | |
| 2092 | 2203 | } | |
| @@ -2099,6 +2210,7 @@ var xObjectInterfaceFindProperty func(*TypeInterface, string) uintptr | |||
| 2099 | 2210 | // if you know the interface has already been loaded, | |
| 2100 | 2211 | // g_type_default_interface_peek(). | |
| 2101 | 2212 | func ObjectInterfaceFindProperty(GIfaceVar *TypeInterface, PropertyNameVar string) *ParamSpec { | |
| 2213 | + | core.LazyRegister(&xObjectInterfaceFindProperty, "GOBJECT", "g_object_interface_find_property", false) | |
| 2102 | 2214 | var cls *ParamSpec | |
| 2103 | 2215 | ||
| 2104 | 2216 | cret := xObjectInterfaceFindProperty(GIfaceVar, PropertyNameVar) | |
| @@ -2131,6 +2243,8 @@ var xObjectInterfaceInstallProperty func(*TypeInterface, uintptr) | |||
| 2131 | 2243 | // | |
| 2132 | 2244 | // If @pspec is a floating reference, it will be consumed. | |
| 2133 | 2245 | func ObjectInterfaceInstallProperty(GIfaceVar *TypeInterface, PspecVar *ParamSpec) { | |
| 2246 | + | core.LazyRegister(&xObjectInterfaceInstallProperty, "GOBJECT", "g_object_interface_install_property", false) | |
| 2247 | + | ||
| 2134 | 2248 | xObjectInterfaceInstallProperty(GIfaceVar, PspecVar.GoPointer()) | |
| 2135 | 2249 | } | |
| 2136 | 2250 | ||
| @@ -2141,6 +2255,8 @@ var xObjectInterfaceListProperties func(*TypeInterface, *uint) uintptr | |||
| 2141 | 2255 | // g_type_default_interface_ref(), or, if you know the interface has | |
| 2142 | 2256 | // already been loaded, g_type_default_interface_peek(). | |
| 2143 | 2257 | func ObjectInterfaceListProperties(GIfaceVar *TypeInterface, NPropertiesPVar *uint) uintptr { | |
| 2258 | + | core.LazyRegister(&xObjectInterfaceListProperties, "GOBJECT", "g_object_interface_list_properties", false) | |
| 2259 | + | ||
| 2144 | 2260 | cret := xObjectInterfaceListProperties(GIfaceVar, NPropertiesPVar) | |
| 2145 | 2261 | return cret | |
| 2146 | 2262 | } | |
| @@ -2148,86 +2264,4 @@ func ObjectInterfaceListProperties(GIfaceVar *TypeInterface, NPropertiesPVar *ui | |||
| 2148 | 2264 | func init() { | |
| 2149 | 2265 | core.SetPackageName("GOBJECT", "gobject-2.0") | |
| 2150 | 2266 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | |
| 2151 | - | var libs []uintptr | |
| 2152 | - | for _, libPath := range core.GetPaths("GOBJECT") { | |
| 2153 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2154 | - | if err != nil { | |
| 2155 | - | panic(err) | |
| 2156 | - | } | |
| 2157 | - | libs = append(libs, lib) | |
| 2158 | - | } | |
| 2159 | - | ||
| 2160 | - | core.PuregoSafeRegister(&xCclosureNewObject, libs, "g_cclosure_new_object") | |
| 2161 | - | core.PuregoSafeRegister(&xCclosureNewObjectSwap, libs, "g_cclosure_new_object_swap") | |
| 2162 | - | core.PuregoSafeRegister(&xClearObject, libs, "g_clear_object") | |
| 2163 | - | core.PuregoSafeRegister(&xSignalConnectObject, libs, "g_signal_connect_object") | |
| 2164 | - | ||
| 2165 | - | core.PuregoSafeRegister(&xObjectClassFindProperty, libs, "g_object_class_find_property") | |
| 2166 | - | core.PuregoSafeRegister(&xObjectClassInstallProperties, libs, "g_object_class_install_properties") | |
| 2167 | - | core.PuregoSafeRegister(&xObjectClassInstallProperty, libs, "g_object_class_install_property") | |
| 2168 | - | core.PuregoSafeRegister(&xObjectClassListProperties, libs, "g_object_class_list_properties") | |
| 2169 | - | core.PuregoSafeRegister(&xObjectClassOverrideProperty, libs, "g_object_class_override_property") | |
| 2170 | - | ||
| 2171 | - | core.PuregoSafeRegister(&xWeakRefClear, libs, "g_weak_ref_clear") | |
| 2172 | - | core.PuregoSafeRegister(&xWeakRefGet, libs, "g_weak_ref_get") | |
| 2173 | - | core.PuregoSafeRegister(&xWeakRefInit, libs, "g_weak_ref_init") | |
| 2174 | - | core.PuregoSafeRegister(&xWeakRefSet, libs, "g_weak_ref_set") | |
| 2175 | - | ||
| 2176 | - | core.PuregoSafeRegister(&xInitiallyUnownedGLibType, libs, "g_initially_unowned_get_type") | |
| 2177 | - | ||
| 2178 | - | core.PuregoSafeRegister(&xObjectGLibType, libs, "g_object_get_type") | |
| 2179 | - | ||
| 2180 | - | core.PuregoSafeRegister(&xNewObject, libs, "g_object_new") | |
| 2181 | - | core.PuregoSafeRegister(&xNewObjectValist, libs, "g_object_new_valist") | |
| 2182 | - | core.PuregoSafeRegister(&xNewObjectWithProperties, libs, "g_object_new_with_properties") | |
| 2183 | - | core.PuregoSafeRegister(&xNewObjectv, libs, "g_object_newv") | |
| 2184 | - | ||
| 2185 | - | core.PuregoSafeRegister(&xObjectAddToggleRef, libs, "g_object_add_toggle_ref") | |
| 2186 | - | core.PuregoSafeRegister(&xObjectAddWeakPointer, libs, "g_object_add_weak_pointer") | |
| 2187 | - | core.PuregoSafeRegister(&xObjectBindProperty, libs, "g_object_bind_property") | |
| 2188 | - | core.PuregoSafeRegister(&xObjectBindPropertyFull, libs, "g_object_bind_property_full") | |
| 2189 | - | core.PuregoSafeRegister(&xObjectBindPropertyWithClosures, libs, "g_object_bind_property_with_closures") | |
| 2190 | - | core.PuregoSafeRegister(&xObjectConnect, libs, "g_object_connect") | |
| 2191 | - | core.PuregoSafeRegister(&xObjectDisconnect, libs, "g_object_disconnect") | |
| 2192 | - | core.PuregoSafeRegister(&xObjectDupData, libs, "g_object_dup_data") | |
| 2193 | - | core.PuregoSafeRegister(&xObjectDupQdata, libs, "g_object_dup_qdata") | |
| 2194 | - | core.PuregoSafeRegister(&xObjectForceFloating, libs, "g_object_force_floating") | |
| 2195 | - | core.PuregoSafeRegister(&xObjectFreezeNotify, libs, "g_object_freeze_notify") | |
| 2196 | - | core.PuregoSafeRegister(&xObjectGet, libs, "g_object_get") | |
| 2197 | - | core.PuregoSafeRegister(&xObjectGetData, libs, "g_object_get_data") | |
| 2198 | - | core.PuregoSafeRegister(&xObjectGetProperty, libs, "g_object_get_property") | |
| 2199 | - | core.PuregoSafeRegister(&xObjectGetQdata, libs, "g_object_get_qdata") | |
| 2200 | - | core.PuregoSafeRegister(&xObjectGetValist, libs, "g_object_get_valist") | |
| 2201 | - | core.PuregoSafeRegister(&xObjectGetv, libs, "g_object_getv") | |
| 2202 | - | core.PuregoSafeRegister(&xObjectIsFloating, libs, "g_object_is_floating") | |
| 2203 | - | core.PuregoSafeRegister(&xObjectNotify, libs, "g_object_notify") | |
| 2204 | - | core.PuregoSafeRegister(&xObjectNotifyByPspec, libs, "g_object_notify_by_pspec") | |
| 2205 | - | core.PuregoSafeRegister(&xObjectRef, libs, "g_object_ref") | |
| 2206 | - | core.PuregoSafeRegister(&xObjectRefSink, libs, "g_object_ref_sink") | |
| 2207 | - | core.PuregoSafeRegister(&xObjectRemoveToggleRef, libs, "g_object_remove_toggle_ref") | |
| 2208 | - | core.PuregoSafeRegister(&xObjectRemoveWeakPointer, libs, "g_object_remove_weak_pointer") | |
| 2209 | - | core.PuregoSafeRegister(&xObjectReplaceData, libs, "g_object_replace_data") | |
| 2210 | - | core.PuregoSafeRegister(&xObjectReplaceQdata, libs, "g_object_replace_qdata") | |
| 2211 | - | core.PuregoSafeRegister(&xObjectRunDispose, libs, "g_object_run_dispose") | |
| 2212 | - | core.PuregoSafeRegister(&xObjectSet, libs, "g_object_set") | |
| 2213 | - | core.PuregoSafeRegister(&xObjectSetData, libs, "g_object_set_data") | |
| 2214 | - | core.PuregoSafeRegister(&xObjectSetDataFull, libs, "g_object_set_data_full") | |
| 2215 | - | core.PuregoSafeRegister(&xObjectSetProperty, libs, "g_object_set_property") | |
| 2216 | - | core.PuregoSafeRegister(&xObjectSetQdata, libs, "g_object_set_qdata") | |
| 2217 | - | core.PuregoSafeRegister(&xObjectSetQdataFull, libs, "g_object_set_qdata_full") | |
| 2218 | - | core.PuregoSafeRegister(&xObjectSetValist, libs, "g_object_set_valist") | |
| 2219 | - | core.PuregoSafeRegister(&xObjectSetv, libs, "g_object_setv") | |
| 2220 | - | core.PuregoSafeRegister(&xObjectStealData, libs, "g_object_steal_data") | |
| 2221 | - | core.PuregoSafeRegister(&xObjectStealQdata, libs, "g_object_steal_qdata") | |
| 2222 | - | core.PuregoSafeRegister(&xObjectTakeRef, libs, "g_object_take_ref") | |
| 2223 | - | core.PuregoSafeRegister(&xObjectThawNotify, libs, "g_object_thaw_notify") | |
| 2224 | - | core.PuregoSafeRegister(&xObjectUnref, libs, "g_object_unref") | |
| 2225 | - | core.PuregoSafeRegister(&xObjectWatchClosure, libs, "g_object_watch_closure") | |
| 2226 | - | core.PuregoSafeRegister(&xObjectWeakRef, libs, "g_object_weak_ref") | |
| 2227 | - | core.PuregoSafeRegister(&xObjectWeakUnref, libs, "g_object_weak_unref") | |
| 2228 | - | ||
| 2229 | - | core.PuregoSafeRegister(&xObjectCompatControl, libs, "g_object_compat_control") | |
| 2230 | - | core.PuregoSafeRegister(&xObjectInterfaceFindProperty, libs, "g_object_interface_find_property") | |
| 2231 | - | core.PuregoSafeRegister(&xObjectInterfaceInstallProperty, libs, "g_object_interface_install_property") | |
| 2232 | - | core.PuregoSafeRegister(&xObjectInterfaceListProperties, libs, "g_object_interface_list_properties") | |
| 2233 | 2267 | } | |
| @@ -435,6 +435,7 @@ var xObjectClassFindProperty func(uintptr, string) uintptr | |||||
| 435 | 435 | ||||
| 436 | // Looks up the #GParamSpec for a property of a class. | 436 | // Looks up the #GParamSpec for a property of a class. | ||
| 437 | func (x *ObjectClass) FindProperty(PropertyNameVar string) *ParamSpec { | 437 | func (x *ObjectClass) FindProperty(PropertyNameVar string) *ParamSpec { | ||
| 438 | + | core.LazyRegister(&xObjectClassFindProperty, "GOBJECT", "g_object_class_find_property", false) | |||
| 438 | var cls *ParamSpec | 439 | var cls *ParamSpec | ||
| 439 | 440 | ||||
| 440 | cret := xObjectClassFindProperty(x.GoPointer(), PropertyNameVar) | 441 | cret := xObjectClassFindProperty(x.GoPointer(), PropertyNameVar) | ||
| @@ -519,6 +520,8 @@ var xObjectClassInstallProperties func(uintptr, uint, uintptr) | |||||
| 519 | // | 520 | // | ||
| 520 | // ]| | 521 | // ]| | ||
| 521 | func (x *ObjectClass) InstallProperties(NPspecsVar uint, PspecsVar uintptr) { | 522 | func (x *ObjectClass) InstallProperties(NPspecsVar uint, PspecsVar uintptr) { | ||
| 523 | + | core.LazyRegister(&xObjectClassInstallProperties, "GOBJECT", "g_object_class_install_properties", false) | |||
| 524 | + | ||||
| 522 | xObjectClassInstallProperties(x.GoPointer(), NPspecsVar, PspecsVar) | 525 | xObjectClassInstallProperties(x.GoPointer(), NPspecsVar, PspecsVar) | ||
| 523 | } | 526 | } | ||
| 524 | 527 | ||||
| @@ -535,6 +538,8 @@ var xObjectClassInstallProperty func(uintptr, uint, uintptr) | |||||
| 535 | // by installing a property with the same name. This can be useful at times, | 538 | // by installing a property with the same name. This can be useful at times, | ||
| 536 | // e.g. to change the range of allowed values or the default value. | 539 | // e.g. to change the range of allowed values or the default value. | ||
| 537 | func (x *ObjectClass) InstallProperty(PropertyIdVar uint, PspecVar *ParamSpec) { | 540 | func (x *ObjectClass) InstallProperty(PropertyIdVar uint, PspecVar *ParamSpec) { | ||
| 541 | + | core.LazyRegister(&xObjectClassInstallProperty, "GOBJECT", "g_object_class_install_property", false) | |||
| 542 | + | ||||
| 538 | xObjectClassInstallProperty(x.GoPointer(), PropertyIdVar, PspecVar.GoPointer()) | 543 | xObjectClassInstallProperty(x.GoPointer(), PropertyIdVar, PspecVar.GoPointer()) | ||
| 539 | } | 544 | } | ||
| 540 | 545 | ||||
| @@ -542,6 +547,8 @@ var xObjectClassListProperties func(uintptr, *uint) uintptr | |||||
| 542 | 547 | ||||
| 543 | // Get an array of #GParamSpec* for all properties of a class. | 548 | // Get an array of #GParamSpec* for all properties of a class. | ||
| 544 | func (x *ObjectClass) ListProperties(NPropertiesVar *uint) uintptr { | 549 | func (x *ObjectClass) ListProperties(NPropertiesVar *uint) uintptr { | ||
| 550 | + | core.LazyRegister(&xObjectClassListProperties, "GOBJECT", "g_object_class_list_properties", false) | |||
| 551 | + | ||||
| 545 | cret := xObjectClassListProperties(x.GoPointer(), NPropertiesVar) | 552 | cret := xObjectClassListProperties(x.GoPointer(), NPropertiesVar) | ||
| 546 | return cret | 553 | return cret | ||
| 547 | } | 554 | } | ||
| @@ -565,6 +572,8 @@ var xObjectClassOverrideProperty func(uintptr, uint, string) | |||||
| 565 | // need to get the overridden property, you can call | 572 | // need to get the overridden property, you can call | ||
| 566 | // g_param_spec_get_redirect_target(). | 573 | // g_param_spec_get_redirect_target(). | ||
| 567 | func (x *ObjectClass) OverrideProperty(PropertyIdVar uint, NameVar string) { | 574 | func (x *ObjectClass) OverrideProperty(PropertyIdVar uint, NameVar string) { | ||
| 575 | + | core.LazyRegister(&xObjectClassOverrideProperty, "GOBJECT", "g_object_class_override_property", false) | |||
| 576 | + | ||||
| 568 | xObjectClassOverrideProperty(x.GoPointer(), PropertyIdVar, NameVar) | 577 | xObjectClassOverrideProperty(x.GoPointer(), PropertyIdVar, NameVar) | ||
| 569 | } | 578 | } | ||
| 570 | 579 | ||||
| @@ -888,6 +897,8 @@ var xWeakRefClear func(uintptr) | |||||
| 888 | // You should only call this on a #GWeakRef that previously had | 897 | // You should only call this on a #GWeakRef that previously had | ||
| 889 | // g_weak_ref_init() called on it. | 898 | // g_weak_ref_init() called on it. | ||
| 890 | func (x *WeakRef) Clear() { | 899 | func (x *WeakRef) Clear() { | ||
| 900 | + | core.LazyRegister(&xWeakRefClear, "GOBJECT", "g_weak_ref_clear", false) | |||
| 901 | + | ||||
| 891 | xWeakRefClear(x.GoPointer()) | 902 | xWeakRefClear(x.GoPointer()) | ||
| 892 | } | 903 | } | ||
| 893 | 904 | ||||
| @@ -903,6 +914,7 @@ var xWeakRefGet func(uintptr) uintptr | |||||
| 903 | // The caller should release the resulting reference in the usual way, | 914 | // The caller should release the resulting reference in the usual way, | ||
| 904 | // by using g_object_unref(). | 915 | // by using g_object_unref(). | ||
| 905 | func (x *WeakRef) Get() *Object { | 916 | func (x *WeakRef) Get() *Object { | ||
| 917 | + | core.LazyRegister(&xWeakRefGet, "GOBJECT", "g_weak_ref_get", false) | |||
| 906 | var cls *Object | 918 | var cls *Object | ||
| 907 | 919 | ||||
| 908 | cret := xWeakRefGet(x.GoPointer()) | 920 | cret := xWeakRefGet(x.GoPointer()) | ||
| @@ -927,6 +939,8 @@ var xWeakRefInit func(uintptr, uintptr) | |||||
| 927 | // #GWeakRef in static storage because it will already be | 939 | // #GWeakRef in static storage because it will already be | ||
| 928 | // properly initialised. Just use g_weak_ref_set() directly. | 940 | // properly initialised. Just use g_weak_ref_set() directly. | ||
| 929 | func (x *WeakRef) Init(ObjectVar *Object) { | 941 | func (x *WeakRef) Init(ObjectVar *Object) { | ||
| 942 | + | core.LazyRegister(&xWeakRefInit, "GOBJECT", "g_weak_ref_init", false) | |||
| 943 | + | ||||
| 930 | xWeakRefInit(x.GoPointer(), ObjectVar.GoPointer()) | 944 | xWeakRefInit(x.GoPointer(), ObjectVar.GoPointer()) | ||
| 931 | } | 945 | } | ||
| 932 | 946 | ||||
| @@ -938,6 +952,8 @@ var xWeakRefSet func(uintptr, uintptr) | |||||
| 938 | // You must own a strong reference on @object while calling this | 952 | // You must own a strong reference on @object while calling this | ||
| 939 | // function. | 953 | // function. | ||
| 940 | func (x *WeakRef) Set(ObjectVar *Object) { | 954 | func (x *WeakRef) Set(ObjectVar *Object) { | ||
| 955 | + | core.LazyRegister(&xWeakRefSet, "GOBJECT", "g_weak_ref_set", false) | |||
| 956 | + | ||||
| 941 | xWeakRefSet(x.GoPointer(), ObjectVar.GoPointer()) | 957 | xWeakRefSet(x.GoPointer(), ObjectVar.GoPointer()) | ||
| 942 | } | 958 | } | ||
| 943 | 959 | ||||
| @@ -949,6 +965,8 @@ var xCclosureNewObject func(uintptr, uintptr) uintptr | |||||
| 949 | // associated with a #GObject, and want the callback to no longer run | 965 | // associated with a #GObject, and want the callback to no longer run | ||
| 950 | // after the object is is freed. | 966 | // after the object is is freed. | ||
| 951 | func CclosureNewObject(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | 967 | func CclosureNewObject(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | ||
| 968 | + | core.LazyRegister(&xCclosureNewObject, "GOBJECT", "g_cclosure_new_object", false) | |||
| 969 | + | ||||
| 952 | cret := xCclosureNewObject(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | 970 | cret := xCclosureNewObject(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | ||
| 953 | if cret == 0 { | 971 | if cret == 0 { | ||
| 954 | return nil | 972 | return nil | ||
| @@ -964,6 +982,8 @@ var xCclosureNewObjectSwap func(uintptr, uintptr) uintptr | |||||
| 964 | // associated with a #GObject, and want the callback to no longer run | 982 | // associated with a #GObject, and want the callback to no longer run | ||
| 965 | // after the object is is freed. | 983 | // after the object is is freed. | ||
| 966 | func CclosureNewObjectSwap(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | 984 | func CclosureNewObjectSwap(CallbackFuncVar *Callback, ObjectVar *Object) *Closure { | ||
| 985 | + | core.LazyRegister(&xCclosureNewObjectSwap, "GOBJECT", "g_cclosure_new_object_swap", false) | |||
| 986 | + | ||||
| 967 | cret := xCclosureNewObjectSwap(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | 987 | cret := xCclosureNewObjectSwap(glib.NewCallback(CallbackFuncVar), ObjectVar.GoPointer()) | ||
| 968 | if cret == 0 { | 988 | if cret == 0 { | ||
| 969 | return nil | 989 | return nil | ||
| @@ -984,6 +1004,8 @@ var xClearObject func(uintptr) | |||||
| 984 | // A macro is also included that allows this function to be used without | 1004 | // A macro is also included that allows this function to be used without | ||
| 985 | // pointer casts. | 1005 | // pointer casts. | ||
| 986 | func ClearObject(ObjectPtrVar **Object) { | 1006 | func ClearObject(ObjectPtrVar **Object) { | ||
| 1007 | + | core.LazyRegister(&xClearObject, "GOBJECT", "g_clear_object", false) | |||
| 1008 | + | ||||
| 987 | xClearObject(*ConvertPtr(ObjectPtrVar)) | 1009 | xClearObject(*ConvertPtr(ObjectPtrVar)) | ||
| 988 | } | 1010 | } | ||
| 989 | 1011 | ||||
| @@ -1006,6 +1028,8 @@ var xSignalConnectObject func(*TypeInstance, string, uintptr, uintptr, ConnectFl | |||||
| 1006 | // Refer to the [signals documentation](signals.html) for more | 1028 | // Refer to the [signals documentation](signals.html) for more | ||
| 1007 | // details. | 1029 | // details. | ||
| 1008 | func SignalConnectObject(InstanceVar *TypeInstance, DetailedSignalVar string, CHandlerVar *Callback, GobjectVar *Object, ConnectFlagsVar ConnectFlags) uint { | 1030 | func SignalConnectObject(InstanceVar *TypeInstance, DetailedSignalVar string, CHandlerVar *Callback, GobjectVar *Object, ConnectFlagsVar ConnectFlags) uint { | ||
| 1031 | + | core.LazyRegister(&xSignalConnectObject, "GOBJECT", "g_signal_connect_object", false) | |||
| 1032 | + | ||||
| 1009 | cret := xSignalConnectObject(InstanceVar, DetailedSignalVar, glib.NewCallback(CHandlerVar), GobjectVar.GoPointer(), ConnectFlagsVar) | 1033 | cret := xSignalConnectObject(InstanceVar, DetailedSignalVar, glib.NewCallback(CHandlerVar), GobjectVar.GoPointer(), ConnectFlagsVar) | ||
| 1010 | return cret | 1034 | return cret | ||
| 1011 | } | 1035 | } | ||
| @@ -1021,6 +1045,7 @@ type InitiallyUnowned struct { | |||||
| 1021 | var xInitiallyUnownedGLibType func() types.GType | 1045 | var xInitiallyUnownedGLibType func() types.GType | ||
| 1022 | 1046 | ||||
| 1023 | func InitiallyUnownedGLibType() types.GType { | 1047 | func InitiallyUnownedGLibType() types.GType { | ||
| 1048 | + | core.LazyRegister(&xInitiallyUnownedGLibType, "GOBJECT", "g_initially_unowned_get_type", false) | |||
| 1024 | return xInitiallyUnownedGLibType() | 1049 | return xInitiallyUnownedGLibType() | ||
| 1025 | } | 1050 | } | ||
| 1026 | 1051 | ||||
| @@ -1070,6 +1095,7 @@ type Object struct { | |||||
| 1070 | var xObjectGLibType func() types.GType | 1095 | var xObjectGLibType func() types.GType | ||
| 1071 | 1096 | ||||
| 1072 | func ObjectGLibType() types.GType { | 1097 | func ObjectGLibType() types.GType { | ||
| 1098 | + | core.LazyRegister(&xObjectGLibType, "GOBJECT", "g_object_get_type", false) | |||
| 1073 | return xObjectGLibType() | 1099 | return xObjectGLibType() | ||
| 1074 | } | 1100 | } | ||
| 1075 | 1101 | ||||
| @@ -1108,6 +1134,7 @@ var xNewObject func(types.GType, string, ...interface{}) uintptr | |||||
| 1108 | // should allocate it on the heap (aligned), or arrange for your #GObject to be | 1134 | // should allocate it on the heap (aligned), or arrange for your #GObject to be | ||
| 1109 | // appropriately padded. | 1135 | // appropriately padded. | ||
| 1110 | func NewObject(ObjectTypeVar types.GType, FirstPropertyNameVar string, varArgs ...interface{}) *Object { | 1136 | func NewObject(ObjectTypeVar types.GType, FirstPropertyNameVar string, varArgs ...interface{}) *Object { | ||
| 1137 | + | core.LazyRegister(&xNewObject, "GOBJECT", "g_object_new", false) | |||
| 1111 | var cls *Object | 1138 | var cls *Object | ||
| 1112 | 1139 | ||||
| 1113 | cret := xNewObject(ObjectTypeVar, FirstPropertyNameVar, varArgs...) | 1140 | cret := xNewObject(ObjectTypeVar, FirstPropertyNameVar, varArgs...) | ||
| @@ -1127,6 +1154,7 @@ var xNewObjectValist func(types.GType, string, []interface{}) uintptr | |||||
| 1127 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | 1154 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | ||
| 1128 | // which are not explicitly specified are set to their default values. | 1155 | // which are not explicitly specified are set to their default values. | ||
| 1129 | func NewObjectValist(ObjectTypeVar types.GType, FirstPropertyNameVar string, VarArgsVar []interface{}) *Object { | 1156 | func NewObjectValist(ObjectTypeVar types.GType, FirstPropertyNameVar string, VarArgsVar []interface{}) *Object { | ||
| 1157 | + | core.LazyRegister(&xNewObjectValist, "GOBJECT", "g_object_new_valist", false) | |||
| 1130 | var cls *Object | 1158 | var cls *Object | ||
| 1131 | 1159 | ||||
| 1132 | cret := xNewObjectValist(ObjectTypeVar, FirstPropertyNameVar, VarArgsVar) | 1160 | cret := xNewObjectValist(ObjectTypeVar, FirstPropertyNameVar, VarArgsVar) | ||
| @@ -1148,6 +1176,7 @@ var xNewObjectWithProperties func(types.GType, uint, []string, []Value) uintptr | |||||
| 1148 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | 1176 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | ||
| 1149 | // which are not explicitly specified are set to their default values. | 1177 | // which are not explicitly specified are set to their default values. | ||
| 1150 | func NewObjectWithProperties(ObjectTypeVar types.GType, NPropertiesVar uint, NamesVar []string, ValuesVar []Value) *Object { | 1178 | func NewObjectWithProperties(ObjectTypeVar types.GType, NPropertiesVar uint, NamesVar []string, ValuesVar []Value) *Object { | ||
| 1179 | + | core.LazyRegister(&xNewObjectWithProperties, "GOBJECT", "g_object_new_with_properties", false) | |||
| 1151 | var cls *Object | 1180 | var cls *Object | ||
| 1152 | 1181 | ||||
| 1153 | cret := xNewObjectWithProperties(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | 1182 | cret := xNewObjectWithProperties(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | ||
| @@ -1167,6 +1196,7 @@ var xNewObjectv func(types.GType, uint, []Parameter) uintptr | |||||
| 1167 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | 1196 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | ||
| 1168 | // which are not explicitly specified are set to their default values. | 1197 | // which are not explicitly specified are set to their default values. | ||
| 1169 | func NewObjectv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar []Parameter) *Object { | 1198 | func NewObjectv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar []Parameter) *Object { | ||
| 1199 | + | core.LazyRegister(&xNewObjectv, "GOBJECT", "g_object_newv", false) | |||
| 1170 | var cls *Object | 1200 | var cls *Object | ||
| 1171 | 1201 | ||||
| 1172 | cret := xNewObjectv(ObjectTypeVar, NParametersVar, ParametersVar) | 1202 | cret := xNewObjectv(ObjectTypeVar, NParametersVar, ParametersVar) | ||
| @@ -1217,6 +1247,8 @@ var xObjectAddToggleRef func(uintptr, uintptr, uintptr) | |||||
| 1217 | // | 1247 | // | ||
| 1218 | // A g_object_add_toggle_ref() must be released with g_object_remove_toggle_ref(). | 1248 | // A g_object_add_toggle_ref() must be released with g_object_remove_toggle_ref(). | ||
| 1219 | func (x *Object) AddToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | 1249 | func (x *Object) AddToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | ||
| 1250 | + | core.LazyRegister(&xObjectAddToggleRef, "GOBJECT", "g_object_add_toggle_ref", false) | |||
| 1251 | + | ||||
| 1220 | xObjectAddToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | 1252 | xObjectAddToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | ||
| 1221 | } | 1253 | } | ||
| 1222 | 1254 | ||||
| @@ -1232,6 +1264,8 @@ var xObjectAddWeakPointer func(uintptr, *uintptr) | |||||
| 1232 | // thread if the object's last g_object_unref() might happen in another | 1264 | // thread if the object's last g_object_unref() might happen in another | ||
| 1233 | // thread. Use #GWeakRef if thread-safety is required. | 1265 | // thread. Use #GWeakRef if thread-safety is required. | ||
| 1234 | func (x *Object) AddWeakPointer(WeakPointerLocationVar *uintptr) { | 1266 | func (x *Object) AddWeakPointer(WeakPointerLocationVar *uintptr) { | ||
| 1267 | + | core.LazyRegister(&xObjectAddWeakPointer, "GOBJECT", "g_object_add_weak_pointer", false) | |||
| 1268 | + | ||||
| 1235 | xObjectAddWeakPointer(x.GoPointer(), WeakPointerLocationVar) | 1269 | xObjectAddWeakPointer(x.GoPointer(), WeakPointerLocationVar) | ||
| 1236 | } | 1270 | } | ||
| 1237 | 1271 | ||||
| @@ -1271,6 +1305,7 @@ var xObjectBindProperty func(uintptr, string, uintptr, string, BindingFlags) uin | |||||
| 1271 | // | 1305 | // | ||
| 1272 | // A #GObject can have multiple bindings. | 1306 | // A #GObject can have multiple bindings. | ||
| 1273 | func (x *Object) BindProperty(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags) *Binding { | 1307 | func (x *Object) BindProperty(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags) *Binding { | ||
| 1308 | + | core.LazyRegister(&xObjectBindProperty, "GOBJECT", "g_object_bind_property", false) | |||
| 1274 | var cls *Binding | 1309 | var cls *Binding | ||
| 1275 | 1310 | ||||
| 1276 | cret := xObjectBindProperty(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar) | 1311 | cret := xObjectBindProperty(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar) | ||
| @@ -1312,6 +1347,7 @@ var xObjectBindPropertyFull func(uintptr, string, uintptr, string, BindingFlags, | |||||
| 1312 | // for each transformation function, please use | 1347 | // for each transformation function, please use | ||
| 1313 | // g_object_bind_property_with_closures() instead. | 1348 | // g_object_bind_property_with_closures() instead. | ||
| 1314 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | 1349 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | ||
| 1350 | + | core.LazyRegister(&xObjectBindPropertyFull, "GOBJECT", "g_object_bind_property_full", false) | |||
| 1315 | var cls *Binding | 1351 | var cls *Binding | ||
| 1316 | 1352 | ||||
| 1317 | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | 1353 | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | ||
| @@ -1335,6 +1371,7 @@ var xObjectBindPropertyWithClosures func(uintptr, string, uintptr, string, Bindi | |||||
| 1335 | // g_object_bind_property_full(), using #GClosures instead of | 1371 | // g_object_bind_property_full(), using #GClosures instead of | ||
| 1336 | // function pointers. | 1372 | // function pointers. | ||
| 1337 | func (x *Object) BindPropertyWithClosures(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *Closure, TransformFromVar *Closure) *Binding { | 1373 | func (x *Object) BindPropertyWithClosures(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *Closure, TransformFromVar *Closure) *Binding { | ||
| 1374 | + | core.LazyRegister(&xObjectBindPropertyWithClosures, "GOBJECT", "g_object_bind_property_with_closures", false) | |||
| 1338 | var cls *Binding | 1375 | var cls *Binding | ||
| 1339 | 1376 | ||||
| 1340 | cret := xObjectBindPropertyWithClosures(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, TransformToVar, TransformFromVar) | 1377 | cret := xObjectBindPropertyWithClosures(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, TransformToVar, TransformFromVar) | ||
| @@ -1378,6 +1415,7 @@ var xObjectConnect func(uintptr, string, ...interface{}) uintptr | |||||
| 1378 | // | 1415 | // | ||
| 1379 | // ``` | 1416 | // ``` | ||
| 1380 | func (x *Object) Connect(SignalSpecVar string, varArgs ...interface{}) *Object { | 1417 | func (x *Object) Connect(SignalSpecVar string, varArgs ...interface{}) *Object { | ||
| 1418 | + | core.LazyRegister(&xObjectConnect, "GOBJECT", "g_object_connect", false) | |||
| 1381 | var cls *Object | 1419 | var cls *Object | ||
| 1382 | 1420 | ||||
| 1383 | cret := xObjectConnect(x.GoPointer(), SignalSpecVar, varArgs...) | 1421 | cret := xObjectConnect(x.GoPointer(), SignalSpecVar, varArgs...) | ||
| @@ -1400,6 +1438,8 @@ var xObjectDisconnect func(uintptr, string, ...interface{}) | |||||
| 1400 | // callback and data, or "any_signal::signal_name", which only | 1438 | // callback and data, or "any_signal::signal_name", which only | ||
| 1401 | // disconnects the signal named "signal_name". | 1439 | // disconnects the signal named "signal_name". | ||
| 1402 | func (x *Object) Disconnect(SignalSpecVar string, varArgs ...interface{}) { | 1440 | func (x *Object) Disconnect(SignalSpecVar string, varArgs ...interface{}) { | ||
| 1441 | + | core.LazyRegister(&xObjectDisconnect, "GOBJECT", "g_object_disconnect", false) | |||
| 1442 | + | ||||
| 1403 | xObjectDisconnect(x.GoPointer(), SignalSpecVar, varArgs...) | 1443 | xObjectDisconnect(x.GoPointer(), SignalSpecVar, varArgs...) | ||
| 1404 | } | 1444 | } | ||
| 1405 | 1445 | ||||
| @@ -1420,6 +1460,8 @@ var xObjectDupData func(uintptr, string, uintptr, uintptr) uintptr | |||||
| 1420 | // threads are using object data on the same key on the same | 1460 | // threads are using object data on the same key on the same | ||
| 1421 | // object. | 1461 | // object. | ||
| 1422 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | 1462 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | ||
| 1463 | + | core.LazyRegister(&xObjectDupData, "GOBJECT", "g_object_dup_data", false) | |||
| 1464 | + | ||||
| 1423 | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | 1465 | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | ||
| 1424 | return cret | 1466 | return cret | ||
| 1425 | } | 1467 | } | ||
| @@ -1441,6 +1483,8 @@ var xObjectDupQdata func(uintptr, glib.Quark, uintptr, uintptr) uintptr | |||||
| 1441 | // threads are using object data on the same key on the same | 1483 | // threads are using object data on the same key on the same | ||
| 1442 | // object. | 1484 | // object. | ||
| 1443 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | 1485 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | ||
| 1486 | + | core.LazyRegister(&xObjectDupQdata, "GOBJECT", "g_object_dup_qdata", false) | |||
| 1487 | + | ||||
| 1444 | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | 1488 | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | ||
| 1445 | return cret | 1489 | return cret | ||
| 1446 | } | 1490 | } | ||
| @@ -1452,6 +1496,8 @@ var xObjectForceFloating func(uintptr) | |||||
| 1452 | // required: all #GInitiallyUnowneds are created with a floating reference | 1496 | // required: all #GInitiallyUnowneds are created with a floating reference | ||
| 1453 | // which usually just needs to be sunken by calling g_object_ref_sink(). | 1497 | // which usually just needs to be sunken by calling g_object_ref_sink(). | ||
| 1454 | func (x *Object) ForceFloating() { | 1498 | func (x *Object) ForceFloating() { | ||
| 1499 | + | core.LazyRegister(&xObjectForceFloating, "GOBJECT", "g_object_force_floating", false) | |||
| 1500 | + | ||||
| 1455 | xObjectForceFloating(x.GoPointer()) | 1501 | xObjectForceFloating(x.GoPointer()) | ||
| 1456 | } | 1502 | } | ||
| 1457 | 1503 | ||||
| @@ -1467,6 +1513,8 @@ var xObjectFreezeNotify func(uintptr) | |||||
| 1467 | // This is necessary for accessors that modify multiple properties to prevent | 1513 | // This is necessary for accessors that modify multiple properties to prevent | ||
| 1468 | // premature notification while the object is still being modified. | 1514 | // premature notification while the object is still being modified. | ||
| 1469 | func (x *Object) FreezeNotify() { | 1515 | func (x *Object) FreezeNotify() { | ||
| 1516 | + | core.LazyRegister(&xObjectFreezeNotify, "GOBJECT", "g_object_freeze_notify", false) | |||
| 1517 | + | ||||
| 1470 | xObjectFreezeNotify(x.GoPointer()) | 1518 | xObjectFreezeNotify(x.GoPointer()) | ||
| 1471 | } | 1519 | } | ||
| 1472 | 1520 | ||||
| @@ -1501,6 +1549,8 @@ var xObjectGet func(uintptr, string, ...interface{}) | |||||
| 1501 | // | 1549 | // | ||
| 1502 | // ]| | 1550 | // ]| | ||
| 1503 | func (x *Object) Get(FirstPropertyNameVar string, varArgs ...interface{}) { | 1551 | func (x *Object) Get(FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 1552 | + | core.LazyRegister(&xObjectGet, "GOBJECT", "g_object_get", false) | |||
| 1553 | + | ||||
| 1504 | xObjectGet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | 1554 | xObjectGet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | ||
| 1505 | } | 1555 | } | ||
| 1506 | 1556 | ||||
| @@ -1508,6 +1558,8 @@ var xObjectGetData func(uintptr, string) uintptr | |||||
| 1508 | 1558 | ||||
| 1509 | // Gets a named field from the objects table of associations (see g_object_set_data()). | 1559 | // Gets a named field from the objects table of associations (see g_object_set_data()). | ||
| 1510 | func (x *Object) GetData(KeyVar string) uintptr { | 1560 | func (x *Object) GetData(KeyVar string) uintptr { | ||
| 1561 | + | core.LazyRegister(&xObjectGetData, "GOBJECT", "g_object_get_data", false) | |||
| 1562 | + | ||||
| 1511 | cret := xObjectGetData(x.GoPointer(), KeyVar) | 1563 | cret := xObjectGetData(x.GoPointer(), KeyVar) | ||
| 1512 | return cret | 1564 | return cret | ||
| 1513 | } | 1565 | } | ||
| @@ -1531,6 +1583,8 @@ var xObjectGetProperty func(uintptr, string, *Value) | |||||
| 1531 | // Note that g_object_get_property() is really intended for language | 1583 | // Note that g_object_get_property() is really intended for language | ||
| 1532 | // bindings, g_object_get() is much more convenient for C programming. | 1584 | // bindings, g_object_get() is much more convenient for C programming. | ||
| 1533 | func (x *Object) GetProperty(PropertyNameVar string, ValueVar *Value) { | 1585 | func (x *Object) GetProperty(PropertyNameVar string, ValueVar *Value) { | ||
| 1586 | + | core.LazyRegister(&xObjectGetProperty, "GOBJECT", "g_object_get_property", false) | |||
| 1587 | + | ||||
| 1534 | xObjectGetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | 1588 | xObjectGetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | ||
| 1535 | } | 1589 | } | ||
| 1536 | 1590 | ||||
| @@ -1539,6 +1593,8 @@ var xObjectGetQdata func(uintptr, glib.Quark) uintptr | |||||
| 1539 | // This function gets back user data pointers stored via | 1593 | // This function gets back user data pointers stored via | ||
| 1540 | // g_object_set_qdata(). | 1594 | // g_object_set_qdata(). | ||
| 1541 | func (x *Object) GetQdata(QuarkVar glib.Quark) uintptr { | 1595 | func (x *Object) GetQdata(QuarkVar glib.Quark) uintptr { | ||
| 1596 | + | core.LazyRegister(&xObjectGetQdata, "GOBJECT", "g_object_get_qdata", false) | |||
| 1597 | + | ||||
| 1542 | cret := xObjectGetQdata(x.GoPointer(), QuarkVar) | 1598 | cret := xObjectGetQdata(x.GoPointer(), QuarkVar) | ||
| 1543 | return cret | 1599 | return cret | ||
| 1544 | } | 1600 | } | ||
| @@ -1553,6 +1609,8 @@ var xObjectGetValist func(uintptr, string, []interface{}) | |||||
| 1553 | // | 1609 | // | ||
| 1554 | // See g_object_get(). | 1610 | // See g_object_get(). | ||
| 1555 | func (x *Object) GetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | 1611 | func (x *Object) GetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | ||
| 1612 | + | core.LazyRegister(&xObjectGetValist, "GOBJECT", "g_object_get_valist", false) | |||
| 1613 | + | ||||
| 1556 | xObjectGetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | 1614 | xObjectGetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | ||
| 1557 | } | 1615 | } | ||
| 1558 | 1616 | ||||
| @@ -1563,6 +1621,8 @@ var xObjectGetv func(uintptr, uint, []string, []Value) | |||||
| 1563 | // Warnings will be emitted and undefined behaviour may result if invalid | 1621 | // Warnings will be emitted and undefined behaviour may result if invalid | ||
| 1564 | // properties are passed in. | 1622 | // properties are passed in. | ||
| 1565 | func (x *Object) Getv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | 1623 | func (x *Object) Getv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | ||
| 1624 | + | core.LazyRegister(&xObjectGetv, "GOBJECT", "g_object_getv", false) | |||
| 1625 | + | ||||
| 1566 | xObjectGetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | 1626 | xObjectGetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | ||
| 1567 | } | 1627 | } | ||
| 1568 | 1628 | ||||
| @@ -1570,6 +1630,8 @@ var xObjectIsFloating func(uintptr) bool | |||||
| 1570 | 1630 | ||||
| 1571 | // Checks whether @object has a [floating](floating-refs.html) reference. | 1631 | // Checks whether @object has a [floating](floating-refs.html) reference. | ||
| 1572 | func (x *Object) IsFloating() bool { | 1632 | func (x *Object) IsFloating() bool { | ||
| 1633 | + | core.LazyRegister(&xObjectIsFloating, "GOBJECT", "g_object_is_floating", false) | |||
| 1634 | + | ||||
| 1573 | cret := xObjectIsFloating(x.GoPointer()) | 1635 | cret := xObjectIsFloating(x.GoPointer()) | ||
| 1574 | return cret | 1636 | return cret | ||
| 1575 | } | 1637 | } | ||
| @@ -1587,6 +1649,8 @@ var xObjectNotify func(uintptr, string) | |||||
| 1587 | // and will be emitted (in reverse order) when g_object_thaw_notify() is | 1649 | // and will be emitted (in reverse order) when g_object_thaw_notify() is | ||
| 1588 | // called. | 1650 | // called. | ||
| 1589 | func (x *Object) Notify(PropertyNameVar string) { | 1651 | func (x *Object) Notify(PropertyNameVar string) { | ||
| 1652 | + | core.LazyRegister(&xObjectNotify, "GOBJECT", "g_object_notify", false) | |||
| 1653 | + | ||||
| 1590 | xObjectNotify(x.GoPointer(), PropertyNameVar) | 1654 | xObjectNotify(x.GoPointer(), PropertyNameVar) | ||
| 1591 | } | 1655 | } | ||
| 1592 | 1656 | ||||
| @@ -1634,6 +1698,8 @@ var xObjectNotifyByPspec func(uintptr, uintptr) | |||||
| 1634 | // | 1698 | // | ||
| 1635 | // ]| | 1699 | // ]| | ||
| 1636 | func (x *Object) NotifyByPspec(PspecVar *ParamSpec) { | 1700 | func (x *Object) NotifyByPspec(PspecVar *ParamSpec) { | ||
| 1701 | + | core.LazyRegister(&xObjectNotifyByPspec, "GOBJECT", "g_object_notify_by_pspec", false) | |||
| 1702 | + | ||||
| 1637 | xObjectNotifyByPspec(x.GoPointer(), PspecVar.GoPointer()) | 1703 | xObjectNotifyByPspec(x.GoPointer(), PspecVar.GoPointer()) | ||
| 1638 | } | 1704 | } | ||
| 1639 | 1705 | ||||
| @@ -1646,6 +1712,7 @@ var xObjectRef func(uintptr) uintptr | |||||
| 1646 | // extension), so any casting the caller needs to do on the return type must be | 1712 | // extension), so any casting the caller needs to do on the return type must be | ||
| 1647 | // explicit. | 1713 | // explicit. | ||
| 1648 | func (x *Object) Ref() *Object { | 1714 | func (x *Object) Ref() *Object { | ||
| 1715 | + | core.LazyRegister(&xObjectRef, "GOBJECT", "g_object_ref", false) | |||
| 1649 | var cls *Object | 1716 | var cls *Object | ||
| 1650 | 1717 | ||||
| 1651 | cret := xObjectRef(x.GoPointer()) | 1718 | cret := xObjectRef(x.GoPointer()) | ||
| @@ -1672,6 +1739,7 @@ var xObjectRefSink func(uintptr) uintptr | |||||
| 1672 | // Since GLib 2.56, the type of @object will be propagated to the return type | 1739 | // Since GLib 2.56, the type of @object will be propagated to the return type | ||
| 1673 | // under the same conditions as for g_object_ref(). | 1740 | // under the same conditions as for g_object_ref(). | ||
| 1674 | func (x *Object) RefSink() *Object { | 1741 | func (x *Object) RefSink() *Object { | ||
| 1742 | + | core.LazyRegister(&xObjectRefSink, "GOBJECT", "g_object_ref_sink", false) | |||
| 1675 | var cls *Object | 1743 | var cls *Object | ||
| 1676 | 1744 | ||||
| 1677 | cret := xObjectRefSink(x.GoPointer()) | 1745 | cret := xObjectRefSink(x.GoPointer()) | ||
| @@ -1695,6 +1763,8 @@ var xObjectRemoveToggleRef func(uintptr, uintptr, uintptr) | |||||
| 1695 | // might be a dangling pointer. If the object is destroyed on other threads, | 1763 | // might be a dangling pointer. If the object is destroyed on other threads, | ||
| 1696 | // you must take care of that yourself. | 1764 | // you must take care of that yourself. | ||
| 1697 | func (x *Object) RemoveToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | 1765 | func (x *Object) RemoveToggleRef(NotifyVar *ToggleNotify, DataVar uintptr) { | ||
| 1766 | + | core.LazyRegister(&xObjectRemoveToggleRef, "GOBJECT", "g_object_remove_toggle_ref", false) | |||
| 1767 | + | ||||
| 1698 | xObjectRemoveToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | 1768 | xObjectRemoveToggleRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | ||
| 1699 | } | 1769 | } | ||
| 1700 | 1770 | ||||
| @@ -1704,6 +1774,8 @@ var xObjectRemoveWeakPointer func(uintptr, *uintptr) | |||||
| 1704 | // using g_object_add_weak_pointer(). The @weak_pointer_location has | 1774 | // using g_object_add_weak_pointer(). The @weak_pointer_location has | ||
| 1705 | // to match the one used with g_object_add_weak_pointer(). | 1775 | // to match the one used with g_object_add_weak_pointer(). | ||
| 1706 | func (x *Object) RemoveWeakPointer(WeakPointerLocationVar *uintptr) { | 1776 | func (x *Object) RemoveWeakPointer(WeakPointerLocationVar *uintptr) { | ||
| 1777 | + | core.LazyRegister(&xObjectRemoveWeakPointer, "GOBJECT", "g_object_remove_weak_pointer", false) | |||
| 1778 | + | ||||
| 1707 | xObjectRemoveWeakPointer(x.GoPointer(), WeakPointerLocationVar) | 1779 | xObjectRemoveWeakPointer(x.GoPointer(), WeakPointerLocationVar) | ||
| 1708 | } | 1780 | } | ||
| 1709 | 1781 | ||||
| @@ -1726,6 +1798,8 @@ var xObjectReplaceData func(uintptr, string, uintptr, uintptr, uintptr, *glib.De | |||||
| 1726 | // See g_object_set_data() for guidance on using a small, bounded set of values | 1798 | // See g_object_set_data() for guidance on using a small, bounded set of values | ||
| 1727 | // for @key. | 1799 | // for @key. | ||
| 1728 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | 1800 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | ||
| 1801 | + | core.LazyRegister(&xObjectReplaceData, "GOBJECT", "g_object_replace_data", false) | |||
| 1802 | + | ||||
| 1729 | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | 1803 | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | ||
| 1730 | return cret | 1804 | return cret | ||
| 1731 | } | 1805 | } | ||
| @@ -1746,6 +1820,8 @@ var xObjectReplaceQdata func(uintptr, glib.Quark, uintptr, uintptr, uintptr, *gl | |||||
| 1746 | // or may not include using @old_destroy as sometimes replacement | 1820 | // or may not include using @old_destroy as sometimes replacement | ||
| 1747 | // should not destroy the object in the normal way. | 1821 | // should not destroy the object in the normal way. | ||
| 1748 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | 1822 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | ||
| 1823 | + | core.LazyRegister(&xObjectReplaceQdata, "GOBJECT", "g_object_replace_qdata", false) | |||
| 1824 | + | ||||
| 1749 | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | 1825 | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), OldDestroyVar) | ||
| 1750 | return cret | 1826 | return cret | ||
| 1751 | } | 1827 | } | ||
| @@ -1757,6 +1833,8 @@ var xObjectRunDispose func(uintptr) | |||||
| 1757 | // | 1833 | // | ||
| 1758 | // This function should only be called from object system implementations. | 1834 | // This function should only be called from object system implementations. | ||
| 1759 | func (x *Object) RunDispose() { | 1835 | func (x *Object) RunDispose() { | ||
| 1836 | + | core.LazyRegister(&xObjectRunDispose, "GOBJECT", "g_object_run_dispose", false) | |||
| 1837 | + | ||||
| 1760 | xObjectRunDispose(x.GoPointer()) | 1838 | xObjectRunDispose(x.GoPointer()) | ||
| 1761 | } | 1839 | } | ||
| 1762 | 1840 | ||||
| @@ -1773,6 +1851,8 @@ var xObjectSet func(uintptr, string, ...interface{}) | |||||
| 1773 | // reverse order) after all properties have been set. See | 1851 | // reverse order) after all properties have been set. See | ||
| 1774 | // g_object_freeze_notify(). | 1852 | // g_object_freeze_notify(). | ||
| 1775 | func (x *Object) Set(FirstPropertyNameVar string, varArgs ...interface{}) { | 1853 | func (x *Object) Set(FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 1854 | + | core.LazyRegister(&xObjectSet, "GOBJECT", "g_object_set", false) | |||
| 1855 | + | ||||
| 1776 | xObjectSet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | 1856 | xObjectSet(x.GoPointer(), FirstPropertyNameVar, varArgs...) | ||
| 1777 | } | 1857 | } | ||
| 1778 | 1858 | ||||
| @@ -1789,6 +1869,8 @@ var xObjectSetData func(uintptr, string, uintptr) | |||||
| 1789 | // finalized) — so it is recommended to only use a small, bounded set of values | 1869 | // finalized) — so it is recommended to only use a small, bounded set of values | ||
| 1790 | // for @key in your program, to avoid the #GQuark storage growing unbounded. | 1870 | // for @key in your program, to avoid the #GQuark storage growing unbounded. | ||
| 1791 | func (x *Object) SetData(KeyVar string, DataVar uintptr) { | 1871 | func (x *Object) SetData(KeyVar string, DataVar uintptr) { | ||
| 1872 | + | core.LazyRegister(&xObjectSetData, "GOBJECT", "g_object_set_data", false) | |||
| 1873 | + | ||||
| 1792 | xObjectSetData(x.GoPointer(), KeyVar, DataVar) | 1874 | xObjectSetData(x.GoPointer(), KeyVar, DataVar) | ||
| 1793 | } | 1875 | } | ||
| 1794 | 1876 | ||||
| @@ -1800,6 +1882,8 @@ var xObjectSetDataFull func(uintptr, string, uintptr, uintptr) | |||||
| 1800 | // | 1882 | // | ||
| 1801 | // Note that the @destroy callback is not called if @data is %NULL. | 1883 | // Note that the @destroy callback is not called if @data is %NULL. | ||
| 1802 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1884 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1885 | + | core.LazyRegister(&xObjectSetDataFull, "GOBJECT", "g_object_set_data_full", false) | |||
| 1886 | + | ||||
| 1803 | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | 1887 | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | ||
| 1804 | } | 1888 | } | ||
| 1805 | 1889 | ||||
| @@ -1807,6 +1891,8 @@ var xObjectSetProperty func(uintptr, string, *Value) | |||||
| 1807 | 1891 | ||||
| 1808 | // Sets a property on an object. | 1892 | // Sets a property on an object. | ||
| 1809 | func (x *Object) SetProperty(PropertyNameVar string, ValueVar *Value) { | 1893 | func (x *Object) SetProperty(PropertyNameVar string, ValueVar *Value) { | ||
| 1894 | + | core.LazyRegister(&xObjectSetProperty, "GOBJECT", "g_object_set_property", false) | |||
| 1895 | + | ||||
| 1810 | xObjectSetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | 1896 | xObjectSetProperty(x.GoPointer(), PropertyNameVar, ValueVar) | ||
| 1811 | } | 1897 | } | ||
| 1812 | 1898 | ||||
| @@ -1821,6 +1907,8 @@ var xObjectSetQdata func(uintptr, glib.Quark, uintptr) | |||||
| 1821 | // the old pointer set, using #NULL as pointer essentially | 1907 | // the old pointer set, using #NULL as pointer essentially | ||
| 1822 | // removes the data stored. | 1908 | // removes the data stored. | ||
| 1823 | func (x *Object) SetQdata(QuarkVar glib.Quark, DataVar uintptr) { | 1909 | func (x *Object) SetQdata(QuarkVar glib.Quark, DataVar uintptr) { | ||
| 1910 | + | core.LazyRegister(&xObjectSetQdata, "GOBJECT", "g_object_set_qdata", false) | |||
| 1911 | + | ||||
| 1824 | xObjectSetQdata(x.GoPointer(), QuarkVar, DataVar) | 1912 | xObjectSetQdata(x.GoPointer(), QuarkVar, DataVar) | ||
| 1825 | } | 1913 | } | ||
| 1826 | 1914 | ||||
| @@ -1832,6 +1920,8 @@ var xObjectSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||||
| 1832 | // the data is being overwritten by a call to g_object_set_qdata() | 1920 | // the data is being overwritten by a call to g_object_set_qdata() | ||
| 1833 | // with the same @quark. | 1921 | // with the same @quark. | ||
| 1834 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1922 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1923 | + | core.LazyRegister(&xObjectSetQdataFull, "GOBJECT", "g_object_set_qdata_full", false) | |||
| 1924 | + | ||||
| 1835 | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | 1925 | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | ||
| 1836 | } | 1926 | } | ||
| 1837 | 1927 | ||||
| @@ -1839,6 +1929,8 @@ var xObjectSetValist func(uintptr, string, []interface{}) | |||||
| 1839 | 1929 | ||||
| 1840 | // Sets properties on an object. | 1930 | // Sets properties on an object. | ||
| 1841 | func (x *Object) SetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | 1931 | func (x *Object) SetValist(FirstPropertyNameVar string, VarArgsVar []interface{}) { | ||
| 1932 | + | core.LazyRegister(&xObjectSetValist, "GOBJECT", "g_object_set_valist", false) | |||
| 1933 | + | ||||
| 1842 | xObjectSetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | 1934 | xObjectSetValist(x.GoPointer(), FirstPropertyNameVar, VarArgsVar) | ||
| 1843 | } | 1935 | } | ||
| 1844 | 1936 | ||||
| @@ -1849,6 +1941,8 @@ var xObjectSetv func(uintptr, uint, []string, []Value) | |||||
| 1849 | // valid. Warnings will be emitted and undefined behaviour may result if invalid | 1941 | // valid. Warnings will be emitted and undefined behaviour may result if invalid | ||
| 1850 | // properties are passed in. | 1942 | // properties are passed in. | ||
| 1851 | func (x *Object) Setv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | 1943 | func (x *Object) Setv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | ||
| 1944 | + | core.LazyRegister(&xObjectSetv, "GOBJECT", "g_object_setv", false) | |||
| 1945 | + | ||||
| 1852 | xObjectSetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | 1946 | xObjectSetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | ||
| 1853 | } | 1947 | } | ||
| 1854 | 1948 | ||||
| @@ -1857,6 +1951,8 @@ var xObjectStealData func(uintptr, string) uintptr | |||||
| 1857 | // Remove a specified datum from the object's data associations, | 1951 | // Remove a specified datum from the object's data associations, | ||
| 1858 | // without invoking the association's destroy handler. | 1952 | // without invoking the association's destroy handler. | ||
| 1859 | func (x *Object) StealData(KeyVar string) uintptr { | 1953 | func (x *Object) StealData(KeyVar string) uintptr { | ||
| 1954 | + | core.LazyRegister(&xObjectStealData, "GOBJECT", "g_object_steal_data", false) | |||
| 1955 | + | ||||
| 1860 | cret := xObjectStealData(x.GoPointer(), KeyVar) | 1956 | cret := xObjectStealData(x.GoPointer(), KeyVar) | ||
| 1861 | return cret | 1957 | return cret | ||
| 1862 | } | 1958 | } | ||
| @@ -1904,6 +2000,8 @@ var xObjectStealQdata func(uintptr, glib.Quark) uintptr | |||||
| 1904 | // and thus the partial string list would have been freed upon | 2000 | // and thus the partial string list would have been freed upon | ||
| 1905 | // g_object_set_qdata_full(). | 2001 | // g_object_set_qdata_full(). | ||
| 1906 | func (x *Object) StealQdata(QuarkVar glib.Quark) uintptr { | 2002 | func (x *Object) StealQdata(QuarkVar glib.Quark) uintptr { | ||
| 2003 | + | core.LazyRegister(&xObjectStealQdata, "GOBJECT", "g_object_steal_qdata", false) | |||
| 2004 | + | ||||
| 1907 | cret := xObjectStealQdata(x.GoPointer(), QuarkVar) | 2005 | cret := xObjectStealQdata(x.GoPointer(), QuarkVar) | ||
| 1908 | return cret | 2006 | return cret | ||
| 1909 | } | 2007 | } | ||
| @@ -1946,6 +2044,7 @@ var xObjectTakeRef func(uintptr) uintptr | |||||
| 1946 | // additional reference on top of that one is added. It is best to avoid | 2044 | // additional reference on top of that one is added. It is best to avoid | ||
| 1947 | // this situation. | 2045 | // this situation. | ||
| 1948 | func (x *Object) TakeRef() *Object { | 2046 | func (x *Object) TakeRef() *Object { | ||
| 2047 | + | core.LazyRegister(&xObjectTakeRef, "GOBJECT", "g_object_take_ref", false) | |||
| 1949 | var cls *Object | 2048 | var cls *Object | ||
| 1950 | 2049 | ||||
| 1951 | cret := xObjectTakeRef(x.GoPointer()) | 2050 | cret := xObjectTakeRef(x.GoPointer()) | ||
| @@ -1970,6 +2069,8 @@ var xObjectThawNotify func(uintptr) | |||||
| 1970 | // | 2069 | // | ||
| 1971 | // It is an error to call this function when the freeze count is zero. | 2070 | // It is an error to call this function when the freeze count is zero. | ||
| 1972 | func (x *Object) ThawNotify() { | 2071 | func (x *Object) ThawNotify() { | ||
| 2072 | + | core.LazyRegister(&xObjectThawNotify, "GOBJECT", "g_object_thaw_notify", false) | |||
| 2073 | + | ||||
| 1973 | xObjectThawNotify(x.GoPointer()) | 2074 | xObjectThawNotify(x.GoPointer()) | ||
| 1974 | } | 2075 | } | ||
| 1975 | 2076 | ||||
| @@ -1983,6 +2084,8 @@ var xObjectUnref func(uintptr) | |||||
| 1983 | // pointer to %NULL rather than retain a dangling pointer to a potentially | 2084 | // pointer to %NULL rather than retain a dangling pointer to a potentially | ||
| 1984 | // invalid #GObject instance. Use g_clear_object() for this. | 2085 | // invalid #GObject instance. Use g_clear_object() for this. | ||
| 1985 | func (x *Object) Unref() { | 2086 | func (x *Object) Unref() { | ||
| 2087 | + | core.LazyRegister(&xObjectUnref, "GOBJECT", "g_object_unref", false) | |||
| 2088 | + | ||||
| 1986 | xObjectUnref(x.GoPointer()) | 2089 | xObjectUnref(x.GoPointer()) | ||
| 1987 | } | 2090 | } | ||
| 1988 | 2091 | ||||
| @@ -1998,6 +2101,8 @@ var xObjectWatchClosure func(uintptr, *Closure) | |||||
| 1998 | // @closure. Usually, this function will be called on closures that | 2101 | // @closure. Usually, this function will be called on closures that | ||
| 1999 | // use this @object as closure data. | 2102 | // use this @object as closure data. | ||
| 2000 | func (x *Object) WatchClosure(ClosureVar *Closure) { | 2103 | func (x *Object) WatchClosure(ClosureVar *Closure) { | ||
| 2104 | + | core.LazyRegister(&xObjectWatchClosure, "GOBJECT", "g_object_watch_closure", false) | |||
| 2105 | + | ||||
| 2001 | xObjectWatchClosure(x.GoPointer(), ClosureVar) | 2106 | xObjectWatchClosure(x.GoPointer(), ClosureVar) | ||
| 2002 | } | 2107 | } | ||
| 2003 | 2108 | ||||
| @@ -2014,6 +2119,8 @@ var xObjectWeakRef func(uintptr, uintptr, uintptr) | |||||
| 2014 | // object's last g_object_unref() might happen in another thread. | 2119 | // object's last g_object_unref() might happen in another thread. | ||
| 2015 | // Use #GWeakRef if thread-safety is required. | 2120 | // Use #GWeakRef if thread-safety is required. | ||
| 2016 | func (x *Object) WeakRef(NotifyVar *WeakNotify, DataVar uintptr) { | 2121 | func (x *Object) WeakRef(NotifyVar *WeakNotify, DataVar uintptr) { | ||
| 2122 | + | core.LazyRegister(&xObjectWeakRef, "GOBJECT", "g_object_weak_ref", false) | |||
| 2123 | + | ||||
| 2017 | xObjectWeakRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | 2124 | xObjectWeakRef(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | ||
| 2018 | } | 2125 | } | ||
| 2019 | 2126 | ||||
| @@ -2021,6 +2128,8 @@ var xObjectWeakUnref func(uintptr, uintptr, uintptr) | |||||
| 2021 | 2128 | ||||
| 2022 | // Removes a weak reference callback to an object. | 2129 | // Removes a weak reference callback to an object. | ||
| 2023 | func (x *Object) WeakUnref(NotifyVar *WeakNotify, DataVar uintptr) { | 2130 | func (x *Object) WeakUnref(NotifyVar *WeakNotify, DataVar uintptr) { | ||
| 2131 | + | core.LazyRegister(&xObjectWeakUnref, "GOBJECT", "g_object_weak_unref", false) | |||
| 2132 | + | ||||
| 2024 | xObjectWeakUnref(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | 2133 | xObjectWeakUnref(x.GoPointer(), glib.NewCallbackNullable(NotifyVar), DataVar) | ||
| 2025 | } | 2134 | } | ||
| 2026 | 2135 | ||||
| @@ -2087,6 +2196,8 @@ func (x *Object) ConnectNotify(cb *func(Object, uintptr)) uint { | |||||
| 2087 | var xObjectCompatControl func(uint, uintptr) uint | 2196 | var xObjectCompatControl func(uint, uintptr) uint | ||
| 2088 | 2197 | ||||
| 2089 | func ObjectCompatControl(WhatVar uint, DataVar uintptr) uint { | 2198 | func ObjectCompatControl(WhatVar uint, DataVar uintptr) uint { | ||
| 2199 | + | core.LazyRegister(&xObjectCompatControl, "GOBJECT", "g_object_compat_control", false) | |||
| 2200 | + | ||||
| 2090 | cret := xObjectCompatControl(WhatVar, DataVar) | 2201 | cret := xObjectCompatControl(WhatVar, DataVar) | ||
| 2091 | return cret | 2202 | return cret | ||
| 2092 | } | 2203 | } | ||
| @@ -2099,6 +2210,7 @@ var xObjectInterfaceFindProperty func(*TypeInterface, string) uintptr | |||||
| 2099 | // if you know the interface has already been loaded, | 2210 | // if you know the interface has already been loaded, | ||
| 2100 | // g_type_default_interface_peek(). | 2211 | // g_type_default_interface_peek(). | ||
| 2101 | func ObjectInterfaceFindProperty(GIfaceVar *TypeInterface, PropertyNameVar string) *ParamSpec { | 2212 | func ObjectInterfaceFindProperty(GIfaceVar *TypeInterface, PropertyNameVar string) *ParamSpec { | ||
| 2213 | + | core.LazyRegister(&xObjectInterfaceFindProperty, "GOBJECT", "g_object_interface_find_property", false) | |||
| 2102 | var cls *ParamSpec | 2214 | var cls *ParamSpec | ||
| 2103 | 2215 | ||||
| 2104 | cret := xObjectInterfaceFindProperty(GIfaceVar, PropertyNameVar) | 2216 | cret := xObjectInterfaceFindProperty(GIfaceVar, PropertyNameVar) | ||
| @@ -2131,6 +2243,8 @@ var xObjectInterfaceInstallProperty func(*TypeInterface, uintptr) | |||||
| 2131 | // | 2243 | // | ||
| 2132 | // If @pspec is a floating reference, it will be consumed. | 2244 | // If @pspec is a floating reference, it will be consumed. | ||
| 2133 | func ObjectInterfaceInstallProperty(GIfaceVar *TypeInterface, PspecVar *ParamSpec) { | 2245 | func ObjectInterfaceInstallProperty(GIfaceVar *TypeInterface, PspecVar *ParamSpec) { | ||
| 2246 | + | core.LazyRegister(&xObjectInterfaceInstallProperty, "GOBJECT", "g_object_interface_install_property", false) | |||
| 2247 | + | ||||
| 2134 | xObjectInterfaceInstallProperty(GIfaceVar, PspecVar.GoPointer()) | 2248 | xObjectInterfaceInstallProperty(GIfaceVar, PspecVar.GoPointer()) | ||
| 2135 | } | 2249 | } | ||
| 2136 | 2250 | ||||
| @@ -2141,6 +2255,8 @@ var xObjectInterfaceListProperties func(*TypeInterface, *uint) uintptr | |||||
| 2141 | // g_type_default_interface_ref(), or, if you know the interface has | 2255 | // g_type_default_interface_ref(), or, if you know the interface has | ||
| 2142 | // already been loaded, g_type_default_interface_peek(). | 2256 | // already been loaded, g_type_default_interface_peek(). | ||
| 2143 | func ObjectInterfaceListProperties(GIfaceVar *TypeInterface, NPropertiesPVar *uint) uintptr { | 2257 | func ObjectInterfaceListProperties(GIfaceVar *TypeInterface, NPropertiesPVar *uint) uintptr { | ||
| 2258 | + | core.LazyRegister(&xObjectInterfaceListProperties, "GOBJECT", "g_object_interface_list_properties", false) | |||
| 2259 | + | ||||
| 2144 | cret := xObjectInterfaceListProperties(GIfaceVar, NPropertiesPVar) | 2260 | cret := xObjectInterfaceListProperties(GIfaceVar, NPropertiesPVar) | ||
| 2145 | return cret | 2261 | return cret | ||
| 2146 | } | 2262 | } | ||
| @@ -2148,86 +2264,4 @@ func ObjectInterfaceListProperties(GIfaceVar *TypeInterface, NPropertiesPVar *ui | |||||
| 2148 | func init() { | 2264 | func init() { | ||
| 2149 | core.SetPackageName("GOBJECT", "gobject-2.0") | 2265 | core.SetPackageName("GOBJECT", "gobject-2.0") | ||
| 2150 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | 2266 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | ||
| 2151 | - | var libs []uintptr | |||
| 2152 | - | for _, libPath := range core.GetPaths("GOBJECT") { | |||
| 2153 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2154 | - | if err != nil { | |||
| 2155 | - | panic(err) | |||
| 2156 | - | } | |||
| 2157 | - | libs = append(libs, lib) | |||
| 2158 | - | } | |||
| 2159 | - | ||||
| 2160 | - | core.PuregoSafeRegister(&xCclosureNewObject, libs, "g_cclosure_new_object") | |||
| 2161 | - | core.PuregoSafeRegister(&xCclosureNewObjectSwap, libs, "g_cclosure_new_object_swap") | |||
| 2162 | - | core.PuregoSafeRegister(&xClearObject, libs, "g_clear_object") | |||
| 2163 | - | core.PuregoSafeRegister(&xSignalConnectObject, libs, "g_signal_connect_object") | |||
| 2164 | - | ||||
| 2165 | - | core.PuregoSafeRegister(&xObjectClassFindProperty, libs, "g_object_class_find_property") | |||
| 2166 | - | core.PuregoSafeRegister(&xObjectClassInstallProperties, libs, "g_object_class_install_properties") | |||
| 2167 | - | core.PuregoSafeRegister(&xObjectClassInstallProperty, libs, "g_object_class_install_property") | |||
| 2168 | - | core.PuregoSafeRegister(&xObjectClassListProperties, libs, "g_object_class_list_properties") | |||
| 2169 | - | core.PuregoSafeRegister(&xObjectClassOverrideProperty, libs, "g_object_class_override_property") | |||
| 2170 | - | ||||
| 2171 | - | core.PuregoSafeRegister(&xWeakRefClear, libs, "g_weak_ref_clear") | |||
| 2172 | - | core.PuregoSafeRegister(&xWeakRefGet, libs, "g_weak_ref_get") | |||
| 2173 | - | core.PuregoSafeRegister(&xWeakRefInit, libs, "g_weak_ref_init") | |||
| 2174 | - | core.PuregoSafeRegister(&xWeakRefSet, libs, "g_weak_ref_set") | |||
| 2175 | - | ||||
| 2176 | - | core.PuregoSafeRegister(&xInitiallyUnownedGLibType, libs, "g_initially_unowned_get_type") | |||
| 2177 | - | ||||
| 2178 | - | core.PuregoSafeRegister(&xObjectGLibType, libs, "g_object_get_type") | |||
| 2179 | - | ||||
| 2180 | - | core.PuregoSafeRegister(&xNewObject, libs, "g_object_new") | |||
| 2181 | - | core.PuregoSafeRegister(&xNewObjectValist, libs, "g_object_new_valist") | |||
| 2182 | - | core.PuregoSafeRegister(&xNewObjectWithProperties, libs, "g_object_new_with_properties") | |||
| 2183 | - | core.PuregoSafeRegister(&xNewObjectv, libs, "g_object_newv") | |||
| 2184 | - | ||||
| 2185 | - | core.PuregoSafeRegister(&xObjectAddToggleRef, libs, "g_object_add_toggle_ref") | |||
| 2186 | - | core.PuregoSafeRegister(&xObjectAddWeakPointer, libs, "g_object_add_weak_pointer") | |||
| 2187 | - | core.PuregoSafeRegister(&xObjectBindProperty, libs, "g_object_bind_property") | |||
| 2188 | - | core.PuregoSafeRegister(&xObjectBindPropertyFull, libs, "g_object_bind_property_full") | |||
| 2189 | - | core.PuregoSafeRegister(&xObjectBindPropertyWithClosures, libs, "g_object_bind_property_with_closures") | |||
| 2190 | - | core.PuregoSafeRegister(&xObjectConnect, libs, "g_object_connect") | |||
| 2191 | - | core.PuregoSafeRegister(&xObjectDisconnect, libs, "g_object_disconnect") | |||
| 2192 | - | core.PuregoSafeRegister(&xObjectDupData, libs, "g_object_dup_data") | |||
| 2193 | - | core.PuregoSafeRegister(&xObjectDupQdata, libs, "g_object_dup_qdata") | |||
| 2194 | - | core.PuregoSafeRegister(&xObjectForceFloating, libs, "g_object_force_floating") | |||
| 2195 | - | core.PuregoSafeRegister(&xObjectFreezeNotify, libs, "g_object_freeze_notify") | |||
| 2196 | - | core.PuregoSafeRegister(&xObjectGet, libs, "g_object_get") | |||
| 2197 | - | core.PuregoSafeRegister(&xObjectGetData, libs, "g_object_get_data") | |||
| 2198 | - | core.PuregoSafeRegister(&xObjectGetProperty, libs, "g_object_get_property") | |||
| 2199 | - | core.PuregoSafeRegister(&xObjectGetQdata, libs, "g_object_get_qdata") | |||
| 2200 | - | core.PuregoSafeRegister(&xObjectGetValist, libs, "g_object_get_valist") | |||
| 2201 | - | core.PuregoSafeRegister(&xObjectGetv, libs, "g_object_getv") | |||
| 2202 | - | core.PuregoSafeRegister(&xObjectIsFloating, libs, "g_object_is_floating") | |||
| 2203 | - | core.PuregoSafeRegister(&xObjectNotify, libs, "g_object_notify") | |||
| 2204 | - | core.PuregoSafeRegister(&xObjectNotifyByPspec, libs, "g_object_notify_by_pspec") | |||
| 2205 | - | core.PuregoSafeRegister(&xObjectRef, libs, "g_object_ref") | |||
| 2206 | - | core.PuregoSafeRegister(&xObjectRefSink, libs, "g_object_ref_sink") | |||
| 2207 | - | core.PuregoSafeRegister(&xObjectRemoveToggleRef, libs, "g_object_remove_toggle_ref") | |||
| 2208 | - | core.PuregoSafeRegister(&xObjectRemoveWeakPointer, libs, "g_object_remove_weak_pointer") | |||
| 2209 | - | core.PuregoSafeRegister(&xObjectReplaceData, libs, "g_object_replace_data") | |||
| 2210 | - | core.PuregoSafeRegister(&xObjectReplaceQdata, libs, "g_object_replace_qdata") | |||
| 2211 | - | core.PuregoSafeRegister(&xObjectRunDispose, libs, "g_object_run_dispose") | |||
| 2212 | - | core.PuregoSafeRegister(&xObjectSet, libs, "g_object_set") | |||
| 2213 | - | core.PuregoSafeRegister(&xObjectSetData, libs, "g_object_set_data") | |||
| 2214 | - | core.PuregoSafeRegister(&xObjectSetDataFull, libs, "g_object_set_data_full") | |||
| 2215 | - | core.PuregoSafeRegister(&xObjectSetProperty, libs, "g_object_set_property") | |||
| 2216 | - | core.PuregoSafeRegister(&xObjectSetQdata, libs, "g_object_set_qdata") | |||
| 2217 | - | core.PuregoSafeRegister(&xObjectSetQdataFull, libs, "g_object_set_qdata_full") | |||
| 2218 | - | core.PuregoSafeRegister(&xObjectSetValist, libs, "g_object_set_valist") | |||
| 2219 | - | core.PuregoSafeRegister(&xObjectSetv, libs, "g_object_setv") | |||
| 2220 | - | core.PuregoSafeRegister(&xObjectStealData, libs, "g_object_steal_data") | |||
| 2221 | - | core.PuregoSafeRegister(&xObjectStealQdata, libs, "g_object_steal_qdata") | |||
| 2222 | - | core.PuregoSafeRegister(&xObjectTakeRef, libs, "g_object_take_ref") | |||
| 2223 | - | core.PuregoSafeRegister(&xObjectThawNotify, libs, "g_object_thaw_notify") | |||
| 2224 | - | core.PuregoSafeRegister(&xObjectUnref, libs, "g_object_unref") | |||
| 2225 | - | core.PuregoSafeRegister(&xObjectWatchClosure, libs, "g_object_watch_closure") | |||
| 2226 | - | core.PuregoSafeRegister(&xObjectWeakRef, libs, "g_object_weak_ref") | |||
| 2227 | - | core.PuregoSafeRegister(&xObjectWeakUnref, libs, "g_object_weak_unref") | |||
| 2228 | - | ||||
| 2229 | - | core.PuregoSafeRegister(&xObjectCompatControl, libs, "g_object_compat_control") | |||
| 2230 | - | core.PuregoSafeRegister(&xObjectInterfaceFindProperty, libs, "g_object_interface_find_property") | |||
| 2231 | - | core.PuregoSafeRegister(&xObjectInterfaceInstallProperty, libs, "g_object_interface_install_property") | |||
| 2232 | - | core.PuregoSafeRegister(&xObjectInterfaceListProperties, libs, "g_object_interface_list_properties") | |||
| 2233 | } | 2267 | } | ||