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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66
| @@ -67,7 +67,6 @@ type ResponseAppearance int | |||
| 67 | 67 | var xResponseAppearanceGLibType func() types.GType | |
| 68 | 68 | ||
| 69 | 69 | func ResponseAppearanceGLibType() types.GType { | |
| 70 | - | core.LazyRegister(&xResponseAppearanceGLibType, "ADW", "adw_response_appearance_get_type", false) | |
| 71 | 70 | return xResponseAppearanceGLibType() | |
| 72 | 71 | } | |
| 73 | 72 | ||
| @@ -232,7 +231,6 @@ type AlertDialog struct { | |||
| 232 | 231 | var xAlertDialogGLibType func() types.GType | |
| 233 | 232 | ||
| 234 | 233 | func AlertDialogGLibType() types.GType { | |
| 235 | - | core.LazyRegister(&xAlertDialogGLibType, "ADW", "adw_alert_dialog_get_type", false) | |
| 236 | 234 | return xAlertDialogGLibType() | |
| 237 | 235 | } | |
| 238 | 236 | ||
| @@ -261,7 +259,6 @@ var xNewAlertDialog func(uintptr, uintptr) uintptr | |||
| 261 | 259 | // | |
| 262 | 260 | // ``` | |
| 263 | 261 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | |
| 264 | - | core.LazyRegister(&xNewAlertDialog, "ADW", "adw_alert_dialog_new", false) | |
| 265 | 262 | var cls *AlertDialog | |
| 266 | 263 | ||
| 267 | 264 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| @@ -300,8 +297,6 @@ var xAlertDialogAddResponse func(uintptr, string, string) | |||
| 300 | 297 | // [method@AlertDialog.set_response_appearance] can be used to customize the | |
| 301 | 298 | // responses further. | |
| 302 | 299 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | |
| 303 | - | core.LazyRegister(&xAlertDialogAddResponse, "ADW", "adw_alert_dialog_add_response", false) | |
| 304 | - | ||
| 305 | 300 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | |
| 306 | 301 | } | |
| 307 | 302 | ||
| @@ -325,8 +320,6 @@ var xAlertDialogAddResponses func(uintptr, string, ...interface{}) | |||
| 325 | 320 | // | |
| 326 | 321 | // ``` | |
| 327 | 322 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | |
| 328 | - | core.LazyRegister(&xAlertDialogAddResponses, "ADW", "adw_alert_dialog_add_responses", false) | |
| 329 | - | ||
| 330 | 323 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | |
| 331 | 324 | } | |
| 332 | 325 | ||
| @@ -337,8 +330,6 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 337 | 330 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | |
| 338 | 331 | // will be shown within it. Otherwise, it will be a separate window. | |
| 339 | 332 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 340 | - | core.LazyRegister(&xAlertDialogChoose, "ADW", "adw_alert_dialog_choose", false) | |
| 341 | - | ||
| 342 | 333 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 343 | 334 | } | |
| 344 | 335 | ||
| @@ -346,8 +337,6 @@ var xAlertDialogChooseFinish func(uintptr, uintptr) string | |||
| 346 | 337 | ||
| 347 | 338 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | |
| 348 | 339 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | |
| 349 | - | core.LazyRegister(&xAlertDialogChooseFinish, "ADW", "adw_alert_dialog_choose_finish", false) | |
| 350 | - | ||
| 351 | 340 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | |
| 352 | 341 | return cret | |
| 353 | 342 | } | |
| @@ -358,8 +347,6 @@ var xAlertDialogFormatBody func(uintptr, string, ...interface{}) | |||
| 358 | 347 | // | |
| 359 | 348 | // See [property@AlertDialog:body]. | |
| 360 | 349 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | |
| 361 | - | core.LazyRegister(&xAlertDialogFormatBody, "ADW", "adw_alert_dialog_format_body", false) | |
| 362 | - | ||
| 363 | 350 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | |
| 364 | 351 | } | |
| 365 | 352 | ||
| @@ -375,8 +362,6 @@ var xAlertDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||
| 375 | 362 | // | |
| 376 | 363 | // See [property@AlertDialog:body]. | |
| 377 | 364 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | |
| 378 | - | core.LazyRegister(&xAlertDialogFormatBodyMarkup, "ADW", "adw_alert_dialog_format_body_markup", false) | |
| 379 | - | ||
| 380 | 365 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 381 | 366 | } | |
| 382 | 367 | ||
| @@ -386,8 +371,6 @@ var xAlertDialogFormatHeading func(uintptr, string, ...interface{}) | |||
| 386 | 371 | // | |
| 387 | 372 | // See [property@AlertDialog:heading]. | |
| 388 | 373 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | |
| 389 | - | core.LazyRegister(&xAlertDialogFormatHeading, "ADW", "adw_alert_dialog_format_heading", false) | |
| 390 | - | ||
| 391 | 374 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | |
| 392 | 375 | } | |
| 393 | 376 | ||
| @@ -403,8 +386,6 @@ var xAlertDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||
| 403 | 386 | // | |
| 404 | 387 | // See [property@AlertDialog:heading]. | |
| 405 | 388 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | |
| 406 | - | core.LazyRegister(&xAlertDialogFormatHeadingMarkup, "ADW", "adw_alert_dialog_format_heading_markup", false) | |
| 407 | - | ||
| 408 | 389 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 409 | 390 | } | |
| 410 | 391 | ||
| @@ -412,8 +393,6 @@ var xAlertDialogGetBody func(uintptr) string | |||
| 412 | 393 | ||
| 413 | 394 | // Gets the body text of @self. | |
| 414 | 395 | func (x *AlertDialog) GetBody() string { | |
| 415 | - | core.LazyRegister(&xAlertDialogGetBody, "ADW", "adw_alert_dialog_get_body", false) | |
| 416 | - | ||
| 417 | 396 | cret := xAlertDialogGetBody(x.GoPointer()) | |
| 418 | 397 | return cret | |
| 419 | 398 | } | |
| @@ -422,8 +401,6 @@ var xAlertDialogGetBodyUseMarkup func(uintptr) bool | |||
| 422 | 401 | ||
| 423 | 402 | // Gets whether the body text of @self includes Pango markup. | |
| 424 | 403 | func (x *AlertDialog) GetBodyUseMarkup() bool { | |
| 425 | - | core.LazyRegister(&xAlertDialogGetBodyUseMarkup, "ADW", "adw_alert_dialog_get_body_use_markup", false) | |
| 426 | - | ||
| 427 | 404 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | |
| 428 | 405 | return cret | |
| 429 | 406 | } | |
| @@ -432,8 +409,6 @@ var xAlertDialogGetCloseResponse func(uintptr) string | |||
| 432 | 409 | ||
| 433 | 410 | // Gets the ID of the close response of @self. | |
| 434 | 411 | func (x *AlertDialog) GetCloseResponse() string { | |
| 435 | - | core.LazyRegister(&xAlertDialogGetCloseResponse, "ADW", "adw_alert_dialog_get_close_response", false) | |
| 436 | - | ||
| 437 | 412 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | |
| 438 | 413 | return cret | |
| 439 | 414 | } | |
| @@ -442,8 +417,6 @@ var xAlertDialogGetDefaultResponse func(uintptr) string | |||
| 442 | 417 | ||
| 443 | 418 | // Gets the ID of the default response of @self. | |
| 444 | 419 | func (x *AlertDialog) GetDefaultResponse() string { | |
| 445 | - | core.LazyRegister(&xAlertDialogGetDefaultResponse, "ADW", "adw_alert_dialog_get_default_response", false) | |
| 446 | - | ||
| 447 | 420 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | |
| 448 | 421 | return cret | |
| 449 | 422 | } | |
| @@ -452,7 +425,6 @@ var xAlertDialogGetExtraChild func(uintptr) uintptr | |||
| 452 | 425 | ||
| 453 | 426 | // Gets the child widget of @self. | |
| 454 | 427 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | |
| 455 | - | core.LazyRegister(&xAlertDialogGetExtraChild, "ADW", "adw_alert_dialog_get_extra_child", false) | |
| 456 | 428 | var cls *gtk.Widget | |
| 457 | 429 | ||
| 458 | 430 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | |
| @@ -470,8 +442,6 @@ var xAlertDialogGetHeading func(uintptr) string | |||
| 470 | 442 | ||
| 471 | 443 | // Gets the heading of @self. | |
| 472 | 444 | func (x *AlertDialog) GetHeading() string { | |
| 473 | - | core.LazyRegister(&xAlertDialogGetHeading, "ADW", "adw_alert_dialog_get_heading", false) | |
| 474 | - | ||
| 475 | 445 | cret := xAlertDialogGetHeading(x.GoPointer()) | |
| 476 | 446 | return cret | |
| 477 | 447 | } | |
| @@ -480,8 +450,6 @@ var xAlertDialogGetHeadingUseMarkup func(uintptr) bool | |||
| 480 | 450 | ||
| 481 | 451 | // Gets whether the heading of @self includes Pango markup. | |
| 482 | 452 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | |
| 483 | - | core.LazyRegister(&xAlertDialogGetHeadingUseMarkup, "ADW", "adw_alert_dialog_get_heading_use_markup", false) | |
| 484 | - | ||
| 485 | 453 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | |
| 486 | 454 | return cret | |
| 487 | 455 | } | |
| @@ -490,8 +458,6 @@ var xAlertDialogGetPreferWideLayout func(uintptr) bool | |||
| 490 | 458 | ||
| 491 | 459 | // Gets whether @self prefers horizontal button layout. | |
| 492 | 460 | func (x *AlertDialog) GetPreferWideLayout() bool { | |
| 493 | - | core.LazyRegister(&xAlertDialogGetPreferWideLayout, "ADW", "adw_alert_dialog_get_prefer_wide_layout", false) | |
| 494 | - | ||
| 495 | 461 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | |
| 496 | 462 | return cret | |
| 497 | 463 | } | |
| @@ -502,8 +468,6 @@ var xAlertDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||
| 502 | 468 | // | |
| 503 | 469 | // See [method@AlertDialog.set_response_appearance]. | |
| 504 | 470 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | |
| 505 | - | core.LazyRegister(&xAlertDialogGetResponseAppearance, "ADW", "adw_alert_dialog_get_response_appearance", false) | |
| 506 | - | ||
| 507 | 471 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | |
| 508 | 472 | return cret | |
| 509 | 473 | } | |
| @@ -514,8 +478,6 @@ var xAlertDialogGetResponseEnabled func(uintptr, string) bool | |||
| 514 | 478 | // | |
| 515 | 479 | // See [method@AlertDialog.set_response_enabled]. | |
| 516 | 480 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | |
| 517 | - | core.LazyRegister(&xAlertDialogGetResponseEnabled, "ADW", "adw_alert_dialog_get_response_enabled", false) | |
| 518 | - | ||
| 519 | 481 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | |
| 520 | 482 | return cret | |
| 521 | 483 | } | |
| @@ -526,8 +488,6 @@ var xAlertDialogGetResponseLabel func(uintptr, string) string | |||
| 526 | 488 | // | |
| 527 | 489 | // See [method@AlertDialog.set_response_label]. | |
| 528 | 490 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | |
| 529 | - | core.LazyRegister(&xAlertDialogGetResponseLabel, "ADW", "adw_alert_dialog_get_response_label", false) | |
| 530 | - | ||
| 531 | 491 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | |
| 532 | 492 | return cret | |
| 533 | 493 | } | |
| @@ -536,8 +496,6 @@ var xAlertDialogHasResponse func(uintptr, string) bool | |||
| 536 | 496 | ||
| 537 | 497 | // Gets whether @self has a response with the ID @response. | |
| 538 | 498 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | |
| 539 | - | core.LazyRegister(&xAlertDialogHasResponse, "ADW", "adw_alert_dialog_has_response", false) | |
| 540 | - | ||
| 541 | 499 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | |
| 542 | 500 | return cret | |
| 543 | 501 | } | |
| @@ -546,8 +504,6 @@ var xAlertDialogRemoveResponse func(uintptr, string) | |||
| 546 | 504 | ||
| 547 | 505 | // Removes a response from @self. | |
| 548 | 506 | func (x *AlertDialog) RemoveResponse(IdVar string) { | |
| 549 | - | core.LazyRegister(&xAlertDialogRemoveResponse, "ADW", "adw_alert_dialog_remove_response", false) | |
| 550 | - | ||
| 551 | 507 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | |
| 552 | 508 | } | |
| 553 | 509 | ||
| @@ -555,8 +511,6 @@ var xAlertDialogSetBody func(uintptr, string) | |||
| 555 | 511 | ||
| 556 | 512 | // Sets the body text of @self. | |
| 557 | 513 | func (x *AlertDialog) SetBody(BodyVar string) { | |
| 558 | - | core.LazyRegister(&xAlertDialogSetBody, "ADW", "adw_alert_dialog_set_body", false) | |
| 559 | - | ||
| 560 | 514 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | |
| 561 | 515 | } | |
| 562 | 516 | ||
| @@ -566,8 +520,6 @@ var xAlertDialogSetBodyUseMarkup func(uintptr, bool) | |||
| 566 | 520 | // | |
| 567 | 521 | // See [func@Pango.parse_markup]. | |
| 568 | 522 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | |
| 569 | - | core.LazyRegister(&xAlertDialogSetBodyUseMarkup, "ADW", "adw_alert_dialog_set_body_use_markup", false) | |
| 570 | - | ||
| 571 | 523 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 572 | 524 | } | |
| 573 | 525 | ||
| @@ -582,8 +534,6 @@ var xAlertDialogSetCloseResponse func(uintptr, string) | |||
| 582 | 534 | // | |
| 583 | 535 | // The default close response is `close`. | |
| 584 | 536 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | |
| 585 | - | core.LazyRegister(&xAlertDialogSetCloseResponse, "ADW", "adw_alert_dialog_set_close_response", false) | |
| 586 | - | ||
| 587 | 537 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | |
| 588 | 538 | } | |
| 589 | 539 | ||
| @@ -599,8 +549,6 @@ var xAlertDialogSetDefaultResponse func(uintptr, uintptr) | |||
| 599 | 549 | // | |
| 600 | 550 | // See [property@Dialog:default-widget]. | |
| 601 | 551 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | |
| 602 | - | core.LazyRegister(&xAlertDialogSetDefaultResponse, "ADW", "adw_alert_dialog_set_default_response", false) | |
| 603 | - | ||
| 604 | 552 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | |
| 605 | 553 | defer core.GFreeNullable(ResponseVarPtr) | |
| 606 | 554 | ||
| @@ -613,8 +561,6 @@ var xAlertDialogSetExtraChild func(uintptr, uintptr) | |||
| 613 | 561 | // | |
| 614 | 562 | // The child widget is displayed below the heading and body. | |
| 615 | 563 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | |
| 616 | - | core.LazyRegister(&xAlertDialogSetExtraChild, "ADW", "adw_alert_dialog_set_extra_child", false) | |
| 617 | - | ||
| 618 | 564 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 619 | 565 | } | |
| 620 | 566 | ||
| @@ -622,8 +568,6 @@ var xAlertDialogSetHeading func(uintptr, uintptr) | |||
| 622 | 568 | ||
| 623 | 569 | // Sets the heading of @self. | |
| 624 | 570 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | |
| 625 | - | core.LazyRegister(&xAlertDialogSetHeading, "ADW", "adw_alert_dialog_set_heading", false) | |
| 626 | - | ||
| 627 | 571 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 628 | 572 | defer core.GFreeNullable(HeadingVarPtr) | |
| 629 | 573 | ||
| @@ -636,8 +580,6 @@ var xAlertDialogSetHeadingUseMarkup func(uintptr, bool) | |||
| 636 | 580 | // | |
| 637 | 581 | // See [func@Pango.parse_markup]. | |
| 638 | 582 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | |
| 639 | - | core.LazyRegister(&xAlertDialogSetHeadingUseMarkup, "ADW", "adw_alert_dialog_set_heading_use_markup", false) | |
| 640 | - | ||
| 641 | 583 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 642 | 584 | } | |
| 643 | 585 | ||
| @@ -659,8 +601,6 @@ var xAlertDialogSetPreferWideLayout func(uintptr, bool) | |||
| 659 | 601 | // Does nothing with just one button, or when the buttons are already | |
| 660 | 602 | // horizontal. | |
| 661 | 603 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | |
| 662 | - | core.LazyRegister(&xAlertDialogSetPreferWideLayout, "ADW", "adw_alert_dialog_set_prefer_wide_layout", false) | |
| 663 | - | ||
| 664 | 604 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | |
| 665 | 605 | } | |
| 666 | 606 | ||
| @@ -687,8 +627,6 @@ var xAlertDialogSetResponseAppearance func(uintptr, string, ResponseAppearance) | |||
| 687 | 627 | // | |
| 688 | 628 | // Negative responses like Cancel or Close should use the default appearance. | |
| 689 | 629 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | |
| 690 | - | core.LazyRegister(&xAlertDialogSetResponseAppearance, "ADW", "adw_alert_dialog_set_response_appearance", false) | |
| 691 | - | ||
| 692 | 630 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | |
| 693 | 631 | } | |
| 694 | 632 | ||
| @@ -705,8 +643,6 @@ var xAlertDialogSetResponseEnabled func(uintptr, string, bool) | |||
| 705 | 643 | // | |
| 706 | 644 | // Responses are enabled by default. | |
| 707 | 645 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | |
| 708 | - | core.LazyRegister(&xAlertDialogSetResponseEnabled, "ADW", "adw_alert_dialog_set_response_enabled", false) | |
| 709 | - | ||
| 710 | 646 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | |
| 711 | 647 | } | |
| 712 | 648 | ||
| @@ -717,8 +653,6 @@ var xAlertDialogSetResponseLabel func(uintptr, string, string) | |||
| 717 | 653 | // Labels are displayed on the dialog buttons. An embedded underline in @label | |
| 718 | 654 | // indicates a mnemonic. | |
| 719 | 655 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | |
| 720 | - | core.LazyRegister(&xAlertDialogSetResponseLabel, "ADW", "adw_alert_dialog_set_response_label", false) | |
| 721 | - | ||
| 722 | 656 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | |
| 723 | 657 | } | |
| 724 | 658 | ||
| @@ -1211,4 +1145,51 @@ func (x *AlertDialog) GetBuildableId() string { | |||
| 1211 | 1145 | func init() { | |
| 1212 | 1146 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1213 | 1147 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1148 | + | var libs []uintptr | |
| 1149 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 1150 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1151 | + | if err != nil { | |
| 1152 | + | panic(err) | |
| 1153 | + | } | |
| 1154 | + | libs = append(libs, lib) | |
| 1155 | + | } | |
| 1156 | + | ||
| 1157 | + | core.PuregoSafeRegister(&xResponseAppearanceGLibType, libs, "adw_response_appearance_get_type") | |
| 1158 | + | ||
| 1159 | + | core.PuregoSafeRegister(&xAlertDialogGLibType, libs, "adw_alert_dialog_get_type") | |
| 1160 | + | ||
| 1161 | + | core.PuregoSafeRegister(&xNewAlertDialog, libs, "adw_alert_dialog_new") | |
| 1162 | + | ||
| 1163 | + | core.PuregoSafeRegister(&xAlertDialogAddResponse, libs, "adw_alert_dialog_add_response") | |
| 1164 | + | core.PuregoSafeRegister(&xAlertDialogAddResponses, libs, "adw_alert_dialog_add_responses") | |
| 1165 | + | core.PuregoSafeRegister(&xAlertDialogChoose, libs, "adw_alert_dialog_choose") | |
| 1166 | + | core.PuregoSafeRegister(&xAlertDialogChooseFinish, libs, "adw_alert_dialog_choose_finish") | |
| 1167 | + | core.PuregoSafeRegister(&xAlertDialogFormatBody, libs, "adw_alert_dialog_format_body") | |
| 1168 | + | core.PuregoSafeRegister(&xAlertDialogFormatBodyMarkup, libs, "adw_alert_dialog_format_body_markup") | |
| 1169 | + | core.PuregoSafeRegister(&xAlertDialogFormatHeading, libs, "adw_alert_dialog_format_heading") | |
| 1170 | + | core.PuregoSafeRegister(&xAlertDialogFormatHeadingMarkup, libs, "adw_alert_dialog_format_heading_markup") | |
| 1171 | + | core.PuregoSafeRegister(&xAlertDialogGetBody, libs, "adw_alert_dialog_get_body") | |
| 1172 | + | core.PuregoSafeRegister(&xAlertDialogGetBodyUseMarkup, libs, "adw_alert_dialog_get_body_use_markup") | |
| 1173 | + | core.PuregoSafeRegister(&xAlertDialogGetCloseResponse, libs, "adw_alert_dialog_get_close_response") | |
| 1174 | + | core.PuregoSafeRegister(&xAlertDialogGetDefaultResponse, libs, "adw_alert_dialog_get_default_response") | |
| 1175 | + | core.PuregoSafeRegister(&xAlertDialogGetExtraChild, libs, "adw_alert_dialog_get_extra_child") | |
| 1176 | + | core.PuregoSafeRegister(&xAlertDialogGetHeading, libs, "adw_alert_dialog_get_heading") | |
| 1177 | + | core.PuregoSafeRegister(&xAlertDialogGetHeadingUseMarkup, libs, "adw_alert_dialog_get_heading_use_markup") | |
| 1178 | + | core.PuregoSafeRegister(&xAlertDialogGetPreferWideLayout, libs, "adw_alert_dialog_get_prefer_wide_layout") | |
| 1179 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseAppearance, libs, "adw_alert_dialog_get_response_appearance") | |
| 1180 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseEnabled, libs, "adw_alert_dialog_get_response_enabled") | |
| 1181 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseLabel, libs, "adw_alert_dialog_get_response_label") | |
| 1182 | + | core.PuregoSafeRegister(&xAlertDialogHasResponse, libs, "adw_alert_dialog_has_response") | |
| 1183 | + | core.PuregoSafeRegister(&xAlertDialogRemoveResponse, libs, "adw_alert_dialog_remove_response") | |
| 1184 | + | core.PuregoSafeRegister(&xAlertDialogSetBody, libs, "adw_alert_dialog_set_body") | |
| 1185 | + | core.PuregoSafeRegister(&xAlertDialogSetBodyUseMarkup, libs, "adw_alert_dialog_set_body_use_markup") | |
| 1186 | + | core.PuregoSafeRegister(&xAlertDialogSetCloseResponse, libs, "adw_alert_dialog_set_close_response") | |
| 1187 | + | core.PuregoSafeRegister(&xAlertDialogSetDefaultResponse, libs, "adw_alert_dialog_set_default_response") | |
| 1188 | + | core.PuregoSafeRegister(&xAlertDialogSetExtraChild, libs, "adw_alert_dialog_set_extra_child") | |
| 1189 | + | core.PuregoSafeRegister(&xAlertDialogSetHeading, libs, "adw_alert_dialog_set_heading") | |
| 1190 | + | core.PuregoSafeRegister(&xAlertDialogSetHeadingUseMarkup, libs, "adw_alert_dialog_set_heading_use_markup") | |
| 1191 | + | core.PuregoSafeRegister(&xAlertDialogSetPreferWideLayout, libs, "adw_alert_dialog_set_prefer_wide_layout") | |
| 1192 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseAppearance, libs, "adw_alert_dialog_set_response_appearance") | |
| 1193 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseEnabled, libs, "adw_alert_dialog_set_response_enabled") | |
| 1194 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseLabel, libs, "adw_alert_dialog_set_response_label") | |
| 1214 | 1195 | } | |
| @@ -67,7 +67,6 @@ type ResponseAppearance int | |||||
| 67 | var xResponseAppearanceGLibType func() types.GType | 67 | var xResponseAppearanceGLibType func() types.GType | ||
| 68 | 68 | ||||
| 69 | func ResponseAppearanceGLibType() types.GType { | 69 | func ResponseAppearanceGLibType() types.GType { | ||
| 70 | - | core.LazyRegister(&xResponseAppearanceGLibType, "ADW", "adw_response_appearance_get_type", false) | |||
| 71 | return xResponseAppearanceGLibType() | 70 | return xResponseAppearanceGLibType() | ||
| 72 | } | 71 | } | ||
| 73 | 72 | ||||
| @@ -232,7 +231,6 @@ type AlertDialog struct { | |||||
| 232 | var xAlertDialogGLibType func() types.GType | 231 | var xAlertDialogGLibType func() types.GType | ||
| 233 | 232 | ||||
| 234 | func AlertDialogGLibType() types.GType { | 233 | func AlertDialogGLibType() types.GType { | ||
| 235 | - | core.LazyRegister(&xAlertDialogGLibType, "ADW", "adw_alert_dialog_get_type", false) | |||
| 236 | return xAlertDialogGLibType() | 234 | return xAlertDialogGLibType() | ||
| 237 | } | 235 | } | ||
| 238 | 236 | ||||
| @@ -261,7 +259,6 @@ var xNewAlertDialog func(uintptr, uintptr) uintptr | |||||
| 261 | // | 259 | // | ||
| 262 | // ``` | 260 | // ``` | ||
| 263 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | 261 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | ||
| 264 | - | core.LazyRegister(&xNewAlertDialog, "ADW", "adw_alert_dialog_new", false) | |||
| 265 | var cls *AlertDialog | 262 | var cls *AlertDialog | ||
| 266 | 263 | ||||
| 267 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 264 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| @@ -300,8 +297,6 @@ var xAlertDialogAddResponse func(uintptr, string, string) | |||||
| 300 | // [method@AlertDialog.set_response_appearance] can be used to customize the | 297 | // [method@AlertDialog.set_response_appearance] can be used to customize the | ||
| 301 | // responses further. | 298 | // responses further. | ||
| 302 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | 299 | func (x *AlertDialog) AddResponse(IdVar string, LabelVar string) { | ||
| 303 | - | core.LazyRegister(&xAlertDialogAddResponse, "ADW", "adw_alert_dialog_add_response", false) | |||
| 304 | - | ||||
| 305 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | 300 | xAlertDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | ||
| 306 | } | 301 | } | ||
| 307 | 302 | ||||
| @@ -325,8 +320,6 @@ var xAlertDialogAddResponses func(uintptr, string, ...interface{}) | |||||
| 325 | // | 320 | // | ||
| 326 | // ``` | 321 | // ``` | ||
| 327 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | 322 | func (x *AlertDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | ||
| 328 | - | core.LazyRegister(&xAlertDialogAddResponses, "ADW", "adw_alert_dialog_add_responses", false) | |||
| 329 | - | ||||
| 330 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | 323 | xAlertDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | ||
| 331 | } | 324 | } | ||
| 332 | 325 | ||||
| @@ -337,8 +330,6 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 337 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | 330 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | ||
| 338 | // will be shown within it. Otherwise, it will be a separate window. | 331 | // will be shown within it. Otherwise, it will be a separate window. | ||
| 339 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 332 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 340 | - | core.LazyRegister(&xAlertDialogChoose, "ADW", "adw_alert_dialog_choose", false) | |||
| 341 | - | ||||
| 342 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 333 | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 343 | } | 334 | } | ||
| 344 | 335 | ||||
| @@ -346,8 +337,6 @@ var xAlertDialogChooseFinish func(uintptr, uintptr) string | |||||
| 346 | 337 | ||||
| 347 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | 338 | // Finishes the [method@AlertDialog.choose] call and returns the response ID. | ||
| 348 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | 339 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | ||
| 349 | - | core.LazyRegister(&xAlertDialogChooseFinish, "ADW", "adw_alert_dialog_choose_finish", false) | |||
| 350 | - | ||||
| 351 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | 340 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | ||
| 352 | return cret | 341 | return cret | ||
| 353 | } | 342 | } | ||
| @@ -358,8 +347,6 @@ var xAlertDialogFormatBody func(uintptr, string, ...interface{}) | |||||
| 358 | // | 347 | // | ||
| 359 | // See [property@AlertDialog:body]. | 348 | // See [property@AlertDialog:body]. | ||
| 360 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | 349 | func (x *AlertDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | ||
| 361 | - | core.LazyRegister(&xAlertDialogFormatBody, "ADW", "adw_alert_dialog_format_body", false) | |||
| 362 | - | ||||
| 363 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | 350 | xAlertDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | ||
| 364 | } | 351 | } | ||
| 365 | 352 | ||||
| @@ -375,8 +362,6 @@ var xAlertDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||||
| 375 | // | 362 | // | ||
| 376 | // See [property@AlertDialog:body]. | 363 | // See [property@AlertDialog:body]. | ||
| 377 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | 364 | func (x *AlertDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 378 | - | core.LazyRegister(&xAlertDialogFormatBodyMarkup, "ADW", "adw_alert_dialog_format_body_markup", false) | |||
| 379 | - | ||||
| 380 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | 365 | xAlertDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 381 | } | 366 | } | ||
| 382 | 367 | ||||
| @@ -386,8 +371,6 @@ var xAlertDialogFormatHeading func(uintptr, string, ...interface{}) | |||||
| 386 | // | 371 | // | ||
| 387 | // See [property@AlertDialog:heading]. | 372 | // See [property@AlertDialog:heading]. | ||
| 388 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | 373 | func (x *AlertDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | ||
| 389 | - | core.LazyRegister(&xAlertDialogFormatHeading, "ADW", "adw_alert_dialog_format_heading", false) | |||
| 390 | - | ||||
| 391 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | 374 | xAlertDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | ||
| 392 | } | 375 | } | ||
| 393 | 376 | ||||
| @@ -403,8 +386,6 @@ var xAlertDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||||
| 403 | // | 386 | // | ||
| 404 | // See [property@AlertDialog:heading]. | 387 | // See [property@AlertDialog:heading]. | ||
| 405 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | 388 | func (x *AlertDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 406 | - | core.LazyRegister(&xAlertDialogFormatHeadingMarkup, "ADW", "adw_alert_dialog_format_heading_markup", false) | |||
| 407 | - | ||||
| 408 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | 389 | xAlertDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 409 | } | 390 | } | ||
| 410 | 391 | ||||
| @@ -412,8 +393,6 @@ var xAlertDialogGetBody func(uintptr) string | |||||
| 412 | 393 | ||||
| 413 | // Gets the body text of @self. | 394 | // Gets the body text of @self. | ||
| 414 | func (x *AlertDialog) GetBody() string { | 395 | func (x *AlertDialog) GetBody() string { | ||
| 415 | - | core.LazyRegister(&xAlertDialogGetBody, "ADW", "adw_alert_dialog_get_body", false) | |||
| 416 | - | ||||
| 417 | cret := xAlertDialogGetBody(x.GoPointer()) | 396 | cret := xAlertDialogGetBody(x.GoPointer()) | ||
| 418 | return cret | 397 | return cret | ||
| 419 | } | 398 | } | ||
| @@ -422,8 +401,6 @@ var xAlertDialogGetBodyUseMarkup func(uintptr) bool | |||||
| 422 | 401 | ||||
| 423 | // Gets whether the body text of @self includes Pango markup. | 402 | // Gets whether the body text of @self includes Pango markup. | ||
| 424 | func (x *AlertDialog) GetBodyUseMarkup() bool { | 403 | func (x *AlertDialog) GetBodyUseMarkup() bool { | ||
| 425 | - | core.LazyRegister(&xAlertDialogGetBodyUseMarkup, "ADW", "adw_alert_dialog_get_body_use_markup", false) | |||
| 426 | - | ||||
| 427 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | 404 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | ||
| 428 | return cret | 405 | return cret | ||
| 429 | } | 406 | } | ||
| @@ -432,8 +409,6 @@ var xAlertDialogGetCloseResponse func(uintptr) string | |||||
| 432 | 409 | ||||
| 433 | // Gets the ID of the close response of @self. | 410 | // Gets the ID of the close response of @self. | ||
| 434 | func (x *AlertDialog) GetCloseResponse() string { | 411 | func (x *AlertDialog) GetCloseResponse() string { | ||
| 435 | - | core.LazyRegister(&xAlertDialogGetCloseResponse, "ADW", "adw_alert_dialog_get_close_response", false) | |||
| 436 | - | ||||
| 437 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | 412 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | ||
| 438 | return cret | 413 | return cret | ||
| 439 | } | 414 | } | ||
| @@ -442,8 +417,6 @@ var xAlertDialogGetDefaultResponse func(uintptr) string | |||||
| 442 | 417 | ||||
| 443 | // Gets the ID of the default response of @self. | 418 | // Gets the ID of the default response of @self. | ||
| 444 | func (x *AlertDialog) GetDefaultResponse() string { | 419 | func (x *AlertDialog) GetDefaultResponse() string { | ||
| 445 | - | core.LazyRegister(&xAlertDialogGetDefaultResponse, "ADW", "adw_alert_dialog_get_default_response", false) | |||
| 446 | - | ||||
| 447 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | 420 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | ||
| 448 | return cret | 421 | return cret | ||
| 449 | } | 422 | } | ||
| @@ -452,7 +425,6 @@ var xAlertDialogGetExtraChild func(uintptr) uintptr | |||||
| 452 | 425 | ||||
| 453 | // Gets the child widget of @self. | 426 | // Gets the child widget of @self. | ||
| 454 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | 427 | func (x *AlertDialog) GetExtraChild() *gtk.Widget { | ||
| 455 | - | core.LazyRegister(&xAlertDialogGetExtraChild, "ADW", "adw_alert_dialog_get_extra_child", false) | |||
| 456 | var cls *gtk.Widget | 428 | var cls *gtk.Widget | ||
| 457 | 429 | ||||
| 458 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | 430 | cret := xAlertDialogGetExtraChild(x.GoPointer()) | ||
| @@ -470,8 +442,6 @@ var xAlertDialogGetHeading func(uintptr) string | |||||
| 470 | 442 | ||||
| 471 | // Gets the heading of @self. | 443 | // Gets the heading of @self. | ||
| 472 | func (x *AlertDialog) GetHeading() string { | 444 | func (x *AlertDialog) GetHeading() string { | ||
| 473 | - | core.LazyRegister(&xAlertDialogGetHeading, "ADW", "adw_alert_dialog_get_heading", false) | |||
| 474 | - | ||||
| 475 | cret := xAlertDialogGetHeading(x.GoPointer()) | 445 | cret := xAlertDialogGetHeading(x.GoPointer()) | ||
| 476 | return cret | 446 | return cret | ||
| 477 | } | 447 | } | ||
| @@ -480,8 +450,6 @@ var xAlertDialogGetHeadingUseMarkup func(uintptr) bool | |||||
| 480 | 450 | ||||
| 481 | // Gets whether the heading of @self includes Pango markup. | 451 | // Gets whether the heading of @self includes Pango markup. | ||
| 482 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | 452 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | ||
| 483 | - | core.LazyRegister(&xAlertDialogGetHeadingUseMarkup, "ADW", "adw_alert_dialog_get_heading_use_markup", false) | |||
| 484 | - | ||||
| 485 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | 453 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | ||
| 486 | return cret | 454 | return cret | ||
| 487 | } | 455 | } | ||
| @@ -490,8 +458,6 @@ var xAlertDialogGetPreferWideLayout func(uintptr) bool | |||||
| 490 | 458 | ||||
| 491 | // Gets whether @self prefers horizontal button layout. | 459 | // Gets whether @self prefers horizontal button layout. | ||
| 492 | func (x *AlertDialog) GetPreferWideLayout() bool { | 460 | func (x *AlertDialog) GetPreferWideLayout() bool { | ||
| 493 | - | core.LazyRegister(&xAlertDialogGetPreferWideLayout, "ADW", "adw_alert_dialog_get_prefer_wide_layout", false) | |||
| 494 | - | ||||
| 495 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | 461 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | ||
| 496 | return cret | 462 | return cret | ||
| 497 | } | 463 | } | ||
| @@ -502,8 +468,6 @@ var xAlertDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||||
| 502 | // | 468 | // | ||
| 503 | // See [method@AlertDialog.set_response_appearance]. | 469 | // See [method@AlertDialog.set_response_appearance]. | ||
| 504 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | 470 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | ||
| 505 | - | core.LazyRegister(&xAlertDialogGetResponseAppearance, "ADW", "adw_alert_dialog_get_response_appearance", false) | |||
| 506 | - | ||||
| 507 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | 471 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | ||
| 508 | return cret | 472 | return cret | ||
| 509 | } | 473 | } | ||
| @@ -514,8 +478,6 @@ var xAlertDialogGetResponseEnabled func(uintptr, string) bool | |||||
| 514 | // | 478 | // | ||
| 515 | // See [method@AlertDialog.set_response_enabled]. | 479 | // See [method@AlertDialog.set_response_enabled]. | ||
| 516 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | 480 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | ||
| 517 | - | core.LazyRegister(&xAlertDialogGetResponseEnabled, "ADW", "adw_alert_dialog_get_response_enabled", false) | |||
| 518 | - | ||||
| 519 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | 481 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | ||
| 520 | return cret | 482 | return cret | ||
| 521 | } | 483 | } | ||
| @@ -526,8 +488,6 @@ var xAlertDialogGetResponseLabel func(uintptr, string) string | |||||
| 526 | // | 488 | // | ||
| 527 | // See [method@AlertDialog.set_response_label]. | 489 | // See [method@AlertDialog.set_response_label]. | ||
| 528 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | 490 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | ||
| 529 | - | core.LazyRegister(&xAlertDialogGetResponseLabel, "ADW", "adw_alert_dialog_get_response_label", false) | |||
| 530 | - | ||||
| 531 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | 491 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | ||
| 532 | return cret | 492 | return cret | ||
| 533 | } | 493 | } | ||
| @@ -536,8 +496,6 @@ var xAlertDialogHasResponse func(uintptr, string) bool | |||||
| 536 | 496 | ||||
| 537 | // Gets whether @self has a response with the ID @response. | 497 | // Gets whether @self has a response with the ID @response. | ||
| 538 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | 498 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | ||
| 539 | - | core.LazyRegister(&xAlertDialogHasResponse, "ADW", "adw_alert_dialog_has_response", false) | |||
| 540 | - | ||||
| 541 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | 499 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | ||
| 542 | return cret | 500 | return cret | ||
| 543 | } | 501 | } | ||
| @@ -546,8 +504,6 @@ var xAlertDialogRemoveResponse func(uintptr, string) | |||||
| 546 | 504 | ||||
| 547 | // Removes a response from @self. | 505 | // Removes a response from @self. | ||
| 548 | func (x *AlertDialog) RemoveResponse(IdVar string) { | 506 | func (x *AlertDialog) RemoveResponse(IdVar string) { | ||
| 549 | - | core.LazyRegister(&xAlertDialogRemoveResponse, "ADW", "adw_alert_dialog_remove_response", false) | |||
| 550 | - | ||||
| 551 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | 507 | xAlertDialogRemoveResponse(x.GoPointer(), IdVar) | ||
| 552 | } | 508 | } | ||
| 553 | 509 | ||||
| @@ -555,8 +511,6 @@ var xAlertDialogSetBody func(uintptr, string) | |||||
| 555 | 511 | ||||
| 556 | // Sets the body text of @self. | 512 | // Sets the body text of @self. | ||
| 557 | func (x *AlertDialog) SetBody(BodyVar string) { | 513 | func (x *AlertDialog) SetBody(BodyVar string) { | ||
| 558 | - | core.LazyRegister(&xAlertDialogSetBody, "ADW", "adw_alert_dialog_set_body", false) | |||
| 559 | - | ||||
| 560 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | 514 | xAlertDialogSetBody(x.GoPointer(), BodyVar) | ||
| 561 | } | 515 | } | ||
| 562 | 516 | ||||
| @@ -566,8 +520,6 @@ var xAlertDialogSetBodyUseMarkup func(uintptr, bool) | |||||
| 566 | // | 520 | // | ||
| 567 | // See [func@Pango.parse_markup]. | 521 | // See [func@Pango.parse_markup]. | ||
| 568 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | 522 | func (x *AlertDialog) SetBodyUseMarkup(UseMarkupVar bool) { | ||
| 569 | - | core.LazyRegister(&xAlertDialogSetBodyUseMarkup, "ADW", "adw_alert_dialog_set_body_use_markup", false) | |||
| 570 | - | ||||
| 571 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | 523 | xAlertDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 572 | } | 524 | } | ||
| 573 | 525 | ||||
| @@ -582,8 +534,6 @@ var xAlertDialogSetCloseResponse func(uintptr, string) | |||||
| 582 | // | 534 | // | ||
| 583 | // The default close response is `close`. | 535 | // The default close response is `close`. | ||
| 584 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | 536 | func (x *AlertDialog) SetCloseResponse(ResponseVar string) { | ||
| 585 | - | core.LazyRegister(&xAlertDialogSetCloseResponse, "ADW", "adw_alert_dialog_set_close_response", false) | |||
| 586 | - | ||||
| 587 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | 537 | xAlertDialogSetCloseResponse(x.GoPointer(), ResponseVar) | ||
| 588 | } | 538 | } | ||
| 589 | 539 | ||||
| @@ -599,8 +549,6 @@ var xAlertDialogSetDefaultResponse func(uintptr, uintptr) | |||||
| 599 | // | 549 | // | ||
| 600 | // See [property@Dialog:default-widget]. | 550 | // See [property@Dialog:default-widget]. | ||
| 601 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | 551 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | ||
| 602 | - | core.LazyRegister(&xAlertDialogSetDefaultResponse, "ADW", "adw_alert_dialog_set_default_response", false) | |||
| 603 | - | ||||
| 604 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | 552 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | ||
| 605 | defer core.GFreeNullable(ResponseVarPtr) | 553 | defer core.GFreeNullable(ResponseVarPtr) | ||
| 606 | 554 | ||||
| @@ -613,8 +561,6 @@ var xAlertDialogSetExtraChild func(uintptr, uintptr) | |||||
| 613 | // | 561 | // | ||
| 614 | // The child widget is displayed below the heading and body. | 562 | // The child widget is displayed below the heading and body. | ||
| 615 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | 563 | func (x *AlertDialog) SetExtraChild(ChildVar *gtk.Widget) { | ||
| 616 | - | core.LazyRegister(&xAlertDialogSetExtraChild, "ADW", "adw_alert_dialog_set_extra_child", false) | |||
| 617 | - | ||||
| 618 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | 564 | xAlertDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 619 | } | 565 | } | ||
| 620 | 566 | ||||
| @@ -622,8 +568,6 @@ var xAlertDialogSetHeading func(uintptr, uintptr) | |||||
| 622 | 568 | ||||
| 623 | // Sets the heading of @self. | 569 | // Sets the heading of @self. | ||
| 624 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | 570 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | ||
| 625 | - | core.LazyRegister(&xAlertDialogSetHeading, "ADW", "adw_alert_dialog_set_heading", false) | |||
| 626 | - | ||||
| 627 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 571 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| 628 | defer core.GFreeNullable(HeadingVarPtr) | 572 | defer core.GFreeNullable(HeadingVarPtr) | ||
| 629 | 573 | ||||
| @@ -636,8 +580,6 @@ var xAlertDialogSetHeadingUseMarkup func(uintptr, bool) | |||||
| 636 | // | 580 | // | ||
| 637 | // See [func@Pango.parse_markup]. | 581 | // See [func@Pango.parse_markup]. | ||
| 638 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | 582 | func (x *AlertDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | ||
| 639 | - | core.LazyRegister(&xAlertDialogSetHeadingUseMarkup, "ADW", "adw_alert_dialog_set_heading_use_markup", false) | |||
| 640 | - | ||||
| 641 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | 583 | xAlertDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 642 | } | 584 | } | ||
| 643 | 585 | ||||
| @@ -659,8 +601,6 @@ var xAlertDialogSetPreferWideLayout func(uintptr, bool) | |||||
| 659 | // Does nothing with just one button, or when the buttons are already | 601 | // Does nothing with just one button, or when the buttons are already | ||
| 660 | // horizontal. | 602 | // horizontal. | ||
| 661 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | 603 | func (x *AlertDialog) SetPreferWideLayout(PreferWideLayoutVar bool) { | ||
| 662 | - | core.LazyRegister(&xAlertDialogSetPreferWideLayout, "ADW", "adw_alert_dialog_set_prefer_wide_layout", false) | |||
| 663 | - | ||||
| 664 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | 604 | xAlertDialogSetPreferWideLayout(x.GoPointer(), PreferWideLayoutVar) | ||
| 665 | } | 605 | } | ||
| 666 | 606 | ||||
| @@ -687,8 +627,6 @@ var xAlertDialogSetResponseAppearance func(uintptr, string, ResponseAppearance) | |||||
| 687 | // | 627 | // | ||
| 688 | // Negative responses like Cancel or Close should use the default appearance. | 628 | // Negative responses like Cancel or Close should use the default appearance. | ||
| 689 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | 629 | func (x *AlertDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | ||
| 690 | - | core.LazyRegister(&xAlertDialogSetResponseAppearance, "ADW", "adw_alert_dialog_set_response_appearance", false) | |||
| 691 | - | ||||
| 692 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | 630 | xAlertDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | ||
| 693 | } | 631 | } | ||
| 694 | 632 | ||||
| @@ -705,8 +643,6 @@ var xAlertDialogSetResponseEnabled func(uintptr, string, bool) | |||||
| 705 | // | 643 | // | ||
| 706 | // Responses are enabled by default. | 644 | // Responses are enabled by default. | ||
| 707 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | 645 | func (x *AlertDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | ||
| 708 | - | core.LazyRegister(&xAlertDialogSetResponseEnabled, "ADW", "adw_alert_dialog_set_response_enabled", false) | |||
| 709 | - | ||||
| 710 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | 646 | xAlertDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | ||
| 711 | } | 647 | } | ||
| 712 | 648 | ||||
| @@ -717,8 +653,6 @@ var xAlertDialogSetResponseLabel func(uintptr, string, string) | |||||
| 717 | // Labels are displayed on the dialog buttons. An embedded underline in @label | 653 | // Labels are displayed on the dialog buttons. An embedded underline in @label | ||
| 718 | // indicates a mnemonic. | 654 | // indicates a mnemonic. | ||
| 719 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | 655 | func (x *AlertDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | ||
| 720 | - | core.LazyRegister(&xAlertDialogSetResponseLabel, "ADW", "adw_alert_dialog_set_response_label", false) | |||
| 721 | - | ||||
| 722 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | 656 | xAlertDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | ||
| 723 | } | 657 | } | ||
| 724 | 658 | ||||
| @@ -1211,4 +1145,51 @@ func (x *AlertDialog) GetBuildableId() string { | |||||
| 1211 | func init() { | 1145 | func init() { | ||
| 1212 | core.SetPackageName("ADW", "libadwaita-1") | 1146 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1213 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 1147 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1148 | + | var libs []uintptr | |||
| 1149 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 1150 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1151 | + | if err != nil { | |||
| 1152 | + | panic(err) | |||
| 1153 | + | } | |||
| 1154 | + | libs = append(libs, lib) | |||
| 1155 | + | } | |||
| 1156 | + | ||||
| 1157 | + | core.PuregoSafeRegister(&xResponseAppearanceGLibType, libs, "adw_response_appearance_get_type") | |||
| 1158 | + | ||||
| 1159 | + | core.PuregoSafeRegister(&xAlertDialogGLibType, libs, "adw_alert_dialog_get_type") | |||
| 1160 | + | ||||
| 1161 | + | core.PuregoSafeRegister(&xNewAlertDialog, libs, "adw_alert_dialog_new") | |||
| 1162 | + | ||||
| 1163 | + | core.PuregoSafeRegister(&xAlertDialogAddResponse, libs, "adw_alert_dialog_add_response") | |||
| 1164 | + | core.PuregoSafeRegister(&xAlertDialogAddResponses, libs, "adw_alert_dialog_add_responses") | |||
| 1165 | + | core.PuregoSafeRegister(&xAlertDialogChoose, libs, "adw_alert_dialog_choose") | |||
| 1166 | + | core.PuregoSafeRegister(&xAlertDialogChooseFinish, libs, "adw_alert_dialog_choose_finish") | |||
| 1167 | + | core.PuregoSafeRegister(&xAlertDialogFormatBody, libs, "adw_alert_dialog_format_body") | |||
| 1168 | + | core.PuregoSafeRegister(&xAlertDialogFormatBodyMarkup, libs, "adw_alert_dialog_format_body_markup") | |||
| 1169 | + | core.PuregoSafeRegister(&xAlertDialogFormatHeading, libs, "adw_alert_dialog_format_heading") | |||
| 1170 | + | core.PuregoSafeRegister(&xAlertDialogFormatHeadingMarkup, libs, "adw_alert_dialog_format_heading_markup") | |||
| 1171 | + | core.PuregoSafeRegister(&xAlertDialogGetBody, libs, "adw_alert_dialog_get_body") | |||
| 1172 | + | core.PuregoSafeRegister(&xAlertDialogGetBodyUseMarkup, libs, "adw_alert_dialog_get_body_use_markup") | |||
| 1173 | + | core.PuregoSafeRegister(&xAlertDialogGetCloseResponse, libs, "adw_alert_dialog_get_close_response") | |||
| 1174 | + | core.PuregoSafeRegister(&xAlertDialogGetDefaultResponse, libs, "adw_alert_dialog_get_default_response") | |||
| 1175 | + | core.PuregoSafeRegister(&xAlertDialogGetExtraChild, libs, "adw_alert_dialog_get_extra_child") | |||
| 1176 | + | core.PuregoSafeRegister(&xAlertDialogGetHeading, libs, "adw_alert_dialog_get_heading") | |||
| 1177 | + | core.PuregoSafeRegister(&xAlertDialogGetHeadingUseMarkup, libs, "adw_alert_dialog_get_heading_use_markup") | |||
| 1178 | + | core.PuregoSafeRegister(&xAlertDialogGetPreferWideLayout, libs, "adw_alert_dialog_get_prefer_wide_layout") | |||
| 1179 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseAppearance, libs, "adw_alert_dialog_get_response_appearance") | |||
| 1180 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseEnabled, libs, "adw_alert_dialog_get_response_enabled") | |||
| 1181 | + | core.PuregoSafeRegister(&xAlertDialogGetResponseLabel, libs, "adw_alert_dialog_get_response_label") | |||
| 1182 | + | core.PuregoSafeRegister(&xAlertDialogHasResponse, libs, "adw_alert_dialog_has_response") | |||
| 1183 | + | core.PuregoSafeRegister(&xAlertDialogRemoveResponse, libs, "adw_alert_dialog_remove_response") | |||
| 1184 | + | core.PuregoSafeRegister(&xAlertDialogSetBody, libs, "adw_alert_dialog_set_body") | |||
| 1185 | + | core.PuregoSafeRegister(&xAlertDialogSetBodyUseMarkup, libs, "adw_alert_dialog_set_body_use_markup") | |||
| 1186 | + | core.PuregoSafeRegister(&xAlertDialogSetCloseResponse, libs, "adw_alert_dialog_set_close_response") | |||
| 1187 | + | core.PuregoSafeRegister(&xAlertDialogSetDefaultResponse, libs, "adw_alert_dialog_set_default_response") | |||
| 1188 | + | core.PuregoSafeRegister(&xAlertDialogSetExtraChild, libs, "adw_alert_dialog_set_extra_child") | |||
| 1189 | + | core.PuregoSafeRegister(&xAlertDialogSetHeading, libs, "adw_alert_dialog_set_heading") | |||
| 1190 | + | core.PuregoSafeRegister(&xAlertDialogSetHeadingUseMarkup, libs, "adw_alert_dialog_set_heading_use_markup") | |||
| 1191 | + | core.PuregoSafeRegister(&xAlertDialogSetPreferWideLayout, libs, "adw_alert_dialog_set_prefer_wide_layout") | |||
| 1192 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseAppearance, libs, "adw_alert_dialog_set_response_appearance") | |||
| 1193 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseEnabled, libs, "adw_alert_dialog_set_response_enabled") | |||
| 1194 | + | core.PuregoSafeRegister(&xAlertDialogSetResponseLabel, libs, "adw_alert_dialog_set_response_label") | |||
| 1214 | } | 1195 | } | ||