fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
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.20260714181430-679a9ed72959 | |
| 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.20260714181430-679a9ed72959 |
| 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 -16 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
| @@ -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" | |
| @@ -119,6 +118,7 @@ type MultiLayoutView struct { | |||
| 119 | 118 | var xMultiLayoutViewGLibType func() types.GType | |
| 120 | 119 | ||
| 121 | 120 | func MultiLayoutViewGLibType() types.GType { | |
| 121 | + | core.LazyRegister(&xMultiLayoutViewGLibType, "ADW", "adw_multi_layout_view_get_type", false) | |
| 122 | 122 | return xMultiLayoutViewGLibType() | |
| 123 | 123 | } | |
| 124 | 124 | ||
| @@ -132,6 +132,7 @@ var xNewMultiLayoutView func() uintptr | |||
| 132 | 132 | ||
| 133 | 133 | // Creates a new `AdwMultiLayoutView`. | |
| 134 | 134 | func NewMultiLayoutView() *MultiLayoutView { | |
| 135 | + | core.LazyRegister(&xNewMultiLayoutView, "ADW", "adw_multi_layout_view_new", false) | |
| 135 | 136 | var cls *MultiLayoutView | |
| 136 | 137 | ||
| 137 | 138 | cret := xNewMultiLayoutView() | |
| @@ -149,6 +150,8 @@ var xMultiLayoutViewAddLayout func(uintptr, uintptr) | |||
| 149 | 150 | ||
| 150 | 151 | // Adds @layout to @self. | |
| 151 | 152 | func (x *MultiLayoutView) AddLayout(LayoutVar *Layout) { | |
| 153 | + | core.LazyRegister(&xMultiLayoutViewAddLayout, "ADW", "adw_multi_layout_view_add_layout", false) | |
| 154 | + | ||
| 152 | 155 | xMultiLayoutViewAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | |
| 153 | 156 | } | |
| 154 | 157 | ||
| @@ -156,6 +159,7 @@ var xMultiLayoutViewGetChild func(uintptr, string) uintptr | |||
| 156 | 159 | ||
| 157 | 160 | // Gets the child for @id to @self. | |
| 158 | 161 | func (x *MultiLayoutView) GetChild(IdVar string) *gtk.Widget { | |
| 162 | + | core.LazyRegister(&xMultiLayoutViewGetChild, "ADW", "adw_multi_layout_view_get_child", false) | |
| 159 | 163 | var cls *gtk.Widget | |
| 160 | 164 | ||
| 161 | 165 | cret := xMultiLayoutViewGetChild(x.GoPointer(), IdVar) | |
| @@ -173,6 +177,7 @@ var xMultiLayoutViewGetLayout func(uintptr) uintptr | |||
| 173 | 177 | ||
| 174 | 178 | // Gets the currently used layout of @self. | |
| 175 | 179 | func (x *MultiLayoutView) GetLayout() *Layout { | |
| 180 | + | core.LazyRegister(&xMultiLayoutViewGetLayout, "ADW", "adw_multi_layout_view_get_layout", false) | |
| 176 | 181 | var cls *Layout | |
| 177 | 182 | ||
| 178 | 183 | cret := xMultiLayoutViewGetLayout(x.GoPointer()) | |
| @@ -192,6 +197,7 @@ var xMultiLayoutViewGetLayoutByName func(uintptr, string) uintptr | |||
| 192 | 197 | // | |
| 193 | 198 | // See [property@Layout:name]. | |
| 194 | 199 | func (x *MultiLayoutView) GetLayoutByName(NameVar string) *Layout { | |
| 200 | + | core.LazyRegister(&xMultiLayoutViewGetLayoutByName, "ADW", "adw_multi_layout_view_get_layout_by_name", false) | |
| 195 | 201 | var cls *Layout | |
| 196 | 202 | ||
| 197 | 203 | cret := xMultiLayoutViewGetLayoutByName(x.GoPointer(), NameVar) | |
| @@ -209,6 +215,8 @@ var xMultiLayoutViewGetLayoutName func(uintptr) string | |||
| 209 | 215 | ||
| 210 | 216 | // Returns the name of the currently used layout of @self. | |
| 211 | 217 | func (x *MultiLayoutView) GetLayoutName() string { | |
| 218 | + | core.LazyRegister(&xMultiLayoutViewGetLayoutName, "ADW", "adw_multi_layout_view_get_layout_name", false) | |
| 219 | + | ||
| 212 | 220 | cret := xMultiLayoutViewGetLayoutName(x.GoPointer()) | |
| 213 | 221 | return cret | |
| 214 | 222 | } | |
| @@ -217,6 +225,8 @@ var xMultiLayoutViewRemoveLayout func(uintptr, uintptr) | |||
| 217 | 225 | ||
| 218 | 226 | // Removes @layout from @self. | |
| 219 | 227 | func (x *MultiLayoutView) RemoveLayout(LayoutVar *Layout) { | |
| 228 | + | core.LazyRegister(&xMultiLayoutViewRemoveLayout, "ADW", "adw_multi_layout_view_remove_layout", false) | |
| 229 | + | ||
| 220 | 230 | xMultiLayoutViewRemoveLayout(x.GoPointer(), LayoutVar.GoPointer()) | |
| 221 | 231 | } | |
| 222 | 232 | ||
| @@ -226,6 +236,8 @@ var xMultiLayoutViewSetChild func(uintptr, string, uintptr) | |||
| 226 | 236 | // | |
| 227 | 237 | // When changing layouts, it will be inserted into the slot with @id. | |
| 228 | 238 | func (x *MultiLayoutView) SetChild(IdVar string, ChildVar *gtk.Widget) { | |
| 239 | + | core.LazyRegister(&xMultiLayoutViewSetChild, "ADW", "adw_multi_layout_view_set_child", false) | |
| 240 | + | ||
| 229 | 241 | xMultiLayoutViewSetChild(x.GoPointer(), IdVar, ChildVar.GoPointer()) | |
| 230 | 242 | } | |
| 231 | 243 | ||
| @@ -233,6 +245,8 @@ var xMultiLayoutViewSetLayout func(uintptr, uintptr) | |||
| 233 | 245 | ||
| 234 | 246 | // Makes @layout the current layout of @self. | |
| 235 | 247 | func (x *MultiLayoutView) SetLayout(LayoutVar *Layout) { | |
| 248 | + | core.LazyRegister(&xMultiLayoutViewSetLayout, "ADW", "adw_multi_layout_view_set_layout", false) | |
| 249 | + | ||
| 236 | 250 | xMultiLayoutViewSetLayout(x.GoPointer(), LayoutVar.GoPointer()) | |
| 237 | 251 | } | |
| 238 | 252 | ||
| @@ -242,6 +256,8 @@ var xMultiLayoutViewSetLayoutName func(uintptr, string) | |||
| 242 | 256 | // | |
| 243 | 257 | // See [property@Layout:name]. | |
| 244 | 258 | func (x *MultiLayoutView) SetLayoutName(NameVar string) { | |
| 259 | + | core.LazyRegister(&xMultiLayoutViewSetLayoutName, "ADW", "adw_multi_layout_view_set_layout_name", false) | |
| 260 | + | ||
| 245 | 261 | xMultiLayoutViewSetLayoutName(x.GoPointer(), NameVar) | |
| 246 | 262 | } | |
| 247 | 263 | ||
| @@ -540,26 +556,4 @@ func (x *MultiLayoutView) GetBuildableId() string { | |||
| 540 | 556 | func init() { | |
| 541 | 557 | core.SetPackageName("ADW", "libadwaita-1") | |
| 542 | 558 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 543 | - | var libs []uintptr | |
| 544 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 545 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 546 | - | if err != nil { | |
| 547 | - | panic(err) | |
| 548 | - | } | |
| 549 | - | libs = append(libs, lib) | |
| 550 | - | } | |
| 551 | - | ||
| 552 | - | core.PuregoSafeRegister(&xMultiLayoutViewGLibType, libs, "adw_multi_layout_view_get_type") | |
| 553 | - | ||
| 554 | - | core.PuregoSafeRegister(&xNewMultiLayoutView, libs, "adw_multi_layout_view_new") | |
| 555 | - | ||
| 556 | - | core.PuregoSafeRegister(&xMultiLayoutViewAddLayout, libs, "adw_multi_layout_view_add_layout") | |
| 557 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetChild, libs, "adw_multi_layout_view_get_child") | |
| 558 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayout, libs, "adw_multi_layout_view_get_layout") | |
| 559 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayoutByName, libs, "adw_multi_layout_view_get_layout_by_name") | |
| 560 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayoutName, libs, "adw_multi_layout_view_get_layout_name") | |
| 561 | - | core.PuregoSafeRegister(&xMultiLayoutViewRemoveLayout, libs, "adw_multi_layout_view_remove_layout") | |
| 562 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetChild, libs, "adw_multi_layout_view_set_child") | |
| 563 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetLayout, libs, "adw_multi_layout_view_set_layout") | |
| 564 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetLayoutName, libs, "adw_multi_layout_view_set_layout_name") | |
| 565 | 559 | } | |
| @@ -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" | ||
| @@ -119,6 +118,7 @@ type MultiLayoutView struct { | |||||
| 119 | var xMultiLayoutViewGLibType func() types.GType | 118 | var xMultiLayoutViewGLibType func() types.GType | ||
| 120 | 119 | ||||
| 121 | func MultiLayoutViewGLibType() types.GType { | 120 | func MultiLayoutViewGLibType() types.GType { | ||
| 121 | + | core.LazyRegister(&xMultiLayoutViewGLibType, "ADW", "adw_multi_layout_view_get_type", false) | |||
| 122 | return xMultiLayoutViewGLibType() | 122 | return xMultiLayoutViewGLibType() | ||
| 123 | } | 123 | } | ||
| 124 | 124 | ||||
| @@ -132,6 +132,7 @@ var xNewMultiLayoutView func() uintptr | |||||
| 132 | 132 | ||||
| 133 | // Creates a new `AdwMultiLayoutView`. | 133 | // Creates a new `AdwMultiLayoutView`. | ||
| 134 | func NewMultiLayoutView() *MultiLayoutView { | 134 | func NewMultiLayoutView() *MultiLayoutView { | ||
| 135 | + | core.LazyRegister(&xNewMultiLayoutView, "ADW", "adw_multi_layout_view_new", false) | |||
| 135 | var cls *MultiLayoutView | 136 | var cls *MultiLayoutView | ||
| 136 | 137 | ||||
| 137 | cret := xNewMultiLayoutView() | 138 | cret := xNewMultiLayoutView() | ||
| @@ -149,6 +150,8 @@ var xMultiLayoutViewAddLayout func(uintptr, uintptr) | |||||
| 149 | 150 | ||||
| 150 | // Adds @layout to @self. | 151 | // Adds @layout to @self. | ||
| 151 | func (x *MultiLayoutView) AddLayout(LayoutVar *Layout) { | 152 | func (x *MultiLayoutView) AddLayout(LayoutVar *Layout) { | ||
| 153 | + | core.LazyRegister(&xMultiLayoutViewAddLayout, "ADW", "adw_multi_layout_view_add_layout", false) | |||
| 154 | + | ||||
| 152 | xMultiLayoutViewAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | 155 | xMultiLayoutViewAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | ||
| 153 | } | 156 | } | ||
| 154 | 157 | ||||
| @@ -156,6 +159,7 @@ var xMultiLayoutViewGetChild func(uintptr, string) uintptr | |||||
| 156 | 159 | ||||
| 157 | // Gets the child for @id to @self. | 160 | // Gets the child for @id to @self. | ||
| 158 | func (x *MultiLayoutView) GetChild(IdVar string) *gtk.Widget { | 161 | func (x *MultiLayoutView) GetChild(IdVar string) *gtk.Widget { | ||
| 162 | + | core.LazyRegister(&xMultiLayoutViewGetChild, "ADW", "adw_multi_layout_view_get_child", false) | |||
| 159 | var cls *gtk.Widget | 163 | var cls *gtk.Widget | ||
| 160 | 164 | ||||
| 161 | cret := xMultiLayoutViewGetChild(x.GoPointer(), IdVar) | 165 | cret := xMultiLayoutViewGetChild(x.GoPointer(), IdVar) | ||
| @@ -173,6 +177,7 @@ var xMultiLayoutViewGetLayout func(uintptr) uintptr | |||||
| 173 | 177 | ||||
| 174 | // Gets the currently used layout of @self. | 178 | // Gets the currently used layout of @self. | ||
| 175 | func (x *MultiLayoutView) GetLayout() *Layout { | 179 | func (x *MultiLayoutView) GetLayout() *Layout { | ||
| 180 | + | core.LazyRegister(&xMultiLayoutViewGetLayout, "ADW", "adw_multi_layout_view_get_layout", false) | |||
| 176 | var cls *Layout | 181 | var cls *Layout | ||
| 177 | 182 | ||||
| 178 | cret := xMultiLayoutViewGetLayout(x.GoPointer()) | 183 | cret := xMultiLayoutViewGetLayout(x.GoPointer()) | ||
| @@ -192,6 +197,7 @@ var xMultiLayoutViewGetLayoutByName func(uintptr, string) uintptr | |||||
| 192 | // | 197 | // | ||
| 193 | // See [property@Layout:name]. | 198 | // See [property@Layout:name]. | ||
| 194 | func (x *MultiLayoutView) GetLayoutByName(NameVar string) *Layout { | 199 | func (x *MultiLayoutView) GetLayoutByName(NameVar string) *Layout { | ||
| 200 | + | core.LazyRegister(&xMultiLayoutViewGetLayoutByName, "ADW", "adw_multi_layout_view_get_layout_by_name", false) | |||
| 195 | var cls *Layout | 201 | var cls *Layout | ||
| 196 | 202 | ||||
| 197 | cret := xMultiLayoutViewGetLayoutByName(x.GoPointer(), NameVar) | 203 | cret := xMultiLayoutViewGetLayoutByName(x.GoPointer(), NameVar) | ||
| @@ -209,6 +215,8 @@ var xMultiLayoutViewGetLayoutName func(uintptr) string | |||||
| 209 | 215 | ||||
| 210 | // Returns the name of the currently used layout of @self. | 216 | // Returns the name of the currently used layout of @self. | ||
| 211 | func (x *MultiLayoutView) GetLayoutName() string { | 217 | func (x *MultiLayoutView) GetLayoutName() string { | ||
| 218 | + | core.LazyRegister(&xMultiLayoutViewGetLayoutName, "ADW", "adw_multi_layout_view_get_layout_name", false) | |||
| 219 | + | ||||
| 212 | cret := xMultiLayoutViewGetLayoutName(x.GoPointer()) | 220 | cret := xMultiLayoutViewGetLayoutName(x.GoPointer()) | ||
| 213 | return cret | 221 | return cret | ||
| 214 | } | 222 | } | ||
| @@ -217,6 +225,8 @@ var xMultiLayoutViewRemoveLayout func(uintptr, uintptr) | |||||
| 217 | 225 | ||||
| 218 | // Removes @layout from @self. | 226 | // Removes @layout from @self. | ||
| 219 | func (x *MultiLayoutView) RemoveLayout(LayoutVar *Layout) { | 227 | func (x *MultiLayoutView) RemoveLayout(LayoutVar *Layout) { | ||
| 228 | + | core.LazyRegister(&xMultiLayoutViewRemoveLayout, "ADW", "adw_multi_layout_view_remove_layout", false) | |||
| 229 | + | ||||
| 220 | xMultiLayoutViewRemoveLayout(x.GoPointer(), LayoutVar.GoPointer()) | 230 | xMultiLayoutViewRemoveLayout(x.GoPointer(), LayoutVar.GoPointer()) | ||
| 221 | } | 231 | } | ||
| 222 | 232 | ||||
| @@ -226,6 +236,8 @@ var xMultiLayoutViewSetChild func(uintptr, string, uintptr) | |||||
| 226 | // | 236 | // | ||
| 227 | // When changing layouts, it will be inserted into the slot with @id. | 237 | // When changing layouts, it will be inserted into the slot with @id. | ||
| 228 | func (x *MultiLayoutView) SetChild(IdVar string, ChildVar *gtk.Widget) { | 238 | func (x *MultiLayoutView) SetChild(IdVar string, ChildVar *gtk.Widget) { | ||
| 239 | + | core.LazyRegister(&xMultiLayoutViewSetChild, "ADW", "adw_multi_layout_view_set_child", false) | |||
| 240 | + | ||||
| 229 | xMultiLayoutViewSetChild(x.GoPointer(), IdVar, ChildVar.GoPointer()) | 241 | xMultiLayoutViewSetChild(x.GoPointer(), IdVar, ChildVar.GoPointer()) | ||
| 230 | } | 242 | } | ||
| 231 | 243 | ||||
| @@ -233,6 +245,8 @@ var xMultiLayoutViewSetLayout func(uintptr, uintptr) | |||||
| 233 | 245 | ||||
| 234 | // Makes @layout the current layout of @self. | 246 | // Makes @layout the current layout of @self. | ||
| 235 | func (x *MultiLayoutView) SetLayout(LayoutVar *Layout) { | 247 | func (x *MultiLayoutView) SetLayout(LayoutVar *Layout) { | ||
| 248 | + | core.LazyRegister(&xMultiLayoutViewSetLayout, "ADW", "adw_multi_layout_view_set_layout", false) | |||
| 249 | + | ||||
| 236 | xMultiLayoutViewSetLayout(x.GoPointer(), LayoutVar.GoPointer()) | 250 | xMultiLayoutViewSetLayout(x.GoPointer(), LayoutVar.GoPointer()) | ||
| 237 | } | 251 | } | ||
| 238 | 252 | ||||
| @@ -242,6 +256,8 @@ var xMultiLayoutViewSetLayoutName func(uintptr, string) | |||||
| 242 | // | 256 | // | ||
| 243 | // See [property@Layout:name]. | 257 | // See [property@Layout:name]. | ||
| 244 | func (x *MultiLayoutView) SetLayoutName(NameVar string) { | 258 | func (x *MultiLayoutView) SetLayoutName(NameVar string) { | ||
| 259 | + | core.LazyRegister(&xMultiLayoutViewSetLayoutName, "ADW", "adw_multi_layout_view_set_layout_name", false) | |||
| 260 | + | ||||
| 245 | xMultiLayoutViewSetLayoutName(x.GoPointer(), NameVar) | 261 | xMultiLayoutViewSetLayoutName(x.GoPointer(), NameVar) | ||
| 246 | } | 262 | } | ||
| 247 | 263 | ||||
| @@ -540,26 +556,4 @@ func (x *MultiLayoutView) GetBuildableId() string { | |||||
| 540 | func init() { | 556 | func init() { | ||
| 541 | core.SetPackageName("ADW", "libadwaita-1") | 557 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 542 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 558 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 543 | - | var libs []uintptr | |||
| 544 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 545 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 546 | - | if err != nil { | |||
| 547 | - | panic(err) | |||
| 548 | - | } | |||
| 549 | - | libs = append(libs, lib) | |||
| 550 | - | } | |||
| 551 | - | ||||
| 552 | - | core.PuregoSafeRegister(&xMultiLayoutViewGLibType, libs, "adw_multi_layout_view_get_type") | |||
| 553 | - | ||||
| 554 | - | core.PuregoSafeRegister(&xNewMultiLayoutView, libs, "adw_multi_layout_view_new") | |||
| 555 | - | ||||
| 556 | - | core.PuregoSafeRegister(&xMultiLayoutViewAddLayout, libs, "adw_multi_layout_view_add_layout") | |||
| 557 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetChild, libs, "adw_multi_layout_view_get_child") | |||
| 558 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayout, libs, "adw_multi_layout_view_get_layout") | |||
| 559 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayoutByName, libs, "adw_multi_layout_view_get_layout_by_name") | |||
| 560 | - | core.PuregoSafeRegister(&xMultiLayoutViewGetLayoutName, libs, "adw_multi_layout_view_get_layout_name") | |||
| 561 | - | core.PuregoSafeRegister(&xMultiLayoutViewRemoveLayout, libs, "adw_multi_layout_view_remove_layout") | |||
| 562 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetChild, libs, "adw_multi_layout_view_set_child") | |||
| 563 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetLayout, libs, "adw_multi_layout_view_set_layout") | |||
| 564 | - | core.PuregoSafeRegister(&xMultiLayoutViewSetLayoutName, libs, "adw_multi_layout_view_set_layout_name") | |||
| 565 | } | 559 | } | ||