Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48
| @@ -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" | |
| @@ -178,7 +179,6 @@ type OverlaySplitView struct { | |||
| 178 | 179 | var xOverlaySplitViewGLibType func() types.GType | |
| 179 | 180 | ||
| 180 | 181 | func OverlaySplitViewGLibType() types.GType { | |
| 181 | - | core.LazyRegister(&xOverlaySplitViewGLibType, "ADW", "adw_overlay_split_view_get_type", false) | |
| 182 | 182 | return xOverlaySplitViewGLibType() | |
| 183 | 183 | } | |
| 184 | 184 | ||
| @@ -192,7 +192,6 @@ var xNewOverlaySplitView func() uintptr | |||
| 192 | 192 | ||
| 193 | 193 | // Creates a new `AdwOverlaySplitView`. | |
| 194 | 194 | func NewOverlaySplitView() *OverlaySplitView { | |
| 195 | - | core.LazyRegister(&xNewOverlaySplitView, "ADW", "adw_overlay_split_view_new", false) | |
| 196 | 195 | var cls *OverlaySplitView | |
| 197 | 196 | ||
| 198 | 197 | cret := xNewOverlaySplitView() | |
| @@ -210,8 +209,6 @@ var xOverlaySplitViewGetCollapsed func(uintptr) bool | |||
| 210 | 209 | ||
| 211 | 210 | // Gets whether @self is collapsed. | |
| 212 | 211 | func (x *OverlaySplitView) GetCollapsed() bool { | |
| 213 | - | core.LazyRegister(&xOverlaySplitViewGetCollapsed, "ADW", "adw_overlay_split_view_get_collapsed", false) | |
| 214 | - | ||
| 215 | 212 | cret := xOverlaySplitViewGetCollapsed(x.GoPointer()) | |
| 216 | 213 | return cret | |
| 217 | 214 | } | |
| @@ -220,7 +217,6 @@ var xOverlaySplitViewGetContent func(uintptr) uintptr | |||
| 220 | 217 | ||
| 221 | 218 | // Gets the content widget for @self. | |
| 222 | 219 | func (x *OverlaySplitView) GetContent() *gtk.Widget { | |
| 223 | - | core.LazyRegister(&xOverlaySplitViewGetContent, "ADW", "adw_overlay_split_view_get_content", false) | |
| 224 | 220 | var cls *gtk.Widget | |
| 225 | 221 | ||
| 226 | 222 | cret := xOverlaySplitViewGetContent(x.GoPointer()) | |
| @@ -238,8 +234,6 @@ var xOverlaySplitViewGetEnableHideGesture func(uintptr) bool | |||
| 238 | 234 | ||
| 239 | 235 | // Gets whether @self can be closed with a swipe gesture. | |
| 240 | 236 | func (x *OverlaySplitView) GetEnableHideGesture() bool { | |
| 241 | - | core.LazyRegister(&xOverlaySplitViewGetEnableHideGesture, "ADW", "adw_overlay_split_view_get_enable_hide_gesture", false) | |
| 242 | - | ||
| 243 | 237 | cret := xOverlaySplitViewGetEnableHideGesture(x.GoPointer()) | |
| 244 | 238 | return cret | |
| 245 | 239 | } | |
| @@ -248,8 +242,6 @@ var xOverlaySplitViewGetEnableShowGesture func(uintptr) bool | |||
| 248 | 242 | ||
| 249 | 243 | // Gets whether @self can be opened with an edge swipe gesture. | |
| 250 | 244 | func (x *OverlaySplitView) GetEnableShowGesture() bool { | |
| 251 | - | core.LazyRegister(&xOverlaySplitViewGetEnableShowGesture, "ADW", "adw_overlay_split_view_get_enable_show_gesture", false) | |
| 252 | - | ||
| 253 | 245 | cret := xOverlaySplitViewGetEnableShowGesture(x.GoPointer()) | |
| 254 | 246 | return cret | |
| 255 | 247 | } | |
| @@ -258,8 +250,6 @@ var xOverlaySplitViewGetMaxSidebarWidth func(uintptr) float64 | |||
| 258 | 250 | ||
| 259 | 251 | // Gets the maximum sidebar width for @self. | |
| 260 | 252 | func (x *OverlaySplitView) GetMaxSidebarWidth() float64 { | |
| 261 | - | core.LazyRegister(&xOverlaySplitViewGetMaxSidebarWidth, "ADW", "adw_overlay_split_view_get_max_sidebar_width", false) | |
| 262 | - | ||
| 263 | 253 | cret := xOverlaySplitViewGetMaxSidebarWidth(x.GoPointer()) | |
| 264 | 254 | return cret | |
| 265 | 255 | } | |
| @@ -268,8 +258,6 @@ var xOverlaySplitViewGetMinSidebarWidth func(uintptr) float64 | |||
| 268 | 258 | ||
| 269 | 259 | // Gets the minimum sidebar width for @self. | |
| 270 | 260 | func (x *OverlaySplitView) GetMinSidebarWidth() float64 { | |
| 271 | - | core.LazyRegister(&xOverlaySplitViewGetMinSidebarWidth, "ADW", "adw_overlay_split_view_get_min_sidebar_width", false) | |
| 272 | - | ||
| 273 | 261 | cret := xOverlaySplitViewGetMinSidebarWidth(x.GoPointer()) | |
| 274 | 262 | return cret | |
| 275 | 263 | } | |
| @@ -278,8 +266,6 @@ var xOverlaySplitViewGetPinSidebar func(uintptr) bool | |||
| 278 | 266 | ||
| 279 | 267 | // Gets whether the sidebar widget is pinned for @self. | |
| 280 | 268 | func (x *OverlaySplitView) GetPinSidebar() bool { | |
| 281 | - | core.LazyRegister(&xOverlaySplitViewGetPinSidebar, "ADW", "adw_overlay_split_view_get_pin_sidebar", false) | |
| 282 | - | ||
| 283 | 269 | cret := xOverlaySplitViewGetPinSidebar(x.GoPointer()) | |
| 284 | 270 | return cret | |
| 285 | 271 | } | |
| @@ -288,8 +274,6 @@ var xOverlaySplitViewGetShowSidebar func(uintptr) bool | |||
| 288 | 274 | ||
| 289 | 275 | // Gets whether the sidebar widget is shown for @self. | |
| 290 | 276 | func (x *OverlaySplitView) GetShowSidebar() bool { | |
| 291 | - | core.LazyRegister(&xOverlaySplitViewGetShowSidebar, "ADW", "adw_overlay_split_view_get_show_sidebar", false) | |
| 292 | - | ||
| 293 | 277 | cret := xOverlaySplitViewGetShowSidebar(x.GoPointer()) | |
| 294 | 278 | return cret | |
| 295 | 279 | } | |
| @@ -298,7 +282,6 @@ var xOverlaySplitViewGetSidebar func(uintptr) uintptr | |||
| 298 | 282 | ||
| 299 | 283 | // Gets the sidebar widget for @self. | |
| 300 | 284 | func (x *OverlaySplitView) GetSidebar() *gtk.Widget { | |
| 301 | - | core.LazyRegister(&xOverlaySplitViewGetSidebar, "ADW", "adw_overlay_split_view_get_sidebar", false) | |
| 302 | 285 | var cls *gtk.Widget | |
| 303 | 286 | ||
| 304 | 287 | cret := xOverlaySplitViewGetSidebar(x.GoPointer()) | |
| @@ -316,8 +299,6 @@ var xOverlaySplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||
| 316 | 299 | ||
| 317 | 300 | // Gets the sidebar position for @self. | |
| 318 | 301 | func (x *OverlaySplitView) GetSidebarPosition() gtk.PackType { | |
| 319 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarPosition, "ADW", "adw_overlay_split_view_get_sidebar_position", false) | |
| 320 | - | ||
| 321 | 302 | cret := xOverlaySplitViewGetSidebarPosition(x.GoPointer()) | |
| 322 | 303 | return cret | |
| 323 | 304 | } | |
| @@ -326,8 +307,6 @@ var xOverlaySplitViewGetSidebarWidthFraction func(uintptr) float64 | |||
| 326 | 307 | ||
| 327 | 308 | // Gets the preferred sidebar width fraction for @self. | |
| 328 | 309 | func (x *OverlaySplitView) GetSidebarWidthFraction() float64 { | |
| 329 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarWidthFraction, "ADW", "adw_overlay_split_view_get_sidebar_width_fraction", false) | |
| 330 | - | ||
| 331 | 310 | cret := xOverlaySplitViewGetSidebarWidthFraction(x.GoPointer()) | |
| 332 | 311 | return cret | |
| 333 | 312 | } | |
| @@ -336,8 +315,6 @@ var xOverlaySplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||
| 336 | 315 | ||
| 337 | 316 | // Gets the length unit for minimum and maximum sidebar widths. | |
| 338 | 317 | func (x *OverlaySplitView) GetSidebarWidthUnit() LengthUnit { | |
| 339 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarWidthUnit, "ADW", "adw_overlay_split_view_get_sidebar_width_unit", false) | |
| 340 | - | ||
| 341 | 318 | cret := xOverlaySplitViewGetSidebarWidthUnit(x.GoPointer()) | |
| 342 | 319 | return cret | |
| 343 | 320 | } | |
| @@ -349,8 +326,6 @@ var xOverlaySplitViewSetCollapsed func(uintptr, bool) | |||
| 349 | 326 | // When collapsed, the sidebar widget is presented as an overlay above the | |
| 350 | 327 | // content widget, otherwise they are displayed side by side. | |
| 351 | 328 | func (x *OverlaySplitView) SetCollapsed(CollapsedVar bool) { | |
| 352 | - | core.LazyRegister(&xOverlaySplitViewSetCollapsed, "ADW", "adw_overlay_split_view_set_collapsed", false) | |
| 353 | - | ||
| 354 | 329 | xOverlaySplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | |
| 355 | 330 | } | |
| 356 | 331 | ||
| @@ -358,8 +333,6 @@ var xOverlaySplitViewSetContent func(uintptr, uintptr) | |||
| 358 | 333 | ||
| 359 | 334 | // Sets the content widget for @self. | |
| 360 | 335 | func (x *OverlaySplitView) SetContent(ContentVar *gtk.Widget) { | |
| 361 | - | core.LazyRegister(&xOverlaySplitViewSetContent, "ADW", "adw_overlay_split_view_set_content", false) | |
| 362 | - | ||
| 363 | 336 | xOverlaySplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | |
| 364 | 337 | } | |
| 365 | 338 | ||
| @@ -369,8 +342,6 @@ var xOverlaySplitViewSetEnableHideGesture func(uintptr, bool) | |||
| 369 | 342 | // | |
| 370 | 343 | // Only touchscreen swipes are supported. | |
| 371 | 344 | func (x *OverlaySplitView) SetEnableHideGesture(EnableHideGestureVar bool) { | |
| 372 | - | core.LazyRegister(&xOverlaySplitViewSetEnableHideGesture, "ADW", "adw_overlay_split_view_set_enable_hide_gesture", false) | |
| 373 | - | ||
| 374 | 345 | xOverlaySplitViewSetEnableHideGesture(x.GoPointer(), EnableHideGestureVar) | |
| 375 | 346 | } | |
| 376 | 347 | ||
| @@ -380,8 +351,6 @@ var xOverlaySplitViewSetEnableShowGesture func(uintptr, bool) | |||
| 380 | 351 | // | |
| 381 | 352 | // Only touchscreen swipes are supported. | |
| 382 | 353 | func (x *OverlaySplitView) SetEnableShowGesture(EnableShowGestureVar bool) { | |
| 383 | - | core.LazyRegister(&xOverlaySplitViewSetEnableShowGesture, "ADW", "adw_overlay_split_view_set_enable_show_gesture", false) | |
| 384 | - | ||
| 385 | 354 | xOverlaySplitViewSetEnableShowGesture(x.GoPointer(), EnableShowGestureVar) | |
| 386 | 355 | } | |
| 387 | 356 | ||
| @@ -394,8 +363,6 @@ var xOverlaySplitViewSetMaxSidebarWidth func(uintptr, float64) | |||
| 394 | 363 | // The sidebar widget can still be allocated with larger width if its own | |
| 395 | 364 | // minimum width exceeds it. | |
| 396 | 365 | func (x *OverlaySplitView) SetMaxSidebarWidth(WidthVar float64) { | |
| 397 | - | core.LazyRegister(&xOverlaySplitViewSetMaxSidebarWidth, "ADW", "adw_overlay_split_view_set_max_sidebar_width", false) | |
| 398 | - | ||
| 399 | 366 | xOverlaySplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | |
| 400 | 367 | } | |
| 401 | 368 | ||
| @@ -408,8 +375,6 @@ var xOverlaySplitViewSetMinSidebarWidth func(uintptr, float64) | |||
| 408 | 375 | // The sidebar widget can still be allocated with larger width if its own | |
| 409 | 376 | // minimum width exceeds it. | |
| 410 | 377 | func (x *OverlaySplitView) SetMinSidebarWidth(WidthVar float64) { | |
| 411 | - | core.LazyRegister(&xOverlaySplitViewSetMinSidebarWidth, "ADW", "adw_overlay_split_view_set_min_sidebar_width", false) | |
| 412 | - | ||
| 413 | 378 | xOverlaySplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | |
| 414 | 379 | } | |
| 415 | 380 | ||
| @@ -421,8 +386,6 @@ var xOverlaySplitViewSetPinSidebar func(uintptr, bool) | |||
| 421 | 386 | // uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility never | |
| 422 | 387 | // changes on its own. | |
| 423 | 388 | func (x *OverlaySplitView) SetPinSidebar(PinSidebarVar bool) { | |
| 424 | - | core.LazyRegister(&xOverlaySplitViewSetPinSidebar, "ADW", "adw_overlay_split_view_set_pin_sidebar", false) | |
| 425 | - | ||
| 426 | 389 | xOverlaySplitViewSetPinSidebar(x.GoPointer(), PinSidebarVar) | |
| 427 | 390 | } | |
| 428 | 391 | ||
| @@ -430,8 +393,6 @@ var xOverlaySplitViewSetShowSidebar func(uintptr, bool) | |||
| 430 | 393 | ||
| 431 | 394 | // Sets whether the sidebar widget is shown for @self. | |
| 432 | 395 | func (x *OverlaySplitView) SetShowSidebar(ShowSidebarVar bool) { | |
| 433 | - | core.LazyRegister(&xOverlaySplitViewSetShowSidebar, "ADW", "adw_overlay_split_view_set_show_sidebar", false) | |
| 434 | - | ||
| 435 | 396 | xOverlaySplitViewSetShowSidebar(x.GoPointer(), ShowSidebarVar) | |
| 436 | 397 | } | |
| 437 | 398 | ||
| @@ -439,8 +400,6 @@ var xOverlaySplitViewSetSidebar func(uintptr, uintptr) | |||
| 439 | 400 | ||
| 440 | 401 | // Sets the sidebar widget for @self. | |
| 441 | 402 | func (x *OverlaySplitView) SetSidebar(SidebarVar *gtk.Widget) { | |
| 442 | - | core.LazyRegister(&xOverlaySplitViewSetSidebar, "ADW", "adw_overlay_split_view_set_sidebar", false) | |
| 443 | - | ||
| 444 | 403 | xOverlaySplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | |
| 445 | 404 | } | |
| 446 | 405 | ||
| @@ -451,8 +410,6 @@ var xOverlaySplitViewSetSidebarPosition func(uintptr, gtk.PackType) | |||
| 451 | 410 | // If it's set to [enum@Gtk.PackType.start], the sidebar is displayed before the | |
| 452 | 411 | // content; if [enum@Gtk.PackType.end], it's displayed after the content. | |
| 453 | 412 | func (x *OverlaySplitView) SetSidebarPosition(PositionVar gtk.PackType) { | |
| 454 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarPosition, "ADW", "adw_overlay_split_view_set_sidebar_position", false) | |
| 455 | - | ||
| 456 | 413 | xOverlaySplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | |
| 457 | 414 | } | |
| 458 | 415 | ||
| @@ -467,8 +424,6 @@ var xOverlaySplitViewSetSidebarWidthFraction func(uintptr, float64) | |||
| 467 | 424 | // The sidebar widget can be allocated with larger width if its own minimum | |
| 468 | 425 | // width exceeds the preferred width. | |
| 469 | 426 | func (x *OverlaySplitView) SetSidebarWidthFraction(FractionVar float64) { | |
| 470 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarWidthFraction, "ADW", "adw_overlay_split_view_set_sidebar_width_fraction", false) | |
| 471 | - | ||
| 472 | 427 | xOverlaySplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | |
| 473 | 428 | } | |
| 474 | 429 | ||
| @@ -479,8 +434,6 @@ var xOverlaySplitViewSetSidebarWidthUnit func(uintptr, LengthUnit) | |||
| 479 | 434 | // See [property@OverlaySplitView:min-sidebar-width] and | |
| 480 | 435 | // [property@OverlaySplitView:max-sidebar-width]. | |
| 481 | 436 | func (x *OverlaySplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | |
| 482 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarWidthUnit, "ADW", "adw_overlay_split_view_set_sidebar_width_unit", false) | |
| 483 | - | ||
| 484 | 437 | xOverlaySplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | |
| 485 | 438 | } | |
| 486 | 439 | ||
| @@ -996,4 +949,41 @@ func (x *OverlaySplitView) GetBuildableId() string { | |||
| 996 | 949 | func init() { | |
| 997 | 950 | core.SetPackageName("ADW", "libadwaita-1") | |
| 998 | 951 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 952 | + | var libs []uintptr | |
| 953 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 954 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 955 | + | if err != nil { | |
| 956 | + | panic(err) | |
| 957 | + | } | |
| 958 | + | libs = append(libs, lib) | |
| 959 | + | } | |
| 960 | + | ||
| 961 | + | core.PuregoSafeRegister(&xOverlaySplitViewGLibType, libs, "adw_overlay_split_view_get_type") | |
| 962 | + | ||
| 963 | + | core.PuregoSafeRegister(&xNewOverlaySplitView, libs, "adw_overlay_split_view_new") | |
| 964 | + | ||
| 965 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetCollapsed, libs, "adw_overlay_split_view_get_collapsed") | |
| 966 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetContent, libs, "adw_overlay_split_view_get_content") | |
| 967 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetEnableHideGesture, libs, "adw_overlay_split_view_get_enable_hide_gesture") | |
| 968 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetEnableShowGesture, libs, "adw_overlay_split_view_get_enable_show_gesture") | |
| 969 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetMaxSidebarWidth, libs, "adw_overlay_split_view_get_max_sidebar_width") | |
| 970 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetMinSidebarWidth, libs, "adw_overlay_split_view_get_min_sidebar_width") | |
| 971 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetPinSidebar, libs, "adw_overlay_split_view_get_pin_sidebar") | |
| 972 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetShowSidebar, libs, "adw_overlay_split_view_get_show_sidebar") | |
| 973 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebar, libs, "adw_overlay_split_view_get_sidebar") | |
| 974 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarPosition, libs, "adw_overlay_split_view_get_sidebar_position") | |
| 975 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarWidthFraction, libs, "adw_overlay_split_view_get_sidebar_width_fraction") | |
| 976 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarWidthUnit, libs, "adw_overlay_split_view_get_sidebar_width_unit") | |
| 977 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetCollapsed, libs, "adw_overlay_split_view_set_collapsed") | |
| 978 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetContent, libs, "adw_overlay_split_view_set_content") | |
| 979 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetEnableHideGesture, libs, "adw_overlay_split_view_set_enable_hide_gesture") | |
| 980 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetEnableShowGesture, libs, "adw_overlay_split_view_set_enable_show_gesture") | |
| 981 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetMaxSidebarWidth, libs, "adw_overlay_split_view_set_max_sidebar_width") | |
| 982 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetMinSidebarWidth, libs, "adw_overlay_split_view_set_min_sidebar_width") | |
| 983 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetPinSidebar, libs, "adw_overlay_split_view_set_pin_sidebar") | |
| 984 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetShowSidebar, libs, "adw_overlay_split_view_set_show_sidebar") | |
| 985 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebar, libs, "adw_overlay_split_view_set_sidebar") | |
| 986 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarPosition, libs, "adw_overlay_split_view_set_sidebar_position") | |
| 987 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarWidthFraction, libs, "adw_overlay_split_view_set_sidebar_width_fraction") | |
| 988 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarWidthUnit, libs, "adw_overlay_split_view_set_sidebar_width_unit") | |
| 999 | 989 | } | |
| @@ -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" | ||
| @@ -178,7 +179,6 @@ type OverlaySplitView struct { | |||||
| 178 | var xOverlaySplitViewGLibType func() types.GType | 179 | var xOverlaySplitViewGLibType func() types.GType | ||
| 179 | 180 | ||||
| 180 | func OverlaySplitViewGLibType() types.GType { | 181 | func OverlaySplitViewGLibType() types.GType { | ||
| 181 | - | core.LazyRegister(&xOverlaySplitViewGLibType, "ADW", "adw_overlay_split_view_get_type", false) | |||
| 182 | return xOverlaySplitViewGLibType() | 182 | return xOverlaySplitViewGLibType() | ||
| 183 | } | 183 | } | ||
| 184 | 184 | ||||
| @@ -192,7 +192,6 @@ var xNewOverlaySplitView func() uintptr | |||||
| 192 | 192 | ||||
| 193 | // Creates a new `AdwOverlaySplitView`. | 193 | // Creates a new `AdwOverlaySplitView`. | ||
| 194 | func NewOverlaySplitView() *OverlaySplitView { | 194 | func NewOverlaySplitView() *OverlaySplitView { | ||
| 195 | - | core.LazyRegister(&xNewOverlaySplitView, "ADW", "adw_overlay_split_view_new", false) | |||
| 196 | var cls *OverlaySplitView | 195 | var cls *OverlaySplitView | ||
| 197 | 196 | ||||
| 198 | cret := xNewOverlaySplitView() | 197 | cret := xNewOverlaySplitView() | ||
| @@ -210,8 +209,6 @@ var xOverlaySplitViewGetCollapsed func(uintptr) bool | |||||
| 210 | 209 | ||||
| 211 | // Gets whether @self is collapsed. | 210 | // Gets whether @self is collapsed. | ||
| 212 | func (x *OverlaySplitView) GetCollapsed() bool { | 211 | func (x *OverlaySplitView) GetCollapsed() bool { | ||
| 213 | - | core.LazyRegister(&xOverlaySplitViewGetCollapsed, "ADW", "adw_overlay_split_view_get_collapsed", false) | |||
| 214 | - | ||||
| 215 | cret := xOverlaySplitViewGetCollapsed(x.GoPointer()) | 212 | cret := xOverlaySplitViewGetCollapsed(x.GoPointer()) | ||
| 216 | return cret | 213 | return cret | ||
| 217 | } | 214 | } | ||
| @@ -220,7 +217,6 @@ var xOverlaySplitViewGetContent func(uintptr) uintptr | |||||
| 220 | 217 | ||||
| 221 | // Gets the content widget for @self. | 218 | // Gets the content widget for @self. | ||
| 222 | func (x *OverlaySplitView) GetContent() *gtk.Widget { | 219 | func (x *OverlaySplitView) GetContent() *gtk.Widget { | ||
| 223 | - | core.LazyRegister(&xOverlaySplitViewGetContent, "ADW", "adw_overlay_split_view_get_content", false) | |||
| 224 | var cls *gtk.Widget | 220 | var cls *gtk.Widget | ||
| 225 | 221 | ||||
| 226 | cret := xOverlaySplitViewGetContent(x.GoPointer()) | 222 | cret := xOverlaySplitViewGetContent(x.GoPointer()) | ||
| @@ -238,8 +234,6 @@ var xOverlaySplitViewGetEnableHideGesture func(uintptr) bool | |||||
| 238 | 234 | ||||
| 239 | // Gets whether @self can be closed with a swipe gesture. | 235 | // Gets whether @self can be closed with a swipe gesture. | ||
| 240 | func (x *OverlaySplitView) GetEnableHideGesture() bool { | 236 | func (x *OverlaySplitView) GetEnableHideGesture() bool { | ||
| 241 | - | core.LazyRegister(&xOverlaySplitViewGetEnableHideGesture, "ADW", "adw_overlay_split_view_get_enable_hide_gesture", false) | |||
| 242 | - | ||||
| 243 | cret := xOverlaySplitViewGetEnableHideGesture(x.GoPointer()) | 237 | cret := xOverlaySplitViewGetEnableHideGesture(x.GoPointer()) | ||
| 244 | return cret | 238 | return cret | ||
| 245 | } | 239 | } | ||
| @@ -248,8 +242,6 @@ var xOverlaySplitViewGetEnableShowGesture func(uintptr) bool | |||||
| 248 | 242 | ||||
| 249 | // Gets whether @self can be opened with an edge swipe gesture. | 243 | // Gets whether @self can be opened with an edge swipe gesture. | ||
| 250 | func (x *OverlaySplitView) GetEnableShowGesture() bool { | 244 | func (x *OverlaySplitView) GetEnableShowGesture() bool { | ||
| 251 | - | core.LazyRegister(&xOverlaySplitViewGetEnableShowGesture, "ADW", "adw_overlay_split_view_get_enable_show_gesture", false) | |||
| 252 | - | ||||
| 253 | cret := xOverlaySplitViewGetEnableShowGesture(x.GoPointer()) | 245 | cret := xOverlaySplitViewGetEnableShowGesture(x.GoPointer()) | ||
| 254 | return cret | 246 | return cret | ||
| 255 | } | 247 | } | ||
| @@ -258,8 +250,6 @@ var xOverlaySplitViewGetMaxSidebarWidth func(uintptr) float64 | |||||
| 258 | 250 | ||||
| 259 | // Gets the maximum sidebar width for @self. | 251 | // Gets the maximum sidebar width for @self. | ||
| 260 | func (x *OverlaySplitView) GetMaxSidebarWidth() float64 { | 252 | func (x *OverlaySplitView) GetMaxSidebarWidth() float64 { | ||
| 261 | - | core.LazyRegister(&xOverlaySplitViewGetMaxSidebarWidth, "ADW", "adw_overlay_split_view_get_max_sidebar_width", false) | |||
| 262 | - | ||||
| 263 | cret := xOverlaySplitViewGetMaxSidebarWidth(x.GoPointer()) | 253 | cret := xOverlaySplitViewGetMaxSidebarWidth(x.GoPointer()) | ||
| 264 | return cret | 254 | return cret | ||
| 265 | } | 255 | } | ||
| @@ -268,8 +258,6 @@ var xOverlaySplitViewGetMinSidebarWidth func(uintptr) float64 | |||||
| 268 | 258 | ||||
| 269 | // Gets the minimum sidebar width for @self. | 259 | // Gets the minimum sidebar width for @self. | ||
| 270 | func (x *OverlaySplitView) GetMinSidebarWidth() float64 { | 260 | func (x *OverlaySplitView) GetMinSidebarWidth() float64 { | ||
| 271 | - | core.LazyRegister(&xOverlaySplitViewGetMinSidebarWidth, "ADW", "adw_overlay_split_view_get_min_sidebar_width", false) | |||
| 272 | - | ||||
| 273 | cret := xOverlaySplitViewGetMinSidebarWidth(x.GoPointer()) | 261 | cret := xOverlaySplitViewGetMinSidebarWidth(x.GoPointer()) | ||
| 274 | return cret | 262 | return cret | ||
| 275 | } | 263 | } | ||
| @@ -278,8 +266,6 @@ var xOverlaySplitViewGetPinSidebar func(uintptr) bool | |||||
| 278 | 266 | ||||
| 279 | // Gets whether the sidebar widget is pinned for @self. | 267 | // Gets whether the sidebar widget is pinned for @self. | ||
| 280 | func (x *OverlaySplitView) GetPinSidebar() bool { | 268 | func (x *OverlaySplitView) GetPinSidebar() bool { | ||
| 281 | - | core.LazyRegister(&xOverlaySplitViewGetPinSidebar, "ADW", "adw_overlay_split_view_get_pin_sidebar", false) | |||
| 282 | - | ||||
| 283 | cret := xOverlaySplitViewGetPinSidebar(x.GoPointer()) | 269 | cret := xOverlaySplitViewGetPinSidebar(x.GoPointer()) | ||
| 284 | return cret | 270 | return cret | ||
| 285 | } | 271 | } | ||
| @@ -288,8 +274,6 @@ var xOverlaySplitViewGetShowSidebar func(uintptr) bool | |||||
| 288 | 274 | ||||
| 289 | // Gets whether the sidebar widget is shown for @self. | 275 | // Gets whether the sidebar widget is shown for @self. | ||
| 290 | func (x *OverlaySplitView) GetShowSidebar() bool { | 276 | func (x *OverlaySplitView) GetShowSidebar() bool { | ||
| 291 | - | core.LazyRegister(&xOverlaySplitViewGetShowSidebar, "ADW", "adw_overlay_split_view_get_show_sidebar", false) | |||
| 292 | - | ||||
| 293 | cret := xOverlaySplitViewGetShowSidebar(x.GoPointer()) | 277 | cret := xOverlaySplitViewGetShowSidebar(x.GoPointer()) | ||
| 294 | return cret | 278 | return cret | ||
| 295 | } | 279 | } | ||
| @@ -298,7 +282,6 @@ var xOverlaySplitViewGetSidebar func(uintptr) uintptr | |||||
| 298 | 282 | ||||
| 299 | // Gets the sidebar widget for @self. | 283 | // Gets the sidebar widget for @self. | ||
| 300 | func (x *OverlaySplitView) GetSidebar() *gtk.Widget { | 284 | func (x *OverlaySplitView) GetSidebar() *gtk.Widget { | ||
| 301 | - | core.LazyRegister(&xOverlaySplitViewGetSidebar, "ADW", "adw_overlay_split_view_get_sidebar", false) | |||
| 302 | var cls *gtk.Widget | 285 | var cls *gtk.Widget | ||
| 303 | 286 | ||||
| 304 | cret := xOverlaySplitViewGetSidebar(x.GoPointer()) | 287 | cret := xOverlaySplitViewGetSidebar(x.GoPointer()) | ||
| @@ -316,8 +299,6 @@ var xOverlaySplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||||
| 316 | 299 | ||||
| 317 | // Gets the sidebar position for @self. | 300 | // Gets the sidebar position for @self. | ||
| 318 | func (x *OverlaySplitView) GetSidebarPosition() gtk.PackType { | 301 | func (x *OverlaySplitView) GetSidebarPosition() gtk.PackType { | ||
| 319 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarPosition, "ADW", "adw_overlay_split_view_get_sidebar_position", false) | |||
| 320 | - | ||||
| 321 | cret := xOverlaySplitViewGetSidebarPosition(x.GoPointer()) | 302 | cret := xOverlaySplitViewGetSidebarPosition(x.GoPointer()) | ||
| 322 | return cret | 303 | return cret | ||
| 323 | } | 304 | } | ||
| @@ -326,8 +307,6 @@ var xOverlaySplitViewGetSidebarWidthFraction func(uintptr) float64 | |||||
| 326 | 307 | ||||
| 327 | // Gets the preferred sidebar width fraction for @self. | 308 | // Gets the preferred sidebar width fraction for @self. | ||
| 328 | func (x *OverlaySplitView) GetSidebarWidthFraction() float64 { | 309 | func (x *OverlaySplitView) GetSidebarWidthFraction() float64 { | ||
| 329 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarWidthFraction, "ADW", "adw_overlay_split_view_get_sidebar_width_fraction", false) | |||
| 330 | - | ||||
| 331 | cret := xOverlaySplitViewGetSidebarWidthFraction(x.GoPointer()) | 310 | cret := xOverlaySplitViewGetSidebarWidthFraction(x.GoPointer()) | ||
| 332 | return cret | 311 | return cret | ||
| 333 | } | 312 | } | ||
| @@ -336,8 +315,6 @@ var xOverlaySplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||||
| 336 | 315 | ||||
| 337 | // Gets the length unit for minimum and maximum sidebar widths. | 316 | // Gets the length unit for minimum and maximum sidebar widths. | ||
| 338 | func (x *OverlaySplitView) GetSidebarWidthUnit() LengthUnit { | 317 | func (x *OverlaySplitView) GetSidebarWidthUnit() LengthUnit { | ||
| 339 | - | core.LazyRegister(&xOverlaySplitViewGetSidebarWidthUnit, "ADW", "adw_overlay_split_view_get_sidebar_width_unit", false) | |||
| 340 | - | ||||
| 341 | cret := xOverlaySplitViewGetSidebarWidthUnit(x.GoPointer()) | 318 | cret := xOverlaySplitViewGetSidebarWidthUnit(x.GoPointer()) | ||
| 342 | return cret | 319 | return cret | ||
| 343 | } | 320 | } | ||
| @@ -349,8 +326,6 @@ var xOverlaySplitViewSetCollapsed func(uintptr, bool) | |||||
| 349 | // When collapsed, the sidebar widget is presented as an overlay above the | 326 | // When collapsed, the sidebar widget is presented as an overlay above the | ||
| 350 | // content widget, otherwise they are displayed side by side. | 327 | // content widget, otherwise they are displayed side by side. | ||
| 351 | func (x *OverlaySplitView) SetCollapsed(CollapsedVar bool) { | 328 | func (x *OverlaySplitView) SetCollapsed(CollapsedVar bool) { | ||
| 352 | - | core.LazyRegister(&xOverlaySplitViewSetCollapsed, "ADW", "adw_overlay_split_view_set_collapsed", false) | |||
| 353 | - | ||||
| 354 | xOverlaySplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | 329 | xOverlaySplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | ||
| 355 | } | 330 | } | ||
| 356 | 331 | ||||
| @@ -358,8 +333,6 @@ var xOverlaySplitViewSetContent func(uintptr, uintptr) | |||||
| 358 | 333 | ||||
| 359 | // Sets the content widget for @self. | 334 | // Sets the content widget for @self. | ||
| 360 | func (x *OverlaySplitView) SetContent(ContentVar *gtk.Widget) { | 335 | func (x *OverlaySplitView) SetContent(ContentVar *gtk.Widget) { | ||
| 361 | - | core.LazyRegister(&xOverlaySplitViewSetContent, "ADW", "adw_overlay_split_view_set_content", false) | |||
| 362 | - | ||||
| 363 | xOverlaySplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | 336 | xOverlaySplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | ||
| 364 | } | 337 | } | ||
| 365 | 338 | ||||
| @@ -369,8 +342,6 @@ var xOverlaySplitViewSetEnableHideGesture func(uintptr, bool) | |||||
| 369 | // | 342 | // | ||
| 370 | // Only touchscreen swipes are supported. | 343 | // Only touchscreen swipes are supported. | ||
| 371 | func (x *OverlaySplitView) SetEnableHideGesture(EnableHideGestureVar bool) { | 344 | func (x *OverlaySplitView) SetEnableHideGesture(EnableHideGestureVar bool) { | ||
| 372 | - | core.LazyRegister(&xOverlaySplitViewSetEnableHideGesture, "ADW", "adw_overlay_split_view_set_enable_hide_gesture", false) | |||
| 373 | - | ||||
| 374 | xOverlaySplitViewSetEnableHideGesture(x.GoPointer(), EnableHideGestureVar) | 345 | xOverlaySplitViewSetEnableHideGesture(x.GoPointer(), EnableHideGestureVar) | ||
| 375 | } | 346 | } | ||
| 376 | 347 | ||||
| @@ -380,8 +351,6 @@ var xOverlaySplitViewSetEnableShowGesture func(uintptr, bool) | |||||
| 380 | // | 351 | // | ||
| 381 | // Only touchscreen swipes are supported. | 352 | // Only touchscreen swipes are supported. | ||
| 382 | func (x *OverlaySplitView) SetEnableShowGesture(EnableShowGestureVar bool) { | 353 | func (x *OverlaySplitView) SetEnableShowGesture(EnableShowGestureVar bool) { | ||
| 383 | - | core.LazyRegister(&xOverlaySplitViewSetEnableShowGesture, "ADW", "adw_overlay_split_view_set_enable_show_gesture", false) | |||
| 384 | - | ||||
| 385 | xOverlaySplitViewSetEnableShowGesture(x.GoPointer(), EnableShowGestureVar) | 354 | xOverlaySplitViewSetEnableShowGesture(x.GoPointer(), EnableShowGestureVar) | ||
| 386 | } | 355 | } | ||
| 387 | 356 | ||||
| @@ -394,8 +363,6 @@ var xOverlaySplitViewSetMaxSidebarWidth func(uintptr, float64) | |||||
| 394 | // The sidebar widget can still be allocated with larger width if its own | 363 | // The sidebar widget can still be allocated with larger width if its own | ||
| 395 | // minimum width exceeds it. | 364 | // minimum width exceeds it. | ||
| 396 | func (x *OverlaySplitView) SetMaxSidebarWidth(WidthVar float64) { | 365 | func (x *OverlaySplitView) SetMaxSidebarWidth(WidthVar float64) { | ||
| 397 | - | core.LazyRegister(&xOverlaySplitViewSetMaxSidebarWidth, "ADW", "adw_overlay_split_view_set_max_sidebar_width", false) | |||
| 398 | - | ||||
| 399 | xOverlaySplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | 366 | xOverlaySplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | ||
| 400 | } | 367 | } | ||
| 401 | 368 | ||||
| @@ -408,8 +375,6 @@ var xOverlaySplitViewSetMinSidebarWidth func(uintptr, float64) | |||||
| 408 | // The sidebar widget can still be allocated with larger width if its own | 375 | // The sidebar widget can still be allocated with larger width if its own | ||
| 409 | // minimum width exceeds it. | 376 | // minimum width exceeds it. | ||
| 410 | func (x *OverlaySplitView) SetMinSidebarWidth(WidthVar float64) { | 377 | func (x *OverlaySplitView) SetMinSidebarWidth(WidthVar float64) { | ||
| 411 | - | core.LazyRegister(&xOverlaySplitViewSetMinSidebarWidth, "ADW", "adw_overlay_split_view_set_min_sidebar_width", false) | |||
| 412 | - | ||||
| 413 | xOverlaySplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | 378 | xOverlaySplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | ||
| 414 | } | 379 | } | ||
| 415 | 380 | ||||
| @@ -421,8 +386,6 @@ var xOverlaySplitViewSetPinSidebar func(uintptr, bool) | |||||
| 421 | // uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility never | 386 | // uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility never | ||
| 422 | // changes on its own. | 387 | // changes on its own. | ||
| 423 | func (x *OverlaySplitView) SetPinSidebar(PinSidebarVar bool) { | 388 | func (x *OverlaySplitView) SetPinSidebar(PinSidebarVar bool) { | ||
| 424 | - | core.LazyRegister(&xOverlaySplitViewSetPinSidebar, "ADW", "adw_overlay_split_view_set_pin_sidebar", false) | |||
| 425 | - | ||||
| 426 | xOverlaySplitViewSetPinSidebar(x.GoPointer(), PinSidebarVar) | 389 | xOverlaySplitViewSetPinSidebar(x.GoPointer(), PinSidebarVar) | ||
| 427 | } | 390 | } | ||
| 428 | 391 | ||||
| @@ -430,8 +393,6 @@ var xOverlaySplitViewSetShowSidebar func(uintptr, bool) | |||||
| 430 | 393 | ||||
| 431 | // Sets whether the sidebar widget is shown for @self. | 394 | // Sets whether the sidebar widget is shown for @self. | ||
| 432 | func (x *OverlaySplitView) SetShowSidebar(ShowSidebarVar bool) { | 395 | func (x *OverlaySplitView) SetShowSidebar(ShowSidebarVar bool) { | ||
| 433 | - | core.LazyRegister(&xOverlaySplitViewSetShowSidebar, "ADW", "adw_overlay_split_view_set_show_sidebar", false) | |||
| 434 | - | ||||
| 435 | xOverlaySplitViewSetShowSidebar(x.GoPointer(), ShowSidebarVar) | 396 | xOverlaySplitViewSetShowSidebar(x.GoPointer(), ShowSidebarVar) | ||
| 436 | } | 397 | } | ||
| 437 | 398 | ||||
| @@ -439,8 +400,6 @@ var xOverlaySplitViewSetSidebar func(uintptr, uintptr) | |||||
| 439 | 400 | ||||
| 440 | // Sets the sidebar widget for @self. | 401 | // Sets the sidebar widget for @self. | ||
| 441 | func (x *OverlaySplitView) SetSidebar(SidebarVar *gtk.Widget) { | 402 | func (x *OverlaySplitView) SetSidebar(SidebarVar *gtk.Widget) { | ||
| 442 | - | core.LazyRegister(&xOverlaySplitViewSetSidebar, "ADW", "adw_overlay_split_view_set_sidebar", false) | |||
| 443 | - | ||||
| 444 | xOverlaySplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | 403 | xOverlaySplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | ||
| 445 | } | 404 | } | ||
| 446 | 405 | ||||
| @@ -451,8 +410,6 @@ var xOverlaySplitViewSetSidebarPosition func(uintptr, gtk.PackType) | |||||
| 451 | // If it's set to [enum@Gtk.PackType.start], the sidebar is displayed before the | 410 | // If it's set to [enum@Gtk.PackType.start], the sidebar is displayed before the | ||
| 452 | // content; if [enum@Gtk.PackType.end], it's displayed after the content. | 411 | // content; if [enum@Gtk.PackType.end], it's displayed after the content. | ||
| 453 | func (x *OverlaySplitView) SetSidebarPosition(PositionVar gtk.PackType) { | 412 | func (x *OverlaySplitView) SetSidebarPosition(PositionVar gtk.PackType) { | ||
| 454 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarPosition, "ADW", "adw_overlay_split_view_set_sidebar_position", false) | |||
| 455 | - | ||||
| 456 | xOverlaySplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | 413 | xOverlaySplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | ||
| 457 | } | 414 | } | ||
| 458 | 415 | ||||
| @@ -467,8 +424,6 @@ var xOverlaySplitViewSetSidebarWidthFraction func(uintptr, float64) | |||||
| 467 | // The sidebar widget can be allocated with larger width if its own minimum | 424 | // The sidebar widget can be allocated with larger width if its own minimum | ||
| 468 | // width exceeds the preferred width. | 425 | // width exceeds the preferred width. | ||
| 469 | func (x *OverlaySplitView) SetSidebarWidthFraction(FractionVar float64) { | 426 | func (x *OverlaySplitView) SetSidebarWidthFraction(FractionVar float64) { | ||
| 470 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarWidthFraction, "ADW", "adw_overlay_split_view_set_sidebar_width_fraction", false) | |||
| 471 | - | ||||
| 472 | xOverlaySplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | 427 | xOverlaySplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | ||
| 473 | } | 428 | } | ||
| 474 | 429 | ||||
| @@ -479,8 +434,6 @@ var xOverlaySplitViewSetSidebarWidthUnit func(uintptr, LengthUnit) | |||||
| 479 | // See [property@OverlaySplitView:min-sidebar-width] and | 434 | // See [property@OverlaySplitView:min-sidebar-width] and | ||
| 480 | // [property@OverlaySplitView:max-sidebar-width]. | 435 | // [property@OverlaySplitView:max-sidebar-width]. | ||
| 481 | func (x *OverlaySplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | 436 | func (x *OverlaySplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | ||
| 482 | - | core.LazyRegister(&xOverlaySplitViewSetSidebarWidthUnit, "ADW", "adw_overlay_split_view_set_sidebar_width_unit", false) | |||
| 483 | - | ||||
| 484 | xOverlaySplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | 437 | xOverlaySplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | ||
| 485 | } | 438 | } | ||
| 486 | 439 | ||||
| @@ -996,4 +949,41 @@ func (x *OverlaySplitView) GetBuildableId() string { | |||||
| 996 | func init() { | 949 | func init() { | ||
| 997 | core.SetPackageName("ADW", "libadwaita-1") | 950 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 998 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 951 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 952 | + | var libs []uintptr | |||
| 953 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 954 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 955 | + | if err != nil { | |||
| 956 | + | panic(err) | |||
| 957 | + | } | |||
| 958 | + | libs = append(libs, lib) | |||
| 959 | + | } | |||
| 960 | + | ||||
| 961 | + | core.PuregoSafeRegister(&xOverlaySplitViewGLibType, libs, "adw_overlay_split_view_get_type") | |||
| 962 | + | ||||
| 963 | + | core.PuregoSafeRegister(&xNewOverlaySplitView, libs, "adw_overlay_split_view_new") | |||
| 964 | + | ||||
| 965 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetCollapsed, libs, "adw_overlay_split_view_get_collapsed") | |||
| 966 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetContent, libs, "adw_overlay_split_view_get_content") | |||
| 967 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetEnableHideGesture, libs, "adw_overlay_split_view_get_enable_hide_gesture") | |||
| 968 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetEnableShowGesture, libs, "adw_overlay_split_view_get_enable_show_gesture") | |||
| 969 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetMaxSidebarWidth, libs, "adw_overlay_split_view_get_max_sidebar_width") | |||
| 970 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetMinSidebarWidth, libs, "adw_overlay_split_view_get_min_sidebar_width") | |||
| 971 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetPinSidebar, libs, "adw_overlay_split_view_get_pin_sidebar") | |||
| 972 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetShowSidebar, libs, "adw_overlay_split_view_get_show_sidebar") | |||
| 973 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebar, libs, "adw_overlay_split_view_get_sidebar") | |||
| 974 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarPosition, libs, "adw_overlay_split_view_get_sidebar_position") | |||
| 975 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarWidthFraction, libs, "adw_overlay_split_view_get_sidebar_width_fraction") | |||
| 976 | + | core.PuregoSafeRegister(&xOverlaySplitViewGetSidebarWidthUnit, libs, "adw_overlay_split_view_get_sidebar_width_unit") | |||
| 977 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetCollapsed, libs, "adw_overlay_split_view_set_collapsed") | |||
| 978 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetContent, libs, "adw_overlay_split_view_set_content") | |||
| 979 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetEnableHideGesture, libs, "adw_overlay_split_view_set_enable_hide_gesture") | |||
| 980 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetEnableShowGesture, libs, "adw_overlay_split_view_set_enable_show_gesture") | |||
| 981 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetMaxSidebarWidth, libs, "adw_overlay_split_view_set_max_sidebar_width") | |||
| 982 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetMinSidebarWidth, libs, "adw_overlay_split_view_set_min_sidebar_width") | |||
| 983 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetPinSidebar, libs, "adw_overlay_split_view_set_pin_sidebar") | |||
| 984 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetShowSidebar, libs, "adw_overlay_split_view_set_show_sidebar") | |||
| 985 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebar, libs, "adw_overlay_split_view_set_sidebar") | |||
| 986 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarPosition, libs, "adw_overlay_split_view_set_sidebar_position") | |||
| 987 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarWidthFraction, libs, "adw_overlay_split_view_set_sidebar_width_fraction") | |||
| 988 | + | core.PuregoSafeRegister(&xOverlaySplitViewSetSidebarWidthUnit, libs, "adw_overlay_split_view_set_sidebar_width_unit") | |||
| 999 | } | 989 | } | ||