Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gobject" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -179,6 +178,7 @@ type NavigationSplitView struct { | |||
| 179 | 178 | var xNavigationSplitViewGLibType func() types.GType | |
| 180 | 179 | ||
| 181 | 180 | func NavigationSplitViewGLibType() types.GType { | |
| 181 | + | core.LazyRegister(&xNavigationSplitViewGLibType, "ADW", "adw_navigation_split_view_get_type", false) | |
| 182 | 182 | return xNavigationSplitViewGLibType() | |
| 183 | 183 | } | |
| 184 | 184 | ||
| @@ -192,6 +192,7 @@ var xNewNavigationSplitView func() uintptr | |||
| 192 | 192 | ||
| 193 | 193 | // Creates a new `AdwNavigationSplitView`. | |
| 194 | 194 | func NewNavigationSplitView() *NavigationSplitView { | |
| 195 | + | core.LazyRegister(&xNewNavigationSplitView, "ADW", "adw_navigation_split_view_new", false) | |
| 195 | 196 | var cls *NavigationSplitView | |
| 196 | 197 | ||
| 197 | 198 | cret := xNewNavigationSplitView() | |
| @@ -209,6 +210,8 @@ var xNavigationSplitViewGetCollapsed func(uintptr) bool | |||
| 209 | 210 | ||
| 210 | 211 | // Gets whether @self is collapsed. | |
| 211 | 212 | func (x *NavigationSplitView) GetCollapsed() bool { | |
| 213 | + | core.LazyRegister(&xNavigationSplitViewGetCollapsed, "ADW", "adw_navigation_split_view_get_collapsed", false) | |
| 214 | + | ||
| 212 | 215 | cret := xNavigationSplitViewGetCollapsed(x.GoPointer()) | |
| 213 | 216 | return cret | |
| 214 | 217 | } | |
| @@ -217,6 +220,7 @@ var xNavigationSplitViewGetContent func(uintptr) uintptr | |||
| 217 | 220 | ||
| 218 | 221 | // Sets the content widget for @self. | |
| 219 | 222 | func (x *NavigationSplitView) GetContent() *NavigationPage { | |
| 223 | + | core.LazyRegister(&xNavigationSplitViewGetContent, "ADW", "adw_navigation_split_view_get_content", false) | |
| 220 | 224 | var cls *NavigationPage | |
| 221 | 225 | ||
| 222 | 226 | cret := xNavigationSplitViewGetContent(x.GoPointer()) | |
| @@ -234,6 +238,8 @@ var xNavigationSplitViewGetMaxSidebarWidth func(uintptr) float64 | |||
| 234 | 238 | ||
| 235 | 239 | // Gets the maximum sidebar width for @self. | |
| 236 | 240 | func (x *NavigationSplitView) GetMaxSidebarWidth() float64 { | |
| 241 | + | core.LazyRegister(&xNavigationSplitViewGetMaxSidebarWidth, "ADW", "adw_navigation_split_view_get_max_sidebar_width", false) | |
| 242 | + | ||
| 237 | 243 | cret := xNavigationSplitViewGetMaxSidebarWidth(x.GoPointer()) | |
| 238 | 244 | return cret | |
| 239 | 245 | } | |
| @@ -242,6 +248,8 @@ var xNavigationSplitViewGetMinSidebarWidth func(uintptr) float64 | |||
| 242 | 248 | ||
| 243 | 249 | // Gets the minimum sidebar width for @self. | |
| 244 | 250 | func (x *NavigationSplitView) GetMinSidebarWidth() float64 { | |
| 251 | + | core.LazyRegister(&xNavigationSplitViewGetMinSidebarWidth, "ADW", "adw_navigation_split_view_get_min_sidebar_width", false) | |
| 252 | + | ||
| 245 | 253 | cret := xNavigationSplitViewGetMinSidebarWidth(x.GoPointer()) | |
| 246 | 254 | return cret | |
| 247 | 255 | } | |
| @@ -250,6 +258,8 @@ var xNavigationSplitViewGetShowContent func(uintptr) bool | |||
| 250 | 258 | ||
| 251 | 259 | // Gets which page is visible when @self is collapsed. | |
| 252 | 260 | func (x *NavigationSplitView) GetShowContent() bool { | |
| 261 | + | core.LazyRegister(&xNavigationSplitViewGetShowContent, "ADW", "adw_navigation_split_view_get_show_content", false) | |
| 262 | + | ||
| 253 | 263 | cret := xNavigationSplitViewGetShowContent(x.GoPointer()) | |
| 254 | 264 | return cret | |
| 255 | 265 | } | |
| @@ -258,6 +268,7 @@ var xNavigationSplitViewGetSidebar func(uintptr) uintptr | |||
| 258 | 268 | ||
| 259 | 269 | // Gets the sidebar widget for @self. | |
| 260 | 270 | func (x *NavigationSplitView) GetSidebar() *NavigationPage { | |
| 271 | + | core.LazyRegister(&xNavigationSplitViewGetSidebar, "ADW", "adw_navigation_split_view_get_sidebar", false) | |
| 261 | 272 | var cls *NavigationPage | |
| 262 | 273 | ||
| 263 | 274 | cret := xNavigationSplitViewGetSidebar(x.GoPointer()) | |
| @@ -275,6 +286,8 @@ var xNavigationSplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||
| 275 | 286 | ||
| 276 | 287 | // Gets the sidebar position for @self. | |
| 277 | 288 | func (x *NavigationSplitView) GetSidebarPosition() gtk.PackType { | |
| 289 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarPosition, "ADW", "adw_navigation_split_view_get_sidebar_position", false) | |
| 290 | + | ||
| 278 | 291 | cret := xNavigationSplitViewGetSidebarPosition(x.GoPointer()) | |
| 279 | 292 | return cret | |
| 280 | 293 | } | |
| @@ -283,6 +296,8 @@ var xNavigationSplitViewGetSidebarWidthFraction func(uintptr) float64 | |||
| 283 | 296 | ||
| 284 | 297 | // Gets the preferred sidebar width fraction for @self. | |
| 285 | 298 | func (x *NavigationSplitView) GetSidebarWidthFraction() float64 { | |
| 299 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarWidthFraction, "ADW", "adw_navigation_split_view_get_sidebar_width_fraction", false) | |
| 300 | + | ||
| 286 | 301 | cret := xNavigationSplitViewGetSidebarWidthFraction(x.GoPointer()) | |
| 287 | 302 | return cret | |
| 288 | 303 | } | |
| @@ -291,6 +306,8 @@ var xNavigationSplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||
| 291 | 306 | ||
| 292 | 307 | // Gets the length unit for minimum and maximum sidebar widths. | |
| 293 | 308 | func (x *NavigationSplitView) GetSidebarWidthUnit() LengthUnit { | |
| 309 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarWidthUnit, "ADW", "adw_navigation_split_view_get_sidebar_width_unit", false) | |
| 310 | + | ||
| 294 | 311 | cret := xNavigationSplitViewGetSidebarWidthUnit(x.GoPointer()) | |
| 295 | 312 | return cret | |
| 296 | 313 | } | |
| @@ -305,6 +322,8 @@ var xNavigationSplitViewSetCollapsed func(uintptr, bool) | |||
| 305 | 322 | // The [property@NavigationSplitView:show-content] controls which child is | |
| 306 | 323 | // visible while collapsed. | |
| 307 | 324 | func (x *NavigationSplitView) SetCollapsed(CollapsedVar bool) { | |
| 325 | + | core.LazyRegister(&xNavigationSplitViewSetCollapsed, "ADW", "adw_navigation_split_view_set_collapsed", false) | |
| 326 | + | ||
| 308 | 327 | xNavigationSplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | |
| 309 | 328 | } | |
| 310 | 329 | ||
| @@ -312,6 +331,8 @@ var xNavigationSplitViewSetContent func(uintptr, uintptr) | |||
| 312 | 331 | ||
| 313 | 332 | // Sets the content widget for @self. | |
| 314 | 333 | func (x *NavigationSplitView) SetContent(ContentVar *NavigationPage) { | |
| 334 | + | core.LazyRegister(&xNavigationSplitViewSetContent, "ADW", "adw_navigation_split_view_set_content", false) | |
| 335 | + | ||
| 315 | 336 | xNavigationSplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | |
| 316 | 337 | } | |
| 317 | 338 | ||
| @@ -325,6 +346,8 @@ var xNavigationSplitViewSetMaxSidebarWidth func(uintptr, float64) | |||
| 325 | 346 | // The sidebar widget can still be allocated with larger width if its own | |
| 326 | 347 | // minimum width exceeds it. | |
| 327 | 348 | func (x *NavigationSplitView) SetMaxSidebarWidth(WidthVar float64) { | |
| 349 | + | core.LazyRegister(&xNavigationSplitViewSetMaxSidebarWidth, "ADW", "adw_navigation_split_view_set_max_sidebar_width", false) | |
| 350 | + | ||
| 328 | 351 | xNavigationSplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | |
| 329 | 352 | } | |
| 330 | 353 | ||
| @@ -338,6 +361,8 @@ var xNavigationSplitViewSetMinSidebarWidth func(uintptr, float64) | |||
| 338 | 361 | // The sidebar widget can still be allocated with larger width if its own | |
| 339 | 362 | // minimum width exceeds it. | |
| 340 | 363 | func (x *NavigationSplitView) SetMinSidebarWidth(WidthVar float64) { | |
| 364 | + | core.LazyRegister(&xNavigationSplitViewSetMinSidebarWidth, "ADW", "adw_navigation_split_view_set_min_sidebar_width", false) | |
| 365 | + | ||
| 341 | 366 | xNavigationSplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | |
| 342 | 367 | } | |
| 343 | 368 | ||
| @@ -351,6 +376,8 @@ var xNavigationSplitViewSetShowContent func(uintptr, bool) | |||
| 351 | 376 | // | |
| 352 | 377 | // If the split view is already collapsed, the visible page changes immediately. | |
| 353 | 378 | func (x *NavigationSplitView) SetShowContent(ShowContentVar bool) { | |
| 379 | + | core.LazyRegister(&xNavigationSplitViewSetShowContent, "ADW", "adw_navigation_split_view_set_show_content", false) | |
| 380 | + | ||
| 354 | 381 | xNavigationSplitViewSetShowContent(x.GoPointer(), ShowContentVar) | |
| 355 | 382 | } | |
| 356 | 383 | ||
| @@ -358,6 +385,8 @@ var xNavigationSplitViewSetSidebar func(uintptr, uintptr) | |||
| 358 | 385 | ||
| 359 | 386 | // Sets the sidebar widget for @self. | |
| 360 | 387 | func (x *NavigationSplitView) SetSidebar(SidebarVar *NavigationPage) { | |
| 388 | + | core.LazyRegister(&xNavigationSplitViewSetSidebar, "ADW", "adw_navigation_split_view_set_sidebar", false) | |
| 389 | + | ||
| 361 | 390 | xNavigationSplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | |
| 362 | 391 | } | |
| 363 | 392 | ||
| @@ -371,6 +400,8 @@ var xNavigationSplitViewSetSidebarPosition func(uintptr, gtk.PackType) | |||
| 371 | 400 | // If set to [enum@Gtk.PackType.end], the sidebar is displayed after the | |
| 372 | 401 | // content, and the content will be the root page. | |
| 373 | 402 | func (x *NavigationSplitView) SetSidebarPosition(PositionVar gtk.PackType) { | |
| 403 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarPosition, "ADW", "adw_navigation_split_view_set_sidebar_position", false) | |
| 404 | + | ||
| 374 | 405 | xNavigationSplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | |
| 375 | 406 | } | |
| 376 | 407 | ||
| @@ -385,6 +416,8 @@ var xNavigationSplitViewSetSidebarWidthFraction func(uintptr, float64) | |||
| 385 | 416 | // The sidebar widget can be allocated with larger width if its own minimum | |
| 386 | 417 | // width exceeds the preferred width. | |
| 387 | 418 | func (x *NavigationSplitView) SetSidebarWidthFraction(FractionVar float64) { | |
| 419 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarWidthFraction, "ADW", "adw_navigation_split_view_set_sidebar_width_fraction", false) | |
| 420 | + | ||
| 388 | 421 | xNavigationSplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | |
| 389 | 422 | } | |
| 390 | 423 | ||
| @@ -395,6 +428,8 @@ var xNavigationSplitViewSetSidebarWidthUnit func(uintptr, LengthUnit) | |||
| 395 | 428 | // See [property@NavigationSplitView:min-sidebar-width] and | |
| 396 | 429 | // [property@NavigationSplitView:max-sidebar-width]. | |
| 397 | 430 | func (x *NavigationSplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | |
| 431 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarWidthUnit, "ADW", "adw_navigation_split_view_set_sidebar_width_unit", false) | |
| 432 | + | ||
| 398 | 433 | xNavigationSplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | |
| 399 | 434 | } | |
| 400 | 435 | ||
| @@ -821,35 +856,4 @@ func (x *NavigationSplitView) GetBuildableId() string { | |||
| 821 | 856 | func init() { | |
| 822 | 857 | core.SetPackageName("ADW", "libadwaita-1") | |
| 823 | 858 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 824 | - | var libs []uintptr | |
| 825 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 826 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 827 | - | if err != nil { | |
| 828 | - | panic(err) | |
| 829 | - | } | |
| 830 | - | libs = append(libs, lib) | |
| 831 | - | } | |
| 832 | - | ||
| 833 | - | core.PuregoSafeRegister(&xNavigationSplitViewGLibType, libs, "adw_navigation_split_view_get_type") | |
| 834 | - | ||
| 835 | - | core.PuregoSafeRegister(&xNewNavigationSplitView, libs, "adw_navigation_split_view_new") | |
| 836 | - | ||
| 837 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetCollapsed, libs, "adw_navigation_split_view_get_collapsed") | |
| 838 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetContent, libs, "adw_navigation_split_view_get_content") | |
| 839 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetMaxSidebarWidth, libs, "adw_navigation_split_view_get_max_sidebar_width") | |
| 840 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetMinSidebarWidth, libs, "adw_navigation_split_view_get_min_sidebar_width") | |
| 841 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetShowContent, libs, "adw_navigation_split_view_get_show_content") | |
| 842 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebar, libs, "adw_navigation_split_view_get_sidebar") | |
| 843 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarPosition, libs, "adw_navigation_split_view_get_sidebar_position") | |
| 844 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthFraction, libs, "adw_navigation_split_view_get_sidebar_width_fraction") | |
| 845 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthUnit, libs, "adw_navigation_split_view_get_sidebar_width_unit") | |
| 846 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetCollapsed, libs, "adw_navigation_split_view_set_collapsed") | |
| 847 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetContent, libs, "adw_navigation_split_view_set_content") | |
| 848 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetMaxSidebarWidth, libs, "adw_navigation_split_view_set_max_sidebar_width") | |
| 849 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetMinSidebarWidth, libs, "adw_navigation_split_view_set_min_sidebar_width") | |
| 850 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetShowContent, libs, "adw_navigation_split_view_set_show_content") | |
| 851 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebar, libs, "adw_navigation_split_view_set_sidebar") | |
| 852 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarPosition, libs, "adw_navigation_split_view_set_sidebar_position") | |
| 853 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthFraction, libs, "adw_navigation_split_view_set_sidebar_width_fraction") | |
| 854 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthUnit, libs, "adw_navigation_split_view_set_sidebar_width_unit") | |
| 855 | 859 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject" | 9 | "github.com/bnema/puregotk/v4/gobject" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -179,6 +178,7 @@ type NavigationSplitView struct { | |||||
| 179 | var xNavigationSplitViewGLibType func() types.GType | 178 | var xNavigationSplitViewGLibType func() types.GType | ||
| 180 | 179 | ||||
| 181 | func NavigationSplitViewGLibType() types.GType { | 180 | func NavigationSplitViewGLibType() types.GType { | ||
| 181 | + | core.LazyRegister(&xNavigationSplitViewGLibType, "ADW", "adw_navigation_split_view_get_type", false) | |||
| 182 | return xNavigationSplitViewGLibType() | 182 | return xNavigationSplitViewGLibType() | ||
| 183 | } | 183 | } | ||
| 184 | 184 | ||||
| @@ -192,6 +192,7 @@ var xNewNavigationSplitView func() uintptr | |||||
| 192 | 192 | ||||
| 193 | // Creates a new `AdwNavigationSplitView`. | 193 | // Creates a new `AdwNavigationSplitView`. | ||
| 194 | func NewNavigationSplitView() *NavigationSplitView { | 194 | func NewNavigationSplitView() *NavigationSplitView { | ||
| 195 | + | core.LazyRegister(&xNewNavigationSplitView, "ADW", "adw_navigation_split_view_new", false) | |||
| 195 | var cls *NavigationSplitView | 196 | var cls *NavigationSplitView | ||
| 196 | 197 | ||||
| 197 | cret := xNewNavigationSplitView() | 198 | cret := xNewNavigationSplitView() | ||
| @@ -209,6 +210,8 @@ var xNavigationSplitViewGetCollapsed func(uintptr) bool | |||||
| 209 | 210 | ||||
| 210 | // Gets whether @self is collapsed. | 211 | // Gets whether @self is collapsed. | ||
| 211 | func (x *NavigationSplitView) GetCollapsed() bool { | 212 | func (x *NavigationSplitView) GetCollapsed() bool { | ||
| 213 | + | core.LazyRegister(&xNavigationSplitViewGetCollapsed, "ADW", "adw_navigation_split_view_get_collapsed", false) | |||
| 214 | + | ||||
| 212 | cret := xNavigationSplitViewGetCollapsed(x.GoPointer()) | 215 | cret := xNavigationSplitViewGetCollapsed(x.GoPointer()) | ||
| 213 | return cret | 216 | return cret | ||
| 214 | } | 217 | } | ||
| @@ -217,6 +220,7 @@ var xNavigationSplitViewGetContent func(uintptr) uintptr | |||||
| 217 | 220 | ||||
| 218 | // Sets the content widget for @self. | 221 | // Sets the content widget for @self. | ||
| 219 | func (x *NavigationSplitView) GetContent() *NavigationPage { | 222 | func (x *NavigationSplitView) GetContent() *NavigationPage { | ||
| 223 | + | core.LazyRegister(&xNavigationSplitViewGetContent, "ADW", "adw_navigation_split_view_get_content", false) | |||
| 220 | var cls *NavigationPage | 224 | var cls *NavigationPage | ||
| 221 | 225 | ||||
| 222 | cret := xNavigationSplitViewGetContent(x.GoPointer()) | 226 | cret := xNavigationSplitViewGetContent(x.GoPointer()) | ||
| @@ -234,6 +238,8 @@ var xNavigationSplitViewGetMaxSidebarWidth func(uintptr) float64 | |||||
| 234 | 238 | ||||
| 235 | // Gets the maximum sidebar width for @self. | 239 | // Gets the maximum sidebar width for @self. | ||
| 236 | func (x *NavigationSplitView) GetMaxSidebarWidth() float64 { | 240 | func (x *NavigationSplitView) GetMaxSidebarWidth() float64 { | ||
| 241 | + | core.LazyRegister(&xNavigationSplitViewGetMaxSidebarWidth, "ADW", "adw_navigation_split_view_get_max_sidebar_width", false) | |||
| 242 | + | ||||
| 237 | cret := xNavigationSplitViewGetMaxSidebarWidth(x.GoPointer()) | 243 | cret := xNavigationSplitViewGetMaxSidebarWidth(x.GoPointer()) | ||
| 238 | return cret | 244 | return cret | ||
| 239 | } | 245 | } | ||
| @@ -242,6 +248,8 @@ var xNavigationSplitViewGetMinSidebarWidth func(uintptr) float64 | |||||
| 242 | 248 | ||||
| 243 | // Gets the minimum sidebar width for @self. | 249 | // Gets the minimum sidebar width for @self. | ||
| 244 | func (x *NavigationSplitView) GetMinSidebarWidth() float64 { | 250 | func (x *NavigationSplitView) GetMinSidebarWidth() float64 { | ||
| 251 | + | core.LazyRegister(&xNavigationSplitViewGetMinSidebarWidth, "ADW", "adw_navigation_split_view_get_min_sidebar_width", false) | |||
| 252 | + | ||||
| 245 | cret := xNavigationSplitViewGetMinSidebarWidth(x.GoPointer()) | 253 | cret := xNavigationSplitViewGetMinSidebarWidth(x.GoPointer()) | ||
| 246 | return cret | 254 | return cret | ||
| 247 | } | 255 | } | ||
| @@ -250,6 +258,8 @@ var xNavigationSplitViewGetShowContent func(uintptr) bool | |||||
| 250 | 258 | ||||
| 251 | // Gets which page is visible when @self is collapsed. | 259 | // Gets which page is visible when @self is collapsed. | ||
| 252 | func (x *NavigationSplitView) GetShowContent() bool { | 260 | func (x *NavigationSplitView) GetShowContent() bool { | ||
| 261 | + | core.LazyRegister(&xNavigationSplitViewGetShowContent, "ADW", "adw_navigation_split_view_get_show_content", false) | |||
| 262 | + | ||||
| 253 | cret := xNavigationSplitViewGetShowContent(x.GoPointer()) | 263 | cret := xNavigationSplitViewGetShowContent(x.GoPointer()) | ||
| 254 | return cret | 264 | return cret | ||
| 255 | } | 265 | } | ||
| @@ -258,6 +268,7 @@ var xNavigationSplitViewGetSidebar func(uintptr) uintptr | |||||
| 258 | 268 | ||||
| 259 | // Gets the sidebar widget for @self. | 269 | // Gets the sidebar widget for @self. | ||
| 260 | func (x *NavigationSplitView) GetSidebar() *NavigationPage { | 270 | func (x *NavigationSplitView) GetSidebar() *NavigationPage { | ||
| 271 | + | core.LazyRegister(&xNavigationSplitViewGetSidebar, "ADW", "adw_navigation_split_view_get_sidebar", false) | |||
| 261 | var cls *NavigationPage | 272 | var cls *NavigationPage | ||
| 262 | 273 | ||||
| 263 | cret := xNavigationSplitViewGetSidebar(x.GoPointer()) | 274 | cret := xNavigationSplitViewGetSidebar(x.GoPointer()) | ||
| @@ -275,6 +286,8 @@ var xNavigationSplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||||
| 275 | 286 | ||||
| 276 | // Gets the sidebar position for @self. | 287 | // Gets the sidebar position for @self. | ||
| 277 | func (x *NavigationSplitView) GetSidebarPosition() gtk.PackType { | 288 | func (x *NavigationSplitView) GetSidebarPosition() gtk.PackType { | ||
| 289 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarPosition, "ADW", "adw_navigation_split_view_get_sidebar_position", false) | |||
| 290 | + | ||||
| 278 | cret := xNavigationSplitViewGetSidebarPosition(x.GoPointer()) | 291 | cret := xNavigationSplitViewGetSidebarPosition(x.GoPointer()) | ||
| 279 | return cret | 292 | return cret | ||
| 280 | } | 293 | } | ||
| @@ -283,6 +296,8 @@ var xNavigationSplitViewGetSidebarWidthFraction func(uintptr) float64 | |||||
| 283 | 296 | ||||
| 284 | // Gets the preferred sidebar width fraction for @self. | 297 | // Gets the preferred sidebar width fraction for @self. | ||
| 285 | func (x *NavigationSplitView) GetSidebarWidthFraction() float64 { | 298 | func (x *NavigationSplitView) GetSidebarWidthFraction() float64 { | ||
| 299 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarWidthFraction, "ADW", "adw_navigation_split_view_get_sidebar_width_fraction", false) | |||
| 300 | + | ||||
| 286 | cret := xNavigationSplitViewGetSidebarWidthFraction(x.GoPointer()) | 301 | cret := xNavigationSplitViewGetSidebarWidthFraction(x.GoPointer()) | ||
| 287 | return cret | 302 | return cret | ||
| 288 | } | 303 | } | ||
| @@ -291,6 +306,8 @@ var xNavigationSplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||||
| 291 | 306 | ||||
| 292 | // Gets the length unit for minimum and maximum sidebar widths. | 307 | // Gets the length unit for minimum and maximum sidebar widths. | ||
| 293 | func (x *NavigationSplitView) GetSidebarWidthUnit() LengthUnit { | 308 | func (x *NavigationSplitView) GetSidebarWidthUnit() LengthUnit { | ||
| 309 | + | core.LazyRegister(&xNavigationSplitViewGetSidebarWidthUnit, "ADW", "adw_navigation_split_view_get_sidebar_width_unit", false) | |||
| 310 | + | ||||
| 294 | cret := xNavigationSplitViewGetSidebarWidthUnit(x.GoPointer()) | 311 | cret := xNavigationSplitViewGetSidebarWidthUnit(x.GoPointer()) | ||
| 295 | return cret | 312 | return cret | ||
| 296 | } | 313 | } | ||
| @@ -305,6 +322,8 @@ var xNavigationSplitViewSetCollapsed func(uintptr, bool) | |||||
| 305 | // The [property@NavigationSplitView:show-content] controls which child is | 322 | // The [property@NavigationSplitView:show-content] controls which child is | ||
| 306 | // visible while collapsed. | 323 | // visible while collapsed. | ||
| 307 | func (x *NavigationSplitView) SetCollapsed(CollapsedVar bool) { | 324 | func (x *NavigationSplitView) SetCollapsed(CollapsedVar bool) { | ||
| 325 | + | core.LazyRegister(&xNavigationSplitViewSetCollapsed, "ADW", "adw_navigation_split_view_set_collapsed", false) | |||
| 326 | + | ||||
| 308 | xNavigationSplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | 327 | xNavigationSplitViewSetCollapsed(x.GoPointer(), CollapsedVar) | ||
| 309 | } | 328 | } | ||
| 310 | 329 | ||||
| @@ -312,6 +331,8 @@ var xNavigationSplitViewSetContent func(uintptr, uintptr) | |||||
| 312 | 331 | ||||
| 313 | // Sets the content widget for @self. | 332 | // Sets the content widget for @self. | ||
| 314 | func (x *NavigationSplitView) SetContent(ContentVar *NavigationPage) { | 333 | func (x *NavigationSplitView) SetContent(ContentVar *NavigationPage) { | ||
| 334 | + | core.LazyRegister(&xNavigationSplitViewSetContent, "ADW", "adw_navigation_split_view_set_content", false) | |||
| 335 | + | ||||
| 315 | xNavigationSplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | 336 | xNavigationSplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) | ||
| 316 | } | 337 | } | ||
| 317 | 338 | ||||
| @@ -325,6 +346,8 @@ var xNavigationSplitViewSetMaxSidebarWidth func(uintptr, float64) | |||||
| 325 | // The sidebar widget can still be allocated with larger width if its own | 346 | // The sidebar widget can still be allocated with larger width if its own | ||
| 326 | // minimum width exceeds it. | 347 | // minimum width exceeds it. | ||
| 327 | func (x *NavigationSplitView) SetMaxSidebarWidth(WidthVar float64) { | 348 | func (x *NavigationSplitView) SetMaxSidebarWidth(WidthVar float64) { | ||
| 349 | + | core.LazyRegister(&xNavigationSplitViewSetMaxSidebarWidth, "ADW", "adw_navigation_split_view_set_max_sidebar_width", false) | |||
| 350 | + | ||||
| 328 | xNavigationSplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | 351 | xNavigationSplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) | ||
| 329 | } | 352 | } | ||
| 330 | 353 | ||||
| @@ -338,6 +361,8 @@ var xNavigationSplitViewSetMinSidebarWidth func(uintptr, float64) | |||||
| 338 | // The sidebar widget can still be allocated with larger width if its own | 361 | // The sidebar widget can still be allocated with larger width if its own | ||
| 339 | // minimum width exceeds it. | 362 | // minimum width exceeds it. | ||
| 340 | func (x *NavigationSplitView) SetMinSidebarWidth(WidthVar float64) { | 363 | func (x *NavigationSplitView) SetMinSidebarWidth(WidthVar float64) { | ||
| 364 | + | core.LazyRegister(&xNavigationSplitViewSetMinSidebarWidth, "ADW", "adw_navigation_split_view_set_min_sidebar_width", false) | |||
| 365 | + | ||||
| 341 | xNavigationSplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | 366 | xNavigationSplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) | ||
| 342 | } | 367 | } | ||
| 343 | 368 | ||||
| @@ -351,6 +376,8 @@ var xNavigationSplitViewSetShowContent func(uintptr, bool) | |||||
| 351 | // | 376 | // | ||
| 352 | // If the split view is already collapsed, the visible page changes immediately. | 377 | // If the split view is already collapsed, the visible page changes immediately. | ||
| 353 | func (x *NavigationSplitView) SetShowContent(ShowContentVar bool) { | 378 | func (x *NavigationSplitView) SetShowContent(ShowContentVar bool) { | ||
| 379 | + | core.LazyRegister(&xNavigationSplitViewSetShowContent, "ADW", "adw_navigation_split_view_set_show_content", false) | |||
| 380 | + | ||||
| 354 | xNavigationSplitViewSetShowContent(x.GoPointer(), ShowContentVar) | 381 | xNavigationSplitViewSetShowContent(x.GoPointer(), ShowContentVar) | ||
| 355 | } | 382 | } | ||
| 356 | 383 | ||||
| @@ -358,6 +385,8 @@ var xNavigationSplitViewSetSidebar func(uintptr, uintptr) | |||||
| 358 | 385 | ||||
| 359 | // Sets the sidebar widget for @self. | 386 | // Sets the sidebar widget for @self. | ||
| 360 | func (x *NavigationSplitView) SetSidebar(SidebarVar *NavigationPage) { | 387 | func (x *NavigationSplitView) SetSidebar(SidebarVar *NavigationPage) { | ||
| 388 | + | core.LazyRegister(&xNavigationSplitViewSetSidebar, "ADW", "adw_navigation_split_view_set_sidebar", false) | |||
| 389 | + | ||||
| 361 | xNavigationSplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | 390 | xNavigationSplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) | ||
| 362 | } | 391 | } | ||
| 363 | 392 | ||||
| @@ -371,6 +400,8 @@ var xNavigationSplitViewSetSidebarPosition func(uintptr, gtk.PackType) | |||||
| 371 | // If set to [enum@Gtk.PackType.end], the sidebar is displayed after the | 400 | // If set to [enum@Gtk.PackType.end], the sidebar is displayed after the | ||
| 372 | // content, and the content will be the root page. | 401 | // content, and the content will be the root page. | ||
| 373 | func (x *NavigationSplitView) SetSidebarPosition(PositionVar gtk.PackType) { | 402 | func (x *NavigationSplitView) SetSidebarPosition(PositionVar gtk.PackType) { | ||
| 403 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarPosition, "ADW", "adw_navigation_split_view_set_sidebar_position", false) | |||
| 404 | + | ||||
| 374 | xNavigationSplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | 405 | xNavigationSplitViewSetSidebarPosition(x.GoPointer(), PositionVar) | ||
| 375 | } | 406 | } | ||
| 376 | 407 | ||||
| @@ -385,6 +416,8 @@ var xNavigationSplitViewSetSidebarWidthFraction func(uintptr, float64) | |||||
| 385 | // The sidebar widget can be allocated with larger width if its own minimum | 416 | // The sidebar widget can be allocated with larger width if its own minimum | ||
| 386 | // width exceeds the preferred width. | 417 | // width exceeds the preferred width. | ||
| 387 | func (x *NavigationSplitView) SetSidebarWidthFraction(FractionVar float64) { | 418 | func (x *NavigationSplitView) SetSidebarWidthFraction(FractionVar float64) { | ||
| 419 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarWidthFraction, "ADW", "adw_navigation_split_view_set_sidebar_width_fraction", false) | |||
| 420 | + | ||||
| 388 | xNavigationSplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | 421 | xNavigationSplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) | ||
| 389 | } | 422 | } | ||
| 390 | 423 | ||||
| @@ -395,6 +428,8 @@ var xNavigationSplitViewSetSidebarWidthUnit func(uintptr, LengthUnit) | |||||
| 395 | // See [property@NavigationSplitView:min-sidebar-width] and | 428 | // See [property@NavigationSplitView:min-sidebar-width] and | ||
| 396 | // [property@NavigationSplitView:max-sidebar-width]. | 429 | // [property@NavigationSplitView:max-sidebar-width]. | ||
| 397 | func (x *NavigationSplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | 430 | func (x *NavigationSplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { | ||
| 431 | + | core.LazyRegister(&xNavigationSplitViewSetSidebarWidthUnit, "ADW", "adw_navigation_split_view_set_sidebar_width_unit", false) | |||
| 432 | + | ||||
| 398 | xNavigationSplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | 433 | xNavigationSplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) | ||
| 399 | } | 434 | } | ||
| 400 | 435 | ||||
| @@ -821,35 +856,4 @@ func (x *NavigationSplitView) GetBuildableId() string { | |||||
| 821 | func init() { | 856 | func init() { | ||
| 822 | core.SetPackageName("ADW", "libadwaita-1") | 857 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 823 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 858 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 824 | - | var libs []uintptr | |||
| 825 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 826 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 827 | - | if err != nil { | |||
| 828 | - | panic(err) | |||
| 829 | - | } | |||
| 830 | - | libs = append(libs, lib) | |||
| 831 | - | } | |||
| 832 | - | ||||
| 833 | - | core.PuregoSafeRegister(&xNavigationSplitViewGLibType, libs, "adw_navigation_split_view_get_type") | |||
| 834 | - | ||||
| 835 | - | core.PuregoSafeRegister(&xNewNavigationSplitView, libs, "adw_navigation_split_view_new") | |||
| 836 | - | ||||
| 837 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetCollapsed, libs, "adw_navigation_split_view_get_collapsed") | |||
| 838 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetContent, libs, "adw_navigation_split_view_get_content") | |||
| 839 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetMaxSidebarWidth, libs, "adw_navigation_split_view_get_max_sidebar_width") | |||
| 840 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetMinSidebarWidth, libs, "adw_navigation_split_view_get_min_sidebar_width") | |||
| 841 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetShowContent, libs, "adw_navigation_split_view_get_show_content") | |||
| 842 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebar, libs, "adw_navigation_split_view_get_sidebar") | |||
| 843 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarPosition, libs, "adw_navigation_split_view_get_sidebar_position") | |||
| 844 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthFraction, libs, "adw_navigation_split_view_get_sidebar_width_fraction") | |||
| 845 | - | core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthUnit, libs, "adw_navigation_split_view_get_sidebar_width_unit") | |||
| 846 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetCollapsed, libs, "adw_navigation_split_view_set_collapsed") | |||
| 847 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetContent, libs, "adw_navigation_split_view_set_content") | |||
| 848 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetMaxSidebarWidth, libs, "adw_navigation_split_view_set_max_sidebar_width") | |||
| 849 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetMinSidebarWidth, libs, "adw_navigation_split_view_set_min_sidebar_width") | |||
| 850 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetShowContent, libs, "adw_navigation_split_view_set_show_content") | |||
| 851 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebar, libs, "adw_navigation_split_view_set_sidebar") | |||
| 852 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarPosition, libs, "adw_navigation_split_view_set_sidebar_position") | |||
| 853 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthFraction, libs, "adw_navigation_split_view_set_sidebar_width_fraction") | |||
| 854 | - | core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthUnit, libs, "adw_navigation_split_view_set_sidebar_width_unit") | |||
| 855 | } | 859 | } | ||