chore(deps): pin puregotk nil-signal fix
- commit
- a161e348e2093172038390b0906448f0ae979a0d
- author
- brice · · 2026-07-14 17:11 UTC
- parent
- c053b99
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +27842 -25263
M go.mod +1 -1
| @@ -10,7 +10,7 @@ require ( | |||
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 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 | - | github.com/bnema/puregotk v0.7.0 | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -10,7 +10,7 @@ require ( | |||||
| 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | ||
| 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/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +4 -0 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
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "github.com/bnema/purego" | |
| 6 | 5 | "github.com/bnema/puregotk/pkg/core" | |
| 7 | 6 | "github.com/bnema/puregotk/v4/gtk" | |
| 8 | 7 | ) | |
| @@ -14,6 +13,8 @@ var xGetEnableAnimations func(uintptr) bool | |||
| 14 | 13 | // This should be used when implementing an animated widget to know whether to | |
| 15 | 14 | // animate it or not. | |
| 16 | 15 | func GetEnableAnimations(WidgetVar *gtk.Widget) bool { | |
| 16 | + | core.LazyRegister(&xGetEnableAnimations, "ADW", "adw_get_enable_animations", false) | |
| 17 | + | ||
| 17 | 18 | cret := xGetEnableAnimations(WidgetVar.GoPointer()) | |
| 18 | 19 | return cret | |
| 19 | 20 | } | |
| @@ -22,6 +23,8 @@ var xLerp func(float64, float64, float64) float64 | |||
| 22 | 23 | ||
| 23 | 24 | // Computes the linear interpolation between @a and @b for @t. | |
| 24 | 25 | func Lerp(AVar float64, BVar float64, TVar float64) float64 { | |
| 26 | + | core.LazyRegister(&xLerp, "ADW", "adw_lerp", false) | |
| 27 | + | ||
| 25 | 28 | cret := xLerp(AVar, BVar, TVar) | |
| 26 | 29 | return cret | |
| 27 | 30 | } | |
| @@ -29,15 +32,4 @@ func Lerp(AVar float64, BVar float64, TVar float64) float64 { | |||
| 29 | 32 | func init() { | |
| 30 | 33 | core.SetPackageName("ADW", "libadwaita-1") | |
| 31 | 34 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 32 | - | var libs []uintptr | |
| 33 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 34 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 35 | - | if err != nil { | |
| 36 | - | panic(err) | |
| 37 | - | } | |
| 38 | - | libs = append(libs, lib) | |
| 39 | - | } | |
| 40 | - | ||
| 41 | - | core.PuregoSafeRegister(&xGetEnableAnimations, libs, "adw_get_enable_animations") | |
| 42 | - | core.PuregoSafeRegister(&xLerp, libs, "adw_lerp") | |
| 43 | 35 | } | |
| @@ -2,7 +2,6 @@ | |||||
| 2 | package adw | 2 | package adw | ||
| 3 | 3 | ||||
| 4 | import ( | 4 | import ( | ||
| 5 | - | "github.com/bnema/purego" | |||
| 6 | "github.com/bnema/puregotk/pkg/core" | 5 | "github.com/bnema/puregotk/pkg/core" | ||
| 7 | "github.com/bnema/puregotk/v4/gtk" | 6 | "github.com/bnema/puregotk/v4/gtk" | ||
| 8 | ) | 7 | ) | ||
| @@ -14,6 +13,8 @@ var xGetEnableAnimations func(uintptr) bool | |||||
| 14 | // This should be used when implementing an animated widget to know whether to | 13 | // This should be used when implementing an animated widget to know whether to | ||
| 15 | // animate it or not. | 14 | // animate it or not. | ||
| 16 | func GetEnableAnimations(WidgetVar *gtk.Widget) bool { | 15 | func GetEnableAnimations(WidgetVar *gtk.Widget) bool { | ||
| 16 | + | core.LazyRegister(&xGetEnableAnimations, "ADW", "adw_get_enable_animations", false) | |||
| 17 | + | ||||
| 17 | cret := xGetEnableAnimations(WidgetVar.GoPointer()) | 18 | cret := xGetEnableAnimations(WidgetVar.GoPointer()) | ||
| 18 | return cret | 19 | return cret | ||
| 19 | } | 20 | } | ||
| @@ -22,6 +23,8 @@ var xLerp func(float64, float64, float64) float64 | |||||
| 22 | 23 | ||||
| 23 | // Computes the linear interpolation between @a and @b for @t. | 24 | // Computes the linear interpolation between @a and @b for @t. | ||
| 24 | func Lerp(AVar float64, BVar float64, TVar float64) float64 { | 25 | func Lerp(AVar float64, BVar float64, TVar float64) float64 { | ||
| 26 | + | core.LazyRegister(&xLerp, "ADW", "adw_lerp", false) | |||
| 27 | + | ||||
| 25 | cret := xLerp(AVar, BVar, TVar) | 28 | cret := xLerp(AVar, BVar, TVar) | ||
| 26 | return cret | 29 | return cret | ||
| 27 | } | 30 | } | ||
| @@ -29,15 +32,4 @@ func Lerp(AVar float64, BVar float64, TVar float64) float64 { | |||||
| 29 | func init() { | 32 | func init() { | ||
| 30 | core.SetPackageName("ADW", "libadwaita-1") | 33 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 31 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 34 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 32 | - | var libs []uintptr | |||
| 33 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 34 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 35 | - | if err != nil { | |||
| 36 | - | panic(err) | |||
| 37 | - | } | |||
| 38 | - | libs = append(libs, lib) | |||
| 39 | - | } | |||
| 40 | - | ||||
| 41 | - | core.PuregoSafeRegister(&xGetEnableAnimations, libs, "adw_get_enable_animations") | |||
| 42 | - | core.PuregoSafeRegister(&xLerp, libs, "adw_lerp") | |||
| 43 | } | 35 | } | ||