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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40
| @@ -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/gobject" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -82,7 +83,6 @@ type ToolbarStyle int | |||
| 82 | 83 | var xToolbarStyleGLibType func() types.GType | |
| 83 | 84 | ||
| 84 | 85 | func ToolbarStyleGLibType() types.GType { | |
| 85 | - | core.LazyRegister(&xToolbarStyleGLibType, "ADW", "adw_toolbar_style_get_type", false) | |
| 86 | 86 | return xToolbarStyleGLibType() | |
| 87 | 87 | } | |
| 88 | 88 | ||
| @@ -215,7 +215,6 @@ type ToolbarView struct { | |||
| 215 | 215 | var xToolbarViewGLibType func() types.GType | |
| 216 | 216 | ||
| 217 | 217 | func ToolbarViewGLibType() types.GType { | |
| 218 | - | core.LazyRegister(&xToolbarViewGLibType, "ADW", "adw_toolbar_view_get_type", false) | |
| 219 | 218 | return xToolbarViewGLibType() | |
| 220 | 219 | } | |
| 221 | 220 | ||
| @@ -229,7 +228,6 @@ var xNewToolbarView func() uintptr | |||
| 229 | 228 | ||
| 230 | 229 | // Creates a new `AdwToolbarView`. | |
| 231 | 230 | func NewToolbarView() *ToolbarView { | |
| 232 | - | core.LazyRegister(&xNewToolbarView, "ADW", "adw_toolbar_view_new", false) | |
| 233 | 231 | var cls *ToolbarView | |
| 234 | 232 | ||
| 235 | 233 | cret := xNewToolbarView() | |
| @@ -247,8 +245,6 @@ var xToolbarViewAddBottomBar func(uintptr, uintptr) | |||
| 247 | 245 | ||
| 248 | 246 | // Adds a bottom bar to @self. | |
| 249 | 247 | func (x *ToolbarView) AddBottomBar(WidgetVar *gtk.Widget) { | |
| 250 | - | core.LazyRegister(&xToolbarViewAddBottomBar, "ADW", "adw_toolbar_view_add_bottom_bar", false) | |
| 251 | - | ||
| 252 | 248 | xToolbarViewAddBottomBar(x.GoPointer(), WidgetVar.GoPointer()) | |
| 253 | 249 | } | |
| 254 | 250 | ||
| @@ -256,8 +252,6 @@ var xToolbarViewAddTopBar func(uintptr, uintptr) | |||
| 256 | 252 | ||
| 257 | 253 | // Adds a top bar to @self. | |
| 258 | 254 | func (x *ToolbarView) AddTopBar(WidgetVar *gtk.Widget) { | |
| 259 | - | core.LazyRegister(&xToolbarViewAddTopBar, "ADW", "adw_toolbar_view_add_top_bar", false) | |
| 260 | - | ||
| 261 | 255 | xToolbarViewAddTopBar(x.GoPointer(), WidgetVar.GoPointer()) | |
| 262 | 256 | } | |
| 263 | 257 | ||
| @@ -270,8 +264,6 @@ var xToolbarViewGetBottomBarHeight func(uintptr) int | |||
| 270 | 264 | // | |
| 271 | 265 | // See [method@ToolbarView.get_top_bar_height]. | |
| 272 | 266 | func (x *ToolbarView) GetBottomBarHeight() int { | |
| 273 | - | core.LazyRegister(&xToolbarViewGetBottomBarHeight, "ADW", "adw_toolbar_view_get_bottom_bar_height", false) | |
| 274 | - | ||
| 275 | 267 | cret := xToolbarViewGetBottomBarHeight(x.GoPointer()) | |
| 276 | 268 | return cret | |
| 277 | 269 | } | |
| @@ -280,8 +272,6 @@ var xToolbarViewGetBottomBarStyle func(uintptr) ToolbarStyle | |||
| 280 | 272 | ||
| 281 | 273 | // Gets appearance of the bottom bars for @self. | |
| 282 | 274 | func (x *ToolbarView) GetBottomBarStyle() ToolbarStyle { | |
| 283 | - | core.LazyRegister(&xToolbarViewGetBottomBarStyle, "ADW", "adw_toolbar_view_get_bottom_bar_style", false) | |
| 284 | - | ||
| 285 | 275 | cret := xToolbarViewGetBottomBarStyle(x.GoPointer()) | |
| 286 | 276 | return cret | |
| 287 | 277 | } | |
| @@ -290,7 +280,6 @@ var xToolbarViewGetContent func(uintptr) uintptr | |||
| 290 | 280 | ||
| 291 | 281 | // Gets the content widget for @self. | |
| 292 | 282 | func (x *ToolbarView) GetContent() *gtk.Widget { | |
| 293 | - | core.LazyRegister(&xToolbarViewGetContent, "ADW", "adw_toolbar_view_get_content", false) | |
| 294 | 283 | var cls *gtk.Widget | |
| 295 | 284 | ||
| 296 | 285 | cret := xToolbarViewGetContent(x.GoPointer()) | |
| @@ -308,8 +297,6 @@ var xToolbarViewGetExtendContentToBottomEdge func(uintptr) bool | |||
| 308 | 297 | ||
| 309 | 298 | // Gets whether the content widget can extend behind bottom bars. | |
| 310 | 299 | func (x *ToolbarView) GetExtendContentToBottomEdge() bool { | |
| 311 | - | core.LazyRegister(&xToolbarViewGetExtendContentToBottomEdge, "ADW", "adw_toolbar_view_get_extend_content_to_bottom_edge", false) | |
| 312 | - | ||
| 313 | 300 | cret := xToolbarViewGetExtendContentToBottomEdge(x.GoPointer()) | |
| 314 | 301 | return cret | |
| 315 | 302 | } | |
| @@ -318,8 +305,6 @@ var xToolbarViewGetExtendContentToTopEdge func(uintptr) bool | |||
| 318 | 305 | ||
| 319 | 306 | // Gets whether the content widget can extend behind top bars. | |
| 320 | 307 | func (x *ToolbarView) GetExtendContentToTopEdge() bool { | |
| 321 | - | core.LazyRegister(&xToolbarViewGetExtendContentToTopEdge, "ADW", "adw_toolbar_view_get_extend_content_to_top_edge", false) | |
| 322 | - | ||
| 323 | 308 | cret := xToolbarViewGetExtendContentToTopEdge(x.GoPointer()) | |
| 324 | 309 | return cret | |
| 325 | 310 | } | |
| @@ -328,8 +313,6 @@ var xToolbarViewGetRevealBottomBars func(uintptr) bool | |||
| 328 | 313 | ||
| 329 | 314 | // Gets whether bottom bars are revealed for @self. | |
| 330 | 315 | func (x *ToolbarView) GetRevealBottomBars() bool { | |
| 331 | - | core.LazyRegister(&xToolbarViewGetRevealBottomBars, "ADW", "adw_toolbar_view_get_reveal_bottom_bars", false) | |
| 332 | - | ||
| 333 | 316 | cret := xToolbarViewGetRevealBottomBars(x.GoPointer()) | |
| 334 | 317 | return cret | |
| 335 | 318 | } | |
| @@ -338,8 +321,6 @@ var xToolbarViewGetRevealTopBars func(uintptr) bool | |||
| 338 | 321 | ||
| 339 | 322 | // Gets whether top bars are revealed for @self. | |
| 340 | 323 | func (x *ToolbarView) GetRevealTopBars() bool { | |
| 341 | - | core.LazyRegister(&xToolbarViewGetRevealTopBars, "ADW", "adw_toolbar_view_get_reveal_top_bars", false) | |
| 342 | - | ||
| 343 | 324 | cret := xToolbarViewGetRevealTopBars(x.GoPointer()) | |
| 344 | 325 | return cret | |
| 345 | 326 | } | |
| @@ -353,8 +334,6 @@ var xToolbarViewGetTopBarHeight func(uintptr) int | |||
| 353 | 334 | // | |
| 354 | 335 | // See [method@ToolbarView.get_bottom_bar_height]. | |
| 355 | 336 | func (x *ToolbarView) GetTopBarHeight() int { | |
| 356 | - | core.LazyRegister(&xToolbarViewGetTopBarHeight, "ADW", "adw_toolbar_view_get_top_bar_height", false) | |
| 357 | - | ||
| 358 | 337 | cret := xToolbarViewGetTopBarHeight(x.GoPointer()) | |
| 359 | 338 | return cret | |
| 360 | 339 | } | |
| @@ -363,8 +342,6 @@ var xToolbarViewGetTopBarStyle func(uintptr) ToolbarStyle | |||
| 363 | 342 | ||
| 364 | 343 | // Gets appearance of the top bars for @self. | |
| 365 | 344 | func (x *ToolbarView) GetTopBarStyle() ToolbarStyle { | |
| 366 | - | core.LazyRegister(&xToolbarViewGetTopBarStyle, "ADW", "adw_toolbar_view_get_top_bar_style", false) | |
| 367 | - | ||
| 368 | 345 | cret := xToolbarViewGetTopBarStyle(x.GoPointer()) | |
| 369 | 346 | return cret | |
| 370 | 347 | } | |
| @@ -373,8 +350,6 @@ var xToolbarViewRemove func(uintptr, uintptr) | |||
| 373 | 350 | ||
| 374 | 351 | // Removes a child from @self. | |
| 375 | 352 | func (x *ToolbarView) Remove(WidgetVar *gtk.Widget) { | |
| 376 | - | core.LazyRegister(&xToolbarViewRemove, "ADW", "adw_toolbar_view_remove", false) | |
| 377 | - | ||
| 378 | 353 | xToolbarViewRemove(x.GoPointer(), WidgetVar.GoPointer()) | |
| 379 | 354 | } | |
| 380 | 355 | ||
| @@ -405,8 +380,6 @@ var xToolbarViewSetBottomBarStyle func(uintptr, ToolbarStyle) | |||
| 405 | 380 | // | |
| 406 | 381 | // See also [method@ToolbarView.set_top_bar_style]. | |
| 407 | 382 | func (x *ToolbarView) SetBottomBarStyle(StyleVar ToolbarStyle) { | |
| 408 | - | core.LazyRegister(&xToolbarViewSetBottomBarStyle, "ADW", "adw_toolbar_view_set_bottom_bar_style", false) | |
| 409 | - | ||
| 410 | 383 | xToolbarViewSetBottomBarStyle(x.GoPointer(), StyleVar) | |
| 411 | 384 | } | |
| 412 | 385 | ||
| @@ -414,8 +387,6 @@ var xToolbarViewSetContent func(uintptr, uintptr) | |||
| 414 | 387 | ||
| 415 | 388 | // Sets the content widget for @self. | |
| 416 | 389 | func (x *ToolbarView) SetContent(ContentVar *gtk.Widget) { | |
| 417 | - | core.LazyRegister(&xToolbarViewSetContent, "ADW", "adw_toolbar_view_set_content", false) | |
| 418 | - | ||
| 419 | 390 | xToolbarViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | |
| 420 | 391 | } | |
| 421 | 392 | ||
| @@ -428,8 +399,6 @@ var xToolbarViewSetExtendContentToBottomEdge func(uintptr, bool) | |||
| 428 | 399 | // | |
| 429 | 400 | // See [method@ToolbarView.set_extend_content_to_top_edge]. | |
| 430 | 401 | func (x *ToolbarView) SetExtendContentToBottomEdge(ExtendVar bool) { | |
| 431 | - | core.LazyRegister(&xToolbarViewSetExtendContentToBottomEdge, "ADW", "adw_toolbar_view_set_extend_content_to_bottom_edge", false) | |
| 432 | - | ||
| 433 | 402 | xToolbarViewSetExtendContentToBottomEdge(x.GoPointer(), ExtendVar) | |
| 434 | 403 | } | |
| 435 | 404 | ||
| @@ -442,8 +411,6 @@ var xToolbarViewSetExtendContentToTopEdge func(uintptr, bool) | |||
| 442 | 411 | // | |
| 443 | 412 | // See [method@ToolbarView.set_extend_content_to_bottom_edge]. | |
| 444 | 413 | func (x *ToolbarView) SetExtendContentToTopEdge(ExtendVar bool) { | |
| 445 | - | core.LazyRegister(&xToolbarViewSetExtendContentToTopEdge, "ADW", "adw_toolbar_view_set_extend_content_to_top_edge", false) | |
| 446 | - | ||
| 447 | 414 | xToolbarViewSetExtendContentToTopEdge(x.GoPointer(), ExtendVar) | |
| 448 | 415 | } | |
| 449 | 416 | ||
| @@ -459,8 +426,6 @@ var xToolbarViewSetRevealBottomBars func(uintptr, bool) | |||
| 459 | 426 | // | |
| 460 | 427 | // See [method@ToolbarView.set_reveal_top_bars]. | |
| 461 | 428 | func (x *ToolbarView) SetRevealBottomBars(RevealVar bool) { | |
| 462 | - | core.LazyRegister(&xToolbarViewSetRevealBottomBars, "ADW", "adw_toolbar_view_set_reveal_bottom_bars", false) | |
| 463 | - | ||
| 464 | 429 | xToolbarViewSetRevealBottomBars(x.GoPointer(), RevealVar) | |
| 465 | 430 | } | |
| 466 | 431 | ||
| @@ -476,8 +441,6 @@ var xToolbarViewSetRevealTopBars func(uintptr, bool) | |||
| 476 | 441 | // | |
| 477 | 442 | // See [method@ToolbarView.set_reveal_bottom_bars]. | |
| 478 | 443 | func (x *ToolbarView) SetRevealTopBars(RevealVar bool) { | |
| 479 | - | core.LazyRegister(&xToolbarViewSetRevealTopBars, "ADW", "adw_toolbar_view_set_reveal_top_bars", false) | |
| 480 | - | ||
| 481 | 444 | xToolbarViewSetRevealTopBars(x.GoPointer(), RevealVar) | |
| 482 | 445 | } | |
| 483 | 446 | ||
| @@ -508,8 +471,6 @@ var xToolbarViewSetTopBarStyle func(uintptr, ToolbarStyle) | |||
| 508 | 471 | // | |
| 509 | 472 | // See also [method@ToolbarView.set_bottom_bar_style]. | |
| 510 | 473 | func (x *ToolbarView) SetTopBarStyle(StyleVar ToolbarStyle) { | |
| 511 | - | core.LazyRegister(&xToolbarViewSetTopBarStyle, "ADW", "adw_toolbar_view_set_top_bar_style", false) | |
| 512 | - | ||
| 513 | 474 | xToolbarViewSetTopBarStyle(x.GoPointer(), StyleVar) | |
| 514 | 475 | } | |
| 515 | 476 | ||
| @@ -935,4 +896,38 @@ func (x *ToolbarView) GetBuildableId() string { | |||
| 935 | 896 | func init() { | |
| 936 | 897 | core.SetPackageName("ADW", "libadwaita-1") | |
| 937 | 898 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 899 | + | var libs []uintptr | |
| 900 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 901 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 902 | + | if err != nil { | |
| 903 | + | panic(err) | |
| 904 | + | } | |
| 905 | + | libs = append(libs, lib) | |
| 906 | + | } | |
| 907 | + | ||
| 908 | + | core.PuregoSafeRegister(&xToolbarStyleGLibType, libs, "adw_toolbar_style_get_type") | |
| 909 | + | ||
| 910 | + | core.PuregoSafeRegister(&xToolbarViewGLibType, libs, "adw_toolbar_view_get_type") | |
| 911 | + | ||
| 912 | + | core.PuregoSafeRegister(&xNewToolbarView, libs, "adw_toolbar_view_new") | |
| 913 | + | ||
| 914 | + | core.PuregoSafeRegister(&xToolbarViewAddBottomBar, libs, "adw_toolbar_view_add_bottom_bar") | |
| 915 | + | core.PuregoSafeRegister(&xToolbarViewAddTopBar, libs, "adw_toolbar_view_add_top_bar") | |
| 916 | + | core.PuregoSafeRegister(&xToolbarViewGetBottomBarHeight, libs, "adw_toolbar_view_get_bottom_bar_height") | |
| 917 | + | core.PuregoSafeRegister(&xToolbarViewGetBottomBarStyle, libs, "adw_toolbar_view_get_bottom_bar_style") | |
| 918 | + | core.PuregoSafeRegister(&xToolbarViewGetContent, libs, "adw_toolbar_view_get_content") | |
| 919 | + | core.PuregoSafeRegister(&xToolbarViewGetExtendContentToBottomEdge, libs, "adw_toolbar_view_get_extend_content_to_bottom_edge") | |
| 920 | + | core.PuregoSafeRegister(&xToolbarViewGetExtendContentToTopEdge, libs, "adw_toolbar_view_get_extend_content_to_top_edge") | |
| 921 | + | core.PuregoSafeRegister(&xToolbarViewGetRevealBottomBars, libs, "adw_toolbar_view_get_reveal_bottom_bars") | |
| 922 | + | core.PuregoSafeRegister(&xToolbarViewGetRevealTopBars, libs, "adw_toolbar_view_get_reveal_top_bars") | |
| 923 | + | core.PuregoSafeRegister(&xToolbarViewGetTopBarHeight, libs, "adw_toolbar_view_get_top_bar_height") | |
| 924 | + | core.PuregoSafeRegister(&xToolbarViewGetTopBarStyle, libs, "adw_toolbar_view_get_top_bar_style") | |
| 925 | + | core.PuregoSafeRegister(&xToolbarViewRemove, libs, "adw_toolbar_view_remove") | |
| 926 | + | core.PuregoSafeRegister(&xToolbarViewSetBottomBarStyle, libs, "adw_toolbar_view_set_bottom_bar_style") | |
| 927 | + | core.PuregoSafeRegister(&xToolbarViewSetContent, libs, "adw_toolbar_view_set_content") | |
| 928 | + | core.PuregoSafeRegister(&xToolbarViewSetExtendContentToBottomEdge, libs, "adw_toolbar_view_set_extend_content_to_bottom_edge") | |
| 929 | + | core.PuregoSafeRegister(&xToolbarViewSetExtendContentToTopEdge, libs, "adw_toolbar_view_set_extend_content_to_top_edge") | |
| 930 | + | core.PuregoSafeRegister(&xToolbarViewSetRevealBottomBars, libs, "adw_toolbar_view_set_reveal_bottom_bars") | |
| 931 | + | core.PuregoSafeRegister(&xToolbarViewSetRevealTopBars, libs, "adw_toolbar_view_set_reveal_top_bars") | |
| 932 | + | core.PuregoSafeRegister(&xToolbarViewSetTopBarStyle, libs, "adw_toolbar_view_set_top_bar_style") | |
| 938 | 933 | } | |
| @@ -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/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -82,7 +83,6 @@ type ToolbarStyle int | |||||
| 82 | var xToolbarStyleGLibType func() types.GType | 83 | var xToolbarStyleGLibType func() types.GType | ||
| 83 | 84 | ||||
| 84 | func ToolbarStyleGLibType() types.GType { | 85 | func ToolbarStyleGLibType() types.GType { | ||
| 85 | - | core.LazyRegister(&xToolbarStyleGLibType, "ADW", "adw_toolbar_style_get_type", false) | |||
| 86 | return xToolbarStyleGLibType() | 86 | return xToolbarStyleGLibType() | ||
| 87 | } | 87 | } | ||
| 88 | 88 | ||||
| @@ -215,7 +215,6 @@ type ToolbarView struct { | |||||
| 215 | var xToolbarViewGLibType func() types.GType | 215 | var xToolbarViewGLibType func() types.GType | ||
| 216 | 216 | ||||
| 217 | func ToolbarViewGLibType() types.GType { | 217 | func ToolbarViewGLibType() types.GType { | ||
| 218 | - | core.LazyRegister(&xToolbarViewGLibType, "ADW", "adw_toolbar_view_get_type", false) | |||
| 219 | return xToolbarViewGLibType() | 218 | return xToolbarViewGLibType() | ||
| 220 | } | 219 | } | ||
| 221 | 220 | ||||
| @@ -229,7 +228,6 @@ var xNewToolbarView func() uintptr | |||||
| 229 | 228 | ||||
| 230 | // Creates a new `AdwToolbarView`. | 229 | // Creates a new `AdwToolbarView`. | ||
| 231 | func NewToolbarView() *ToolbarView { | 230 | func NewToolbarView() *ToolbarView { | ||
| 232 | - | core.LazyRegister(&xNewToolbarView, "ADW", "adw_toolbar_view_new", false) | |||
| 233 | var cls *ToolbarView | 231 | var cls *ToolbarView | ||
| 234 | 232 | ||||
| 235 | cret := xNewToolbarView() | 233 | cret := xNewToolbarView() | ||
| @@ -247,8 +245,6 @@ var xToolbarViewAddBottomBar func(uintptr, uintptr) | |||||
| 247 | 245 | ||||
| 248 | // Adds a bottom bar to @self. | 246 | // Adds a bottom bar to @self. | ||
| 249 | func (x *ToolbarView) AddBottomBar(WidgetVar *gtk.Widget) { | 247 | func (x *ToolbarView) AddBottomBar(WidgetVar *gtk.Widget) { | ||
| 250 | - | core.LazyRegister(&xToolbarViewAddBottomBar, "ADW", "adw_toolbar_view_add_bottom_bar", false) | |||
| 251 | - | ||||
| 252 | xToolbarViewAddBottomBar(x.GoPointer(), WidgetVar.GoPointer()) | 248 | xToolbarViewAddBottomBar(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 253 | } | 249 | } | ||
| 254 | 250 | ||||
| @@ -256,8 +252,6 @@ var xToolbarViewAddTopBar func(uintptr, uintptr) | |||||
| 256 | 252 | ||||
| 257 | // Adds a top bar to @self. | 253 | // Adds a top bar to @self. | ||
| 258 | func (x *ToolbarView) AddTopBar(WidgetVar *gtk.Widget) { | 254 | func (x *ToolbarView) AddTopBar(WidgetVar *gtk.Widget) { | ||
| 259 | - | core.LazyRegister(&xToolbarViewAddTopBar, "ADW", "adw_toolbar_view_add_top_bar", false) | |||
| 260 | - | ||||
| 261 | xToolbarViewAddTopBar(x.GoPointer(), WidgetVar.GoPointer()) | 255 | xToolbarViewAddTopBar(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 262 | } | 256 | } | ||
| 263 | 257 | ||||
| @@ -270,8 +264,6 @@ var xToolbarViewGetBottomBarHeight func(uintptr) int | |||||
| 270 | // | 264 | // | ||
| 271 | // See [method@ToolbarView.get_top_bar_height]. | 265 | // See [method@ToolbarView.get_top_bar_height]. | ||
| 272 | func (x *ToolbarView) GetBottomBarHeight() int { | 266 | func (x *ToolbarView) GetBottomBarHeight() int { | ||
| 273 | - | core.LazyRegister(&xToolbarViewGetBottomBarHeight, "ADW", "adw_toolbar_view_get_bottom_bar_height", false) | |||
| 274 | - | ||||
| 275 | cret := xToolbarViewGetBottomBarHeight(x.GoPointer()) | 267 | cret := xToolbarViewGetBottomBarHeight(x.GoPointer()) | ||
| 276 | return cret | 268 | return cret | ||
| 277 | } | 269 | } | ||
| @@ -280,8 +272,6 @@ var xToolbarViewGetBottomBarStyle func(uintptr) ToolbarStyle | |||||
| 280 | 272 | ||||
| 281 | // Gets appearance of the bottom bars for @self. | 273 | // Gets appearance of the bottom bars for @self. | ||
| 282 | func (x *ToolbarView) GetBottomBarStyle() ToolbarStyle { | 274 | func (x *ToolbarView) GetBottomBarStyle() ToolbarStyle { | ||
| 283 | - | core.LazyRegister(&xToolbarViewGetBottomBarStyle, "ADW", "adw_toolbar_view_get_bottom_bar_style", false) | |||
| 284 | - | ||||
| 285 | cret := xToolbarViewGetBottomBarStyle(x.GoPointer()) | 275 | cret := xToolbarViewGetBottomBarStyle(x.GoPointer()) | ||
| 286 | return cret | 276 | return cret | ||
| 287 | } | 277 | } | ||
| @@ -290,7 +280,6 @@ var xToolbarViewGetContent func(uintptr) uintptr | |||||
| 290 | 280 | ||||
| 291 | // Gets the content widget for @self. | 281 | // Gets the content widget for @self. | ||
| 292 | func (x *ToolbarView) GetContent() *gtk.Widget { | 282 | func (x *ToolbarView) GetContent() *gtk.Widget { | ||
| 293 | - | core.LazyRegister(&xToolbarViewGetContent, "ADW", "adw_toolbar_view_get_content", false) | |||
| 294 | var cls *gtk.Widget | 283 | var cls *gtk.Widget | ||
| 295 | 284 | ||||
| 296 | cret := xToolbarViewGetContent(x.GoPointer()) | 285 | cret := xToolbarViewGetContent(x.GoPointer()) | ||
| @@ -308,8 +297,6 @@ var xToolbarViewGetExtendContentToBottomEdge func(uintptr) bool | |||||
| 308 | 297 | ||||
| 309 | // Gets whether the content widget can extend behind bottom bars. | 298 | // Gets whether the content widget can extend behind bottom bars. | ||
| 310 | func (x *ToolbarView) GetExtendContentToBottomEdge() bool { | 299 | func (x *ToolbarView) GetExtendContentToBottomEdge() bool { | ||
| 311 | - | core.LazyRegister(&xToolbarViewGetExtendContentToBottomEdge, "ADW", "adw_toolbar_view_get_extend_content_to_bottom_edge", false) | |||
| 312 | - | ||||
| 313 | cret := xToolbarViewGetExtendContentToBottomEdge(x.GoPointer()) | 300 | cret := xToolbarViewGetExtendContentToBottomEdge(x.GoPointer()) | ||
| 314 | return cret | 301 | return cret | ||
| 315 | } | 302 | } | ||
| @@ -318,8 +305,6 @@ var xToolbarViewGetExtendContentToTopEdge func(uintptr) bool | |||||
| 318 | 305 | ||||
| 319 | // Gets whether the content widget can extend behind top bars. | 306 | // Gets whether the content widget can extend behind top bars. | ||
| 320 | func (x *ToolbarView) GetExtendContentToTopEdge() bool { | 307 | func (x *ToolbarView) GetExtendContentToTopEdge() bool { | ||
| 321 | - | core.LazyRegister(&xToolbarViewGetExtendContentToTopEdge, "ADW", "adw_toolbar_view_get_extend_content_to_top_edge", false) | |||
| 322 | - | ||||
| 323 | cret := xToolbarViewGetExtendContentToTopEdge(x.GoPointer()) | 308 | cret := xToolbarViewGetExtendContentToTopEdge(x.GoPointer()) | ||
| 324 | return cret | 309 | return cret | ||
| 325 | } | 310 | } | ||
| @@ -328,8 +313,6 @@ var xToolbarViewGetRevealBottomBars func(uintptr) bool | |||||
| 328 | 313 | ||||
| 329 | // Gets whether bottom bars are revealed for @self. | 314 | // Gets whether bottom bars are revealed for @self. | ||
| 330 | func (x *ToolbarView) GetRevealBottomBars() bool { | 315 | func (x *ToolbarView) GetRevealBottomBars() bool { | ||
| 331 | - | core.LazyRegister(&xToolbarViewGetRevealBottomBars, "ADW", "adw_toolbar_view_get_reveal_bottom_bars", false) | |||
| 332 | - | ||||
| 333 | cret := xToolbarViewGetRevealBottomBars(x.GoPointer()) | 316 | cret := xToolbarViewGetRevealBottomBars(x.GoPointer()) | ||
| 334 | return cret | 317 | return cret | ||
| 335 | } | 318 | } | ||
| @@ -338,8 +321,6 @@ var xToolbarViewGetRevealTopBars func(uintptr) bool | |||||
| 338 | 321 | ||||
| 339 | // Gets whether top bars are revealed for @self. | 322 | // Gets whether top bars are revealed for @self. | ||
| 340 | func (x *ToolbarView) GetRevealTopBars() bool { | 323 | func (x *ToolbarView) GetRevealTopBars() bool { | ||
| 341 | - | core.LazyRegister(&xToolbarViewGetRevealTopBars, "ADW", "adw_toolbar_view_get_reveal_top_bars", false) | |||
| 342 | - | ||||
| 343 | cret := xToolbarViewGetRevealTopBars(x.GoPointer()) | 324 | cret := xToolbarViewGetRevealTopBars(x.GoPointer()) | ||
| 344 | return cret | 325 | return cret | ||
| 345 | } | 326 | } | ||
| @@ -353,8 +334,6 @@ var xToolbarViewGetTopBarHeight func(uintptr) int | |||||
| 353 | // | 334 | // | ||
| 354 | // See [method@ToolbarView.get_bottom_bar_height]. | 335 | // See [method@ToolbarView.get_bottom_bar_height]. | ||
| 355 | func (x *ToolbarView) GetTopBarHeight() int { | 336 | func (x *ToolbarView) GetTopBarHeight() int { | ||
| 356 | - | core.LazyRegister(&xToolbarViewGetTopBarHeight, "ADW", "adw_toolbar_view_get_top_bar_height", false) | |||
| 357 | - | ||||
| 358 | cret := xToolbarViewGetTopBarHeight(x.GoPointer()) | 337 | cret := xToolbarViewGetTopBarHeight(x.GoPointer()) | ||
| 359 | return cret | 338 | return cret | ||
| 360 | } | 339 | } | ||
| @@ -363,8 +342,6 @@ var xToolbarViewGetTopBarStyle func(uintptr) ToolbarStyle | |||||
| 363 | 342 | ||||
| 364 | // Gets appearance of the top bars for @self. | 343 | // Gets appearance of the top bars for @self. | ||
| 365 | func (x *ToolbarView) GetTopBarStyle() ToolbarStyle { | 344 | func (x *ToolbarView) GetTopBarStyle() ToolbarStyle { | ||
| 366 | - | core.LazyRegister(&xToolbarViewGetTopBarStyle, "ADW", "adw_toolbar_view_get_top_bar_style", false) | |||
| 367 | - | ||||
| 368 | cret := xToolbarViewGetTopBarStyle(x.GoPointer()) | 345 | cret := xToolbarViewGetTopBarStyle(x.GoPointer()) | ||
| 369 | return cret | 346 | return cret | ||
| 370 | } | 347 | } | ||
| @@ -373,8 +350,6 @@ var xToolbarViewRemove func(uintptr, uintptr) | |||||
| 373 | 350 | ||||
| 374 | // Removes a child from @self. | 351 | // Removes a child from @self. | ||
| 375 | func (x *ToolbarView) Remove(WidgetVar *gtk.Widget) { | 352 | func (x *ToolbarView) Remove(WidgetVar *gtk.Widget) { | ||
| 376 | - | core.LazyRegister(&xToolbarViewRemove, "ADW", "adw_toolbar_view_remove", false) | |||
| 377 | - | ||||
| 378 | xToolbarViewRemove(x.GoPointer(), WidgetVar.GoPointer()) | 353 | xToolbarViewRemove(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 379 | } | 354 | } | ||
| 380 | 355 | ||||
| @@ -405,8 +380,6 @@ var xToolbarViewSetBottomBarStyle func(uintptr, ToolbarStyle) | |||||
| 405 | // | 380 | // | ||
| 406 | // See also [method@ToolbarView.set_top_bar_style]. | 381 | // See also [method@ToolbarView.set_top_bar_style]. | ||
| 407 | func (x *ToolbarView) SetBottomBarStyle(StyleVar ToolbarStyle) { | 382 | func (x *ToolbarView) SetBottomBarStyle(StyleVar ToolbarStyle) { | ||
| 408 | - | core.LazyRegister(&xToolbarViewSetBottomBarStyle, "ADW", "adw_toolbar_view_set_bottom_bar_style", false) | |||
| 409 | - | ||||
| 410 | xToolbarViewSetBottomBarStyle(x.GoPointer(), StyleVar) | 383 | xToolbarViewSetBottomBarStyle(x.GoPointer(), StyleVar) | ||
| 411 | } | 384 | } | ||
| 412 | 385 | ||||
| @@ -414,8 +387,6 @@ var xToolbarViewSetContent func(uintptr, uintptr) | |||||
| 414 | 387 | ||||
| 415 | // Sets the content widget for @self. | 388 | // Sets the content widget for @self. | ||
| 416 | func (x *ToolbarView) SetContent(ContentVar *gtk.Widget) { | 389 | func (x *ToolbarView) SetContent(ContentVar *gtk.Widget) { | ||
| 417 | - | core.LazyRegister(&xToolbarViewSetContent, "ADW", "adw_toolbar_view_set_content", false) | |||
| 418 | - | ||||
| 419 | xToolbarViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | 390 | xToolbarViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | ||
| 420 | } | 391 | } | ||
| 421 | 392 | ||||
| @@ -428,8 +399,6 @@ var xToolbarViewSetExtendContentToBottomEdge func(uintptr, bool) | |||||
| 428 | // | 399 | // | ||
| 429 | // See [method@ToolbarView.set_extend_content_to_top_edge]. | 400 | // See [method@ToolbarView.set_extend_content_to_top_edge]. | ||
| 430 | func (x *ToolbarView) SetExtendContentToBottomEdge(ExtendVar bool) { | 401 | func (x *ToolbarView) SetExtendContentToBottomEdge(ExtendVar bool) { | ||
| 431 | - | core.LazyRegister(&xToolbarViewSetExtendContentToBottomEdge, "ADW", "adw_toolbar_view_set_extend_content_to_bottom_edge", false) | |||
| 432 | - | ||||
| 433 | xToolbarViewSetExtendContentToBottomEdge(x.GoPointer(), ExtendVar) | 402 | xToolbarViewSetExtendContentToBottomEdge(x.GoPointer(), ExtendVar) | ||
| 434 | } | 403 | } | ||
| 435 | 404 | ||||
| @@ -442,8 +411,6 @@ var xToolbarViewSetExtendContentToTopEdge func(uintptr, bool) | |||||
| 442 | // | 411 | // | ||
| 443 | // See [method@ToolbarView.set_extend_content_to_bottom_edge]. | 412 | // See [method@ToolbarView.set_extend_content_to_bottom_edge]. | ||
| 444 | func (x *ToolbarView) SetExtendContentToTopEdge(ExtendVar bool) { | 413 | func (x *ToolbarView) SetExtendContentToTopEdge(ExtendVar bool) { | ||
| 445 | - | core.LazyRegister(&xToolbarViewSetExtendContentToTopEdge, "ADW", "adw_toolbar_view_set_extend_content_to_top_edge", false) | |||
| 446 | - | ||||
| 447 | xToolbarViewSetExtendContentToTopEdge(x.GoPointer(), ExtendVar) | 414 | xToolbarViewSetExtendContentToTopEdge(x.GoPointer(), ExtendVar) | ||
| 448 | } | 415 | } | ||
| 449 | 416 | ||||
| @@ -459,8 +426,6 @@ var xToolbarViewSetRevealBottomBars func(uintptr, bool) | |||||
| 459 | // | 426 | // | ||
| 460 | // See [method@ToolbarView.set_reveal_top_bars]. | 427 | // See [method@ToolbarView.set_reveal_top_bars]. | ||
| 461 | func (x *ToolbarView) SetRevealBottomBars(RevealVar bool) { | 428 | func (x *ToolbarView) SetRevealBottomBars(RevealVar bool) { | ||
| 462 | - | core.LazyRegister(&xToolbarViewSetRevealBottomBars, "ADW", "adw_toolbar_view_set_reveal_bottom_bars", false) | |||
| 463 | - | ||||
| 464 | xToolbarViewSetRevealBottomBars(x.GoPointer(), RevealVar) | 429 | xToolbarViewSetRevealBottomBars(x.GoPointer(), RevealVar) | ||
| 465 | } | 430 | } | ||
| 466 | 431 | ||||
| @@ -476,8 +441,6 @@ var xToolbarViewSetRevealTopBars func(uintptr, bool) | |||||
| 476 | // | 441 | // | ||
| 477 | // See [method@ToolbarView.set_reveal_bottom_bars]. | 442 | // See [method@ToolbarView.set_reveal_bottom_bars]. | ||
| 478 | func (x *ToolbarView) SetRevealTopBars(RevealVar bool) { | 443 | func (x *ToolbarView) SetRevealTopBars(RevealVar bool) { | ||
| 479 | - | core.LazyRegister(&xToolbarViewSetRevealTopBars, "ADW", "adw_toolbar_view_set_reveal_top_bars", false) | |||
| 480 | - | ||||
| 481 | xToolbarViewSetRevealTopBars(x.GoPointer(), RevealVar) | 444 | xToolbarViewSetRevealTopBars(x.GoPointer(), RevealVar) | ||
| 482 | } | 445 | } | ||
| 483 | 446 | ||||
| @@ -508,8 +471,6 @@ var xToolbarViewSetTopBarStyle func(uintptr, ToolbarStyle) | |||||
| 508 | // | 471 | // | ||
| 509 | // See also [method@ToolbarView.set_bottom_bar_style]. | 472 | // See also [method@ToolbarView.set_bottom_bar_style]. | ||
| 510 | func (x *ToolbarView) SetTopBarStyle(StyleVar ToolbarStyle) { | 473 | func (x *ToolbarView) SetTopBarStyle(StyleVar ToolbarStyle) { | ||
| 511 | - | core.LazyRegister(&xToolbarViewSetTopBarStyle, "ADW", "adw_toolbar_view_set_top_bar_style", false) | |||
| 512 | - | ||||
| 513 | xToolbarViewSetTopBarStyle(x.GoPointer(), StyleVar) | 474 | xToolbarViewSetTopBarStyle(x.GoPointer(), StyleVar) | ||
| 514 | } | 475 | } | ||
| 515 | 476 | ||||
| @@ -935,4 +896,38 @@ func (x *ToolbarView) GetBuildableId() string { | |||||
| 935 | func init() { | 896 | func init() { | ||
| 936 | core.SetPackageName("ADW", "libadwaita-1") | 897 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 937 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 898 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 899 | + | var libs []uintptr | |||
| 900 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 901 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 902 | + | if err != nil { | |||
| 903 | + | panic(err) | |||
| 904 | + | } | |||
| 905 | + | libs = append(libs, lib) | |||
| 906 | + | } | |||
| 907 | + | ||||
| 908 | + | core.PuregoSafeRegister(&xToolbarStyleGLibType, libs, "adw_toolbar_style_get_type") | |||
| 909 | + | ||||
| 910 | + | core.PuregoSafeRegister(&xToolbarViewGLibType, libs, "adw_toolbar_view_get_type") | |||
| 911 | + | ||||
| 912 | + | core.PuregoSafeRegister(&xNewToolbarView, libs, "adw_toolbar_view_new") | |||
| 913 | + | ||||
| 914 | + | core.PuregoSafeRegister(&xToolbarViewAddBottomBar, libs, "adw_toolbar_view_add_bottom_bar") | |||
| 915 | + | core.PuregoSafeRegister(&xToolbarViewAddTopBar, libs, "adw_toolbar_view_add_top_bar") | |||
| 916 | + | core.PuregoSafeRegister(&xToolbarViewGetBottomBarHeight, libs, "adw_toolbar_view_get_bottom_bar_height") | |||
| 917 | + | core.PuregoSafeRegister(&xToolbarViewGetBottomBarStyle, libs, "adw_toolbar_view_get_bottom_bar_style") | |||
| 918 | + | core.PuregoSafeRegister(&xToolbarViewGetContent, libs, "adw_toolbar_view_get_content") | |||
| 919 | + | core.PuregoSafeRegister(&xToolbarViewGetExtendContentToBottomEdge, libs, "adw_toolbar_view_get_extend_content_to_bottom_edge") | |||
| 920 | + | core.PuregoSafeRegister(&xToolbarViewGetExtendContentToTopEdge, libs, "adw_toolbar_view_get_extend_content_to_top_edge") | |||
| 921 | + | core.PuregoSafeRegister(&xToolbarViewGetRevealBottomBars, libs, "adw_toolbar_view_get_reveal_bottom_bars") | |||
| 922 | + | core.PuregoSafeRegister(&xToolbarViewGetRevealTopBars, libs, "adw_toolbar_view_get_reveal_top_bars") | |||
| 923 | + | core.PuregoSafeRegister(&xToolbarViewGetTopBarHeight, libs, "adw_toolbar_view_get_top_bar_height") | |||
| 924 | + | core.PuregoSafeRegister(&xToolbarViewGetTopBarStyle, libs, "adw_toolbar_view_get_top_bar_style") | |||
| 925 | + | core.PuregoSafeRegister(&xToolbarViewRemove, libs, "adw_toolbar_view_remove") | |||
| 926 | + | core.PuregoSafeRegister(&xToolbarViewSetBottomBarStyle, libs, "adw_toolbar_view_set_bottom_bar_style") | |||
| 927 | + | core.PuregoSafeRegister(&xToolbarViewSetContent, libs, "adw_toolbar_view_set_content") | |||
| 928 | + | core.PuregoSafeRegister(&xToolbarViewSetExtendContentToBottomEdge, libs, "adw_toolbar_view_set_extend_content_to_bottom_edge") | |||
| 929 | + | core.PuregoSafeRegister(&xToolbarViewSetExtendContentToTopEdge, libs, "adw_toolbar_view_set_extend_content_to_top_edge") | |||
| 930 | + | core.PuregoSafeRegister(&xToolbarViewSetRevealBottomBars, libs, "adw_toolbar_view_set_reveal_bottom_bars") | |||
| 931 | + | core.PuregoSafeRegister(&xToolbarViewSetRevealTopBars, libs, "adw_toolbar_view_set_reveal_top_bars") | |||
| 932 | + | core.PuregoSafeRegister(&xToolbarViewSetTopBarStyle, libs, "adw_toolbar_view_set_top_bar_style") | |||
| 938 | } | 933 | } | ||