Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 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
| @@ -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/gdk" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -37,6 +36,8 @@ var xShowAboutWindow func(uintptr, string, ...interface{}) | |||
| 37 | 36 | ||
| 38 | 37 | // A convenience function for showing an application’s about window. | |
| 39 | 38 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 39 | + | core.LazyRegister(&xShowAboutWindow, "ADW", "adw_show_about_window", false) | |
| 40 | + | ||
| 40 | 41 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | |
| 41 | 42 | } | |
| 42 | 43 | ||
| @@ -47,6 +48,8 @@ var xShowAboutWindowFromAppdata func(uintptr, string, uintptr, string, ...interf | |||
| 47 | 48 | // | |
| 48 | 49 | // See [ctor@AboutWindow.new_from_appdata] for details. | |
| 49 | 50 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 51 | + | core.LazyRegister(&xShowAboutWindowFromAppdata, "ADW", "adw_show_about_window_from_appdata", false) | |
| 52 | + | ||
| 50 | 53 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 51 | 54 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 52 | 55 | ||
| @@ -231,6 +234,7 @@ type AboutWindow struct { | |||
| 231 | 234 | var xAboutWindowGLibType func() types.GType | |
| 232 | 235 | ||
| 233 | 236 | func AboutWindowGLibType() types.GType { | |
| 237 | + | core.LazyRegister(&xAboutWindowGLibType, "ADW", "adw_about_window_get_type", false) | |
| 234 | 238 | return xAboutWindowGLibType() | |
| 235 | 239 | } | |
| 236 | 240 | ||
| @@ -244,6 +248,7 @@ var xNewAboutWindow func() uintptr | |||
| 244 | 248 | ||
| 245 | 249 | // Creates a new `AdwAboutWindow`. | |
| 246 | 250 | func NewAboutWindow() *AboutWindow { | |
| 251 | + | core.LazyRegister(&xNewAboutWindow, "ADW", "adw_about_window_new", false) | |
| 247 | 252 | var cls *AboutWindow | |
| 248 | 253 | ||
| 249 | 254 | cret := xNewAboutWindow() | |
| @@ -281,6 +286,7 @@ var xNewAboutWindowFromAppdata func(string, uintptr) uintptr | |||
| 281 | 286 | // [property@AboutWindow:release-notes] is set from the AppStream release | |
| 282 | 287 | // description for that version. | |
| 283 | 288 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | |
| 289 | + | core.LazyRegister(&xNewAboutWindowFromAppdata, "ADW", "adw_about_window_new_from_appdata", false) | |
| 284 | 290 | var cls *AboutWindow | |
| 285 | 291 | ||
| 286 | 292 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| @@ -317,6 +323,8 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, uintptr, []string) | |||
| 317 | 323 | // * [property@AboutWindow:translator-credits] | |
| 318 | 324 | // * [method@AboutWindow.add_credit_section] | |
| 319 | 325 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | |
| 326 | + | core.LazyRegister(&xAboutWindowAddAcknowledgementSection, "ADW", "adw_about_window_add_acknowledgement_section", false) | |
| 327 | + | ||
| 320 | 328 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 321 | 329 | defer core.GFreeNullable(NameVarPtr) | |
| 322 | 330 | ||
| @@ -341,6 +349,8 @@ var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |||
| 341 | 349 | // * [property@AboutWindow:translator-credits] | |
| 342 | 350 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 343 | 351 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | |
| 352 | + | core.LazyRegister(&xAboutWindowAddCreditSection, "ADW", "adw_about_window_add_credit_section", false) | |
| 353 | + | ||
| 344 | 354 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 345 | 355 | defer core.GFreeNullable(NameVarPtr) | |
| 346 | 356 | ||
| @@ -395,6 +405,8 @@ var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||
| 395 | 405 | // | |
| 396 | 406 | // ``` | |
| 397 | 407 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | |
| 408 | + | core.LazyRegister(&xAboutWindowAddLegalSection, "ADW", "adw_about_window_add_legal_section", false) | |
| 409 | + | ||
| 398 | 410 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | |
| 399 | 411 | defer core.GFreeNullable(CopyrightVarPtr) | |
| 400 | 412 | ||
| @@ -414,6 +426,8 @@ var xAboutWindowAddLink func(uintptr, string, string) | |||
| 414 | 426 | // | |
| 415 | 427 | // See [property@AboutWindow:website]. | |
| 416 | 428 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | |
| 429 | + | core.LazyRegister(&xAboutWindowAddLink, "ADW", "adw_about_window_add_link", false) | |
| 430 | + | ||
| 417 | 431 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | |
| 418 | 432 | } | |
| 419 | 433 | ||
| @@ -421,6 +435,8 @@ var xAboutWindowGetApplicationIcon func(uintptr) string | |||
| 421 | 435 | ||
| 422 | 436 | // Gets the name of the application icon for @self. | |
| 423 | 437 | func (x *AboutWindow) GetApplicationIcon() string { | |
| 438 | + | core.LazyRegister(&xAboutWindowGetApplicationIcon, "ADW", "adw_about_window_get_application_icon", false) | |
| 439 | + | ||
| 424 | 440 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | |
| 425 | 441 | return cret | |
| 426 | 442 | } | |
| @@ -429,6 +445,8 @@ var xAboutWindowGetApplicationName func(uintptr) string | |||
| 429 | 445 | ||
| 430 | 446 | // Gets the application name for @self. | |
| 431 | 447 | func (x *AboutWindow) GetApplicationName() string { | |
| 448 | + | core.LazyRegister(&xAboutWindowGetApplicationName, "ADW", "adw_about_window_get_application_name", false) | |
| 449 | + | ||
| 432 | 450 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | |
| 433 | 451 | return cret | |
| 434 | 452 | } | |
| @@ -437,6 +455,8 @@ var xAboutWindowGetArtists func(uintptr) []string | |||
| 437 | 455 | ||
| 438 | 456 | // Gets the list of artists of the application. | |
| 439 | 457 | func (x *AboutWindow) GetArtists() []string { | |
| 458 | + | core.LazyRegister(&xAboutWindowGetArtists, "ADW", "adw_about_window_get_artists", false) | |
| 459 | + | ||
| 440 | 460 | cret := xAboutWindowGetArtists(x.GoPointer()) | |
| 441 | 461 | return cret | |
| 442 | 462 | } | |
| @@ -445,6 +465,8 @@ var xAboutWindowGetComments func(uintptr) string | |||
| 445 | 465 | ||
| 446 | 466 | // Gets the comments about the application. | |
| 447 | 467 | func (x *AboutWindow) GetComments() string { | |
| 468 | + | core.LazyRegister(&xAboutWindowGetComments, "ADW", "adw_about_window_get_comments", false) | |
| 469 | + | ||
| 448 | 470 | cret := xAboutWindowGetComments(x.GoPointer()) | |
| 449 | 471 | return cret | |
| 450 | 472 | } | |
| @@ -453,6 +475,8 @@ var xAboutWindowGetCopyright func(uintptr) string | |||
| 453 | 475 | ||
| 454 | 476 | // Gets the copyright information for @self. | |
| 455 | 477 | func (x *AboutWindow) GetCopyright() string { | |
| 478 | + | core.LazyRegister(&xAboutWindowGetCopyright, "ADW", "adw_about_window_get_copyright", false) | |
| 479 | + | ||
| 456 | 480 | cret := xAboutWindowGetCopyright(x.GoPointer()) | |
| 457 | 481 | return cret | |
| 458 | 482 | } | |
| @@ -461,6 +485,8 @@ var xAboutWindowGetDebugInfo func(uintptr) string | |||
| 461 | 485 | ||
| 462 | 486 | // Gets the debug information for @self. | |
| 463 | 487 | func (x *AboutWindow) GetDebugInfo() string { | |
| 488 | + | core.LazyRegister(&xAboutWindowGetDebugInfo, "ADW", "adw_about_window_get_debug_info", false) | |
| 489 | + | ||
| 464 | 490 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | |
| 465 | 491 | return cret | |
| 466 | 492 | } | |
| @@ -469,6 +495,8 @@ var xAboutWindowGetDebugInfoFilename func(uintptr) string | |||
| 469 | 495 | ||
| 470 | 496 | // Gets the debug information filename for @self. | |
| 471 | 497 | func (x *AboutWindow) GetDebugInfoFilename() string { | |
| 498 | + | core.LazyRegister(&xAboutWindowGetDebugInfoFilename, "ADW", "adw_about_window_get_debug_info_filename", false) | |
| 499 | + | ||
| 472 | 500 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | |
| 473 | 501 | return cret | |
| 474 | 502 | } | |
| @@ -477,6 +505,8 @@ var xAboutWindowGetDesigners func(uintptr) []string | |||
| 477 | 505 | ||
| 478 | 506 | // Gets the list of designers of the application. | |
| 479 | 507 | func (x *AboutWindow) GetDesigners() []string { | |
| 508 | + | core.LazyRegister(&xAboutWindowGetDesigners, "ADW", "adw_about_window_get_designers", false) | |
| 509 | + | ||
| 480 | 510 | cret := xAboutWindowGetDesigners(x.GoPointer()) | |
| 481 | 511 | return cret | |
| 482 | 512 | } | |
| @@ -485,6 +515,8 @@ var xAboutWindowGetDeveloperName func(uintptr) string | |||
| 485 | 515 | ||
| 486 | 516 | // Gets the developer name for @self. | |
| 487 | 517 | func (x *AboutWindow) GetDeveloperName() string { | |
| 518 | + | core.LazyRegister(&xAboutWindowGetDeveloperName, "ADW", "adw_about_window_get_developer_name", false) | |
| 519 | + | ||
| 488 | 520 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | |
| 489 | 521 | return cret | |
| 490 | 522 | } | |
| @@ -493,6 +525,8 @@ var xAboutWindowGetDevelopers func(uintptr) []string | |||
| 493 | 525 | ||
| 494 | 526 | // Gets the list of developers of the application. | |
| 495 | 527 | func (x *AboutWindow) GetDevelopers() []string { | |
| 528 | + | core.LazyRegister(&xAboutWindowGetDevelopers, "ADW", "adw_about_window_get_developers", false) | |
| 529 | + | ||
| 496 | 530 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | |
| 497 | 531 | return cret | |
| 498 | 532 | } | |
| @@ -501,6 +535,8 @@ var xAboutWindowGetDocumenters func(uintptr) []string | |||
| 501 | 535 | ||
| 502 | 536 | // Gets the list of documenters of the application. | |
| 503 | 537 | func (x *AboutWindow) GetDocumenters() []string { | |
| 538 | + | core.LazyRegister(&xAboutWindowGetDocumenters, "ADW", "adw_about_window_get_documenters", false) | |
| 539 | + | ||
| 504 | 540 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | |
| 505 | 541 | return cret | |
| 506 | 542 | } | |
| @@ -509,6 +545,8 @@ var xAboutWindowGetIssueUrl func(uintptr) string | |||
| 509 | 545 | ||
| 510 | 546 | // Gets the issue tracker URL for @self. | |
| 511 | 547 | func (x *AboutWindow) GetIssueUrl() string { | |
| 548 | + | core.LazyRegister(&xAboutWindowGetIssueUrl, "ADW", "adw_about_window_get_issue_url", false) | |
| 549 | + | ||
| 512 | 550 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | |
| 513 | 551 | return cret | |
| 514 | 552 | } | |
| @@ -517,6 +555,8 @@ var xAboutWindowGetLicense func(uintptr) string | |||
| 517 | 555 | ||
| 518 | 556 | // Gets the license for @self. | |
| 519 | 557 | func (x *AboutWindow) GetLicense() string { | |
| 558 | + | core.LazyRegister(&xAboutWindowGetLicense, "ADW", "adw_about_window_get_license", false) | |
| 559 | + | ||
| 520 | 560 | cret := xAboutWindowGetLicense(x.GoPointer()) | |
| 521 | 561 | return cret | |
| 522 | 562 | } | |
| @@ -525,6 +565,8 @@ var xAboutWindowGetLicenseType func(uintptr) gtk.License | |||
| 525 | 565 | ||
| 526 | 566 | // Gets the license type for @self. | |
| 527 | 567 | func (x *AboutWindow) GetLicenseType() gtk.License { | |
| 568 | + | core.LazyRegister(&xAboutWindowGetLicenseType, "ADW", "adw_about_window_get_license_type", false) | |
| 569 | + | ||
| 528 | 570 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | |
| 529 | 571 | return cret | |
| 530 | 572 | } | |
| @@ -533,6 +575,8 @@ var xAboutWindowGetReleaseNotes func(uintptr) string | |||
| 533 | 575 | ||
| 534 | 576 | // Gets the release notes for @self. | |
| 535 | 577 | func (x *AboutWindow) GetReleaseNotes() string { | |
| 578 | + | core.LazyRegister(&xAboutWindowGetReleaseNotes, "ADW", "adw_about_window_get_release_notes", false) | |
| 579 | + | ||
| 536 | 580 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | |
| 537 | 581 | return cret | |
| 538 | 582 | } | |
| @@ -541,6 +585,8 @@ var xAboutWindowGetReleaseNotesVersion func(uintptr) string | |||
| 541 | 585 | ||
| 542 | 586 | // Gets the version described by the application's release notes. | |
| 543 | 587 | func (x *AboutWindow) GetReleaseNotesVersion() string { | |
| 588 | + | core.LazyRegister(&xAboutWindowGetReleaseNotesVersion, "ADW", "adw_about_window_get_release_notes_version", false) | |
| 589 | + | ||
| 544 | 590 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | |
| 545 | 591 | return cret | |
| 546 | 592 | } | |
| @@ -549,6 +595,8 @@ var xAboutWindowGetSupportUrl func(uintptr) string | |||
| 549 | 595 | ||
| 550 | 596 | // Gets the URL of the support page for @self. | |
| 551 | 597 | func (x *AboutWindow) GetSupportUrl() string { | |
| 598 | + | core.LazyRegister(&xAboutWindowGetSupportUrl, "ADW", "adw_about_window_get_support_url", false) | |
| 599 | + | ||
| 552 | 600 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | |
| 553 | 601 | return cret | |
| 554 | 602 | } | |
| @@ -557,6 +605,8 @@ var xAboutWindowGetTranslatorCredits func(uintptr) string | |||
| 557 | 605 | ||
| 558 | 606 | // Gets the translator credits string. | |
| 559 | 607 | func (x *AboutWindow) GetTranslatorCredits() string { | |
| 608 | + | core.LazyRegister(&xAboutWindowGetTranslatorCredits, "ADW", "adw_about_window_get_translator_credits", false) | |
| 609 | + | ||
| 560 | 610 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | |
| 561 | 611 | return cret | |
| 562 | 612 | } | |
| @@ -565,6 +615,8 @@ var xAboutWindowGetVersion func(uintptr) string | |||
| 565 | 615 | ||
| 566 | 616 | // Gets the version for @self. | |
| 567 | 617 | func (x *AboutWindow) GetVersion() string { | |
| 618 | + | core.LazyRegister(&xAboutWindowGetVersion, "ADW", "adw_about_window_get_version", false) | |
| 619 | + | ||
| 568 | 620 | cret := xAboutWindowGetVersion(x.GoPointer()) | |
| 569 | 621 | return cret | |
| 570 | 622 | } | |
| @@ -573,6 +625,8 @@ var xAboutWindowGetWebsite func(uintptr) string | |||
| 573 | 625 | ||
| 574 | 626 | // Gets the application website URL for @self. | |
| 575 | 627 | func (x *AboutWindow) GetWebsite() string { | |
| 628 | + | core.LazyRegister(&xAboutWindowGetWebsite, "ADW", "adw_about_window_get_website", false) | |
| 629 | + | ||
| 576 | 630 | cret := xAboutWindowGetWebsite(x.GoPointer()) | |
| 577 | 631 | return cret | |
| 578 | 632 | } | |
| @@ -583,6 +637,8 @@ var xAboutWindowSetApplicationIcon func(uintptr, string) | |||
| 583 | 637 | // | |
| 584 | 638 | // The icon is displayed at the top of the main page. | |
| 585 | 639 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | |
| 640 | + | core.LazyRegister(&xAboutWindowSetApplicationIcon, "ADW", "adw_about_window_set_application_icon", false) | |
| 641 | + | ||
| 586 | 642 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | |
| 587 | 643 | } | |
| 588 | 644 | ||
| @@ -592,6 +648,8 @@ var xAboutWindowSetApplicationName func(uintptr, string) | |||
| 592 | 648 | // | |
| 593 | 649 | // The name is displayed at the top of the main page. | |
| 594 | 650 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | |
| 651 | + | core.LazyRegister(&xAboutWindowSetApplicationName, "ADW", "adw_about_window_set_application_name", false) | |
| 652 | + | ||
| 595 | 653 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | |
| 596 | 654 | } | |
| 597 | 655 | ||
| @@ -613,6 +671,8 @@ var xAboutWindowSetArtists func(uintptr, []string) | |||
| 613 | 671 | // * [method@AboutWindow.add_credit_section] | |
| 614 | 672 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 615 | 673 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | |
| 674 | + | core.LazyRegister(&xAboutWindowSetArtists, "ADW", "adw_about_window_set_artists", false) | |
| 675 | + | ||
| 616 | 676 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | |
| 617 | 677 | } | |
| 618 | 678 | ||
| @@ -625,6 +685,8 @@ var xAboutWindowSetComments func(uintptr, string) | |||
| 625 | 685 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | |
| 626 | 686 | // detailed. It can also contain links and Pango markup. | |
| 627 | 687 | func (x *AboutWindow) SetComments(CommentsVar string) { | |
| 688 | + | core.LazyRegister(&xAboutWindowSetComments, "ADW", "adw_about_window_set_comments", false) | |
| 689 | + | ||
| 628 | 690 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | |
| 629 | 691 | } | |
| 630 | 692 | ||
| @@ -641,6 +703,8 @@ var xAboutWindowSetCopyright func(uintptr, string) | |||
| 641 | 703 | // [method@AboutWindow.add_legal_section] can be used to add copyright | |
| 642 | 704 | // information for the application dependencies or other components. | |
| 643 | 705 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | |
| 706 | + | core.LazyRegister(&xAboutWindowSetCopyright, "ADW", "adw_about_window_set_copyright", false) | |
| 707 | + | ||
| 644 | 708 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | |
| 645 | 709 | } | |
| 646 | 710 | ||
| @@ -658,6 +722,8 @@ var xAboutWindowSetDebugInfo func(uintptr, string) | |||
| 658 | 722 | // | |
| 659 | 723 | // Debug information cannot contain markup or links. | |
| 660 | 724 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | |
| 725 | + | core.LazyRegister(&xAboutWindowSetDebugInfo, "ADW", "adw_about_window_set_debug_info", false) | |
| 726 | + | ||
| 661 | 727 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | |
| 662 | 728 | } | |
| 663 | 729 | ||
| @@ -670,6 +736,8 @@ var xAboutWindowSetDebugInfoFilename func(uintptr, string) | |||
| 670 | 736 | // | |
| 671 | 737 | // See [property@AboutWindow:debug-info]. | |
| 672 | 738 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | |
| 739 | + | core.LazyRegister(&xAboutWindowSetDebugInfoFilename, "ADW", "adw_about_window_set_debug_info_filename", false) | |
| 740 | + | ||
| 673 | 741 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | |
| 674 | 742 | } | |
| 675 | 743 | ||
| @@ -691,6 +759,8 @@ var xAboutWindowSetDesigners func(uintptr, []string) | |||
| 691 | 759 | // * [method@AboutWindow.add_credit_section] | |
| 692 | 760 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 693 | 761 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | |
| 762 | + | core.LazyRegister(&xAboutWindowSetDesigners, "ADW", "adw_about_window_set_designers", false) | |
| 763 | + | ||
| 694 | 764 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | |
| 695 | 765 | } | |
| 696 | 766 | ||
| @@ -705,6 +775,8 @@ var xAboutWindowSetDeveloperName func(uintptr, string) | |||
| 705 | 775 | // "The AppName project", and the individual contributors can be listed on the | |
| 706 | 776 | // Credits page, with [property@AboutWindow:developers] and related properties. | |
| 707 | 777 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | |
| 778 | + | core.LazyRegister(&xAboutWindowSetDeveloperName, "ADW", "adw_about_window_set_developer_name", false) | |
| 779 | + | ||
| 708 | 780 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | |
| 709 | 781 | } | |
| 710 | 782 | ||
| @@ -726,6 +798,8 @@ var xAboutWindowSetDevelopers func(uintptr, []string) | |||
| 726 | 798 | // * [method@AboutWindow.add_credit_section] | |
| 727 | 799 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 728 | 800 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | |
| 801 | + | core.LazyRegister(&xAboutWindowSetDevelopers, "ADW", "adw_about_window_set_developers", false) | |
| 802 | + | ||
| 729 | 803 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | |
| 730 | 804 | } | |
| 731 | 805 | ||
| @@ -747,6 +821,8 @@ var xAboutWindowSetDocumenters func(uintptr, []string) | |||
| 747 | 821 | // * [method@AboutWindow.add_credit_section] | |
| 748 | 822 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 749 | 823 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | |
| 824 | + | core.LazyRegister(&xAboutWindowSetDocumenters, "ADW", "adw_about_window_set_documenters", false) | |
| 825 | + | ||
| 750 | 826 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | |
| 751 | 827 | } | |
| 752 | 828 | ||
| @@ -756,6 +832,8 @@ var xAboutWindowSetIssueUrl func(uintptr, string) | |||
| 756 | 832 | // | |
| 757 | 833 | // The issue tracker link is displayed on the main page. | |
| 758 | 834 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | |
| 835 | + | core.LazyRegister(&xAboutWindowSetIssueUrl, "ADW", "adw_about_window_set_issue_url", false) | |
| 836 | + | ||
| 759 | 837 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | |
| 760 | 838 | } | |
| 761 | 839 | ||
| @@ -777,6 +855,8 @@ var xAboutWindowSetLicense func(uintptr, string) | |||
| 777 | 855 | // [method@AboutWindow.add_legal_section] can be used to add license information | |
| 778 | 856 | // for the application dependencies or other components. | |
| 779 | 857 | func (x *AboutWindow) SetLicense(LicenseVar string) { | |
| 858 | + | core.LazyRegister(&xAboutWindowSetLicense, "ADW", "adw_about_window_set_license", false) | |
| 859 | + | ||
| 780 | 860 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | |
| 781 | 861 | } | |
| 782 | 862 | ||
| @@ -799,6 +879,8 @@ var xAboutWindowSetLicenseType func(uintptr, gtk.License) | |||
| 799 | 879 | // [method@AboutWindow.add_legal_section] can be used to add license information | |
| 800 | 880 | // for the application dependencies or other components. | |
| 801 | 881 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | |
| 882 | + | core.LazyRegister(&xAboutWindowSetLicenseType, "ADW", "adw_about_window_set_license_type", false) | |
| 883 | + | ||
| 802 | 884 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | |
| 803 | 885 | } | |
| 804 | 886 | ||
| @@ -829,6 +911,8 @@ var xAboutWindowSetReleaseNotes func(uintptr, string) | |||
| 829 | 911 | // [property@AboutWindow:release-notes-version] of the property will be used | |
| 830 | 912 | // as the version; otherwise, [property@AboutWindow:version] is used. | |
| 831 | 913 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | |
| 914 | + | core.LazyRegister(&xAboutWindowSetReleaseNotes, "ADW", "adw_about_window_set_release_notes", false) | |
| 915 | + | ||
| 832 | 916 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | |
| 833 | 917 | } | |
| 834 | 918 | ||
| @@ -847,6 +931,8 @@ var xAboutWindowSetReleaseNotesVersion func(uintptr, string) | |||
| 847 | 931 | // | |
| 848 | 932 | // See [property@AboutWindow:release-notes]. | |
| 849 | 933 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | |
| 934 | + | core.LazyRegister(&xAboutWindowSetReleaseNotesVersion, "ADW", "adw_about_window_set_release_notes_version", false) | |
| 935 | + | ||
| 850 | 936 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | |
| 851 | 937 | } | |
| 852 | 938 | ||
| @@ -856,6 +942,8 @@ var xAboutWindowSetSupportUrl func(uintptr, string) | |||
| 856 | 942 | // | |
| 857 | 943 | // The support page link is displayed on the main page. | |
| 858 | 944 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | |
| 945 | + | core.LazyRegister(&xAboutWindowSetSupportUrl, "ADW", "adw_about_window_set_support_url", false) | |
| 946 | + | ||
| 859 | 947 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | |
| 860 | 948 | } | |
| 861 | 949 | ||
| @@ -881,6 +969,8 @@ var xAboutWindowSetTranslatorCredits func(uintptr, string) | |||
| 881 | 969 | // * [method@AboutWindow.add_credit_section] | |
| 882 | 970 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 883 | 971 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | |
| 972 | + | core.LazyRegister(&xAboutWindowSetTranslatorCredits, "ADW", "adw_about_window_set_translator_credits", false) | |
| 973 | + | ||
| 884 | 974 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | |
| 885 | 975 | } | |
| 886 | 976 | ||
| @@ -893,6 +983,8 @@ var xAboutWindowSetVersion func(uintptr, string) | |||
| 893 | 983 | // If [property@AboutWindow:release-notes-version] is not set, the version will | |
| 894 | 984 | // also be displayed above the release notes on the What's New page. | |
| 895 | 985 | func (x *AboutWindow) SetVersion(VersionVar string) { | |
| 986 | + | core.LazyRegister(&xAboutWindowSetVersion, "ADW", "adw_about_window_set_version", false) | |
| 987 | + | ||
| 896 | 988 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | |
| 897 | 989 | } | |
| 898 | 990 | ||
| @@ -905,6 +997,8 @@ var xAboutWindowSetWebsite func(uintptr, string) | |||
| 905 | 997 | // | |
| 906 | 998 | // Applications can add other links below, see [method@AboutWindow.add_link]. | |
| 907 | 999 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | |
| 1000 | + | core.LazyRegister(&xAboutWindowSetWebsite, "ADW", "adw_about_window_set_website", false) | |
| 1001 | + | ||
| 908 | 1002 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | |
| 909 | 1003 | } | |
| 910 | 1004 | ||
| @@ -1986,65 +2080,4 @@ func (x *AboutWindow) SetFocus(FocusVar *gtk.Widget) { | |||
| 1986 | 2080 | func init() { | |
| 1987 | 2081 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1988 | 2082 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1989 | - | var libs []uintptr | |
| 1990 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 1991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1992 | - | if err != nil { | |
| 1993 | - | panic(err) | |
| 1994 | - | } | |
| 1995 | - | libs = append(libs, lib) | |
| 1996 | - | } | |
| 1997 | - | ||
| 1998 | - | core.PuregoSafeRegister(&xShowAboutWindow, libs, "adw_show_about_window") | |
| 1999 | - | core.PuregoSafeRegister(&xShowAboutWindowFromAppdata, libs, "adw_show_about_window_from_appdata") | |
| 2000 | - | ||
| 2001 | - | core.PuregoSafeRegister(&xAboutWindowGLibType, libs, "adw_about_window_get_type") | |
| 2002 | - | ||
| 2003 | - | core.PuregoSafeRegister(&xNewAboutWindow, libs, "adw_about_window_new") | |
| 2004 | - | core.PuregoSafeRegister(&xNewAboutWindowFromAppdata, libs, "adw_about_window_new_from_appdata") | |
| 2005 | - | ||
| 2006 | - | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, libs, "adw_about_window_add_acknowledgement_section") | |
| 2007 | - | core.PuregoSafeRegister(&xAboutWindowAddCreditSection, libs, "adw_about_window_add_credit_section") | |
| 2008 | - | core.PuregoSafeRegister(&xAboutWindowAddLegalSection, libs, "adw_about_window_add_legal_section") | |
| 2009 | - | core.PuregoSafeRegister(&xAboutWindowAddLink, libs, "adw_about_window_add_link") | |
| 2010 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationIcon, libs, "adw_about_window_get_application_icon") | |
| 2011 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationName, libs, "adw_about_window_get_application_name") | |
| 2012 | - | core.PuregoSafeRegister(&xAboutWindowGetArtists, libs, "adw_about_window_get_artists") | |
| 2013 | - | core.PuregoSafeRegister(&xAboutWindowGetComments, libs, "adw_about_window_get_comments") | |
| 2014 | - | core.PuregoSafeRegister(&xAboutWindowGetCopyright, libs, "adw_about_window_get_copyright") | |
| 2015 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfo, libs, "adw_about_window_get_debug_info") | |
| 2016 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfoFilename, libs, "adw_about_window_get_debug_info_filename") | |
| 2017 | - | core.PuregoSafeRegister(&xAboutWindowGetDesigners, libs, "adw_about_window_get_designers") | |
| 2018 | - | core.PuregoSafeRegister(&xAboutWindowGetDeveloperName, libs, "adw_about_window_get_developer_name") | |
| 2019 | - | core.PuregoSafeRegister(&xAboutWindowGetDevelopers, libs, "adw_about_window_get_developers") | |
| 2020 | - | core.PuregoSafeRegister(&xAboutWindowGetDocumenters, libs, "adw_about_window_get_documenters") | |
| 2021 | - | core.PuregoSafeRegister(&xAboutWindowGetIssueUrl, libs, "adw_about_window_get_issue_url") | |
| 2022 | - | core.PuregoSafeRegister(&xAboutWindowGetLicense, libs, "adw_about_window_get_license") | |
| 2023 | - | core.PuregoSafeRegister(&xAboutWindowGetLicenseType, libs, "adw_about_window_get_license_type") | |
| 2024 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotes, libs, "adw_about_window_get_release_notes") | |
| 2025 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotesVersion, libs, "adw_about_window_get_release_notes_version") | |
| 2026 | - | core.PuregoSafeRegister(&xAboutWindowGetSupportUrl, libs, "adw_about_window_get_support_url") | |
| 2027 | - | core.PuregoSafeRegister(&xAboutWindowGetTranslatorCredits, libs, "adw_about_window_get_translator_credits") | |
| 2028 | - | core.PuregoSafeRegister(&xAboutWindowGetVersion, libs, "adw_about_window_get_version") | |
| 2029 | - | core.PuregoSafeRegister(&xAboutWindowGetWebsite, libs, "adw_about_window_get_website") | |
| 2030 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationIcon, libs, "adw_about_window_set_application_icon") | |
| 2031 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationName, libs, "adw_about_window_set_application_name") | |
| 2032 | - | core.PuregoSafeRegister(&xAboutWindowSetArtists, libs, "adw_about_window_set_artists") | |
| 2033 | - | core.PuregoSafeRegister(&xAboutWindowSetComments, libs, "adw_about_window_set_comments") | |
| 2034 | - | core.PuregoSafeRegister(&xAboutWindowSetCopyright, libs, "adw_about_window_set_copyright") | |
| 2035 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfo, libs, "adw_about_window_set_debug_info") | |
| 2036 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfoFilename, libs, "adw_about_window_set_debug_info_filename") | |
| 2037 | - | core.PuregoSafeRegister(&xAboutWindowSetDesigners, libs, "adw_about_window_set_designers") | |
| 2038 | - | core.PuregoSafeRegister(&xAboutWindowSetDeveloperName, libs, "adw_about_window_set_developer_name") | |
| 2039 | - | core.PuregoSafeRegister(&xAboutWindowSetDevelopers, libs, "adw_about_window_set_developers") | |
| 2040 | - | core.PuregoSafeRegister(&xAboutWindowSetDocumenters, libs, "adw_about_window_set_documenters") | |
| 2041 | - | core.PuregoSafeRegister(&xAboutWindowSetIssueUrl, libs, "adw_about_window_set_issue_url") | |
| 2042 | - | core.PuregoSafeRegister(&xAboutWindowSetLicense, libs, "adw_about_window_set_license") | |
| 2043 | - | core.PuregoSafeRegister(&xAboutWindowSetLicenseType, libs, "adw_about_window_set_license_type") | |
| 2044 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotes, libs, "adw_about_window_set_release_notes") | |
| 2045 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotesVersion, libs, "adw_about_window_set_release_notes_version") | |
| 2046 | - | core.PuregoSafeRegister(&xAboutWindowSetSupportUrl, libs, "adw_about_window_set_support_url") | |
| 2047 | - | core.PuregoSafeRegister(&xAboutWindowSetTranslatorCredits, libs, "adw_about_window_set_translator_credits") | |
| 2048 | - | core.PuregoSafeRegister(&xAboutWindowSetVersion, libs, "adw_about_window_set_version") | |
| 2049 | - | core.PuregoSafeRegister(&xAboutWindowSetWebsite, libs, "adw_about_window_set_website") | |
| 2050 | 2083 | } | |
| @@ -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/gdk" | 9 | "github.com/bnema/puregotk/v4/gdk" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -37,6 +36,8 @@ var xShowAboutWindow func(uintptr, string, ...interface{}) | |||||
| 37 | 36 | ||||
| 38 | // A convenience function for showing an application’s about window. | 37 | // A convenience function for showing an application’s about window. | ||
| 39 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | 38 | func ShowAboutWindow(ParentVar *gtk.Window, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 39 | + | core.LazyRegister(&xShowAboutWindow, "ADW", "adw_show_about_window", false) | |||
| 40 | + | ||||
| 40 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | 41 | xShowAboutWindow(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...) | ||
| 41 | } | 42 | } | ||
| 42 | 43 | ||||
| @@ -47,6 +48,8 @@ var xShowAboutWindowFromAppdata func(uintptr, string, uintptr, string, ...interf | |||||
| 47 | // | 48 | // | ||
| 48 | // See [ctor@AboutWindow.new_from_appdata] for details. | 49 | // See [ctor@AboutWindow.new_from_appdata] for details. | ||
| 49 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | 50 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | ||
| 51 | + | core.LazyRegister(&xShowAboutWindowFromAppdata, "ADW", "adw_show_about_window_from_appdata", false) | |||
| 52 | + | ||||
| 50 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 53 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| 51 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | 54 | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | ||
| 52 | 55 | ||||
| @@ -231,6 +234,7 @@ type AboutWindow struct { | |||||
| 231 | var xAboutWindowGLibType func() types.GType | 234 | var xAboutWindowGLibType func() types.GType | ||
| 232 | 235 | ||||
| 233 | func AboutWindowGLibType() types.GType { | 236 | func AboutWindowGLibType() types.GType { | ||
| 237 | + | core.LazyRegister(&xAboutWindowGLibType, "ADW", "adw_about_window_get_type", false) | |||
| 234 | return xAboutWindowGLibType() | 238 | return xAboutWindowGLibType() | ||
| 235 | } | 239 | } | ||
| 236 | 240 | ||||
| @@ -244,6 +248,7 @@ var xNewAboutWindow func() uintptr | |||||
| 244 | 248 | ||||
| 245 | // Creates a new `AdwAboutWindow`. | 249 | // Creates a new `AdwAboutWindow`. | ||
| 246 | func NewAboutWindow() *AboutWindow { | 250 | func NewAboutWindow() *AboutWindow { | ||
| 251 | + | core.LazyRegister(&xNewAboutWindow, "ADW", "adw_about_window_new", false) | |||
| 247 | var cls *AboutWindow | 252 | var cls *AboutWindow | ||
| 248 | 253 | ||||
| 249 | cret := xNewAboutWindow() | 254 | cret := xNewAboutWindow() | ||
| @@ -281,6 +286,7 @@ var xNewAboutWindowFromAppdata func(string, uintptr) uintptr | |||||
| 281 | // [property@AboutWindow:release-notes] is set from the AppStream release | 286 | // [property@AboutWindow:release-notes] is set from the AppStream release | ||
| 282 | // description for that version. | 287 | // description for that version. | ||
| 283 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | 288 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | ||
| 289 | + | core.LazyRegister(&xNewAboutWindowFromAppdata, "ADW", "adw_about_window_new_from_appdata", false) | |||
| 284 | var cls *AboutWindow | 290 | var cls *AboutWindow | ||
| 285 | 291 | ||||
| 286 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | 292 | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | ||
| @@ -317,6 +323,8 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, uintptr, []string) | |||||
| 317 | // * [property@AboutWindow:translator-credits] | 323 | // * [property@AboutWindow:translator-credits] | ||
| 318 | // * [method@AboutWindow.add_credit_section] | 324 | // * [method@AboutWindow.add_credit_section] | ||
| 319 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | 325 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | ||
| 326 | + | core.LazyRegister(&xAboutWindowAddAcknowledgementSection, "ADW", "adw_about_window_add_acknowledgement_section", false) | |||
| 327 | + | ||||
| 320 | NameVarPtr := core.GStrdupNullable(NameVar) | 328 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 321 | defer core.GFreeNullable(NameVarPtr) | 329 | defer core.GFreeNullable(NameVarPtr) | ||
| 322 | 330 | ||||
| @@ -341,6 +349,8 @@ var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |||||
| 341 | // * [property@AboutWindow:translator-credits] | 349 | // * [property@AboutWindow:translator-credits] | ||
| 342 | // * [method@AboutWindow.add_acknowledgement_section] | 350 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 343 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | 351 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | ||
| 352 | + | core.LazyRegister(&xAboutWindowAddCreditSection, "ADW", "adw_about_window_add_credit_section", false) | |||
| 353 | + | ||||
| 344 | NameVarPtr := core.GStrdupNullable(NameVar) | 354 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 345 | defer core.GFreeNullable(NameVarPtr) | 355 | defer core.GFreeNullable(NameVarPtr) | ||
| 346 | 356 | ||||
| @@ -395,6 +405,8 @@ var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||||
| 395 | // | 405 | // | ||
| 396 | // ``` | 406 | // ``` | ||
| 397 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | 407 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | ||
| 408 | + | core.LazyRegister(&xAboutWindowAddLegalSection, "ADW", "adw_about_window_add_legal_section", false) | |||
| 409 | + | ||||
| 398 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | 410 | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | ||
| 399 | defer core.GFreeNullable(CopyrightVarPtr) | 411 | defer core.GFreeNullable(CopyrightVarPtr) | ||
| 400 | 412 | ||||
| @@ -414,6 +426,8 @@ var xAboutWindowAddLink func(uintptr, string, string) | |||||
| 414 | // | 426 | // | ||
| 415 | // See [property@AboutWindow:website]. | 427 | // See [property@AboutWindow:website]. | ||
| 416 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | 428 | func (x *AboutWindow) AddLink(TitleVar string, UrlVar string) { | ||
| 429 | + | core.LazyRegister(&xAboutWindowAddLink, "ADW", "adw_about_window_add_link", false) | |||
| 430 | + | ||||
| 417 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | 431 | xAboutWindowAddLink(x.GoPointer(), TitleVar, UrlVar) | ||
| 418 | } | 432 | } | ||
| 419 | 433 | ||||
| @@ -421,6 +435,8 @@ var xAboutWindowGetApplicationIcon func(uintptr) string | |||||
| 421 | 435 | ||||
| 422 | // Gets the name of the application icon for @self. | 436 | // Gets the name of the application icon for @self. | ||
| 423 | func (x *AboutWindow) GetApplicationIcon() string { | 437 | func (x *AboutWindow) GetApplicationIcon() string { | ||
| 438 | + | core.LazyRegister(&xAboutWindowGetApplicationIcon, "ADW", "adw_about_window_get_application_icon", false) | |||
| 439 | + | ||||
| 424 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | 440 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | ||
| 425 | return cret | 441 | return cret | ||
| 426 | } | 442 | } | ||
| @@ -429,6 +445,8 @@ var xAboutWindowGetApplicationName func(uintptr) string | |||||
| 429 | 445 | ||||
| 430 | // Gets the application name for @self. | 446 | // Gets the application name for @self. | ||
| 431 | func (x *AboutWindow) GetApplicationName() string { | 447 | func (x *AboutWindow) GetApplicationName() string { | ||
| 448 | + | core.LazyRegister(&xAboutWindowGetApplicationName, "ADW", "adw_about_window_get_application_name", false) | |||
| 449 | + | ||||
| 432 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | 450 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | ||
| 433 | return cret | 451 | return cret | ||
| 434 | } | 452 | } | ||
| @@ -437,6 +455,8 @@ var xAboutWindowGetArtists func(uintptr) []string | |||||
| 437 | 455 | ||||
| 438 | // Gets the list of artists of the application. | 456 | // Gets the list of artists of the application. | ||
| 439 | func (x *AboutWindow) GetArtists() []string { | 457 | func (x *AboutWindow) GetArtists() []string { | ||
| 458 | + | core.LazyRegister(&xAboutWindowGetArtists, "ADW", "adw_about_window_get_artists", false) | |||
| 459 | + | ||||
| 440 | cret := xAboutWindowGetArtists(x.GoPointer()) | 460 | cret := xAboutWindowGetArtists(x.GoPointer()) | ||
| 441 | return cret | 461 | return cret | ||
| 442 | } | 462 | } | ||
| @@ -445,6 +465,8 @@ var xAboutWindowGetComments func(uintptr) string | |||||
| 445 | 465 | ||||
| 446 | // Gets the comments about the application. | 466 | // Gets the comments about the application. | ||
| 447 | func (x *AboutWindow) GetComments() string { | 467 | func (x *AboutWindow) GetComments() string { | ||
| 468 | + | core.LazyRegister(&xAboutWindowGetComments, "ADW", "adw_about_window_get_comments", false) | |||
| 469 | + | ||||
| 448 | cret := xAboutWindowGetComments(x.GoPointer()) | 470 | cret := xAboutWindowGetComments(x.GoPointer()) | ||
| 449 | return cret | 471 | return cret | ||
| 450 | } | 472 | } | ||
| @@ -453,6 +475,8 @@ var xAboutWindowGetCopyright func(uintptr) string | |||||
| 453 | 475 | ||||
| 454 | // Gets the copyright information for @self. | 476 | // Gets the copyright information for @self. | ||
| 455 | func (x *AboutWindow) GetCopyright() string { | 477 | func (x *AboutWindow) GetCopyright() string { | ||
| 478 | + | core.LazyRegister(&xAboutWindowGetCopyright, "ADW", "adw_about_window_get_copyright", false) | |||
| 479 | + | ||||
| 456 | cret := xAboutWindowGetCopyright(x.GoPointer()) | 480 | cret := xAboutWindowGetCopyright(x.GoPointer()) | ||
| 457 | return cret | 481 | return cret | ||
| 458 | } | 482 | } | ||
| @@ -461,6 +485,8 @@ var xAboutWindowGetDebugInfo func(uintptr) string | |||||
| 461 | 485 | ||||
| 462 | // Gets the debug information for @self. | 486 | // Gets the debug information for @self. | ||
| 463 | func (x *AboutWindow) GetDebugInfo() string { | 487 | func (x *AboutWindow) GetDebugInfo() string { | ||
| 488 | + | core.LazyRegister(&xAboutWindowGetDebugInfo, "ADW", "adw_about_window_get_debug_info", false) | |||
| 489 | + | ||||
| 464 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | 490 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | ||
| 465 | return cret | 491 | return cret | ||
| 466 | } | 492 | } | ||
| @@ -469,6 +495,8 @@ var xAboutWindowGetDebugInfoFilename func(uintptr) string | |||||
| 469 | 495 | ||||
| 470 | // Gets the debug information filename for @self. | 496 | // Gets the debug information filename for @self. | ||
| 471 | func (x *AboutWindow) GetDebugInfoFilename() string { | 497 | func (x *AboutWindow) GetDebugInfoFilename() string { | ||
| 498 | + | core.LazyRegister(&xAboutWindowGetDebugInfoFilename, "ADW", "adw_about_window_get_debug_info_filename", false) | |||
| 499 | + | ||||
| 472 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | 500 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | ||
| 473 | return cret | 501 | return cret | ||
| 474 | } | 502 | } | ||
| @@ -477,6 +505,8 @@ var xAboutWindowGetDesigners func(uintptr) []string | |||||
| 477 | 505 | ||||
| 478 | // Gets the list of designers of the application. | 506 | // Gets the list of designers of the application. | ||
| 479 | func (x *AboutWindow) GetDesigners() []string { | 507 | func (x *AboutWindow) GetDesigners() []string { | ||
| 508 | + | core.LazyRegister(&xAboutWindowGetDesigners, "ADW", "adw_about_window_get_designers", false) | |||
| 509 | + | ||||
| 480 | cret := xAboutWindowGetDesigners(x.GoPointer()) | 510 | cret := xAboutWindowGetDesigners(x.GoPointer()) | ||
| 481 | return cret | 511 | return cret | ||
| 482 | } | 512 | } | ||
| @@ -485,6 +515,8 @@ var xAboutWindowGetDeveloperName func(uintptr) string | |||||
| 485 | 515 | ||||
| 486 | // Gets the developer name for @self. | 516 | // Gets the developer name for @self. | ||
| 487 | func (x *AboutWindow) GetDeveloperName() string { | 517 | func (x *AboutWindow) GetDeveloperName() string { | ||
| 518 | + | core.LazyRegister(&xAboutWindowGetDeveloperName, "ADW", "adw_about_window_get_developer_name", false) | |||
| 519 | + | ||||
| 488 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | 520 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | ||
| 489 | return cret | 521 | return cret | ||
| 490 | } | 522 | } | ||
| @@ -493,6 +525,8 @@ var xAboutWindowGetDevelopers func(uintptr) []string | |||||
| 493 | 525 | ||||
| 494 | // Gets the list of developers of the application. | 526 | // Gets the list of developers of the application. | ||
| 495 | func (x *AboutWindow) GetDevelopers() []string { | 527 | func (x *AboutWindow) GetDevelopers() []string { | ||
| 528 | + | core.LazyRegister(&xAboutWindowGetDevelopers, "ADW", "adw_about_window_get_developers", false) | |||
| 529 | + | ||||
| 496 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | 530 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | ||
| 497 | return cret | 531 | return cret | ||
| 498 | } | 532 | } | ||
| @@ -501,6 +535,8 @@ var xAboutWindowGetDocumenters func(uintptr) []string | |||||
| 501 | 535 | ||||
| 502 | // Gets the list of documenters of the application. | 536 | // Gets the list of documenters of the application. | ||
| 503 | func (x *AboutWindow) GetDocumenters() []string { | 537 | func (x *AboutWindow) GetDocumenters() []string { | ||
| 538 | + | core.LazyRegister(&xAboutWindowGetDocumenters, "ADW", "adw_about_window_get_documenters", false) | |||
| 539 | + | ||||
| 504 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | 540 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | ||
| 505 | return cret | 541 | return cret | ||
| 506 | } | 542 | } | ||
| @@ -509,6 +545,8 @@ var xAboutWindowGetIssueUrl func(uintptr) string | |||||
| 509 | 545 | ||||
| 510 | // Gets the issue tracker URL for @self. | 546 | // Gets the issue tracker URL for @self. | ||
| 511 | func (x *AboutWindow) GetIssueUrl() string { | 547 | func (x *AboutWindow) GetIssueUrl() string { | ||
| 548 | + | core.LazyRegister(&xAboutWindowGetIssueUrl, "ADW", "adw_about_window_get_issue_url", false) | |||
| 549 | + | ||||
| 512 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | 550 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | ||
| 513 | return cret | 551 | return cret | ||
| 514 | } | 552 | } | ||
| @@ -517,6 +555,8 @@ var xAboutWindowGetLicense func(uintptr) string | |||||
| 517 | 555 | ||||
| 518 | // Gets the license for @self. | 556 | // Gets the license for @self. | ||
| 519 | func (x *AboutWindow) GetLicense() string { | 557 | func (x *AboutWindow) GetLicense() string { | ||
| 558 | + | core.LazyRegister(&xAboutWindowGetLicense, "ADW", "adw_about_window_get_license", false) | |||
| 559 | + | ||||
| 520 | cret := xAboutWindowGetLicense(x.GoPointer()) | 560 | cret := xAboutWindowGetLicense(x.GoPointer()) | ||
| 521 | return cret | 561 | return cret | ||
| 522 | } | 562 | } | ||
| @@ -525,6 +565,8 @@ var xAboutWindowGetLicenseType func(uintptr) gtk.License | |||||
| 525 | 565 | ||||
| 526 | // Gets the license type for @self. | 566 | // Gets the license type for @self. | ||
| 527 | func (x *AboutWindow) GetLicenseType() gtk.License { | 567 | func (x *AboutWindow) GetLicenseType() gtk.License { | ||
| 568 | + | core.LazyRegister(&xAboutWindowGetLicenseType, "ADW", "adw_about_window_get_license_type", false) | |||
| 569 | + | ||||
| 528 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | 570 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | ||
| 529 | return cret | 571 | return cret | ||
| 530 | } | 572 | } | ||
| @@ -533,6 +575,8 @@ var xAboutWindowGetReleaseNotes func(uintptr) string | |||||
| 533 | 575 | ||||
| 534 | // Gets the release notes for @self. | 576 | // Gets the release notes for @self. | ||
| 535 | func (x *AboutWindow) GetReleaseNotes() string { | 577 | func (x *AboutWindow) GetReleaseNotes() string { | ||
| 578 | + | core.LazyRegister(&xAboutWindowGetReleaseNotes, "ADW", "adw_about_window_get_release_notes", false) | |||
| 579 | + | ||||
| 536 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | 580 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | ||
| 537 | return cret | 581 | return cret | ||
| 538 | } | 582 | } | ||
| @@ -541,6 +585,8 @@ var xAboutWindowGetReleaseNotesVersion func(uintptr) string | |||||
| 541 | 585 | ||||
| 542 | // Gets the version described by the application's release notes. | 586 | // Gets the version described by the application's release notes. | ||
| 543 | func (x *AboutWindow) GetReleaseNotesVersion() string { | 587 | func (x *AboutWindow) GetReleaseNotesVersion() string { | ||
| 588 | + | core.LazyRegister(&xAboutWindowGetReleaseNotesVersion, "ADW", "adw_about_window_get_release_notes_version", false) | |||
| 589 | + | ||||
| 544 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | 590 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | ||
| 545 | return cret | 591 | return cret | ||
| 546 | } | 592 | } | ||
| @@ -549,6 +595,8 @@ var xAboutWindowGetSupportUrl func(uintptr) string | |||||
| 549 | 595 | ||||
| 550 | // Gets the URL of the support page for @self. | 596 | // Gets the URL of the support page for @self. | ||
| 551 | func (x *AboutWindow) GetSupportUrl() string { | 597 | func (x *AboutWindow) GetSupportUrl() string { | ||
| 598 | + | core.LazyRegister(&xAboutWindowGetSupportUrl, "ADW", "adw_about_window_get_support_url", false) | |||
| 599 | + | ||||
| 552 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | 600 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | ||
| 553 | return cret | 601 | return cret | ||
| 554 | } | 602 | } | ||
| @@ -557,6 +605,8 @@ var xAboutWindowGetTranslatorCredits func(uintptr) string | |||||
| 557 | 605 | ||||
| 558 | // Gets the translator credits string. | 606 | // Gets the translator credits string. | ||
| 559 | func (x *AboutWindow) GetTranslatorCredits() string { | 607 | func (x *AboutWindow) GetTranslatorCredits() string { | ||
| 608 | + | core.LazyRegister(&xAboutWindowGetTranslatorCredits, "ADW", "adw_about_window_get_translator_credits", false) | |||
| 609 | + | ||||
| 560 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | 610 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | ||
| 561 | return cret | 611 | return cret | ||
| 562 | } | 612 | } | ||
| @@ -565,6 +615,8 @@ var xAboutWindowGetVersion func(uintptr) string | |||||
| 565 | 615 | ||||
| 566 | // Gets the version for @self. | 616 | // Gets the version for @self. | ||
| 567 | func (x *AboutWindow) GetVersion() string { | 617 | func (x *AboutWindow) GetVersion() string { | ||
| 618 | + | core.LazyRegister(&xAboutWindowGetVersion, "ADW", "adw_about_window_get_version", false) | |||
| 619 | + | ||||
| 568 | cret := xAboutWindowGetVersion(x.GoPointer()) | 620 | cret := xAboutWindowGetVersion(x.GoPointer()) | ||
| 569 | return cret | 621 | return cret | ||
| 570 | } | 622 | } | ||
| @@ -573,6 +625,8 @@ var xAboutWindowGetWebsite func(uintptr) string | |||||
| 573 | 625 | ||||
| 574 | // Gets the application website URL for @self. | 626 | // Gets the application website URL for @self. | ||
| 575 | func (x *AboutWindow) GetWebsite() string { | 627 | func (x *AboutWindow) GetWebsite() string { | ||
| 628 | + | core.LazyRegister(&xAboutWindowGetWebsite, "ADW", "adw_about_window_get_website", false) | |||
| 629 | + | ||||
| 576 | cret := xAboutWindowGetWebsite(x.GoPointer()) | 630 | cret := xAboutWindowGetWebsite(x.GoPointer()) | ||
| 577 | return cret | 631 | return cret | ||
| 578 | } | 632 | } | ||
| @@ -583,6 +637,8 @@ var xAboutWindowSetApplicationIcon func(uintptr, string) | |||||
| 583 | // | 637 | // | ||
| 584 | // The icon is displayed at the top of the main page. | 638 | // The icon is displayed at the top of the main page. | ||
| 585 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | 639 | func (x *AboutWindow) SetApplicationIcon(ApplicationIconVar string) { | ||
| 640 | + | core.LazyRegister(&xAboutWindowSetApplicationIcon, "ADW", "adw_about_window_set_application_icon", false) | |||
| 641 | + | ||||
| 586 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | 642 | xAboutWindowSetApplicationIcon(x.GoPointer(), ApplicationIconVar) | ||
| 587 | } | 643 | } | ||
| 588 | 644 | ||||
| @@ -592,6 +648,8 @@ var xAboutWindowSetApplicationName func(uintptr, string) | |||||
| 592 | // | 648 | // | ||
| 593 | // The name is displayed at the top of the main page. | 649 | // The name is displayed at the top of the main page. | ||
| 594 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | 650 | func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | ||
| 651 | + | core.LazyRegister(&xAboutWindowSetApplicationName, "ADW", "adw_about_window_set_application_name", false) | |||
| 652 | + | ||||
| 595 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | 653 | xAboutWindowSetApplicationName(x.GoPointer(), ApplicationNameVar) | ||
| 596 | } | 654 | } | ||
| 597 | 655 | ||||
| @@ -613,6 +671,8 @@ var xAboutWindowSetArtists func(uintptr, []string) | |||||
| 613 | // * [method@AboutWindow.add_credit_section] | 671 | // * [method@AboutWindow.add_credit_section] | ||
| 614 | // * [method@AboutWindow.add_acknowledgement_section] | 672 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 615 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | 673 | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | ||
| 674 | + | core.LazyRegister(&xAboutWindowSetArtists, "ADW", "adw_about_window_set_artists", false) | |||
| 675 | + | ||||
| 616 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | 676 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | ||
| 617 | } | 677 | } | ||
| 618 | 678 | ||||
| @@ -625,6 +685,8 @@ var xAboutWindowSetComments func(uintptr, string) | |||||
| 625 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | 685 | // Unlike [property@Gtk.AboutDialog:comments], this string can be long and | ||
| 626 | // detailed. It can also contain links and Pango markup. | 686 | // detailed. It can also contain links and Pango markup. | ||
| 627 | func (x *AboutWindow) SetComments(CommentsVar string) { | 687 | func (x *AboutWindow) SetComments(CommentsVar string) { | ||
| 688 | + | core.LazyRegister(&xAboutWindowSetComments, "ADW", "adw_about_window_set_comments", false) | |||
| 689 | + | ||||
| 628 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | 690 | xAboutWindowSetComments(x.GoPointer(), CommentsVar) | ||
| 629 | } | 691 | } | ||
| 630 | 692 | ||||
| @@ -641,6 +703,8 @@ var xAboutWindowSetCopyright func(uintptr, string) | |||||
| 641 | // [method@AboutWindow.add_legal_section] can be used to add copyright | 703 | // [method@AboutWindow.add_legal_section] can be used to add copyright | ||
| 642 | // information for the application dependencies or other components. | 704 | // information for the application dependencies or other components. | ||
| 643 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | 705 | func (x *AboutWindow) SetCopyright(CopyrightVar string) { | ||
| 706 | + | core.LazyRegister(&xAboutWindowSetCopyright, "ADW", "adw_about_window_set_copyright", false) | |||
| 707 | + | ||||
| 644 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | 708 | xAboutWindowSetCopyright(x.GoPointer(), CopyrightVar) | ||
| 645 | } | 709 | } | ||
| 646 | 710 | ||||
| @@ -658,6 +722,8 @@ var xAboutWindowSetDebugInfo func(uintptr, string) | |||||
| 658 | // | 722 | // | ||
| 659 | // Debug information cannot contain markup or links. | 723 | // Debug information cannot contain markup or links. | ||
| 660 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | 724 | func (x *AboutWindow) SetDebugInfo(DebugInfoVar string) { | ||
| 725 | + | core.LazyRegister(&xAboutWindowSetDebugInfo, "ADW", "adw_about_window_set_debug_info", false) | |||
| 726 | + | ||||
| 661 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | 727 | xAboutWindowSetDebugInfo(x.GoPointer(), DebugInfoVar) | ||
| 662 | } | 728 | } | ||
| 663 | 729 | ||||
| @@ -670,6 +736,8 @@ var xAboutWindowSetDebugInfoFilename func(uintptr, string) | |||||
| 670 | // | 736 | // | ||
| 671 | // See [property@AboutWindow:debug-info]. | 737 | // See [property@AboutWindow:debug-info]. | ||
| 672 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | 738 | func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | ||
| 739 | + | core.LazyRegister(&xAboutWindowSetDebugInfoFilename, "ADW", "adw_about_window_set_debug_info_filename", false) | |||
| 740 | + | ||||
| 673 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | 741 | xAboutWindowSetDebugInfoFilename(x.GoPointer(), FilenameVar) | ||
| 674 | } | 742 | } | ||
| 675 | 743 | ||||
| @@ -691,6 +759,8 @@ var xAboutWindowSetDesigners func(uintptr, []string) | |||||
| 691 | // * [method@AboutWindow.add_credit_section] | 759 | // * [method@AboutWindow.add_credit_section] | ||
| 692 | // * [method@AboutWindow.add_acknowledgement_section] | 760 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 693 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | 761 | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | ||
| 762 | + | core.LazyRegister(&xAboutWindowSetDesigners, "ADW", "adw_about_window_set_designers", false) | |||
| 763 | + | ||||
| 694 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | 764 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | ||
| 695 | } | 765 | } | ||
| 696 | 766 | ||||
| @@ -705,6 +775,8 @@ var xAboutWindowSetDeveloperName func(uintptr, string) | |||||
| 705 | // "The AppName project", and the individual contributors can be listed on the | 775 | // "The AppName project", and the individual contributors can be listed on the | ||
| 706 | // Credits page, with [property@AboutWindow:developers] and related properties. | 776 | // Credits page, with [property@AboutWindow:developers] and related properties. | ||
| 707 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | 777 | func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | ||
| 778 | + | core.LazyRegister(&xAboutWindowSetDeveloperName, "ADW", "adw_about_window_set_developer_name", false) | |||
| 779 | + | ||||
| 708 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | 780 | xAboutWindowSetDeveloperName(x.GoPointer(), DeveloperNameVar) | ||
| 709 | } | 781 | } | ||
| 710 | 782 | ||||
| @@ -726,6 +798,8 @@ var xAboutWindowSetDevelopers func(uintptr, []string) | |||||
| 726 | // * [method@AboutWindow.add_credit_section] | 798 | // * [method@AboutWindow.add_credit_section] | ||
| 727 | // * [method@AboutWindow.add_acknowledgement_section] | 799 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 728 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | 800 | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | ||
| 801 | + | core.LazyRegister(&xAboutWindowSetDevelopers, "ADW", "adw_about_window_set_developers", false) | |||
| 802 | + | ||||
| 729 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | 803 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | ||
| 730 | } | 804 | } | ||
| 731 | 805 | ||||
| @@ -747,6 +821,8 @@ var xAboutWindowSetDocumenters func(uintptr, []string) | |||||
| 747 | // * [method@AboutWindow.add_credit_section] | 821 | // * [method@AboutWindow.add_credit_section] | ||
| 748 | // * [method@AboutWindow.add_acknowledgement_section] | 822 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 749 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | 823 | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | ||
| 824 | + | core.LazyRegister(&xAboutWindowSetDocumenters, "ADW", "adw_about_window_set_documenters", false) | |||
| 825 | + | ||||
| 750 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | 826 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | ||
| 751 | } | 827 | } | ||
| 752 | 828 | ||||
| @@ -756,6 +832,8 @@ var xAboutWindowSetIssueUrl func(uintptr, string) | |||||
| 756 | // | 832 | // | ||
| 757 | // The issue tracker link is displayed on the main page. | 833 | // The issue tracker link is displayed on the main page. | ||
| 758 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | 834 | func (x *AboutWindow) SetIssueUrl(IssueUrlVar string) { | ||
| 835 | + | core.LazyRegister(&xAboutWindowSetIssueUrl, "ADW", "adw_about_window_set_issue_url", false) | |||
| 836 | + | ||||
| 759 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | 837 | xAboutWindowSetIssueUrl(x.GoPointer(), IssueUrlVar) | ||
| 760 | } | 838 | } | ||
| 761 | 839 | ||||
| @@ -777,6 +855,8 @@ var xAboutWindowSetLicense func(uintptr, string) | |||||
| 777 | // [method@AboutWindow.add_legal_section] can be used to add license information | 855 | // [method@AboutWindow.add_legal_section] can be used to add license information | ||
| 778 | // for the application dependencies or other components. | 856 | // for the application dependencies or other components. | ||
| 779 | func (x *AboutWindow) SetLicense(LicenseVar string) { | 857 | func (x *AboutWindow) SetLicense(LicenseVar string) { | ||
| 858 | + | core.LazyRegister(&xAboutWindowSetLicense, "ADW", "adw_about_window_set_license", false) | |||
| 859 | + | ||||
| 780 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | 860 | xAboutWindowSetLicense(x.GoPointer(), LicenseVar) | ||
| 781 | } | 861 | } | ||
| 782 | 862 | ||||
| @@ -799,6 +879,8 @@ var xAboutWindowSetLicenseType func(uintptr, gtk.License) | |||||
| 799 | // [method@AboutWindow.add_legal_section] can be used to add license information | 879 | // [method@AboutWindow.add_legal_section] can be used to add license information | ||
| 800 | // for the application dependencies or other components. | 880 | // for the application dependencies or other components. | ||
| 801 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | 881 | func (x *AboutWindow) SetLicenseType(LicenseTypeVar gtk.License) { | ||
| 882 | + | core.LazyRegister(&xAboutWindowSetLicenseType, "ADW", "adw_about_window_set_license_type", false) | |||
| 883 | + | ||||
| 802 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | 884 | xAboutWindowSetLicenseType(x.GoPointer(), LicenseTypeVar) | ||
| 803 | } | 885 | } | ||
| 804 | 886 | ||||
| @@ -829,6 +911,8 @@ var xAboutWindowSetReleaseNotes func(uintptr, string) | |||||
| 829 | // [property@AboutWindow:release-notes-version] of the property will be used | 911 | // [property@AboutWindow:release-notes-version] of the property will be used | ||
| 830 | // as the version; otherwise, [property@AboutWindow:version] is used. | 912 | // as the version; otherwise, [property@AboutWindow:version] is used. | ||
| 831 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | 913 | func (x *AboutWindow) SetReleaseNotes(ReleaseNotesVar string) { | ||
| 914 | + | core.LazyRegister(&xAboutWindowSetReleaseNotes, "ADW", "adw_about_window_set_release_notes", false) | |||
| 915 | + | ||||
| 832 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | 916 | xAboutWindowSetReleaseNotes(x.GoPointer(), ReleaseNotesVar) | ||
| 833 | } | 917 | } | ||
| 834 | 918 | ||||
| @@ -847,6 +931,8 @@ var xAboutWindowSetReleaseNotesVersion func(uintptr, string) | |||||
| 847 | // | 931 | // | ||
| 848 | // See [property@AboutWindow:release-notes]. | 932 | // See [property@AboutWindow:release-notes]. | ||
| 849 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | 933 | func (x *AboutWindow) SetReleaseNotesVersion(VersionVar string) { | ||
| 934 | + | core.LazyRegister(&xAboutWindowSetReleaseNotesVersion, "ADW", "adw_about_window_set_release_notes_version", false) | |||
| 935 | + | ||||
| 850 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | 936 | xAboutWindowSetReleaseNotesVersion(x.GoPointer(), VersionVar) | ||
| 851 | } | 937 | } | ||
| 852 | 938 | ||||
| @@ -856,6 +942,8 @@ var xAboutWindowSetSupportUrl func(uintptr, string) | |||||
| 856 | // | 942 | // | ||
| 857 | // The support page link is displayed on the main page. | 943 | // The support page link is displayed on the main page. | ||
| 858 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | 944 | func (x *AboutWindow) SetSupportUrl(SupportUrlVar string) { | ||
| 945 | + | core.LazyRegister(&xAboutWindowSetSupportUrl, "ADW", "adw_about_window_set_support_url", false) | |||
| 946 | + | ||||
| 859 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | 947 | xAboutWindowSetSupportUrl(x.GoPointer(), SupportUrlVar) | ||
| 860 | } | 948 | } | ||
| 861 | 949 | ||||
| @@ -881,6 +969,8 @@ var xAboutWindowSetTranslatorCredits func(uintptr, string) | |||||
| 881 | // * [method@AboutWindow.add_credit_section] | 969 | // * [method@AboutWindow.add_credit_section] | ||
| 882 | // * [method@AboutWindow.add_acknowledgement_section] | 970 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 883 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | 971 | func (x *AboutWindow) SetTranslatorCredits(TranslatorCreditsVar string) { | ||
| 972 | + | core.LazyRegister(&xAboutWindowSetTranslatorCredits, "ADW", "adw_about_window_set_translator_credits", false) | |||
| 973 | + | ||||
| 884 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | 974 | xAboutWindowSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVar) | ||
| 885 | } | 975 | } | ||
| 886 | 976 | ||||
| @@ -893,6 +983,8 @@ var xAboutWindowSetVersion func(uintptr, string) | |||||
| 893 | // If [property@AboutWindow:release-notes-version] is not set, the version will | 983 | // If [property@AboutWindow:release-notes-version] is not set, the version will | ||
| 894 | // also be displayed above the release notes on the What's New page. | 984 | // also be displayed above the release notes on the What's New page. | ||
| 895 | func (x *AboutWindow) SetVersion(VersionVar string) { | 985 | func (x *AboutWindow) SetVersion(VersionVar string) { | ||
| 986 | + | core.LazyRegister(&xAboutWindowSetVersion, "ADW", "adw_about_window_set_version", false) | |||
| 987 | + | ||||
| 896 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | 988 | xAboutWindowSetVersion(x.GoPointer(), VersionVar) | ||
| 897 | } | 989 | } | ||
| 898 | 990 | ||||
| @@ -905,6 +997,8 @@ var xAboutWindowSetWebsite func(uintptr, string) | |||||
| 905 | // | 997 | // | ||
| 906 | // Applications can add other links below, see [method@AboutWindow.add_link]. | 998 | // Applications can add other links below, see [method@AboutWindow.add_link]. | ||
| 907 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | 999 | func (x *AboutWindow) SetWebsite(WebsiteVar string) { | ||
| 1000 | + | core.LazyRegister(&xAboutWindowSetWebsite, "ADW", "adw_about_window_set_website", false) | |||
| 1001 | + | ||||
| 908 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | 1002 | xAboutWindowSetWebsite(x.GoPointer(), WebsiteVar) | ||
| 909 | } | 1003 | } | ||
| 910 | 1004 | ||||
| @@ -1986,65 +2080,4 @@ func (x *AboutWindow) SetFocus(FocusVar *gtk.Widget) { | |||||
| 1986 | func init() { | 2080 | func init() { | ||
| 1987 | core.SetPackageName("ADW", "libadwaita-1") | 2081 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1988 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 2082 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1989 | - | var libs []uintptr | |||
| 1990 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 1991 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1992 | - | if err != nil { | |||
| 1993 | - | panic(err) | |||
| 1994 | - | } | |||
| 1995 | - | libs = append(libs, lib) | |||
| 1996 | - | } | |||
| 1997 | - | ||||
| 1998 | - | core.PuregoSafeRegister(&xShowAboutWindow, libs, "adw_show_about_window") | |||
| 1999 | - | core.PuregoSafeRegister(&xShowAboutWindowFromAppdata, libs, "adw_show_about_window_from_appdata") | |||
| 2000 | - | ||||
| 2001 | - | core.PuregoSafeRegister(&xAboutWindowGLibType, libs, "adw_about_window_get_type") | |||
| 2002 | - | ||||
| 2003 | - | core.PuregoSafeRegister(&xNewAboutWindow, libs, "adw_about_window_new") | |||
| 2004 | - | core.PuregoSafeRegister(&xNewAboutWindowFromAppdata, libs, "adw_about_window_new_from_appdata") | |||
| 2005 | - | ||||
| 2006 | - | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, libs, "adw_about_window_add_acknowledgement_section") | |||
| 2007 | - | core.PuregoSafeRegister(&xAboutWindowAddCreditSection, libs, "adw_about_window_add_credit_section") | |||
| 2008 | - | core.PuregoSafeRegister(&xAboutWindowAddLegalSection, libs, "adw_about_window_add_legal_section") | |||
| 2009 | - | core.PuregoSafeRegister(&xAboutWindowAddLink, libs, "adw_about_window_add_link") | |||
| 2010 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationIcon, libs, "adw_about_window_get_application_icon") | |||
| 2011 | - | core.PuregoSafeRegister(&xAboutWindowGetApplicationName, libs, "adw_about_window_get_application_name") | |||
| 2012 | - | core.PuregoSafeRegister(&xAboutWindowGetArtists, libs, "adw_about_window_get_artists") | |||
| 2013 | - | core.PuregoSafeRegister(&xAboutWindowGetComments, libs, "adw_about_window_get_comments") | |||
| 2014 | - | core.PuregoSafeRegister(&xAboutWindowGetCopyright, libs, "adw_about_window_get_copyright") | |||
| 2015 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfo, libs, "adw_about_window_get_debug_info") | |||
| 2016 | - | core.PuregoSafeRegister(&xAboutWindowGetDebugInfoFilename, libs, "adw_about_window_get_debug_info_filename") | |||
| 2017 | - | core.PuregoSafeRegister(&xAboutWindowGetDesigners, libs, "adw_about_window_get_designers") | |||
| 2018 | - | core.PuregoSafeRegister(&xAboutWindowGetDeveloperName, libs, "adw_about_window_get_developer_name") | |||
| 2019 | - | core.PuregoSafeRegister(&xAboutWindowGetDevelopers, libs, "adw_about_window_get_developers") | |||
| 2020 | - | core.PuregoSafeRegister(&xAboutWindowGetDocumenters, libs, "adw_about_window_get_documenters") | |||
| 2021 | - | core.PuregoSafeRegister(&xAboutWindowGetIssueUrl, libs, "adw_about_window_get_issue_url") | |||
| 2022 | - | core.PuregoSafeRegister(&xAboutWindowGetLicense, libs, "adw_about_window_get_license") | |||
| 2023 | - | core.PuregoSafeRegister(&xAboutWindowGetLicenseType, libs, "adw_about_window_get_license_type") | |||
| 2024 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotes, libs, "adw_about_window_get_release_notes") | |||
| 2025 | - | core.PuregoSafeRegister(&xAboutWindowGetReleaseNotesVersion, libs, "adw_about_window_get_release_notes_version") | |||
| 2026 | - | core.PuregoSafeRegister(&xAboutWindowGetSupportUrl, libs, "adw_about_window_get_support_url") | |||
| 2027 | - | core.PuregoSafeRegister(&xAboutWindowGetTranslatorCredits, libs, "adw_about_window_get_translator_credits") | |||
| 2028 | - | core.PuregoSafeRegister(&xAboutWindowGetVersion, libs, "adw_about_window_get_version") | |||
| 2029 | - | core.PuregoSafeRegister(&xAboutWindowGetWebsite, libs, "adw_about_window_get_website") | |||
| 2030 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationIcon, libs, "adw_about_window_set_application_icon") | |||
| 2031 | - | core.PuregoSafeRegister(&xAboutWindowSetApplicationName, libs, "adw_about_window_set_application_name") | |||
| 2032 | - | core.PuregoSafeRegister(&xAboutWindowSetArtists, libs, "adw_about_window_set_artists") | |||
| 2033 | - | core.PuregoSafeRegister(&xAboutWindowSetComments, libs, "adw_about_window_set_comments") | |||
| 2034 | - | core.PuregoSafeRegister(&xAboutWindowSetCopyright, libs, "adw_about_window_set_copyright") | |||
| 2035 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfo, libs, "adw_about_window_set_debug_info") | |||
| 2036 | - | core.PuregoSafeRegister(&xAboutWindowSetDebugInfoFilename, libs, "adw_about_window_set_debug_info_filename") | |||
| 2037 | - | core.PuregoSafeRegister(&xAboutWindowSetDesigners, libs, "adw_about_window_set_designers") | |||
| 2038 | - | core.PuregoSafeRegister(&xAboutWindowSetDeveloperName, libs, "adw_about_window_set_developer_name") | |||
| 2039 | - | core.PuregoSafeRegister(&xAboutWindowSetDevelopers, libs, "adw_about_window_set_developers") | |||
| 2040 | - | core.PuregoSafeRegister(&xAboutWindowSetDocumenters, libs, "adw_about_window_set_documenters") | |||
| 2041 | - | core.PuregoSafeRegister(&xAboutWindowSetIssueUrl, libs, "adw_about_window_set_issue_url") | |||
| 2042 | - | core.PuregoSafeRegister(&xAboutWindowSetLicense, libs, "adw_about_window_set_license") | |||
| 2043 | - | core.PuregoSafeRegister(&xAboutWindowSetLicenseType, libs, "adw_about_window_set_license_type") | |||
| 2044 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotes, libs, "adw_about_window_set_release_notes") | |||
| 2045 | - | core.PuregoSafeRegister(&xAboutWindowSetReleaseNotesVersion, libs, "adw_about_window_set_release_notes_version") | |||
| 2046 | - | core.PuregoSafeRegister(&xAboutWindowSetSupportUrl, libs, "adw_about_window_set_support_url") | |||
| 2047 | - | core.PuregoSafeRegister(&xAboutWindowSetTranslatorCredits, libs, "adw_about_window_set_translator_credits") | |||
| 2048 | - | core.PuregoSafeRegister(&xAboutWindowSetVersion, libs, "adw_about_window_set_version") | |||
| 2049 | - | core.PuregoSafeRegister(&xAboutWindowSetWebsite, libs, "adw_about_window_set_website") | |||
| 2050 | } | 2083 | } | ||