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
| @@ -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/gdk" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -56,7 +57,6 @@ type Carousel struct { | |||
| 56 | 57 | var xCarouselGLibType func() types.GType | |
| 57 | 58 | ||
| 58 | 59 | func CarouselGLibType() types.GType { | |
| 59 | - | core.LazyRegister(&xCarouselGLibType, "ADW", "adw_carousel_get_type", false) | |
| 60 | 60 | return xCarouselGLibType() | |
| 61 | 61 | } | |
| 62 | 62 | ||
| @@ -70,7 +70,6 @@ var xNewCarousel func() uintptr | |||
| 70 | 70 | ||
| 71 | 71 | // Creates a new `AdwCarousel`. | |
| 72 | 72 | func NewCarousel() *Carousel { | |
| 73 | - | core.LazyRegister(&xNewCarousel, "ADW", "adw_carousel_new", false) | |
| 74 | 73 | var cls *Carousel | |
| 75 | 74 | ||
| 76 | 75 | cret := xNewCarousel() | |
| @@ -88,8 +87,6 @@ var xCarouselAppend func(uintptr, uintptr) | |||
| 88 | 87 | ||
| 89 | 88 | // Appends @child to @self. | |
| 90 | 89 | func (x *Carousel) Append(ChildVar *gtk.Widget) { | |
| 91 | - | core.LazyRegister(&xCarouselAppend, "ADW", "adw_carousel_append", false) | |
| 92 | - | ||
| 93 | 90 | xCarouselAppend(x.GoPointer(), ChildVar.GoPointer()) | |
| 94 | 91 | } | |
| 95 | 92 | ||
| @@ -97,8 +94,6 @@ var xCarouselGetAllowLongSwipes func(uintptr) bool | |||
| 97 | 94 | ||
| 98 | 95 | // Gets whether to allow swiping for more than one page at a time. | |
| 99 | 96 | func (x *Carousel) GetAllowLongSwipes() bool { | |
| 100 | - | core.LazyRegister(&xCarouselGetAllowLongSwipes, "ADW", "adw_carousel_get_allow_long_swipes", false) | |
| 101 | - | ||
| 102 | 97 | cret := xCarouselGetAllowLongSwipes(x.GoPointer()) | |
| 103 | 98 | return cret | |
| 104 | 99 | } | |
| @@ -107,8 +102,6 @@ var xCarouselGetAllowMouseDrag func(uintptr) bool | |||
| 107 | 102 | ||
| 108 | 103 | // Sets whether @self can be dragged with mouse pointer. | |
| 109 | 104 | func (x *Carousel) GetAllowMouseDrag() bool { | |
| 110 | - | core.LazyRegister(&xCarouselGetAllowMouseDrag, "ADW", "adw_carousel_get_allow_mouse_drag", false) | |
| 111 | - | ||
| 112 | 105 | cret := xCarouselGetAllowMouseDrag(x.GoPointer()) | |
| 113 | 106 | return cret | |
| 114 | 107 | } | |
| @@ -117,8 +110,6 @@ var xCarouselGetAllowScrollWheel func(uintptr) bool | |||
| 117 | 110 | ||
| 118 | 111 | // Gets whether @self will respond to scroll wheel events. | |
| 119 | 112 | func (x *Carousel) GetAllowScrollWheel() bool { | |
| 120 | - | core.LazyRegister(&xCarouselGetAllowScrollWheel, "ADW", "adw_carousel_get_allow_scroll_wheel", false) | |
| 121 | - | ||
| 122 | 113 | cret := xCarouselGetAllowScrollWheel(x.GoPointer()) | |
| 123 | 114 | return cret | |
| 124 | 115 | } | |
| @@ -127,8 +118,6 @@ var xCarouselGetInteractive func(uintptr) bool | |||
| 127 | 118 | ||
| 128 | 119 | // Gets whether @self can be navigated. | |
| 129 | 120 | func (x *Carousel) GetInteractive() bool { | |
| 130 | - | core.LazyRegister(&xCarouselGetInteractive, "ADW", "adw_carousel_get_interactive", false) | |
| 131 | - | ||
| 132 | 121 | cret := xCarouselGetInteractive(x.GoPointer()) | |
| 133 | 122 | return cret | |
| 134 | 123 | } | |
| @@ -137,8 +126,6 @@ var xCarouselGetNPages func(uintptr) uint | |||
| 137 | 126 | ||
| 138 | 127 | // Gets the number of pages in @self. | |
| 139 | 128 | func (x *Carousel) GetNPages() uint { | |
| 140 | - | core.LazyRegister(&xCarouselGetNPages, "ADW", "adw_carousel_get_n_pages", false) | |
| 141 | - | ||
| 142 | 129 | cret := xCarouselGetNPages(x.GoPointer()) | |
| 143 | 130 | return cret | |
| 144 | 131 | } | |
| @@ -147,7 +134,6 @@ var xCarouselGetNthPage func(uintptr, uint) uintptr | |||
| 147 | 134 | ||
| 148 | 135 | // Gets the page at position @n. | |
| 149 | 136 | func (x *Carousel) GetNthPage(NVar uint) *gtk.Widget { | |
| 150 | - | core.LazyRegister(&xCarouselGetNthPage, "ADW", "adw_carousel_get_nth_page", false) | |
| 151 | 137 | var cls *gtk.Widget | |
| 152 | 138 | ||
| 153 | 139 | cret := xCarouselGetNthPage(x.GoPointer(), NVar) | |
| @@ -167,8 +153,6 @@ var xCarouselGetPosition func(uintptr) float64 | |||
| 167 | 153 | // | |
| 168 | 154 | // 1 matches 1 page. Use [method@Carousel.scroll_to] for changing it. | |
| 169 | 155 | func (x *Carousel) GetPosition() float64 { | |
| 170 | - | core.LazyRegister(&xCarouselGetPosition, "ADW", "adw_carousel_get_position", false) | |
| 171 | - | ||
| 172 | 156 | cret := xCarouselGetPosition(x.GoPointer()) | |
| 173 | 157 | return cret | |
| 174 | 158 | } | |
| @@ -177,8 +161,6 @@ var xCarouselGetRevealDuration func(uintptr) uint | |||
| 177 | 161 | ||
| 178 | 162 | // Gets the page reveal duration, in milliseconds. | |
| 179 | 163 | func (x *Carousel) GetRevealDuration() uint { | |
| 180 | - | core.LazyRegister(&xCarouselGetRevealDuration, "ADW", "adw_carousel_get_reveal_duration", false) | |
| 181 | - | ||
| 182 | 164 | cret := xCarouselGetRevealDuration(x.GoPointer()) | |
| 183 | 165 | return cret | |
| 184 | 166 | } | |
| @@ -187,8 +169,6 @@ var xCarouselGetScrollParams func(uintptr) uintptr | |||
| 187 | 169 | ||
| 188 | 170 | // Gets the scroll animation spring parameters for @self. | |
| 189 | 171 | func (x *Carousel) GetScrollParams() *SpringParams { | |
| 190 | - | core.LazyRegister(&xCarouselGetScrollParams, "ADW", "adw_carousel_get_scroll_params", false) | |
| 191 | - | ||
| 192 | 172 | cret := xCarouselGetScrollParams(x.GoPointer()) | |
| 193 | 173 | if cret == 0 { | |
| 194 | 174 | return nil | |
| @@ -200,8 +180,6 @@ var xCarouselGetSpacing func(uintptr) uint | |||
| 200 | 180 | ||
| 201 | 181 | // Gets spacing between pages in pixels. | |
| 202 | 182 | func (x *Carousel) GetSpacing() uint { | |
| 203 | - | core.LazyRegister(&xCarouselGetSpacing, "ADW", "adw_carousel_get_spacing", false) | |
| 204 | - | ||
| 205 | 183 | cret := xCarouselGetSpacing(x.GoPointer()) | |
| 206 | 184 | return cret | |
| 207 | 185 | } | |
| @@ -213,8 +191,6 @@ var xCarouselInsert func(uintptr, uintptr, int) | |||
| 213 | 191 | // If position is -1, or larger than the number of pages, | |
| 214 | 192 | // @child will be appended to the end. | |
| 215 | 193 | func (x *Carousel) Insert(ChildVar *gtk.Widget, PositionVar int) { | |
| 216 | - | core.LazyRegister(&xCarouselInsert, "ADW", "adw_carousel_insert", false) | |
| 217 | - | ||
| 218 | 194 | xCarouselInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| 219 | 195 | } | |
| 220 | 196 | ||
| @@ -222,8 +198,6 @@ var xCarouselPrepend func(uintptr, uintptr) | |||
| 222 | 198 | ||
| 223 | 199 | // Prepends @child to @self. | |
| 224 | 200 | func (x *Carousel) Prepend(ChildVar *gtk.Widget) { | |
| 225 | - | core.LazyRegister(&xCarouselPrepend, "ADW", "adw_carousel_prepend", false) | |
| 226 | - | ||
| 227 | 201 | xCarouselPrepend(x.GoPointer(), ChildVar.GoPointer()) | |
| 228 | 202 | } | |
| 229 | 203 | ||
| @@ -231,8 +205,6 @@ var xCarouselRemove func(uintptr, uintptr) | |||
| 231 | 205 | ||
| 232 | 206 | // Removes @child from @self. | |
| 233 | 207 | func (x *Carousel) Remove(ChildVar *gtk.Widget) { | |
| 234 | - | core.LazyRegister(&xCarouselRemove, "ADW", "adw_carousel_remove", false) | |
| 235 | - | ||
| 236 | 208 | xCarouselRemove(x.GoPointer(), ChildVar.GoPointer()) | |
| 237 | 209 | } | |
| 238 | 210 | ||
| @@ -243,8 +215,6 @@ var xCarouselReorder func(uintptr, uintptr, int) | |||
| 243 | 215 | // If position is -1, or larger than the number of pages, @child will be moved | |
| 244 | 216 | // at the end. | |
| 245 | 217 | func (x *Carousel) Reorder(ChildVar *gtk.Widget, PositionVar int) { | |
| 246 | - | core.LazyRegister(&xCarouselReorder, "ADW", "adw_carousel_reorder", false) | |
| 247 | - | ||
| 248 | 218 | xCarouselReorder(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| 249 | 219 | } | |
| 250 | 220 | ||
| @@ -254,8 +224,6 @@ var xCarouselScrollTo func(uintptr, uintptr, bool) | |||
| 254 | 224 | // | |
| 255 | 225 | // If @animate is `TRUE`, the transition will be animated. | |
| 256 | 226 | func (x *Carousel) ScrollTo(WidgetVar *gtk.Widget, AnimateVar bool) { | |
| 257 | - | core.LazyRegister(&xCarouselScrollTo, "ADW", "adw_carousel_scroll_to", false) | |
| 258 | - | ||
| 259 | 227 | xCarouselScrollTo(x.GoPointer(), WidgetVar.GoPointer(), AnimateVar) | |
| 260 | 228 | } | |
| 261 | 229 | ||
| @@ -266,8 +234,6 @@ var xCarouselSetAllowLongSwipes func(uintptr, bool) | |||
| 266 | 234 | // If @allow_long_swipes is `FALSE`, each swipe can only move to the adjacent | |
| 267 | 235 | // pages. | |
| 268 | 236 | func (x *Carousel) SetAllowLongSwipes(AllowLongSwipesVar bool) { | |
| 269 | - | core.LazyRegister(&xCarouselSetAllowLongSwipes, "ADW", "adw_carousel_set_allow_long_swipes", false) | |
| 270 | - | ||
| 271 | 237 | xCarouselSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | |
| 272 | 238 | } | |
| 273 | 239 | ||
| @@ -277,8 +243,6 @@ var xCarouselSetAllowMouseDrag func(uintptr, bool) | |||
| 277 | 243 | // | |
| 278 | 244 | // If @allow_mouse_drag is `FALSE`, dragging is only available on touch. | |
| 279 | 245 | func (x *Carousel) SetAllowMouseDrag(AllowMouseDragVar bool) { | |
| 280 | - | core.LazyRegister(&xCarouselSetAllowMouseDrag, "ADW", "adw_carousel_set_allow_mouse_drag", false) | |
| 281 | - | ||
| 282 | 246 | xCarouselSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | |
| 283 | 247 | } | |
| 284 | 248 | ||
| @@ -288,8 +252,6 @@ var xCarouselSetAllowScrollWheel func(uintptr, bool) | |||
| 288 | 252 | // | |
| 289 | 253 | // If @allow_scroll_wheel is `FALSE`, wheel events will be ignored. | |
| 290 | 254 | func (x *Carousel) SetAllowScrollWheel(AllowScrollWheelVar bool) { | |
| 291 | - | core.LazyRegister(&xCarouselSetAllowScrollWheel, "ADW", "adw_carousel_set_allow_scroll_wheel", false) | |
| 292 | - | ||
| 293 | 255 | xCarouselSetAllowScrollWheel(x.GoPointer(), AllowScrollWheelVar) | |
| 294 | 256 | } | |
| 295 | 257 | ||
| @@ -300,8 +262,6 @@ var xCarouselSetInteractive func(uintptr, bool) | |||
| 300 | 262 | // This can be used to temporarily disable the carousel to only allow navigating | |
| 301 | 263 | // it in a certain state. | |
| 302 | 264 | func (x *Carousel) SetInteractive(InteractiveVar bool) { | |
| 303 | - | core.LazyRegister(&xCarouselSetInteractive, "ADW", "adw_carousel_set_interactive", false) | |
| 304 | - | ||
| 305 | 265 | xCarouselSetInteractive(x.GoPointer(), InteractiveVar) | |
| 306 | 266 | } | |
| 307 | 267 | ||
| @@ -311,8 +271,6 @@ var xCarouselSetRevealDuration func(uintptr, uint) | |||
| 311 | 271 | // | |
| 312 | 272 | // Reveal duration is used when animating adding or removing pages. | |
| 313 | 273 | func (x *Carousel) SetRevealDuration(RevealDurationVar uint) { | |
| 314 | - | core.LazyRegister(&xCarouselSetRevealDuration, "ADW", "adw_carousel_set_reveal_duration", false) | |
| 315 | - | ||
| 316 | 274 | xCarouselSetRevealDuration(x.GoPointer(), RevealDurationVar) | |
| 317 | 275 | } | |
| 318 | 276 | ||
| @@ -326,8 +284,6 @@ var xCarouselSetScrollParams func(uintptr, *SpringParams) | |||
| 326 | 284 | // adw_spring_params_new (1, 0.5, 500) | |
| 327 | 285 | // ``` | |
| 328 | 286 | func (x *Carousel) SetScrollParams(ParamsVar *SpringParams) { | |
| 329 | - | core.LazyRegister(&xCarouselSetScrollParams, "ADW", "adw_carousel_set_scroll_params", false) | |
| 330 | - | ||
| 331 | 287 | xCarouselSetScrollParams(x.GoPointer(), ParamsVar) | |
| 332 | 288 | } | |
| 333 | 289 | ||
| @@ -335,8 +291,6 @@ var xCarouselSetSpacing func(uintptr, uint) | |||
| 335 | 291 | ||
| 336 | 292 | // Sets spacing between pages in pixels. | |
| 337 | 293 | func (x *Carousel) SetSpacing(SpacingVar uint) { | |
| 338 | - | core.LazyRegister(&xCarouselSetSpacing, "ADW", "adw_carousel_set_spacing", false) | |
| 339 | - | ||
| 340 | 294 | xCarouselSetSpacing(x.GoPointer(), SpacingVar) | |
| 341 | 295 | } | |
| 342 | 296 | ||
| @@ -868,4 +822,40 @@ func (x *Carousel) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 868 | 822 | func init() { | |
| 869 | 823 | core.SetPackageName("ADW", "libadwaita-1") | |
| 870 | 824 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 825 | + | var libs []uintptr | |
| 826 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 827 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 828 | + | if err != nil { | |
| 829 | + | panic(err) | |
| 830 | + | } | |
| 831 | + | libs = append(libs, lib) | |
| 832 | + | } | |
| 833 | + | ||
| 834 | + | core.PuregoSafeRegister(&xCarouselGLibType, libs, "adw_carousel_get_type") | |
| 835 | + | ||
| 836 | + | core.PuregoSafeRegister(&xNewCarousel, libs, "adw_carousel_new") | |
| 837 | + | ||
| 838 | + | core.PuregoSafeRegister(&xCarouselAppend, libs, "adw_carousel_append") | |
| 839 | + | core.PuregoSafeRegister(&xCarouselGetAllowLongSwipes, libs, "adw_carousel_get_allow_long_swipes") | |
| 840 | + | core.PuregoSafeRegister(&xCarouselGetAllowMouseDrag, libs, "adw_carousel_get_allow_mouse_drag") | |
| 841 | + | core.PuregoSafeRegister(&xCarouselGetAllowScrollWheel, libs, "adw_carousel_get_allow_scroll_wheel") | |
| 842 | + | core.PuregoSafeRegister(&xCarouselGetInteractive, libs, "adw_carousel_get_interactive") | |
| 843 | + | core.PuregoSafeRegister(&xCarouselGetNPages, libs, "adw_carousel_get_n_pages") | |
| 844 | + | core.PuregoSafeRegister(&xCarouselGetNthPage, libs, "adw_carousel_get_nth_page") | |
| 845 | + | core.PuregoSafeRegister(&xCarouselGetPosition, libs, "adw_carousel_get_position") | |
| 846 | + | core.PuregoSafeRegister(&xCarouselGetRevealDuration, libs, "adw_carousel_get_reveal_duration") | |
| 847 | + | core.PuregoSafeRegister(&xCarouselGetScrollParams, libs, "adw_carousel_get_scroll_params") | |
| 848 | + | core.PuregoSafeRegister(&xCarouselGetSpacing, libs, "adw_carousel_get_spacing") | |
| 849 | + | core.PuregoSafeRegister(&xCarouselInsert, libs, "adw_carousel_insert") | |
| 850 | + | core.PuregoSafeRegister(&xCarouselPrepend, libs, "adw_carousel_prepend") | |
| 851 | + | core.PuregoSafeRegister(&xCarouselRemove, libs, "adw_carousel_remove") | |
| 852 | + | core.PuregoSafeRegister(&xCarouselReorder, libs, "adw_carousel_reorder") | |
| 853 | + | core.PuregoSafeRegister(&xCarouselScrollTo, libs, "adw_carousel_scroll_to") | |
| 854 | + | core.PuregoSafeRegister(&xCarouselSetAllowLongSwipes, libs, "adw_carousel_set_allow_long_swipes") | |
| 855 | + | core.PuregoSafeRegister(&xCarouselSetAllowMouseDrag, libs, "adw_carousel_set_allow_mouse_drag") | |
| 856 | + | core.PuregoSafeRegister(&xCarouselSetAllowScrollWheel, libs, "adw_carousel_set_allow_scroll_wheel") | |
| 857 | + | core.PuregoSafeRegister(&xCarouselSetInteractive, libs, "adw_carousel_set_interactive") | |
| 858 | + | core.PuregoSafeRegister(&xCarouselSetRevealDuration, libs, "adw_carousel_set_reveal_duration") | |
| 859 | + | core.PuregoSafeRegister(&xCarouselSetScrollParams, libs, "adw_carousel_set_scroll_params") | |
| 860 | + | core.PuregoSafeRegister(&xCarouselSetSpacing, libs, "adw_carousel_set_spacing") | |
| 871 | 861 | } | |
| @@ -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/gdk" | 10 | "github.com/bnema/puregotk/v4/gdk" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 11 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -56,7 +57,6 @@ type Carousel struct { | |||||
| 56 | var xCarouselGLibType func() types.GType | 57 | var xCarouselGLibType func() types.GType | ||
| 57 | 58 | ||||
| 58 | func CarouselGLibType() types.GType { | 59 | func CarouselGLibType() types.GType { | ||
| 59 | - | core.LazyRegister(&xCarouselGLibType, "ADW", "adw_carousel_get_type", false) | |||
| 60 | return xCarouselGLibType() | 60 | return xCarouselGLibType() | ||
| 61 | } | 61 | } | ||
| 62 | 62 | ||||
| @@ -70,7 +70,6 @@ var xNewCarousel func() uintptr | |||||
| 70 | 70 | ||||
| 71 | // Creates a new `AdwCarousel`. | 71 | // Creates a new `AdwCarousel`. | ||
| 72 | func NewCarousel() *Carousel { | 72 | func NewCarousel() *Carousel { | ||
| 73 | - | core.LazyRegister(&xNewCarousel, "ADW", "adw_carousel_new", false) | |||
| 74 | var cls *Carousel | 73 | var cls *Carousel | ||
| 75 | 74 | ||||
| 76 | cret := xNewCarousel() | 75 | cret := xNewCarousel() | ||
| @@ -88,8 +87,6 @@ var xCarouselAppend func(uintptr, uintptr) | |||||
| 88 | 87 | ||||
| 89 | // Appends @child to @self. | 88 | // Appends @child to @self. | ||
| 90 | func (x *Carousel) Append(ChildVar *gtk.Widget) { | 89 | func (x *Carousel) Append(ChildVar *gtk.Widget) { | ||
| 91 | - | core.LazyRegister(&xCarouselAppend, "ADW", "adw_carousel_append", false) | |||
| 92 | - | ||||
| 93 | xCarouselAppend(x.GoPointer(), ChildVar.GoPointer()) | 90 | xCarouselAppend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 94 | } | 91 | } | ||
| 95 | 92 | ||||
| @@ -97,8 +94,6 @@ var xCarouselGetAllowLongSwipes func(uintptr) bool | |||||
| 97 | 94 | ||||
| 98 | // Gets whether to allow swiping for more than one page at a time. | 95 | // Gets whether to allow swiping for more than one page at a time. | ||
| 99 | func (x *Carousel) GetAllowLongSwipes() bool { | 96 | func (x *Carousel) GetAllowLongSwipes() bool { | ||
| 100 | - | core.LazyRegister(&xCarouselGetAllowLongSwipes, "ADW", "adw_carousel_get_allow_long_swipes", false) | |||
| 101 | - | ||||
| 102 | cret := xCarouselGetAllowLongSwipes(x.GoPointer()) | 97 | cret := xCarouselGetAllowLongSwipes(x.GoPointer()) | ||
| 103 | return cret | 98 | return cret | ||
| 104 | } | 99 | } | ||
| @@ -107,8 +102,6 @@ var xCarouselGetAllowMouseDrag func(uintptr) bool | |||||
| 107 | 102 | ||||
| 108 | // Sets whether @self can be dragged with mouse pointer. | 103 | // Sets whether @self can be dragged with mouse pointer. | ||
| 109 | func (x *Carousel) GetAllowMouseDrag() bool { | 104 | func (x *Carousel) GetAllowMouseDrag() bool { | ||
| 110 | - | core.LazyRegister(&xCarouselGetAllowMouseDrag, "ADW", "adw_carousel_get_allow_mouse_drag", false) | |||
| 111 | - | ||||
| 112 | cret := xCarouselGetAllowMouseDrag(x.GoPointer()) | 105 | cret := xCarouselGetAllowMouseDrag(x.GoPointer()) | ||
| 113 | return cret | 106 | return cret | ||
| 114 | } | 107 | } | ||
| @@ -117,8 +110,6 @@ var xCarouselGetAllowScrollWheel func(uintptr) bool | |||||
| 117 | 110 | ||||
| 118 | // Gets whether @self will respond to scroll wheel events. | 111 | // Gets whether @self will respond to scroll wheel events. | ||
| 119 | func (x *Carousel) GetAllowScrollWheel() bool { | 112 | func (x *Carousel) GetAllowScrollWheel() bool { | ||
| 120 | - | core.LazyRegister(&xCarouselGetAllowScrollWheel, "ADW", "adw_carousel_get_allow_scroll_wheel", false) | |||
| 121 | - | ||||
| 122 | cret := xCarouselGetAllowScrollWheel(x.GoPointer()) | 113 | cret := xCarouselGetAllowScrollWheel(x.GoPointer()) | ||
| 123 | return cret | 114 | return cret | ||
| 124 | } | 115 | } | ||
| @@ -127,8 +118,6 @@ var xCarouselGetInteractive func(uintptr) bool | |||||
| 127 | 118 | ||||
| 128 | // Gets whether @self can be navigated. | 119 | // Gets whether @self can be navigated. | ||
| 129 | func (x *Carousel) GetInteractive() bool { | 120 | func (x *Carousel) GetInteractive() bool { | ||
| 130 | - | core.LazyRegister(&xCarouselGetInteractive, "ADW", "adw_carousel_get_interactive", false) | |||
| 131 | - | ||||
| 132 | cret := xCarouselGetInteractive(x.GoPointer()) | 121 | cret := xCarouselGetInteractive(x.GoPointer()) | ||
| 133 | return cret | 122 | return cret | ||
| 134 | } | 123 | } | ||
| @@ -137,8 +126,6 @@ var xCarouselGetNPages func(uintptr) uint | |||||
| 137 | 126 | ||||
| 138 | // Gets the number of pages in @self. | 127 | // Gets the number of pages in @self. | ||
| 139 | func (x *Carousel) GetNPages() uint { | 128 | func (x *Carousel) GetNPages() uint { | ||
| 140 | - | core.LazyRegister(&xCarouselGetNPages, "ADW", "adw_carousel_get_n_pages", false) | |||
| 141 | - | ||||
| 142 | cret := xCarouselGetNPages(x.GoPointer()) | 129 | cret := xCarouselGetNPages(x.GoPointer()) | ||
| 143 | return cret | 130 | return cret | ||
| 144 | } | 131 | } | ||
| @@ -147,7 +134,6 @@ var xCarouselGetNthPage func(uintptr, uint) uintptr | |||||
| 147 | 134 | ||||
| 148 | // Gets the page at position @n. | 135 | // Gets the page at position @n. | ||
| 149 | func (x *Carousel) GetNthPage(NVar uint) *gtk.Widget { | 136 | func (x *Carousel) GetNthPage(NVar uint) *gtk.Widget { | ||
| 150 | - | core.LazyRegister(&xCarouselGetNthPage, "ADW", "adw_carousel_get_nth_page", false) | |||
| 151 | var cls *gtk.Widget | 137 | var cls *gtk.Widget | ||
| 152 | 138 | ||||
| 153 | cret := xCarouselGetNthPage(x.GoPointer(), NVar) | 139 | cret := xCarouselGetNthPage(x.GoPointer(), NVar) | ||
| @@ -167,8 +153,6 @@ var xCarouselGetPosition func(uintptr) float64 | |||||
| 167 | // | 153 | // | ||
| 168 | // 1 matches 1 page. Use [method@Carousel.scroll_to] for changing it. | 154 | // 1 matches 1 page. Use [method@Carousel.scroll_to] for changing it. | ||
| 169 | func (x *Carousel) GetPosition() float64 { | 155 | func (x *Carousel) GetPosition() float64 { | ||
| 170 | - | core.LazyRegister(&xCarouselGetPosition, "ADW", "adw_carousel_get_position", false) | |||
| 171 | - | ||||
| 172 | cret := xCarouselGetPosition(x.GoPointer()) | 156 | cret := xCarouselGetPosition(x.GoPointer()) | ||
| 173 | return cret | 157 | return cret | ||
| 174 | } | 158 | } | ||
| @@ -177,8 +161,6 @@ var xCarouselGetRevealDuration func(uintptr) uint | |||||
| 177 | 161 | ||||
| 178 | // Gets the page reveal duration, in milliseconds. | 162 | // Gets the page reveal duration, in milliseconds. | ||
| 179 | func (x *Carousel) GetRevealDuration() uint { | 163 | func (x *Carousel) GetRevealDuration() uint { | ||
| 180 | - | core.LazyRegister(&xCarouselGetRevealDuration, "ADW", "adw_carousel_get_reveal_duration", false) | |||
| 181 | - | ||||
| 182 | cret := xCarouselGetRevealDuration(x.GoPointer()) | 164 | cret := xCarouselGetRevealDuration(x.GoPointer()) | ||
| 183 | return cret | 165 | return cret | ||
| 184 | } | 166 | } | ||
| @@ -187,8 +169,6 @@ var xCarouselGetScrollParams func(uintptr) uintptr | |||||
| 187 | 169 | ||||
| 188 | // Gets the scroll animation spring parameters for @self. | 170 | // Gets the scroll animation spring parameters for @self. | ||
| 189 | func (x *Carousel) GetScrollParams() *SpringParams { | 171 | func (x *Carousel) GetScrollParams() *SpringParams { | ||
| 190 | - | core.LazyRegister(&xCarouselGetScrollParams, "ADW", "adw_carousel_get_scroll_params", false) | |||
| 191 | - | ||||
| 192 | cret := xCarouselGetScrollParams(x.GoPointer()) | 172 | cret := xCarouselGetScrollParams(x.GoPointer()) | ||
| 193 | if cret == 0 { | 173 | if cret == 0 { | ||
| 194 | return nil | 174 | return nil | ||
| @@ -200,8 +180,6 @@ var xCarouselGetSpacing func(uintptr) uint | |||||
| 200 | 180 | ||||
| 201 | // Gets spacing between pages in pixels. | 181 | // Gets spacing between pages in pixels. | ||
| 202 | func (x *Carousel) GetSpacing() uint { | 182 | func (x *Carousel) GetSpacing() uint { | ||
| 203 | - | core.LazyRegister(&xCarouselGetSpacing, "ADW", "adw_carousel_get_spacing", false) | |||
| 204 | - | ||||
| 205 | cret := xCarouselGetSpacing(x.GoPointer()) | 183 | cret := xCarouselGetSpacing(x.GoPointer()) | ||
| 206 | return cret | 184 | return cret | ||
| 207 | } | 185 | } | ||
| @@ -213,8 +191,6 @@ var xCarouselInsert func(uintptr, uintptr, int) | |||||
| 213 | // If position is -1, or larger than the number of pages, | 191 | // If position is -1, or larger than the number of pages, | ||
| 214 | // @child will be appended to the end. | 192 | // @child will be appended to the end. | ||
| 215 | func (x *Carousel) Insert(ChildVar *gtk.Widget, PositionVar int) { | 193 | func (x *Carousel) Insert(ChildVar *gtk.Widget, PositionVar int) { | ||
| 216 | - | core.LazyRegister(&xCarouselInsert, "ADW", "adw_carousel_insert", false) | |||
| 217 | - | ||||
| 218 | xCarouselInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 194 | xCarouselInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| 219 | } | 195 | } | ||
| 220 | 196 | ||||
| @@ -222,8 +198,6 @@ var xCarouselPrepend func(uintptr, uintptr) | |||||
| 222 | 198 | ||||
| 223 | // Prepends @child to @self. | 199 | // Prepends @child to @self. | ||
| 224 | func (x *Carousel) Prepend(ChildVar *gtk.Widget) { | 200 | func (x *Carousel) Prepend(ChildVar *gtk.Widget) { | ||
| 225 | - | core.LazyRegister(&xCarouselPrepend, "ADW", "adw_carousel_prepend", false) | |||
| 226 | - | ||||
| 227 | xCarouselPrepend(x.GoPointer(), ChildVar.GoPointer()) | 201 | xCarouselPrepend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 228 | } | 202 | } | ||
| 229 | 203 | ||||
| @@ -231,8 +205,6 @@ var xCarouselRemove func(uintptr, uintptr) | |||||
| 231 | 205 | ||||
| 232 | // Removes @child from @self. | 206 | // Removes @child from @self. | ||
| 233 | func (x *Carousel) Remove(ChildVar *gtk.Widget) { | 207 | func (x *Carousel) Remove(ChildVar *gtk.Widget) { | ||
| 234 | - | core.LazyRegister(&xCarouselRemove, "ADW", "adw_carousel_remove", false) | |||
| 235 | - | ||||
| 236 | xCarouselRemove(x.GoPointer(), ChildVar.GoPointer()) | 208 | xCarouselRemove(x.GoPointer(), ChildVar.GoPointer()) | ||
| 237 | } | 209 | } | ||
| 238 | 210 | ||||
| @@ -243,8 +215,6 @@ var xCarouselReorder func(uintptr, uintptr, int) | |||||
| 243 | // If position is -1, or larger than the number of pages, @child will be moved | 215 | // If position is -1, or larger than the number of pages, @child will be moved | ||
| 244 | // at the end. | 216 | // at the end. | ||
| 245 | func (x *Carousel) Reorder(ChildVar *gtk.Widget, PositionVar int) { | 217 | func (x *Carousel) Reorder(ChildVar *gtk.Widget, PositionVar int) { | ||
| 246 | - | core.LazyRegister(&xCarouselReorder, "ADW", "adw_carousel_reorder", false) | |||
| 247 | - | ||||
| 248 | xCarouselReorder(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 218 | xCarouselReorder(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| 249 | } | 219 | } | ||
| 250 | 220 | ||||
| @@ -254,8 +224,6 @@ var xCarouselScrollTo func(uintptr, uintptr, bool) | |||||
| 254 | // | 224 | // | ||
| 255 | // If @animate is `TRUE`, the transition will be animated. | 225 | // If @animate is `TRUE`, the transition will be animated. | ||
| 256 | func (x *Carousel) ScrollTo(WidgetVar *gtk.Widget, AnimateVar bool) { | 226 | func (x *Carousel) ScrollTo(WidgetVar *gtk.Widget, AnimateVar bool) { | ||
| 257 | - | core.LazyRegister(&xCarouselScrollTo, "ADW", "adw_carousel_scroll_to", false) | |||
| 258 | - | ||||
| 259 | xCarouselScrollTo(x.GoPointer(), WidgetVar.GoPointer(), AnimateVar) | 227 | xCarouselScrollTo(x.GoPointer(), WidgetVar.GoPointer(), AnimateVar) | ||
| 260 | } | 228 | } | ||
| 261 | 229 | ||||
| @@ -266,8 +234,6 @@ var xCarouselSetAllowLongSwipes func(uintptr, bool) | |||||
| 266 | // If @allow_long_swipes is `FALSE`, each swipe can only move to the adjacent | 234 | // If @allow_long_swipes is `FALSE`, each swipe can only move to the adjacent | ||
| 267 | // pages. | 235 | // pages. | ||
| 268 | func (x *Carousel) SetAllowLongSwipes(AllowLongSwipesVar bool) { | 236 | func (x *Carousel) SetAllowLongSwipes(AllowLongSwipesVar bool) { | ||
| 269 | - | core.LazyRegister(&xCarouselSetAllowLongSwipes, "ADW", "adw_carousel_set_allow_long_swipes", false) | |||
| 270 | - | ||||
| 271 | xCarouselSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | 237 | xCarouselSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | ||
| 272 | } | 238 | } | ||
| 273 | 239 | ||||
| @@ -277,8 +243,6 @@ var xCarouselSetAllowMouseDrag func(uintptr, bool) | |||||
| 277 | // | 243 | // | ||
| 278 | // If @allow_mouse_drag is `FALSE`, dragging is only available on touch. | 244 | // If @allow_mouse_drag is `FALSE`, dragging is only available on touch. | ||
| 279 | func (x *Carousel) SetAllowMouseDrag(AllowMouseDragVar bool) { | 245 | func (x *Carousel) SetAllowMouseDrag(AllowMouseDragVar bool) { | ||
| 280 | - | core.LazyRegister(&xCarouselSetAllowMouseDrag, "ADW", "adw_carousel_set_allow_mouse_drag", false) | |||
| 281 | - | ||||
| 282 | xCarouselSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | 246 | xCarouselSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | ||
| 283 | } | 247 | } | ||
| 284 | 248 | ||||
| @@ -288,8 +252,6 @@ var xCarouselSetAllowScrollWheel func(uintptr, bool) | |||||
| 288 | // | 252 | // | ||
| 289 | // If @allow_scroll_wheel is `FALSE`, wheel events will be ignored. | 253 | // If @allow_scroll_wheel is `FALSE`, wheel events will be ignored. | ||
| 290 | func (x *Carousel) SetAllowScrollWheel(AllowScrollWheelVar bool) { | 254 | func (x *Carousel) SetAllowScrollWheel(AllowScrollWheelVar bool) { | ||
| 291 | - | core.LazyRegister(&xCarouselSetAllowScrollWheel, "ADW", "adw_carousel_set_allow_scroll_wheel", false) | |||
| 292 | - | ||||
| 293 | xCarouselSetAllowScrollWheel(x.GoPointer(), AllowScrollWheelVar) | 255 | xCarouselSetAllowScrollWheel(x.GoPointer(), AllowScrollWheelVar) | ||
| 294 | } | 256 | } | ||
| 295 | 257 | ||||
| @@ -300,8 +262,6 @@ var xCarouselSetInteractive func(uintptr, bool) | |||||
| 300 | // This can be used to temporarily disable the carousel to only allow navigating | 262 | // This can be used to temporarily disable the carousel to only allow navigating | ||
| 301 | // it in a certain state. | 263 | // it in a certain state. | ||
| 302 | func (x *Carousel) SetInteractive(InteractiveVar bool) { | 264 | func (x *Carousel) SetInteractive(InteractiveVar bool) { | ||
| 303 | - | core.LazyRegister(&xCarouselSetInteractive, "ADW", "adw_carousel_set_interactive", false) | |||
| 304 | - | ||||
| 305 | xCarouselSetInteractive(x.GoPointer(), InteractiveVar) | 265 | xCarouselSetInteractive(x.GoPointer(), InteractiveVar) | ||
| 306 | } | 266 | } | ||
| 307 | 267 | ||||
| @@ -311,8 +271,6 @@ var xCarouselSetRevealDuration func(uintptr, uint) | |||||
| 311 | // | 271 | // | ||
| 312 | // Reveal duration is used when animating adding or removing pages. | 272 | // Reveal duration is used when animating adding or removing pages. | ||
| 313 | func (x *Carousel) SetRevealDuration(RevealDurationVar uint) { | 273 | func (x *Carousel) SetRevealDuration(RevealDurationVar uint) { | ||
| 314 | - | core.LazyRegister(&xCarouselSetRevealDuration, "ADW", "adw_carousel_set_reveal_duration", false) | |||
| 315 | - | ||||
| 316 | xCarouselSetRevealDuration(x.GoPointer(), RevealDurationVar) | 274 | xCarouselSetRevealDuration(x.GoPointer(), RevealDurationVar) | ||
| 317 | } | 275 | } | ||
| 318 | 276 | ||||
| @@ -326,8 +284,6 @@ var xCarouselSetScrollParams func(uintptr, *SpringParams) | |||||
| 326 | // adw_spring_params_new (1, 0.5, 500) | 284 | // adw_spring_params_new (1, 0.5, 500) | ||
| 327 | // ``` | 285 | // ``` | ||
| 328 | func (x *Carousel) SetScrollParams(ParamsVar *SpringParams) { | 286 | func (x *Carousel) SetScrollParams(ParamsVar *SpringParams) { | ||
| 329 | - | core.LazyRegister(&xCarouselSetScrollParams, "ADW", "adw_carousel_set_scroll_params", false) | |||
| 330 | - | ||||
| 331 | xCarouselSetScrollParams(x.GoPointer(), ParamsVar) | 287 | xCarouselSetScrollParams(x.GoPointer(), ParamsVar) | ||
| 332 | } | 288 | } | ||
| 333 | 289 | ||||
| @@ -335,8 +291,6 @@ var xCarouselSetSpacing func(uintptr, uint) | |||||
| 335 | 291 | ||||
| 336 | // Sets spacing between pages in pixels. | 292 | // Sets spacing between pages in pixels. | ||
| 337 | func (x *Carousel) SetSpacing(SpacingVar uint) { | 293 | func (x *Carousel) SetSpacing(SpacingVar uint) { | ||
| 338 | - | core.LazyRegister(&xCarouselSetSpacing, "ADW", "adw_carousel_set_spacing", false) | |||
| 339 | - | ||||
| 340 | xCarouselSetSpacing(x.GoPointer(), SpacingVar) | 294 | xCarouselSetSpacing(x.GoPointer(), SpacingVar) | ||
| 341 | } | 295 | } | ||
| 342 | 296 | ||||
| @@ -868,4 +822,40 @@ func (x *Carousel) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 868 | func init() { | 822 | func init() { | ||
| 869 | core.SetPackageName("ADW", "libadwaita-1") | 823 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 870 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 824 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 825 | + | var libs []uintptr | |||
| 826 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 827 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 828 | + | if err != nil { | |||
| 829 | + | panic(err) | |||
| 830 | + | } | |||
| 831 | + | libs = append(libs, lib) | |||
| 832 | + | } | |||
| 833 | + | ||||
| 834 | + | core.PuregoSafeRegister(&xCarouselGLibType, libs, "adw_carousel_get_type") | |||
| 835 | + | ||||
| 836 | + | core.PuregoSafeRegister(&xNewCarousel, libs, "adw_carousel_new") | |||
| 837 | + | ||||
| 838 | + | core.PuregoSafeRegister(&xCarouselAppend, libs, "adw_carousel_append") | |||
| 839 | + | core.PuregoSafeRegister(&xCarouselGetAllowLongSwipes, libs, "adw_carousel_get_allow_long_swipes") | |||
| 840 | + | core.PuregoSafeRegister(&xCarouselGetAllowMouseDrag, libs, "adw_carousel_get_allow_mouse_drag") | |||
| 841 | + | core.PuregoSafeRegister(&xCarouselGetAllowScrollWheel, libs, "adw_carousel_get_allow_scroll_wheel") | |||
| 842 | + | core.PuregoSafeRegister(&xCarouselGetInteractive, libs, "adw_carousel_get_interactive") | |||
| 843 | + | core.PuregoSafeRegister(&xCarouselGetNPages, libs, "adw_carousel_get_n_pages") | |||
| 844 | + | core.PuregoSafeRegister(&xCarouselGetNthPage, libs, "adw_carousel_get_nth_page") | |||
| 845 | + | core.PuregoSafeRegister(&xCarouselGetPosition, libs, "adw_carousel_get_position") | |||
| 846 | + | core.PuregoSafeRegister(&xCarouselGetRevealDuration, libs, "adw_carousel_get_reveal_duration") | |||
| 847 | + | core.PuregoSafeRegister(&xCarouselGetScrollParams, libs, "adw_carousel_get_scroll_params") | |||
| 848 | + | core.PuregoSafeRegister(&xCarouselGetSpacing, libs, "adw_carousel_get_spacing") | |||
| 849 | + | core.PuregoSafeRegister(&xCarouselInsert, libs, "adw_carousel_insert") | |||
| 850 | + | core.PuregoSafeRegister(&xCarouselPrepend, libs, "adw_carousel_prepend") | |||
| 851 | + | core.PuregoSafeRegister(&xCarouselRemove, libs, "adw_carousel_remove") | |||
| 852 | + | core.PuregoSafeRegister(&xCarouselReorder, libs, "adw_carousel_reorder") | |||
| 853 | + | core.PuregoSafeRegister(&xCarouselScrollTo, libs, "adw_carousel_scroll_to") | |||
| 854 | + | core.PuregoSafeRegister(&xCarouselSetAllowLongSwipes, libs, "adw_carousel_set_allow_long_swipes") | |||
| 855 | + | core.PuregoSafeRegister(&xCarouselSetAllowMouseDrag, libs, "adw_carousel_set_allow_mouse_drag") | |||
| 856 | + | core.PuregoSafeRegister(&xCarouselSetAllowScrollWheel, libs, "adw_carousel_set_allow_scroll_wheel") | |||
| 857 | + | core.PuregoSafeRegister(&xCarouselSetInteractive, libs, "adw_carousel_set_interactive") | |||
| 858 | + | core.PuregoSafeRegister(&xCarouselSetRevealDuration, libs, "adw_carousel_set_reveal_duration") | |||
| 859 | + | core.PuregoSafeRegister(&xCarouselSetScrollParams, libs, "adw_carousel_set_scroll_params") | |||
| 860 | + | core.PuregoSafeRegister(&xCarouselSetSpacing, libs, "adw_carousel_set_spacing") | |||
| 871 | } | 861 | } | ||