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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gdk" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -36,7 +37,6 @@ type FlapFoldPolicy int | |||
| 36 | 37 | var xFlapFoldPolicyGLibType func() types.GType | |
| 37 | 38 | ||
| 38 | 39 | func FlapFoldPolicyGLibType() types.GType { | |
| 39 | - | core.LazyRegister(&xFlapFoldPolicyGLibType, "ADW", "adw_flap_fold_policy_get_type", false) | |
| 40 | 40 | return xFlapFoldPolicyGLibType() | |
| 41 | 41 | } | |
| 42 | 42 | ||
| @@ -62,7 +62,6 @@ type FlapTransitionType int | |||
| 62 | 62 | var xFlapTransitionTypeGLibType func() types.GType | |
| 63 | 63 | ||
| 64 | 64 | func FlapTransitionTypeGLibType() types.GType { | |
| 65 | - | core.LazyRegister(&xFlapTransitionTypeGLibType, "ADW", "adw_flap_transition_type_get_type", false) | |
| 66 | 65 | return xFlapTransitionTypeGLibType() | |
| 67 | 66 | } | |
| 68 | 67 | ||
| @@ -148,7 +147,6 @@ type Flap struct { | |||
| 148 | 147 | var xFlapGLibType func() types.GType | |
| 149 | 148 | ||
| 150 | 149 | func FlapGLibType() types.GType { | |
| 151 | - | core.LazyRegister(&xFlapGLibType, "ADW", "adw_flap_get_type", false) | |
| 152 | 150 | return xFlapGLibType() | |
| 153 | 151 | } | |
| 154 | 152 | ||
| @@ -162,7 +160,6 @@ var xNewFlap func() uintptr | |||
| 162 | 160 | ||
| 163 | 161 | // Creates a new `AdwFlap`. | |
| 164 | 162 | func NewFlap() *Flap { | |
| 165 | - | core.LazyRegister(&xNewFlap, "ADW", "adw_flap_new", false) | |
| 166 | 163 | var cls *Flap | |
| 167 | 164 | ||
| 168 | 165 | cret := xNewFlap() | |
| @@ -180,7 +177,6 @@ var xFlapGetContent func(uintptr) uintptr | |||
| 180 | 177 | ||
| 181 | 178 | // Gets the content widget for @self. | |
| 182 | 179 | func (x *Flap) GetContent() *gtk.Widget { | |
| 183 | - | core.LazyRegister(&xFlapGetContent, "ADW", "adw_flap_get_content", false) | |
| 184 | 180 | var cls *gtk.Widget | |
| 185 | 181 | ||
| 186 | 182 | cret := xFlapGetContent(x.GoPointer()) | |
| @@ -198,7 +194,6 @@ var xFlapGetFlap func(uintptr) uintptr | |||
| 198 | 194 | ||
| 199 | 195 | // Gets the flap widget for @self. | |
| 200 | 196 | func (x *Flap) GetFlap() *gtk.Widget { | |
| 201 | - | core.LazyRegister(&xFlapGetFlap, "ADW", "adw_flap_get_flap", false) | |
| 202 | 197 | var cls *gtk.Widget | |
| 203 | 198 | ||
| 204 | 199 | cret := xFlapGetFlap(x.GoPointer()) | |
| @@ -216,8 +211,6 @@ var xFlapGetFlapPosition func(uintptr) gtk.PackType | |||
| 216 | 211 | ||
| 217 | 212 | // Gets the flap position for @self. | |
| 218 | 213 | func (x *Flap) GetFlapPosition() gtk.PackType { | |
| 219 | - | core.LazyRegister(&xFlapGetFlapPosition, "ADW", "adw_flap_get_flap_position", false) | |
| 220 | - | ||
| 221 | 214 | cret := xFlapGetFlapPosition(x.GoPointer()) | |
| 222 | 215 | return cret | |
| 223 | 216 | } | |
| @@ -226,8 +219,6 @@ var xFlapGetFoldDuration func(uintptr) uint | |||
| 226 | 219 | ||
| 227 | 220 | // Gets the fold transition animation duration for @self, in milliseconds. | |
| 228 | 221 | func (x *Flap) GetFoldDuration() uint { | |
| 229 | - | core.LazyRegister(&xFlapGetFoldDuration, "ADW", "adw_flap_get_fold_duration", false) | |
| 230 | - | ||
| 231 | 222 | cret := xFlapGetFoldDuration(x.GoPointer()) | |
| 232 | 223 | return cret | |
| 233 | 224 | } | |
| @@ -236,8 +227,6 @@ var xFlapGetFoldPolicy func(uintptr) FlapFoldPolicy | |||
| 236 | 227 | ||
| 237 | 228 | // Gets the fold policy for @self. | |
| 238 | 229 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | |
| 239 | - | core.LazyRegister(&xFlapGetFoldPolicy, "ADW", "adw_flap_get_fold_policy", false) | |
| 240 | - | ||
| 241 | 230 | cret := xFlapGetFoldPolicy(x.GoPointer()) | |
| 242 | 231 | return cret | |
| 243 | 232 | } | |
| @@ -246,8 +235,6 @@ var xFlapGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||
| 246 | 235 | ||
| 247 | 236 | // Gets the fold threshold policy for @self. | |
| 248 | 237 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | |
| 249 | - | core.LazyRegister(&xFlapGetFoldThresholdPolicy, "ADW", "adw_flap_get_fold_threshold_policy", false) | |
| 250 | - | ||
| 251 | 238 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | |
| 252 | 239 | return cret | |
| 253 | 240 | } | |
| @@ -258,8 +245,6 @@ var xFlapGetFolded func(uintptr) bool | |||
| 258 | 245 | // | |
| 259 | 246 | // See [property@Flap:fold-policy]. | |
| 260 | 247 | func (x *Flap) GetFolded() bool { | |
| 261 | - | core.LazyRegister(&xFlapGetFolded, "ADW", "adw_flap_get_folded", false) | |
| 262 | - | ||
| 263 | 248 | cret := xFlapGetFolded(x.GoPointer()) | |
| 264 | 249 | return cret | |
| 265 | 250 | } | |
| @@ -268,8 +253,6 @@ var xFlapGetLocked func(uintptr) bool | |||
| 268 | 253 | ||
| 269 | 254 | // Gets whether @self is locked. | |
| 270 | 255 | func (x *Flap) GetLocked() bool { | |
| 271 | - | core.LazyRegister(&xFlapGetLocked, "ADW", "adw_flap_get_locked", false) | |
| 272 | - | ||
| 273 | 256 | cret := xFlapGetLocked(x.GoPointer()) | |
| 274 | 257 | return cret | |
| 275 | 258 | } | |
| @@ -278,8 +261,6 @@ var xFlapGetModal func(uintptr) bool | |||
| 278 | 261 | ||
| 279 | 262 | // Gets whether @self is modal. | |
| 280 | 263 | func (x *Flap) GetModal() bool { | |
| 281 | - | core.LazyRegister(&xFlapGetModal, "ADW", "adw_flap_get_modal", false) | |
| 282 | - | ||
| 283 | 264 | cret := xFlapGetModal(x.GoPointer()) | |
| 284 | 265 | return cret | |
| 285 | 266 | } | |
| @@ -288,8 +269,6 @@ var xFlapGetRevealFlap func(uintptr) bool | |||
| 288 | 269 | ||
| 289 | 270 | // Gets whether the flap widget is revealed for @self. | |
| 290 | 271 | func (x *Flap) GetRevealFlap() bool { | |
| 291 | - | core.LazyRegister(&xFlapGetRevealFlap, "ADW", "adw_flap_get_reveal_flap", false) | |
| 292 | - | ||
| 293 | 272 | cret := xFlapGetRevealFlap(x.GoPointer()) | |
| 294 | 273 | return cret | |
| 295 | 274 | } | |
| @@ -298,8 +277,6 @@ var xFlapGetRevealParams func(uintptr) uintptr | |||
| 298 | 277 | ||
| 299 | 278 | // Gets the reveal animation spring parameters for @self. | |
| 300 | 279 | func (x *Flap) GetRevealParams() *SpringParams { | |
| 301 | - | core.LazyRegister(&xFlapGetRevealParams, "ADW", "adw_flap_get_reveal_params", false) | |
| 302 | - | ||
| 303 | 280 | cret := xFlapGetRevealParams(x.GoPointer()) | |
| 304 | 281 | if cret == 0 { | |
| 305 | 282 | return nil | |
| @@ -315,8 +292,6 @@ var xFlapGetRevealProgress func(uintptr) float64 | |||
| 315 | 292 | // | |
| 316 | 293 | // See [property@Flap:reveal-flap]. | |
| 317 | 294 | func (x *Flap) GetRevealProgress() float64 { | |
| 318 | - | core.LazyRegister(&xFlapGetRevealProgress, "ADW", "adw_flap_get_reveal_progress", false) | |
| 319 | - | ||
| 320 | 295 | cret := xFlapGetRevealProgress(x.GoPointer()) | |
| 321 | 296 | return cret | |
| 322 | 297 | } | |
| @@ -325,7 +300,6 @@ var xFlapGetSeparator func(uintptr) uintptr | |||
| 325 | 300 | ||
| 326 | 301 | // Gets the separator widget for @self. | |
| 327 | 302 | func (x *Flap) GetSeparator() *gtk.Widget { | |
| 328 | - | core.LazyRegister(&xFlapGetSeparator, "ADW", "adw_flap_get_separator", false) | |
| 329 | 303 | var cls *gtk.Widget | |
| 330 | 304 | ||
| 331 | 305 | cret := xFlapGetSeparator(x.GoPointer()) | |
| @@ -343,8 +317,6 @@ var xFlapGetSwipeToClose func(uintptr) bool | |||
| 343 | 317 | ||
| 344 | 318 | // Gets whether @self can be closed with a swipe gesture. | |
| 345 | 319 | func (x *Flap) GetSwipeToClose() bool { | |
| 346 | - | core.LazyRegister(&xFlapGetSwipeToClose, "ADW", "adw_flap_get_swipe_to_close", false) | |
| 347 | - | ||
| 348 | 320 | cret := xFlapGetSwipeToClose(x.GoPointer()) | |
| 349 | 321 | return cret | |
| 350 | 322 | } | |
| @@ -353,8 +325,6 @@ var xFlapGetSwipeToOpen func(uintptr) bool | |||
| 353 | 325 | ||
| 354 | 326 | // Gets whether @self can be opened with a swipe gesture. | |
| 355 | 327 | func (x *Flap) GetSwipeToOpen() bool { | |
| 356 | - | core.LazyRegister(&xFlapGetSwipeToOpen, "ADW", "adw_flap_get_swipe_to_open", false) | |
| 357 | - | ||
| 358 | 328 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | |
| 359 | 329 | return cret | |
| 360 | 330 | } | |
| @@ -363,8 +333,6 @@ var xFlapGetTransitionType func(uintptr) FlapTransitionType | |||
| 363 | 333 | ||
| 364 | 334 | // Gets the type of animation used for reveal and fold transitions in @self. | |
| 365 | 335 | func (x *Flap) GetTransitionType() FlapTransitionType { | |
| 366 | - | core.LazyRegister(&xFlapGetTransitionType, "ADW", "adw_flap_get_transition_type", false) | |
| 367 | - | ||
| 368 | 336 | cret := xFlapGetTransitionType(x.GoPointer()) | |
| 369 | 337 | return cret | |
| 370 | 338 | } | |
| @@ -375,8 +343,6 @@ var xFlapSetContent func(uintptr, uintptr) | |||
| 375 | 343 | // | |
| 376 | 344 | // It's always displayed when unfolded, and partially visible when folded. | |
| 377 | 345 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | |
| 378 | - | core.LazyRegister(&xFlapSetContent, "ADW", "adw_flap_set_content", false) | |
| 379 | - | ||
| 380 | 346 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | |
| 381 | 347 | } | |
| 382 | 348 | ||
| @@ -386,8 +352,6 @@ var xFlapSetFlap func(uintptr, uintptr) | |||
| 386 | 352 | // | |
| 387 | 353 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | |
| 388 | 354 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | |
| 389 | - | core.LazyRegister(&xFlapSetFlap, "ADW", "adw_flap_set_flap", false) | |
| 390 | - | ||
| 391 | 355 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | |
| 392 | 356 | } | |
| 393 | 357 | ||
| @@ -398,8 +362,6 @@ var xFlapSetFlapPosition func(uintptr, gtk.PackType) | |||
| 398 | 362 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | |
| 399 | 363 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | |
| 400 | 364 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | |
| 401 | - | core.LazyRegister(&xFlapSetFlapPosition, "ADW", "adw_flap_set_flap_position", false) | |
| 402 | - | ||
| 403 | 365 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | |
| 404 | 366 | } | |
| 405 | 367 | ||
| @@ -407,8 +369,6 @@ var xFlapSetFoldDuration func(uintptr, uint) | |||
| 407 | 369 | ||
| 408 | 370 | // Sets the fold transition animation duration for @self, in milliseconds. | |
| 409 | 371 | func (x *Flap) SetFoldDuration(DurationVar uint) { | |
| 410 | - | core.LazyRegister(&xFlapSetFoldDuration, "ADW", "adw_flap_set_fold_duration", false) | |
| 411 | - | ||
| 412 | 372 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | |
| 413 | 373 | } | |
| 414 | 374 | ||
| @@ -416,8 +376,6 @@ var xFlapSetFoldPolicy func(uintptr, FlapFoldPolicy) | |||
| 416 | 376 | ||
| 417 | 377 | // Sets the fold policy for @self. | |
| 418 | 378 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | |
| 419 | - | core.LazyRegister(&xFlapSetFoldPolicy, "ADW", "adw_flap_set_fold_policy", false) | |
| 420 | - | ||
| 421 | 379 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | |
| 422 | 380 | } | |
| 423 | 381 | ||
| @@ -432,8 +390,6 @@ var xFlapSetFoldThresholdPolicy func(uintptr, FoldThresholdPolicy) | |||
| 432 | 390 | // This can be useful if you have a long ellipsizing label and want to let it | |
| 433 | 391 | // ellipsize instead of immediately folding. | |
| 434 | 392 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | |
| 435 | - | core.LazyRegister(&xFlapSetFoldThresholdPolicy, "ADW", "adw_flap_set_fold_threshold_policy", false) | |
| 436 | - | ||
| 437 | 393 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | |
| 438 | 394 | } | |
| 439 | 395 | ||
| @@ -445,8 +401,6 @@ var xFlapSetLocked func(uintptr, bool) | |||
| 445 | 401 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | |
| 446 | 402 | // [property@Flap:reveal-flap] value never changes on its own. | |
| 447 | 403 | func (x *Flap) SetLocked(LockedVar bool) { | |
| 448 | - | core.LazyRegister(&xFlapSetLocked, "ADW", "adw_flap_set_locked", false) | |
| 449 | - | ||
| 450 | 404 | xFlapSetLocked(x.GoPointer(), LockedVar) | |
| 451 | 405 | } | |
| 452 | 406 | ||
| @@ -458,8 +412,6 @@ var xFlapSetModal func(uintptr, bool) | |||
| 458 | 412 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | |
| 459 | 413 | // passed through to the content widget. | |
| 460 | 414 | func (x *Flap) SetModal(ModalVar bool) { | |
| 461 | - | core.LazyRegister(&xFlapSetModal, "ADW", "adw_flap_set_modal", false) | |
| 462 | - | ||
| 463 | 415 | xFlapSetModal(x.GoPointer(), ModalVar) | |
| 464 | 416 | } | |
| 465 | 417 | ||
| @@ -467,8 +419,6 @@ var xFlapSetRevealFlap func(uintptr, bool) | |||
| 467 | 419 | ||
| 468 | 420 | // Sets whether the flap widget is revealed for @self. | |
| 469 | 421 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | |
| 470 | - | core.LazyRegister(&xFlapSetRevealFlap, "ADW", "adw_flap_set_reveal_flap", false) | |
| 471 | - | ||
| 472 | 422 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | |
| 473 | 423 | } | |
| 474 | 424 | ||
| @@ -482,8 +432,6 @@ var xFlapSetRevealParams func(uintptr, *SpringParams) | |||
| 482 | 432 | // adw_spring_params_new (1, 0.5, 500) | |
| 483 | 433 | // ``` | |
| 484 | 434 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | |
| 485 | - | core.LazyRegister(&xFlapSetRevealParams, "ADW", "adw_flap_set_reveal_params", false) | |
| 486 | - | ||
| 487 | 435 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | |
| 488 | 436 | } | |
| 489 | 437 | ||
| @@ -495,8 +443,6 @@ var xFlapSetSeparator func(uintptr, uintptr) | |||
| 495 | 443 | // When exactly it's visible depends on the [property@Flap:transition-type] | |
| 496 | 444 | // value. | |
| 497 | 445 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | |
| 498 | - | core.LazyRegister(&xFlapSetSeparator, "ADW", "adw_flap_set_separator", false) | |
| 499 | - | ||
| 500 | 446 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | |
| 501 | 447 | } | |
| 502 | 448 | ||
| @@ -507,8 +453,6 @@ var xFlapSetSwipeToClose func(uintptr, bool) | |||
| 507 | 453 | // The area that can be swiped depends on the [property@Flap:transition-type] | |
| 508 | 454 | // value. | |
| 509 | 455 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | |
| 510 | - | core.LazyRegister(&xFlapSetSwipeToClose, "ADW", "adw_flap_set_swipe_to_close", false) | |
| 511 | - | ||
| 512 | 456 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | |
| 513 | 457 | } | |
| 514 | 458 | ||
| @@ -519,8 +463,6 @@ var xFlapSetSwipeToOpen func(uintptr, bool) | |||
| 519 | 463 | // The area that can be swiped depends on the [property@Flap:transition-type] | |
| 520 | 464 | // value. | |
| 521 | 465 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | |
| 522 | - | core.LazyRegister(&xFlapSetSwipeToOpen, "ADW", "adw_flap_set_swipe_to_open", false) | |
| 523 | - | ||
| 524 | 466 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | |
| 525 | 467 | } | |
| 526 | 468 | ||
| @@ -533,8 +475,6 @@ var xFlapSetTransitionType func(uintptr, FlapTransitionType) | |||
| 533 | 475 | // the [`.background`](style-classes.html#background) style class to it if this | |
| 534 | 476 | // is unwanted. | |
| 535 | 477 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | |
| 536 | - | core.LazyRegister(&xFlapSetTransitionType, "ADW", "adw_flap_set_transition_type", false) | |
| 537 | - | ||
| 538 | 478 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | |
| 539 | 479 | } | |
| 540 | 480 | ||
| @@ -1046,4 +986,51 @@ func (x *Flap) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 1046 | 986 | func init() { | |
| 1047 | 987 | core.SetPackageName("ADW", "libadwaita-1") | |
| 1048 | 988 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 989 | + | var libs []uintptr | |
| 990 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 991 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 992 | + | if err != nil { | |
| 993 | + | panic(err) | |
| 994 | + | } | |
| 995 | + | libs = append(libs, lib) | |
| 996 | + | } | |
| 997 | + | ||
| 998 | + | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, libs, "adw_flap_fold_policy_get_type") | |
| 999 | + | ||
| 1000 | + | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, libs, "adw_flap_transition_type_get_type") | |
| 1001 | + | ||
| 1002 | + | core.PuregoSafeRegister(&xFlapGLibType, libs, "adw_flap_get_type") | |
| 1003 | + | ||
| 1004 | + | core.PuregoSafeRegister(&xNewFlap, libs, "adw_flap_new") | |
| 1005 | + | ||
| 1006 | + | core.PuregoSafeRegister(&xFlapGetContent, libs, "adw_flap_get_content") | |
| 1007 | + | core.PuregoSafeRegister(&xFlapGetFlap, libs, "adw_flap_get_flap") | |
| 1008 | + | core.PuregoSafeRegister(&xFlapGetFlapPosition, libs, "adw_flap_get_flap_position") | |
| 1009 | + | core.PuregoSafeRegister(&xFlapGetFoldDuration, libs, "adw_flap_get_fold_duration") | |
| 1010 | + | core.PuregoSafeRegister(&xFlapGetFoldPolicy, libs, "adw_flap_get_fold_policy") | |
| 1011 | + | core.PuregoSafeRegister(&xFlapGetFoldThresholdPolicy, libs, "adw_flap_get_fold_threshold_policy") | |
| 1012 | + | core.PuregoSafeRegister(&xFlapGetFolded, libs, "adw_flap_get_folded") | |
| 1013 | + | core.PuregoSafeRegister(&xFlapGetLocked, libs, "adw_flap_get_locked") | |
| 1014 | + | core.PuregoSafeRegister(&xFlapGetModal, libs, "adw_flap_get_modal") | |
| 1015 | + | core.PuregoSafeRegister(&xFlapGetRevealFlap, libs, "adw_flap_get_reveal_flap") | |
| 1016 | + | core.PuregoSafeRegister(&xFlapGetRevealParams, libs, "adw_flap_get_reveal_params") | |
| 1017 | + | core.PuregoSafeRegister(&xFlapGetRevealProgress, libs, "adw_flap_get_reveal_progress") | |
| 1018 | + | core.PuregoSafeRegister(&xFlapGetSeparator, libs, "adw_flap_get_separator") | |
| 1019 | + | core.PuregoSafeRegister(&xFlapGetSwipeToClose, libs, "adw_flap_get_swipe_to_close") | |
| 1020 | + | core.PuregoSafeRegister(&xFlapGetSwipeToOpen, libs, "adw_flap_get_swipe_to_open") | |
| 1021 | + | core.PuregoSafeRegister(&xFlapGetTransitionType, libs, "adw_flap_get_transition_type") | |
| 1022 | + | core.PuregoSafeRegister(&xFlapSetContent, libs, "adw_flap_set_content") | |
| 1023 | + | core.PuregoSafeRegister(&xFlapSetFlap, libs, "adw_flap_set_flap") | |
| 1024 | + | core.PuregoSafeRegister(&xFlapSetFlapPosition, libs, "adw_flap_set_flap_position") | |
| 1025 | + | core.PuregoSafeRegister(&xFlapSetFoldDuration, libs, "adw_flap_set_fold_duration") | |
| 1026 | + | core.PuregoSafeRegister(&xFlapSetFoldPolicy, libs, "adw_flap_set_fold_policy") | |
| 1027 | + | core.PuregoSafeRegister(&xFlapSetFoldThresholdPolicy, libs, "adw_flap_set_fold_threshold_policy") | |
| 1028 | + | core.PuregoSafeRegister(&xFlapSetLocked, libs, "adw_flap_set_locked") | |
| 1029 | + | core.PuregoSafeRegister(&xFlapSetModal, libs, "adw_flap_set_modal") | |
| 1030 | + | core.PuregoSafeRegister(&xFlapSetRevealFlap, libs, "adw_flap_set_reveal_flap") | |
| 1031 | + | core.PuregoSafeRegister(&xFlapSetRevealParams, libs, "adw_flap_set_reveal_params") | |
| 1032 | + | core.PuregoSafeRegister(&xFlapSetSeparator, libs, "adw_flap_set_separator") | |
| 1033 | + | core.PuregoSafeRegister(&xFlapSetSwipeToClose, libs, "adw_flap_set_swipe_to_close") | |
| 1034 | + | core.PuregoSafeRegister(&xFlapSetSwipeToOpen, libs, "adw_flap_set_swipe_to_open") | |
| 1035 | + | core.PuregoSafeRegister(&xFlapSetTransitionType, libs, "adw_flap_set_transition_type") | |
| 1049 | 1036 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gdk" | 10 | "github.com/bnema/puregotk/v4/gdk" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject" | 11 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -36,7 +37,6 @@ type FlapFoldPolicy int | |||||
| 36 | var xFlapFoldPolicyGLibType func() types.GType | 37 | var xFlapFoldPolicyGLibType func() types.GType | ||
| 37 | 38 | ||||
| 38 | func FlapFoldPolicyGLibType() types.GType { | 39 | func FlapFoldPolicyGLibType() types.GType { | ||
| 39 | - | core.LazyRegister(&xFlapFoldPolicyGLibType, "ADW", "adw_flap_fold_policy_get_type", false) | |||
| 40 | return xFlapFoldPolicyGLibType() | 40 | return xFlapFoldPolicyGLibType() | ||
| 41 | } | 41 | } | ||
| 42 | 42 | ||||
| @@ -62,7 +62,6 @@ type FlapTransitionType int | |||||
| 62 | var xFlapTransitionTypeGLibType func() types.GType | 62 | var xFlapTransitionTypeGLibType func() types.GType | ||
| 63 | 63 | ||||
| 64 | func FlapTransitionTypeGLibType() types.GType { | 64 | func FlapTransitionTypeGLibType() types.GType { | ||
| 65 | - | core.LazyRegister(&xFlapTransitionTypeGLibType, "ADW", "adw_flap_transition_type_get_type", false) | |||
| 66 | return xFlapTransitionTypeGLibType() | 65 | return xFlapTransitionTypeGLibType() | ||
| 67 | } | 66 | } | ||
| 68 | 67 | ||||
| @@ -148,7 +147,6 @@ type Flap struct { | |||||
| 148 | var xFlapGLibType func() types.GType | 147 | var xFlapGLibType func() types.GType | ||
| 149 | 148 | ||||
| 150 | func FlapGLibType() types.GType { | 149 | func FlapGLibType() types.GType { | ||
| 151 | - | core.LazyRegister(&xFlapGLibType, "ADW", "adw_flap_get_type", false) | |||
| 152 | return xFlapGLibType() | 150 | return xFlapGLibType() | ||
| 153 | } | 151 | } | ||
| 154 | 152 | ||||
| @@ -162,7 +160,6 @@ var xNewFlap func() uintptr | |||||
| 162 | 160 | ||||
| 163 | // Creates a new `AdwFlap`. | 161 | // Creates a new `AdwFlap`. | ||
| 164 | func NewFlap() *Flap { | 162 | func NewFlap() *Flap { | ||
| 165 | - | core.LazyRegister(&xNewFlap, "ADW", "adw_flap_new", false) | |||
| 166 | var cls *Flap | 163 | var cls *Flap | ||
| 167 | 164 | ||||
| 168 | cret := xNewFlap() | 165 | cret := xNewFlap() | ||
| @@ -180,7 +177,6 @@ var xFlapGetContent func(uintptr) uintptr | |||||
| 180 | 177 | ||||
| 181 | // Gets the content widget for @self. | 178 | // Gets the content widget for @self. | ||
| 182 | func (x *Flap) GetContent() *gtk.Widget { | 179 | func (x *Flap) GetContent() *gtk.Widget { | ||
| 183 | - | core.LazyRegister(&xFlapGetContent, "ADW", "adw_flap_get_content", false) | |||
| 184 | var cls *gtk.Widget | 180 | var cls *gtk.Widget | ||
| 185 | 181 | ||||
| 186 | cret := xFlapGetContent(x.GoPointer()) | 182 | cret := xFlapGetContent(x.GoPointer()) | ||
| @@ -198,7 +194,6 @@ var xFlapGetFlap func(uintptr) uintptr | |||||
| 198 | 194 | ||||
| 199 | // Gets the flap widget for @self. | 195 | // Gets the flap widget for @self. | ||
| 200 | func (x *Flap) GetFlap() *gtk.Widget { | 196 | func (x *Flap) GetFlap() *gtk.Widget { | ||
| 201 | - | core.LazyRegister(&xFlapGetFlap, "ADW", "adw_flap_get_flap", false) | |||
| 202 | var cls *gtk.Widget | 197 | var cls *gtk.Widget | ||
| 203 | 198 | ||||
| 204 | cret := xFlapGetFlap(x.GoPointer()) | 199 | cret := xFlapGetFlap(x.GoPointer()) | ||
| @@ -216,8 +211,6 @@ var xFlapGetFlapPosition func(uintptr) gtk.PackType | |||||
| 216 | 211 | ||||
| 217 | // Gets the flap position for @self. | 212 | // Gets the flap position for @self. | ||
| 218 | func (x *Flap) GetFlapPosition() gtk.PackType { | 213 | func (x *Flap) GetFlapPosition() gtk.PackType { | ||
| 219 | - | core.LazyRegister(&xFlapGetFlapPosition, "ADW", "adw_flap_get_flap_position", false) | |||
| 220 | - | ||||
| 221 | cret := xFlapGetFlapPosition(x.GoPointer()) | 214 | cret := xFlapGetFlapPosition(x.GoPointer()) | ||
| 222 | return cret | 215 | return cret | ||
| 223 | } | 216 | } | ||
| @@ -226,8 +219,6 @@ var xFlapGetFoldDuration func(uintptr) uint | |||||
| 226 | 219 | ||||
| 227 | // Gets the fold transition animation duration for @self, in milliseconds. | 220 | // Gets the fold transition animation duration for @self, in milliseconds. | ||
| 228 | func (x *Flap) GetFoldDuration() uint { | 221 | func (x *Flap) GetFoldDuration() uint { | ||
| 229 | - | core.LazyRegister(&xFlapGetFoldDuration, "ADW", "adw_flap_get_fold_duration", false) | |||
| 230 | - | ||||
| 231 | cret := xFlapGetFoldDuration(x.GoPointer()) | 222 | cret := xFlapGetFoldDuration(x.GoPointer()) | ||
| 232 | return cret | 223 | return cret | ||
| 233 | } | 224 | } | ||
| @@ -236,8 +227,6 @@ var xFlapGetFoldPolicy func(uintptr) FlapFoldPolicy | |||||
| 236 | 227 | ||||
| 237 | // Gets the fold policy for @self. | 228 | // Gets the fold policy for @self. | ||
| 238 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | 229 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | ||
| 239 | - | core.LazyRegister(&xFlapGetFoldPolicy, "ADW", "adw_flap_get_fold_policy", false) | |||
| 240 | - | ||||
| 241 | cret := xFlapGetFoldPolicy(x.GoPointer()) | 230 | cret := xFlapGetFoldPolicy(x.GoPointer()) | ||
| 242 | return cret | 231 | return cret | ||
| 243 | } | 232 | } | ||
| @@ -246,8 +235,6 @@ var xFlapGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||||
| 246 | 235 | ||||
| 247 | // Gets the fold threshold policy for @self. | 236 | // Gets the fold threshold policy for @self. | ||
| 248 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | 237 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | ||
| 249 | - | core.LazyRegister(&xFlapGetFoldThresholdPolicy, "ADW", "adw_flap_get_fold_threshold_policy", false) | |||
| 250 | - | ||||
| 251 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | 238 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | ||
| 252 | return cret | 239 | return cret | ||
| 253 | } | 240 | } | ||
| @@ -258,8 +245,6 @@ var xFlapGetFolded func(uintptr) bool | |||||
| 258 | // | 245 | // | ||
| 259 | // See [property@Flap:fold-policy]. | 246 | // See [property@Flap:fold-policy]. | ||
| 260 | func (x *Flap) GetFolded() bool { | 247 | func (x *Flap) GetFolded() bool { | ||
| 261 | - | core.LazyRegister(&xFlapGetFolded, "ADW", "adw_flap_get_folded", false) | |||
| 262 | - | ||||
| 263 | cret := xFlapGetFolded(x.GoPointer()) | 248 | cret := xFlapGetFolded(x.GoPointer()) | ||
| 264 | return cret | 249 | return cret | ||
| 265 | } | 250 | } | ||
| @@ -268,8 +253,6 @@ var xFlapGetLocked func(uintptr) bool | |||||
| 268 | 253 | ||||
| 269 | // Gets whether @self is locked. | 254 | // Gets whether @self is locked. | ||
| 270 | func (x *Flap) GetLocked() bool { | 255 | func (x *Flap) GetLocked() bool { | ||
| 271 | - | core.LazyRegister(&xFlapGetLocked, "ADW", "adw_flap_get_locked", false) | |||
| 272 | - | ||||
| 273 | cret := xFlapGetLocked(x.GoPointer()) | 256 | cret := xFlapGetLocked(x.GoPointer()) | ||
| 274 | return cret | 257 | return cret | ||
| 275 | } | 258 | } | ||
| @@ -278,8 +261,6 @@ var xFlapGetModal func(uintptr) bool | |||||
| 278 | 261 | ||||
| 279 | // Gets whether @self is modal. | 262 | // Gets whether @self is modal. | ||
| 280 | func (x *Flap) GetModal() bool { | 263 | func (x *Flap) GetModal() bool { | ||
| 281 | - | core.LazyRegister(&xFlapGetModal, "ADW", "adw_flap_get_modal", false) | |||
| 282 | - | ||||
| 283 | cret := xFlapGetModal(x.GoPointer()) | 264 | cret := xFlapGetModal(x.GoPointer()) | ||
| 284 | return cret | 265 | return cret | ||
| 285 | } | 266 | } | ||
| @@ -288,8 +269,6 @@ var xFlapGetRevealFlap func(uintptr) bool | |||||
| 288 | 269 | ||||
| 289 | // Gets whether the flap widget is revealed for @self. | 270 | // Gets whether the flap widget is revealed for @self. | ||
| 290 | func (x *Flap) GetRevealFlap() bool { | 271 | func (x *Flap) GetRevealFlap() bool { | ||
| 291 | - | core.LazyRegister(&xFlapGetRevealFlap, "ADW", "adw_flap_get_reveal_flap", false) | |||
| 292 | - | ||||
| 293 | cret := xFlapGetRevealFlap(x.GoPointer()) | 272 | cret := xFlapGetRevealFlap(x.GoPointer()) | ||
| 294 | return cret | 273 | return cret | ||
| 295 | } | 274 | } | ||
| @@ -298,8 +277,6 @@ var xFlapGetRevealParams func(uintptr) uintptr | |||||
| 298 | 277 | ||||
| 299 | // Gets the reveal animation spring parameters for @self. | 278 | // Gets the reveal animation spring parameters for @self. | ||
| 300 | func (x *Flap) GetRevealParams() *SpringParams { | 279 | func (x *Flap) GetRevealParams() *SpringParams { | ||
| 301 | - | core.LazyRegister(&xFlapGetRevealParams, "ADW", "adw_flap_get_reveal_params", false) | |||
| 302 | - | ||||
| 303 | cret := xFlapGetRevealParams(x.GoPointer()) | 280 | cret := xFlapGetRevealParams(x.GoPointer()) | ||
| 304 | if cret == 0 { | 281 | if cret == 0 { | ||
| 305 | return nil | 282 | return nil | ||
| @@ -315,8 +292,6 @@ var xFlapGetRevealProgress func(uintptr) float64 | |||||
| 315 | // | 292 | // | ||
| 316 | // See [property@Flap:reveal-flap]. | 293 | // See [property@Flap:reveal-flap]. | ||
| 317 | func (x *Flap) GetRevealProgress() float64 { | 294 | func (x *Flap) GetRevealProgress() float64 { | ||
| 318 | - | core.LazyRegister(&xFlapGetRevealProgress, "ADW", "adw_flap_get_reveal_progress", false) | |||
| 319 | - | ||||
| 320 | cret := xFlapGetRevealProgress(x.GoPointer()) | 295 | cret := xFlapGetRevealProgress(x.GoPointer()) | ||
| 321 | return cret | 296 | return cret | ||
| 322 | } | 297 | } | ||
| @@ -325,7 +300,6 @@ var xFlapGetSeparator func(uintptr) uintptr | |||||
| 325 | 300 | ||||
| 326 | // Gets the separator widget for @self. | 301 | // Gets the separator widget for @self. | ||
| 327 | func (x *Flap) GetSeparator() *gtk.Widget { | 302 | func (x *Flap) GetSeparator() *gtk.Widget { | ||
| 328 | - | core.LazyRegister(&xFlapGetSeparator, "ADW", "adw_flap_get_separator", false) | |||
| 329 | var cls *gtk.Widget | 303 | var cls *gtk.Widget | ||
| 330 | 304 | ||||
| 331 | cret := xFlapGetSeparator(x.GoPointer()) | 305 | cret := xFlapGetSeparator(x.GoPointer()) | ||
| @@ -343,8 +317,6 @@ var xFlapGetSwipeToClose func(uintptr) bool | |||||
| 343 | 317 | ||||
| 344 | // Gets whether @self can be closed with a swipe gesture. | 318 | // Gets whether @self can be closed with a swipe gesture. | ||
| 345 | func (x *Flap) GetSwipeToClose() bool { | 319 | func (x *Flap) GetSwipeToClose() bool { | ||
| 346 | - | core.LazyRegister(&xFlapGetSwipeToClose, "ADW", "adw_flap_get_swipe_to_close", false) | |||
| 347 | - | ||||
| 348 | cret := xFlapGetSwipeToClose(x.GoPointer()) | 320 | cret := xFlapGetSwipeToClose(x.GoPointer()) | ||
| 349 | return cret | 321 | return cret | ||
| 350 | } | 322 | } | ||
| @@ -353,8 +325,6 @@ var xFlapGetSwipeToOpen func(uintptr) bool | |||||
| 353 | 325 | ||||
| 354 | // Gets whether @self can be opened with a swipe gesture. | 326 | // Gets whether @self can be opened with a swipe gesture. | ||
| 355 | func (x *Flap) GetSwipeToOpen() bool { | 327 | func (x *Flap) GetSwipeToOpen() bool { | ||
| 356 | - | core.LazyRegister(&xFlapGetSwipeToOpen, "ADW", "adw_flap_get_swipe_to_open", false) | |||
| 357 | - | ||||
| 358 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | 328 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | ||
| 359 | return cret | 329 | return cret | ||
| 360 | } | 330 | } | ||
| @@ -363,8 +333,6 @@ var xFlapGetTransitionType func(uintptr) FlapTransitionType | |||||
| 363 | 333 | ||||
| 364 | // Gets the type of animation used for reveal and fold transitions in @self. | 334 | // Gets the type of animation used for reveal and fold transitions in @self. | ||
| 365 | func (x *Flap) GetTransitionType() FlapTransitionType { | 335 | func (x *Flap) GetTransitionType() FlapTransitionType { | ||
| 366 | - | core.LazyRegister(&xFlapGetTransitionType, "ADW", "adw_flap_get_transition_type", false) | |||
| 367 | - | ||||
| 368 | cret := xFlapGetTransitionType(x.GoPointer()) | 336 | cret := xFlapGetTransitionType(x.GoPointer()) | ||
| 369 | return cret | 337 | return cret | ||
| 370 | } | 338 | } | ||
| @@ -375,8 +343,6 @@ var xFlapSetContent func(uintptr, uintptr) | |||||
| 375 | // | 343 | // | ||
| 376 | // It's always displayed when unfolded, and partially visible when folded. | 344 | // It's always displayed when unfolded, and partially visible when folded. | ||
| 377 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | 345 | func (x *Flap) SetContent(ContentVar *gtk.Widget) { | ||
| 378 | - | core.LazyRegister(&xFlapSetContent, "ADW", "adw_flap_set_content", false) | |||
| 379 | - | ||||
| 380 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | 346 | xFlapSetContent(x.GoPointer(), ContentVar.GoPointer()) | ||
| 381 | } | 347 | } | ||
| 382 | 348 | ||||
| @@ -386,8 +352,6 @@ var xFlapSetFlap func(uintptr, uintptr) | |||||
| 386 | // | 352 | // | ||
| 387 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | 353 | // It's only visible when [property@Flap:reveal-progress] is greater than 0. | ||
| 388 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | 354 | func (x *Flap) SetFlap(FlapVar *gtk.Widget) { | ||
| 389 | - | core.LazyRegister(&xFlapSetFlap, "ADW", "adw_flap_set_flap", false) | |||
| 390 | - | ||||
| 391 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | 355 | xFlapSetFlap(x.GoPointer(), FlapVar.GoPointer()) | ||
| 392 | } | 356 | } | ||
| 393 | 357 | ||||
| @@ -398,8 +362,6 @@ var xFlapSetFlapPosition func(uintptr, gtk.PackType) | |||||
| 398 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | 362 | // If it's set to [enum@Gtk.PackType.start], the flap is displayed before the | ||
| 399 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | 363 | // content, if [enum@Gtk.PackType.end], it's displayed after the content. | ||
| 400 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | 364 | func (x *Flap) SetFlapPosition(PositionVar gtk.PackType) { | ||
| 401 | - | core.LazyRegister(&xFlapSetFlapPosition, "ADW", "adw_flap_set_flap_position", false) | |||
| 402 | - | ||||
| 403 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | 365 | xFlapSetFlapPosition(x.GoPointer(), PositionVar) | ||
| 404 | } | 366 | } | ||
| 405 | 367 | ||||
| @@ -407,8 +369,6 @@ var xFlapSetFoldDuration func(uintptr, uint) | |||||
| 407 | 369 | ||||
| 408 | // Sets the fold transition animation duration for @self, in milliseconds. | 370 | // Sets the fold transition animation duration for @self, in milliseconds. | ||
| 409 | func (x *Flap) SetFoldDuration(DurationVar uint) { | 371 | func (x *Flap) SetFoldDuration(DurationVar uint) { | ||
| 410 | - | core.LazyRegister(&xFlapSetFoldDuration, "ADW", "adw_flap_set_fold_duration", false) | |||
| 411 | - | ||||
| 412 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | 372 | xFlapSetFoldDuration(x.GoPointer(), DurationVar) | ||
| 413 | } | 373 | } | ||
| 414 | 374 | ||||
| @@ -416,8 +376,6 @@ var xFlapSetFoldPolicy func(uintptr, FlapFoldPolicy) | |||||
| 416 | 376 | ||||
| 417 | // Sets the fold policy for @self. | 377 | // Sets the fold policy for @self. | ||
| 418 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | 378 | func (x *Flap) SetFoldPolicy(PolicyVar FlapFoldPolicy) { | ||
| 419 | - | core.LazyRegister(&xFlapSetFoldPolicy, "ADW", "adw_flap_set_fold_policy", false) | |||
| 420 | - | ||||
| 421 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | 379 | xFlapSetFoldPolicy(x.GoPointer(), PolicyVar) | ||
| 422 | } | 380 | } | ||
| 423 | 381 | ||||
| @@ -432,8 +390,6 @@ var xFlapSetFoldThresholdPolicy func(uintptr, FoldThresholdPolicy) | |||||
| 432 | // This can be useful if you have a long ellipsizing label and want to let it | 390 | // This can be useful if you have a long ellipsizing label and want to let it | ||
| 433 | // ellipsize instead of immediately folding. | 391 | // ellipsize instead of immediately folding. | ||
| 434 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | 392 | func (x *Flap) SetFoldThresholdPolicy(PolicyVar FoldThresholdPolicy) { | ||
| 435 | - | core.LazyRegister(&xFlapSetFoldThresholdPolicy, "ADW", "adw_flap_set_fold_threshold_policy", false) | |||
| 436 | - | ||||
| 437 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | 393 | xFlapSetFoldThresholdPolicy(x.GoPointer(), PolicyVar) | ||
| 438 | } | 394 | } | ||
| 439 | 395 | ||||
| @@ -445,8 +401,6 @@ var xFlapSetLocked func(uintptr, bool) | |||||
| 445 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | 401 | // unfolding it when the flap is not revealed opens it. If `TRUE`, | ||
| 446 | // [property@Flap:reveal-flap] value never changes on its own. | 402 | // [property@Flap:reveal-flap] value never changes on its own. | ||
| 447 | func (x *Flap) SetLocked(LockedVar bool) { | 403 | func (x *Flap) SetLocked(LockedVar bool) { | ||
| 448 | - | core.LazyRegister(&xFlapSetLocked, "ADW", "adw_flap_set_locked", false) | |||
| 449 | - | ||||
| 450 | xFlapSetLocked(x.GoPointer(), LockedVar) | 404 | xFlapSetLocked(x.GoPointer(), LockedVar) | ||
| 451 | } | 405 | } | ||
| 452 | 406 | ||||
| @@ -458,8 +412,6 @@ var xFlapSetModal func(uintptr, bool) | |||||
| 458 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | 412 | // pressing the <kbd>Esc</kbd> key, will close the flap. If `FALSE`, clicks are | ||
| 459 | // passed through to the content widget. | 413 | // passed through to the content widget. | ||
| 460 | func (x *Flap) SetModal(ModalVar bool) { | 414 | func (x *Flap) SetModal(ModalVar bool) { | ||
| 461 | - | core.LazyRegister(&xFlapSetModal, "ADW", "adw_flap_set_modal", false) | |||
| 462 | - | ||||
| 463 | xFlapSetModal(x.GoPointer(), ModalVar) | 415 | xFlapSetModal(x.GoPointer(), ModalVar) | ||
| 464 | } | 416 | } | ||
| 465 | 417 | ||||
| @@ -467,8 +419,6 @@ var xFlapSetRevealFlap func(uintptr, bool) | |||||
| 467 | 419 | ||||
| 468 | // Sets whether the flap widget is revealed for @self. | 420 | // Sets whether the flap widget is revealed for @self. | ||
| 469 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | 421 | func (x *Flap) SetRevealFlap(RevealFlapVar bool) { | ||
| 470 | - | core.LazyRegister(&xFlapSetRevealFlap, "ADW", "adw_flap_set_reveal_flap", false) | |||
| 471 | - | ||||
| 472 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | 422 | xFlapSetRevealFlap(x.GoPointer(), RevealFlapVar) | ||
| 473 | } | 423 | } | ||
| 474 | 424 | ||||
| @@ -482,8 +432,6 @@ var xFlapSetRevealParams func(uintptr, *SpringParams) | |||||
| 482 | // adw_spring_params_new (1, 0.5, 500) | 432 | // adw_spring_params_new (1, 0.5, 500) | ||
| 483 | // ``` | 433 | // ``` | ||
| 484 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | 434 | func (x *Flap) SetRevealParams(ParamsVar *SpringParams) { | ||
| 485 | - | core.LazyRegister(&xFlapSetRevealParams, "ADW", "adw_flap_set_reveal_params", false) | |||
| 486 | - | ||||
| 487 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | 435 | xFlapSetRevealParams(x.GoPointer(), ParamsVar) | ||
| 488 | } | 436 | } | ||
| 489 | 437 | ||||
| @@ -495,8 +443,6 @@ var xFlapSetSeparator func(uintptr, uintptr) | |||||
| 495 | // When exactly it's visible depends on the [property@Flap:transition-type] | 443 | // When exactly it's visible depends on the [property@Flap:transition-type] | ||
| 496 | // value. | 444 | // value. | ||
| 497 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | 445 | func (x *Flap) SetSeparator(SeparatorVar *gtk.Widget) { | ||
| 498 | - | core.LazyRegister(&xFlapSetSeparator, "ADW", "adw_flap_set_separator", false) | |||
| 499 | - | ||||
| 500 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | 446 | xFlapSetSeparator(x.GoPointer(), SeparatorVar.GoPointer()) | ||
| 501 | } | 447 | } | ||
| 502 | 448 | ||||
| @@ -507,8 +453,6 @@ var xFlapSetSwipeToClose func(uintptr, bool) | |||||
| 507 | // The area that can be swiped depends on the [property@Flap:transition-type] | 453 | // The area that can be swiped depends on the [property@Flap:transition-type] | ||
| 508 | // value. | 454 | // value. | ||
| 509 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | 455 | func (x *Flap) SetSwipeToClose(SwipeToCloseVar bool) { | ||
| 510 | - | core.LazyRegister(&xFlapSetSwipeToClose, "ADW", "adw_flap_set_swipe_to_close", false) | |||
| 511 | - | ||||
| 512 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | 456 | xFlapSetSwipeToClose(x.GoPointer(), SwipeToCloseVar) | ||
| 513 | } | 457 | } | ||
| 514 | 458 | ||||
| @@ -519,8 +463,6 @@ var xFlapSetSwipeToOpen func(uintptr, bool) | |||||
| 519 | // The area that can be swiped depends on the [property@Flap:transition-type] | 463 | // The area that can be swiped depends on the [property@Flap:transition-type] | ||
| 520 | // value. | 464 | // value. | ||
| 521 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | 465 | func (x *Flap) SetSwipeToOpen(SwipeToOpenVar bool) { | ||
| 522 | - | core.LazyRegister(&xFlapSetSwipeToOpen, "ADW", "adw_flap_set_swipe_to_open", false) | |||
| 523 | - | ||||
| 524 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | 466 | xFlapSetSwipeToOpen(x.GoPointer(), SwipeToOpenVar) | ||
| 525 | } | 467 | } | ||
| 526 | 468 | ||||
| @@ -533,8 +475,6 @@ var xFlapSetTransitionType func(uintptr, FlapTransitionType) | |||||
| 533 | // the [`.background`](style-classes.html#background) style class to it if this | 475 | // the [`.background`](style-classes.html#background) style class to it if this | ||
| 534 | // is unwanted. | 476 | // is unwanted. | ||
| 535 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | 477 | func (x *Flap) SetTransitionType(TransitionTypeVar FlapTransitionType) { | ||
| 536 | - | core.LazyRegister(&xFlapSetTransitionType, "ADW", "adw_flap_set_transition_type", false) | |||
| 537 | - | ||||
| 538 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | 478 | xFlapSetTransitionType(x.GoPointer(), TransitionTypeVar) | ||
| 539 | } | 479 | } | ||
| 540 | 480 | ||||
| @@ -1046,4 +986,51 @@ func (x *Flap) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 1046 | func init() { | 986 | func init() { | ||
| 1047 | core.SetPackageName("ADW", "libadwaita-1") | 987 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 1048 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 988 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 989 | + | var libs []uintptr | |||
| 990 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 991 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 992 | + | if err != nil { | |||
| 993 | + | panic(err) | |||
| 994 | + | } | |||
| 995 | + | libs = append(libs, lib) | |||
| 996 | + | } | |||
| 997 | + | ||||
| 998 | + | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, libs, "adw_flap_fold_policy_get_type") | |||
| 999 | + | ||||
| 1000 | + | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, libs, "adw_flap_transition_type_get_type") | |||
| 1001 | + | ||||
| 1002 | + | core.PuregoSafeRegister(&xFlapGLibType, libs, "adw_flap_get_type") | |||
| 1003 | + | ||||
| 1004 | + | core.PuregoSafeRegister(&xNewFlap, libs, "adw_flap_new") | |||
| 1005 | + | ||||
| 1006 | + | core.PuregoSafeRegister(&xFlapGetContent, libs, "adw_flap_get_content") | |||
| 1007 | + | core.PuregoSafeRegister(&xFlapGetFlap, libs, "adw_flap_get_flap") | |||
| 1008 | + | core.PuregoSafeRegister(&xFlapGetFlapPosition, libs, "adw_flap_get_flap_position") | |||
| 1009 | + | core.PuregoSafeRegister(&xFlapGetFoldDuration, libs, "adw_flap_get_fold_duration") | |||
| 1010 | + | core.PuregoSafeRegister(&xFlapGetFoldPolicy, libs, "adw_flap_get_fold_policy") | |||
| 1011 | + | core.PuregoSafeRegister(&xFlapGetFoldThresholdPolicy, libs, "adw_flap_get_fold_threshold_policy") | |||
| 1012 | + | core.PuregoSafeRegister(&xFlapGetFolded, libs, "adw_flap_get_folded") | |||
| 1013 | + | core.PuregoSafeRegister(&xFlapGetLocked, libs, "adw_flap_get_locked") | |||
| 1014 | + | core.PuregoSafeRegister(&xFlapGetModal, libs, "adw_flap_get_modal") | |||
| 1015 | + | core.PuregoSafeRegister(&xFlapGetRevealFlap, libs, "adw_flap_get_reveal_flap") | |||
| 1016 | + | core.PuregoSafeRegister(&xFlapGetRevealParams, libs, "adw_flap_get_reveal_params") | |||
| 1017 | + | core.PuregoSafeRegister(&xFlapGetRevealProgress, libs, "adw_flap_get_reveal_progress") | |||
| 1018 | + | core.PuregoSafeRegister(&xFlapGetSeparator, libs, "adw_flap_get_separator") | |||
| 1019 | + | core.PuregoSafeRegister(&xFlapGetSwipeToClose, libs, "adw_flap_get_swipe_to_close") | |||
| 1020 | + | core.PuregoSafeRegister(&xFlapGetSwipeToOpen, libs, "adw_flap_get_swipe_to_open") | |||
| 1021 | + | core.PuregoSafeRegister(&xFlapGetTransitionType, libs, "adw_flap_get_transition_type") | |||
| 1022 | + | core.PuregoSafeRegister(&xFlapSetContent, libs, "adw_flap_set_content") | |||
| 1023 | + | core.PuregoSafeRegister(&xFlapSetFlap, libs, "adw_flap_set_flap") | |||
| 1024 | + | core.PuregoSafeRegister(&xFlapSetFlapPosition, libs, "adw_flap_set_flap_position") | |||
| 1025 | + | core.PuregoSafeRegister(&xFlapSetFoldDuration, libs, "adw_flap_set_fold_duration") | |||
| 1026 | + | core.PuregoSafeRegister(&xFlapSetFoldPolicy, libs, "adw_flap_set_fold_policy") | |||
| 1027 | + | core.PuregoSafeRegister(&xFlapSetFoldThresholdPolicy, libs, "adw_flap_set_fold_threshold_policy") | |||
| 1028 | + | core.PuregoSafeRegister(&xFlapSetLocked, libs, "adw_flap_set_locked") | |||
| 1029 | + | core.PuregoSafeRegister(&xFlapSetModal, libs, "adw_flap_set_modal") | |||
| 1030 | + | core.PuregoSafeRegister(&xFlapSetRevealFlap, libs, "adw_flap_set_reveal_flap") | |||
| 1031 | + | core.PuregoSafeRegister(&xFlapSetRevealParams, libs, "adw_flap_set_reveal_params") | |||
| 1032 | + | core.PuregoSafeRegister(&xFlapSetSeparator, libs, "adw_flap_set_separator") | |||
| 1033 | + | core.PuregoSafeRegister(&xFlapSetSwipeToClose, libs, "adw_flap_set_swipe_to_close") | |||
| 1034 | + | core.PuregoSafeRegister(&xFlapSetSwipeToOpen, libs, "adw_flap_set_swipe_to_open") | |||
| 1035 | + | core.PuregoSafeRegister(&xFlapSetTransitionType, libs, "adw_flap_set_transition_type") | |||
| 1049 | } | 1036 | } | ||