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