Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 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
| @@ -93,7 +93,6 @@ 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) | |
| 97 | 96 | return xDialogPresentationModeGLibType() | |
| 98 | 97 | } | |
| 99 | 98 | ||
| @@ -177,7 +176,6 @@ type Dialog struct { | |||
| 177 | 176 | var xDialogGLibType func() types.GType | |
| 178 | 177 | ||
| 179 | 178 | func DialogGLibType() types.GType { | |
| 180 | - | core.LazyRegister(&xDialogGLibType, "ADW", "adw_dialog_get_type", false) | |
| 181 | 179 | return xDialogGLibType() | |
| 182 | 180 | } | |
| 183 | 181 | ||
| @@ -191,7 +189,6 @@ var xNewDialog func() uintptr | |||
| 191 | 189 | ||
| 192 | 190 | // Creates a new `AdwDialog`. | |
| 193 | 191 | func NewDialog() *Dialog { | |
| 194 | - | core.LazyRegister(&xNewDialog, "ADW", "adw_dialog_new", false) | |
| 195 | 192 | var cls *Dialog | |
| 196 | 193 | ||
| 197 | 194 | cret := xNewDialog() | |
| @@ -209,8 +206,6 @@ var xDialogAddBreakpoint func(uintptr, uintptr) | |||
| 209 | 206 | ||
| 210 | 207 | // Adds @breakpoint to @self. | |
| 211 | 208 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | |
| 212 | - | core.LazyRegister(&xDialogAddBreakpoint, "ADW", "adw_dialog_add_breakpoint", false) | |
| 213 | - | ||
| 214 | 209 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | |
| 215 | 210 | } | |
| 216 | 211 | ||
| @@ -223,8 +218,6 @@ var xDialogClose func(uintptr) bool | |||
| 223 | 218 | // | |
| 224 | 219 | // See also: [method@Dialog.force_close]. | |
| 225 | 220 | func (x *Dialog) Close() bool { | |
| 226 | - | core.LazyRegister(&xDialogClose, "ADW", "adw_dialog_close", false) | |
| 227 | - | ||
| 228 | 221 | cret := xDialogClose(x.GoPointer()) | |
| 229 | 222 | return cret | |
| 230 | 223 | } | |
| @@ -236,8 +229,6 @@ var xDialogForceClose func(uintptr) | |||
| 236 | 229 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | |
| 237 | 230 | // is set to `FALSE`. | |
| 238 | 231 | func (x *Dialog) ForceClose() { | |
| 239 | - | core.LazyRegister(&xDialogForceClose, "ADW", "adw_dialog_force_close", false) | |
| 240 | - | ||
| 241 | 232 | xDialogForceClose(x.GoPointer()) | |
| 242 | 233 | } | |
| 243 | 234 | ||
| @@ -245,8 +236,6 @@ var xDialogGetCanClose func(uintptr) bool | |||
| 245 | 236 | ||
| 246 | 237 | // Gets whether @self can be closed. | |
| 247 | 238 | func (x *Dialog) GetCanClose() bool { | |
| 248 | - | core.LazyRegister(&xDialogGetCanClose, "ADW", "adw_dialog_get_can_close", false) | |
| 249 | - | ||
| 250 | 239 | cret := xDialogGetCanClose(x.GoPointer()) | |
| 251 | 240 | return cret | |
| 252 | 241 | } | |
| @@ -255,7 +244,6 @@ var xDialogGetChild func(uintptr) uintptr | |||
| 255 | 244 | ||
| 256 | 245 | // Gets the child widget of @self. | |
| 257 | 246 | func (x *Dialog) GetChild() *gtk.Widget { | |
| 258 | - | core.LazyRegister(&xDialogGetChild, "ADW", "adw_dialog_get_child", false) | |
| 259 | 247 | var cls *gtk.Widget | |
| 260 | 248 | ||
| 261 | 249 | cret := xDialogGetChild(x.GoPointer()) | |
| @@ -273,8 +261,6 @@ var xDialogGetContentHeight func(uintptr) int | |||
| 273 | 261 | ||
| 274 | 262 | // Gets the height of the dialog's contents. | |
| 275 | 263 | func (x *Dialog) GetContentHeight() int { | |
| 276 | - | core.LazyRegister(&xDialogGetContentHeight, "ADW", "adw_dialog_get_content_height", false) | |
| 277 | - | ||
| 278 | 264 | cret := xDialogGetContentHeight(x.GoPointer()) | |
| 279 | 265 | return cret | |
| 280 | 266 | } | |
| @@ -283,8 +269,6 @@ var xDialogGetContentWidth func(uintptr) int | |||
| 283 | 269 | ||
| 284 | 270 | // Gets the width of the dialog's contents. | |
| 285 | 271 | func (x *Dialog) GetContentWidth() int { | |
| 286 | - | core.LazyRegister(&xDialogGetContentWidth, "ADW", "adw_dialog_get_content_width", false) | |
| 287 | - | ||
| 288 | 272 | cret := xDialogGetContentWidth(x.GoPointer()) | |
| 289 | 273 | return cret | |
| 290 | 274 | } | |
| @@ -293,7 +277,6 @@ var xDialogGetCurrentBreakpoint func(uintptr) uintptr | |||
| 293 | 277 | ||
| 294 | 278 | // Gets the current breakpoint. | |
| 295 | 279 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | |
| 296 | - | core.LazyRegister(&xDialogGetCurrentBreakpoint, "ADW", "adw_dialog_get_current_breakpoint", false) | |
| 297 | 280 | var cls *Breakpoint | |
| 298 | 281 | ||
| 299 | 282 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | |
| @@ -311,7 +294,6 @@ var xDialogGetDefaultWidget func(uintptr) uintptr | |||
| 311 | 294 | ||
| 312 | 295 | // Gets the default widget for @self. | |
| 313 | 296 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | |
| 314 | - | core.LazyRegister(&xDialogGetDefaultWidget, "ADW", "adw_dialog_get_default_widget", false) | |
| 315 | 297 | var cls *gtk.Widget | |
| 316 | 298 | ||
| 317 | 299 | cret := xDialogGetDefaultWidget(x.GoPointer()) | |
| @@ -329,7 +311,6 @@ var xDialogGetFocus func(uintptr) uintptr | |||
| 329 | 311 | ||
| 330 | 312 | // Gets the focus widget for @self. | |
| 331 | 313 | func (x *Dialog) GetFocus() *gtk.Widget { | |
| 332 | - | core.LazyRegister(&xDialogGetFocus, "ADW", "adw_dialog_get_focus", false) | |
| 333 | 314 | var cls *gtk.Widget | |
| 334 | 315 | ||
| 335 | 316 | cret := xDialogGetFocus(x.GoPointer()) | |
| @@ -347,8 +328,6 @@ var xDialogGetFollowsContentSize func(uintptr) bool | |||
| 347 | 328 | ||
| 348 | 329 | // Gets whether to size content of @self automatically. | |
| 349 | 330 | func (x *Dialog) GetFollowsContentSize() bool { | |
| 350 | - | core.LazyRegister(&xDialogGetFollowsContentSize, "ADW", "adw_dialog_get_follows_content_size", false) | |
| 351 | - | ||
| 352 | 331 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | |
| 353 | 332 | return cret | |
| 354 | 333 | } | |
| @@ -357,8 +336,6 @@ var xDialogGetPresentationMode func(uintptr) DialogPresentationMode | |||
| 357 | 336 | ||
| 358 | 337 | // Gets presentation mode for @self. | |
| 359 | 338 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | |
| 360 | - | core.LazyRegister(&xDialogGetPresentationMode, "ADW", "adw_dialog_get_presentation_mode", false) | |
| 361 | - | ||
| 362 | 339 | cret := xDialogGetPresentationMode(x.GoPointer()) | |
| 363 | 340 | return cret | |
| 364 | 341 | } | |
| @@ -367,8 +344,6 @@ var xDialogGetTitle func(uintptr) string | |||
| 367 | 344 | ||
| 368 | 345 | // Gets the title of @self. | |
| 369 | 346 | func (x *Dialog) GetTitle() string { | |
| 370 | - | core.LazyRegister(&xDialogGetTitle, "ADW", "adw_dialog_get_title", false) | |
| 371 | - | ||
| 372 | 347 | cret := xDialogGetTitle(x.GoPointer()) | |
| 373 | 348 | return cret | |
| 374 | 349 | } | |
| @@ -382,8 +357,6 @@ var xDialogPresent func(uintptr, uintptr) | |||
| 382 | 357 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | |
| 383 | 358 | // will be shown within it. Otherwise, it will be a separate window. | |
| 384 | 359 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | |
| 385 | - | core.LazyRegister(&xDialogPresent, "ADW", "adw_dialog_present", false) | |
| 386 | - | ||
| 387 | 360 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | |
| 388 | 361 | } | |
| 389 | 362 | ||
| @@ -396,8 +369,6 @@ var xDialogSetCanClose func(uintptr, bool) | |||
| 396 | 369 | // emitted instead, and bottom sheet close swipe will be disabled. | |
| 397 | 370 | // [method@Dialog.force_close] still works. | |
| 398 | 371 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | |
| 399 | - | core.LazyRegister(&xDialogSetCanClose, "ADW", "adw_dialog_set_can_close", false) | |
| 400 | - | ||
| 401 | 372 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | |
| 402 | 373 | } | |
| 403 | 374 | ||
| @@ -405,8 +376,6 @@ var xDialogSetChild func(uintptr, uintptr) | |||
| 405 | 376 | ||
| 406 | 377 | // Sets the child widget of @self. | |
| 407 | 378 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | |
| 408 | - | core.LazyRegister(&xDialogSetChild, "ADW", "adw_dialog_set_child", false) | |
| 409 | - | ||
| 410 | 379 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 411 | 380 | } | |
| 412 | 381 | ||
| @@ -418,8 +387,6 @@ var xDialogSetContentHeight func(uintptr, int) | |||
| 418 | 387 | // | |
| 419 | 388 | // See also: [property@Gtk.Window:default-height] | |
| 420 | 389 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | |
| 421 | - | core.LazyRegister(&xDialogSetContentHeight, "ADW", "adw_dialog_set_content_height", false) | |
| 422 | - | ||
| 423 | 390 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | |
| 424 | 391 | } | |
| 425 | 392 | ||
| @@ -431,8 +398,6 @@ var xDialogSetContentWidth func(uintptr, int) | |||
| 431 | 398 | // | |
| 432 | 399 | // See also: [property@Gtk.Window:default-width] | |
| 433 | 400 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | |
| 434 | - | core.LazyRegister(&xDialogSetContentWidth, "ADW", "adw_dialog_set_content_width", false) | |
| 435 | - | ||
| 436 | 401 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | |
| 437 | 402 | } | |
| 438 | 403 | ||
| @@ -442,8 +407,6 @@ var xDialogSetDefaultWidget func(uintptr, uintptr) | |||
| 442 | 407 | // | |
| 443 | 408 | // It's activated when the user presses Enter. | |
| 444 | 409 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | |
| 445 | - | core.LazyRegister(&xDialogSetDefaultWidget, "ADW", "adw_dialog_set_default_widget", false) | |
| 446 | - | ||
| 447 | 410 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | |
| 448 | 411 | } | |
| 449 | 412 | ||
| @@ -458,8 +421,6 @@ var xDialogSetFocus func(uintptr, uintptr) | |||
| 458 | 421 | // to a particular widget in the dialog, it is usually more convenient to use | |
| 459 | 422 | // [method@Gtk.Widget.grab_focus] instead of this function. | |
| 460 | 423 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | |
| 461 | - | core.LazyRegister(&xDialogSetFocus, "ADW", "adw_dialog_set_focus", false) | |
| 462 | - | ||
| 463 | 424 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | |
| 464 | 425 | } | |
| 465 | 426 | ||
| @@ -473,8 +434,6 @@ var xDialogSetFollowsContentSize func(uintptr, bool) | |||
| 473 | 434 | // | |
| 474 | 435 | // See also: [property@Gtk.Window:resizable] | |
| 475 | 436 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | |
| 476 | - | core.LazyRegister(&xDialogSetFollowsContentSize, "ADW", "adw_dialog_set_follows_content_size", false) | |
| 477 | - | ||
| 478 | 437 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | |
| 479 | 438 | } | |
| 480 | 439 | ||
| @@ -492,8 +451,6 @@ var xDialogSetPresentationMode func(uintptr, DialogPresentationMode) | |||
| 492 | 451 | // | |
| 493 | 452 | // Presentation mode does nothing for dialogs presented as a window. | |
| 494 | 453 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | |
| 495 | - | core.LazyRegister(&xDialogSetPresentationMode, "ADW", "adw_dialog_set_presentation_mode", false) | |
| 496 | - | ||
| 497 | 454 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | |
| 498 | 455 | } | |
| 499 | 456 | ||
| @@ -501,8 +458,6 @@ var xDialogSetTitle func(uintptr, string) | |||
| 501 | 458 | ||
| 502 | 459 | // Sets the title of @self. | |
| 503 | 460 | func (x *Dialog) SetTitle(TitleVar string) { | |
| 504 | - | core.LazyRegister(&xDialogSetTitle, "ADW", "adw_dialog_set_title", false) | |
| 505 | - | ||
| 506 | 461 | xDialogSetTitle(x.GoPointer(), TitleVar) | |
| 507 | 462 | } | |
| 508 | 463 | ||
| @@ -951,4 +906,42 @@ func (x *Dialog) GetBuildableId() string { | |||
| 951 | 906 | func init() { | |
| 952 | 907 | core.SetPackageName("ADW", "libadwaita-1") | |
| 953 | 908 | 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") | |
| 954 | 947 | } | |
| @@ -93,7 +93,6 @@ 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) | |||
| 97 | return xDialogPresentationModeGLibType() | 96 | return xDialogPresentationModeGLibType() | ||
| 98 | } | 97 | } | ||
| 99 | 98 | ||||
| @@ -177,7 +176,6 @@ type Dialog struct { | |||||
| 177 | var xDialogGLibType func() types.GType | 176 | var xDialogGLibType func() types.GType | ||
| 178 | 177 | ||||
| 179 | func DialogGLibType() types.GType { | 178 | func DialogGLibType() types.GType { | ||
| 180 | - | core.LazyRegister(&xDialogGLibType, "ADW", "adw_dialog_get_type", false) | |||
| 181 | return xDialogGLibType() | 179 | return xDialogGLibType() | ||
| 182 | } | 180 | } | ||
| 183 | 181 | ||||
| @@ -191,7 +189,6 @@ var xNewDialog func() uintptr | |||||
| 191 | 189 | ||||
| 192 | // Creates a new `AdwDialog`. | 190 | // Creates a new `AdwDialog`. | ||
| 193 | func NewDialog() *Dialog { | 191 | func NewDialog() *Dialog { | ||
| 194 | - | core.LazyRegister(&xNewDialog, "ADW", "adw_dialog_new", false) | |||
| 195 | var cls *Dialog | 192 | var cls *Dialog | ||
| 196 | 193 | ||||
| 197 | cret := xNewDialog() | 194 | cret := xNewDialog() | ||
| @@ -209,8 +206,6 @@ var xDialogAddBreakpoint func(uintptr, uintptr) | |||||
| 209 | 206 | ||||
| 210 | // Adds @breakpoint to @self. | 207 | // Adds @breakpoint to @self. | ||
| 211 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | 208 | func (x *Dialog) AddBreakpoint(BreakpointVar *Breakpoint) { | ||
| 212 | - | core.LazyRegister(&xDialogAddBreakpoint, "ADW", "adw_dialog_add_breakpoint", false) | |||
| 213 | - | ||||
| 214 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | 209 | xDialogAddBreakpoint(x.GoPointer(), BreakpointVar.GoPointer()) | ||
| 215 | } | 210 | } | ||
| 216 | 211 | ||||
| @@ -223,8 +218,6 @@ var xDialogClose func(uintptr) bool | |||||
| 223 | // | 218 | // | ||
| 224 | // See also: [method@Dialog.force_close]. | 219 | // See also: [method@Dialog.force_close]. | ||
| 225 | func (x *Dialog) Close() bool { | 220 | func (x *Dialog) Close() bool { | ||
| 226 | - | core.LazyRegister(&xDialogClose, "ADW", "adw_dialog_close", false) | |||
| 227 | - | ||||
| 228 | cret := xDialogClose(x.GoPointer()) | 221 | cret := xDialogClose(x.GoPointer()) | ||
| 229 | return cret | 222 | return cret | ||
| 230 | } | 223 | } | ||
| @@ -236,8 +229,6 @@ var xDialogForceClose func(uintptr) | |||||
| 236 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | 229 | // Unlike [method@Dialog.close], it succeeds even if [property@Dialog:can-close] | ||
| 237 | // is set to `FALSE`. | 230 | // is set to `FALSE`. | ||
| 238 | func (x *Dialog) ForceClose() { | 231 | func (x *Dialog) ForceClose() { | ||
| 239 | - | core.LazyRegister(&xDialogForceClose, "ADW", "adw_dialog_force_close", false) | |||
| 240 | - | ||||
| 241 | xDialogForceClose(x.GoPointer()) | 232 | xDialogForceClose(x.GoPointer()) | ||
| 242 | } | 233 | } | ||
| 243 | 234 | ||||
| @@ -245,8 +236,6 @@ var xDialogGetCanClose func(uintptr) bool | |||||
| 245 | 236 | ||||
| 246 | // Gets whether @self can be closed. | 237 | // Gets whether @self can be closed. | ||
| 247 | func (x *Dialog) GetCanClose() bool { | 238 | func (x *Dialog) GetCanClose() bool { | ||
| 248 | - | core.LazyRegister(&xDialogGetCanClose, "ADW", "adw_dialog_get_can_close", false) | |||
| 249 | - | ||||
| 250 | cret := xDialogGetCanClose(x.GoPointer()) | 239 | cret := xDialogGetCanClose(x.GoPointer()) | ||
| 251 | return cret | 240 | return cret | ||
| 252 | } | 241 | } | ||
| @@ -255,7 +244,6 @@ var xDialogGetChild func(uintptr) uintptr | |||||
| 255 | 244 | ||||
| 256 | // Gets the child widget of @self. | 245 | // Gets the child widget of @self. | ||
| 257 | func (x *Dialog) GetChild() *gtk.Widget { | 246 | func (x *Dialog) GetChild() *gtk.Widget { | ||
| 258 | - | core.LazyRegister(&xDialogGetChild, "ADW", "adw_dialog_get_child", false) | |||
| 259 | var cls *gtk.Widget | 247 | var cls *gtk.Widget | ||
| 260 | 248 | ||||
| 261 | cret := xDialogGetChild(x.GoPointer()) | 249 | cret := xDialogGetChild(x.GoPointer()) | ||
| @@ -273,8 +261,6 @@ var xDialogGetContentHeight func(uintptr) int | |||||
| 273 | 261 | ||||
| 274 | // Gets the height of the dialog's contents. | 262 | // Gets the height of the dialog's contents. | ||
| 275 | func (x *Dialog) GetContentHeight() int { | 263 | func (x *Dialog) GetContentHeight() int { | ||
| 276 | - | core.LazyRegister(&xDialogGetContentHeight, "ADW", "adw_dialog_get_content_height", false) | |||
| 277 | - | ||||
| 278 | cret := xDialogGetContentHeight(x.GoPointer()) | 264 | cret := xDialogGetContentHeight(x.GoPointer()) | ||
| 279 | return cret | 265 | return cret | ||
| 280 | } | 266 | } | ||
| @@ -283,8 +269,6 @@ var xDialogGetContentWidth func(uintptr) int | |||||
| 283 | 269 | ||||
| 284 | // Gets the width of the dialog's contents. | 270 | // Gets the width of the dialog's contents. | ||
| 285 | func (x *Dialog) GetContentWidth() int { | 271 | func (x *Dialog) GetContentWidth() int { | ||
| 286 | - | core.LazyRegister(&xDialogGetContentWidth, "ADW", "adw_dialog_get_content_width", false) | |||
| 287 | - | ||||
| 288 | cret := xDialogGetContentWidth(x.GoPointer()) | 272 | cret := xDialogGetContentWidth(x.GoPointer()) | ||
| 289 | return cret | 273 | return cret | ||
| 290 | } | 274 | } | ||
| @@ -293,7 +277,6 @@ var xDialogGetCurrentBreakpoint func(uintptr) uintptr | |||||
| 293 | 277 | ||||
| 294 | // Gets the current breakpoint. | 278 | // Gets the current breakpoint. | ||
| 295 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | 279 | func (x *Dialog) GetCurrentBreakpoint() *Breakpoint { | ||
| 296 | - | core.LazyRegister(&xDialogGetCurrentBreakpoint, "ADW", "adw_dialog_get_current_breakpoint", false) | |||
| 297 | var cls *Breakpoint | 280 | var cls *Breakpoint | ||
| 298 | 281 | ||||
| 299 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | 282 | cret := xDialogGetCurrentBreakpoint(x.GoPointer()) | ||
| @@ -311,7 +294,6 @@ var xDialogGetDefaultWidget func(uintptr) uintptr | |||||
| 311 | 294 | ||||
| 312 | // Gets the default widget for @self. | 295 | // Gets the default widget for @self. | ||
| 313 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | 296 | func (x *Dialog) GetDefaultWidget() *gtk.Widget { | ||
| 314 | - | core.LazyRegister(&xDialogGetDefaultWidget, "ADW", "adw_dialog_get_default_widget", false) | |||
| 315 | var cls *gtk.Widget | 297 | var cls *gtk.Widget | ||
| 316 | 298 | ||||
| 317 | cret := xDialogGetDefaultWidget(x.GoPointer()) | 299 | cret := xDialogGetDefaultWidget(x.GoPointer()) | ||
| @@ -329,7 +311,6 @@ var xDialogGetFocus func(uintptr) uintptr | |||||
| 329 | 311 | ||||
| 330 | // Gets the focus widget for @self. | 312 | // Gets the focus widget for @self. | ||
| 331 | func (x *Dialog) GetFocus() *gtk.Widget { | 313 | func (x *Dialog) GetFocus() *gtk.Widget { | ||
| 332 | - | core.LazyRegister(&xDialogGetFocus, "ADW", "adw_dialog_get_focus", false) | |||
| 333 | var cls *gtk.Widget | 314 | var cls *gtk.Widget | ||
| 334 | 315 | ||||
| 335 | cret := xDialogGetFocus(x.GoPointer()) | 316 | cret := xDialogGetFocus(x.GoPointer()) | ||
| @@ -347,8 +328,6 @@ var xDialogGetFollowsContentSize func(uintptr) bool | |||||
| 347 | 328 | ||||
| 348 | // Gets whether to size content of @self automatically. | 329 | // Gets whether to size content of @self automatically. | ||
| 349 | func (x *Dialog) GetFollowsContentSize() bool { | 330 | func (x *Dialog) GetFollowsContentSize() bool { | ||
| 350 | - | core.LazyRegister(&xDialogGetFollowsContentSize, "ADW", "adw_dialog_get_follows_content_size", false) | |||
| 351 | - | ||||
| 352 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | 331 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | ||
| 353 | return cret | 332 | return cret | ||
| 354 | } | 333 | } | ||
| @@ -357,8 +336,6 @@ var xDialogGetPresentationMode func(uintptr) DialogPresentationMode | |||||
| 357 | 336 | ||||
| 358 | // Gets presentation mode for @self. | 337 | // Gets presentation mode for @self. | ||
| 359 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | 338 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | ||
| 360 | - | core.LazyRegister(&xDialogGetPresentationMode, "ADW", "adw_dialog_get_presentation_mode", false) | |||
| 361 | - | ||||
| 362 | cret := xDialogGetPresentationMode(x.GoPointer()) | 339 | cret := xDialogGetPresentationMode(x.GoPointer()) | ||
| 363 | return cret | 340 | return cret | ||
| 364 | } | 341 | } | ||
| @@ -367,8 +344,6 @@ var xDialogGetTitle func(uintptr) string | |||||
| 367 | 344 | ||||
| 368 | // Gets the title of @self. | 345 | // Gets the title of @self. | ||
| 369 | func (x *Dialog) GetTitle() string { | 346 | func (x *Dialog) GetTitle() string { | ||
| 370 | - | core.LazyRegister(&xDialogGetTitle, "ADW", "adw_dialog_get_title", false) | |||
| 371 | - | ||||
| 372 | cret := xDialogGetTitle(x.GoPointer()) | 347 | cret := xDialogGetTitle(x.GoPointer()) | ||
| 373 | return cret | 348 | return cret | ||
| 374 | } | 349 | } | ||
| @@ -382,8 +357,6 @@ var xDialogPresent func(uintptr, uintptr) | |||||
| 382 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | 357 | // If the window is an [class@Window] or [class@ApplicationWindow], the dialog | ||
| 383 | // will be shown within it. Otherwise, it will be a separate window. | 358 | // will be shown within it. Otherwise, it will be a separate window. | ||
| 384 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | 359 | func (x *Dialog) Present(ParentVar *gtk.Widget) { | ||
| 385 | - | core.LazyRegister(&xDialogPresent, "ADW", "adw_dialog_present", false) | |||
| 386 | - | ||||
| 387 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | 360 | xDialogPresent(x.GoPointer(), ParentVar.GoPointer()) | ||
| 388 | } | 361 | } | ||
| 389 | 362 | ||||
| @@ -396,8 +369,6 @@ var xDialogSetCanClose func(uintptr, bool) | |||||
| 396 | // emitted instead, and bottom sheet close swipe will be disabled. | 369 | // emitted instead, and bottom sheet close swipe will be disabled. | ||
| 397 | // [method@Dialog.force_close] still works. | 370 | // [method@Dialog.force_close] still works. | ||
| 398 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | 371 | func (x *Dialog) SetCanClose(CanCloseVar bool) { | ||
| 399 | - | core.LazyRegister(&xDialogSetCanClose, "ADW", "adw_dialog_set_can_close", false) | |||
| 400 | - | ||||
| 401 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | 372 | xDialogSetCanClose(x.GoPointer(), CanCloseVar) | ||
| 402 | } | 373 | } | ||
| 403 | 374 | ||||
| @@ -405,8 +376,6 @@ var xDialogSetChild func(uintptr, uintptr) | |||||
| 405 | 376 | ||||
| 406 | // Sets the child widget of @self. | 377 | // Sets the child widget of @self. | ||
| 407 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | 378 | func (x *Dialog) SetChild(ChildVar *gtk.Widget) { | ||
| 408 | - | core.LazyRegister(&xDialogSetChild, "ADW", "adw_dialog_set_child", false) | |||
| 409 | - | ||||
| 410 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | 379 | xDialogSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 411 | } | 380 | } | ||
| 412 | 381 | ||||
| @@ -418,8 +387,6 @@ var xDialogSetContentHeight func(uintptr, int) | |||||
| 418 | // | 387 | // | ||
| 419 | // See also: [property@Gtk.Window:default-height] | 388 | // See also: [property@Gtk.Window:default-height] | ||
| 420 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | 389 | func (x *Dialog) SetContentHeight(ContentHeightVar int) { | ||
| 421 | - | core.LazyRegister(&xDialogSetContentHeight, "ADW", "adw_dialog_set_content_height", false) | |||
| 422 | - | ||||
| 423 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | 390 | xDialogSetContentHeight(x.GoPointer(), ContentHeightVar) | ||
| 424 | } | 391 | } | ||
| 425 | 392 | ||||
| @@ -431,8 +398,6 @@ var xDialogSetContentWidth func(uintptr, int) | |||||
| 431 | // | 398 | // | ||
| 432 | // See also: [property@Gtk.Window:default-width] | 399 | // See also: [property@Gtk.Window:default-width] | ||
| 433 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | 400 | func (x *Dialog) SetContentWidth(ContentWidthVar int) { | ||
| 434 | - | core.LazyRegister(&xDialogSetContentWidth, "ADW", "adw_dialog_set_content_width", false) | |||
| 435 | - | ||||
| 436 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | 401 | xDialogSetContentWidth(x.GoPointer(), ContentWidthVar) | ||
| 437 | } | 402 | } | ||
| 438 | 403 | ||||
| @@ -442,8 +407,6 @@ var xDialogSetDefaultWidget func(uintptr, uintptr) | |||||
| 442 | // | 407 | // | ||
| 443 | // It's activated when the user presses Enter. | 408 | // It's activated when the user presses Enter. | ||
| 444 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | 409 | func (x *Dialog) SetDefaultWidget(DefaultWidgetVar *gtk.Widget) { | ||
| 445 | - | core.LazyRegister(&xDialogSetDefaultWidget, "ADW", "adw_dialog_set_default_widget", false) | |||
| 446 | - | ||||
| 447 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | 410 | xDialogSetDefaultWidget(x.GoPointer(), DefaultWidgetVar.GoPointer()) | ||
| 448 | } | 411 | } | ||
| 449 | 412 | ||||
| @@ -458,8 +421,6 @@ var xDialogSetFocus func(uintptr, uintptr) | |||||
| 458 | // to a particular widget in the dialog, it is usually more convenient to use | 421 | // to a particular widget in the dialog, it is usually more convenient to use | ||
| 459 | // [method@Gtk.Widget.grab_focus] instead of this function. | 422 | // [method@Gtk.Widget.grab_focus] instead of this function. | ||
| 460 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | 423 | func (x *Dialog) SetFocus(FocusVar *gtk.Widget) { | ||
| 461 | - | core.LazyRegister(&xDialogSetFocus, "ADW", "adw_dialog_set_focus", false) | |||
| 462 | - | ||||
| 463 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | 424 | xDialogSetFocus(x.GoPointer(), FocusVar.GoPointer()) | ||
| 464 | } | 425 | } | ||
| 465 | 426 | ||||
| @@ -473,8 +434,6 @@ var xDialogSetFollowsContentSize func(uintptr, bool) | |||||
| 473 | // | 434 | // | ||
| 474 | // See also: [property@Gtk.Window:resizable] | 435 | // See also: [property@Gtk.Window:resizable] | ||
| 475 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | 436 | func (x *Dialog) SetFollowsContentSize(FollowsContentSizeVar bool) { | ||
| 476 | - | core.LazyRegister(&xDialogSetFollowsContentSize, "ADW", "adw_dialog_set_follows_content_size", false) | |||
| 477 | - | ||||
| 478 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | 437 | xDialogSetFollowsContentSize(x.GoPointer(), FollowsContentSizeVar) | ||
| 479 | } | 438 | } | ||
| 480 | 439 | ||||
| @@ -492,8 +451,6 @@ var xDialogSetPresentationMode func(uintptr, DialogPresentationMode) | |||||
| 492 | // | 451 | // | ||
| 493 | // Presentation mode does nothing for dialogs presented as a window. | 452 | // Presentation mode does nothing for dialogs presented as a window. | ||
| 494 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | 453 | func (x *Dialog) SetPresentationMode(PresentationModeVar DialogPresentationMode) { | ||
| 495 | - | core.LazyRegister(&xDialogSetPresentationMode, "ADW", "adw_dialog_set_presentation_mode", false) | |||
| 496 | - | ||||
| 497 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | 454 | xDialogSetPresentationMode(x.GoPointer(), PresentationModeVar) | ||
| 498 | } | 455 | } | ||
| 499 | 456 | ||||
| @@ -501,8 +458,6 @@ var xDialogSetTitle func(uintptr, string) | |||||
| 501 | 458 | ||||
| 502 | // Sets the title of @self. | 459 | // Sets the title of @self. | ||
| 503 | func (x *Dialog) SetTitle(TitleVar string) { | 460 | func (x *Dialog) SetTitle(TitleVar string) { | ||
| 504 | - | core.LazyRegister(&xDialogSetTitle, "ADW", "adw_dialog_set_title", false) | |||
| 505 | - | ||||
| 506 | xDialogSetTitle(x.GoPointer(), TitleVar) | 461 | xDialogSetTitle(x.GoPointer(), TitleVar) | ||
| 507 | } | 462 | } | ||
| 508 | 463 | ||||
| @@ -951,4 +906,42 @@ func (x *Dialog) GetBuildableId() string { | |||||
| 951 | func init() { | 906 | func init() { | ||
| 952 | core.SetPackageName("ADW", "libadwaita-1") | 907 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 953 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 908 | 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") | |||
| 954 | } | 947 | } | ||