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