Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -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.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 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 | |
| @@ -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.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 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 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -45,7 +46,6 @@ type ClampScrollable struct { | |||
| 45 | 46 | var xClampScrollableGLibType func() types.GType | |
| 46 | 47 | ||
| 47 | 48 | func ClampScrollableGLibType() types.GType { | |
| 48 | - | core.LazyRegister(&xClampScrollableGLibType, "ADW", "adw_clamp_scrollable_get_type", false) | |
| 49 | 49 | return xClampScrollableGLibType() | |
| 50 | 50 | } | |
| 51 | 51 | ||
| @@ -59,7 +59,6 @@ var xNewClampScrollable func() uintptr | |||
| 59 | 59 | ||
| 60 | 60 | // Creates a new `AdwClampScrollable`. | |
| 61 | 61 | func NewClampScrollable() *ClampScrollable { | |
| 62 | - | core.LazyRegister(&xNewClampScrollable, "ADW", "adw_clamp_scrollable_new", false) | |
| 63 | 62 | var cls *ClampScrollable | |
| 64 | 63 | ||
| 65 | 64 | cret := xNewClampScrollable() | |
| @@ -77,7 +76,6 @@ var xClampScrollableGetChild func(uintptr) uintptr | |||
| 77 | 76 | ||
| 78 | 77 | // Gets the child widget of @self. | |
| 79 | 78 | func (x *ClampScrollable) GetChild() *gtk.Widget { | |
| 80 | - | core.LazyRegister(&xClampScrollableGetChild, "ADW", "adw_clamp_scrollable_get_child", false) | |
| 81 | 79 | var cls *gtk.Widget | |
| 82 | 80 | ||
| 83 | 81 | cret := xClampScrollableGetChild(x.GoPointer()) | |
| @@ -95,8 +93,6 @@ var xClampScrollableGetMaximumSize func(uintptr) int | |||
| 95 | 93 | ||
| 96 | 94 | // Gets the maximum size allocated to the child. | |
| 97 | 95 | func (x *ClampScrollable) GetMaximumSize() int { | |
| 98 | - | core.LazyRegister(&xClampScrollableGetMaximumSize, "ADW", "adw_clamp_scrollable_get_maximum_size", false) | |
| 99 | - | ||
| 100 | 96 | cret := xClampScrollableGetMaximumSize(x.GoPointer()) | |
| 101 | 97 | return cret | |
| 102 | 98 | } | |
| @@ -105,8 +101,6 @@ var xClampScrollableGetTighteningThreshold func(uintptr) int | |||
| 105 | 101 | ||
| 106 | 102 | // Gets the size above which the child is clamped. | |
| 107 | 103 | func (x *ClampScrollable) GetTighteningThreshold() int { | |
| 108 | - | core.LazyRegister(&xClampScrollableGetTighteningThreshold, "ADW", "adw_clamp_scrollable_get_tightening_threshold", false) | |
| 109 | - | ||
| 110 | 104 | cret := xClampScrollableGetTighteningThreshold(x.GoPointer()) | |
| 111 | 105 | return cret | |
| 112 | 106 | } | |
| @@ -115,8 +109,6 @@ var xClampScrollableGetUnit func(uintptr) LengthUnit | |||
| 115 | 109 | ||
| 116 | 110 | // Gets the length unit for maximum size and tightening threshold. | |
| 117 | 111 | func (x *ClampScrollable) GetUnit() LengthUnit { | |
| 118 | - | core.LazyRegister(&xClampScrollableGetUnit, "ADW", "adw_clamp_scrollable_get_unit", false) | |
| 119 | - | ||
| 120 | 112 | cret := xClampScrollableGetUnit(x.GoPointer()) | |
| 121 | 113 | return cret | |
| 122 | 114 | } | |
| @@ -125,8 +117,6 @@ var xClampScrollableSetChild func(uintptr, uintptr) | |||
| 125 | 117 | ||
| 126 | 118 | // Sets the child widget of @self. | |
| 127 | 119 | func (x *ClampScrollable) SetChild(ChildVar *gtk.Widget) { | |
| 128 | - | core.LazyRegister(&xClampScrollableSetChild, "ADW", "adw_clamp_scrollable_set_child", false) | |
| 129 | - | ||
| 130 | 120 | xClampScrollableSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 131 | 121 | } | |
| 132 | 122 | ||
| @@ -136,8 +126,6 @@ var xClampScrollableSetMaximumSize func(uintptr, int) | |||
| 136 | 126 | // | |
| 137 | 127 | // It is the width if the clamp is horizontal, or the height if it is vertical. | |
| 138 | 128 | func (x *ClampScrollable) SetMaximumSize(MaximumSizeVar int) { | |
| 139 | - | core.LazyRegister(&xClampScrollableSetMaximumSize, "ADW", "adw_clamp_scrollable_set_maximum_size", false) | |
| 140 | - | ||
| 141 | 129 | xClampScrollableSetMaximumSize(x.GoPointer(), MaximumSizeVar) | |
| 142 | 130 | } | |
| 143 | 131 | ||
| @@ -158,8 +146,6 @@ var xClampScrollableSetTighteningThreshold func(uintptr, int) | |||
| 158 | 146 | // Effectively, tightening the grip on the child before it reaches its maximum | |
| 159 | 147 | // size makes transitions to and from the maximum size smoother when resizing. | |
| 160 | 148 | func (x *ClampScrollable) SetTighteningThreshold(TighteningThresholdVar int) { | |
| 161 | - | core.LazyRegister(&xClampScrollableSetTighteningThreshold, "ADW", "adw_clamp_scrollable_set_tightening_threshold", false) | |
| 162 | - | ||
| 163 | 149 | xClampScrollableSetTighteningThreshold(x.GoPointer(), TighteningThresholdVar) | |
| 164 | 150 | } | |
| 165 | 151 | ||
| @@ -169,8 +155,6 @@ var xClampScrollableSetUnit func(uintptr, LengthUnit) | |||
| 169 | 155 | // | |
| 170 | 156 | // Allows the sizes to vary depending on the text scale factor. | |
| 171 | 157 | func (x *ClampScrollable) SetUnit(UnitVar LengthUnit) { | |
| 172 | - | core.LazyRegister(&xClampScrollableSetUnit, "ADW", "adw_clamp_scrollable_set_unit", false) | |
| 173 | - | ||
| 174 | 158 | xClampScrollableSetUnit(x.GoPointer(), UnitVar) | |
| 175 | 159 | } | |
| 176 | 160 | ||
| @@ -602,4 +586,25 @@ func (x *ClampScrollable) SetVscrollPolicy(PolicyVar gtk.ScrollablePolicy) { | |||
| 602 | 586 | func init() { | |
| 603 | 587 | core.SetPackageName("ADW", "libadwaita-1") | |
| 604 | 588 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 589 | + | var libs []uintptr | |
| 590 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 591 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 592 | + | if err != nil { | |
| 593 | + | panic(err) | |
| 594 | + | } | |
| 595 | + | libs = append(libs, lib) | |
| 596 | + | } | |
| 597 | + | ||
| 598 | + | core.PuregoSafeRegister(&xClampScrollableGLibType, libs, "adw_clamp_scrollable_get_type") | |
| 599 | + | ||
| 600 | + | core.PuregoSafeRegister(&xNewClampScrollable, libs, "adw_clamp_scrollable_new") | |
| 601 | + | ||
| 602 | + | core.PuregoSafeRegister(&xClampScrollableGetChild, libs, "adw_clamp_scrollable_get_child") | |
| 603 | + | core.PuregoSafeRegister(&xClampScrollableGetMaximumSize, libs, "adw_clamp_scrollable_get_maximum_size") | |
| 604 | + | core.PuregoSafeRegister(&xClampScrollableGetTighteningThreshold, libs, "adw_clamp_scrollable_get_tightening_threshold") | |
| 605 | + | core.PuregoSafeRegister(&xClampScrollableGetUnit, libs, "adw_clamp_scrollable_get_unit") | |
| 606 | + | core.PuregoSafeRegister(&xClampScrollableSetChild, libs, "adw_clamp_scrollable_set_child") | |
| 607 | + | core.PuregoSafeRegister(&xClampScrollableSetMaximumSize, libs, "adw_clamp_scrollable_set_maximum_size") | |
| 608 | + | core.PuregoSafeRegister(&xClampScrollableSetTighteningThreshold, libs, "adw_clamp_scrollable_set_tightening_threshold") | |
| 609 | + | core.PuregoSafeRegister(&xClampScrollableSetUnit, libs, "adw_clamp_scrollable_set_unit") | |
| 605 | 610 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -45,7 +46,6 @@ type ClampScrollable struct { | |||||
| 45 | var xClampScrollableGLibType func() types.GType | 46 | var xClampScrollableGLibType func() types.GType | ||
| 46 | 47 | ||||
| 47 | func ClampScrollableGLibType() types.GType { | 48 | func ClampScrollableGLibType() types.GType { | ||
| 48 | - | core.LazyRegister(&xClampScrollableGLibType, "ADW", "adw_clamp_scrollable_get_type", false) | |||
| 49 | return xClampScrollableGLibType() | 49 | return xClampScrollableGLibType() | ||
| 50 | } | 50 | } | ||
| 51 | 51 | ||||
| @@ -59,7 +59,6 @@ var xNewClampScrollable func() uintptr | |||||
| 59 | 59 | ||||
| 60 | // Creates a new `AdwClampScrollable`. | 60 | // Creates a new `AdwClampScrollable`. | ||
| 61 | func NewClampScrollable() *ClampScrollable { | 61 | func NewClampScrollable() *ClampScrollable { | ||
| 62 | - | core.LazyRegister(&xNewClampScrollable, "ADW", "adw_clamp_scrollable_new", false) | |||
| 63 | var cls *ClampScrollable | 62 | var cls *ClampScrollable | ||
| 64 | 63 | ||||
| 65 | cret := xNewClampScrollable() | 64 | cret := xNewClampScrollable() | ||
| @@ -77,7 +76,6 @@ var xClampScrollableGetChild func(uintptr) uintptr | |||||
| 77 | 76 | ||||
| 78 | // Gets the child widget of @self. | 77 | // Gets the child widget of @self. | ||
| 79 | func (x *ClampScrollable) GetChild() *gtk.Widget { | 78 | func (x *ClampScrollable) GetChild() *gtk.Widget { | ||
| 80 | - | core.LazyRegister(&xClampScrollableGetChild, "ADW", "adw_clamp_scrollable_get_child", false) | |||
| 81 | var cls *gtk.Widget | 79 | var cls *gtk.Widget | ||
| 82 | 80 | ||||
| 83 | cret := xClampScrollableGetChild(x.GoPointer()) | 81 | cret := xClampScrollableGetChild(x.GoPointer()) | ||
| @@ -95,8 +93,6 @@ var xClampScrollableGetMaximumSize func(uintptr) int | |||||
| 95 | 93 | ||||
| 96 | // Gets the maximum size allocated to the child. | 94 | // Gets the maximum size allocated to the child. | ||
| 97 | func (x *ClampScrollable) GetMaximumSize() int { | 95 | func (x *ClampScrollable) GetMaximumSize() int { | ||
| 98 | - | core.LazyRegister(&xClampScrollableGetMaximumSize, "ADW", "adw_clamp_scrollable_get_maximum_size", false) | |||
| 99 | - | ||||
| 100 | cret := xClampScrollableGetMaximumSize(x.GoPointer()) | 96 | cret := xClampScrollableGetMaximumSize(x.GoPointer()) | ||
| 101 | return cret | 97 | return cret | ||
| 102 | } | 98 | } | ||
| @@ -105,8 +101,6 @@ var xClampScrollableGetTighteningThreshold func(uintptr) int | |||||
| 105 | 101 | ||||
| 106 | // Gets the size above which the child is clamped. | 102 | // Gets the size above which the child is clamped. | ||
| 107 | func (x *ClampScrollable) GetTighteningThreshold() int { | 103 | func (x *ClampScrollable) GetTighteningThreshold() int { | ||
| 108 | - | core.LazyRegister(&xClampScrollableGetTighteningThreshold, "ADW", "adw_clamp_scrollable_get_tightening_threshold", false) | |||
| 109 | - | ||||
| 110 | cret := xClampScrollableGetTighteningThreshold(x.GoPointer()) | 104 | cret := xClampScrollableGetTighteningThreshold(x.GoPointer()) | ||
| 111 | return cret | 105 | return cret | ||
| 112 | } | 106 | } | ||
| @@ -115,8 +109,6 @@ var xClampScrollableGetUnit func(uintptr) LengthUnit | |||||
| 115 | 109 | ||||
| 116 | // Gets the length unit for maximum size and tightening threshold. | 110 | // Gets the length unit for maximum size and tightening threshold. | ||
| 117 | func (x *ClampScrollable) GetUnit() LengthUnit { | 111 | func (x *ClampScrollable) GetUnit() LengthUnit { | ||
| 118 | - | core.LazyRegister(&xClampScrollableGetUnit, "ADW", "adw_clamp_scrollable_get_unit", false) | |||
| 119 | - | ||||
| 120 | cret := xClampScrollableGetUnit(x.GoPointer()) | 112 | cret := xClampScrollableGetUnit(x.GoPointer()) | ||
| 121 | return cret | 113 | return cret | ||
| 122 | } | 114 | } | ||
| @@ -125,8 +117,6 @@ var xClampScrollableSetChild func(uintptr, uintptr) | |||||
| 125 | 117 | ||||
| 126 | // Sets the child widget of @self. | 118 | // Sets the child widget of @self. | ||
| 127 | func (x *ClampScrollable) SetChild(ChildVar *gtk.Widget) { | 119 | func (x *ClampScrollable) SetChild(ChildVar *gtk.Widget) { | ||
| 128 | - | core.LazyRegister(&xClampScrollableSetChild, "ADW", "adw_clamp_scrollable_set_child", false) | |||
| 129 | - | ||||
| 130 | xClampScrollableSetChild(x.GoPointer(), ChildVar.GoPointer()) | 120 | xClampScrollableSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 131 | } | 121 | } | ||
| 132 | 122 | ||||
| @@ -136,8 +126,6 @@ var xClampScrollableSetMaximumSize func(uintptr, int) | |||||
| 136 | // | 126 | // | ||
| 137 | // It is the width if the clamp is horizontal, or the height if it is vertical. | 127 | // It is the width if the clamp is horizontal, or the height if it is vertical. | ||
| 138 | func (x *ClampScrollable) SetMaximumSize(MaximumSizeVar int) { | 128 | func (x *ClampScrollable) SetMaximumSize(MaximumSizeVar int) { | ||
| 139 | - | core.LazyRegister(&xClampScrollableSetMaximumSize, "ADW", "adw_clamp_scrollable_set_maximum_size", false) | |||
| 140 | - | ||||
| 141 | xClampScrollableSetMaximumSize(x.GoPointer(), MaximumSizeVar) | 129 | xClampScrollableSetMaximumSize(x.GoPointer(), MaximumSizeVar) | ||
| 142 | } | 130 | } | ||
| 143 | 131 | ||||
| @@ -158,8 +146,6 @@ var xClampScrollableSetTighteningThreshold func(uintptr, int) | |||||
| 158 | // Effectively, tightening the grip on the child before it reaches its maximum | 146 | // Effectively, tightening the grip on the child before it reaches its maximum | ||
| 159 | // size makes transitions to and from the maximum size smoother when resizing. | 147 | // size makes transitions to and from the maximum size smoother when resizing. | ||
| 160 | func (x *ClampScrollable) SetTighteningThreshold(TighteningThresholdVar int) { | 148 | func (x *ClampScrollable) SetTighteningThreshold(TighteningThresholdVar int) { | ||
| 161 | - | core.LazyRegister(&xClampScrollableSetTighteningThreshold, "ADW", "adw_clamp_scrollable_set_tightening_threshold", false) | |||
| 162 | - | ||||
| 163 | xClampScrollableSetTighteningThreshold(x.GoPointer(), TighteningThresholdVar) | 149 | xClampScrollableSetTighteningThreshold(x.GoPointer(), TighteningThresholdVar) | ||
| 164 | } | 150 | } | ||
| 165 | 151 | ||||
| @@ -169,8 +155,6 @@ var xClampScrollableSetUnit func(uintptr, LengthUnit) | |||||
| 169 | // | 155 | // | ||
| 170 | // Allows the sizes to vary depending on the text scale factor. | 156 | // Allows the sizes to vary depending on the text scale factor. | ||
| 171 | func (x *ClampScrollable) SetUnit(UnitVar LengthUnit) { | 157 | func (x *ClampScrollable) SetUnit(UnitVar LengthUnit) { | ||
| 172 | - | core.LazyRegister(&xClampScrollableSetUnit, "ADW", "adw_clamp_scrollable_set_unit", false) | |||
| 173 | - | ||||
| 174 | xClampScrollableSetUnit(x.GoPointer(), UnitVar) | 158 | xClampScrollableSetUnit(x.GoPointer(), UnitVar) | ||
| 175 | } | 159 | } | ||
| 176 | 160 | ||||
| @@ -602,4 +586,25 @@ func (x *ClampScrollable) SetVscrollPolicy(PolicyVar gtk.ScrollablePolicy) { | |||||
| 602 | func init() { | 586 | func init() { | ||
| 603 | core.SetPackageName("ADW", "libadwaita-1") | 587 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 604 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 588 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 589 | + | var libs []uintptr | |||
| 590 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 591 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 592 | + | if err != nil { | |||
| 593 | + | panic(err) | |||
| 594 | + | } | |||
| 595 | + | libs = append(libs, lib) | |||
| 596 | + | } | |||
| 597 | + | ||||
| 598 | + | core.PuregoSafeRegister(&xClampScrollableGLibType, libs, "adw_clamp_scrollable_get_type") | |||
| 599 | + | ||||
| 600 | + | core.PuregoSafeRegister(&xNewClampScrollable, libs, "adw_clamp_scrollable_new") | |||
| 601 | + | ||||
| 602 | + | core.PuregoSafeRegister(&xClampScrollableGetChild, libs, "adw_clamp_scrollable_get_child") | |||
| 603 | + | core.PuregoSafeRegister(&xClampScrollableGetMaximumSize, libs, "adw_clamp_scrollable_get_maximum_size") | |||
| 604 | + | core.PuregoSafeRegister(&xClampScrollableGetTighteningThreshold, libs, "adw_clamp_scrollable_get_tightening_threshold") | |||
| 605 | + | core.PuregoSafeRegister(&xClampScrollableGetUnit, libs, "adw_clamp_scrollable_get_unit") | |||
| 606 | + | core.PuregoSafeRegister(&xClampScrollableSetChild, libs, "adw_clamp_scrollable_set_child") | |||
| 607 | + | core.PuregoSafeRegister(&xClampScrollableSetMaximumSize, libs, "adw_clamp_scrollable_set_maximum_size") | |||
| 608 | + | core.PuregoSafeRegister(&xClampScrollableSetTighteningThreshold, libs, "adw_clamp_scrollable_set_tightening_threshold") | |||
| 609 | + | core.PuregoSafeRegister(&xClampScrollableSetUnit, libs, "adw_clamp_scrollable_set_unit") | |||
| 605 | } | 610 | } | ||