Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63
| @@ -207,7 +207,6 @@ type MessageDialog struct { | |||
| 207 | 207 | var xMessageDialogGLibType func() types.GType | |
| 208 | 208 | ||
| 209 | 209 | func MessageDialogGLibType() types.GType { | |
| 210 | - | core.LazyRegister(&xMessageDialogGLibType, "ADW", "adw_message_dialog_get_type", false) | |
| 211 | 210 | return xMessageDialogGLibType() | |
| 212 | 211 | } | |
| 213 | 212 | ||
| @@ -236,7 +235,6 @@ var xNewMessageDialog func(uintptr, uintptr, uintptr) uintptr | |||
| 236 | 235 | // | |
| 237 | 236 | // ``` | |
| 238 | 237 | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar *string, BodyVar *string) *MessageDialog { | |
| 239 | - | core.LazyRegister(&xNewMessageDialog, "ADW", "adw_message_dialog_new", false) | |
| 240 | 238 | var cls *MessageDialog | |
| 241 | 239 | ||
| 242 | 240 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| @@ -275,8 +273,6 @@ var xMessageDialogAddResponse func(uintptr, string, string) | |||
| 275 | 273 | // [method@MessageDialog.set_response_appearance] can be used to customize the | |
| 276 | 274 | // responses further. | |
| 277 | 275 | func (x *MessageDialog) AddResponse(IdVar string, LabelVar string) { | |
| 278 | - | core.LazyRegister(&xMessageDialogAddResponse, "ADW", "adw_message_dialog_add_response", false) | |
| 279 | - | ||
| 280 | 276 | xMessageDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | |
| 281 | 277 | } | |
| 282 | 278 | ||
| @@ -300,8 +296,6 @@ var xMessageDialogAddResponses func(uintptr, string, ...interface{}) | |||
| 300 | 296 | // | |
| 301 | 297 | // ``` | |
| 302 | 298 | func (x *MessageDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | |
| 303 | - | core.LazyRegister(&xMessageDialogAddResponses, "ADW", "adw_message_dialog_add_responses", false) | |
| 304 | - | ||
| 305 | 299 | xMessageDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | |
| 306 | 300 | } | |
| 307 | 301 | ||
| @@ -309,8 +303,6 @@ var xMessageDialogChoose func(uintptr, uintptr, uintptr, uintptr) | |||
| 309 | 303 | ||
| 310 | 304 | // This function shows @self to the user. | |
| 311 | 305 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 312 | - | core.LazyRegister(&xMessageDialogChoose, "ADW", "adw_message_dialog_choose", false) | |
| 313 | - | ||
| 314 | 306 | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 315 | 307 | } | |
| 316 | 308 | ||
| @@ -318,8 +310,6 @@ var xMessageDialogChooseFinish func(uintptr, uintptr) string | |||
| 318 | 310 | ||
| 319 | 311 | // Finishes the [method@MessageDialog.choose] call and returns the response ID. | |
| 320 | 312 | func (x *MessageDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | |
| 321 | - | core.LazyRegister(&xMessageDialogChooseFinish, "ADW", "adw_message_dialog_choose_finish", false) | |
| 322 | - | ||
| 323 | 313 | cret := xMessageDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | |
| 324 | 314 | return cret | |
| 325 | 315 | } | |
| @@ -330,8 +320,6 @@ var xMessageDialogFormatBody func(uintptr, string, ...interface{}) | |||
| 330 | 320 | // | |
| 331 | 321 | // See [property@MessageDialog:body]. | |
| 332 | 322 | func (x *MessageDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | |
| 333 | - | core.LazyRegister(&xMessageDialogFormatBody, "ADW", "adw_message_dialog_format_body", false) | |
| 334 | - | ||
| 335 | 323 | xMessageDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | |
| 336 | 324 | } | |
| 337 | 325 | ||
| @@ -347,8 +335,6 @@ var xMessageDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||
| 347 | 335 | // | |
| 348 | 336 | // See [property@MessageDialog:body]. | |
| 349 | 337 | func (x *MessageDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | |
| 350 | - | core.LazyRegister(&xMessageDialogFormatBodyMarkup, "ADW", "adw_message_dialog_format_body_markup", false) | |
| 351 | - | ||
| 352 | 338 | xMessageDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 353 | 339 | } | |
| 354 | 340 | ||
| @@ -358,8 +344,6 @@ var xMessageDialogFormatHeading func(uintptr, string, ...interface{}) | |||
| 358 | 344 | // | |
| 359 | 345 | // See [property@MessageDialog:heading]. | |
| 360 | 346 | func (x *MessageDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | |
| 361 | - | core.LazyRegister(&xMessageDialogFormatHeading, "ADW", "adw_message_dialog_format_heading", false) | |
| 362 | - | ||
| 363 | 347 | xMessageDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | |
| 364 | 348 | } | |
| 365 | 349 | ||
| @@ -375,8 +359,6 @@ var xMessageDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||
| 375 | 359 | // | |
| 376 | 360 | // See [property@MessageDialog:heading]. | |
| 377 | 361 | func (x *MessageDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | |
| 378 | - | core.LazyRegister(&xMessageDialogFormatHeadingMarkup, "ADW", "adw_message_dialog_format_heading_markup", false) | |
| 379 | - | ||
| 380 | 362 | xMessageDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | |
| 381 | 363 | } | |
| 382 | 364 | ||
| @@ -384,8 +366,6 @@ var xMessageDialogGetBody func(uintptr) string | |||
| 384 | 366 | ||
| 385 | 367 | // Gets the body text of @self. | |
| 386 | 368 | func (x *MessageDialog) GetBody() string { | |
| 387 | - | core.LazyRegister(&xMessageDialogGetBody, "ADW", "adw_message_dialog_get_body", false) | |
| 388 | - | ||
| 389 | 369 | cret := xMessageDialogGetBody(x.GoPointer()) | |
| 390 | 370 | return cret | |
| 391 | 371 | } | |
| @@ -394,8 +374,6 @@ var xMessageDialogGetBodyUseMarkup func(uintptr) bool | |||
| 394 | 374 | ||
| 395 | 375 | // Gets whether the body text of @self includes Pango markup. | |
| 396 | 376 | func (x *MessageDialog) GetBodyUseMarkup() bool { | |
| 397 | - | core.LazyRegister(&xMessageDialogGetBodyUseMarkup, "ADW", "adw_message_dialog_get_body_use_markup", false) | |
| 398 | - | ||
| 399 | 377 | cret := xMessageDialogGetBodyUseMarkup(x.GoPointer()) | |
| 400 | 378 | return cret | |
| 401 | 379 | } | |
| @@ -404,8 +382,6 @@ var xMessageDialogGetCloseResponse func(uintptr) string | |||
| 404 | 382 | ||
| 405 | 383 | // Gets the ID of the close response of @self. | |
| 406 | 384 | func (x *MessageDialog) GetCloseResponse() string { | |
| 407 | - | core.LazyRegister(&xMessageDialogGetCloseResponse, "ADW", "adw_message_dialog_get_close_response", false) | |
| 408 | - | ||
| 409 | 385 | cret := xMessageDialogGetCloseResponse(x.GoPointer()) | |
| 410 | 386 | return cret | |
| 411 | 387 | } | |
| @@ -414,8 +390,6 @@ var xMessageDialogGetDefaultResponse func(uintptr) string | |||
| 414 | 390 | ||
| 415 | 391 | // Gets the ID of the default response of @self. | |
| 416 | 392 | func (x *MessageDialog) GetDefaultResponse() string { | |
| 417 | - | core.LazyRegister(&xMessageDialogGetDefaultResponse, "ADW", "adw_message_dialog_get_default_response", false) | |
| 418 | - | ||
| 419 | 393 | cret := xMessageDialogGetDefaultResponse(x.GoPointer()) | |
| 420 | 394 | return cret | |
| 421 | 395 | } | |
| @@ -424,7 +398,6 @@ var xMessageDialogGetExtraChild func(uintptr) uintptr | |||
| 424 | 398 | ||
| 425 | 399 | // Gets the child widget of @self. | |
| 426 | 400 | func (x *MessageDialog) GetExtraChild() *gtk.Widget { | |
| 427 | - | core.LazyRegister(&xMessageDialogGetExtraChild, "ADW", "adw_message_dialog_get_extra_child", false) | |
| 428 | 401 | var cls *gtk.Widget | |
| 429 | 402 | ||
| 430 | 403 | cret := xMessageDialogGetExtraChild(x.GoPointer()) | |
| @@ -442,8 +415,6 @@ var xMessageDialogGetHeading func(uintptr) string | |||
| 442 | 415 | ||
| 443 | 416 | // Gets the heading of @self. | |
| 444 | 417 | func (x *MessageDialog) GetHeading() string { | |
| 445 | - | core.LazyRegister(&xMessageDialogGetHeading, "ADW", "adw_message_dialog_get_heading", false) | |
| 446 | - | ||
| 447 | 418 | cret := xMessageDialogGetHeading(x.GoPointer()) | |
| 448 | 419 | return cret | |
| 449 | 420 | } | |
| @@ -452,8 +423,6 @@ var xMessageDialogGetHeadingUseMarkup func(uintptr) bool | |||
| 452 | 423 | ||
| 453 | 424 | // Gets whether the heading of @self includes Pango markup. | |
| 454 | 425 | func (x *MessageDialog) GetHeadingUseMarkup() bool { | |
| 455 | - | core.LazyRegister(&xMessageDialogGetHeadingUseMarkup, "ADW", "adw_message_dialog_get_heading_use_markup", false) | |
| 456 | - | ||
| 457 | 426 | cret := xMessageDialogGetHeadingUseMarkup(x.GoPointer()) | |
| 458 | 427 | return cret | |
| 459 | 428 | } | |
| @@ -464,8 +433,6 @@ var xMessageDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||
| 464 | 433 | // | |
| 465 | 434 | // See [method@MessageDialog.set_response_appearance]. | |
| 466 | 435 | func (x *MessageDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | |
| 467 | - | core.LazyRegister(&xMessageDialogGetResponseAppearance, "ADW", "adw_message_dialog_get_response_appearance", false) | |
| 468 | - | ||
| 469 | 436 | cret := xMessageDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | |
| 470 | 437 | return cret | |
| 471 | 438 | } | |
| @@ -476,8 +443,6 @@ var xMessageDialogGetResponseEnabled func(uintptr, string) bool | |||
| 476 | 443 | // | |
| 477 | 444 | // See [method@MessageDialog.set_response_enabled]. | |
| 478 | 445 | func (x *MessageDialog) GetResponseEnabled(ResponseVar string) bool { | |
| 479 | - | core.LazyRegister(&xMessageDialogGetResponseEnabled, "ADW", "adw_message_dialog_get_response_enabled", false) | |
| 480 | - | ||
| 481 | 446 | cret := xMessageDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | |
| 482 | 447 | return cret | |
| 483 | 448 | } | |
| @@ -488,8 +453,6 @@ var xMessageDialogGetResponseLabel func(uintptr, string) string | |||
| 488 | 453 | // | |
| 489 | 454 | // See [method@MessageDialog.set_response_label]. | |
| 490 | 455 | func (x *MessageDialog) GetResponseLabel(ResponseVar string) string { | |
| 491 | - | core.LazyRegister(&xMessageDialogGetResponseLabel, "ADW", "adw_message_dialog_get_response_label", false) | |
| 492 | - | ||
| 493 | 456 | cret := xMessageDialogGetResponseLabel(x.GoPointer(), ResponseVar) | |
| 494 | 457 | return cret | |
| 495 | 458 | } | |
| @@ -498,8 +461,6 @@ var xMessageDialogHasResponse func(uintptr, string) bool | |||
| 498 | 461 | ||
| 499 | 462 | // Gets whether @self has a response with the ID @response. | |
| 500 | 463 | func (x *MessageDialog) HasResponse(ResponseVar string) bool { | |
| 501 | - | core.LazyRegister(&xMessageDialogHasResponse, "ADW", "adw_message_dialog_has_response", false) | |
| 502 | - | ||
| 503 | 464 | cret := xMessageDialogHasResponse(x.GoPointer(), ResponseVar) | |
| 504 | 465 | return cret | |
| 505 | 466 | } | |
| @@ -508,8 +469,6 @@ var xMessageDialogRemoveResponse func(uintptr, string) | |||
| 508 | 469 | ||
| 509 | 470 | // Removes a response from @self. | |
| 510 | 471 | func (x *MessageDialog) RemoveResponse(IdVar string) { | |
| 511 | - | core.LazyRegister(&xMessageDialogRemoveResponse, "ADW", "adw_message_dialog_remove_response", false) | |
| 512 | - | ||
| 513 | 472 | xMessageDialogRemoveResponse(x.GoPointer(), IdVar) | |
| 514 | 473 | } | |
| 515 | 474 | ||
| @@ -519,8 +478,6 @@ var xMessageDialogResponse func(uintptr, string) | |||
| 519 | 478 | // | |
| 520 | 479 | // Used to indicate that the user has responded to the dialog in some way. | |
| 521 | 480 | func (x *MessageDialog) Response(ResponseVar string) { | |
| 522 | - | core.LazyRegister(&xMessageDialogResponse, "ADW", "adw_message_dialog_response", false) | |
| 523 | - | ||
| 524 | 481 | xMessageDialogResponse(x.GoPointer(), ResponseVar) | |
| 525 | 482 | } | |
| 526 | 483 | ||
| @@ -528,8 +485,6 @@ var xMessageDialogSetBody func(uintptr, string) | |||
| 528 | 485 | ||
| 529 | 486 | // Sets the body text of @self. | |
| 530 | 487 | func (x *MessageDialog) SetBody(BodyVar string) { | |
| 531 | - | core.LazyRegister(&xMessageDialogSetBody, "ADW", "adw_message_dialog_set_body", false) | |
| 532 | - | ||
| 533 | 488 | xMessageDialogSetBody(x.GoPointer(), BodyVar) | |
| 534 | 489 | } | |
| 535 | 490 | ||
| @@ -539,8 +494,6 @@ var xMessageDialogSetBodyUseMarkup func(uintptr, bool) | |||
| 539 | 494 | // | |
| 540 | 495 | // See [func@Pango.parse_markup]. | |
| 541 | 496 | func (x *MessageDialog) SetBodyUseMarkup(UseMarkupVar bool) { | |
| 542 | - | core.LazyRegister(&xMessageDialogSetBodyUseMarkup, "ADW", "adw_message_dialog_set_body_use_markup", false) | |
| 543 | - | ||
| 544 | 497 | xMessageDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 545 | 498 | } | |
| 546 | 499 | ||
| @@ -555,8 +508,6 @@ var xMessageDialogSetCloseResponse func(uintptr, string) | |||
| 555 | 508 | // | |
| 556 | 509 | // The default close response is `close`. | |
| 557 | 510 | func (x *MessageDialog) SetCloseResponse(ResponseVar string) { | |
| 558 | - | core.LazyRegister(&xMessageDialogSetCloseResponse, "ADW", "adw_message_dialog_set_close_response", false) | |
| 559 | - | ||
| 560 | 511 | xMessageDialogSetCloseResponse(x.GoPointer(), ResponseVar) | |
| 561 | 512 | } | |
| 562 | 513 | ||
| @@ -572,8 +523,6 @@ var xMessageDialogSetDefaultResponse func(uintptr, uintptr) | |||
| 572 | 523 | // | |
| 573 | 524 | // See [property@Gtk.Window:default-widget]. | |
| 574 | 525 | func (x *MessageDialog) SetDefaultResponse(ResponseVar *string) { | |
| 575 | - | core.LazyRegister(&xMessageDialogSetDefaultResponse, "ADW", "adw_message_dialog_set_default_response", false) | |
| 576 | - | ||
| 577 | 526 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | |
| 578 | 527 | defer core.GFreeNullable(ResponseVarPtr) | |
| 579 | 528 | ||
| @@ -586,8 +535,6 @@ var xMessageDialogSetExtraChild func(uintptr, uintptr) | |||
| 586 | 535 | // | |
| 587 | 536 | // The child widget is displayed below the heading and body. | |
| 588 | 537 | func (x *MessageDialog) SetExtraChild(ChildVar *gtk.Widget) { | |
| 589 | - | core.LazyRegister(&xMessageDialogSetExtraChild, "ADW", "adw_message_dialog_set_extra_child", false) | |
| 590 | - | ||
| 591 | 538 | xMessageDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 592 | 539 | } | |
| 593 | 540 | ||
| @@ -595,8 +542,6 @@ var xMessageDialogSetHeading func(uintptr, uintptr) | |||
| 595 | 542 | ||
| 596 | 543 | // Sets the heading of @self. | |
| 597 | 544 | func (x *MessageDialog) SetHeading(HeadingVar *string) { | |
| 598 | - | core.LazyRegister(&xMessageDialogSetHeading, "ADW", "adw_message_dialog_set_heading", false) | |
| 599 | - | ||
| 600 | 545 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 601 | 546 | defer core.GFreeNullable(HeadingVarPtr) | |
| 602 | 547 | ||
| @@ -609,8 +554,6 @@ var xMessageDialogSetHeadingUseMarkup func(uintptr, bool) | |||
| 609 | 554 | // | |
| 610 | 555 | // See [func@Pango.parse_markup]. | |
| 611 | 556 | func (x *MessageDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | |
| 612 | - | core.LazyRegister(&xMessageDialogSetHeadingUseMarkup, "ADW", "adw_message_dialog_set_heading_use_markup", false) | |
| 613 | - | ||
| 614 | 557 | xMessageDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | |
| 615 | 558 | } | |
| 616 | 559 | ||
| @@ -637,8 +580,6 @@ var xMessageDialogSetResponseAppearance func(uintptr, string, ResponseAppearance | |||
| 637 | 580 | // | |
| 638 | 581 | // Negative responses like Cancel or Close should use the default appearance. | |
| 639 | 582 | func (x *MessageDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | |
| 640 | - | core.LazyRegister(&xMessageDialogSetResponseAppearance, "ADW", "adw_message_dialog_set_response_appearance", false) | |
| 641 | - | ||
| 642 | 583 | xMessageDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | |
| 643 | 584 | } | |
| 644 | 585 | ||
| @@ -655,8 +596,6 @@ var xMessageDialogSetResponseEnabled func(uintptr, string, bool) | |||
| 655 | 596 | // | |
| 656 | 597 | // Responses are enabled by default. | |
| 657 | 598 | func (x *MessageDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | |
| 658 | - | core.LazyRegister(&xMessageDialogSetResponseEnabled, "ADW", "adw_message_dialog_set_response_enabled", false) | |
| 659 | - | ||
| 660 | 599 | xMessageDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | |
| 661 | 600 | } | |
| 662 | 601 | ||
| @@ -667,8 +606,6 @@ var xMessageDialogSetResponseLabel func(uintptr, string, string) | |||
| 667 | 606 | // Labels are displayed on the dialog buttons. An embedded underline in @label | |
| 668 | 607 | // indicates a mnemonic. | |
| 669 | 608 | func (x *MessageDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | |
| 670 | - | core.LazyRegister(&xMessageDialogSetResponseLabel, "ADW", "adw_message_dialog_set_response_label", false) | |
| 671 | - | ||
| 672 | 609 | xMessageDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | |
| 673 | 610 | } | |
| 674 | 611 | ||
| @@ -1215,4 +1152,48 @@ func (x *MessageDialog) SetFocus(FocusVar *gtk.Widget) { | |||
| 1215 | 1152 | func init() { | |
| 1216 | 1153 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1217 | 1154 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 1155 | + | var libs []uintptr | |
| 1156 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 1157 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1158 | + | if err != nil { | |
| 1159 | + | panic(err) | |
| 1160 | + | } | |
| 1161 | + | libs = append(libs, lib) | |
| 1162 | + | } | |
| 1163 | + | ||
| 1164 | + | core.PuregoSafeRegister(&xMessageDialogGLibType, libs, "adw_message_dialog_get_type") | |
| 1165 | + | ||
| 1166 | + | core.PuregoSafeRegister(&xNewMessageDialog, libs, "adw_message_dialog_new") | |
| 1167 | + | ||
| 1168 | + | core.PuregoSafeRegister(&xMessageDialogAddResponse, libs, "adw_message_dialog_add_response") | |
| 1169 | + | core.PuregoSafeRegister(&xMessageDialogAddResponses, libs, "adw_message_dialog_add_responses") | |
| 1170 | + | core.PuregoSafeRegister(&xMessageDialogChoose, libs, "adw_message_dialog_choose") | |
| 1171 | + | core.PuregoSafeRegister(&xMessageDialogChooseFinish, libs, "adw_message_dialog_choose_finish") | |
| 1172 | + | core.PuregoSafeRegister(&xMessageDialogFormatBody, libs, "adw_message_dialog_format_body") | |
| 1173 | + | core.PuregoSafeRegister(&xMessageDialogFormatBodyMarkup, libs, "adw_message_dialog_format_body_markup") | |
| 1174 | + | core.PuregoSafeRegister(&xMessageDialogFormatHeading, libs, "adw_message_dialog_format_heading") | |
| 1175 | + | core.PuregoSafeRegister(&xMessageDialogFormatHeadingMarkup, libs, "adw_message_dialog_format_heading_markup") | |
| 1176 | + | core.PuregoSafeRegister(&xMessageDialogGetBody, libs, "adw_message_dialog_get_body") | |
| 1177 | + | core.PuregoSafeRegister(&xMessageDialogGetBodyUseMarkup, libs, "adw_message_dialog_get_body_use_markup") | |
| 1178 | + | core.PuregoSafeRegister(&xMessageDialogGetCloseResponse, libs, "adw_message_dialog_get_close_response") | |
| 1179 | + | core.PuregoSafeRegister(&xMessageDialogGetDefaultResponse, libs, "adw_message_dialog_get_default_response") | |
| 1180 | + | core.PuregoSafeRegister(&xMessageDialogGetExtraChild, libs, "adw_message_dialog_get_extra_child") | |
| 1181 | + | core.PuregoSafeRegister(&xMessageDialogGetHeading, libs, "adw_message_dialog_get_heading") | |
| 1182 | + | core.PuregoSafeRegister(&xMessageDialogGetHeadingUseMarkup, libs, "adw_message_dialog_get_heading_use_markup") | |
| 1183 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseAppearance, libs, "adw_message_dialog_get_response_appearance") | |
| 1184 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseEnabled, libs, "adw_message_dialog_get_response_enabled") | |
| 1185 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseLabel, libs, "adw_message_dialog_get_response_label") | |
| 1186 | + | core.PuregoSafeRegister(&xMessageDialogHasResponse, libs, "adw_message_dialog_has_response") | |
| 1187 | + | core.PuregoSafeRegister(&xMessageDialogRemoveResponse, libs, "adw_message_dialog_remove_response") | |
| 1188 | + | core.PuregoSafeRegister(&xMessageDialogResponse, libs, "adw_message_dialog_response") | |
| 1189 | + | core.PuregoSafeRegister(&xMessageDialogSetBody, libs, "adw_message_dialog_set_body") | |
| 1190 | + | core.PuregoSafeRegister(&xMessageDialogSetBodyUseMarkup, libs, "adw_message_dialog_set_body_use_markup") | |
| 1191 | + | core.PuregoSafeRegister(&xMessageDialogSetCloseResponse, libs, "adw_message_dialog_set_close_response") | |
| 1192 | + | core.PuregoSafeRegister(&xMessageDialogSetDefaultResponse, libs, "adw_message_dialog_set_default_response") | |
| 1193 | + | core.PuregoSafeRegister(&xMessageDialogSetExtraChild, libs, "adw_message_dialog_set_extra_child") | |
| 1194 | + | core.PuregoSafeRegister(&xMessageDialogSetHeading, libs, "adw_message_dialog_set_heading") | |
| 1195 | + | core.PuregoSafeRegister(&xMessageDialogSetHeadingUseMarkup, libs, "adw_message_dialog_set_heading_use_markup") | |
| 1196 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseAppearance, libs, "adw_message_dialog_set_response_appearance") | |
| 1197 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseEnabled, libs, "adw_message_dialog_set_response_enabled") | |
| 1198 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseLabel, libs, "adw_message_dialog_set_response_label") | |
| 1218 | 1199 | } | |
| @@ -207,7 +207,6 @@ type MessageDialog struct { | |||||
| 207 | var xMessageDialogGLibType func() types.GType | 207 | var xMessageDialogGLibType func() types.GType | ||
| 208 | 208 | ||||
| 209 | func MessageDialogGLibType() types.GType { | 209 | func MessageDialogGLibType() types.GType { | ||
| 210 | - | core.LazyRegister(&xMessageDialogGLibType, "ADW", "adw_message_dialog_get_type", false) | |||
| 211 | return xMessageDialogGLibType() | 210 | return xMessageDialogGLibType() | ||
| 212 | } | 211 | } | ||
| 213 | 212 | ||||
| @@ -236,7 +235,6 @@ var xNewMessageDialog func(uintptr, uintptr, uintptr) uintptr | |||||
| 236 | // | 235 | // | ||
| 237 | // ``` | 236 | // ``` | ||
| 238 | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar *string, BodyVar *string) *MessageDialog { | 237 | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar *string, BodyVar *string) *MessageDialog { | ||
| 239 | - | core.LazyRegister(&xNewMessageDialog, "ADW", "adw_message_dialog_new", false) | |||
| 240 | var cls *MessageDialog | 238 | var cls *MessageDialog | ||
| 241 | 239 | ||||
| 242 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 240 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| @@ -275,8 +273,6 @@ var xMessageDialogAddResponse func(uintptr, string, string) | |||||
| 275 | // [method@MessageDialog.set_response_appearance] can be used to customize the | 273 | // [method@MessageDialog.set_response_appearance] can be used to customize the | ||
| 276 | // responses further. | 274 | // responses further. | ||
| 277 | func (x *MessageDialog) AddResponse(IdVar string, LabelVar string) { | 275 | func (x *MessageDialog) AddResponse(IdVar string, LabelVar string) { | ||
| 278 | - | core.LazyRegister(&xMessageDialogAddResponse, "ADW", "adw_message_dialog_add_response", false) | |||
| 279 | - | ||||
| 280 | xMessageDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | 276 | xMessageDialogAddResponse(x.GoPointer(), IdVar, LabelVar) | ||
| 281 | } | 277 | } | ||
| 282 | 278 | ||||
| @@ -300,8 +296,6 @@ var xMessageDialogAddResponses func(uintptr, string, ...interface{}) | |||||
| 300 | // | 296 | // | ||
| 301 | // ``` | 297 | // ``` | ||
| 302 | func (x *MessageDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | 298 | func (x *MessageDialog) AddResponses(FirstIdVar string, varArgs ...interface{}) { | ||
| 303 | - | core.LazyRegister(&xMessageDialogAddResponses, "ADW", "adw_message_dialog_add_responses", false) | |||
| 304 | - | ||||
| 305 | xMessageDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | 299 | xMessageDialogAddResponses(x.GoPointer(), FirstIdVar, varArgs...) | ||
| 306 | } | 300 | } | ||
| 307 | 301 | ||||
| @@ -309,8 +303,6 @@ var xMessageDialogChoose func(uintptr, uintptr, uintptr, uintptr) | |||||
| 309 | 303 | ||||
| 310 | // This function shows @self to the user. | 304 | // This function shows @self to the user. | ||
| 311 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 305 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 312 | - | core.LazyRegister(&xMessageDialogChoose, "ADW", "adw_message_dialog_choose", false) | |||
| 313 | - | ||||
| 314 | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 306 | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 315 | } | 307 | } | ||
| 316 | 308 | ||||
| @@ -318,8 +310,6 @@ var xMessageDialogChooseFinish func(uintptr, uintptr) string | |||||
| 318 | 310 | ||||
| 319 | // Finishes the [method@MessageDialog.choose] call and returns the response ID. | 311 | // Finishes the [method@MessageDialog.choose] call and returns the response ID. | ||
| 320 | func (x *MessageDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | 312 | func (x *MessageDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | ||
| 321 | - | core.LazyRegister(&xMessageDialogChooseFinish, "ADW", "adw_message_dialog_choose_finish", false) | |||
| 322 | - | ||||
| 323 | cret := xMessageDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | 313 | cret := xMessageDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | ||
| 324 | return cret | 314 | return cret | ||
| 325 | } | 315 | } | ||
| @@ -330,8 +320,6 @@ var xMessageDialogFormatBody func(uintptr, string, ...interface{}) | |||||
| 330 | // | 320 | // | ||
| 331 | // See [property@MessageDialog:body]. | 321 | // See [property@MessageDialog:body]. | ||
| 332 | func (x *MessageDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | 322 | func (x *MessageDialog) FormatBody(FormatVar string, varArgs ...interface{}) { | ||
| 333 | - | core.LazyRegister(&xMessageDialogFormatBody, "ADW", "adw_message_dialog_format_body", false) | |||
| 334 | - | ||||
| 335 | xMessageDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | 323 | xMessageDialogFormatBody(x.GoPointer(), FormatVar, varArgs...) | ||
| 336 | } | 324 | } | ||
| 337 | 325 | ||||
| @@ -347,8 +335,6 @@ var xMessageDialogFormatBodyMarkup func(uintptr, string, ...interface{}) | |||||
| 347 | // | 335 | // | ||
| 348 | // See [property@MessageDialog:body]. | 336 | // See [property@MessageDialog:body]. | ||
| 349 | func (x *MessageDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | 337 | func (x *MessageDialog) FormatBodyMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 350 | - | core.LazyRegister(&xMessageDialogFormatBodyMarkup, "ADW", "adw_message_dialog_format_body_markup", false) | |||
| 351 | - | ||||
| 352 | xMessageDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | 338 | xMessageDialogFormatBodyMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 353 | } | 339 | } | ||
| 354 | 340 | ||||
| @@ -358,8 +344,6 @@ var xMessageDialogFormatHeading func(uintptr, string, ...interface{}) | |||||
| 358 | // | 344 | // | ||
| 359 | // See [property@MessageDialog:heading]. | 345 | // See [property@MessageDialog:heading]. | ||
| 360 | func (x *MessageDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | 346 | func (x *MessageDialog) FormatHeading(FormatVar string, varArgs ...interface{}) { | ||
| 361 | - | core.LazyRegister(&xMessageDialogFormatHeading, "ADW", "adw_message_dialog_format_heading", false) | |||
| 362 | - | ||||
| 363 | xMessageDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | 347 | xMessageDialogFormatHeading(x.GoPointer(), FormatVar, varArgs...) | ||
| 364 | } | 348 | } | ||
| 365 | 349 | ||||
| @@ -375,8 +359,6 @@ var xMessageDialogFormatHeadingMarkup func(uintptr, string, ...interface{}) | |||||
| 375 | // | 359 | // | ||
| 376 | // See [property@MessageDialog:heading]. | 360 | // See [property@MessageDialog:heading]. | ||
| 377 | func (x *MessageDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | 361 | func (x *MessageDialog) FormatHeadingMarkup(FormatVar string, varArgs ...interface{}) { | ||
| 378 | - | core.LazyRegister(&xMessageDialogFormatHeadingMarkup, "ADW", "adw_message_dialog_format_heading_markup", false) | |||
| 379 | - | ||||
| 380 | xMessageDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | 362 | xMessageDialogFormatHeadingMarkup(x.GoPointer(), FormatVar, varArgs...) | ||
| 381 | } | 363 | } | ||
| 382 | 364 | ||||
| @@ -384,8 +366,6 @@ var xMessageDialogGetBody func(uintptr) string | |||||
| 384 | 366 | ||||
| 385 | // Gets the body text of @self. | 367 | // Gets the body text of @self. | ||
| 386 | func (x *MessageDialog) GetBody() string { | 368 | func (x *MessageDialog) GetBody() string { | ||
| 387 | - | core.LazyRegister(&xMessageDialogGetBody, "ADW", "adw_message_dialog_get_body", false) | |||
| 388 | - | ||||
| 389 | cret := xMessageDialogGetBody(x.GoPointer()) | 369 | cret := xMessageDialogGetBody(x.GoPointer()) | ||
| 390 | return cret | 370 | return cret | ||
| 391 | } | 371 | } | ||
| @@ -394,8 +374,6 @@ var xMessageDialogGetBodyUseMarkup func(uintptr) bool | |||||
| 394 | 374 | ||||
| 395 | // Gets whether the body text of @self includes Pango markup. | 375 | // Gets whether the body text of @self includes Pango markup. | ||
| 396 | func (x *MessageDialog) GetBodyUseMarkup() bool { | 376 | func (x *MessageDialog) GetBodyUseMarkup() bool { | ||
| 397 | - | core.LazyRegister(&xMessageDialogGetBodyUseMarkup, "ADW", "adw_message_dialog_get_body_use_markup", false) | |||
| 398 | - | ||||
| 399 | cret := xMessageDialogGetBodyUseMarkup(x.GoPointer()) | 377 | cret := xMessageDialogGetBodyUseMarkup(x.GoPointer()) | ||
| 400 | return cret | 378 | return cret | ||
| 401 | } | 379 | } | ||
| @@ -404,8 +382,6 @@ var xMessageDialogGetCloseResponse func(uintptr) string | |||||
| 404 | 382 | ||||
| 405 | // Gets the ID of the close response of @self. | 383 | // Gets the ID of the close response of @self. | ||
| 406 | func (x *MessageDialog) GetCloseResponse() string { | 384 | func (x *MessageDialog) GetCloseResponse() string { | ||
| 407 | - | core.LazyRegister(&xMessageDialogGetCloseResponse, "ADW", "adw_message_dialog_get_close_response", false) | |||
| 408 | - | ||||
| 409 | cret := xMessageDialogGetCloseResponse(x.GoPointer()) | 385 | cret := xMessageDialogGetCloseResponse(x.GoPointer()) | ||
| 410 | return cret | 386 | return cret | ||
| 411 | } | 387 | } | ||
| @@ -414,8 +390,6 @@ var xMessageDialogGetDefaultResponse func(uintptr) string | |||||
| 414 | 390 | ||||
| 415 | // Gets the ID of the default response of @self. | 391 | // Gets the ID of the default response of @self. | ||
| 416 | func (x *MessageDialog) GetDefaultResponse() string { | 392 | func (x *MessageDialog) GetDefaultResponse() string { | ||
| 417 | - | core.LazyRegister(&xMessageDialogGetDefaultResponse, "ADW", "adw_message_dialog_get_default_response", false) | |||
| 418 | - | ||||
| 419 | cret := xMessageDialogGetDefaultResponse(x.GoPointer()) | 393 | cret := xMessageDialogGetDefaultResponse(x.GoPointer()) | ||
| 420 | return cret | 394 | return cret | ||
| 421 | } | 395 | } | ||
| @@ -424,7 +398,6 @@ var xMessageDialogGetExtraChild func(uintptr) uintptr | |||||
| 424 | 398 | ||||
| 425 | // Gets the child widget of @self. | 399 | // Gets the child widget of @self. | ||
| 426 | func (x *MessageDialog) GetExtraChild() *gtk.Widget { | 400 | func (x *MessageDialog) GetExtraChild() *gtk.Widget { | ||
| 427 | - | core.LazyRegister(&xMessageDialogGetExtraChild, "ADW", "adw_message_dialog_get_extra_child", false) | |||
| 428 | var cls *gtk.Widget | 401 | var cls *gtk.Widget | ||
| 429 | 402 | ||||
| 430 | cret := xMessageDialogGetExtraChild(x.GoPointer()) | 403 | cret := xMessageDialogGetExtraChild(x.GoPointer()) | ||
| @@ -442,8 +415,6 @@ var xMessageDialogGetHeading func(uintptr) string | |||||
| 442 | 415 | ||||
| 443 | // Gets the heading of @self. | 416 | // Gets the heading of @self. | ||
| 444 | func (x *MessageDialog) GetHeading() string { | 417 | func (x *MessageDialog) GetHeading() string { | ||
| 445 | - | core.LazyRegister(&xMessageDialogGetHeading, "ADW", "adw_message_dialog_get_heading", false) | |||
| 446 | - | ||||
| 447 | cret := xMessageDialogGetHeading(x.GoPointer()) | 418 | cret := xMessageDialogGetHeading(x.GoPointer()) | ||
| 448 | return cret | 419 | return cret | ||
| 449 | } | 420 | } | ||
| @@ -452,8 +423,6 @@ var xMessageDialogGetHeadingUseMarkup func(uintptr) bool | |||||
| 452 | 423 | ||||
| 453 | // Gets whether the heading of @self includes Pango markup. | 424 | // Gets whether the heading of @self includes Pango markup. | ||
| 454 | func (x *MessageDialog) GetHeadingUseMarkup() bool { | 425 | func (x *MessageDialog) GetHeadingUseMarkup() bool { | ||
| 455 | - | core.LazyRegister(&xMessageDialogGetHeadingUseMarkup, "ADW", "adw_message_dialog_get_heading_use_markup", false) | |||
| 456 | - | ||||
| 457 | cret := xMessageDialogGetHeadingUseMarkup(x.GoPointer()) | 426 | cret := xMessageDialogGetHeadingUseMarkup(x.GoPointer()) | ||
| 458 | return cret | 427 | return cret | ||
| 459 | } | 428 | } | ||
| @@ -464,8 +433,6 @@ var xMessageDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||||
| 464 | // | 433 | // | ||
| 465 | // See [method@MessageDialog.set_response_appearance]. | 434 | // See [method@MessageDialog.set_response_appearance]. | ||
| 466 | func (x *MessageDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | 435 | func (x *MessageDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | ||
| 467 | - | core.LazyRegister(&xMessageDialogGetResponseAppearance, "ADW", "adw_message_dialog_get_response_appearance", false) | |||
| 468 | - | ||||
| 469 | cret := xMessageDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | 436 | cret := xMessageDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | ||
| 470 | return cret | 437 | return cret | ||
| 471 | } | 438 | } | ||
| @@ -476,8 +443,6 @@ var xMessageDialogGetResponseEnabled func(uintptr, string) bool | |||||
| 476 | // | 443 | // | ||
| 477 | // See [method@MessageDialog.set_response_enabled]. | 444 | // See [method@MessageDialog.set_response_enabled]. | ||
| 478 | func (x *MessageDialog) GetResponseEnabled(ResponseVar string) bool { | 445 | func (x *MessageDialog) GetResponseEnabled(ResponseVar string) bool { | ||
| 479 | - | core.LazyRegister(&xMessageDialogGetResponseEnabled, "ADW", "adw_message_dialog_get_response_enabled", false) | |||
| 480 | - | ||||
| 481 | cret := xMessageDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | 446 | cret := xMessageDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | ||
| 482 | return cret | 447 | return cret | ||
| 483 | } | 448 | } | ||
| @@ -488,8 +453,6 @@ var xMessageDialogGetResponseLabel func(uintptr, string) string | |||||
| 488 | // | 453 | // | ||
| 489 | // See [method@MessageDialog.set_response_label]. | 454 | // See [method@MessageDialog.set_response_label]. | ||
| 490 | func (x *MessageDialog) GetResponseLabel(ResponseVar string) string { | 455 | func (x *MessageDialog) GetResponseLabel(ResponseVar string) string { | ||
| 491 | - | core.LazyRegister(&xMessageDialogGetResponseLabel, "ADW", "adw_message_dialog_get_response_label", false) | |||
| 492 | - | ||||
| 493 | cret := xMessageDialogGetResponseLabel(x.GoPointer(), ResponseVar) | 456 | cret := xMessageDialogGetResponseLabel(x.GoPointer(), ResponseVar) | ||
| 494 | return cret | 457 | return cret | ||
| 495 | } | 458 | } | ||
| @@ -498,8 +461,6 @@ var xMessageDialogHasResponse func(uintptr, string) bool | |||||
| 498 | 461 | ||||
| 499 | // Gets whether @self has a response with the ID @response. | 462 | // Gets whether @self has a response with the ID @response. | ||
| 500 | func (x *MessageDialog) HasResponse(ResponseVar string) bool { | 463 | func (x *MessageDialog) HasResponse(ResponseVar string) bool { | ||
| 501 | - | core.LazyRegister(&xMessageDialogHasResponse, "ADW", "adw_message_dialog_has_response", false) | |||
| 502 | - | ||||
| 503 | cret := xMessageDialogHasResponse(x.GoPointer(), ResponseVar) | 464 | cret := xMessageDialogHasResponse(x.GoPointer(), ResponseVar) | ||
| 504 | return cret | 465 | return cret | ||
| 505 | } | 466 | } | ||
| @@ -508,8 +469,6 @@ var xMessageDialogRemoveResponse func(uintptr, string) | |||||
| 508 | 469 | ||||
| 509 | // Removes a response from @self. | 470 | // Removes a response from @self. | ||
| 510 | func (x *MessageDialog) RemoveResponse(IdVar string) { | 471 | func (x *MessageDialog) RemoveResponse(IdVar string) { | ||
| 511 | - | core.LazyRegister(&xMessageDialogRemoveResponse, "ADW", "adw_message_dialog_remove_response", false) | |||
| 512 | - | ||||
| 513 | xMessageDialogRemoveResponse(x.GoPointer(), IdVar) | 472 | xMessageDialogRemoveResponse(x.GoPointer(), IdVar) | ||
| 514 | } | 473 | } | ||
| 515 | 474 | ||||
| @@ -519,8 +478,6 @@ var xMessageDialogResponse func(uintptr, string) | |||||
| 519 | // | 478 | // | ||
| 520 | // Used to indicate that the user has responded to the dialog in some way. | 479 | // Used to indicate that the user has responded to the dialog in some way. | ||
| 521 | func (x *MessageDialog) Response(ResponseVar string) { | 480 | func (x *MessageDialog) Response(ResponseVar string) { | ||
| 522 | - | core.LazyRegister(&xMessageDialogResponse, "ADW", "adw_message_dialog_response", false) | |||
| 523 | - | ||||
| 524 | xMessageDialogResponse(x.GoPointer(), ResponseVar) | 481 | xMessageDialogResponse(x.GoPointer(), ResponseVar) | ||
| 525 | } | 482 | } | ||
| 526 | 483 | ||||
| @@ -528,8 +485,6 @@ var xMessageDialogSetBody func(uintptr, string) | |||||
| 528 | 485 | ||||
| 529 | // Sets the body text of @self. | 486 | // Sets the body text of @self. | ||
| 530 | func (x *MessageDialog) SetBody(BodyVar string) { | 487 | func (x *MessageDialog) SetBody(BodyVar string) { | ||
| 531 | - | core.LazyRegister(&xMessageDialogSetBody, "ADW", "adw_message_dialog_set_body", false) | |||
| 532 | - | ||||
| 533 | xMessageDialogSetBody(x.GoPointer(), BodyVar) | 488 | xMessageDialogSetBody(x.GoPointer(), BodyVar) | ||
| 534 | } | 489 | } | ||
| 535 | 490 | ||||
| @@ -539,8 +494,6 @@ var xMessageDialogSetBodyUseMarkup func(uintptr, bool) | |||||
| 539 | // | 494 | // | ||
| 540 | // See [func@Pango.parse_markup]. | 495 | // See [func@Pango.parse_markup]. | ||
| 541 | func (x *MessageDialog) SetBodyUseMarkup(UseMarkupVar bool) { | 496 | func (x *MessageDialog) SetBodyUseMarkup(UseMarkupVar bool) { | ||
| 542 | - | core.LazyRegister(&xMessageDialogSetBodyUseMarkup, "ADW", "adw_message_dialog_set_body_use_markup", false) | |||
| 543 | - | ||||
| 544 | xMessageDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | 497 | xMessageDialogSetBodyUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 545 | } | 498 | } | ||
| 546 | 499 | ||||
| @@ -555,8 +508,6 @@ var xMessageDialogSetCloseResponse func(uintptr, string) | |||||
| 555 | // | 508 | // | ||
| 556 | // The default close response is `close`. | 509 | // The default close response is `close`. | ||
| 557 | func (x *MessageDialog) SetCloseResponse(ResponseVar string) { | 510 | func (x *MessageDialog) SetCloseResponse(ResponseVar string) { | ||
| 558 | - | core.LazyRegister(&xMessageDialogSetCloseResponse, "ADW", "adw_message_dialog_set_close_response", false) | |||
| 559 | - | ||||
| 560 | xMessageDialogSetCloseResponse(x.GoPointer(), ResponseVar) | 511 | xMessageDialogSetCloseResponse(x.GoPointer(), ResponseVar) | ||
| 561 | } | 512 | } | ||
| 562 | 513 | ||||
| @@ -572,8 +523,6 @@ var xMessageDialogSetDefaultResponse func(uintptr, uintptr) | |||||
| 572 | // | 523 | // | ||
| 573 | // See [property@Gtk.Window:default-widget]. | 524 | // See [property@Gtk.Window:default-widget]. | ||
| 574 | func (x *MessageDialog) SetDefaultResponse(ResponseVar *string) { | 525 | func (x *MessageDialog) SetDefaultResponse(ResponseVar *string) { | ||
| 575 | - | core.LazyRegister(&xMessageDialogSetDefaultResponse, "ADW", "adw_message_dialog_set_default_response", false) | |||
| 576 | - | ||||
| 577 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | 526 | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | ||
| 578 | defer core.GFreeNullable(ResponseVarPtr) | 527 | defer core.GFreeNullable(ResponseVarPtr) | ||
| 579 | 528 | ||||
| @@ -586,8 +535,6 @@ var xMessageDialogSetExtraChild func(uintptr, uintptr) | |||||
| 586 | // | 535 | // | ||
| 587 | // The child widget is displayed below the heading and body. | 536 | // The child widget is displayed below the heading and body. | ||
| 588 | func (x *MessageDialog) SetExtraChild(ChildVar *gtk.Widget) { | 537 | func (x *MessageDialog) SetExtraChild(ChildVar *gtk.Widget) { | ||
| 589 | - | core.LazyRegister(&xMessageDialogSetExtraChild, "ADW", "adw_message_dialog_set_extra_child", false) | |||
| 590 | - | ||||
| 591 | xMessageDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | 538 | xMessageDialogSetExtraChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 592 | } | 539 | } | ||
| 593 | 540 | ||||
| @@ -595,8 +542,6 @@ var xMessageDialogSetHeading func(uintptr, uintptr) | |||||
| 595 | 542 | ||||
| 596 | // Sets the heading of @self. | 543 | // Sets the heading of @self. | ||
| 597 | func (x *MessageDialog) SetHeading(HeadingVar *string) { | 544 | func (x *MessageDialog) SetHeading(HeadingVar *string) { | ||
| 598 | - | core.LazyRegister(&xMessageDialogSetHeading, "ADW", "adw_message_dialog_set_heading", false) | |||
| 599 | - | ||||
| 600 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | 545 | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | ||
| 601 | defer core.GFreeNullable(HeadingVarPtr) | 546 | defer core.GFreeNullable(HeadingVarPtr) | ||
| 602 | 547 | ||||
| @@ -609,8 +554,6 @@ var xMessageDialogSetHeadingUseMarkup func(uintptr, bool) | |||||
| 609 | // | 554 | // | ||
| 610 | // See [func@Pango.parse_markup]. | 555 | // See [func@Pango.parse_markup]. | ||
| 611 | func (x *MessageDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | 556 | func (x *MessageDialog) SetHeadingUseMarkup(UseMarkupVar bool) { | ||
| 612 | - | core.LazyRegister(&xMessageDialogSetHeadingUseMarkup, "ADW", "adw_message_dialog_set_heading_use_markup", false) | |||
| 613 | - | ||||
| 614 | xMessageDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | 557 | xMessageDialogSetHeadingUseMarkup(x.GoPointer(), UseMarkupVar) | ||
| 615 | } | 558 | } | ||
| 616 | 559 | ||||
| @@ -637,8 +580,6 @@ var xMessageDialogSetResponseAppearance func(uintptr, string, ResponseAppearance | |||||
| 637 | // | 580 | // | ||
| 638 | // Negative responses like Cancel or Close should use the default appearance. | 581 | // Negative responses like Cancel or Close should use the default appearance. | ||
| 639 | func (x *MessageDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | 582 | func (x *MessageDialog) SetResponseAppearance(ResponseVar string, AppearanceVar ResponseAppearance) { | ||
| 640 | - | core.LazyRegister(&xMessageDialogSetResponseAppearance, "ADW", "adw_message_dialog_set_response_appearance", false) | |||
| 641 | - | ||||
| 642 | xMessageDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | 583 | xMessageDialogSetResponseAppearance(x.GoPointer(), ResponseVar, AppearanceVar) | ||
| 643 | } | 584 | } | ||
| 644 | 585 | ||||
| @@ -655,8 +596,6 @@ var xMessageDialogSetResponseEnabled func(uintptr, string, bool) | |||||
| 655 | // | 596 | // | ||
| 656 | // Responses are enabled by default. | 597 | // Responses are enabled by default. | ||
| 657 | func (x *MessageDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | 598 | func (x *MessageDialog) SetResponseEnabled(ResponseVar string, EnabledVar bool) { | ||
| 658 | - | core.LazyRegister(&xMessageDialogSetResponseEnabled, "ADW", "adw_message_dialog_set_response_enabled", false) | |||
| 659 | - | ||||
| 660 | xMessageDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | 599 | xMessageDialogSetResponseEnabled(x.GoPointer(), ResponseVar, EnabledVar) | ||
| 661 | } | 600 | } | ||
| 662 | 601 | ||||
| @@ -667,8 +606,6 @@ var xMessageDialogSetResponseLabel func(uintptr, string, string) | |||||
| 667 | // Labels are displayed on the dialog buttons. An embedded underline in @label | 606 | // Labels are displayed on the dialog buttons. An embedded underline in @label | ||
| 668 | // indicates a mnemonic. | 607 | // indicates a mnemonic. | ||
| 669 | func (x *MessageDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | 608 | func (x *MessageDialog) SetResponseLabel(ResponseVar string, LabelVar string) { | ||
| 670 | - | core.LazyRegister(&xMessageDialogSetResponseLabel, "ADW", "adw_message_dialog_set_response_label", false) | |||
| 671 | - | ||||
| 672 | xMessageDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | 609 | xMessageDialogSetResponseLabel(x.GoPointer(), ResponseVar, LabelVar) | ||
| 673 | } | 610 | } | ||
| 674 | 611 | ||||
| @@ -1215,4 +1152,48 @@ func (x *MessageDialog) SetFocus(FocusVar *gtk.Widget) { | |||||
| 1215 | func init() { | 1152 | func init() { | ||
| 1216 | core.SetPackageName("ADW", "libadwaita-1") | 1153 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1217 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 1154 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 1155 | + | var libs []uintptr | |||
| 1156 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 1157 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1158 | + | if err != nil { | |||
| 1159 | + | panic(err) | |||
| 1160 | + | } | |||
| 1161 | + | libs = append(libs, lib) | |||
| 1162 | + | } | |||
| 1163 | + | ||||
| 1164 | + | core.PuregoSafeRegister(&xMessageDialogGLibType, libs, "adw_message_dialog_get_type") | |||
| 1165 | + | ||||
| 1166 | + | core.PuregoSafeRegister(&xNewMessageDialog, libs, "adw_message_dialog_new") | |||
| 1167 | + | ||||
| 1168 | + | core.PuregoSafeRegister(&xMessageDialogAddResponse, libs, "adw_message_dialog_add_response") | |||
| 1169 | + | core.PuregoSafeRegister(&xMessageDialogAddResponses, libs, "adw_message_dialog_add_responses") | |||
| 1170 | + | core.PuregoSafeRegister(&xMessageDialogChoose, libs, "adw_message_dialog_choose") | |||
| 1171 | + | core.PuregoSafeRegister(&xMessageDialogChooseFinish, libs, "adw_message_dialog_choose_finish") | |||
| 1172 | + | core.PuregoSafeRegister(&xMessageDialogFormatBody, libs, "adw_message_dialog_format_body") | |||
| 1173 | + | core.PuregoSafeRegister(&xMessageDialogFormatBodyMarkup, libs, "adw_message_dialog_format_body_markup") | |||
| 1174 | + | core.PuregoSafeRegister(&xMessageDialogFormatHeading, libs, "adw_message_dialog_format_heading") | |||
| 1175 | + | core.PuregoSafeRegister(&xMessageDialogFormatHeadingMarkup, libs, "adw_message_dialog_format_heading_markup") | |||
| 1176 | + | core.PuregoSafeRegister(&xMessageDialogGetBody, libs, "adw_message_dialog_get_body") | |||
| 1177 | + | core.PuregoSafeRegister(&xMessageDialogGetBodyUseMarkup, libs, "adw_message_dialog_get_body_use_markup") | |||
| 1178 | + | core.PuregoSafeRegister(&xMessageDialogGetCloseResponse, libs, "adw_message_dialog_get_close_response") | |||
| 1179 | + | core.PuregoSafeRegister(&xMessageDialogGetDefaultResponse, libs, "adw_message_dialog_get_default_response") | |||
| 1180 | + | core.PuregoSafeRegister(&xMessageDialogGetExtraChild, libs, "adw_message_dialog_get_extra_child") | |||
| 1181 | + | core.PuregoSafeRegister(&xMessageDialogGetHeading, libs, "adw_message_dialog_get_heading") | |||
| 1182 | + | core.PuregoSafeRegister(&xMessageDialogGetHeadingUseMarkup, libs, "adw_message_dialog_get_heading_use_markup") | |||
| 1183 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseAppearance, libs, "adw_message_dialog_get_response_appearance") | |||
| 1184 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseEnabled, libs, "adw_message_dialog_get_response_enabled") | |||
| 1185 | + | core.PuregoSafeRegister(&xMessageDialogGetResponseLabel, libs, "adw_message_dialog_get_response_label") | |||
| 1186 | + | core.PuregoSafeRegister(&xMessageDialogHasResponse, libs, "adw_message_dialog_has_response") | |||
| 1187 | + | core.PuregoSafeRegister(&xMessageDialogRemoveResponse, libs, "adw_message_dialog_remove_response") | |||
| 1188 | + | core.PuregoSafeRegister(&xMessageDialogResponse, libs, "adw_message_dialog_response") | |||
| 1189 | + | core.PuregoSafeRegister(&xMessageDialogSetBody, libs, "adw_message_dialog_set_body") | |||
| 1190 | + | core.PuregoSafeRegister(&xMessageDialogSetBodyUseMarkup, libs, "adw_message_dialog_set_body_use_markup") | |||
| 1191 | + | core.PuregoSafeRegister(&xMessageDialogSetCloseResponse, libs, "adw_message_dialog_set_close_response") | |||
| 1192 | + | core.PuregoSafeRegister(&xMessageDialogSetDefaultResponse, libs, "adw_message_dialog_set_default_response") | |||
| 1193 | + | core.PuregoSafeRegister(&xMessageDialogSetExtraChild, libs, "adw_message_dialog_set_extra_child") | |||
| 1194 | + | core.PuregoSafeRegister(&xMessageDialogSetHeading, libs, "adw_message_dialog_set_heading") | |||
| 1195 | + | core.PuregoSafeRegister(&xMessageDialogSetHeadingUseMarkup, libs, "adw_message_dialog_set_heading_use_markup") | |||
| 1196 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseAppearance, libs, "adw_message_dialog_set_response_appearance") | |||
| 1197 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseEnabled, libs, "adw_message_dialog_set_response_enabled") | |||
| 1198 | + | core.PuregoSafeRegister(&xMessageDialogSetResponseLabel, libs, "adw_message_dialog_set_response_label") | |||
| 1218 | } | 1199 | } | ||