fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -16 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38
| @@ -93,6 +93,7 @@ type DialogPresentationMode int | |||
| 93 | 93 | var xDialogPresentationModeGLibType func() types.GType | |
| 94 | 94 | ||
| 95 | 95 | func DialogPresentationModeGLibType() types.GType { | |
| 96 | + | core.LazyRegister(&xDialogPresentationModeGLibType, "ADW", "adw_dialog_presentation_mode_get_type", false) | |
| 96 | 97 | return xDialogPresentationModeGLibType() | |
| 97 | 98 | } | |
| 98 | 99 | ||
| @@ -176,6 +177,7 @@ type Dialog struct { | |||
| 176 | 177 | var xDialogGLibType func() types.GType | |
| 177 | 178 | ||
| 178 | 179 | func DialogGLibType() types.GType { | |
| 180 | + | core.LazyRegister(&xDialogGLibType, "ADW", "adw_dialog_get_type", false) | |
| 179 | 181 | return xDialogGLibType() | |
| 180 | 182 | } | |
| 181 | 183 | ||
| @@ -189,6 +191,7 @@ var xNewDialog func() uintptr | |||
| 189 | 191 | ||
| 190 | 192 | // Creates a new `AdwDialog`. | |
| 191 | 193 | func NewDialog() *Dialog { | |
| 194 | + | core.LazyRegister(&xNewDialog, "ADW", "adw_dialog_new", false) | |
| 192 | 195 | var cls *Dialog | |
| 193 | 196 | ||
| 194 | 197 | cret := xNewDialog() | |
| @@ -206,6 +209,8 @@ var xDialogAddBreakpoint func(uintptr, uintptr) | |||
| 206 | 209 | ||
| 207 | 210 | // Adds @breakpoint to @self. | |
| 208 | 211 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | |
| 212 | + | core.LazyRegister(&xDialogAddBreakpoint, "ADW", "adw_dialog_add_breakpoint", false) | |
| 213 | + | ||
| 209 | 214 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | |
| 210 | 215 | } | |
| 211 | 216 | ||
| @@ -218,6 +223,8 @@ var xDialogClose func(uintptr) bool | |||
| 218 | 223 | // | |
| 219 | 224 | // See also: [method@Dialog.force_close]. | |
| 220 | 225 | func (x *Dialog) Close() bool { | |
| 226 | + | core.LazyRegister(&xDialogClose, "ADW", "adw_dialog_close", false) | |
| 227 | + | ||
| 221 | 228 | cret := xDialogClose(x.GoPointer()) | |
| 222 | 229 | return cret | |
| 223 | 230 | } | |
| @@ -229,6 +236,8 @@ var xDialogForceClose func(uintptr) | |||
| 229 | 236 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | |
| 230 | 237 | // is set to `FALSE`. | |
| 231 | 238 | func (x *Dialog) ForceClose() { | |
| 239 | + | core.LazyRegister(&xDialogForceClose, "ADW", "adw_dialog_force_close", false) | |
| 240 | + | ||
| 232 | 241 | xDialogForceClose(x.GoPointer()) | |
| 233 | 242 | } | |
| 234 | 243 | ||
| @@ -236,6 +245,8 @@ var xDialogGetCanClose func(uintptr) bool | |||
| 236 | 245 | ||
| 237 | 246 | // Gets whether @self can be closed. | |
| 238 | 247 | func (x *Dialog) GetCanClose() bool { | |
| 248 | + | core.LazyRegister(&xDialogGetCanClose, "ADW", "adw_dialog_get_can_close", false) | |
| 249 | + | ||
| 239 | 250 | cret := xDialogGetCanClose(x.GoPointer()) | |
| 240 | 251 | return cret | |
| 241 | 252 | } | |
| @@ -244,6 +255,7 @@ var xDialogGetChild func(uintptr) uintptr | |||
| 244 | 255 | ||
| 245 | 256 | // Gets the child widget of @self. | |
| 246 | 257 | func (x *Dialog) GetChild() *gtk.Widget { | |
| 258 | + | core.LazyRegister(&xDialogGetChild, "ADW", "adw_dialog_get_child", false) | |
| 247 | 259 | var cls *gtk.Widget | |
| 248 | 260 | ||
| 249 | 261 | cret := xDialogGetChild(x.GoPointer()) | |
| @@ -261,6 +273,8 @@ var xDialogGetContentHeight func(uintptr) int | |||
| 261 | 273 | ||
| 262 | 274 | // Gets the height of the dialog's contents. | |
| 263 | 275 | func (x *Dialog) GetContentHeight() int { | |
| 276 | + | core.LazyRegister(&xDialogGetContentHeight, "ADW", "adw_dialog_get_content_height", false) | |
| 277 | + | ||
| 264 | 278 | cret := xDialogGetContentHeight(x.GoPointer()) | |
| 265 | 279 | return cret | |
| 266 | 280 | } | |
| @@ -269,6 +283,8 @@ var xDialogGetContentWidth func(uintptr) int | |||
| 269 | 283 | ||
| 270 | 284 | // Gets the width of the dialog's contents. | |
| 271 | 285 | func (x *Dialog) GetContentWidth() int { | |
| 286 | + | core.LazyRegister(&xDialogGetContentWidth, "ADW", "adw_dialog_get_content_width", false) | |
| 287 | + | ||
| 272 | 288 | cret := xDialogGetContentWidth(x.GoPointer()) | |
| 273 | 289 | return cret | |
| 274 | 290 | } | |
| @@ -277,6 +293,7 @@ var xDialogGetCurrentBreakpoint func(uintptr) uintptr | |||
| 277 | 293 | ||
| 278 | 294 | // Gets the current breakpoint. | |
| 279 | 295 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | |
| 296 | + | core.LazyRegister(&xDialogGetCurrentBreakpoint, "ADW", "adw_dialog_get_current_breakpoint", false) | |
| 280 | 297 | var cls *Breakpoint | |
| 281 | 298 | ||
| 282 | 299 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | |
| @@ -294,6 +311,7 @@ var xDialogGetDefaultWidget func(uintptr) uintptr | |||
| 294 | 311 | ||
| 295 | 312 | // Gets the default widget for @self. | |
| 296 | 313 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | |
| 314 | + | core.LazyRegister(&xDialogGetDefaultWidget, "ADW", "adw_dialog_get_default_widget", false) | |
| 297 | 315 | var cls *gtk.Widget | |
| 298 | 316 | ||
| 299 | 317 | cret := xDialogGetDefaultWidget(x.GoPointer()) | |
| @@ -311,6 +329,7 @@ var xDialogGetFocus func(uintptr) uintptr | |||
| 311 | 329 | ||
| 312 | 330 | // Gets the focus widget for @self. | |
| 313 | 331 | func (x *Dialog) GetFocus() *gtk.Widget { | |
| 332 | + | core.LazyRegister(&xDialogGetFocus, "ADW", "adw_dialog_get_focus", false) | |
| 314 | 333 | var cls *gtk.Widget | |
| 315 | 334 | ||
| 316 | 335 | cret := xDialogGetFocus(x.GoPointer()) | |
| @@ -328,6 +347,8 @@ var xDialogGetFollowsContentSize func(uintptr) bool | |||
| 328 | 347 | ||
| 329 | 348 | // Gets whether to size content of @self automatically. | |
| 330 | 349 | func (x *Dialog) GetFollowsContentSize() bool { | |
| 350 | + | core.LazyRegister(&xDialogGetFollowsContentSize, "ADW", "adw_dialog_get_follows_content_size", false) | |
| 351 | + | ||
| 331 | 352 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | |
| 332 | 353 | return cret | |
| 333 | 354 | } | |
| @@ -336,6 +357,8 @@ var xDialogGetPresentationMode func(uintptr) DialogPresentationMode | |||
| 336 | 357 | ||
| 337 | 358 | // Gets presentation mode for @self. | |
| 338 | 359 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | |
| 360 | + | core.LazyRegister(&xDialogGetPresentationMode, "ADW", "adw_dialog_get_presentation_mode", false) | |
| 361 | + | ||
| 339 | 362 | cret := xDialogGetPresentationMode(x.GoPointer()) | |
| 340 | 363 | return cret | |
| 341 | 364 | } | |
| @@ -344,6 +367,8 @@ var xDialogGetTitle func(uintptr) string | |||
| 344 | 367 | ||
| 345 | 368 | // Gets the title of @self. | |
| 346 | 369 | func (x *Dialog) GetTitle() string { | |
| 370 | + | core.LazyRegister(&xDialogGetTitle, "ADW", "adw_dialog_get_title", false) | |
| 371 | + | ||
| 347 | 372 | cret := xDialogGetTitle(x.GoPointer()) | |
| 348 | 373 | return cret | |
| 349 | 374 | } | |
| @@ -357,6 +382,8 @@ var xDialogPresent func(uintptr, uintptr) | |||
| 357 | 382 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | |
| 358 | 383 | // will be shown within it. Otherwise, it will be a separate window. | |
| 359 | 384 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | |
| 385 | + | core.LazyRegister(&xDialogPresent, "ADW", "adw_dialog_present", false) | |
| 386 | + | ||
| 360 | 387 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | |
| 361 | 388 | } | |
| 362 | 389 | ||
| @@ -369,6 +396,8 @@ var xDialogSetCanClose func(uintptr, bool) | |||
| 369 | 396 | // emitted instead, and bottom sheet close swipe will be disabled. | |
| 370 | 397 | // [method@Dialog.force_close] still works. | |
| 371 | 398 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | |
| 399 | + | core.LazyRegister(&xDialogSetCanClose, "ADW", "adw_dialog_set_can_close", false) | |
| 400 | + | ||
| 372 | 401 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | |
| 373 | 402 | } | |
| 374 | 403 | ||
| @@ -376,6 +405,8 @@ var xDialogSetChild func(uintptr, uintptr) | |||
| 376 | 405 | ||
| 377 | 406 | // Sets the child widget of @self. | |
| 378 | 407 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | |
| 408 | + | core.LazyRegister(&xDialogSetChild, "ADW", "adw_dialog_set_child", false) | |
| 409 | + | ||
| 379 | 410 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 380 | 411 | } | |
| 381 | 412 | ||
| @@ -387,6 +418,8 @@ var xDialogSetContentHeight func(uintptr, int) | |||
| 387 | 418 | // | |
| 388 | 419 | // See also: [property@Gtk.Window:default-height] | |
| 389 | 420 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | |
| 421 | + | core.LazyRegister(&xDialogSetContentHeight, "ADW", "adw_dialog_set_content_height", false) | |
| 422 | + | ||
| 390 | 423 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | |
| 391 | 424 | } | |
| 392 | 425 | ||
| @@ -398,6 +431,8 @@ var xDialogSetContentWidth func(uintptr, int) | |||
| 398 | 431 | // | |
| 399 | 432 | // See also: [property@Gtk.Window:default-width] | |
| 400 | 433 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | |
| 434 | + | core.LazyRegister(&xDialogSetContentWidth, "ADW", "adw_dialog_set_content_width", false) | |
| 435 | + | ||
| 401 | 436 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | |
| 402 | 437 | } | |
| 403 | 438 | ||
| @@ -407,6 +442,8 @@ var xDialogSetDefaultWidget func(uintptr, uintptr) | |||
| 407 | 442 | // | |
| 408 | 443 | // It's activated when the user presses Enter. | |
| 409 | 444 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | |
| 445 | + | core.LazyRegister(&xDialogSetDefaultWidget, "ADW", "adw_dialog_set_default_widget", false) | |
| 446 | + | ||
| 410 | 447 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | |
| 411 | 448 | } | |
| 412 | 449 | ||
| @@ -421,6 +458,8 @@ var xDialogSetFocus func(uintptr, uintptr) | |||
| 421 | 458 | // to a particular widget in the dialog, it is usually more convenient to use | |
| 422 | 459 | // [method@Gtk.Widget.grab_focus] instead of this function. | |
| 423 | 460 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | |
| 461 | + | core.LazyRegister(&xDialogSetFocus, "ADW", "adw_dialog_set_focus", false) | |
| 462 | + | ||
| 424 | 463 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | |
| 425 | 464 | } | |
| 426 | 465 | ||
| @@ -434,6 +473,8 @@ var xDialogSetFollowsContentSize func(uintptr, bool) | |||
| 434 | 473 | // | |
| 435 | 474 | // See also: [property@Gtk.Window:resizable] | |
| 436 | 475 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | |
| 476 | + | core.LazyRegister(&xDialogSetFollowsContentSize, "ADW", "adw_dialog_set_follows_content_size", false) | |
| 477 | + | ||
| 437 | 478 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | |
| 438 | 479 | } | |
| 439 | 480 | ||
| @@ -451,6 +492,8 @@ var xDialogSetPresentationMode func(uintptr, DialogPresentationMode) | |||
| 451 | 492 | // | |
| 452 | 493 | // Presentation mode does nothing for dialogs presented as a window. | |
| 453 | 494 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | |
| 495 | + | core.LazyRegister(&xDialogSetPresentationMode, "ADW", "adw_dialog_set_presentation_mode", false) | |
| 496 | + | ||
| 454 | 497 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | |
| 455 | 498 | } | |
| 456 | 499 | ||
| @@ -458,6 +501,8 @@ var xDialogSetTitle func(uintptr, string) | |||
| 458 | 501 | ||
| 459 | 502 | // Sets the title of @self. | |
| 460 | 503 | func (x *Dialog) SetTitle(TitleVar string) { | |
| 504 | + | core.LazyRegister(&xDialogSetTitle, "ADW", "adw_dialog_set_title", false) | |
| 505 | + | ||
| 461 | 506 | xDialogSetTitle(x.GoPointer(), TitleVar) | |
| 462 | 507 | } | |
| 463 | 508 | ||
| @@ -906,42 +951,4 @@ func (x *Dialog) GetBuildableId() string { | |||
| 906 | 951 | func init() { | |
| 907 | 952 | core.SetPackageName("ADW", "libadwaita-1") | |
| 908 | 953 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 909 | - | var libs []uintptr | |
| 910 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 911 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 912 | - | if err != nil { | |
| 913 | - | panic(err) | |
| 914 | - | } | |
| 915 | - | libs = append(libs, lib) | |
| 916 | - | } | |
| 917 | - | ||
| 918 | - | core.PuregoSafeRegister(&xDialogPresentationModeGLibType, libs, "adw_dialog_presentation_mode_get_type") | |
| 919 | - | ||
| 920 | - | core.PuregoSafeRegister(&xDialogGLibType, libs, "adw_dialog_get_type") | |
| 921 | - | ||
| 922 | - | core.PuregoSafeRegister(&xNewDialog, libs, "adw_dialog_new") | |
| 923 | - | ||
| 924 | - | core.PuregoSafeRegister(&xDialogAddBreakpoint, libs, "adw_dialog_add_breakpoint") | |
| 925 | - | core.PuregoSafeRegister(&xDialogClose, libs, "adw_dialog_close") | |
| 926 | - | core.PuregoSafeRegister(&xDialogForceClose, libs, "adw_dialog_force_close") | |
| 927 | - | core.PuregoSafeRegister(&xDialogGetCanClose, libs, "adw_dialog_get_can_close") | |
| 928 | - | core.PuregoSafeRegister(&xDialogGetChild, libs, "adw_dialog_get_child") | |
| 929 | - | core.PuregoSafeRegister(&xDialogGetContentHeight, libs, "adw_dialog_get_content_height") | |
| 930 | - | core.PuregoSafeRegister(&xDialogGetContentWidth, libs, "adw_dialog_get_content_width") | |
| 931 | - | core.PuregoSafeRegister(&xDialogGetCurrentBreakpoint, libs, "adw_dialog_get_current_breakpoint") | |
| 932 | - | core.PuregoSafeRegister(&xDialogGetDefaultWidget, libs, "adw_dialog_get_default_widget") | |
| 933 | - | core.PuregoSafeRegister(&xDialogGetFocus, libs, "adw_dialog_get_focus") | |
| 934 | - | core.PuregoSafeRegister(&xDialogGetFollowsContentSize, libs, "adw_dialog_get_follows_content_size") | |
| 935 | - | core.PuregoSafeRegister(&xDialogGetPresentationMode, libs, "adw_dialog_get_presentation_mode") | |
| 936 | - | core.PuregoSafeRegister(&xDialogGetTitle, libs, "adw_dialog_get_title") | |
| 937 | - | core.PuregoSafeRegister(&xDialogPresent, libs, "adw_dialog_present") | |
| 938 | - | core.PuregoSafeRegister(&xDialogSetCanClose, libs, "adw_dialog_set_can_close") | |
| 939 | - | core.PuregoSafeRegister(&xDialogSetChild, libs, "adw_dialog_set_child") | |
| 940 | - | core.PuregoSafeRegister(&xDialogSetContentHeight, libs, "adw_dialog_set_content_height") | |
| 941 | - | core.PuregoSafeRegister(&xDialogSetContentWidth, libs, "adw_dialog_set_content_width") | |
| 942 | - | core.PuregoSafeRegister(&xDialogSetDefaultWidget, libs, "adw_dialog_set_default_widget") | |
| 943 | - | core.PuregoSafeRegister(&xDialogSetFocus, libs, "adw_dialog_set_focus") | |
| 944 | - | core.PuregoSafeRegister(&xDialogSetFollowsContentSize, libs, "adw_dialog_set_follows_content_size") | |
| 945 | - | core.PuregoSafeRegister(&xDialogSetPresentationMode, libs, "adw_dialog_set_presentation_mode") | |
| 946 | - | core.PuregoSafeRegister(&xDialogSetTitle, libs, "adw_dialog_set_title") | |
| 947 | 954 | } | |
| @@ -93,6 +93,7 @@ type DialogPresentationMode int | |||||
| 93 | var xDialogPresentationModeGLibType func() types.GType | 93 | var xDialogPresentationModeGLibType func() types.GType | ||
| 94 | 94 | ||||
| 95 | func DialogPresentationModeGLibType() types.GType { | 95 | func DialogPresentationModeGLibType() types.GType { | ||
| 96 | + | core.LazyRegister(&xDialogPresentationModeGLibType, "ADW", "adw_dialog_presentation_mode_get_type", false) | |||
| 96 | return xDialogPresentationModeGLibType() | 97 | return xDialogPresentationModeGLibType() | ||
| 97 | } | 98 | } | ||
| 98 | 99 | ||||
| @@ -176,6 +177,7 @@ type Dialog struct { | |||||
| 176 | var xDialogGLibType func() types.GType | 177 | var xDialogGLibType func() types.GType | ||
| 177 | 178 | ||||
| 178 | func DialogGLibType() types.GType { | 179 | func DialogGLibType() types.GType { | ||
| 180 | + | core.LazyRegister(&xDialogGLibType, "ADW", "adw_dialog_get_type", false) | |||
| 179 | return xDialogGLibType() | 181 | return xDialogGLibType() | ||
| 180 | } | 182 | } | ||
| 181 | 183 | ||||
| @@ -189,6 +191,7 @@ var xNewDialog func() uintptr | |||||
| 189 | 191 | ||||
| 190 | // Creates a new `AdwDialog`. | 192 | // Creates a new `AdwDialog`. | ||
| 191 | func NewDialog() *Dialog { | 193 | func NewDialog() *Dialog { | ||
| 194 | + | core.LazyRegister(&xNewDialog, "ADW", "adw_dialog_new", false) | |||
| 192 | var cls *Dialog | 195 | var cls *Dialog | ||
| 193 | 196 | ||||
| 194 | cret := xNewDialog() | 197 | cret := xNewDialog() | ||
| @@ -206,6 +209,8 @@ var xDialogAddBreakpoint func(uintptr, uintptr) | |||||
| 206 | 209 | ||||
| 207 | // Adds @breakpoint to @self. | 210 | // Adds @breakpoint to @self. | ||
| 208 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | 211 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | ||
| 212 | + | core.LazyRegister(&xDialogAddBreakpoint, "ADW", "adw_dialog_add_breakpoint", false) | |||
| 213 | + | ||||
| 209 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | 214 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | ||
| 210 | } | 215 | } | ||
| 211 | 216 | ||||
| @@ -218,6 +223,8 @@ var xDialogClose func(uintptr) bool | |||||
| 218 | // | 223 | // | ||
| 219 | // See also: [method@Dialog.force_close]. | 224 | // See also: [method@Dialog.force_close]. | ||
| 220 | func (x *Dialog) Close() bool { | 225 | func (x *Dialog) Close() bool { | ||
| 226 | + | core.LazyRegister(&xDialogClose, "ADW", "adw_dialog_close", false) | |||
| 227 | + | ||||
| 221 | cret := xDialogClose(x.GoPointer()) | 228 | cret := xDialogClose(x.GoPointer()) | ||
| 222 | return cret | 229 | return cret | ||
| 223 | } | 230 | } | ||
| @@ -229,6 +236,8 @@ var xDialogForceClose func(uintptr) | |||||
| 229 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | 236 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | ||
| 230 | // is set to `FALSE`. | 237 | // is set to `FALSE`. | ||
| 231 | func (x *Dialog) ForceClose() { | 238 | func (x *Dialog) ForceClose() { | ||
| 239 | + | core.LazyRegister(&xDialogForceClose, "ADW", "adw_dialog_force_close", false) | |||
| 240 | + | ||||
| 232 | xDialogForceClose(x.GoPointer()) | 241 | xDialogForceClose(x.GoPointer()) | ||
| 233 | } | 242 | } | ||
| 234 | 243 | ||||
| @@ -236,6 +245,8 @@ var xDialogGetCanClose func(uintptr) bool | |||||
| 236 | 245 | ||||
| 237 | // Gets whether @self can be closed. | 246 | // Gets whether @self can be closed. | ||
| 238 | func (x *Dialog) GetCanClose() bool { | 247 | func (x *Dialog) GetCanClose() bool { | ||
| 248 | + | core.LazyRegister(&xDialogGetCanClose, "ADW", "adw_dialog_get_can_close", false) | |||
| 249 | + | ||||
| 239 | cret := xDialogGetCanClose(x.GoPointer()) | 250 | cret := xDialogGetCanClose(x.GoPointer()) | ||
| 240 | return cret | 251 | return cret | ||
| 241 | } | 252 | } | ||
| @@ -244,6 +255,7 @@ var xDialogGetChild func(uintptr) uintptr | |||||
| 244 | 255 | ||||
| 245 | // Gets the child widget of @self. | 256 | // Gets the child widget of @self. | ||
| 246 | func (x *Dialog) GetChild() *gtk.Widget { | 257 | func (x *Dialog) GetChild() *gtk.Widget { | ||
| 258 | + | core.LazyRegister(&xDialogGetChild, "ADW", "adw_dialog_get_child", false) | |||
| 247 | var cls *gtk.Widget | 259 | var cls *gtk.Widget | ||
| 248 | 260 | ||||
| 249 | cret := xDialogGetChild(x.GoPointer()) | 261 | cret := xDialogGetChild(x.GoPointer()) | ||
| @@ -261,6 +273,8 @@ var xDialogGetContentHeight func(uintptr) int | |||||
| 261 | 273 | ||||
| 262 | // Gets the height of the dialog's contents. | 274 | // Gets the height of the dialog's contents. | ||
| 263 | func (x *Dialog) GetContentHeight() int { | 275 | func (x *Dialog) GetContentHeight() int { | ||
| 276 | + | core.LazyRegister(&xDialogGetContentHeight, "ADW", "adw_dialog_get_content_height", false) | |||
| 277 | + | ||||
| 264 | cret := xDialogGetContentHeight(x.GoPointer()) | 278 | cret := xDialogGetContentHeight(x.GoPointer()) | ||
| 265 | return cret | 279 | return cret | ||
| 266 | } | 280 | } | ||
| @@ -269,6 +283,8 @@ var xDialogGetContentWidth func(uintptr) int | |||||
| 269 | 283 | ||||
| 270 | // Gets the width of the dialog's contents. | 284 | // Gets the width of the dialog's contents. | ||
| 271 | func (x *Dialog) GetContentWidth() int { | 285 | func (x *Dialog) GetContentWidth() int { | ||
| 286 | + | core.LazyRegister(&xDialogGetContentWidth, "ADW", "adw_dialog_get_content_width", false) | |||
| 287 | + | ||||
| 272 | cret := xDialogGetContentWidth(x.GoPointer()) | 288 | cret := xDialogGetContentWidth(x.GoPointer()) | ||
| 273 | return cret | 289 | return cret | ||
| 274 | } | 290 | } | ||
| @@ -277,6 +293,7 @@ var xDialogGetCurrentBreakpoint func(uintptr) uintptr | |||||
| 277 | 293 | ||||
| 278 | // Gets the current breakpoint. | 294 | // Gets the current breakpoint. | ||
| 279 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | 295 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | ||
| 296 | + | core.LazyRegister(&xDialogGetCurrentBreakpoint, "ADW", "adw_dialog_get_current_breakpoint", false) | |||
| 280 | var cls *Breakpoint | 297 | var cls *Breakpoint | ||
| 281 | 298 | ||||
| 282 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | 299 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | ||
| @@ -294,6 +311,7 @@ var xDialogGetDefaultWidget func(uintptr) uintptr | |||||
| 294 | 311 | ||||
| 295 | // Gets the default widget for @self. | 312 | // Gets the default widget for @self. | ||
| 296 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | 313 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | ||
| 314 | + | core.LazyRegister(&xDialogGetDefaultWidget, "ADW", "adw_dialog_get_default_widget", false) | |||
| 297 | var cls *gtk.Widget | 315 | var cls *gtk.Widget | ||
| 298 | 316 | ||||
| 299 | cret := xDialogGetDefaultWidget(x.GoPointer()) | 317 | cret := xDialogGetDefaultWidget(x.GoPointer()) | ||
| @@ -311,6 +329,7 @@ var xDialogGetFocus func(uintptr) uintptr | |||||
| 311 | 329 | ||||
| 312 | // Gets the focus widget for @self. | 330 | // Gets the focus widget for @self. | ||
| 313 | func (x *Dialog) GetFocus() *gtk.Widget { | 331 | func (x *Dialog) GetFocus() *gtk.Widget { | ||
| 332 | + | core.LazyRegister(&xDialogGetFocus, "ADW", "adw_dialog_get_focus", false) | |||
| 314 | var cls *gtk.Widget | 333 | var cls *gtk.Widget | ||
| 315 | 334 | ||||
| 316 | cret := xDialogGetFocus(x.GoPointer()) | 335 | cret := xDialogGetFocus(x.GoPointer()) | ||
| @@ -328,6 +347,8 @@ var xDialogGetFollowsContentSize func(uintptr) bool | |||||
| 328 | 347 | ||||
| 329 | // Gets whether to size content of @self automatically. | 348 | // Gets whether to size content of @self automatically. | ||
| 330 | func (x *Dialog) GetFollowsContentSize() bool { | 349 | func (x *Dialog) GetFollowsContentSize() bool { | ||
| 350 | + | core.LazyRegister(&xDialogGetFollowsContentSize, "ADW", "adw_dialog_get_follows_content_size", false) | |||
| 351 | + | ||||
| 331 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | 352 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | ||
| 332 | return cret | 353 | return cret | ||
| 333 | } | 354 | } | ||
| @@ -336,6 +357,8 @@ var xDialogGetPresentationMode func(uintptr) DialogPresentationMode | |||||
| 336 | 357 | ||||
| 337 | // Gets presentation mode for @self. | 358 | // Gets presentation mode for @self. | ||
| 338 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | 359 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | ||
| 360 | + | core.LazyRegister(&xDialogGetPresentationMode, "ADW", "adw_dialog_get_presentation_mode", false) | |||
| 361 | + | ||||
| 339 | cret := xDialogGetPresentationMode(x.GoPointer()) | 362 | cret := xDialogGetPresentationMode(x.GoPointer()) | ||
| 340 | return cret | 363 | return cret | ||
| 341 | } | 364 | } | ||
| @@ -344,6 +367,8 @@ var xDialogGetTitle func(uintptr) string | |||||
| 344 | 367 | ||||
| 345 | // Gets the title of @self. | 368 | // Gets the title of @self. | ||
| 346 | func (x *Dialog) GetTitle() string { | 369 | func (x *Dialog) GetTitle() string { | ||
| 370 | + | core.LazyRegister(&xDialogGetTitle, "ADW", "adw_dialog_get_title", false) | |||
| 371 | + | ||||
| 347 | cret := xDialogGetTitle(x.GoPointer()) | 372 | cret := xDialogGetTitle(x.GoPointer()) | ||
| 348 | return cret | 373 | return cret | ||
| 349 | } | 374 | } | ||
| @@ -357,6 +382,8 @@ var xDialogPresent func(uintptr, uintptr) | |||||
| 357 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | 382 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | ||
| 358 | // will be shown within it. Otherwise, it will be a separate window. | 383 | // will be shown within it. Otherwise, it will be a separate window. | ||
| 359 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | 384 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | ||
| 385 | + | core.LazyRegister(&xDialogPresent, "ADW", "adw_dialog_present", false) | |||
| 386 | + | ||||
| 360 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | 387 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | ||
| 361 | } | 388 | } | ||
| 362 | 389 | ||||
| @@ -369,6 +396,8 @@ var xDialogSetCanClose func(uintptr, bool) | |||||
| 369 | // emitted instead, and bottom sheet close swipe will be disabled. | 396 | // emitted instead, and bottom sheet close swipe will be disabled. | ||
| 370 | // [method@Dialog.force_close] still works. | 397 | // [method@Dialog.force_close] still works. | ||
| 371 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | 398 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | ||
| 399 | + | core.LazyRegister(&xDialogSetCanClose, "ADW", "adw_dialog_set_can_close", false) | |||
| 400 | + | ||||
| 372 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | 401 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | ||
| 373 | } | 402 | } | ||
| 374 | 403 | ||||
| @@ -376,6 +405,8 @@ var xDialogSetChild func(uintptr, uintptr) | |||||
| 376 | 405 | ||||
| 377 | // Sets the child widget of @self. | 406 | // Sets the child widget of @self. | ||
| 378 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | 407 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | ||
| 408 | + | core.LazyRegister(&xDialogSetChild, "ADW", "adw_dialog_set_child", false) | |||
| 409 | + | ||||
| 379 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | 410 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 380 | } | 411 | } | ||
| 381 | 412 | ||||
| @@ -387,6 +418,8 @@ var xDialogSetContentHeight func(uintptr, int) | |||||
| 387 | // | 418 | // | ||
| 388 | // See also: [property@Gtk.Window:default-height] | 419 | // See also: [property@Gtk.Window:default-height] | ||
| 389 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | 420 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | ||
| 421 | + | core.LazyRegister(&xDialogSetContentHeight, "ADW", "adw_dialog_set_content_height", false) | |||
| 422 | + | ||||
| 390 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | 423 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | ||
| 391 | } | 424 | } | ||
| 392 | 425 | ||||
| @@ -398,6 +431,8 @@ var xDialogSetContentWidth func(uintptr, int) | |||||
| 398 | // | 431 | // | ||
| 399 | // See also: [property@Gtk.Window:default-width] | 432 | // See also: [property@Gtk.Window:default-width] | ||
| 400 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | 433 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | ||
| 434 | + | core.LazyRegister(&xDialogSetContentWidth, "ADW", "adw_dialog_set_content_width", false) | |||
| 435 | + | ||||
| 401 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | 436 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | ||
| 402 | } | 437 | } | ||
| 403 | 438 | ||||
| @@ -407,6 +442,8 @@ var xDialogSetDefaultWidget func(uintptr, uintptr) | |||||
| 407 | // | 442 | // | ||
| 408 | // It's activated when the user presses Enter. | 443 | // It's activated when the user presses Enter. | ||
| 409 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | 444 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | ||
| 445 | + | core.LazyRegister(&xDialogSetDefaultWidget, "ADW", "adw_dialog_set_default_widget", false) | |||
| 446 | + | ||||
| 410 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | 447 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | ||
| 411 | } | 448 | } | ||
| 412 | 449 | ||||
| @@ -421,6 +458,8 @@ var xDialogSetFocus func(uintptr, uintptr) | |||||
| 421 | // to a particular widget in the dialog, it is usually more convenient to use | 458 | // to a particular widget in the dialog, it is usually more convenient to use | ||
| 422 | // [method@Gtk.Widget.grab_focus] instead of this function. | 459 | // [method@Gtk.Widget.grab_focus] instead of this function. | ||
| 423 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | 460 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | ||
| 461 | + | core.LazyRegister(&xDialogSetFocus, "ADW", "adw_dialog_set_focus", false) | |||
| 462 | + | ||||
| 424 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | 463 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | ||
| 425 | } | 464 | } | ||
| 426 | 465 | ||||
| @@ -434,6 +473,8 @@ var xDialogSetFollowsContentSize func(uintptr, bool) | |||||
| 434 | // | 473 | // | ||
| 435 | // See also: [property@Gtk.Window:resizable] | 474 | // See also: [property@Gtk.Window:resizable] | ||
| 436 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | 475 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | ||
| 476 | + | core.LazyRegister(&xDialogSetFollowsContentSize, "ADW", "adw_dialog_set_follows_content_size", false) | |||
| 477 | + | ||||
| 437 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | 478 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | ||
| 438 | } | 479 | } | ||
| 439 | 480 | ||||
| @@ -451,6 +492,8 @@ var xDialogSetPresentationMode func(uintptr, DialogPresentationMode) | |||||
| 451 | // | 492 | // | ||
| 452 | // Presentation mode does nothing for dialogs presented as a window. | 493 | // Presentation mode does nothing for dialogs presented as a window. | ||
| 453 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | 494 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | ||
| 495 | + | core.LazyRegister(&xDialogSetPresentationMode, "ADW", "adw_dialog_set_presentation_mode", false) | |||
| 496 | + | ||||
| 454 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | 497 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | ||
| 455 | } | 498 | } | ||
| 456 | 499 | ||||
| @@ -458,6 +501,8 @@ var xDialogSetTitle func(uintptr, string) | |||||
| 458 | 501 | ||||
| 459 | // Sets the title of @self. | 502 | // Sets the title of @self. | ||
| 460 | func (x *Dialog) SetTitle(TitleVar string) { | 503 | func (x *Dialog) SetTitle(TitleVar string) { | ||
| 504 | + | core.LazyRegister(&xDialogSetTitle, "ADW", "adw_dialog_set_title", false) | |||
| 505 | + | ||||
| 461 | xDialogSetTitle(x.GoPointer(), TitleVar) | 506 | xDialogSetTitle(x.GoPointer(), TitleVar) | ||
| 462 | } | 507 | } | ||
| 463 | 508 | ||||
| @@ -906,42 +951,4 @@ func (x *Dialog) GetBuildableId() string { | |||||
| 906 | func init() { | 951 | func init() { | ||
| 907 | core.SetPackageName("ADW", "libadwaita-1") | 952 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 908 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 953 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 909 | - | var libs []uintptr | |||
| 910 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 911 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 912 | - | if err != nil { | |||
| 913 | - | panic(err) | |||
| 914 | - | } | |||
| 915 | - | libs = append(libs, lib) | |||
| 916 | - | } | |||
| 917 | - | ||||
| 918 | - | core.PuregoSafeRegister(&xDialogPresentationModeGLibType, libs, "adw_dialog_presentation_mode_get_type") | |||
| 919 | - | ||||
| 920 | - | core.PuregoSafeRegister(&xDialogGLibType, libs, "adw_dialog_get_type") | |||
| 921 | - | ||||
| 922 | - | core.PuregoSafeRegister(&xNewDialog, libs, "adw_dialog_new") | |||
| 923 | - | ||||
| 924 | - | core.PuregoSafeRegister(&xDialogAddBreakpoint, libs, "adw_dialog_add_breakpoint") | |||
| 925 | - | core.PuregoSafeRegister(&xDialogClose, libs, "adw_dialog_close") | |||
| 926 | - | core.PuregoSafeRegister(&xDialogForceClose, libs, "adw_dialog_force_close") | |||
| 927 | - | core.PuregoSafeRegister(&xDialogGetCanClose, libs, "adw_dialog_get_can_close") | |||
| 928 | - | core.PuregoSafeRegister(&xDialogGetChild, libs, "adw_dialog_get_child") | |||
| 929 | - | core.PuregoSafeRegister(&xDialogGetContentHeight, libs, "adw_dialog_get_content_height") | |||
| 930 | - | core.PuregoSafeRegister(&xDialogGetContentWidth, libs, "adw_dialog_get_content_width") | |||
| 931 | - | core.PuregoSafeRegister(&xDialogGetCurrentBreakpoint, libs, "adw_dialog_get_current_breakpoint") | |||
| 932 | - | core.PuregoSafeRegister(&xDialogGetDefaultWidget, libs, "adw_dialog_get_default_widget") | |||
| 933 | - | core.PuregoSafeRegister(&xDialogGetFocus, libs, "adw_dialog_get_focus") | |||
| 934 | - | core.PuregoSafeRegister(&xDialogGetFollowsContentSize, libs, "adw_dialog_get_follows_content_size") | |||
| 935 | - | core.PuregoSafeRegister(&xDialogGetPresentationMode, libs, "adw_dialog_get_presentation_mode") | |||
| 936 | - | core.PuregoSafeRegister(&xDialogGetTitle, libs, "adw_dialog_get_title") | |||
| 937 | - | core.PuregoSafeRegister(&xDialogPresent, libs, "adw_dialog_present") | |||
| 938 | - | core.PuregoSafeRegister(&xDialogSetCanClose, libs, "adw_dialog_set_can_close") | |||
| 939 | - | core.PuregoSafeRegister(&xDialogSetChild, libs, "adw_dialog_set_child") | |||
| 940 | - | core.PuregoSafeRegister(&xDialogSetContentHeight, libs, "adw_dialog_set_content_height") | |||
| 941 | - | core.PuregoSafeRegister(&xDialogSetContentWidth, libs, "adw_dialog_set_content_width") | |||
| 942 | - | core.PuregoSafeRegister(&xDialogSetDefaultWidget, libs, "adw_dialog_set_default_widget") | |||
| 943 | - | core.PuregoSafeRegister(&xDialogSetFocus, libs, "adw_dialog_set_focus") | |||
| 944 | - | core.PuregoSafeRegister(&xDialogSetFollowsContentSize, libs, "adw_dialog_set_follows_content_size") | |||
| 945 | - | core.PuregoSafeRegister(&xDialogSetPresentationMode, libs, "adw_dialog_set_presentation_mode") | |||
| 946 | - | core.PuregoSafeRegister(&xDialogSetTitle, libs, "adw_dialog_set_title") | |||
| 947 | } | 954 | } | ||