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
| @@ -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/glib" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -87,6 +86,7 @@ type AnimationTarget struct { | |||
| 87 | 86 | var xAnimationTargetGLibType func() types.GType | |
| 88 | 87 | ||
| 89 | 88 | func AnimationTargetGLibType() types.GType { | |
| 89 | + | core.LazyRegister(&xAnimationTargetGLibType, "ADW", "adw_animation_target_get_type", false) | |
| 90 | 90 | return xAnimationTargetGLibType() | |
| 91 | 91 | } | |
| 92 | 92 | ||
| @@ -116,6 +116,7 @@ type CallbackAnimationTarget struct { | |||
| 116 | 116 | var xCallbackAnimationTargetGLibType func() types.GType | |
| 117 | 117 | ||
| 118 | 118 | func CallbackAnimationTargetGLibType() types.GType { | |
| 119 | + | core.LazyRegister(&xCallbackAnimationTargetGLibType, "ADW", "adw_callback_animation_target_get_type", false) | |
| 119 | 120 | return xCallbackAnimationTargetGLibType() | |
| 120 | 121 | } | |
| 121 | 122 | ||
| @@ -130,6 +131,7 @@ var xNewCallbackAnimationTarget func(uintptr, uintptr, uintptr) uintptr | |||
| 130 | 131 | // Creates a new `AdwAnimationTarget` that calls the given @callback during | |
| 131 | 132 | // the animation. | |
| 132 | 133 | func NewCallbackAnimationTarget(CallbackVar *AnimationTargetFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAnimationTarget { | |
| 134 | + | core.LazyRegister(&xNewCallbackAnimationTarget, "ADW", "adw_callback_animation_target_new", false) | |
| 133 | 135 | var cls *CallbackAnimationTarget | |
| 134 | 136 | ||
| 135 | 137 | cret := xNewCallbackAnimationTarget(glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| @@ -161,6 +163,7 @@ type NoneAnimationTarget struct { | |||
| 161 | 163 | var xNoneAnimationTargetGLibType func() types.GType | |
| 162 | 164 | ||
| 163 | 165 | func NoneAnimationTargetGLibType() types.GType { | |
| 166 | + | core.LazyRegister(&xNoneAnimationTargetGLibType, "ADW", "adw_none_animation_target_get_type", false) | |
| 164 | 167 | return xNoneAnimationTargetGLibType() | |
| 165 | 168 | } | |
| 166 | 169 | ||
| @@ -174,6 +177,7 @@ var xNewNoneAnimationTarget func() uintptr | |||
| 174 | 177 | ||
| 175 | 178 | // Creates a new `AdwAnimationTarget` that doesn't do anything. | |
| 176 | 179 | func NewNoneAnimationTarget() *NoneAnimationTarget { | |
| 180 | + | core.LazyRegister(&xNewNoneAnimationTarget, "ADW", "adw_none_animation_target_new", false) | |
| 177 | 181 | var cls *NoneAnimationTarget | |
| 178 | 182 | ||
| 179 | 183 | cret := xNewNoneAnimationTarget() | |
| @@ -206,6 +210,7 @@ type PropertyAnimationTarget struct { | |||
| 206 | 210 | var xPropertyAnimationTargetGLibType func() types.GType | |
| 207 | 211 | ||
| 208 | 212 | func PropertyAnimationTargetGLibType() types.GType { | |
| 213 | + | core.LazyRegister(&xPropertyAnimationTargetGLibType, "ADW", "adw_property_animation_target_get_type", false) | |
| 209 | 214 | return xPropertyAnimationTargetGLibType() | |
| 210 | 215 | } | |
| 211 | 216 | ||
| @@ -220,6 +225,7 @@ var xNewPropertyAnimationTarget func(uintptr, string) uintptr | |||
| 220 | 225 | // Creates a new `AdwPropertyAnimationTarget` for the @property_name property on | |
| 221 | 226 | // @object. | |
| 222 | 227 | func NewPropertyAnimationTarget(ObjectVar *gobject.Object, PropertyNameVar string) *PropertyAnimationTarget { | |
| 228 | + | core.LazyRegister(&xNewPropertyAnimationTarget, "ADW", "adw_property_animation_target_new", false) | |
| 223 | 229 | var cls *PropertyAnimationTarget | |
| 224 | 230 | ||
| 225 | 231 | cret := xNewPropertyAnimationTarget(ObjectVar.GoPointer(), PropertyNameVar) | |
| @@ -237,6 +243,7 @@ var xNewPropertyAnimationTargetForPspec func(uintptr, uintptr) uintptr | |||
| 237 | 243 | // Creates a new `AdwPropertyAnimationTarget` for the @pspec property on | |
| 238 | 244 | // @object. | |
| 239 | 245 | func NewPropertyAnimationTargetForPspec(ObjectVar *gobject.Object, PspecVar *gobject.ParamSpec) *PropertyAnimationTarget { | |
| 246 | + | core.LazyRegister(&xNewPropertyAnimationTargetForPspec, "ADW", "adw_property_animation_target_new_for_pspec", false) | |
| 240 | 247 | var cls *PropertyAnimationTarget | |
| 241 | 248 | ||
| 242 | 249 | cret := xNewPropertyAnimationTargetForPspec(ObjectVar.GoPointer(), PspecVar.GoPointer()) | |
| @@ -257,6 +264,7 @@ var xPropertyAnimationTargetGetObject func(uintptr) uintptr | |||
| 257 | 264 | // the object; make sure the object is kept alive throughout the target's | |
| 258 | 265 | // lifetime. | |
| 259 | 266 | func (x *PropertyAnimationTarget) GetObject() *gobject.Object { | |
| 267 | + | core.LazyRegister(&xPropertyAnimationTargetGetObject, "ADW", "adw_property_animation_target_get_object", false) | |
| 260 | 268 | var cls *gobject.Object | |
| 261 | 269 | ||
| 262 | 270 | cret := xPropertyAnimationTargetGetObject(x.GoPointer()) | |
| @@ -274,6 +282,7 @@ var xPropertyAnimationTargetGetPspec func(uintptr) uintptr | |||
| 274 | 282 | ||
| 275 | 283 | // Gets the `GParamSpec` of the property animated by @self. | |
| 276 | 284 | func (x *PropertyAnimationTarget) GetPspec() *gobject.ParamSpec { | |
| 285 | + | core.LazyRegister(&xPropertyAnimationTargetGetPspec, "ADW", "adw_property_animation_target_get_pspec", false) | |
| 277 | 286 | var cls *gobject.ParamSpec | |
| 278 | 287 | ||
| 279 | 288 | cret := xPropertyAnimationTargetGetPspec(x.GoPointer()) | |
| @@ -301,30 +310,4 @@ func (c *PropertyAnimationTarget) SetGoPointer(ptr uintptr) { | |||
| 301 | 310 | func init() { | |
| 302 | 311 | core.SetPackageName("ADW", "libadwaita-1") | |
| 303 | 312 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 304 | - | var libs []uintptr | |
| 305 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 306 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 307 | - | if err != nil { | |
| 308 | - | panic(err) | |
| 309 | - | } | |
| 310 | - | libs = append(libs, lib) | |
| 311 | - | } | |
| 312 | - | ||
| 313 | - | core.PuregoSafeRegister(&xAnimationTargetGLibType, libs, "adw_animation_target_get_type") | |
| 314 | - | ||
| 315 | - | core.PuregoSafeRegister(&xCallbackAnimationTargetGLibType, libs, "adw_callback_animation_target_get_type") | |
| 316 | - | ||
| 317 | - | core.PuregoSafeRegister(&xNewCallbackAnimationTarget, libs, "adw_callback_animation_target_new") | |
| 318 | - | ||
| 319 | - | core.PuregoSafeRegister(&xNoneAnimationTargetGLibType, libs, "adw_none_animation_target_get_type") | |
| 320 | - | ||
| 321 | - | core.PuregoSafeRegister(&xNewNoneAnimationTarget, libs, "adw_none_animation_target_new") | |
| 322 | - | ||
| 323 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGLibType, libs, "adw_property_animation_target_get_type") | |
| 324 | - | ||
| 325 | - | core.PuregoSafeRegister(&xNewPropertyAnimationTarget, libs, "adw_property_animation_target_new") | |
| 326 | - | core.PuregoSafeRegister(&xNewPropertyAnimationTargetForPspec, libs, "adw_property_animation_target_new_for_pspec") | |
| 327 | - | ||
| 328 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGetObject, libs, "adw_property_animation_target_get_object") | |
| 329 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGetPspec, libs, "adw_property_animation_target_get_pspec") | |
| 330 | 313 | } | |
| @@ -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/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -87,6 +86,7 @@ type AnimationTarget struct { | |||||
| 87 | var xAnimationTargetGLibType func() types.GType | 86 | var xAnimationTargetGLibType func() types.GType | ||
| 88 | 87 | ||||
| 89 | func AnimationTargetGLibType() types.GType { | 88 | func AnimationTargetGLibType() types.GType { | ||
| 89 | + | core.LazyRegister(&xAnimationTargetGLibType, "ADW", "adw_animation_target_get_type", false) | |||
| 90 | return xAnimationTargetGLibType() | 90 | return xAnimationTargetGLibType() | ||
| 91 | } | 91 | } | ||
| 92 | 92 | ||||
| @@ -116,6 +116,7 @@ type CallbackAnimationTarget struct { | |||||
| 116 | var xCallbackAnimationTargetGLibType func() types.GType | 116 | var xCallbackAnimationTargetGLibType func() types.GType | ||
| 117 | 117 | ||||
| 118 | func CallbackAnimationTargetGLibType() types.GType { | 118 | func CallbackAnimationTargetGLibType() types.GType { | ||
| 119 | + | core.LazyRegister(&xCallbackAnimationTargetGLibType, "ADW", "adw_callback_animation_target_get_type", false) | |||
| 119 | return xCallbackAnimationTargetGLibType() | 120 | return xCallbackAnimationTargetGLibType() | ||
| 120 | } | 121 | } | ||
| 121 | 122 | ||||
| @@ -130,6 +131,7 @@ var xNewCallbackAnimationTarget func(uintptr, uintptr, uintptr) uintptr | |||||
| 130 | // Creates a new `AdwAnimationTarget` that calls the given @callback during | 131 | // Creates a new `AdwAnimationTarget` that calls the given @callback during | ||
| 131 | // the animation. | 132 | // the animation. | ||
| 132 | func NewCallbackAnimationTarget(CallbackVar *AnimationTargetFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAnimationTarget { | 133 | func NewCallbackAnimationTarget(CallbackVar *AnimationTargetFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAnimationTarget { | ||
| 134 | + | core.LazyRegister(&xNewCallbackAnimationTarget, "ADW", "adw_callback_animation_target_new", false) | |||
| 133 | var cls *CallbackAnimationTarget | 135 | var cls *CallbackAnimationTarget | ||
| 134 | 136 | ||||
| 135 | cret := xNewCallbackAnimationTarget(glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | 137 | cret := xNewCallbackAnimationTarget(glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | ||
| @@ -161,6 +163,7 @@ type NoneAnimationTarget struct { | |||||
| 161 | var xNoneAnimationTargetGLibType func() types.GType | 163 | var xNoneAnimationTargetGLibType func() types.GType | ||
| 162 | 164 | ||||
| 163 | func NoneAnimationTargetGLibType() types.GType { | 165 | func NoneAnimationTargetGLibType() types.GType { | ||
| 166 | + | core.LazyRegister(&xNoneAnimationTargetGLibType, "ADW", "adw_none_animation_target_get_type", false) | |||
| 164 | return xNoneAnimationTargetGLibType() | 167 | return xNoneAnimationTargetGLibType() | ||
| 165 | } | 168 | } | ||
| 166 | 169 | ||||
| @@ -174,6 +177,7 @@ var xNewNoneAnimationTarget func() uintptr | |||||
| 174 | 177 | ||||
| 175 | // Creates a new `AdwAnimationTarget` that doesn't do anything. | 178 | // Creates a new `AdwAnimationTarget` that doesn't do anything. | ||
| 176 | func NewNoneAnimationTarget() *NoneAnimationTarget { | 179 | func NewNoneAnimationTarget() *NoneAnimationTarget { | ||
| 180 | + | core.LazyRegister(&xNewNoneAnimationTarget, "ADW", "adw_none_animation_target_new", false) | |||
| 177 | var cls *NoneAnimationTarget | 181 | var cls *NoneAnimationTarget | ||
| 178 | 182 | ||||
| 179 | cret := xNewNoneAnimationTarget() | 183 | cret := xNewNoneAnimationTarget() | ||
| @@ -206,6 +210,7 @@ type PropertyAnimationTarget struct { | |||||
| 206 | var xPropertyAnimationTargetGLibType func() types.GType | 210 | var xPropertyAnimationTargetGLibType func() types.GType | ||
| 207 | 211 | ||||
| 208 | func PropertyAnimationTargetGLibType() types.GType { | 212 | func PropertyAnimationTargetGLibType() types.GType { | ||
| 213 | + | core.LazyRegister(&xPropertyAnimationTargetGLibType, "ADW", "adw_property_animation_target_get_type", false) | |||
| 209 | return xPropertyAnimationTargetGLibType() | 214 | return xPropertyAnimationTargetGLibType() | ||
| 210 | } | 215 | } | ||
| 211 | 216 | ||||
| @@ -220,6 +225,7 @@ var xNewPropertyAnimationTarget func(uintptr, string) uintptr | |||||
| 220 | // Creates a new `AdwPropertyAnimationTarget` for the @property_name property on | 225 | // Creates a new `AdwPropertyAnimationTarget` for the @property_name property on | ||
| 221 | // @object. | 226 | // @object. | ||
| 222 | func NewPropertyAnimationTarget(ObjectVar *gobject.Object, PropertyNameVar string) *PropertyAnimationTarget { | 227 | func NewPropertyAnimationTarget(ObjectVar *gobject.Object, PropertyNameVar string) *PropertyAnimationTarget { | ||
| 228 | + | core.LazyRegister(&xNewPropertyAnimationTarget, "ADW", "adw_property_animation_target_new", false) | |||
| 223 | var cls *PropertyAnimationTarget | 229 | var cls *PropertyAnimationTarget | ||
| 224 | 230 | ||||
| 225 | cret := xNewPropertyAnimationTarget(ObjectVar.GoPointer(), PropertyNameVar) | 231 | cret := xNewPropertyAnimationTarget(ObjectVar.GoPointer(), PropertyNameVar) | ||
| @@ -237,6 +243,7 @@ var xNewPropertyAnimationTargetForPspec func(uintptr, uintptr) uintptr | |||||
| 237 | // Creates a new `AdwPropertyAnimationTarget` for the @pspec property on | 243 | // Creates a new `AdwPropertyAnimationTarget` for the @pspec property on | ||
| 238 | // @object. | 244 | // @object. | ||
| 239 | func NewPropertyAnimationTargetForPspec(ObjectVar *gobject.Object, PspecVar *gobject.ParamSpec) *PropertyAnimationTarget { | 245 | func NewPropertyAnimationTargetForPspec(ObjectVar *gobject.Object, PspecVar *gobject.ParamSpec) *PropertyAnimationTarget { | ||
| 246 | + | core.LazyRegister(&xNewPropertyAnimationTargetForPspec, "ADW", "adw_property_animation_target_new_for_pspec", false) | |||
| 240 | var cls *PropertyAnimationTarget | 247 | var cls *PropertyAnimationTarget | ||
| 241 | 248 | ||||
| 242 | cret := xNewPropertyAnimationTargetForPspec(ObjectVar.GoPointer(), PspecVar.GoPointer()) | 249 | cret := xNewPropertyAnimationTargetForPspec(ObjectVar.GoPointer(), PspecVar.GoPointer()) | ||
| @@ -257,6 +264,7 @@ var xPropertyAnimationTargetGetObject func(uintptr) uintptr | |||||
| 257 | // the object; make sure the object is kept alive throughout the target's | 264 | // the object; make sure the object is kept alive throughout the target's | ||
| 258 | // lifetime. | 265 | // lifetime. | ||
| 259 | func (x *PropertyAnimationTarget) GetObject() *gobject.Object { | 266 | func (x *PropertyAnimationTarget) GetObject() *gobject.Object { | ||
| 267 | + | core.LazyRegister(&xPropertyAnimationTargetGetObject, "ADW", "adw_property_animation_target_get_object", false) | |||
| 260 | var cls *gobject.Object | 268 | var cls *gobject.Object | ||
| 261 | 269 | ||||
| 262 | cret := xPropertyAnimationTargetGetObject(x.GoPointer()) | 270 | cret := xPropertyAnimationTargetGetObject(x.GoPointer()) | ||
| @@ -274,6 +282,7 @@ var xPropertyAnimationTargetGetPspec func(uintptr) uintptr | |||||
| 274 | 282 | ||||
| 275 | // Gets the `GParamSpec` of the property animated by @self. | 283 | // Gets the `GParamSpec` of the property animated by @self. | ||
| 276 | func (x *PropertyAnimationTarget) GetPspec() *gobject.ParamSpec { | 284 | func (x *PropertyAnimationTarget) GetPspec() *gobject.ParamSpec { | ||
| 285 | + | core.LazyRegister(&xPropertyAnimationTargetGetPspec, "ADW", "adw_property_animation_target_get_pspec", false) | |||
| 277 | var cls *gobject.ParamSpec | 286 | var cls *gobject.ParamSpec | ||
| 278 | 287 | ||||
| 279 | cret := xPropertyAnimationTargetGetPspec(x.GoPointer()) | 288 | cret := xPropertyAnimationTargetGetPspec(x.GoPointer()) | ||
| @@ -301,30 +310,4 @@ func (c *PropertyAnimationTarget) SetGoPointer(ptr uintptr) { | |||||
| 301 | func init() { | 310 | func init() { | ||
| 302 | core.SetPackageName("ADW", "libadwaita-1") | 311 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 303 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 312 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 304 | - | var libs []uintptr | |||
| 305 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 306 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 307 | - | if err != nil { | |||
| 308 | - | panic(err) | |||
| 309 | - | } | |||
| 310 | - | libs = append(libs, lib) | |||
| 311 | - | } | |||
| 312 | - | ||||
| 313 | - | core.PuregoSafeRegister(&xAnimationTargetGLibType, libs, "adw_animation_target_get_type") | |||
| 314 | - | ||||
| 315 | - | core.PuregoSafeRegister(&xCallbackAnimationTargetGLibType, libs, "adw_callback_animation_target_get_type") | |||
| 316 | - | ||||
| 317 | - | core.PuregoSafeRegister(&xNewCallbackAnimationTarget, libs, "adw_callback_animation_target_new") | |||
| 318 | - | ||||
| 319 | - | core.PuregoSafeRegister(&xNoneAnimationTargetGLibType, libs, "adw_none_animation_target_get_type") | |||
| 320 | - | ||||
| 321 | - | core.PuregoSafeRegister(&xNewNoneAnimationTarget, libs, "adw_none_animation_target_new") | |||
| 322 | - | ||||
| 323 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGLibType, libs, "adw_property_animation_target_get_type") | |||
| 324 | - | ||||
| 325 | - | core.PuregoSafeRegister(&xNewPropertyAnimationTarget, libs, "adw_property_animation_target_new") | |||
| 326 | - | core.PuregoSafeRegister(&xNewPropertyAnimationTargetForPspec, libs, "adw_property_animation_target_new_for_pspec") | |||
| 327 | - | ||||
| 328 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGetObject, libs, "adw_property_animation_target_get_object") | |||
| 329 | - | core.PuregoSafeRegister(&xPropertyAnimationTargetGetPspec, libs, "adw_property_animation_target_get_pspec") | |||
| 330 | } | 313 | } | ||