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 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +54 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +46 -79 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +79 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +136 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +15 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +26 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +141 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +21 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +6 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/main.go +10 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/more.go +8 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +61 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +21 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +135 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +35 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +49 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +37 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +67 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +17 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +33 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +53 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +69 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +69 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +8 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +24 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +4 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +65 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +8 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +12 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +19 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +18 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +12 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +26 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +20 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +5 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +13 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +237 -153 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +70 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +18 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +159 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +21 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +40 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +31 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +19 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +24 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +8 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +26 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +48 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +7 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +28 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +18 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +28 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +35 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +8 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +14 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +28 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +40 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +87 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +10 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +19 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +68 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +56 -42 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +4 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +21 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +19 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +23 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +33 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +17 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +47 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +36 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +7 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +51 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +24 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +22 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +20 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +18 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +22 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +5 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +21 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +8 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +14 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +12 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +35 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +22 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +173 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +8 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +119 -76 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +22 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +45 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +70 -147 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +24 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +9 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +29 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +50 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +177 -68 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +10 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +54 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +19 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +18 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +7 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +79 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +132 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +32 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +30 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +16 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +33 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +17 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +13 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +39 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +45 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +43 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +34 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +123 -78 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +37 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +31 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +6 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +32 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +45 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +98 -64 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +11 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +29 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +88 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +41 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +29 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +16 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +69 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +53 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +11 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +10 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +9 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +34 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +87 -64 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +12 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +17 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +11 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +7 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +47 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +8 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +32 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +50 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +39 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +41 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +19 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +14 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +36 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +48 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +57 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +65 -54 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +19 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +145 -89
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -144,6 +143,7 @@ type PrintSettings struct { | |||
| 144 | 143 | var xPrintSettingsGLibType func() types.GType | |
| 145 | 144 | ||
| 146 | 145 | func PrintSettingsGLibType() types.GType { | |
| 146 | + | core.LazyRegister(&xPrintSettingsGLibType, "GTK", "gtk_print_settings_get_type", false) | |
| 147 | 147 | return xPrintSettingsGLibType() | |
| 148 | 148 | } | |
| 149 | 149 | ||
| @@ -157,6 +157,7 @@ var xNewPrintSettings func() uintptr | |||
| 157 | 157 | ||
| 158 | 158 | // Creates a new `GtkPrintSettings` object. | |
| 159 | 159 | func NewPrintSettings() *PrintSettings { | |
| 160 | + | core.LazyRegister(&xNewPrintSettings, "GTK", "gtk_print_settings_new", false) | |
| 160 | 161 | var cls *PrintSettings | |
| 161 | 162 | ||
| 162 | 163 | cret := xNewPrintSettings() | |
| @@ -179,6 +180,7 @@ var xNewPrintSettingsFromFile func(string, **glib.Error) uintptr | |||
| 179 | 180 | // | |
| 180 | 181 | // See [method@Gtk.PrintSettings.to_file]. | |
| 181 | 182 | func NewPrintSettingsFromFile(FileNameVar string) (*PrintSettings, error) { | |
| 183 | + | core.LazyRegister(&xNewPrintSettingsFromFile, "GTK", "gtk_print_settings_new_from_file", false) | |
| 182 | 184 | var cls *PrintSettings | |
| 183 | 185 | var cerr *glib.Error | |
| 184 | 186 | ||
| @@ -202,6 +204,7 @@ var xNewPrintSettingsFromGvariant func(*glib.Variant) uintptr | |||
| 202 | 204 | // The variant must be in the format produced by | |
| 203 | 205 | // [method@Gtk.PrintSettings.to_gvariant]. | |
| 204 | 206 | func NewPrintSettingsFromGvariant(VariantVar *glib.Variant) *PrintSettings { | |
| 207 | + | core.LazyRegister(&xNewPrintSettingsFromGvariant, "GTK", "gtk_print_settings_new_from_gvariant", false) | |
| 205 | 208 | var cls *PrintSettings | |
| 206 | 209 | ||
| 207 | 210 | cret := xNewPrintSettingsFromGvariant(VariantVar) | |
| @@ -222,6 +225,7 @@ var xNewPrintSettingsFromKeyFile func(*glib.KeyFile, uintptr, **glib.Error) uint | |||
| 222 | 225 | // or %NULL if an error occurred. If the file could not be loaded then | |
| 223 | 226 | // error is set to either `GFileError` or `GKeyFileError`. | |
| 224 | 227 | func NewPrintSettingsFromKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (*PrintSettings, error) { | |
| 228 | + | core.LazyRegister(&xNewPrintSettingsFromKeyFile, "GTK", "gtk_print_settings_new_from_key_file", false) | |
| 225 | 229 | var cls *PrintSettings | |
| 226 | 230 | var cerr *glib.Error | |
| 227 | 231 | ||
| @@ -245,6 +249,7 @@ var xPrintSettingsCopy func(uintptr) uintptr | |||
| 245 | 249 | ||
| 246 | 250 | // Copies a `GtkPrintSettings` object. | |
| 247 | 251 | func (x *PrintSettings) Copy() *PrintSettings { | |
| 252 | + | core.LazyRegister(&xPrintSettingsCopy, "GTK", "gtk_print_settings_copy", false) | |
| 248 | 253 | var cls *PrintSettings | |
| 249 | 254 | ||
| 250 | 255 | cret := xPrintSettingsCopy(x.GoPointer()) | |
| @@ -261,6 +266,8 @@ var xPrintSettingsForeach func(uintptr, uintptr, uintptr) | |||
| 261 | 266 | ||
| 262 | 267 | // Calls @func for each key-value pair of @settings. | |
| 263 | 268 | func (x *PrintSettings) Foreach(FuncVar *PrintSettingsFunc, UserDataVar uintptr) { | |
| 269 | + | core.LazyRegister(&xPrintSettingsForeach, "GTK", "gtk_print_settings_foreach", false) | |
| 270 | + | ||
| 264 | 271 | xPrintSettingsForeach(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar) | |
| 265 | 272 | } | |
| 266 | 273 | ||
| @@ -268,6 +275,8 @@ var xPrintSettingsGet func(uintptr, string) string | |||
| 268 | 275 | ||
| 269 | 276 | // Looks up the string value associated with @key. | |
| 270 | 277 | func (x *PrintSettings) Get(KeyVar string) string { | |
| 278 | + | core.LazyRegister(&xPrintSettingsGet, "GTK", "gtk_print_settings_get", false) | |
| 279 | + | ||
| 271 | 280 | cret := xPrintSettingsGet(x.GoPointer(), KeyVar) | |
| 272 | 281 | return cret | |
| 273 | 282 | } | |
| @@ -280,6 +289,8 @@ var xPrintSettingsGetBool func(uintptr, string) bool | |||
| 280 | 289 | // The string “true” represents %TRUE, any other | |
| 281 | 290 | // string %FALSE. | |
| 282 | 291 | func (x *PrintSettings) GetBool(KeyVar string) bool { | |
| 292 | + | core.LazyRegister(&xPrintSettingsGetBool, "GTK", "gtk_print_settings_get_bool", false) | |
| 293 | + | ||
| 283 | 294 | cret := xPrintSettingsGetBool(x.GoPointer(), KeyVar) | |
| 284 | 295 | return cret | |
| 285 | 296 | } | |
| @@ -288,6 +299,8 @@ var xPrintSettingsGetCollate func(uintptr) bool | |||
| 288 | 299 | ||
| 289 | 300 | // Gets the value of %GTK_PRINT_SETTINGS_COLLATE. | |
| 290 | 301 | func (x *PrintSettings) GetCollate() bool { | |
| 302 | + | core.LazyRegister(&xPrintSettingsGetCollate, "GTK", "gtk_print_settings_get_collate", false) | |
| 303 | + | ||
| 291 | 304 | cret := xPrintSettingsGetCollate(x.GoPointer()) | |
| 292 | 305 | return cret | |
| 293 | 306 | } | |
| @@ -296,6 +309,8 @@ var xPrintSettingsGetDefaultSource func(uintptr) string | |||
| 296 | 309 | ||
| 297 | 310 | // Gets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | |
| 298 | 311 | func (x *PrintSettings) GetDefaultSource() string { | |
| 312 | + | core.LazyRegister(&xPrintSettingsGetDefaultSource, "GTK", "gtk_print_settings_get_default_source", false) | |
| 313 | + | ||
| 299 | 314 | cret := xPrintSettingsGetDefaultSource(x.GoPointer()) | |
| 300 | 315 | return cret | |
| 301 | 316 | } | |
| @@ -304,6 +319,8 @@ var xPrintSettingsGetDither func(uintptr) string | |||
| 304 | 319 | ||
| 305 | 320 | // Gets the value of %GTK_PRINT_SETTINGS_DITHER. | |
| 306 | 321 | func (x *PrintSettings) GetDither() string { | |
| 322 | + | core.LazyRegister(&xPrintSettingsGetDither, "GTK", "gtk_print_settings_get_dither", false) | |
| 323 | + | ||
| 307 | 324 | cret := xPrintSettingsGetDither(x.GoPointer()) | |
| 308 | 325 | return cret | |
| 309 | 326 | } | |
| @@ -312,6 +329,8 @@ var xPrintSettingsGetDouble func(uintptr, string) float64 | |||
| 312 | 329 | ||
| 313 | 330 | // Returns the double value associated with @key, or 0. | |
| 314 | 331 | func (x *PrintSettings) GetDouble(KeyVar string) float64 { | |
| 332 | + | core.LazyRegister(&xPrintSettingsGetDouble, "GTK", "gtk_print_settings_get_double", false) | |
| 333 | + | ||
| 315 | 334 | cret := xPrintSettingsGetDouble(x.GoPointer(), KeyVar) | |
| 316 | 335 | return cret | |
| 317 | 336 | } | |
| @@ -324,6 +343,8 @@ var xPrintSettingsGetDoubleWithDefault func(uintptr, string, float64) float64 | |||
| 324 | 343 | // | |
| 325 | 344 | // Floating point numbers are parsed with g_ascii_strtod(). | |
| 326 | 345 | func (x *PrintSettings) GetDoubleWithDefault(KeyVar string, DefVar float64) float64 { | |
| 346 | + | core.LazyRegister(&xPrintSettingsGetDoubleWithDefault, "GTK", "gtk_print_settings_get_double_with_default", false) | |
| 347 | + | ||
| 327 | 348 | cret := xPrintSettingsGetDoubleWithDefault(x.GoPointer(), KeyVar, DefVar) | |
| 328 | 349 | return cret | |
| 329 | 350 | } | |
| @@ -332,6 +353,8 @@ var xPrintSettingsGetDuplex func(uintptr) PrintDuplex | |||
| 332 | 353 | ||
| 333 | 354 | // Gets the value of %GTK_PRINT_SETTINGS_DUPLEX. | |
| 334 | 355 | func (x *PrintSettings) GetDuplex() PrintDuplex { | |
| 356 | + | core.LazyRegister(&xPrintSettingsGetDuplex, "GTK", "gtk_print_settings_get_duplex", false) | |
| 357 | + | ||
| 335 | 358 | cret := xPrintSettingsGetDuplex(x.GoPointer()) | |
| 336 | 359 | return cret | |
| 337 | 360 | } | |
| @@ -340,6 +363,8 @@ var xPrintSettingsGetFinishings func(uintptr) string | |||
| 340 | 363 | ||
| 341 | 364 | // Gets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | |
| 342 | 365 | func (x *PrintSettings) GetFinishings() string { | |
| 366 | + | core.LazyRegister(&xPrintSettingsGetFinishings, "GTK", "gtk_print_settings_get_finishings", false) | |
| 367 | + | ||
| 343 | 368 | cret := xPrintSettingsGetFinishings(x.GoPointer()) | |
| 344 | 369 | return cret | |
| 345 | 370 | } | |
| @@ -348,6 +373,8 @@ var xPrintSettingsGetInt func(uintptr, string) int | |||
| 348 | 373 | ||
| 349 | 374 | // Returns the integer value of @key, or 0. | |
| 350 | 375 | func (x *PrintSettings) GetInt(KeyVar string) int { | |
| 376 | + | core.LazyRegister(&xPrintSettingsGetInt, "GTK", "gtk_print_settings_get_int", false) | |
| 377 | + | ||
| 351 | 378 | cret := xPrintSettingsGetInt(x.GoPointer(), KeyVar) | |
| 352 | 379 | return cret | |
| 353 | 380 | } | |
| @@ -357,6 +384,8 @@ var xPrintSettingsGetIntWithDefault func(uintptr, string, int) int | |||
| 357 | 384 | // Returns the value of @key, interpreted as | |
| 358 | 385 | // an integer, or the default value. | |
| 359 | 386 | func (x *PrintSettings) GetIntWithDefault(KeyVar string, DefVar int) int { | |
| 387 | + | core.LazyRegister(&xPrintSettingsGetIntWithDefault, "GTK", "gtk_print_settings_get_int_with_default", false) | |
| 388 | + | ||
| 360 | 389 | cret := xPrintSettingsGetIntWithDefault(x.GoPointer(), KeyVar, DefVar) | |
| 361 | 390 | return cret | |
| 362 | 391 | } | |
| @@ -368,6 +397,8 @@ var xPrintSettingsGetLength func(uintptr, string, Unit) float64 | |||
| 368 | 397 | // | |
| 369 | 398 | // The returned value is converted to @units. | |
| 370 | 399 | func (x *PrintSettings) GetLength(KeyVar string, UnitVar Unit) float64 { | |
| 400 | + | core.LazyRegister(&xPrintSettingsGetLength, "GTK", "gtk_print_settings_get_length", false) | |
| 401 | + | ||
| 371 | 402 | cret := xPrintSettingsGetLength(x.GoPointer(), KeyVar, UnitVar) | |
| 372 | 403 | return cret | |
| 373 | 404 | } | |
| @@ -378,6 +409,8 @@ var xPrintSettingsGetMediaType func(uintptr) string | |||
| 378 | 409 | // | |
| 379 | 410 | // The set of media types is defined in PWG 5101.1-2002 PWG. | |
| 380 | 411 | func (x *PrintSettings) GetMediaType() string { | |
| 412 | + | core.LazyRegister(&xPrintSettingsGetMediaType, "GTK", "gtk_print_settings_get_media_type", false) | |
| 413 | + | ||
| 381 | 414 | cret := xPrintSettingsGetMediaType(x.GoPointer()) | |
| 382 | 415 | return cret | |
| 383 | 416 | } | |
| @@ -386,6 +419,8 @@ var xPrintSettingsGetNCopies func(uintptr) int | |||
| 386 | 419 | ||
| 387 | 420 | // Gets the value of %GTK_PRINT_SETTINGS_N_COPIES. | |
| 388 | 421 | func (x *PrintSettings) GetNCopies() int { | |
| 422 | + | core.LazyRegister(&xPrintSettingsGetNCopies, "GTK", "gtk_print_settings_get_n_copies", false) | |
| 423 | + | ||
| 389 | 424 | cret := xPrintSettingsGetNCopies(x.GoPointer()) | |
| 390 | 425 | return cret | |
| 391 | 426 | } | |
| @@ -394,6 +429,8 @@ var xPrintSettingsGetNumberUp func(uintptr) int | |||
| 394 | 429 | ||
| 395 | 430 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | |
| 396 | 431 | func (x *PrintSettings) GetNumberUp() int { | |
| 432 | + | core.LazyRegister(&xPrintSettingsGetNumberUp, "GTK", "gtk_print_settings_get_number_up", false) | |
| 433 | + | ||
| 397 | 434 | cret := xPrintSettingsGetNumberUp(x.GoPointer()) | |
| 398 | 435 | return cret | |
| 399 | 436 | } | |
| @@ -402,6 +439,8 @@ var xPrintSettingsGetNumberUpLayout func(uintptr) NumberUpLayout | |||
| 402 | 439 | ||
| 403 | 440 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | |
| 404 | 441 | func (x *PrintSettings) GetNumberUpLayout() NumberUpLayout { | |
| 442 | + | core.LazyRegister(&xPrintSettingsGetNumberUpLayout, "GTK", "gtk_print_settings_get_number_up_layout", false) | |
| 443 | + | ||
| 405 | 444 | cret := xPrintSettingsGetNumberUpLayout(x.GoPointer()) | |
| 406 | 445 | return cret | |
| 407 | 446 | } | |
| @@ -411,6 +450,8 @@ var xPrintSettingsGetOrientation func(uintptr) PageOrientation | |||
| 411 | 450 | // Get the value of %GTK_PRINT_SETTINGS_ORIENTATION, | |
| 412 | 451 | // converted to a `GtkPageOrientation`. | |
| 413 | 452 | func (x *PrintSettings) GetOrientation() PageOrientation { | |
| 453 | + | core.LazyRegister(&xPrintSettingsGetOrientation, "GTK", "gtk_print_settings_get_orientation", false) | |
| 454 | + | ||
| 414 | 455 | cret := xPrintSettingsGetOrientation(x.GoPointer()) | |
| 415 | 456 | return cret | |
| 416 | 457 | } | |
| @@ -419,6 +460,8 @@ var xPrintSettingsGetOutputBin func(uintptr) string | |||
| 419 | 460 | ||
| 420 | 461 | // Gets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | |
| 421 | 462 | func (x *PrintSettings) GetOutputBin() string { | |
| 463 | + | core.LazyRegister(&xPrintSettingsGetOutputBin, "GTK", "gtk_print_settings_get_output_bin", false) | |
| 464 | + | ||
| 422 | 465 | cret := xPrintSettingsGetOutputBin(x.GoPointer()) | |
| 423 | 466 | return cret | |
| 424 | 467 | } | |
| @@ -427,6 +470,8 @@ var xPrintSettingsGetPageRanges func(uintptr, *int) uintptr | |||
| 427 | 470 | ||
| 428 | 471 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | |
| 429 | 472 | func (x *PrintSettings) GetPageRanges(NumRangesVar *int) uintptr { | |
| 473 | + | core.LazyRegister(&xPrintSettingsGetPageRanges, "GTK", "gtk_print_settings_get_page_ranges", false) | |
| 474 | + | ||
| 430 | 475 | cret := xPrintSettingsGetPageRanges(x.GoPointer(), NumRangesVar) | |
| 431 | 476 | return cret | |
| 432 | 477 | } | |
| @@ -435,6 +480,8 @@ var xPrintSettingsGetPageSet func(uintptr) PageSet | |||
| 435 | 480 | ||
| 436 | 481 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | |
| 437 | 482 | func (x *PrintSettings) GetPageSet() PageSet { | |
| 483 | + | core.LazyRegister(&xPrintSettingsGetPageSet, "GTK", "gtk_print_settings_get_page_set", false) | |
| 484 | + | ||
| 438 | 485 | cret := xPrintSettingsGetPageSet(x.GoPointer()) | |
| 439 | 486 | return cret | |
| 440 | 487 | } | |
| @@ -444,6 +491,8 @@ var xPrintSettingsGetPaperHeight func(uintptr, Unit) float64 | |||
| 444 | 491 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT, | |
| 445 | 492 | // converted to @unit. | |
| 446 | 493 | func (x *PrintSettings) GetPaperHeight(UnitVar Unit) float64 { | |
| 494 | + | core.LazyRegister(&xPrintSettingsGetPaperHeight, "GTK", "gtk_print_settings_get_paper_height", false) | |
| 495 | + | ||
| 447 | 496 | cret := xPrintSettingsGetPaperHeight(x.GoPointer(), UnitVar) | |
| 448 | 497 | return cret | |
| 449 | 498 | } | |
| @@ -453,6 +502,8 @@ var xPrintSettingsGetPaperSize func(uintptr) uintptr | |||
| 453 | 502 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT, | |
| 454 | 503 | // converted to a `GtkPaperSize`. | |
| 455 | 504 | func (x *PrintSettings) GetPaperSize() *PaperSize { | |
| 505 | + | core.LazyRegister(&xPrintSettingsGetPaperSize, "GTK", "gtk_print_settings_get_paper_size", false) | |
| 506 | + | ||
| 456 | 507 | cret := xPrintSettingsGetPaperSize(x.GoPointer()) | |
| 457 | 508 | if cret == 0 { | |
| 458 | 509 | return nil | |
| @@ -465,6 +516,8 @@ var xPrintSettingsGetPaperWidth func(uintptr, Unit) float64 | |||
| 465 | 516 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH, | |
| 466 | 517 | // converted to @unit. | |
| 467 | 518 | func (x *PrintSettings) GetPaperWidth(UnitVar Unit) float64 { | |
| 519 | + | core.LazyRegister(&xPrintSettingsGetPaperWidth, "GTK", "gtk_print_settings_get_paper_width", false) | |
| 520 | + | ||
| 468 | 521 | cret := xPrintSettingsGetPaperWidth(x.GoPointer(), UnitVar) | |
| 469 | 522 | return cret | |
| 470 | 523 | } | |
| @@ -473,6 +526,8 @@ var xPrintSettingsGetPrintPages func(uintptr) PrintPages | |||
| 473 | 526 | ||
| 474 | 527 | // Gets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | |
| 475 | 528 | func (x *PrintSettings) GetPrintPages() PrintPages { | |
| 529 | + | core.LazyRegister(&xPrintSettingsGetPrintPages, "GTK", "gtk_print_settings_get_print_pages", false) | |
| 530 | + | ||
| 476 | 531 | cret := xPrintSettingsGetPrintPages(x.GoPointer()) | |
| 477 | 532 | return cret | |
| 478 | 533 | } | |
| @@ -482,6 +537,8 @@ var xPrintSettingsGetPrinter func(uintptr) string | |||
| 482 | 537 | // Convenience function to obtain the value of | |
| 483 | 538 | // %GTK_PRINT_SETTINGS_PRINTER. | |
| 484 | 539 | func (x *PrintSettings) GetPrinter() string { | |
| 540 | + | core.LazyRegister(&xPrintSettingsGetPrinter, "GTK", "gtk_print_settings_get_printer", false) | |
| 541 | + | ||
| 485 | 542 | cret := xPrintSettingsGetPrinter(x.GoPointer()) | |
| 486 | 543 | return cret | |
| 487 | 544 | } | |
| @@ -490,6 +547,8 @@ var xPrintSettingsGetPrinterLpi func(uintptr) float64 | |||
| 490 | 547 | ||
| 491 | 548 | // Gets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | |
| 492 | 549 | func (x *PrintSettings) GetPrinterLpi() float64 { | |
| 550 | + | core.LazyRegister(&xPrintSettingsGetPrinterLpi, "GTK", "gtk_print_settings_get_printer_lpi", false) | |
| 551 | + | ||
| 493 | 552 | cret := xPrintSettingsGetPrinterLpi(x.GoPointer()) | |
| 494 | 553 | return cret | |
| 495 | 554 | } | |
| @@ -498,6 +557,8 @@ var xPrintSettingsGetQuality func(uintptr) PrintQuality | |||
| 498 | 557 | ||
| 499 | 558 | // Gets the value of %GTK_PRINT_SETTINGS_QUALITY. | |
| 500 | 559 | func (x *PrintSettings) GetQuality() PrintQuality { | |
| 560 | + | core.LazyRegister(&xPrintSettingsGetQuality, "GTK", "gtk_print_settings_get_quality", false) | |
| 561 | + | ||
| 501 | 562 | cret := xPrintSettingsGetQuality(x.GoPointer()) | |
| 502 | 563 | return cret | |
| 503 | 564 | } | |
| @@ -506,6 +567,8 @@ var xPrintSettingsGetResolution func(uintptr) int | |||
| 506 | 567 | ||
| 507 | 568 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION. | |
| 508 | 569 | func (x *PrintSettings) GetResolution() int { | |
| 570 | + | core.LazyRegister(&xPrintSettingsGetResolution, "GTK", "gtk_print_settings_get_resolution", false) | |
| 571 | + | ||
| 509 | 572 | cret := xPrintSettingsGetResolution(x.GoPointer()) | |
| 510 | 573 | return cret | |
| 511 | 574 | } | |
| @@ -514,6 +577,8 @@ var xPrintSettingsGetResolutionX func(uintptr) int | |||
| 514 | 577 | ||
| 515 | 578 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_X. | |
| 516 | 579 | func (x *PrintSettings) GetResolutionX() int { | |
| 580 | + | core.LazyRegister(&xPrintSettingsGetResolutionX, "GTK", "gtk_print_settings_get_resolution_x", false) | |
| 581 | + | ||
| 517 | 582 | cret := xPrintSettingsGetResolutionX(x.GoPointer()) | |
| 518 | 583 | return cret | |
| 519 | 584 | } | |
| @@ -522,6 +587,8 @@ var xPrintSettingsGetResolutionY func(uintptr) int | |||
| 522 | 587 | ||
| 523 | 588 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_Y. | |
| 524 | 589 | func (x *PrintSettings) GetResolutionY() int { | |
| 590 | + | core.LazyRegister(&xPrintSettingsGetResolutionY, "GTK", "gtk_print_settings_get_resolution_y", false) | |
| 591 | + | ||
| 525 | 592 | cret := xPrintSettingsGetResolutionY(x.GoPointer()) | |
| 526 | 593 | return cret | |
| 527 | 594 | } | |
| @@ -530,6 +597,8 @@ var xPrintSettingsGetReverse func(uintptr) bool | |||
| 530 | 597 | ||
| 531 | 598 | // Gets the value of %GTK_PRINT_SETTINGS_REVERSE. | |
| 532 | 599 | func (x *PrintSettings) GetReverse() bool { | |
| 600 | + | core.LazyRegister(&xPrintSettingsGetReverse, "GTK", "gtk_print_settings_get_reverse", false) | |
| 601 | + | ||
| 533 | 602 | cret := xPrintSettingsGetReverse(x.GoPointer()) | |
| 534 | 603 | return cret | |
| 535 | 604 | } | |
| @@ -538,6 +607,8 @@ var xPrintSettingsGetScale func(uintptr) float64 | |||
| 538 | 607 | ||
| 539 | 608 | // Gets the value of %GTK_PRINT_SETTINGS_SCALE. | |
| 540 | 609 | func (x *PrintSettings) GetScale() float64 { | |
| 610 | + | core.LazyRegister(&xPrintSettingsGetScale, "GTK", "gtk_print_settings_get_scale", false) | |
| 611 | + | ||
| 541 | 612 | cret := xPrintSettingsGetScale(x.GoPointer()) | |
| 542 | 613 | return cret | |
| 543 | 614 | } | |
| @@ -546,6 +617,8 @@ var xPrintSettingsGetUseColor func(uintptr) bool | |||
| 546 | 617 | ||
| 547 | 618 | // Gets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | |
| 548 | 619 | func (x *PrintSettings) GetUseColor() bool { | |
| 620 | + | core.LazyRegister(&xPrintSettingsGetUseColor, "GTK", "gtk_print_settings_get_use_color", false) | |
| 621 | + | ||
| 549 | 622 | cret := xPrintSettingsGetUseColor(x.GoPointer()) | |
| 550 | 623 | return cret | |
| 551 | 624 | } | |
| @@ -554,6 +627,8 @@ var xPrintSettingsHasKey func(uintptr, string) bool | |||
| 554 | 627 | ||
| 555 | 628 | // Returns %TRUE, if a value is associated with @key. | |
| 556 | 629 | func (x *PrintSettings) HasKey(KeyVar string) bool { | |
| 630 | + | core.LazyRegister(&xPrintSettingsHasKey, "GTK", "gtk_print_settings_has_key", false) | |
| 631 | + | ||
| 557 | 632 | cret := xPrintSettingsHasKey(x.GoPointer(), KeyVar) | |
| 558 | 633 | return cret | |
| 559 | 634 | } | |
| @@ -567,6 +642,7 @@ var xPrintSettingsLoadFile func(uintptr, string, **glib.Error) bool | |||
| 567 | 642 | // | |
| 568 | 643 | // See [method@Gtk.PrintSettings.to_file]. | |
| 569 | 644 | func (x *PrintSettings) LoadFile(FileNameVar string) (bool, error) { | |
| 645 | + | core.LazyRegister(&xPrintSettingsLoadFile, "GTK", "gtk_print_settings_load_file", false) | |
| 570 | 646 | var cerr *glib.Error | |
| 571 | 647 | ||
| 572 | 648 | cret := xPrintSettingsLoadFile(x.GoPointer(), FileNameVar, &cerr) | |
| @@ -583,6 +659,7 @@ var xPrintSettingsLoadKeyFile func(uintptr, *glib.KeyFile, uintptr, **glib.Error | |||
| 583 | 659 | // If the file could not be loaded then error is set to either a | |
| 584 | 660 | // `GFileError` or `GKeyFileError`. | |
| 585 | 661 | func (x *PrintSettings) LoadKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (bool, error) { | |
| 662 | + | core.LazyRegister(&xPrintSettingsLoadKeyFile, "GTK", "gtk_print_settings_load_key_file", false) | |
| 586 | 663 | var cerr *glib.Error | |
| 587 | 664 | ||
| 588 | 665 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| @@ -599,6 +676,8 @@ var xPrintSettingsSet func(uintptr, string, uintptr) | |||
| 599 | 676 | ||
| 600 | 677 | // Associates @value with @key. | |
| 601 | 678 | func (x *PrintSettings) Set(KeyVar string, ValueVar *string) { | |
| 679 | + | core.LazyRegister(&xPrintSettingsSet, "GTK", "gtk_print_settings_set", false) | |
| 680 | + | ||
| 602 | 681 | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 603 | 682 | defer core.GFreeNullable(ValueVarPtr) | |
| 604 | 683 | ||
| @@ -609,6 +688,8 @@ var xPrintSettingsSetBool func(uintptr, string, bool) | |||
| 609 | 688 | ||
| 610 | 689 | // Sets @key to a boolean value. | |
| 611 | 690 | func (x *PrintSettings) SetBool(KeyVar string, ValueVar bool) { | |
| 691 | + | core.LazyRegister(&xPrintSettingsSetBool, "GTK", "gtk_print_settings_set_bool", false) | |
| 692 | + | ||
| 612 | 693 | xPrintSettingsSetBool(x.GoPointer(), KeyVar, ValueVar) | |
| 613 | 694 | } | |
| 614 | 695 | ||
| @@ -616,6 +697,8 @@ var xPrintSettingsSetCollate func(uintptr, bool) | |||
| 616 | 697 | ||
| 617 | 698 | // Sets the value of %GTK_PRINT_SETTINGS_COLLATE. | |
| 618 | 699 | func (x *PrintSettings) SetCollate(CollateVar bool) { | |
| 700 | + | core.LazyRegister(&xPrintSettingsSetCollate, "GTK", "gtk_print_settings_set_collate", false) | |
| 701 | + | ||
| 619 | 702 | xPrintSettingsSetCollate(x.GoPointer(), CollateVar) | |
| 620 | 703 | } | |
| 621 | 704 | ||
| @@ -623,6 +706,8 @@ var xPrintSettingsSetDefaultSource func(uintptr, string) | |||
| 623 | 706 | ||
| 624 | 707 | // Sets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | |
| 625 | 708 | func (x *PrintSettings) SetDefaultSource(DefaultSourceVar string) { | |
| 709 | + | core.LazyRegister(&xPrintSettingsSetDefaultSource, "GTK", "gtk_print_settings_set_default_source", false) | |
| 710 | + | ||
| 626 | 711 | xPrintSettingsSetDefaultSource(x.GoPointer(), DefaultSourceVar) | |
| 627 | 712 | } | |
| 628 | 713 | ||
| @@ -630,6 +715,8 @@ var xPrintSettingsSetDither func(uintptr, string) | |||
| 630 | 715 | ||
| 631 | 716 | // Sets the value of %GTK_PRINT_SETTINGS_DITHER. | |
| 632 | 717 | func (x *PrintSettings) SetDither(DitherVar string) { | |
| 718 | + | core.LazyRegister(&xPrintSettingsSetDither, "GTK", "gtk_print_settings_set_dither", false) | |
| 719 | + | ||
| 633 | 720 | xPrintSettingsSetDither(x.GoPointer(), DitherVar) | |
| 634 | 721 | } | |
| 635 | 722 | ||
| @@ -637,6 +724,8 @@ var xPrintSettingsSetDouble func(uintptr, string, float64) | |||
| 637 | 724 | ||
| 638 | 725 | // Sets @key to a double value. | |
| 639 | 726 | func (x *PrintSettings) SetDouble(KeyVar string, ValueVar float64) { | |
| 727 | + | core.LazyRegister(&xPrintSettingsSetDouble, "GTK", "gtk_print_settings_set_double", false) | |
| 728 | + | ||
| 640 | 729 | xPrintSettingsSetDouble(x.GoPointer(), KeyVar, ValueVar) | |
| 641 | 730 | } | |
| 642 | 731 | ||
| @@ -644,6 +733,8 @@ var xPrintSettingsSetDuplex func(uintptr, PrintDuplex) | |||
| 644 | 733 | ||
| 645 | 734 | // Sets the value of %GTK_PRINT_SETTINGS_DUPLEX. | |
| 646 | 735 | func (x *PrintSettings) SetDuplex(DuplexVar PrintDuplex) { | |
| 736 | + | core.LazyRegister(&xPrintSettingsSetDuplex, "GTK", "gtk_print_settings_set_duplex", false) | |
| 737 | + | ||
| 647 | 738 | xPrintSettingsSetDuplex(x.GoPointer(), DuplexVar) | |
| 648 | 739 | } | |
| 649 | 740 | ||
| @@ -651,6 +742,8 @@ var xPrintSettingsSetFinishings func(uintptr, string) | |||
| 651 | 742 | ||
| 652 | 743 | // Sets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | |
| 653 | 744 | func (x *PrintSettings) SetFinishings(FinishingsVar string) { | |
| 745 | + | core.LazyRegister(&xPrintSettingsSetFinishings, "GTK", "gtk_print_settings_set_finishings", false) | |
| 746 | + | ||
| 654 | 747 | xPrintSettingsSetFinishings(x.GoPointer(), FinishingsVar) | |
| 655 | 748 | } | |
| 656 | 749 | ||
| @@ -658,6 +751,8 @@ var xPrintSettingsSetInt func(uintptr, string, int) | |||
| 658 | 751 | ||
| 659 | 752 | // Sets @key to an integer value. | |
| 660 | 753 | func (x *PrintSettings) SetInt(KeyVar string, ValueVar int) { | |
| 754 | + | core.LazyRegister(&xPrintSettingsSetInt, "GTK", "gtk_print_settings_set_int", false) | |
| 755 | + | ||
| 661 | 756 | xPrintSettingsSetInt(x.GoPointer(), KeyVar, ValueVar) | |
| 662 | 757 | } | |
| 663 | 758 | ||
| @@ -665,6 +760,8 @@ var xPrintSettingsSetLength func(uintptr, string, float64, Unit) | |||
| 665 | 760 | ||
| 666 | 761 | // Associates a length in units of @unit with @key. | |
| 667 | 762 | func (x *PrintSettings) SetLength(KeyVar string, ValueVar float64, UnitVar Unit) { | |
| 763 | + | core.LazyRegister(&xPrintSettingsSetLength, "GTK", "gtk_print_settings_set_length", false) | |
| 764 | + | ||
| 668 | 765 | xPrintSettingsSetLength(x.GoPointer(), KeyVar, ValueVar, UnitVar) | |
| 669 | 766 | } | |
| 670 | 767 | ||
| @@ -674,6 +771,8 @@ var xPrintSettingsSetMediaType func(uintptr, string) | |||
| 674 | 771 | // | |
| 675 | 772 | // The set of media types is defined in PWG 5101.1-2002 PWG. | |
| 676 | 773 | func (x *PrintSettings) SetMediaType(MediaTypeVar string) { | |
| 774 | + | core.LazyRegister(&xPrintSettingsSetMediaType, "GTK", "gtk_print_settings_set_media_type", false) | |
| 775 | + | ||
| 677 | 776 | xPrintSettingsSetMediaType(x.GoPointer(), MediaTypeVar) | |
| 678 | 777 | } | |
| 679 | 778 | ||
| @@ -681,6 +780,8 @@ var xPrintSettingsSetNCopies func(uintptr, int) | |||
| 681 | 780 | ||
| 682 | 781 | // Sets the value of %GTK_PRINT_SETTINGS_N_COPIES. | |
| 683 | 782 | func (x *PrintSettings) SetNCopies(NumCopiesVar int) { | |
| 783 | + | core.LazyRegister(&xPrintSettingsSetNCopies, "GTK", "gtk_print_settings_set_n_copies", false) | |
| 784 | + | ||
| 684 | 785 | xPrintSettingsSetNCopies(x.GoPointer(), NumCopiesVar) | |
| 685 | 786 | } | |
| 686 | 787 | ||
| @@ -688,6 +789,8 @@ var xPrintSettingsSetNumberUp func(uintptr, int) | |||
| 688 | 789 | ||
| 689 | 790 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | |
| 690 | 791 | func (x *PrintSettings) SetNumberUp(NumberUpVar int) { | |
| 792 | + | core.LazyRegister(&xPrintSettingsSetNumberUp, "GTK", "gtk_print_settings_set_number_up", false) | |
| 793 | + | ||
| 691 | 794 | xPrintSettingsSetNumberUp(x.GoPointer(), NumberUpVar) | |
| 692 | 795 | } | |
| 693 | 796 | ||
| @@ -695,6 +798,8 @@ var xPrintSettingsSetNumberUpLayout func(uintptr, NumberUpLayout) | |||
| 695 | 798 | ||
| 696 | 799 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | |
| 697 | 800 | func (x *PrintSettings) SetNumberUpLayout(NumberUpLayoutVar NumberUpLayout) { | |
| 801 | + | core.LazyRegister(&xPrintSettingsSetNumberUpLayout, "GTK", "gtk_print_settings_set_number_up_layout", false) | |
| 802 | + | ||
| 698 | 803 | xPrintSettingsSetNumberUpLayout(x.GoPointer(), NumberUpLayoutVar) | |
| 699 | 804 | } | |
| 700 | 805 | ||
| @@ -702,6 +807,8 @@ var xPrintSettingsSetOrientation func(uintptr, PageOrientation) | |||
| 702 | 807 | ||
| 703 | 808 | // Sets the value of %GTK_PRINT_SETTINGS_ORIENTATION. | |
| 704 | 809 | func (x *PrintSettings) SetOrientation(OrientationVar PageOrientation) { | |
| 810 | + | core.LazyRegister(&xPrintSettingsSetOrientation, "GTK", "gtk_print_settings_set_orientation", false) | |
| 811 | + | ||
| 705 | 812 | xPrintSettingsSetOrientation(x.GoPointer(), OrientationVar) | |
| 706 | 813 | } | |
| 707 | 814 | ||
| @@ -709,6 +816,8 @@ var xPrintSettingsSetOutputBin func(uintptr, string) | |||
| 709 | 816 | ||
| 710 | 817 | // Sets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | |
| 711 | 818 | func (x *PrintSettings) SetOutputBin(OutputBinVar string) { | |
| 819 | + | core.LazyRegister(&xPrintSettingsSetOutputBin, "GTK", "gtk_print_settings_set_output_bin", false) | |
| 820 | + | ||
| 712 | 821 | xPrintSettingsSetOutputBin(x.GoPointer(), OutputBinVar) | |
| 713 | 822 | } | |
| 714 | 823 | ||
| @@ -716,6 +825,8 @@ var xPrintSettingsSetPageRanges func(uintptr, []PageRange, int) | |||
| 716 | 825 | ||
| 717 | 826 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | |
| 718 | 827 | func (x *PrintSettings) SetPageRanges(PageRangesVar []PageRange, NumRangesVar int) { | |
| 828 | + | core.LazyRegister(&xPrintSettingsSetPageRanges, "GTK", "gtk_print_settings_set_page_ranges", false) | |
| 829 | + | ||
| 719 | 830 | xPrintSettingsSetPageRanges(x.GoPointer(), PageRangesVar, NumRangesVar) | |
| 720 | 831 | } | |
| 721 | 832 | ||
| @@ -723,6 +834,8 @@ var xPrintSettingsSetPageSet func(uintptr, PageSet) | |||
| 723 | 834 | ||
| 724 | 835 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | |
| 725 | 836 | func (x *PrintSettings) SetPageSet(PageSetVar PageSet) { | |
| 837 | + | core.LazyRegister(&xPrintSettingsSetPageSet, "GTK", "gtk_print_settings_set_page_set", false) | |
| 838 | + | ||
| 726 | 839 | xPrintSettingsSetPageSet(x.GoPointer(), PageSetVar) | |
| 727 | 840 | } | |
| 728 | 841 | ||
| @@ -730,6 +843,8 @@ var xPrintSettingsSetPaperHeight func(uintptr, float64, Unit) | |||
| 730 | 843 | ||
| 731 | 844 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | |
| 732 | 845 | func (x *PrintSettings) SetPaperHeight(HeightVar float64, UnitVar Unit) { | |
| 846 | + | core.LazyRegister(&xPrintSettingsSetPaperHeight, "GTK", "gtk_print_settings_set_paper_height", false) | |
| 847 | + | ||
| 733 | 848 | xPrintSettingsSetPaperHeight(x.GoPointer(), HeightVar, UnitVar) | |
| 734 | 849 | } | |
| 735 | 850 | ||
| @@ -739,6 +854,8 @@ var xPrintSettingsSetPaperSize func(uintptr, *PaperSize) | |||
| 739 | 854 | // %GTK_PRINT_SETTINGS_PAPER_WIDTH and | |
| 740 | 855 | // %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | |
| 741 | 856 | func (x *PrintSettings) SetPaperSize(PaperSizeVar *PaperSize) { | |
| 857 | + | core.LazyRegister(&xPrintSettingsSetPaperSize, "GTK", "gtk_print_settings_set_paper_size", false) | |
| 858 | + | ||
| 742 | 859 | xPrintSettingsSetPaperSize(x.GoPointer(), PaperSizeVar) | |
| 743 | 860 | } | |
| 744 | 861 | ||
| @@ -746,6 +863,8 @@ var xPrintSettingsSetPaperWidth func(uintptr, float64, Unit) | |||
| 746 | 863 | ||
| 747 | 864 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH. | |
| 748 | 865 | func (x *PrintSettings) SetPaperWidth(WidthVar float64, UnitVar Unit) { | |
| 866 | + | core.LazyRegister(&xPrintSettingsSetPaperWidth, "GTK", "gtk_print_settings_set_paper_width", false) | |
| 867 | + | ||
| 749 | 868 | xPrintSettingsSetPaperWidth(x.GoPointer(), WidthVar, UnitVar) | |
| 750 | 869 | } | |
| 751 | 870 | ||
| @@ -753,6 +872,8 @@ var xPrintSettingsSetPrintPages func(uintptr, PrintPages) | |||
| 753 | 872 | ||
| 754 | 873 | // Sets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | |
| 755 | 874 | func (x *PrintSettings) SetPrintPages(PagesVar PrintPages) { | |
| 875 | + | core.LazyRegister(&xPrintSettingsSetPrintPages, "GTK", "gtk_print_settings_set_print_pages", false) | |
| 876 | + | ||
| 756 | 877 | xPrintSettingsSetPrintPages(x.GoPointer(), PagesVar) | |
| 757 | 878 | } | |
| 758 | 879 | ||
| @@ -761,6 +882,8 @@ var xPrintSettingsSetPrinter func(uintptr, string) | |||
| 761 | 882 | // Convenience function to set %GTK_PRINT_SETTINGS_PRINTER | |
| 762 | 883 | // to @printer. | |
| 763 | 884 | func (x *PrintSettings) SetPrinter(PrinterVar string) { | |
| 885 | + | core.LazyRegister(&xPrintSettingsSetPrinter, "GTK", "gtk_print_settings_set_printer", false) | |
| 886 | + | ||
| 764 | 887 | xPrintSettingsSetPrinter(x.GoPointer(), PrinterVar) | |
| 765 | 888 | } | |
| 766 | 889 | ||
| @@ -768,6 +891,8 @@ var xPrintSettingsSetPrinterLpi func(uintptr, float64) | |||
| 768 | 891 | ||
| 769 | 892 | // Sets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | |
| 770 | 893 | func (x *PrintSettings) SetPrinterLpi(LpiVar float64) { | |
| 894 | + | core.LazyRegister(&xPrintSettingsSetPrinterLpi, "GTK", "gtk_print_settings_set_printer_lpi", false) | |
| 895 | + | ||
| 771 | 896 | xPrintSettingsSetPrinterLpi(x.GoPointer(), LpiVar) | |
| 772 | 897 | } | |
| 773 | 898 | ||
| @@ -775,6 +900,8 @@ var xPrintSettingsSetQuality func(uintptr, PrintQuality) | |||
| 775 | 900 | ||
| 776 | 901 | // Sets the value of %GTK_PRINT_SETTINGS_QUALITY. | |
| 777 | 902 | func (x *PrintSettings) SetQuality(QualityVar PrintQuality) { | |
| 903 | + | core.LazyRegister(&xPrintSettingsSetQuality, "GTK", "gtk_print_settings_set_quality", false) | |
| 904 | + | ||
| 778 | 905 | xPrintSettingsSetQuality(x.GoPointer(), QualityVar) | |
| 779 | 906 | } | |
| 780 | 907 | ||
| @@ -784,6 +911,8 @@ var xPrintSettingsSetResolution func(uintptr, int) | |||
| 784 | 911 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | |
| 785 | 912 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | |
| 786 | 913 | func (x *PrintSettings) SetResolution(ResolutionVar int) { | |
| 914 | + | core.LazyRegister(&xPrintSettingsSetResolution, "GTK", "gtk_print_settings_set_resolution", false) | |
| 915 | + | ||
| 787 | 916 | xPrintSettingsSetResolution(x.GoPointer(), ResolutionVar) | |
| 788 | 917 | } | |
| 789 | 918 | ||
| @@ -793,6 +922,8 @@ var xPrintSettingsSetResolutionXy func(uintptr, int, int) | |||
| 793 | 922 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | |
| 794 | 923 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | |
| 795 | 924 | func (x *PrintSettings) SetResolutionXy(ResolutionXVar int, ResolutionYVar int) { | |
| 925 | + | core.LazyRegister(&xPrintSettingsSetResolutionXy, "GTK", "gtk_print_settings_set_resolution_xy", false) | |
| 926 | + | ||
| 796 | 927 | xPrintSettingsSetResolutionXy(x.GoPointer(), ResolutionXVar, ResolutionYVar) | |
| 797 | 928 | } | |
| 798 | 929 | ||
| @@ -800,6 +931,8 @@ var xPrintSettingsSetReverse func(uintptr, bool) | |||
| 800 | 931 | ||
| 801 | 932 | // Sets the value of %GTK_PRINT_SETTINGS_REVERSE. | |
| 802 | 933 | func (x *PrintSettings) SetReverse(ReverseVar bool) { | |
| 934 | + | core.LazyRegister(&xPrintSettingsSetReverse, "GTK", "gtk_print_settings_set_reverse", false) | |
| 935 | + | ||
| 803 | 936 | xPrintSettingsSetReverse(x.GoPointer(), ReverseVar) | |
| 804 | 937 | } | |
| 805 | 938 | ||
| @@ -807,6 +940,8 @@ var xPrintSettingsSetScale func(uintptr, float64) | |||
| 807 | 940 | ||
| 808 | 941 | // Sets the value of %GTK_PRINT_SETTINGS_SCALE. | |
| 809 | 942 | func (x *PrintSettings) SetScale(ScaleVar float64) { | |
| 943 | + | core.LazyRegister(&xPrintSettingsSetScale, "GTK", "gtk_print_settings_set_scale", false) | |
| 944 | + | ||
| 810 | 945 | xPrintSettingsSetScale(x.GoPointer(), ScaleVar) | |
| 811 | 946 | } | |
| 812 | 947 | ||
| @@ -814,6 +949,8 @@ var xPrintSettingsSetUseColor func(uintptr, bool) | |||
| 814 | 949 | ||
| 815 | 950 | // Sets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | |
| 816 | 951 | func (x *PrintSettings) SetUseColor(UseColorVar bool) { | |
| 952 | + | core.LazyRegister(&xPrintSettingsSetUseColor, "GTK", "gtk_print_settings_set_use_color", false) | |
| 953 | + | ||
| 817 | 954 | xPrintSettingsSetUseColor(x.GoPointer(), UseColorVar) | |
| 818 | 955 | } | |
| 819 | 956 | ||
| @@ -824,6 +961,7 @@ var xPrintSettingsToFile func(uintptr, string, **glib.Error) bool | |||
| 824 | 961 | // If the file could not be written then error is set to either a | |
| 825 | 962 | // `GFileError` or `GKeyFileError`. | |
| 826 | 963 | func (x *PrintSettings) ToFile(FileNameVar string) (bool, error) { | |
| 964 | + | core.LazyRegister(&xPrintSettingsToFile, "GTK", "gtk_print_settings_to_file", false) | |
| 827 | 965 | var cerr *glib.Error | |
| 828 | 966 | ||
| 829 | 967 | cret := xPrintSettingsToFile(x.GoPointer(), FileNameVar, &cerr) | |
| @@ -837,6 +975,8 @@ var xPrintSettingsToGvariant func(uintptr) uintptr | |||
| 837 | 975 | ||
| 838 | 976 | // Serialize print settings to an a{sv} variant. | |
| 839 | 977 | func (x *PrintSettings) ToGvariant() *glib.Variant { | |
| 978 | + | core.LazyRegister(&xPrintSettingsToGvariant, "GTK", "gtk_print_settings_to_gvariant", false) | |
| 979 | + | ||
| 840 | 980 | cret := xPrintSettingsToGvariant(x.GoPointer()) | |
| 841 | 981 | if cret == 0 { | |
| 842 | 982 | return nil | |
| @@ -848,6 +988,8 @@ var xPrintSettingsToKeyFile func(uintptr, *glib.KeyFile, uintptr) | |||
| 848 | 988 | ||
| 849 | 989 | // This function adds the print settings from @settings to @key_file. | |
| 850 | 990 | func (x *PrintSettings) ToKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) { | |
| 991 | + | core.LazyRegister(&xPrintSettingsToKeyFile, "GTK", "gtk_print_settings_to_key_file", false) | |
| 992 | + | ||
| 851 | 993 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| 852 | 994 | defer core.GFreeNullable(GroupNameVarPtr) | |
| 853 | 995 | ||
| @@ -860,6 +1002,8 @@ var xPrintSettingsUnset func(uintptr, string) | |||
| 860 | 1002 | // | |
| 861 | 1003 | // This has the same effect as setting the value to %NULL. | |
| 862 | 1004 | func (x *PrintSettings) Unset(KeyVar string) { | |
| 1005 | + | core.LazyRegister(&xPrintSettingsUnset, "GTK", "gtk_print_settings_unset", false) | |
| 1006 | + | ||
| 863 | 1007 | xPrintSettingsUnset(x.GoPointer(), KeyVar) | |
| 864 | 1008 | } | |
| 865 | 1009 | ||
| @@ -877,92 +1021,4 @@ func (c *PrintSettings) SetGoPointer(ptr uintptr) { | |||
| 877 | 1021 | func init() { | |
| 878 | 1022 | core.SetPackageName("GTK", "gtk4") | |
| 879 | 1023 | core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 880 | - | var libs []uintptr | |
| 881 | - | for _, libPath := range core.GetPaths("GTK") { | |
| 882 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 883 | - | if err != nil { | |
| 884 | - | panic(err) | |
| 885 | - | } | |
| 886 | - | libs = append(libs, lib) | |
| 887 | - | } | |
| 888 | - | ||
| 889 | - | core.PuregoSafeRegister(&xPrintSettingsGLibType, libs, "gtk_print_settings_get_type") | |
| 890 | - | ||
| 891 | - | core.PuregoSafeRegister(&xNewPrintSettings, libs, "gtk_print_settings_new") | |
| 892 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromFile, libs, "gtk_print_settings_new_from_file") | |
| 893 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromGvariant, libs, "gtk_print_settings_new_from_gvariant") | |
| 894 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromKeyFile, libs, "gtk_print_settings_new_from_key_file") | |
| 895 | - | ||
| 896 | - | core.PuregoSafeRegister(&xPrintSettingsCopy, libs, "gtk_print_settings_copy") | |
| 897 | - | core.PuregoSafeRegister(&xPrintSettingsForeach, libs, "gtk_print_settings_foreach") | |
| 898 | - | core.PuregoSafeRegister(&xPrintSettingsGet, libs, "gtk_print_settings_get") | |
| 899 | - | core.PuregoSafeRegister(&xPrintSettingsGetBool, libs, "gtk_print_settings_get_bool") | |
| 900 | - | core.PuregoSafeRegister(&xPrintSettingsGetCollate, libs, "gtk_print_settings_get_collate") | |
| 901 | - | core.PuregoSafeRegister(&xPrintSettingsGetDefaultSource, libs, "gtk_print_settings_get_default_source") | |
| 902 | - | core.PuregoSafeRegister(&xPrintSettingsGetDither, libs, "gtk_print_settings_get_dither") | |
| 903 | - | core.PuregoSafeRegister(&xPrintSettingsGetDouble, libs, "gtk_print_settings_get_double") | |
| 904 | - | core.PuregoSafeRegister(&xPrintSettingsGetDoubleWithDefault, libs, "gtk_print_settings_get_double_with_default") | |
| 905 | - | core.PuregoSafeRegister(&xPrintSettingsGetDuplex, libs, "gtk_print_settings_get_duplex") | |
| 906 | - | core.PuregoSafeRegister(&xPrintSettingsGetFinishings, libs, "gtk_print_settings_get_finishings") | |
| 907 | - | core.PuregoSafeRegister(&xPrintSettingsGetInt, libs, "gtk_print_settings_get_int") | |
| 908 | - | core.PuregoSafeRegister(&xPrintSettingsGetIntWithDefault, libs, "gtk_print_settings_get_int_with_default") | |
| 909 | - | core.PuregoSafeRegister(&xPrintSettingsGetLength, libs, "gtk_print_settings_get_length") | |
| 910 | - | core.PuregoSafeRegister(&xPrintSettingsGetMediaType, libs, "gtk_print_settings_get_media_type") | |
| 911 | - | core.PuregoSafeRegister(&xPrintSettingsGetNCopies, libs, "gtk_print_settings_get_n_copies") | |
| 912 | - | core.PuregoSafeRegister(&xPrintSettingsGetNumberUp, libs, "gtk_print_settings_get_number_up") | |
| 913 | - | core.PuregoSafeRegister(&xPrintSettingsGetNumberUpLayout, libs, "gtk_print_settings_get_number_up_layout") | |
| 914 | - | core.PuregoSafeRegister(&xPrintSettingsGetOrientation, libs, "gtk_print_settings_get_orientation") | |
| 915 | - | core.PuregoSafeRegister(&xPrintSettingsGetOutputBin, libs, "gtk_print_settings_get_output_bin") | |
| 916 | - | core.PuregoSafeRegister(&xPrintSettingsGetPageRanges, libs, "gtk_print_settings_get_page_ranges") | |
| 917 | - | core.PuregoSafeRegister(&xPrintSettingsGetPageSet, libs, "gtk_print_settings_get_page_set") | |
| 918 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperHeight, libs, "gtk_print_settings_get_paper_height") | |
| 919 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperSize, libs, "gtk_print_settings_get_paper_size") | |
| 920 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperWidth, libs, "gtk_print_settings_get_paper_width") | |
| 921 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrintPages, libs, "gtk_print_settings_get_print_pages") | |
| 922 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrinter, libs, "gtk_print_settings_get_printer") | |
| 923 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrinterLpi, libs, "gtk_print_settings_get_printer_lpi") | |
| 924 | - | core.PuregoSafeRegister(&xPrintSettingsGetQuality, libs, "gtk_print_settings_get_quality") | |
| 925 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolution, libs, "gtk_print_settings_get_resolution") | |
| 926 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolutionX, libs, "gtk_print_settings_get_resolution_x") | |
| 927 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolutionY, libs, "gtk_print_settings_get_resolution_y") | |
| 928 | - | core.PuregoSafeRegister(&xPrintSettingsGetReverse, libs, "gtk_print_settings_get_reverse") | |
| 929 | - | core.PuregoSafeRegister(&xPrintSettingsGetScale, libs, "gtk_print_settings_get_scale") | |
| 930 | - | core.PuregoSafeRegister(&xPrintSettingsGetUseColor, libs, "gtk_print_settings_get_use_color") | |
| 931 | - | core.PuregoSafeRegister(&xPrintSettingsHasKey, libs, "gtk_print_settings_has_key") | |
| 932 | - | core.PuregoSafeRegister(&xPrintSettingsLoadFile, libs, "gtk_print_settings_load_file") | |
| 933 | - | core.PuregoSafeRegister(&xPrintSettingsLoadKeyFile, libs, "gtk_print_settings_load_key_file") | |
| 934 | - | core.PuregoSafeRegister(&xPrintSettingsSet, libs, "gtk_print_settings_set") | |
| 935 | - | core.PuregoSafeRegister(&xPrintSettingsSetBool, libs, "gtk_print_settings_set_bool") | |
| 936 | - | core.PuregoSafeRegister(&xPrintSettingsSetCollate, libs, "gtk_print_settings_set_collate") | |
| 937 | - | core.PuregoSafeRegister(&xPrintSettingsSetDefaultSource, libs, "gtk_print_settings_set_default_source") | |
| 938 | - | core.PuregoSafeRegister(&xPrintSettingsSetDither, libs, "gtk_print_settings_set_dither") | |
| 939 | - | core.PuregoSafeRegister(&xPrintSettingsSetDouble, libs, "gtk_print_settings_set_double") | |
| 940 | - | core.PuregoSafeRegister(&xPrintSettingsSetDuplex, libs, "gtk_print_settings_set_duplex") | |
| 941 | - | core.PuregoSafeRegister(&xPrintSettingsSetFinishings, libs, "gtk_print_settings_set_finishings") | |
| 942 | - | core.PuregoSafeRegister(&xPrintSettingsSetInt, libs, "gtk_print_settings_set_int") | |
| 943 | - | core.PuregoSafeRegister(&xPrintSettingsSetLength, libs, "gtk_print_settings_set_length") | |
| 944 | - | core.PuregoSafeRegister(&xPrintSettingsSetMediaType, libs, "gtk_print_settings_set_media_type") | |
| 945 | - | core.PuregoSafeRegister(&xPrintSettingsSetNCopies, libs, "gtk_print_settings_set_n_copies") | |
| 946 | - | core.PuregoSafeRegister(&xPrintSettingsSetNumberUp, libs, "gtk_print_settings_set_number_up") | |
| 947 | - | core.PuregoSafeRegister(&xPrintSettingsSetNumberUpLayout, libs, "gtk_print_settings_set_number_up_layout") | |
| 948 | - | core.PuregoSafeRegister(&xPrintSettingsSetOrientation, libs, "gtk_print_settings_set_orientation") | |
| 949 | - | core.PuregoSafeRegister(&xPrintSettingsSetOutputBin, libs, "gtk_print_settings_set_output_bin") | |
| 950 | - | core.PuregoSafeRegister(&xPrintSettingsSetPageRanges, libs, "gtk_print_settings_set_page_ranges") | |
| 951 | - | core.PuregoSafeRegister(&xPrintSettingsSetPageSet, libs, "gtk_print_settings_set_page_set") | |
| 952 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperHeight, libs, "gtk_print_settings_set_paper_height") | |
| 953 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperSize, libs, "gtk_print_settings_set_paper_size") | |
| 954 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperWidth, libs, "gtk_print_settings_set_paper_width") | |
| 955 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrintPages, libs, "gtk_print_settings_set_print_pages") | |
| 956 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrinter, libs, "gtk_print_settings_set_printer") | |
| 957 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrinterLpi, libs, "gtk_print_settings_set_printer_lpi") | |
| 958 | - | core.PuregoSafeRegister(&xPrintSettingsSetQuality, libs, "gtk_print_settings_set_quality") | |
| 959 | - | core.PuregoSafeRegister(&xPrintSettingsSetResolution, libs, "gtk_print_settings_set_resolution") | |
| 960 | - | core.PuregoSafeRegister(&xPrintSettingsSetResolutionXy, libs, "gtk_print_settings_set_resolution_xy") | |
| 961 | - | core.PuregoSafeRegister(&xPrintSettingsSetReverse, libs, "gtk_print_settings_set_reverse") | |
| 962 | - | core.PuregoSafeRegister(&xPrintSettingsSetScale, libs, "gtk_print_settings_set_scale") | |
| 963 | - | core.PuregoSafeRegister(&xPrintSettingsSetUseColor, libs, "gtk_print_settings_set_use_color") | |
| 964 | - | core.PuregoSafeRegister(&xPrintSettingsToFile, libs, "gtk_print_settings_to_file") | |
| 965 | - | core.PuregoSafeRegister(&xPrintSettingsToGvariant, libs, "gtk_print_settings_to_gvariant") | |
| 966 | - | core.PuregoSafeRegister(&xPrintSettingsToKeyFile, libs, "gtk_print_settings_to_key_file") | |
| 967 | - | core.PuregoSafeRegister(&xPrintSettingsUnset, libs, "gtk_print_settings_unset") | |
| 968 | 1024 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -144,6 +143,7 @@ type PrintSettings struct { | |||||
| 144 | var xPrintSettingsGLibType func() types.GType | 143 | var xPrintSettingsGLibType func() types.GType | ||
| 145 | 144 | ||||
| 146 | func PrintSettingsGLibType() types.GType { | 145 | func PrintSettingsGLibType() types.GType { | ||
| 146 | + | core.LazyRegister(&xPrintSettingsGLibType, "GTK", "gtk_print_settings_get_type", false) | |||
| 147 | return xPrintSettingsGLibType() | 147 | return xPrintSettingsGLibType() | ||
| 148 | } | 148 | } | ||
| 149 | 149 | ||||
| @@ -157,6 +157,7 @@ var xNewPrintSettings func() uintptr | |||||
| 157 | 157 | ||||
| 158 | // Creates a new `GtkPrintSettings` object. | 158 | // Creates a new `GtkPrintSettings` object. | ||
| 159 | func NewPrintSettings() *PrintSettings { | 159 | func NewPrintSettings() *PrintSettings { | ||
| 160 | + | core.LazyRegister(&xNewPrintSettings, "GTK", "gtk_print_settings_new", false) | |||
| 160 | var cls *PrintSettings | 161 | var cls *PrintSettings | ||
| 161 | 162 | ||||
| 162 | cret := xNewPrintSettings() | 163 | cret := xNewPrintSettings() | ||
| @@ -179,6 +180,7 @@ var xNewPrintSettingsFromFile func(string, **glib.Error) uintptr | |||||
| 179 | // | 180 | // | ||
| 180 | // See [method@Gtk.PrintSettings.to_file]. | 181 | // See [method@Gtk.PrintSettings.to_file]. | ||
| 181 | func NewPrintSettingsFromFile(FileNameVar string) (*PrintSettings, error) { | 182 | func NewPrintSettingsFromFile(FileNameVar string) (*PrintSettings, error) { | ||
| 183 | + | core.LazyRegister(&xNewPrintSettingsFromFile, "GTK", "gtk_print_settings_new_from_file", false) | |||
| 182 | var cls *PrintSettings | 184 | var cls *PrintSettings | ||
| 183 | var cerr *glib.Error | 185 | var cerr *glib.Error | ||
| 184 | 186 | ||||
| @@ -202,6 +204,7 @@ var xNewPrintSettingsFromGvariant func(*glib.Variant) uintptr | |||||
| 202 | // The variant must be in the format produced by | 204 | // The variant must be in the format produced by | ||
| 203 | // [method@Gtk.PrintSettings.to_gvariant]. | 205 | // [method@Gtk.PrintSettings.to_gvariant]. | ||
| 204 | func NewPrintSettingsFromGvariant(VariantVar *glib.Variant) *PrintSettings { | 206 | func NewPrintSettingsFromGvariant(VariantVar *glib.Variant) *PrintSettings { | ||
| 207 | + | core.LazyRegister(&xNewPrintSettingsFromGvariant, "GTK", "gtk_print_settings_new_from_gvariant", false) | |||
| 205 | var cls *PrintSettings | 208 | var cls *PrintSettings | ||
| 206 | 209 | ||||
| 207 | cret := xNewPrintSettingsFromGvariant(VariantVar) | 210 | cret := xNewPrintSettingsFromGvariant(VariantVar) | ||
| @@ -222,6 +225,7 @@ var xNewPrintSettingsFromKeyFile func(*glib.KeyFile, uintptr, **glib.Error) uint | |||||
| 222 | // or %NULL if an error occurred. If the file could not be loaded then | 225 | // or %NULL if an error occurred. If the file could not be loaded then | ||
| 223 | // error is set to either `GFileError` or `GKeyFileError`. | 226 | // error is set to either `GFileError` or `GKeyFileError`. | ||
| 224 | func NewPrintSettingsFromKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (*PrintSettings, error) { | 227 | func NewPrintSettingsFromKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (*PrintSettings, error) { | ||
| 228 | + | core.LazyRegister(&xNewPrintSettingsFromKeyFile, "GTK", "gtk_print_settings_new_from_key_file", false) | |||
| 225 | var cls *PrintSettings | 229 | var cls *PrintSettings | ||
| 226 | var cerr *glib.Error | 230 | var cerr *glib.Error | ||
| 227 | 231 | ||||
| @@ -245,6 +249,7 @@ var xPrintSettingsCopy func(uintptr) uintptr | |||||
| 245 | 249 | ||||
| 246 | // Copies a `GtkPrintSettings` object. | 250 | // Copies a `GtkPrintSettings` object. | ||
| 247 | func (x *PrintSettings) Copy() *PrintSettings { | 251 | func (x *PrintSettings) Copy() *PrintSettings { | ||
| 252 | + | core.LazyRegister(&xPrintSettingsCopy, "GTK", "gtk_print_settings_copy", false) | |||
| 248 | var cls *PrintSettings | 253 | var cls *PrintSettings | ||
| 249 | 254 | ||||
| 250 | cret := xPrintSettingsCopy(x.GoPointer()) | 255 | cret := xPrintSettingsCopy(x.GoPointer()) | ||
| @@ -261,6 +266,8 @@ var xPrintSettingsForeach func(uintptr, uintptr, uintptr) | |||||
| 261 | 266 | ||||
| 262 | // Calls @func for each key-value pair of @settings. | 267 | // Calls @func for each key-value pair of @settings. | ||
| 263 | func (x *PrintSettings) Foreach(FuncVar *PrintSettingsFunc, UserDataVar uintptr) { | 268 | func (x *PrintSettings) Foreach(FuncVar *PrintSettingsFunc, UserDataVar uintptr) { | ||
| 269 | + | core.LazyRegister(&xPrintSettingsForeach, "GTK", "gtk_print_settings_foreach", false) | |||
| 270 | + | ||||
| 264 | xPrintSettingsForeach(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar) | 271 | xPrintSettingsForeach(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar) | ||
| 265 | } | 272 | } | ||
| 266 | 273 | ||||
| @@ -268,6 +275,8 @@ var xPrintSettingsGet func(uintptr, string) string | |||||
| 268 | 275 | ||||
| 269 | // Looks up the string value associated with @key. | 276 | // Looks up the string value associated with @key. | ||
| 270 | func (x *PrintSettings) Get(KeyVar string) string { | 277 | func (x *PrintSettings) Get(KeyVar string) string { | ||
| 278 | + | core.LazyRegister(&xPrintSettingsGet, "GTK", "gtk_print_settings_get", false) | |||
| 279 | + | ||||
| 271 | cret := xPrintSettingsGet(x.GoPointer(), KeyVar) | 280 | cret := xPrintSettingsGet(x.GoPointer(), KeyVar) | ||
| 272 | return cret | 281 | return cret | ||
| 273 | } | 282 | } | ||
| @@ -280,6 +289,8 @@ var xPrintSettingsGetBool func(uintptr, string) bool | |||||
| 280 | // The string “true” represents %TRUE, any other | 289 | // The string “true” represents %TRUE, any other | ||
| 281 | // string %FALSE. | 290 | // string %FALSE. | ||
| 282 | func (x *PrintSettings) GetBool(KeyVar string) bool { | 291 | func (x *PrintSettings) GetBool(KeyVar string) bool { | ||
| 292 | + | core.LazyRegister(&xPrintSettingsGetBool, "GTK", "gtk_print_settings_get_bool", false) | |||
| 293 | + | ||||
| 283 | cret := xPrintSettingsGetBool(x.GoPointer(), KeyVar) | 294 | cret := xPrintSettingsGetBool(x.GoPointer(), KeyVar) | ||
| 284 | return cret | 295 | return cret | ||
| 285 | } | 296 | } | ||
| @@ -288,6 +299,8 @@ var xPrintSettingsGetCollate func(uintptr) bool | |||||
| 288 | 299 | ||||
| 289 | // Gets the value of %GTK_PRINT_SETTINGS_COLLATE. | 300 | // Gets the value of %GTK_PRINT_SETTINGS_COLLATE. | ||
| 290 | func (x *PrintSettings) GetCollate() bool { | 301 | func (x *PrintSettings) GetCollate() bool { | ||
| 302 | + | core.LazyRegister(&xPrintSettingsGetCollate, "GTK", "gtk_print_settings_get_collate", false) | |||
| 303 | + | ||||
| 291 | cret := xPrintSettingsGetCollate(x.GoPointer()) | 304 | cret := xPrintSettingsGetCollate(x.GoPointer()) | ||
| 292 | return cret | 305 | return cret | ||
| 293 | } | 306 | } | ||
| @@ -296,6 +309,8 @@ var xPrintSettingsGetDefaultSource func(uintptr) string | |||||
| 296 | 309 | ||||
| 297 | // Gets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | 310 | // Gets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | ||
| 298 | func (x *PrintSettings) GetDefaultSource() string { | 311 | func (x *PrintSettings) GetDefaultSource() string { | ||
| 312 | + | core.LazyRegister(&xPrintSettingsGetDefaultSource, "GTK", "gtk_print_settings_get_default_source", false) | |||
| 313 | + | ||||
| 299 | cret := xPrintSettingsGetDefaultSource(x.GoPointer()) | 314 | cret := xPrintSettingsGetDefaultSource(x.GoPointer()) | ||
| 300 | return cret | 315 | return cret | ||
| 301 | } | 316 | } | ||
| @@ -304,6 +319,8 @@ var xPrintSettingsGetDither func(uintptr) string | |||||
| 304 | 319 | ||||
| 305 | // Gets the value of %GTK_PRINT_SETTINGS_DITHER. | 320 | // Gets the value of %GTK_PRINT_SETTINGS_DITHER. | ||
| 306 | func (x *PrintSettings) GetDither() string { | 321 | func (x *PrintSettings) GetDither() string { | ||
| 322 | + | core.LazyRegister(&xPrintSettingsGetDither, "GTK", "gtk_print_settings_get_dither", false) | |||
| 323 | + | ||||
| 307 | cret := xPrintSettingsGetDither(x.GoPointer()) | 324 | cret := xPrintSettingsGetDither(x.GoPointer()) | ||
| 308 | return cret | 325 | return cret | ||
| 309 | } | 326 | } | ||
| @@ -312,6 +329,8 @@ var xPrintSettingsGetDouble func(uintptr, string) float64 | |||||
| 312 | 329 | ||||
| 313 | // Returns the double value associated with @key, or 0. | 330 | // Returns the double value associated with @key, or 0. | ||
| 314 | func (x *PrintSettings) GetDouble(KeyVar string) float64 { | 331 | func (x *PrintSettings) GetDouble(KeyVar string) float64 { | ||
| 332 | + | core.LazyRegister(&xPrintSettingsGetDouble, "GTK", "gtk_print_settings_get_double", false) | |||
| 333 | + | ||||
| 315 | cret := xPrintSettingsGetDouble(x.GoPointer(), KeyVar) | 334 | cret := xPrintSettingsGetDouble(x.GoPointer(), KeyVar) | ||
| 316 | return cret | 335 | return cret | ||
| 317 | } | 336 | } | ||
| @@ -324,6 +343,8 @@ var xPrintSettingsGetDoubleWithDefault func(uintptr, string, float64) float64 | |||||
| 324 | // | 343 | // | ||
| 325 | // Floating point numbers are parsed with g_ascii_strtod(). | 344 | // Floating point numbers are parsed with g_ascii_strtod(). | ||
| 326 | func (x *PrintSettings) GetDoubleWithDefault(KeyVar string, DefVar float64) float64 { | 345 | func (x *PrintSettings) GetDoubleWithDefault(KeyVar string, DefVar float64) float64 { | ||
| 346 | + | core.LazyRegister(&xPrintSettingsGetDoubleWithDefault, "GTK", "gtk_print_settings_get_double_with_default", false) | |||
| 347 | + | ||||
| 327 | cret := xPrintSettingsGetDoubleWithDefault(x.GoPointer(), KeyVar, DefVar) | 348 | cret := xPrintSettingsGetDoubleWithDefault(x.GoPointer(), KeyVar, DefVar) | ||
| 328 | return cret | 349 | return cret | ||
| 329 | } | 350 | } | ||
| @@ -332,6 +353,8 @@ var xPrintSettingsGetDuplex func(uintptr) PrintDuplex | |||||
| 332 | 353 | ||||
| 333 | // Gets the value of %GTK_PRINT_SETTINGS_DUPLEX. | 354 | // Gets the value of %GTK_PRINT_SETTINGS_DUPLEX. | ||
| 334 | func (x *PrintSettings) GetDuplex() PrintDuplex { | 355 | func (x *PrintSettings) GetDuplex() PrintDuplex { | ||
| 356 | + | core.LazyRegister(&xPrintSettingsGetDuplex, "GTK", "gtk_print_settings_get_duplex", false) | |||
| 357 | + | ||||
| 335 | cret := xPrintSettingsGetDuplex(x.GoPointer()) | 358 | cret := xPrintSettingsGetDuplex(x.GoPointer()) | ||
| 336 | return cret | 359 | return cret | ||
| 337 | } | 360 | } | ||
| @@ -340,6 +363,8 @@ var xPrintSettingsGetFinishings func(uintptr) string | |||||
| 340 | 363 | ||||
| 341 | // Gets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | 364 | // Gets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | ||
| 342 | func (x *PrintSettings) GetFinishings() string { | 365 | func (x *PrintSettings) GetFinishings() string { | ||
| 366 | + | core.LazyRegister(&xPrintSettingsGetFinishings, "GTK", "gtk_print_settings_get_finishings", false) | |||
| 367 | + | ||||
| 343 | cret := xPrintSettingsGetFinishings(x.GoPointer()) | 368 | cret := xPrintSettingsGetFinishings(x.GoPointer()) | ||
| 344 | return cret | 369 | return cret | ||
| 345 | } | 370 | } | ||
| @@ -348,6 +373,8 @@ var xPrintSettingsGetInt func(uintptr, string) int | |||||
| 348 | 373 | ||||
| 349 | // Returns the integer value of @key, or 0. | 374 | // Returns the integer value of @key, or 0. | ||
| 350 | func (x *PrintSettings) GetInt(KeyVar string) int { | 375 | func (x *PrintSettings) GetInt(KeyVar string) int { | ||
| 376 | + | core.LazyRegister(&xPrintSettingsGetInt, "GTK", "gtk_print_settings_get_int", false) | |||
| 377 | + | ||||
| 351 | cret := xPrintSettingsGetInt(x.GoPointer(), KeyVar) | 378 | cret := xPrintSettingsGetInt(x.GoPointer(), KeyVar) | ||
| 352 | return cret | 379 | return cret | ||
| 353 | } | 380 | } | ||
| @@ -357,6 +384,8 @@ var xPrintSettingsGetIntWithDefault func(uintptr, string, int) int | |||||
| 357 | // Returns the value of @key, interpreted as | 384 | // Returns the value of @key, interpreted as | ||
| 358 | // an integer, or the default value. | 385 | // an integer, or the default value. | ||
| 359 | func (x *PrintSettings) GetIntWithDefault(KeyVar string, DefVar int) int { | 386 | func (x *PrintSettings) GetIntWithDefault(KeyVar string, DefVar int) int { | ||
| 387 | + | core.LazyRegister(&xPrintSettingsGetIntWithDefault, "GTK", "gtk_print_settings_get_int_with_default", false) | |||
| 388 | + | ||||
| 360 | cret := xPrintSettingsGetIntWithDefault(x.GoPointer(), KeyVar, DefVar) | 389 | cret := xPrintSettingsGetIntWithDefault(x.GoPointer(), KeyVar, DefVar) | ||
| 361 | return cret | 390 | return cret | ||
| 362 | } | 391 | } | ||
| @@ -368,6 +397,8 @@ var xPrintSettingsGetLength func(uintptr, string, Unit) float64 | |||||
| 368 | // | 397 | // | ||
| 369 | // The returned value is converted to @units. | 398 | // The returned value is converted to @units. | ||
| 370 | func (x *PrintSettings) GetLength(KeyVar string, UnitVar Unit) float64 { | 399 | func (x *PrintSettings) GetLength(KeyVar string, UnitVar Unit) float64 { | ||
| 400 | + | core.LazyRegister(&xPrintSettingsGetLength, "GTK", "gtk_print_settings_get_length", false) | |||
| 401 | + | ||||
| 371 | cret := xPrintSettingsGetLength(x.GoPointer(), KeyVar, UnitVar) | 402 | cret := xPrintSettingsGetLength(x.GoPointer(), KeyVar, UnitVar) | ||
| 372 | return cret | 403 | return cret | ||
| 373 | } | 404 | } | ||
| @@ -378,6 +409,8 @@ var xPrintSettingsGetMediaType func(uintptr) string | |||||
| 378 | // | 409 | // | ||
| 379 | // The set of media types is defined in PWG 5101.1-2002 PWG. | 410 | // The set of media types is defined in PWG 5101.1-2002 PWG. | ||
| 380 | func (x *PrintSettings) GetMediaType() string { | 411 | func (x *PrintSettings) GetMediaType() string { | ||
| 412 | + | core.LazyRegister(&xPrintSettingsGetMediaType, "GTK", "gtk_print_settings_get_media_type", false) | |||
| 413 | + | ||||
| 381 | cret := xPrintSettingsGetMediaType(x.GoPointer()) | 414 | cret := xPrintSettingsGetMediaType(x.GoPointer()) | ||
| 382 | return cret | 415 | return cret | ||
| 383 | } | 416 | } | ||
| @@ -386,6 +419,8 @@ var xPrintSettingsGetNCopies func(uintptr) int | |||||
| 386 | 419 | ||||
| 387 | // Gets the value of %GTK_PRINT_SETTINGS_N_COPIES. | 420 | // Gets the value of %GTK_PRINT_SETTINGS_N_COPIES. | ||
| 388 | func (x *PrintSettings) GetNCopies() int { | 421 | func (x *PrintSettings) GetNCopies() int { | ||
| 422 | + | core.LazyRegister(&xPrintSettingsGetNCopies, "GTK", "gtk_print_settings_get_n_copies", false) | |||
| 423 | + | ||||
| 389 | cret := xPrintSettingsGetNCopies(x.GoPointer()) | 424 | cret := xPrintSettingsGetNCopies(x.GoPointer()) | ||
| 390 | return cret | 425 | return cret | ||
| 391 | } | 426 | } | ||
| @@ -394,6 +429,8 @@ var xPrintSettingsGetNumberUp func(uintptr) int | |||||
| 394 | 429 | ||||
| 395 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | 430 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | ||
| 396 | func (x *PrintSettings) GetNumberUp() int { | 431 | func (x *PrintSettings) GetNumberUp() int { | ||
| 432 | + | core.LazyRegister(&xPrintSettingsGetNumberUp, "GTK", "gtk_print_settings_get_number_up", false) | |||
| 433 | + | ||||
| 397 | cret := xPrintSettingsGetNumberUp(x.GoPointer()) | 434 | cret := xPrintSettingsGetNumberUp(x.GoPointer()) | ||
| 398 | return cret | 435 | return cret | ||
| 399 | } | 436 | } | ||
| @@ -402,6 +439,8 @@ var xPrintSettingsGetNumberUpLayout func(uintptr) NumberUpLayout | |||||
| 402 | 439 | ||||
| 403 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | 440 | // Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | ||
| 404 | func (x *PrintSettings) GetNumberUpLayout() NumberUpLayout { | 441 | func (x *PrintSettings) GetNumberUpLayout() NumberUpLayout { | ||
| 442 | + | core.LazyRegister(&xPrintSettingsGetNumberUpLayout, "GTK", "gtk_print_settings_get_number_up_layout", false) | |||
| 443 | + | ||||
| 405 | cret := xPrintSettingsGetNumberUpLayout(x.GoPointer()) | 444 | cret := xPrintSettingsGetNumberUpLayout(x.GoPointer()) | ||
| 406 | return cret | 445 | return cret | ||
| 407 | } | 446 | } | ||
| @@ -411,6 +450,8 @@ var xPrintSettingsGetOrientation func(uintptr) PageOrientation | |||||
| 411 | // Get the value of %GTK_PRINT_SETTINGS_ORIENTATION, | 450 | // Get the value of %GTK_PRINT_SETTINGS_ORIENTATION, | ||
| 412 | // converted to a `GtkPageOrientation`. | 451 | // converted to a `GtkPageOrientation`. | ||
| 413 | func (x *PrintSettings) GetOrientation() PageOrientation { | 452 | func (x *PrintSettings) GetOrientation() PageOrientation { | ||
| 453 | + | core.LazyRegister(&xPrintSettingsGetOrientation, "GTK", "gtk_print_settings_get_orientation", false) | |||
| 454 | + | ||||
| 414 | cret := xPrintSettingsGetOrientation(x.GoPointer()) | 455 | cret := xPrintSettingsGetOrientation(x.GoPointer()) | ||
| 415 | return cret | 456 | return cret | ||
| 416 | } | 457 | } | ||
| @@ -419,6 +460,8 @@ var xPrintSettingsGetOutputBin func(uintptr) string | |||||
| 419 | 460 | ||||
| 420 | // Gets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | 461 | // Gets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | ||
| 421 | func (x *PrintSettings) GetOutputBin() string { | 462 | func (x *PrintSettings) GetOutputBin() string { | ||
| 463 | + | core.LazyRegister(&xPrintSettingsGetOutputBin, "GTK", "gtk_print_settings_get_output_bin", false) | |||
| 464 | + | ||||
| 422 | cret := xPrintSettingsGetOutputBin(x.GoPointer()) | 465 | cret := xPrintSettingsGetOutputBin(x.GoPointer()) | ||
| 423 | return cret | 466 | return cret | ||
| 424 | } | 467 | } | ||
| @@ -427,6 +470,8 @@ var xPrintSettingsGetPageRanges func(uintptr, *int) uintptr | |||||
| 427 | 470 | ||||
| 428 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | 471 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | ||
| 429 | func (x *PrintSettings) GetPageRanges(NumRangesVar *int) uintptr { | 472 | func (x *PrintSettings) GetPageRanges(NumRangesVar *int) uintptr { | ||
| 473 | + | core.LazyRegister(&xPrintSettingsGetPageRanges, "GTK", "gtk_print_settings_get_page_ranges", false) | |||
| 474 | + | ||||
| 430 | cret := xPrintSettingsGetPageRanges(x.GoPointer(), NumRangesVar) | 475 | cret := xPrintSettingsGetPageRanges(x.GoPointer(), NumRangesVar) | ||
| 431 | return cret | 476 | return cret | ||
| 432 | } | 477 | } | ||
| @@ -435,6 +480,8 @@ var xPrintSettingsGetPageSet func(uintptr) PageSet | |||||
| 435 | 480 | ||||
| 436 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | 481 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | ||
| 437 | func (x *PrintSettings) GetPageSet() PageSet { | 482 | func (x *PrintSettings) GetPageSet() PageSet { | ||
| 483 | + | core.LazyRegister(&xPrintSettingsGetPageSet, "GTK", "gtk_print_settings_get_page_set", false) | |||
| 484 | + | ||||
| 438 | cret := xPrintSettingsGetPageSet(x.GoPointer()) | 485 | cret := xPrintSettingsGetPageSet(x.GoPointer()) | ||
| 439 | return cret | 486 | return cret | ||
| 440 | } | 487 | } | ||
| @@ -444,6 +491,8 @@ var xPrintSettingsGetPaperHeight func(uintptr, Unit) float64 | |||||
| 444 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT, | 491 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT, | ||
| 445 | // converted to @unit. | 492 | // converted to @unit. | ||
| 446 | func (x *PrintSettings) GetPaperHeight(UnitVar Unit) float64 { | 493 | func (x *PrintSettings) GetPaperHeight(UnitVar Unit) float64 { | ||
| 494 | + | core.LazyRegister(&xPrintSettingsGetPaperHeight, "GTK", "gtk_print_settings_get_paper_height", false) | |||
| 495 | + | ||||
| 447 | cret := xPrintSettingsGetPaperHeight(x.GoPointer(), UnitVar) | 496 | cret := xPrintSettingsGetPaperHeight(x.GoPointer(), UnitVar) | ||
| 448 | return cret | 497 | return cret | ||
| 449 | } | 498 | } | ||
| @@ -453,6 +502,8 @@ var xPrintSettingsGetPaperSize func(uintptr) uintptr | |||||
| 453 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT, | 502 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT, | ||
| 454 | // converted to a `GtkPaperSize`. | 503 | // converted to a `GtkPaperSize`. | ||
| 455 | func (x *PrintSettings) GetPaperSize() *PaperSize { | 504 | func (x *PrintSettings) GetPaperSize() *PaperSize { | ||
| 505 | + | core.LazyRegister(&xPrintSettingsGetPaperSize, "GTK", "gtk_print_settings_get_paper_size", false) | |||
| 506 | + | ||||
| 456 | cret := xPrintSettingsGetPaperSize(x.GoPointer()) | 507 | cret := xPrintSettingsGetPaperSize(x.GoPointer()) | ||
| 457 | if cret == 0 { | 508 | if cret == 0 { | ||
| 458 | return nil | 509 | return nil | ||
| @@ -465,6 +516,8 @@ var xPrintSettingsGetPaperWidth func(uintptr, Unit) float64 | |||||
| 465 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH, | 516 | // Gets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH, | ||
| 466 | // converted to @unit. | 517 | // converted to @unit. | ||
| 467 | func (x *PrintSettings) GetPaperWidth(UnitVar Unit) float64 { | 518 | func (x *PrintSettings) GetPaperWidth(UnitVar Unit) float64 { | ||
| 519 | + | core.LazyRegister(&xPrintSettingsGetPaperWidth, "GTK", "gtk_print_settings_get_paper_width", false) | |||
| 520 | + | ||||
| 468 | cret := xPrintSettingsGetPaperWidth(x.GoPointer(), UnitVar) | 521 | cret := xPrintSettingsGetPaperWidth(x.GoPointer(), UnitVar) | ||
| 469 | return cret | 522 | return cret | ||
| 470 | } | 523 | } | ||
| @@ -473,6 +526,8 @@ var xPrintSettingsGetPrintPages func(uintptr) PrintPages | |||||
| 473 | 526 | ||||
| 474 | // Gets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | 527 | // Gets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | ||
| 475 | func (x *PrintSettings) GetPrintPages() PrintPages { | 528 | func (x *PrintSettings) GetPrintPages() PrintPages { | ||
| 529 | + | core.LazyRegister(&xPrintSettingsGetPrintPages, "GTK", "gtk_print_settings_get_print_pages", false) | |||
| 530 | + | ||||
| 476 | cret := xPrintSettingsGetPrintPages(x.GoPointer()) | 531 | cret := xPrintSettingsGetPrintPages(x.GoPointer()) | ||
| 477 | return cret | 532 | return cret | ||
| 478 | } | 533 | } | ||
| @@ -482,6 +537,8 @@ var xPrintSettingsGetPrinter func(uintptr) string | |||||
| 482 | // Convenience function to obtain the value of | 537 | // Convenience function to obtain the value of | ||
| 483 | // %GTK_PRINT_SETTINGS_PRINTER. | 538 | // %GTK_PRINT_SETTINGS_PRINTER. | ||
| 484 | func (x *PrintSettings) GetPrinter() string { | 539 | func (x *PrintSettings) GetPrinter() string { | ||
| 540 | + | core.LazyRegister(&xPrintSettingsGetPrinter, "GTK", "gtk_print_settings_get_printer", false) | |||
| 541 | + | ||||
| 485 | cret := xPrintSettingsGetPrinter(x.GoPointer()) | 542 | cret := xPrintSettingsGetPrinter(x.GoPointer()) | ||
| 486 | return cret | 543 | return cret | ||
| 487 | } | 544 | } | ||
| @@ -490,6 +547,8 @@ var xPrintSettingsGetPrinterLpi func(uintptr) float64 | |||||
| 490 | 547 | ||||
| 491 | // Gets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | 548 | // Gets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | ||
| 492 | func (x *PrintSettings) GetPrinterLpi() float64 { | 549 | func (x *PrintSettings) GetPrinterLpi() float64 { | ||
| 550 | + | core.LazyRegister(&xPrintSettingsGetPrinterLpi, "GTK", "gtk_print_settings_get_printer_lpi", false) | |||
| 551 | + | ||||
| 493 | cret := xPrintSettingsGetPrinterLpi(x.GoPointer()) | 552 | cret := xPrintSettingsGetPrinterLpi(x.GoPointer()) | ||
| 494 | return cret | 553 | return cret | ||
| 495 | } | 554 | } | ||
| @@ -498,6 +557,8 @@ var xPrintSettingsGetQuality func(uintptr) PrintQuality | |||||
| 498 | 557 | ||||
| 499 | // Gets the value of %GTK_PRINT_SETTINGS_QUALITY. | 558 | // Gets the value of %GTK_PRINT_SETTINGS_QUALITY. | ||
| 500 | func (x *PrintSettings) GetQuality() PrintQuality { | 559 | func (x *PrintSettings) GetQuality() PrintQuality { | ||
| 560 | + | core.LazyRegister(&xPrintSettingsGetQuality, "GTK", "gtk_print_settings_get_quality", false) | |||
| 561 | + | ||||
| 501 | cret := xPrintSettingsGetQuality(x.GoPointer()) | 562 | cret := xPrintSettingsGetQuality(x.GoPointer()) | ||
| 502 | return cret | 563 | return cret | ||
| 503 | } | 564 | } | ||
| @@ -506,6 +567,8 @@ var xPrintSettingsGetResolution func(uintptr) int | |||||
| 506 | 567 | ||||
| 507 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION. | 568 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION. | ||
| 508 | func (x *PrintSettings) GetResolution() int { | 569 | func (x *PrintSettings) GetResolution() int { | ||
| 570 | + | core.LazyRegister(&xPrintSettingsGetResolution, "GTK", "gtk_print_settings_get_resolution", false) | |||
| 571 | + | ||||
| 509 | cret := xPrintSettingsGetResolution(x.GoPointer()) | 572 | cret := xPrintSettingsGetResolution(x.GoPointer()) | ||
| 510 | return cret | 573 | return cret | ||
| 511 | } | 574 | } | ||
| @@ -514,6 +577,8 @@ var xPrintSettingsGetResolutionX func(uintptr) int | |||||
| 514 | 577 | ||||
| 515 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_X. | 578 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_X. | ||
| 516 | func (x *PrintSettings) GetResolutionX() int { | 579 | func (x *PrintSettings) GetResolutionX() int { | ||
| 580 | + | core.LazyRegister(&xPrintSettingsGetResolutionX, "GTK", "gtk_print_settings_get_resolution_x", false) | |||
| 581 | + | ||||
| 517 | cret := xPrintSettingsGetResolutionX(x.GoPointer()) | 582 | cret := xPrintSettingsGetResolutionX(x.GoPointer()) | ||
| 518 | return cret | 583 | return cret | ||
| 519 | } | 584 | } | ||
| @@ -522,6 +587,8 @@ var xPrintSettingsGetResolutionY func(uintptr) int | |||||
| 522 | 587 | ||||
| 523 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_Y. | 588 | // Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_Y. | ||
| 524 | func (x *PrintSettings) GetResolutionY() int { | 589 | func (x *PrintSettings) GetResolutionY() int { | ||
| 590 | + | core.LazyRegister(&xPrintSettingsGetResolutionY, "GTK", "gtk_print_settings_get_resolution_y", false) | |||
| 591 | + | ||||
| 525 | cret := xPrintSettingsGetResolutionY(x.GoPointer()) | 592 | cret := xPrintSettingsGetResolutionY(x.GoPointer()) | ||
| 526 | return cret | 593 | return cret | ||
| 527 | } | 594 | } | ||
| @@ -530,6 +597,8 @@ var xPrintSettingsGetReverse func(uintptr) bool | |||||
| 530 | 597 | ||||
| 531 | // Gets the value of %GTK_PRINT_SETTINGS_REVERSE. | 598 | // Gets the value of %GTK_PRINT_SETTINGS_REVERSE. | ||
| 532 | func (x *PrintSettings) GetReverse() bool { | 599 | func (x *PrintSettings) GetReverse() bool { | ||
| 600 | + | core.LazyRegister(&xPrintSettingsGetReverse, "GTK", "gtk_print_settings_get_reverse", false) | |||
| 601 | + | ||||
| 533 | cret := xPrintSettingsGetReverse(x.GoPointer()) | 602 | cret := xPrintSettingsGetReverse(x.GoPointer()) | ||
| 534 | return cret | 603 | return cret | ||
| 535 | } | 604 | } | ||
| @@ -538,6 +607,8 @@ var xPrintSettingsGetScale func(uintptr) float64 | |||||
| 538 | 607 | ||||
| 539 | // Gets the value of %GTK_PRINT_SETTINGS_SCALE. | 608 | // Gets the value of %GTK_PRINT_SETTINGS_SCALE. | ||
| 540 | func (x *PrintSettings) GetScale() float64 { | 609 | func (x *PrintSettings) GetScale() float64 { | ||
| 610 | + | core.LazyRegister(&xPrintSettingsGetScale, "GTK", "gtk_print_settings_get_scale", false) | |||
| 611 | + | ||||
| 541 | cret := xPrintSettingsGetScale(x.GoPointer()) | 612 | cret := xPrintSettingsGetScale(x.GoPointer()) | ||
| 542 | return cret | 613 | return cret | ||
| 543 | } | 614 | } | ||
| @@ -546,6 +617,8 @@ var xPrintSettingsGetUseColor func(uintptr) bool | |||||
| 546 | 617 | ||||
| 547 | // Gets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | 618 | // Gets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | ||
| 548 | func (x *PrintSettings) GetUseColor() bool { | 619 | func (x *PrintSettings) GetUseColor() bool { | ||
| 620 | + | core.LazyRegister(&xPrintSettingsGetUseColor, "GTK", "gtk_print_settings_get_use_color", false) | |||
| 621 | + | ||||
| 549 | cret := xPrintSettingsGetUseColor(x.GoPointer()) | 622 | cret := xPrintSettingsGetUseColor(x.GoPointer()) | ||
| 550 | return cret | 623 | return cret | ||
| 551 | } | 624 | } | ||
| @@ -554,6 +627,8 @@ var xPrintSettingsHasKey func(uintptr, string) bool | |||||
| 554 | 627 | ||||
| 555 | // Returns %TRUE, if a value is associated with @key. | 628 | // Returns %TRUE, if a value is associated with @key. | ||
| 556 | func (x *PrintSettings) HasKey(KeyVar string) bool { | 629 | func (x *PrintSettings) HasKey(KeyVar string) bool { | ||
| 630 | + | core.LazyRegister(&xPrintSettingsHasKey, "GTK", "gtk_print_settings_has_key", false) | |||
| 631 | + | ||||
| 557 | cret := xPrintSettingsHasKey(x.GoPointer(), KeyVar) | 632 | cret := xPrintSettingsHasKey(x.GoPointer(), KeyVar) | ||
| 558 | return cret | 633 | return cret | ||
| 559 | } | 634 | } | ||
| @@ -567,6 +642,7 @@ var xPrintSettingsLoadFile func(uintptr, string, **glib.Error) bool | |||||
| 567 | // | 642 | // | ||
| 568 | // See [method@Gtk.PrintSettings.to_file]. | 643 | // See [method@Gtk.PrintSettings.to_file]. | ||
| 569 | func (x *PrintSettings) LoadFile(FileNameVar string) (bool, error) { | 644 | func (x *PrintSettings) LoadFile(FileNameVar string) (bool, error) { | ||
| 645 | + | core.LazyRegister(&xPrintSettingsLoadFile, "GTK", "gtk_print_settings_load_file", false) | |||
| 570 | var cerr *glib.Error | 646 | var cerr *glib.Error | ||
| 571 | 647 | ||||
| 572 | cret := xPrintSettingsLoadFile(x.GoPointer(), FileNameVar, &cerr) | 648 | cret := xPrintSettingsLoadFile(x.GoPointer(), FileNameVar, &cerr) | ||
| @@ -583,6 +659,7 @@ var xPrintSettingsLoadKeyFile func(uintptr, *glib.KeyFile, uintptr, **glib.Error | |||||
| 583 | // If the file could not be loaded then error is set to either a | 659 | // If the file could not be loaded then error is set to either a | ||
| 584 | // `GFileError` or `GKeyFileError`. | 660 | // `GFileError` or `GKeyFileError`. | ||
| 585 | func (x *PrintSettings) LoadKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (bool, error) { | 661 | func (x *PrintSettings) LoadKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) (bool, error) { | ||
| 662 | + | core.LazyRegister(&xPrintSettingsLoadKeyFile, "GTK", "gtk_print_settings_load_key_file", false) | |||
| 586 | var cerr *glib.Error | 663 | var cerr *glib.Error | ||
| 587 | 664 | ||||
| 588 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | 665 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | ||
| @@ -599,6 +676,8 @@ var xPrintSettingsSet func(uintptr, string, uintptr) | |||||
| 599 | 676 | ||||
| 600 | // Associates @value with @key. | 677 | // Associates @value with @key. | ||
| 601 | func (x *PrintSettings) Set(KeyVar string, ValueVar *string) { | 678 | func (x *PrintSettings) Set(KeyVar string, ValueVar *string) { | ||
| 679 | + | core.LazyRegister(&xPrintSettingsSet, "GTK", "gtk_print_settings_set", false) | |||
| 680 | + | ||||
| 602 | ValueVarPtr := core.GStrdupNullable(ValueVar) | 681 | ValueVarPtr := core.GStrdupNullable(ValueVar) | ||
| 603 | defer core.GFreeNullable(ValueVarPtr) | 682 | defer core.GFreeNullable(ValueVarPtr) | ||
| 604 | 683 | ||||
| @@ -609,6 +688,8 @@ var xPrintSettingsSetBool func(uintptr, string, bool) | |||||
| 609 | 688 | ||||
| 610 | // Sets @key to a boolean value. | 689 | // Sets @key to a boolean value. | ||
| 611 | func (x *PrintSettings) SetBool(KeyVar string, ValueVar bool) { | 690 | func (x *PrintSettings) SetBool(KeyVar string, ValueVar bool) { | ||
| 691 | + | core.LazyRegister(&xPrintSettingsSetBool, "GTK", "gtk_print_settings_set_bool", false) | |||
| 692 | + | ||||
| 612 | xPrintSettingsSetBool(x.GoPointer(), KeyVar, ValueVar) | 693 | xPrintSettingsSetBool(x.GoPointer(), KeyVar, ValueVar) | ||
| 613 | } | 694 | } | ||
| 614 | 695 | ||||
| @@ -616,6 +697,8 @@ var xPrintSettingsSetCollate func(uintptr, bool) | |||||
| 616 | 697 | ||||
| 617 | // Sets the value of %GTK_PRINT_SETTINGS_COLLATE. | 698 | // Sets the value of %GTK_PRINT_SETTINGS_COLLATE. | ||
| 618 | func (x *PrintSettings) SetCollate(CollateVar bool) { | 699 | func (x *PrintSettings) SetCollate(CollateVar bool) { | ||
| 700 | + | core.LazyRegister(&xPrintSettingsSetCollate, "GTK", "gtk_print_settings_set_collate", false) | |||
| 701 | + | ||||
| 619 | xPrintSettingsSetCollate(x.GoPointer(), CollateVar) | 702 | xPrintSettingsSetCollate(x.GoPointer(), CollateVar) | ||
| 620 | } | 703 | } | ||
| 621 | 704 | ||||
| @@ -623,6 +706,8 @@ var xPrintSettingsSetDefaultSource func(uintptr, string) | |||||
| 623 | 706 | ||||
| 624 | // Sets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | 707 | // Sets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE. | ||
| 625 | func (x *PrintSettings) SetDefaultSource(DefaultSourceVar string) { | 708 | func (x *PrintSettings) SetDefaultSource(DefaultSourceVar string) { | ||
| 709 | + | core.LazyRegister(&xPrintSettingsSetDefaultSource, "GTK", "gtk_print_settings_set_default_source", false) | |||
| 710 | + | ||||
| 626 | xPrintSettingsSetDefaultSource(x.GoPointer(), DefaultSourceVar) | 711 | xPrintSettingsSetDefaultSource(x.GoPointer(), DefaultSourceVar) | ||
| 627 | } | 712 | } | ||
| 628 | 713 | ||||
| @@ -630,6 +715,8 @@ var xPrintSettingsSetDither func(uintptr, string) | |||||
| 630 | 715 | ||||
| 631 | // Sets the value of %GTK_PRINT_SETTINGS_DITHER. | 716 | // Sets the value of %GTK_PRINT_SETTINGS_DITHER. | ||
| 632 | func (x *PrintSettings) SetDither(DitherVar string) { | 717 | func (x *PrintSettings) SetDither(DitherVar string) { | ||
| 718 | + | core.LazyRegister(&xPrintSettingsSetDither, "GTK", "gtk_print_settings_set_dither", false) | |||
| 719 | + | ||||
| 633 | xPrintSettingsSetDither(x.GoPointer(), DitherVar) | 720 | xPrintSettingsSetDither(x.GoPointer(), DitherVar) | ||
| 634 | } | 721 | } | ||
| 635 | 722 | ||||
| @@ -637,6 +724,8 @@ var xPrintSettingsSetDouble func(uintptr, string, float64) | |||||
| 637 | 724 | ||||
| 638 | // Sets @key to a double value. | 725 | // Sets @key to a double value. | ||
| 639 | func (x *PrintSettings) SetDouble(KeyVar string, ValueVar float64) { | 726 | func (x *PrintSettings) SetDouble(KeyVar string, ValueVar float64) { | ||
| 727 | + | core.LazyRegister(&xPrintSettingsSetDouble, "GTK", "gtk_print_settings_set_double", false) | |||
| 728 | + | ||||
| 640 | xPrintSettingsSetDouble(x.GoPointer(), KeyVar, ValueVar) | 729 | xPrintSettingsSetDouble(x.GoPointer(), KeyVar, ValueVar) | ||
| 641 | } | 730 | } | ||
| 642 | 731 | ||||
| @@ -644,6 +733,8 @@ var xPrintSettingsSetDuplex func(uintptr, PrintDuplex) | |||||
| 644 | 733 | ||||
| 645 | // Sets the value of %GTK_PRINT_SETTINGS_DUPLEX. | 734 | // Sets the value of %GTK_PRINT_SETTINGS_DUPLEX. | ||
| 646 | func (x *PrintSettings) SetDuplex(DuplexVar PrintDuplex) { | 735 | func (x *PrintSettings) SetDuplex(DuplexVar PrintDuplex) { | ||
| 736 | + | core.LazyRegister(&xPrintSettingsSetDuplex, "GTK", "gtk_print_settings_set_duplex", false) | |||
| 737 | + | ||||
| 647 | xPrintSettingsSetDuplex(x.GoPointer(), DuplexVar) | 738 | xPrintSettingsSetDuplex(x.GoPointer(), DuplexVar) | ||
| 648 | } | 739 | } | ||
| 649 | 740 | ||||
| @@ -651,6 +742,8 @@ var xPrintSettingsSetFinishings func(uintptr, string) | |||||
| 651 | 742 | ||||
| 652 | // Sets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | 743 | // Sets the value of %GTK_PRINT_SETTINGS_FINISHINGS. | ||
| 653 | func (x *PrintSettings) SetFinishings(FinishingsVar string) { | 744 | func (x *PrintSettings) SetFinishings(FinishingsVar string) { | ||
| 745 | + | core.LazyRegister(&xPrintSettingsSetFinishings, "GTK", "gtk_print_settings_set_finishings", false) | |||
| 746 | + | ||||
| 654 | xPrintSettingsSetFinishings(x.GoPointer(), FinishingsVar) | 747 | xPrintSettingsSetFinishings(x.GoPointer(), FinishingsVar) | ||
| 655 | } | 748 | } | ||
| 656 | 749 | ||||
| @@ -658,6 +751,8 @@ var xPrintSettingsSetInt func(uintptr, string, int) | |||||
| 658 | 751 | ||||
| 659 | // Sets @key to an integer value. | 752 | // Sets @key to an integer value. | ||
| 660 | func (x *PrintSettings) SetInt(KeyVar string, ValueVar int) { | 753 | func (x *PrintSettings) SetInt(KeyVar string, ValueVar int) { | ||
| 754 | + | core.LazyRegister(&xPrintSettingsSetInt, "GTK", "gtk_print_settings_set_int", false) | |||
| 755 | + | ||||
| 661 | xPrintSettingsSetInt(x.GoPointer(), KeyVar, ValueVar) | 756 | xPrintSettingsSetInt(x.GoPointer(), KeyVar, ValueVar) | ||
| 662 | } | 757 | } | ||
| 663 | 758 | ||||
| @@ -665,6 +760,8 @@ var xPrintSettingsSetLength func(uintptr, string, float64, Unit) | |||||
| 665 | 760 | ||||
| 666 | // Associates a length in units of @unit with @key. | 761 | // Associates a length in units of @unit with @key. | ||
| 667 | func (x *PrintSettings) SetLength(KeyVar string, ValueVar float64, UnitVar Unit) { | 762 | func (x *PrintSettings) SetLength(KeyVar string, ValueVar float64, UnitVar Unit) { | ||
| 763 | + | core.LazyRegister(&xPrintSettingsSetLength, "GTK", "gtk_print_settings_set_length", false) | |||
| 764 | + | ||||
| 668 | xPrintSettingsSetLength(x.GoPointer(), KeyVar, ValueVar, UnitVar) | 765 | xPrintSettingsSetLength(x.GoPointer(), KeyVar, ValueVar, UnitVar) | ||
| 669 | } | 766 | } | ||
| 670 | 767 | ||||
| @@ -674,6 +771,8 @@ var xPrintSettingsSetMediaType func(uintptr, string) | |||||
| 674 | // | 771 | // | ||
| 675 | // The set of media types is defined in PWG 5101.1-2002 PWG. | 772 | // The set of media types is defined in PWG 5101.1-2002 PWG. | ||
| 676 | func (x *PrintSettings) SetMediaType(MediaTypeVar string) { | 773 | func (x *PrintSettings) SetMediaType(MediaTypeVar string) { | ||
| 774 | + | core.LazyRegister(&xPrintSettingsSetMediaType, "GTK", "gtk_print_settings_set_media_type", false) | |||
| 775 | + | ||||
| 677 | xPrintSettingsSetMediaType(x.GoPointer(), MediaTypeVar) | 776 | xPrintSettingsSetMediaType(x.GoPointer(), MediaTypeVar) | ||
| 678 | } | 777 | } | ||
| 679 | 778 | ||||
| @@ -681,6 +780,8 @@ var xPrintSettingsSetNCopies func(uintptr, int) | |||||
| 681 | 780 | ||||
| 682 | // Sets the value of %GTK_PRINT_SETTINGS_N_COPIES. | 781 | // Sets the value of %GTK_PRINT_SETTINGS_N_COPIES. | ||
| 683 | func (x *PrintSettings) SetNCopies(NumCopiesVar int) { | 782 | func (x *PrintSettings) SetNCopies(NumCopiesVar int) { | ||
| 783 | + | core.LazyRegister(&xPrintSettingsSetNCopies, "GTK", "gtk_print_settings_set_n_copies", false) | |||
| 784 | + | ||||
| 684 | xPrintSettingsSetNCopies(x.GoPointer(), NumCopiesVar) | 785 | xPrintSettingsSetNCopies(x.GoPointer(), NumCopiesVar) | ||
| 685 | } | 786 | } | ||
| 686 | 787 | ||||
| @@ -688,6 +789,8 @@ var xPrintSettingsSetNumberUp func(uintptr, int) | |||||
| 688 | 789 | ||||
| 689 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | 790 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP. | ||
| 690 | func (x *PrintSettings) SetNumberUp(NumberUpVar int) { | 791 | func (x *PrintSettings) SetNumberUp(NumberUpVar int) { | ||
| 792 | + | core.LazyRegister(&xPrintSettingsSetNumberUp, "GTK", "gtk_print_settings_set_number_up", false) | |||
| 793 | + | ||||
| 691 | xPrintSettingsSetNumberUp(x.GoPointer(), NumberUpVar) | 794 | xPrintSettingsSetNumberUp(x.GoPointer(), NumberUpVar) | ||
| 692 | } | 795 | } | ||
| 693 | 796 | ||||
| @@ -695,6 +798,8 @@ var xPrintSettingsSetNumberUpLayout func(uintptr, NumberUpLayout) | |||||
| 695 | 798 | ||||
| 696 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | 799 | // Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT. | ||
| 697 | func (x *PrintSettings) SetNumberUpLayout(NumberUpLayoutVar NumberUpLayout) { | 800 | func (x *PrintSettings) SetNumberUpLayout(NumberUpLayoutVar NumberUpLayout) { | ||
| 801 | + | core.LazyRegister(&xPrintSettingsSetNumberUpLayout, "GTK", "gtk_print_settings_set_number_up_layout", false) | |||
| 802 | + | ||||
| 698 | xPrintSettingsSetNumberUpLayout(x.GoPointer(), NumberUpLayoutVar) | 803 | xPrintSettingsSetNumberUpLayout(x.GoPointer(), NumberUpLayoutVar) | ||
| 699 | } | 804 | } | ||
| 700 | 805 | ||||
| @@ -702,6 +807,8 @@ var xPrintSettingsSetOrientation func(uintptr, PageOrientation) | |||||
| 702 | 807 | ||||
| 703 | // Sets the value of %GTK_PRINT_SETTINGS_ORIENTATION. | 808 | // Sets the value of %GTK_PRINT_SETTINGS_ORIENTATION. | ||
| 704 | func (x *PrintSettings) SetOrientation(OrientationVar PageOrientation) { | 809 | func (x *PrintSettings) SetOrientation(OrientationVar PageOrientation) { | ||
| 810 | + | core.LazyRegister(&xPrintSettingsSetOrientation, "GTK", "gtk_print_settings_set_orientation", false) | |||
| 811 | + | ||||
| 705 | xPrintSettingsSetOrientation(x.GoPointer(), OrientationVar) | 812 | xPrintSettingsSetOrientation(x.GoPointer(), OrientationVar) | ||
| 706 | } | 813 | } | ||
| 707 | 814 | ||||
| @@ -709,6 +816,8 @@ var xPrintSettingsSetOutputBin func(uintptr, string) | |||||
| 709 | 816 | ||||
| 710 | // Sets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | 817 | // Sets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN. | ||
| 711 | func (x *PrintSettings) SetOutputBin(OutputBinVar string) { | 818 | func (x *PrintSettings) SetOutputBin(OutputBinVar string) { | ||
| 819 | + | core.LazyRegister(&xPrintSettingsSetOutputBin, "GTK", "gtk_print_settings_set_output_bin", false) | |||
| 820 | + | ||||
| 712 | xPrintSettingsSetOutputBin(x.GoPointer(), OutputBinVar) | 821 | xPrintSettingsSetOutputBin(x.GoPointer(), OutputBinVar) | ||
| 713 | } | 822 | } | ||
| 714 | 823 | ||||
| @@ -716,6 +825,8 @@ var xPrintSettingsSetPageRanges func(uintptr, []PageRange, int) | |||||
| 716 | 825 | ||||
| 717 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | 826 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | ||
| 718 | func (x *PrintSettings) SetPageRanges(PageRangesVar []PageRange, NumRangesVar int) { | 827 | func (x *PrintSettings) SetPageRanges(PageRangesVar []PageRange, NumRangesVar int) { | ||
| 828 | + | core.LazyRegister(&xPrintSettingsSetPageRanges, "GTK", "gtk_print_settings_set_page_ranges", false) | |||
| 829 | + | ||||
| 719 | xPrintSettingsSetPageRanges(x.GoPointer(), PageRangesVar, NumRangesVar) | 830 | xPrintSettingsSetPageRanges(x.GoPointer(), PageRangesVar, NumRangesVar) | ||
| 720 | } | 831 | } | ||
| 721 | 832 | ||||
| @@ -723,6 +834,8 @@ var xPrintSettingsSetPageSet func(uintptr, PageSet) | |||||
| 723 | 834 | ||||
| 724 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | 835 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_SET. | ||
| 725 | func (x *PrintSettings) SetPageSet(PageSetVar PageSet) { | 836 | func (x *PrintSettings) SetPageSet(PageSetVar PageSet) { | ||
| 837 | + | core.LazyRegister(&xPrintSettingsSetPageSet, "GTK", "gtk_print_settings_set_page_set", false) | |||
| 838 | + | ||||
| 726 | xPrintSettingsSetPageSet(x.GoPointer(), PageSetVar) | 839 | xPrintSettingsSetPageSet(x.GoPointer(), PageSetVar) | ||
| 727 | } | 840 | } | ||
| 728 | 841 | ||||
| @@ -730,6 +843,8 @@ var xPrintSettingsSetPaperHeight func(uintptr, float64, Unit) | |||||
| 730 | 843 | ||||
| 731 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | 844 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | ||
| 732 | func (x *PrintSettings) SetPaperHeight(HeightVar float64, UnitVar Unit) { | 845 | func (x *PrintSettings) SetPaperHeight(HeightVar float64, UnitVar Unit) { | ||
| 846 | + | core.LazyRegister(&xPrintSettingsSetPaperHeight, "GTK", "gtk_print_settings_set_paper_height", false) | |||
| 847 | + | ||||
| 733 | xPrintSettingsSetPaperHeight(x.GoPointer(), HeightVar, UnitVar) | 848 | xPrintSettingsSetPaperHeight(x.GoPointer(), HeightVar, UnitVar) | ||
| 734 | } | 849 | } | ||
| 735 | 850 | ||||
| @@ -739,6 +854,8 @@ var xPrintSettingsSetPaperSize func(uintptr, *PaperSize) | |||||
| 739 | // %GTK_PRINT_SETTINGS_PAPER_WIDTH and | 854 | // %GTK_PRINT_SETTINGS_PAPER_WIDTH and | ||
| 740 | // %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | 855 | // %GTK_PRINT_SETTINGS_PAPER_HEIGHT. | ||
| 741 | func (x *PrintSettings) SetPaperSize(PaperSizeVar *PaperSize) { | 856 | func (x *PrintSettings) SetPaperSize(PaperSizeVar *PaperSize) { | ||
| 857 | + | core.LazyRegister(&xPrintSettingsSetPaperSize, "GTK", "gtk_print_settings_set_paper_size", false) | |||
| 858 | + | ||||
| 742 | xPrintSettingsSetPaperSize(x.GoPointer(), PaperSizeVar) | 859 | xPrintSettingsSetPaperSize(x.GoPointer(), PaperSizeVar) | ||
| 743 | } | 860 | } | ||
| 744 | 861 | ||||
| @@ -746,6 +863,8 @@ var xPrintSettingsSetPaperWidth func(uintptr, float64, Unit) | |||||
| 746 | 863 | ||||
| 747 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH. | 864 | // Sets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH. | ||
| 748 | func (x *PrintSettings) SetPaperWidth(WidthVar float64, UnitVar Unit) { | 865 | func (x *PrintSettings) SetPaperWidth(WidthVar float64, UnitVar Unit) { | ||
| 866 | + | core.LazyRegister(&xPrintSettingsSetPaperWidth, "GTK", "gtk_print_settings_set_paper_width", false) | |||
| 867 | + | ||||
| 749 | xPrintSettingsSetPaperWidth(x.GoPointer(), WidthVar, UnitVar) | 868 | xPrintSettingsSetPaperWidth(x.GoPointer(), WidthVar, UnitVar) | ||
| 750 | } | 869 | } | ||
| 751 | 870 | ||||
| @@ -753,6 +872,8 @@ var xPrintSettingsSetPrintPages func(uintptr, PrintPages) | |||||
| 753 | 872 | ||||
| 754 | // Sets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | 873 | // Sets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES. | ||
| 755 | func (x *PrintSettings) SetPrintPages(PagesVar PrintPages) { | 874 | func (x *PrintSettings) SetPrintPages(PagesVar PrintPages) { | ||
| 875 | + | core.LazyRegister(&xPrintSettingsSetPrintPages, "GTK", "gtk_print_settings_set_print_pages", false) | |||
| 876 | + | ||||
| 756 | xPrintSettingsSetPrintPages(x.GoPointer(), PagesVar) | 877 | xPrintSettingsSetPrintPages(x.GoPointer(), PagesVar) | ||
| 757 | } | 878 | } | ||
| 758 | 879 | ||||
| @@ -761,6 +882,8 @@ var xPrintSettingsSetPrinter func(uintptr, string) | |||||
| 761 | // Convenience function to set %GTK_PRINT_SETTINGS_PRINTER | 882 | // Convenience function to set %GTK_PRINT_SETTINGS_PRINTER | ||
| 762 | // to @printer. | 883 | // to @printer. | ||
| 763 | func (x *PrintSettings) SetPrinter(PrinterVar string) { | 884 | func (x *PrintSettings) SetPrinter(PrinterVar string) { | ||
| 885 | + | core.LazyRegister(&xPrintSettingsSetPrinter, "GTK", "gtk_print_settings_set_printer", false) | |||
| 886 | + | ||||
| 764 | xPrintSettingsSetPrinter(x.GoPointer(), PrinterVar) | 887 | xPrintSettingsSetPrinter(x.GoPointer(), PrinterVar) | ||
| 765 | } | 888 | } | ||
| 766 | 889 | ||||
| @@ -768,6 +891,8 @@ var xPrintSettingsSetPrinterLpi func(uintptr, float64) | |||||
| 768 | 891 | ||||
| 769 | // Sets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | 892 | // Sets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI. | ||
| 770 | func (x *PrintSettings) SetPrinterLpi(LpiVar float64) { | 893 | func (x *PrintSettings) SetPrinterLpi(LpiVar float64) { | ||
| 894 | + | core.LazyRegister(&xPrintSettingsSetPrinterLpi, "GTK", "gtk_print_settings_set_printer_lpi", false) | |||
| 895 | + | ||||
| 771 | xPrintSettingsSetPrinterLpi(x.GoPointer(), LpiVar) | 896 | xPrintSettingsSetPrinterLpi(x.GoPointer(), LpiVar) | ||
| 772 | } | 897 | } | ||
| 773 | 898 | ||||
| @@ -775,6 +900,8 @@ var xPrintSettingsSetQuality func(uintptr, PrintQuality) | |||||
| 775 | 900 | ||||
| 776 | // Sets the value of %GTK_PRINT_SETTINGS_QUALITY. | 901 | // Sets the value of %GTK_PRINT_SETTINGS_QUALITY. | ||
| 777 | func (x *PrintSettings) SetQuality(QualityVar PrintQuality) { | 902 | func (x *PrintSettings) SetQuality(QualityVar PrintQuality) { | ||
| 903 | + | core.LazyRegister(&xPrintSettingsSetQuality, "GTK", "gtk_print_settings_set_quality", false) | |||
| 904 | + | ||||
| 778 | xPrintSettingsSetQuality(x.GoPointer(), QualityVar) | 905 | xPrintSettingsSetQuality(x.GoPointer(), QualityVar) | ||
| 779 | } | 906 | } | ||
| 780 | 907 | ||||
| @@ -784,6 +911,8 @@ var xPrintSettingsSetResolution func(uintptr, int) | |||||
| 784 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | 911 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | ||
| 785 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | 912 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | ||
| 786 | func (x *PrintSettings) SetResolution(ResolutionVar int) { | 913 | func (x *PrintSettings) SetResolution(ResolutionVar int) { | ||
| 914 | + | core.LazyRegister(&xPrintSettingsSetResolution, "GTK", "gtk_print_settings_set_resolution", false) | |||
| 915 | + | ||||
| 787 | xPrintSettingsSetResolution(x.GoPointer(), ResolutionVar) | 916 | xPrintSettingsSetResolution(x.GoPointer(), ResolutionVar) | ||
| 788 | } | 917 | } | ||
| 789 | 918 | ||||
| @@ -793,6 +922,8 @@ var xPrintSettingsSetResolutionXy func(uintptr, int, int) | |||||
| 793 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | 922 | // %GTK_PRINT_SETTINGS_RESOLUTION_X and | ||
| 794 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | 923 | // %GTK_PRINT_SETTINGS_RESOLUTION_Y. | ||
| 795 | func (x *PrintSettings) SetResolutionXy(ResolutionXVar int, ResolutionYVar int) { | 924 | func (x *PrintSettings) SetResolutionXy(ResolutionXVar int, ResolutionYVar int) { | ||
| 925 | + | core.LazyRegister(&xPrintSettingsSetResolutionXy, "GTK", "gtk_print_settings_set_resolution_xy", false) | |||
| 926 | + | ||||
| 796 | xPrintSettingsSetResolutionXy(x.GoPointer(), ResolutionXVar, ResolutionYVar) | 927 | xPrintSettingsSetResolutionXy(x.GoPointer(), ResolutionXVar, ResolutionYVar) | ||
| 797 | } | 928 | } | ||
| 798 | 929 | ||||
| @@ -800,6 +931,8 @@ var xPrintSettingsSetReverse func(uintptr, bool) | |||||
| 800 | 931 | ||||
| 801 | // Sets the value of %GTK_PRINT_SETTINGS_REVERSE. | 932 | // Sets the value of %GTK_PRINT_SETTINGS_REVERSE. | ||
| 802 | func (x *PrintSettings) SetReverse(ReverseVar bool) { | 933 | func (x *PrintSettings) SetReverse(ReverseVar bool) { | ||
| 934 | + | core.LazyRegister(&xPrintSettingsSetReverse, "GTK", "gtk_print_settings_set_reverse", false) | |||
| 935 | + | ||||
| 803 | xPrintSettingsSetReverse(x.GoPointer(), ReverseVar) | 936 | xPrintSettingsSetReverse(x.GoPointer(), ReverseVar) | ||
| 804 | } | 937 | } | ||
| 805 | 938 | ||||
| @@ -807,6 +940,8 @@ var xPrintSettingsSetScale func(uintptr, float64) | |||||
| 807 | 940 | ||||
| 808 | // Sets the value of %GTK_PRINT_SETTINGS_SCALE. | 941 | // Sets the value of %GTK_PRINT_SETTINGS_SCALE. | ||
| 809 | func (x *PrintSettings) SetScale(ScaleVar float64) { | 942 | func (x *PrintSettings) SetScale(ScaleVar float64) { | ||
| 943 | + | core.LazyRegister(&xPrintSettingsSetScale, "GTK", "gtk_print_settings_set_scale", false) | |||
| 944 | + | ||||
| 810 | xPrintSettingsSetScale(x.GoPointer(), ScaleVar) | 945 | xPrintSettingsSetScale(x.GoPointer(), ScaleVar) | ||
| 811 | } | 946 | } | ||
| 812 | 947 | ||||
| @@ -814,6 +949,8 @@ var xPrintSettingsSetUseColor func(uintptr, bool) | |||||
| 814 | 949 | ||||
| 815 | // Sets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | 950 | // Sets the value of %GTK_PRINT_SETTINGS_USE_COLOR. | ||
| 816 | func (x *PrintSettings) SetUseColor(UseColorVar bool) { | 951 | func (x *PrintSettings) SetUseColor(UseColorVar bool) { | ||
| 952 | + | core.LazyRegister(&xPrintSettingsSetUseColor, "GTK", "gtk_print_settings_set_use_color", false) | |||
| 953 | + | ||||
| 817 | xPrintSettingsSetUseColor(x.GoPointer(), UseColorVar) | 954 | xPrintSettingsSetUseColor(x.GoPointer(), UseColorVar) | ||
| 818 | } | 955 | } | ||
| 819 | 956 | ||||
| @@ -824,6 +961,7 @@ var xPrintSettingsToFile func(uintptr, string, **glib.Error) bool | |||||
| 824 | // If the file could not be written then error is set to either a | 961 | // If the file could not be written then error is set to either a | ||
| 825 | // `GFileError` or `GKeyFileError`. | 962 | // `GFileError` or `GKeyFileError`. | ||
| 826 | func (x *PrintSettings) ToFile(FileNameVar string) (bool, error) { | 963 | func (x *PrintSettings) ToFile(FileNameVar string) (bool, error) { | ||
| 964 | + | core.LazyRegister(&xPrintSettingsToFile, "GTK", "gtk_print_settings_to_file", false) | |||
| 827 | var cerr *glib.Error | 965 | var cerr *glib.Error | ||
| 828 | 966 | ||||
| 829 | cret := xPrintSettingsToFile(x.GoPointer(), FileNameVar, &cerr) | 967 | cret := xPrintSettingsToFile(x.GoPointer(), FileNameVar, &cerr) | ||
| @@ -837,6 +975,8 @@ var xPrintSettingsToGvariant func(uintptr) uintptr | |||||
| 837 | 975 | ||||
| 838 | // Serialize print settings to an a{sv} variant. | 976 | // Serialize print settings to an a{sv} variant. | ||
| 839 | func (x *PrintSettings) ToGvariant() *glib.Variant { | 977 | func (x *PrintSettings) ToGvariant() *glib.Variant { | ||
| 978 | + | core.LazyRegister(&xPrintSettingsToGvariant, "GTK", "gtk_print_settings_to_gvariant", false) | |||
| 979 | + | ||||
| 840 | cret := xPrintSettingsToGvariant(x.GoPointer()) | 980 | cret := xPrintSettingsToGvariant(x.GoPointer()) | ||
| 841 | if cret == 0 { | 981 | if cret == 0 { | ||
| 842 | return nil | 982 | return nil | ||
| @@ -848,6 +988,8 @@ var xPrintSettingsToKeyFile func(uintptr, *glib.KeyFile, uintptr) | |||||
| 848 | 988 | ||||
| 849 | // This function adds the print settings from @settings to @key_file. | 989 | // This function adds the print settings from @settings to @key_file. | ||
| 850 | func (x *PrintSettings) ToKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) { | 990 | func (x *PrintSettings) ToKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar *string) { | ||
| 991 | + | core.LazyRegister(&xPrintSettingsToKeyFile, "GTK", "gtk_print_settings_to_key_file", false) | |||
| 992 | + | ||||
| 851 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | 993 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | ||
| 852 | defer core.GFreeNullable(GroupNameVarPtr) | 994 | defer core.GFreeNullable(GroupNameVarPtr) | ||
| 853 | 995 | ||||
| @@ -860,6 +1002,8 @@ var xPrintSettingsUnset func(uintptr, string) | |||||
| 860 | // | 1002 | // | ||
| 861 | // This has the same effect as setting the value to %NULL. | 1003 | // This has the same effect as setting the value to %NULL. | ||
| 862 | func (x *PrintSettings) Unset(KeyVar string) { | 1004 | func (x *PrintSettings) Unset(KeyVar string) { | ||
| 1005 | + | core.LazyRegister(&xPrintSettingsUnset, "GTK", "gtk_print_settings_unset", false) | |||
| 1006 | + | ||||
| 863 | xPrintSettingsUnset(x.GoPointer(), KeyVar) | 1007 | xPrintSettingsUnset(x.GoPointer(), KeyVar) | ||
| 864 | } | 1008 | } | ||
| 865 | 1009 | ||||
| @@ -877,92 +1021,4 @@ func (c *PrintSettings) SetGoPointer(ptr uintptr) { | |||||
| 877 | func init() { | 1021 | func init() { | ||
| 878 | core.SetPackageName("GTK", "gtk4") | 1022 | core.SetPackageName("GTK", "gtk4") | ||
| 879 | core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 1023 | core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 880 | - | var libs []uintptr | |||
| 881 | - | for _, libPath := range core.GetPaths("GTK") { | |||
| 882 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 883 | - | if err != nil { | |||
| 884 | - | panic(err) | |||
| 885 | - | } | |||
| 886 | - | libs = append(libs, lib) | |||
| 887 | - | } | |||
| 888 | - | ||||
| 889 | - | core.PuregoSafeRegister(&xPrintSettingsGLibType, libs, "gtk_print_settings_get_type") | |||
| 890 | - | ||||
| 891 | - | core.PuregoSafeRegister(&xNewPrintSettings, libs, "gtk_print_settings_new") | |||
| 892 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromFile, libs, "gtk_print_settings_new_from_file") | |||
| 893 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromGvariant, libs, "gtk_print_settings_new_from_gvariant") | |||
| 894 | - | core.PuregoSafeRegister(&xNewPrintSettingsFromKeyFile, libs, "gtk_print_settings_new_from_key_file") | |||
| 895 | - | ||||
| 896 | - | core.PuregoSafeRegister(&xPrintSettingsCopy, libs, "gtk_print_settings_copy") | |||
| 897 | - | core.PuregoSafeRegister(&xPrintSettingsForeach, libs, "gtk_print_settings_foreach") | |||
| 898 | - | core.PuregoSafeRegister(&xPrintSettingsGet, libs, "gtk_print_settings_get") | |||
| 899 | - | core.PuregoSafeRegister(&xPrintSettingsGetBool, libs, "gtk_print_settings_get_bool") | |||
| 900 | - | core.PuregoSafeRegister(&xPrintSettingsGetCollate, libs, "gtk_print_settings_get_collate") | |||
| 901 | - | core.PuregoSafeRegister(&xPrintSettingsGetDefaultSource, libs, "gtk_print_settings_get_default_source") | |||
| 902 | - | core.PuregoSafeRegister(&xPrintSettingsGetDither, libs, "gtk_print_settings_get_dither") | |||
| 903 | - | core.PuregoSafeRegister(&xPrintSettingsGetDouble, libs, "gtk_print_settings_get_double") | |||
| 904 | - | core.PuregoSafeRegister(&xPrintSettingsGetDoubleWithDefault, libs, "gtk_print_settings_get_double_with_default") | |||
| 905 | - | core.PuregoSafeRegister(&xPrintSettingsGetDuplex, libs, "gtk_print_settings_get_duplex") | |||
| 906 | - | core.PuregoSafeRegister(&xPrintSettingsGetFinishings, libs, "gtk_print_settings_get_finishings") | |||
| 907 | - | core.PuregoSafeRegister(&xPrintSettingsGetInt, libs, "gtk_print_settings_get_int") | |||
| 908 | - | core.PuregoSafeRegister(&xPrintSettingsGetIntWithDefault, libs, "gtk_print_settings_get_int_with_default") | |||
| 909 | - | core.PuregoSafeRegister(&xPrintSettingsGetLength, libs, "gtk_print_settings_get_length") | |||
| 910 | - | core.PuregoSafeRegister(&xPrintSettingsGetMediaType, libs, "gtk_print_settings_get_media_type") | |||
| 911 | - | core.PuregoSafeRegister(&xPrintSettingsGetNCopies, libs, "gtk_print_settings_get_n_copies") | |||
| 912 | - | core.PuregoSafeRegister(&xPrintSettingsGetNumberUp, libs, "gtk_print_settings_get_number_up") | |||
| 913 | - | core.PuregoSafeRegister(&xPrintSettingsGetNumberUpLayout, libs, "gtk_print_settings_get_number_up_layout") | |||
| 914 | - | core.PuregoSafeRegister(&xPrintSettingsGetOrientation, libs, "gtk_print_settings_get_orientation") | |||
| 915 | - | core.PuregoSafeRegister(&xPrintSettingsGetOutputBin, libs, "gtk_print_settings_get_output_bin") | |||
| 916 | - | core.PuregoSafeRegister(&xPrintSettingsGetPageRanges, libs, "gtk_print_settings_get_page_ranges") | |||
| 917 | - | core.PuregoSafeRegister(&xPrintSettingsGetPageSet, libs, "gtk_print_settings_get_page_set") | |||
| 918 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperHeight, libs, "gtk_print_settings_get_paper_height") | |||
| 919 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperSize, libs, "gtk_print_settings_get_paper_size") | |||
| 920 | - | core.PuregoSafeRegister(&xPrintSettingsGetPaperWidth, libs, "gtk_print_settings_get_paper_width") | |||
| 921 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrintPages, libs, "gtk_print_settings_get_print_pages") | |||
| 922 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrinter, libs, "gtk_print_settings_get_printer") | |||
| 923 | - | core.PuregoSafeRegister(&xPrintSettingsGetPrinterLpi, libs, "gtk_print_settings_get_printer_lpi") | |||
| 924 | - | core.PuregoSafeRegister(&xPrintSettingsGetQuality, libs, "gtk_print_settings_get_quality") | |||
| 925 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolution, libs, "gtk_print_settings_get_resolution") | |||
| 926 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolutionX, libs, "gtk_print_settings_get_resolution_x") | |||
| 927 | - | core.PuregoSafeRegister(&xPrintSettingsGetResolutionY, libs, "gtk_print_settings_get_resolution_y") | |||
| 928 | - | core.PuregoSafeRegister(&xPrintSettingsGetReverse, libs, "gtk_print_settings_get_reverse") | |||
| 929 | - | core.PuregoSafeRegister(&xPrintSettingsGetScale, libs, "gtk_print_settings_get_scale") | |||
| 930 | - | core.PuregoSafeRegister(&xPrintSettingsGetUseColor, libs, "gtk_print_settings_get_use_color") | |||
| 931 | - | core.PuregoSafeRegister(&xPrintSettingsHasKey, libs, "gtk_print_settings_has_key") | |||
| 932 | - | core.PuregoSafeRegister(&xPrintSettingsLoadFile, libs, "gtk_print_settings_load_file") | |||
| 933 | - | core.PuregoSafeRegister(&xPrintSettingsLoadKeyFile, libs, "gtk_print_settings_load_key_file") | |||
| 934 | - | core.PuregoSafeRegister(&xPrintSettingsSet, libs, "gtk_print_settings_set") | |||
| 935 | - | core.PuregoSafeRegister(&xPrintSettingsSetBool, libs, "gtk_print_settings_set_bool") | |||
| 936 | - | core.PuregoSafeRegister(&xPrintSettingsSetCollate, libs, "gtk_print_settings_set_collate") | |||
| 937 | - | core.PuregoSafeRegister(&xPrintSettingsSetDefaultSource, libs, "gtk_print_settings_set_default_source") | |||
| 938 | - | core.PuregoSafeRegister(&xPrintSettingsSetDither, libs, "gtk_print_settings_set_dither") | |||
| 939 | - | core.PuregoSafeRegister(&xPrintSettingsSetDouble, libs, "gtk_print_settings_set_double") | |||
| 940 | - | core.PuregoSafeRegister(&xPrintSettingsSetDuplex, libs, "gtk_print_settings_set_duplex") | |||
| 941 | - | core.PuregoSafeRegister(&xPrintSettingsSetFinishings, libs, "gtk_print_settings_set_finishings") | |||
| 942 | - | core.PuregoSafeRegister(&xPrintSettingsSetInt, libs, "gtk_print_settings_set_int") | |||
| 943 | - | core.PuregoSafeRegister(&xPrintSettingsSetLength, libs, "gtk_print_settings_set_length") | |||
| 944 | - | core.PuregoSafeRegister(&xPrintSettingsSetMediaType, libs, "gtk_print_settings_set_media_type") | |||
| 945 | - | core.PuregoSafeRegister(&xPrintSettingsSetNCopies, libs, "gtk_print_settings_set_n_copies") | |||
| 946 | - | core.PuregoSafeRegister(&xPrintSettingsSetNumberUp, libs, "gtk_print_settings_set_number_up") | |||
| 947 | - | core.PuregoSafeRegister(&xPrintSettingsSetNumberUpLayout, libs, "gtk_print_settings_set_number_up_layout") | |||
| 948 | - | core.PuregoSafeRegister(&xPrintSettingsSetOrientation, libs, "gtk_print_settings_set_orientation") | |||
| 949 | - | core.PuregoSafeRegister(&xPrintSettingsSetOutputBin, libs, "gtk_print_settings_set_output_bin") | |||
| 950 | - | core.PuregoSafeRegister(&xPrintSettingsSetPageRanges, libs, "gtk_print_settings_set_page_ranges") | |||
| 951 | - | core.PuregoSafeRegister(&xPrintSettingsSetPageSet, libs, "gtk_print_settings_set_page_set") | |||
| 952 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperHeight, libs, "gtk_print_settings_set_paper_height") | |||
| 953 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperSize, libs, "gtk_print_settings_set_paper_size") | |||
| 954 | - | core.PuregoSafeRegister(&xPrintSettingsSetPaperWidth, libs, "gtk_print_settings_set_paper_width") | |||
| 955 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrintPages, libs, "gtk_print_settings_set_print_pages") | |||
| 956 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrinter, libs, "gtk_print_settings_set_printer") | |||
| 957 | - | core.PuregoSafeRegister(&xPrintSettingsSetPrinterLpi, libs, "gtk_print_settings_set_printer_lpi") | |||
| 958 | - | core.PuregoSafeRegister(&xPrintSettingsSetQuality, libs, "gtk_print_settings_set_quality") | |||
| 959 | - | core.PuregoSafeRegister(&xPrintSettingsSetResolution, libs, "gtk_print_settings_set_resolution") | |||
| 960 | - | core.PuregoSafeRegister(&xPrintSettingsSetResolutionXy, libs, "gtk_print_settings_set_resolution_xy") | |||
| 961 | - | core.PuregoSafeRegister(&xPrintSettingsSetReverse, libs, "gtk_print_settings_set_reverse") | |||
| 962 | - | core.PuregoSafeRegister(&xPrintSettingsSetScale, libs, "gtk_print_settings_set_scale") | |||
| 963 | - | core.PuregoSafeRegister(&xPrintSettingsSetUseColor, libs, "gtk_print_settings_set_use_color") | |||
| 964 | - | core.PuregoSafeRegister(&xPrintSettingsToFile, libs, "gtk_print_settings_to_file") | |||
| 965 | - | core.PuregoSafeRegister(&xPrintSettingsToGvariant, libs, "gtk_print_settings_to_gvariant") | |||
| 966 | - | core.PuregoSafeRegister(&xPrintSettingsToKeyFile, libs, "gtk_print_settings_to_key_file") | |||
| 967 | - | core.PuregoSafeRegister(&xPrintSettingsUnset, libs, "gtk_print_settings_unset") | |||
| 968 | } | 1024 | } | ||