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
| @@ -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" | |
| @@ -43,6 +42,7 @@ type InlineViewSwitcherDisplayMode int | |||
| 43 | 42 | var xInlineViewSwitcherDisplayModeGLibType func() types.GType | |
| 44 | 43 | ||
| 45 | 44 | func InlineViewSwitcherDisplayModeGLibType() types.GType { | |
| 45 | + | core.LazyRegister(&xInlineViewSwitcherDisplayModeGLibType, "ADW", "adw_inline_view_switcher_display_mode_get_type", false) | |
| 46 | 46 | return xInlineViewSwitcherDisplayModeGLibType() | |
| 47 | 47 | } | |
| 48 | 48 | ||
| @@ -109,6 +109,7 @@ type InlineViewSwitcher struct { | |||
| 109 | 109 | var xInlineViewSwitcherGLibType func() types.GType | |
| 110 | 110 | ||
| 111 | 111 | func InlineViewSwitcherGLibType() types.GType { | |
| 112 | + | core.LazyRegister(&xInlineViewSwitcherGLibType, "ADW", "adw_inline_view_switcher_get_type", false) | |
| 112 | 113 | return xInlineViewSwitcherGLibType() | |
| 113 | 114 | } | |
| 114 | 115 | ||
| @@ -122,6 +123,7 @@ var xNewInlineViewSwitcher func() uintptr | |||
| 122 | 123 | ||
| 123 | 124 | // Creates a new `AdwInlineViewSwitcher`. | |
| 124 | 125 | func NewInlineViewSwitcher() *InlineViewSwitcher { | |
| 126 | + | core.LazyRegister(&xNewInlineViewSwitcher, "ADW", "adw_inline_view_switcher_new", false) | |
| 125 | 127 | var cls *InlineViewSwitcher | |
| 126 | 128 | ||
| 127 | 129 | cret := xNewInlineViewSwitcher() | |
| @@ -140,6 +142,8 @@ var xInlineViewSwitcherGetCanShrink func(uintptr) bool | |||
| 140 | 142 | // Gets whether the toggles can be smaller than the natural size of their | |
| 141 | 143 | // contents. | |
| 142 | 144 | func (x *InlineViewSwitcher) GetCanShrink() bool { | |
| 145 | + | core.LazyRegister(&xInlineViewSwitcherGetCanShrink, "ADW", "adw_inline_view_switcher_get_can_shrink", false) | |
| 146 | + | ||
| 143 | 147 | cret := xInlineViewSwitcherGetCanShrink(x.GoPointer()) | |
| 144 | 148 | return cret | |
| 145 | 149 | } | |
| @@ -148,6 +152,8 @@ var xInlineViewSwitcherGetDisplayMode func(uintptr) InlineViewSwitcherDisplayMod | |||
| 148 | 152 | ||
| 149 | 153 | // Gets the display mode of @self. | |
| 150 | 154 | func (x *InlineViewSwitcher) GetDisplayMode() InlineViewSwitcherDisplayMode { | |
| 155 | + | core.LazyRegister(&xInlineViewSwitcherGetDisplayMode, "ADW", "adw_inline_view_switcher_get_display_mode", false) | |
| 156 | + | ||
| 151 | 157 | cret := xInlineViewSwitcherGetDisplayMode(x.GoPointer()) | |
| 152 | 158 | return cret | |
| 153 | 159 | } | |
| @@ -156,6 +162,8 @@ var xInlineViewSwitcherGetHomogeneous func(uintptr) bool | |||
| 156 | 162 | ||
| 157 | 163 | // Gets whether all toggles within @self take the same size. | |
| 158 | 164 | func (x *InlineViewSwitcher) GetHomogeneous() bool { | |
| 165 | + | core.LazyRegister(&xInlineViewSwitcherGetHomogeneous, "ADW", "adw_inline_view_switcher_get_homogeneous", false) | |
| 166 | + | ||
| 159 | 167 | cret := xInlineViewSwitcherGetHomogeneous(x.GoPointer()) | |
| 160 | 168 | return cret | |
| 161 | 169 | } | |
| @@ -164,6 +172,7 @@ var xInlineViewSwitcherGetStack func(uintptr) uintptr | |||
| 164 | 172 | ||
| 165 | 173 | // Gets the stack @self controls. | |
| 166 | 174 | func (x *InlineViewSwitcher) GetStack() *ViewStack { | |
| 175 | + | core.LazyRegister(&xInlineViewSwitcherGetStack, "ADW", "adw_inline_view_switcher_get_stack", false) | |
| 167 | 176 | var cls *ViewStack | |
| 168 | 177 | ||
| 169 | 178 | cret := xInlineViewSwitcherGetStack(x.GoPointer()) | |
| @@ -186,6 +195,8 @@ var xInlineViewSwitcherSetCanShrink func(uintptr, bool) | |||
| 186 | 195 | // | |
| 187 | 196 | // See [property@ToggleGroup:can-shrink]. | |
| 188 | 197 | func (x *InlineViewSwitcher) SetCanShrink(CanShrinkVar bool) { | |
| 198 | + | core.LazyRegister(&xInlineViewSwitcherSetCanShrink, "ADW", "adw_inline_view_switcher_set_can_shrink", false) | |
| 199 | + | ||
| 189 | 200 | xInlineViewSwitcherSetCanShrink(x.GoPointer(), CanShrinkVar) | |
| 190 | 201 | } | |
| 191 | 202 | ||
| @@ -202,6 +213,8 @@ var xInlineViewSwitcherSetDisplayMode func(uintptr, InlineViewSwitcherDisplayMod | |||
| 202 | 213 | // | |
| 203 | 214 | // </picture> | |
| 204 | 215 | func (x *InlineViewSwitcher) SetDisplayMode(ModeVar InlineViewSwitcherDisplayMode) { | |
| 216 | + | core.LazyRegister(&xInlineViewSwitcherSetDisplayMode, "ADW", "adw_inline_view_switcher_set_display_mode", false) | |
| 217 | + | ||
| 205 | 218 | xInlineViewSwitcherSetDisplayMode(x.GoPointer(), ModeVar) | |
| 206 | 219 | } | |
| 207 | 220 | ||
| @@ -209,6 +222,8 @@ var xInlineViewSwitcherSetHomogeneous func(uintptr, bool) | |||
| 209 | 222 | ||
| 210 | 223 | // Sets whether all toggles within @self take the same size. | |
| 211 | 224 | func (x *InlineViewSwitcher) SetHomogeneous(HomogeneousVar bool) { | |
| 225 | + | core.LazyRegister(&xInlineViewSwitcherSetHomogeneous, "ADW", "adw_inline_view_switcher_set_homogeneous", false) | |
| 226 | + | ||
| 212 | 227 | xInlineViewSwitcherSetHomogeneous(x.GoPointer(), HomogeneousVar) | |
| 213 | 228 | } | |
| 214 | 229 | ||
| @@ -216,6 +231,8 @@ var xInlineViewSwitcherSetStack func(uintptr, uintptr) | |||
| 216 | 231 | ||
| 217 | 232 | // Sets the stack to control. | |
| 218 | 233 | func (x *InlineViewSwitcher) SetStack(StackVar *ViewStack) { | |
| 234 | + | core.LazyRegister(&xInlineViewSwitcherSetStack, "ADW", "adw_inline_view_switcher_set_stack", false) | |
| 235 | + | ||
| 219 | 236 | xInlineViewSwitcherSetStack(x.GoPointer(), StackVar.GoPointer()) | |
| 220 | 237 | } | |
| 221 | 238 | ||
| @@ -546,27 +563,4 @@ func (x *InlineViewSwitcher) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 546 | 563 | func init() { | |
| 547 | 564 | core.SetPackageName("ADW", "libadwaita-1") | |
| 548 | 565 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 549 | - | var libs []uintptr | |
| 550 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 551 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 552 | - | if err != nil { | |
| 553 | - | panic(err) | |
| 554 | - | } | |
| 555 | - | libs = append(libs, lib) | |
| 556 | - | } | |
| 557 | - | ||
| 558 | - | core.PuregoSafeRegister(&xInlineViewSwitcherDisplayModeGLibType, libs, "adw_inline_view_switcher_display_mode_get_type") | |
| 559 | - | ||
| 560 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGLibType, libs, "adw_inline_view_switcher_get_type") | |
| 561 | - | ||
| 562 | - | core.PuregoSafeRegister(&xNewInlineViewSwitcher, libs, "adw_inline_view_switcher_new") | |
| 563 | - | ||
| 564 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetCanShrink, libs, "adw_inline_view_switcher_get_can_shrink") | |
| 565 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetDisplayMode, libs, "adw_inline_view_switcher_get_display_mode") | |
| 566 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetHomogeneous, libs, "adw_inline_view_switcher_get_homogeneous") | |
| 567 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetStack, libs, "adw_inline_view_switcher_get_stack") | |
| 568 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetCanShrink, libs, "adw_inline_view_switcher_set_can_shrink") | |
| 569 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetDisplayMode, libs, "adw_inline_view_switcher_set_display_mode") | |
| 570 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetHomogeneous, libs, "adw_inline_view_switcher_set_homogeneous") | |
| 571 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetStack, libs, "adw_inline_view_switcher_set_stack") | |
| 572 | 566 | } | |
| @@ -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" | ||
| @@ -43,6 +42,7 @@ type InlineViewSwitcherDisplayMode int | |||||
| 43 | var xInlineViewSwitcherDisplayModeGLibType func() types.GType | 42 | var xInlineViewSwitcherDisplayModeGLibType func() types.GType | ||
| 44 | 43 | ||||
| 45 | func InlineViewSwitcherDisplayModeGLibType() types.GType { | 44 | func InlineViewSwitcherDisplayModeGLibType() types.GType { | ||
| 45 | + | core.LazyRegister(&xInlineViewSwitcherDisplayModeGLibType, "ADW", "adw_inline_view_switcher_display_mode_get_type", false) | |||
| 46 | return xInlineViewSwitcherDisplayModeGLibType() | 46 | return xInlineViewSwitcherDisplayModeGLibType() | ||
| 47 | } | 47 | } | ||
| 48 | 48 | ||||
| @@ -109,6 +109,7 @@ type InlineViewSwitcher struct { | |||||
| 109 | var xInlineViewSwitcherGLibType func() types.GType | 109 | var xInlineViewSwitcherGLibType func() types.GType | ||
| 110 | 110 | ||||
| 111 | func InlineViewSwitcherGLibType() types.GType { | 111 | func InlineViewSwitcherGLibType() types.GType { | ||
| 112 | + | core.LazyRegister(&xInlineViewSwitcherGLibType, "ADW", "adw_inline_view_switcher_get_type", false) | |||
| 112 | return xInlineViewSwitcherGLibType() | 113 | return xInlineViewSwitcherGLibType() | ||
| 113 | } | 114 | } | ||
| 114 | 115 | ||||
| @@ -122,6 +123,7 @@ var xNewInlineViewSwitcher func() uintptr | |||||
| 122 | 123 | ||||
| 123 | // Creates a new `AdwInlineViewSwitcher`. | 124 | // Creates a new `AdwInlineViewSwitcher`. | ||
| 124 | func NewInlineViewSwitcher() *InlineViewSwitcher { | 125 | func NewInlineViewSwitcher() *InlineViewSwitcher { | ||
| 126 | + | core.LazyRegister(&xNewInlineViewSwitcher, "ADW", "adw_inline_view_switcher_new", false) | |||
| 125 | var cls *InlineViewSwitcher | 127 | var cls *InlineViewSwitcher | ||
| 126 | 128 | ||||
| 127 | cret := xNewInlineViewSwitcher() | 129 | cret := xNewInlineViewSwitcher() | ||
| @@ -140,6 +142,8 @@ var xInlineViewSwitcherGetCanShrink func(uintptr) bool | |||||
| 140 | // Gets whether the toggles can be smaller than the natural size of their | 142 | // Gets whether the toggles can be smaller than the natural size of their | ||
| 141 | // contents. | 143 | // contents. | ||
| 142 | func (x *InlineViewSwitcher) GetCanShrink() bool { | 144 | func (x *InlineViewSwitcher) GetCanShrink() bool { | ||
| 145 | + | core.LazyRegister(&xInlineViewSwitcherGetCanShrink, "ADW", "adw_inline_view_switcher_get_can_shrink", false) | |||
| 146 | + | ||||
| 143 | cret := xInlineViewSwitcherGetCanShrink(x.GoPointer()) | 147 | cret := xInlineViewSwitcherGetCanShrink(x.GoPointer()) | ||
| 144 | return cret | 148 | return cret | ||
| 145 | } | 149 | } | ||
| @@ -148,6 +152,8 @@ var xInlineViewSwitcherGetDisplayMode func(uintptr) InlineViewSwitcherDisplayMod | |||||
| 148 | 152 | ||||
| 149 | // Gets the display mode of @self. | 153 | // Gets the display mode of @self. | ||
| 150 | func (x *InlineViewSwitcher) GetDisplayMode() InlineViewSwitcherDisplayMode { | 154 | func (x *InlineViewSwitcher) GetDisplayMode() InlineViewSwitcherDisplayMode { | ||
| 155 | + | core.LazyRegister(&xInlineViewSwitcherGetDisplayMode, "ADW", "adw_inline_view_switcher_get_display_mode", false) | |||
| 156 | + | ||||
| 151 | cret := xInlineViewSwitcherGetDisplayMode(x.GoPointer()) | 157 | cret := xInlineViewSwitcherGetDisplayMode(x.GoPointer()) | ||
| 152 | return cret | 158 | return cret | ||
| 153 | } | 159 | } | ||
| @@ -156,6 +162,8 @@ var xInlineViewSwitcherGetHomogeneous func(uintptr) bool | |||||
| 156 | 162 | ||||
| 157 | // Gets whether all toggles within @self take the same size. | 163 | // Gets whether all toggles within @self take the same size. | ||
| 158 | func (x *InlineViewSwitcher) GetHomogeneous() bool { | 164 | func (x *InlineViewSwitcher) GetHomogeneous() bool { | ||
| 165 | + | core.LazyRegister(&xInlineViewSwitcherGetHomogeneous, "ADW", "adw_inline_view_switcher_get_homogeneous", false) | |||
| 166 | + | ||||
| 159 | cret := xInlineViewSwitcherGetHomogeneous(x.GoPointer()) | 167 | cret := xInlineViewSwitcherGetHomogeneous(x.GoPointer()) | ||
| 160 | return cret | 168 | return cret | ||
| 161 | } | 169 | } | ||
| @@ -164,6 +172,7 @@ var xInlineViewSwitcherGetStack func(uintptr) uintptr | |||||
| 164 | 172 | ||||
| 165 | // Gets the stack @self controls. | 173 | // Gets the stack @self controls. | ||
| 166 | func (x *InlineViewSwitcher) GetStack() *ViewStack { | 174 | func (x *InlineViewSwitcher) GetStack() *ViewStack { | ||
| 175 | + | core.LazyRegister(&xInlineViewSwitcherGetStack, "ADW", "adw_inline_view_switcher_get_stack", false) | |||
| 167 | var cls *ViewStack | 176 | var cls *ViewStack | ||
| 168 | 177 | ||||
| 169 | cret := xInlineViewSwitcherGetStack(x.GoPointer()) | 178 | cret := xInlineViewSwitcherGetStack(x.GoPointer()) | ||
| @@ -186,6 +195,8 @@ var xInlineViewSwitcherSetCanShrink func(uintptr, bool) | |||||
| 186 | // | 195 | // | ||
| 187 | // See [property@ToggleGroup:can-shrink]. | 196 | // See [property@ToggleGroup:can-shrink]. | ||
| 188 | func (x *InlineViewSwitcher) SetCanShrink(CanShrinkVar bool) { | 197 | func (x *InlineViewSwitcher) SetCanShrink(CanShrinkVar bool) { | ||
| 198 | + | core.LazyRegister(&xInlineViewSwitcherSetCanShrink, "ADW", "adw_inline_view_switcher_set_can_shrink", false) | |||
| 199 | + | ||||
| 189 | xInlineViewSwitcherSetCanShrink(x.GoPointer(), CanShrinkVar) | 200 | xInlineViewSwitcherSetCanShrink(x.GoPointer(), CanShrinkVar) | ||
| 190 | } | 201 | } | ||
| 191 | 202 | ||||
| @@ -202,6 +213,8 @@ var xInlineViewSwitcherSetDisplayMode func(uintptr, InlineViewSwitcherDisplayMod | |||||
| 202 | // | 213 | // | ||
| 203 | // </picture> | 214 | // </picture> | ||
| 204 | func (x *InlineViewSwitcher) SetDisplayMode(ModeVar InlineViewSwitcherDisplayMode) { | 215 | func (x *InlineViewSwitcher) SetDisplayMode(ModeVar InlineViewSwitcherDisplayMode) { | ||
| 216 | + | core.LazyRegister(&xInlineViewSwitcherSetDisplayMode, "ADW", "adw_inline_view_switcher_set_display_mode", false) | |||
| 217 | + | ||||
| 205 | xInlineViewSwitcherSetDisplayMode(x.GoPointer(), ModeVar) | 218 | xInlineViewSwitcherSetDisplayMode(x.GoPointer(), ModeVar) | ||
| 206 | } | 219 | } | ||
| 207 | 220 | ||||
| @@ -209,6 +222,8 @@ var xInlineViewSwitcherSetHomogeneous func(uintptr, bool) | |||||
| 209 | 222 | ||||
| 210 | // Sets whether all toggles within @self take the same size. | 223 | // Sets whether all toggles within @self take the same size. | ||
| 211 | func (x *InlineViewSwitcher) SetHomogeneous(HomogeneousVar bool) { | 224 | func (x *InlineViewSwitcher) SetHomogeneous(HomogeneousVar bool) { | ||
| 225 | + | core.LazyRegister(&xInlineViewSwitcherSetHomogeneous, "ADW", "adw_inline_view_switcher_set_homogeneous", false) | |||
| 226 | + | ||||
| 212 | xInlineViewSwitcherSetHomogeneous(x.GoPointer(), HomogeneousVar) | 227 | xInlineViewSwitcherSetHomogeneous(x.GoPointer(), HomogeneousVar) | ||
| 213 | } | 228 | } | ||
| 214 | 229 | ||||
| @@ -216,6 +231,8 @@ var xInlineViewSwitcherSetStack func(uintptr, uintptr) | |||||
| 216 | 231 | ||||
| 217 | // Sets the stack to control. | 232 | // Sets the stack to control. | ||
| 218 | func (x *InlineViewSwitcher) SetStack(StackVar *ViewStack) { | 233 | func (x *InlineViewSwitcher) SetStack(StackVar *ViewStack) { | ||
| 234 | + | core.LazyRegister(&xInlineViewSwitcherSetStack, "ADW", "adw_inline_view_switcher_set_stack", false) | |||
| 235 | + | ||||
| 219 | xInlineViewSwitcherSetStack(x.GoPointer(), StackVar.GoPointer()) | 236 | xInlineViewSwitcherSetStack(x.GoPointer(), StackVar.GoPointer()) | ||
| 220 | } | 237 | } | ||
| 221 | 238 | ||||
| @@ -546,27 +563,4 @@ func (x *InlineViewSwitcher) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 546 | func init() { | 563 | func init() { | ||
| 547 | core.SetPackageName("ADW", "libadwaita-1") | 564 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 548 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 565 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 549 | - | var libs []uintptr | |||
| 550 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 551 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 552 | - | if err != nil { | |||
| 553 | - | panic(err) | |||
| 554 | - | } | |||
| 555 | - | libs = append(libs, lib) | |||
| 556 | - | } | |||
| 557 | - | ||||
| 558 | - | core.PuregoSafeRegister(&xInlineViewSwitcherDisplayModeGLibType, libs, "adw_inline_view_switcher_display_mode_get_type") | |||
| 559 | - | ||||
| 560 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGLibType, libs, "adw_inline_view_switcher_get_type") | |||
| 561 | - | ||||
| 562 | - | core.PuregoSafeRegister(&xNewInlineViewSwitcher, libs, "adw_inline_view_switcher_new") | |||
| 563 | - | ||||
| 564 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetCanShrink, libs, "adw_inline_view_switcher_get_can_shrink") | |||
| 565 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetDisplayMode, libs, "adw_inline_view_switcher_get_display_mode") | |||
| 566 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetHomogeneous, libs, "adw_inline_view_switcher_get_homogeneous") | |||
| 567 | - | core.PuregoSafeRegister(&xInlineViewSwitcherGetStack, libs, "adw_inline_view_switcher_get_stack") | |||
| 568 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetCanShrink, libs, "adw_inline_view_switcher_set_can_shrink") | |||
| 569 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetDisplayMode, libs, "adw_inline_view_switcher_set_display_mode") | |||
| 570 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetHomogeneous, libs, "adw_inline_view_switcher_set_homogeneous") | |||
| 571 | - | core.PuregoSafeRegister(&xInlineViewSwitcherSetStack, libs, "adw_inline_view_switcher_set_stack") | |||
| 572 | } | 566 | } | ||