Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
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.20260714200603-7370c78950ef | |
| 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.20260714200603-7370c78950ef |
| 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 -18 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30
| @@ -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" | |
| @@ -49,6 +48,7 @@ type SwipeTracker struct { | |||
| 49 | 48 | var xSwipeTrackerGLibType func() types.GType | |
| 50 | 49 | ||
| 51 | 50 | func SwipeTrackerGLibType() types.GType { | |
| 51 | + | core.LazyRegister(&xSwipeTrackerGLibType, "ADW", "adw_swipe_tracker_get_type", false) | |
| 52 | 52 | return xSwipeTrackerGLibType() | |
| 53 | 53 | } | |
| 54 | 54 | ||
| @@ -62,6 +62,7 @@ var xNewSwipeTracker func(uintptr) uintptr | |||
| 62 | 62 | ||
| 63 | 63 | // Creates a new `AdwSwipeTracker` for @widget. | |
| 64 | 64 | func NewSwipeTracker(SwipeableVar Swipeable) *SwipeTracker { | |
| 65 | + | core.LazyRegister(&xNewSwipeTracker, "ADW", "adw_swipe_tracker_new", false) | |
| 65 | 66 | var cls *SwipeTracker | |
| 66 | 67 | ||
| 67 | 68 | cret := xNewSwipeTracker(SwipeableVar.GoPointer()) | |
| @@ -78,6 +79,8 @@ var xSwipeTrackerGetAllowLongSwipes func(uintptr) bool | |||
| 78 | 79 | ||
| 79 | 80 | // Gets whether to allow swiping for more than one snap point at a time. | |
| 80 | 81 | func (x *SwipeTracker) GetAllowLongSwipes() bool { | |
| 82 | + | core.LazyRegister(&xSwipeTrackerGetAllowLongSwipes, "ADW", "adw_swipe_tracker_get_allow_long_swipes", false) | |
| 83 | + | ||
| 81 | 84 | cret := xSwipeTrackerGetAllowLongSwipes(x.GoPointer()) | |
| 82 | 85 | return cret | |
| 83 | 86 | } | |
| @@ -86,6 +89,8 @@ var xSwipeTrackerGetAllowMouseDrag func(uintptr) bool | |||
| 86 | 89 | ||
| 87 | 90 | // Gets whether @self can be dragged with mouse pointer. | |
| 88 | 91 | func (x *SwipeTracker) GetAllowMouseDrag() bool { | |
| 92 | + | core.LazyRegister(&xSwipeTrackerGetAllowMouseDrag, "ADW", "adw_swipe_tracker_get_allow_mouse_drag", false) | |
| 93 | + | ||
| 89 | 94 | cret := xSwipeTrackerGetAllowMouseDrag(x.GoPointer()) | |
| 90 | 95 | return cret | |
| 91 | 96 | } | |
| @@ -94,6 +99,8 @@ var xSwipeTrackerGetAllowWindowHandle func(uintptr) bool | |||
| 94 | 99 | ||
| 95 | 100 | // Gets whether to allow touchscreen swiping from `GtkWindowHandle`. | |
| 96 | 101 | func (x *SwipeTracker) GetAllowWindowHandle() bool { | |
| 102 | + | core.LazyRegister(&xSwipeTrackerGetAllowWindowHandle, "ADW", "adw_swipe_tracker_get_allow_window_handle", false) | |
| 103 | + | ||
| 97 | 104 | cret := xSwipeTrackerGetAllowWindowHandle(x.GoPointer()) | |
| 98 | 105 | return cret | |
| 99 | 106 | } | |
| @@ -102,6 +109,8 @@ var xSwipeTrackerGetEnabled func(uintptr) bool | |||
| 102 | 109 | ||
| 103 | 110 | // Gets whether @self is enabled. | |
| 104 | 111 | func (x *SwipeTracker) GetEnabled() bool { | |
| 112 | + | core.LazyRegister(&xSwipeTrackerGetEnabled, "ADW", "adw_swipe_tracker_get_enabled", false) | |
| 113 | + | ||
| 105 | 114 | cret := xSwipeTrackerGetEnabled(x.GoPointer()) | |
| 106 | 115 | return cret | |
| 107 | 116 | } | |
| @@ -110,6 +119,8 @@ var xSwipeTrackerGetLowerOvershoot func(uintptr) bool | |||
| 110 | 119 | ||
| 111 | 120 | // Gets whether to allow swiping past the first available snap point. | |
| 112 | 121 | func (x *SwipeTracker) GetLowerOvershoot() bool { | |
| 122 | + | core.LazyRegister(&xSwipeTrackerGetLowerOvershoot, "ADW", "adw_swipe_tracker_get_lower_overshoot", false) | |
| 123 | + | ||
| 113 | 124 | cret := xSwipeTrackerGetLowerOvershoot(x.GoPointer()) | |
| 114 | 125 | return cret | |
| 115 | 126 | } | |
| @@ -118,6 +129,8 @@ var xSwipeTrackerGetReversed func(uintptr) bool | |||
| 118 | 129 | ||
| 119 | 130 | // Gets whether @self is reversing the swipe direction. | |
| 120 | 131 | func (x *SwipeTracker) GetReversed() bool { | |
| 132 | + | core.LazyRegister(&xSwipeTrackerGetReversed, "ADW", "adw_swipe_tracker_get_reversed", false) | |
| 133 | + | ||
| 121 | 134 | cret := xSwipeTrackerGetReversed(x.GoPointer()) | |
| 122 | 135 | return cret | |
| 123 | 136 | } | |
| @@ -126,6 +139,7 @@ var xSwipeTrackerGetSwipeable func(uintptr) uintptr | |||
| 126 | 139 | ||
| 127 | 140 | // Get the widget @self is attached to. | |
| 128 | 141 | func (x *SwipeTracker) GetSwipeable() *SwipeableBase { | |
| 142 | + | core.LazyRegister(&xSwipeTrackerGetSwipeable, "ADW", "adw_swipe_tracker_get_swipeable", false) | |
| 129 | 143 | var cls *SwipeableBase | |
| 130 | 144 | ||
| 131 | 145 | cret := xSwipeTrackerGetSwipeable(x.GoPointer()) | |
| @@ -143,6 +157,8 @@ var xSwipeTrackerGetUpperOvershoot func(uintptr) bool | |||
| 143 | 157 | ||
| 144 | 158 | // Gets whether to allow swiping past the last available snap point. | |
| 145 | 159 | func (x *SwipeTracker) GetUpperOvershoot() bool { | |
| 160 | + | core.LazyRegister(&xSwipeTrackerGetUpperOvershoot, "ADW", "adw_swipe_tracker_get_upper_overshoot", false) | |
| 161 | + | ||
| 146 | 162 | cret := xSwipeTrackerGetUpperOvershoot(x.GoPointer()) | |
| 147 | 163 | return cret | |
| 148 | 164 | } | |
| @@ -154,6 +170,8 @@ var xSwipeTrackerSetAllowLongSwipes func(uintptr, bool) | |||
| 154 | 170 | // If the value is `FALSE`, each swipe can only move to the adjacent snap | |
| 155 | 171 | // points. | |
| 156 | 172 | func (x *SwipeTracker) SetAllowLongSwipes(AllowLongSwipesVar bool) { | |
| 173 | + | core.LazyRegister(&xSwipeTrackerSetAllowLongSwipes, "ADW", "adw_swipe_tracker_set_allow_long_swipes", false) | |
| 174 | + | ||
| 157 | 175 | xSwipeTrackerSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | |
| 158 | 176 | } | |
| 159 | 177 | ||
| @@ -161,6 +179,8 @@ var xSwipeTrackerSetAllowMouseDrag func(uintptr, bool) | |||
| 161 | 179 | ||
| 162 | 180 | // Sets whether @self can be dragged with mouse pointer. | |
| 163 | 181 | func (x *SwipeTracker) SetAllowMouseDrag(AllowMouseDragVar bool) { | |
| 182 | + | core.LazyRegister(&xSwipeTrackerSetAllowMouseDrag, "ADW", "adw_swipe_tracker_set_allow_mouse_drag", false) | |
| 183 | + | ||
| 164 | 184 | xSwipeTrackerSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | |
| 165 | 185 | } | |
| 166 | 186 | ||
| @@ -170,6 +190,8 @@ var xSwipeTrackerSetAllowWindowHandle func(uintptr, bool) | |||
| 170 | 190 | // | |
| 171 | 191 | // Setting it to `TRUE` will make dragging the window impossible. | |
| 172 | 192 | func (x *SwipeTracker) SetAllowWindowHandle(AllowWindowHandleVar bool) { | |
| 193 | + | core.LazyRegister(&xSwipeTrackerSetAllowWindowHandle, "ADW", "adw_swipe_tracker_set_allow_window_handle", false) | |
| 194 | + | ||
| 173 | 195 | xSwipeTrackerSetAllowWindowHandle(x.GoPointer(), AllowWindowHandleVar) | |
| 174 | 196 | } | |
| 175 | 197 | ||
| @@ -180,6 +202,8 @@ var xSwipeTrackerSetEnabled func(uintptr, bool) | |||
| 180 | 202 | // When it's not enabled, no events will be processed. Usually widgets will want | |
| 181 | 203 | // to expose this via a property. | |
| 182 | 204 | func (x *SwipeTracker) SetEnabled(EnabledVar bool) { | |
| 205 | + | core.LazyRegister(&xSwipeTrackerSetEnabled, "ADW", "adw_swipe_tracker_set_enabled", false) | |
| 206 | + | ||
| 183 | 207 | xSwipeTrackerSetEnabled(x.GoPointer(), EnabledVar) | |
| 184 | 208 | } | |
| 185 | 209 | ||
| @@ -187,6 +211,8 @@ var xSwipeTrackerSetLowerOvershoot func(uintptr, bool) | |||
| 187 | 211 | ||
| 188 | 212 | // Sets whether to allow swiping past the first available snap point. | |
| 189 | 213 | func (x *SwipeTracker) SetLowerOvershoot(OvershootVar bool) { | |
| 214 | + | core.LazyRegister(&xSwipeTrackerSetLowerOvershoot, "ADW", "adw_swipe_tracker_set_lower_overshoot", false) | |
| 215 | + | ||
| 190 | 216 | xSwipeTrackerSetLowerOvershoot(x.GoPointer(), OvershootVar) | |
| 191 | 217 | } | |
| 192 | 218 | ||
| @@ -197,6 +223,8 @@ var xSwipeTrackerSetReversed func(uintptr, bool) | |||
| 197 | 223 | // If the swipe tracker is horizontal, it can be used for supporting RTL text | |
| 198 | 224 | // direction. | |
| 199 | 225 | func (x *SwipeTracker) SetReversed(ReversedVar bool) { | |
| 226 | + | core.LazyRegister(&xSwipeTrackerSetReversed, "ADW", "adw_swipe_tracker_set_reversed", false) | |
| 227 | + | ||
| 200 | 228 | xSwipeTrackerSetReversed(x.GoPointer(), ReversedVar) | |
| 201 | 229 | } | |
| 202 | 230 | ||
| @@ -204,6 +232,8 @@ var xSwipeTrackerSetUpperOvershoot func(uintptr, bool) | |||
| 204 | 232 | ||
| 205 | 233 | // Sets whether to allow swiping past the last available snap point. | |
| 206 | 234 | func (x *SwipeTracker) SetUpperOvershoot(OvershootVar bool) { | |
| 235 | + | core.LazyRegister(&xSwipeTrackerSetUpperOvershoot, "ADW", "adw_swipe_tracker_set_upper_overshoot", false) | |
| 236 | + | ||
| 207 | 237 | xSwipeTrackerSetUpperOvershoot(x.GoPointer(), OvershootVar) | |
| 208 | 238 | } | |
| 209 | 239 | ||
| @@ -214,6 +244,8 @@ var xSwipeTrackerShiftPosition func(uintptr, float64) | |||
| 214 | 244 | // This can be used to adjust the current position if snap points move during | |
| 215 | 245 | // the gesture. | |
| 216 | 246 | func (x *SwipeTracker) ShiftPosition(DeltaVar float64) { | |
| 247 | + | core.LazyRegister(&xSwipeTrackerShiftPosition, "ADW", "adw_swipe_tracker_shift_position", false) | |
| 248 | + | ||
| 217 | 249 | xSwipeTrackerShiftPosition(x.GoPointer(), DeltaVar) | |
| 218 | 250 | } | |
| 219 | 251 | ||
| @@ -484,33 +516,4 @@ func (x *SwipeTracker) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 484 | 516 | func init() { | |
| 485 | 517 | core.SetPackageName("ADW", "libadwaita-1") | |
| 486 | 518 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 487 | - | var libs []uintptr | |
| 488 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 489 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 490 | - | if err != nil { | |
| 491 | - | panic(err) | |
| 492 | - | } | |
| 493 | - | libs = append(libs, lib) | |
| 494 | - | } | |
| 495 | - | ||
| 496 | - | core.PuregoSafeRegister(&xSwipeTrackerGLibType, libs, "adw_swipe_tracker_get_type") | |
| 497 | - | ||
| 498 | - | core.PuregoSafeRegister(&xNewSwipeTracker, libs, "adw_swipe_tracker_new") | |
| 499 | - | ||
| 500 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowLongSwipes, libs, "adw_swipe_tracker_get_allow_long_swipes") | |
| 501 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowMouseDrag, libs, "adw_swipe_tracker_get_allow_mouse_drag") | |
| 502 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowWindowHandle, libs, "adw_swipe_tracker_get_allow_window_handle") | |
| 503 | - | core.PuregoSafeRegister(&xSwipeTrackerGetEnabled, libs, "adw_swipe_tracker_get_enabled") | |
| 504 | - | core.PuregoSafeRegister(&xSwipeTrackerGetLowerOvershoot, libs, "adw_swipe_tracker_get_lower_overshoot") | |
| 505 | - | core.PuregoSafeRegister(&xSwipeTrackerGetReversed, libs, "adw_swipe_tracker_get_reversed") | |
| 506 | - | core.PuregoSafeRegister(&xSwipeTrackerGetSwipeable, libs, "adw_swipe_tracker_get_swipeable") | |
| 507 | - | core.PuregoSafeRegister(&xSwipeTrackerGetUpperOvershoot, libs, "adw_swipe_tracker_get_upper_overshoot") | |
| 508 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowLongSwipes, libs, "adw_swipe_tracker_set_allow_long_swipes") | |
| 509 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowMouseDrag, libs, "adw_swipe_tracker_set_allow_mouse_drag") | |
| 510 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowWindowHandle, libs, "adw_swipe_tracker_set_allow_window_handle") | |
| 511 | - | core.PuregoSafeRegister(&xSwipeTrackerSetEnabled, libs, "adw_swipe_tracker_set_enabled") | |
| 512 | - | core.PuregoSafeRegister(&xSwipeTrackerSetLowerOvershoot, libs, "adw_swipe_tracker_set_lower_overshoot") | |
| 513 | - | core.PuregoSafeRegister(&xSwipeTrackerSetReversed, libs, "adw_swipe_tracker_set_reversed") | |
| 514 | - | core.PuregoSafeRegister(&xSwipeTrackerSetUpperOvershoot, libs, "adw_swipe_tracker_set_upper_overshoot") | |
| 515 | - | core.PuregoSafeRegister(&xSwipeTrackerShiftPosition, libs, "adw_swipe_tracker_shift_position") | |
| 516 | 519 | } | |
| @@ -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" | ||
| @@ -49,6 +48,7 @@ type SwipeTracker struct { | |||||
| 49 | var xSwipeTrackerGLibType func() types.GType | 48 | var xSwipeTrackerGLibType func() types.GType | ||
| 50 | 49 | ||||
| 51 | func SwipeTrackerGLibType() types.GType { | 50 | func SwipeTrackerGLibType() types.GType { | ||
| 51 | + | core.LazyRegister(&xSwipeTrackerGLibType, "ADW", "adw_swipe_tracker_get_type", false) | |||
| 52 | return xSwipeTrackerGLibType() | 52 | return xSwipeTrackerGLibType() | ||
| 53 | } | 53 | } | ||
| 54 | 54 | ||||
| @@ -62,6 +62,7 @@ var xNewSwipeTracker func(uintptr) uintptr | |||||
| 62 | 62 | ||||
| 63 | // Creates a new `AdwSwipeTracker` for @widget. | 63 | // Creates a new `AdwSwipeTracker` for @widget. | ||
| 64 | func NewSwipeTracker(SwipeableVar Swipeable) *SwipeTracker { | 64 | func NewSwipeTracker(SwipeableVar Swipeable) *SwipeTracker { | ||
| 65 | + | core.LazyRegister(&xNewSwipeTracker, "ADW", "adw_swipe_tracker_new", false) | |||
| 65 | var cls *SwipeTracker | 66 | var cls *SwipeTracker | ||
| 66 | 67 | ||||
| 67 | cret := xNewSwipeTracker(SwipeableVar.GoPointer()) | 68 | cret := xNewSwipeTracker(SwipeableVar.GoPointer()) | ||
| @@ -78,6 +79,8 @@ var xSwipeTrackerGetAllowLongSwipes func(uintptr) bool | |||||
| 78 | 79 | ||||
| 79 | // Gets whether to allow swiping for more than one snap point at a time. | 80 | // Gets whether to allow swiping for more than one snap point at a time. | ||
| 80 | func (x *SwipeTracker) GetAllowLongSwipes() bool { | 81 | func (x *SwipeTracker) GetAllowLongSwipes() bool { | ||
| 82 | + | core.LazyRegister(&xSwipeTrackerGetAllowLongSwipes, "ADW", "adw_swipe_tracker_get_allow_long_swipes", false) | |||
| 83 | + | ||||
| 81 | cret := xSwipeTrackerGetAllowLongSwipes(x.GoPointer()) | 84 | cret := xSwipeTrackerGetAllowLongSwipes(x.GoPointer()) | ||
| 82 | return cret | 85 | return cret | ||
| 83 | } | 86 | } | ||
| @@ -86,6 +89,8 @@ var xSwipeTrackerGetAllowMouseDrag func(uintptr) bool | |||||
| 86 | 89 | ||||
| 87 | // Gets whether @self can be dragged with mouse pointer. | 90 | // Gets whether @self can be dragged with mouse pointer. | ||
| 88 | func (x *SwipeTracker) GetAllowMouseDrag() bool { | 91 | func (x *SwipeTracker) GetAllowMouseDrag() bool { | ||
| 92 | + | core.LazyRegister(&xSwipeTrackerGetAllowMouseDrag, "ADW", "adw_swipe_tracker_get_allow_mouse_drag", false) | |||
| 93 | + | ||||
| 89 | cret := xSwipeTrackerGetAllowMouseDrag(x.GoPointer()) | 94 | cret := xSwipeTrackerGetAllowMouseDrag(x.GoPointer()) | ||
| 90 | return cret | 95 | return cret | ||
| 91 | } | 96 | } | ||
| @@ -94,6 +99,8 @@ var xSwipeTrackerGetAllowWindowHandle func(uintptr) bool | |||||
| 94 | 99 | ||||
| 95 | // Gets whether to allow touchscreen swiping from `GtkWindowHandle`. | 100 | // Gets whether to allow touchscreen swiping from `GtkWindowHandle`. | ||
| 96 | func (x *SwipeTracker) GetAllowWindowHandle() bool { | 101 | func (x *SwipeTracker) GetAllowWindowHandle() bool { | ||
| 102 | + | core.LazyRegister(&xSwipeTrackerGetAllowWindowHandle, "ADW", "adw_swipe_tracker_get_allow_window_handle", false) | |||
| 103 | + | ||||
| 97 | cret := xSwipeTrackerGetAllowWindowHandle(x.GoPointer()) | 104 | cret := xSwipeTrackerGetAllowWindowHandle(x.GoPointer()) | ||
| 98 | return cret | 105 | return cret | ||
| 99 | } | 106 | } | ||
| @@ -102,6 +109,8 @@ var xSwipeTrackerGetEnabled func(uintptr) bool | |||||
| 102 | 109 | ||||
| 103 | // Gets whether @self is enabled. | 110 | // Gets whether @self is enabled. | ||
| 104 | func (x *SwipeTracker) GetEnabled() bool { | 111 | func (x *SwipeTracker) GetEnabled() bool { | ||
| 112 | + | core.LazyRegister(&xSwipeTrackerGetEnabled, "ADW", "adw_swipe_tracker_get_enabled", false) | |||
| 113 | + | ||||
| 105 | cret := xSwipeTrackerGetEnabled(x.GoPointer()) | 114 | cret := xSwipeTrackerGetEnabled(x.GoPointer()) | ||
| 106 | return cret | 115 | return cret | ||
| 107 | } | 116 | } | ||
| @@ -110,6 +119,8 @@ var xSwipeTrackerGetLowerOvershoot func(uintptr) bool | |||||
| 110 | 119 | ||||
| 111 | // Gets whether to allow swiping past the first available snap point. | 120 | // Gets whether to allow swiping past the first available snap point. | ||
| 112 | func (x *SwipeTracker) GetLowerOvershoot() bool { | 121 | func (x *SwipeTracker) GetLowerOvershoot() bool { | ||
| 122 | + | core.LazyRegister(&xSwipeTrackerGetLowerOvershoot, "ADW", "adw_swipe_tracker_get_lower_overshoot", false) | |||
| 123 | + | ||||
| 113 | cret := xSwipeTrackerGetLowerOvershoot(x.GoPointer()) | 124 | cret := xSwipeTrackerGetLowerOvershoot(x.GoPointer()) | ||
| 114 | return cret | 125 | return cret | ||
| 115 | } | 126 | } | ||
| @@ -118,6 +129,8 @@ var xSwipeTrackerGetReversed func(uintptr) bool | |||||
| 118 | 129 | ||||
| 119 | // Gets whether @self is reversing the swipe direction. | 130 | // Gets whether @self is reversing the swipe direction. | ||
| 120 | func (x *SwipeTracker) GetReversed() bool { | 131 | func (x *SwipeTracker) GetReversed() bool { | ||
| 132 | + | core.LazyRegister(&xSwipeTrackerGetReversed, "ADW", "adw_swipe_tracker_get_reversed", false) | |||
| 133 | + | ||||
| 121 | cret := xSwipeTrackerGetReversed(x.GoPointer()) | 134 | cret := xSwipeTrackerGetReversed(x.GoPointer()) | ||
| 122 | return cret | 135 | return cret | ||
| 123 | } | 136 | } | ||
| @@ -126,6 +139,7 @@ var xSwipeTrackerGetSwipeable func(uintptr) uintptr | |||||
| 126 | 139 | ||||
| 127 | // Get the widget @self is attached to. | 140 | // Get the widget @self is attached to. | ||
| 128 | func (x *SwipeTracker) GetSwipeable() *SwipeableBase { | 141 | func (x *SwipeTracker) GetSwipeable() *SwipeableBase { | ||
| 142 | + | core.LazyRegister(&xSwipeTrackerGetSwipeable, "ADW", "adw_swipe_tracker_get_swipeable", false) | |||
| 129 | var cls *SwipeableBase | 143 | var cls *SwipeableBase | ||
| 130 | 144 | ||||
| 131 | cret := xSwipeTrackerGetSwipeable(x.GoPointer()) | 145 | cret := xSwipeTrackerGetSwipeable(x.GoPointer()) | ||
| @@ -143,6 +157,8 @@ var xSwipeTrackerGetUpperOvershoot func(uintptr) bool | |||||
| 143 | 157 | ||||
| 144 | // Gets whether to allow swiping past the last available snap point. | 158 | // Gets whether to allow swiping past the last available snap point. | ||
| 145 | func (x *SwipeTracker) GetUpperOvershoot() bool { | 159 | func (x *SwipeTracker) GetUpperOvershoot() bool { | ||
| 160 | + | core.LazyRegister(&xSwipeTrackerGetUpperOvershoot, "ADW", "adw_swipe_tracker_get_upper_overshoot", false) | |||
| 161 | + | ||||
| 146 | cret := xSwipeTrackerGetUpperOvershoot(x.GoPointer()) | 162 | cret := xSwipeTrackerGetUpperOvershoot(x.GoPointer()) | ||
| 147 | return cret | 163 | return cret | ||
| 148 | } | 164 | } | ||
| @@ -154,6 +170,8 @@ var xSwipeTrackerSetAllowLongSwipes func(uintptr, bool) | |||||
| 154 | // If the value is `FALSE`, each swipe can only move to the adjacent snap | 170 | // If the value is `FALSE`, each swipe can only move to the adjacent snap | ||
| 155 | // points. | 171 | // points. | ||
| 156 | func (x *SwipeTracker) SetAllowLongSwipes(AllowLongSwipesVar bool) { | 172 | func (x *SwipeTracker) SetAllowLongSwipes(AllowLongSwipesVar bool) { | ||
| 173 | + | core.LazyRegister(&xSwipeTrackerSetAllowLongSwipes, "ADW", "adw_swipe_tracker_set_allow_long_swipes", false) | |||
| 174 | + | ||||
| 157 | xSwipeTrackerSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | 175 | xSwipeTrackerSetAllowLongSwipes(x.GoPointer(), AllowLongSwipesVar) | ||
| 158 | } | 176 | } | ||
| 159 | 177 | ||||
| @@ -161,6 +179,8 @@ var xSwipeTrackerSetAllowMouseDrag func(uintptr, bool) | |||||
| 161 | 179 | ||||
| 162 | // Sets whether @self can be dragged with mouse pointer. | 180 | // Sets whether @self can be dragged with mouse pointer. | ||
| 163 | func (x *SwipeTracker) SetAllowMouseDrag(AllowMouseDragVar bool) { | 181 | func (x *SwipeTracker) SetAllowMouseDrag(AllowMouseDragVar bool) { | ||
| 182 | + | core.LazyRegister(&xSwipeTrackerSetAllowMouseDrag, "ADW", "adw_swipe_tracker_set_allow_mouse_drag", false) | |||
| 183 | + | ||||
| 164 | xSwipeTrackerSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | 184 | xSwipeTrackerSetAllowMouseDrag(x.GoPointer(), AllowMouseDragVar) | ||
| 165 | } | 185 | } | ||
| 166 | 186 | ||||
| @@ -170,6 +190,8 @@ var xSwipeTrackerSetAllowWindowHandle func(uintptr, bool) | |||||
| 170 | // | 190 | // | ||
| 171 | // Setting it to `TRUE` will make dragging the window impossible. | 191 | // Setting it to `TRUE` will make dragging the window impossible. | ||
| 172 | func (x *SwipeTracker) SetAllowWindowHandle(AllowWindowHandleVar bool) { | 192 | func (x *SwipeTracker) SetAllowWindowHandle(AllowWindowHandleVar bool) { | ||
| 193 | + | core.LazyRegister(&xSwipeTrackerSetAllowWindowHandle, "ADW", "adw_swipe_tracker_set_allow_window_handle", false) | |||
| 194 | + | ||||
| 173 | xSwipeTrackerSetAllowWindowHandle(x.GoPointer(), AllowWindowHandleVar) | 195 | xSwipeTrackerSetAllowWindowHandle(x.GoPointer(), AllowWindowHandleVar) | ||
| 174 | } | 196 | } | ||
| 175 | 197 | ||||
| @@ -180,6 +202,8 @@ var xSwipeTrackerSetEnabled func(uintptr, bool) | |||||
| 180 | // When it's not enabled, no events will be processed. Usually widgets will want | 202 | // When it's not enabled, no events will be processed. Usually widgets will want | ||
| 181 | // to expose this via a property. | 203 | // to expose this via a property. | ||
| 182 | func (x *SwipeTracker) SetEnabled(EnabledVar bool) { | 204 | func (x *SwipeTracker) SetEnabled(EnabledVar bool) { | ||
| 205 | + | core.LazyRegister(&xSwipeTrackerSetEnabled, "ADW", "adw_swipe_tracker_set_enabled", false) | |||
| 206 | + | ||||
| 183 | xSwipeTrackerSetEnabled(x.GoPointer(), EnabledVar) | 207 | xSwipeTrackerSetEnabled(x.GoPointer(), EnabledVar) | ||
| 184 | } | 208 | } | ||
| 185 | 209 | ||||
| @@ -187,6 +211,8 @@ var xSwipeTrackerSetLowerOvershoot func(uintptr, bool) | |||||
| 187 | 211 | ||||
| 188 | // Sets whether to allow swiping past the first available snap point. | 212 | // Sets whether to allow swiping past the first available snap point. | ||
| 189 | func (x *SwipeTracker) SetLowerOvershoot(OvershootVar bool) { | 213 | func (x *SwipeTracker) SetLowerOvershoot(OvershootVar bool) { | ||
| 214 | + | core.LazyRegister(&xSwipeTrackerSetLowerOvershoot, "ADW", "adw_swipe_tracker_set_lower_overshoot", false) | |||
| 215 | + | ||||
| 190 | xSwipeTrackerSetLowerOvershoot(x.GoPointer(), OvershootVar) | 216 | xSwipeTrackerSetLowerOvershoot(x.GoPointer(), OvershootVar) | ||
| 191 | } | 217 | } | ||
| 192 | 218 | ||||
| @@ -197,6 +223,8 @@ var xSwipeTrackerSetReversed func(uintptr, bool) | |||||
| 197 | // If the swipe tracker is horizontal, it can be used for supporting RTL text | 223 | // If the swipe tracker is horizontal, it can be used for supporting RTL text | ||
| 198 | // direction. | 224 | // direction. | ||
| 199 | func (x *SwipeTracker) SetReversed(ReversedVar bool) { | 225 | func (x *SwipeTracker) SetReversed(ReversedVar bool) { | ||
| 226 | + | core.LazyRegister(&xSwipeTrackerSetReversed, "ADW", "adw_swipe_tracker_set_reversed", false) | |||
| 227 | + | ||||
| 200 | xSwipeTrackerSetReversed(x.GoPointer(), ReversedVar) | 228 | xSwipeTrackerSetReversed(x.GoPointer(), ReversedVar) | ||
| 201 | } | 229 | } | ||
| 202 | 230 | ||||
| @@ -204,6 +232,8 @@ var xSwipeTrackerSetUpperOvershoot func(uintptr, bool) | |||||
| 204 | 232 | ||||
| 205 | // Sets whether to allow swiping past the last available snap point. | 233 | // Sets whether to allow swiping past the last available snap point. | ||
| 206 | func (x *SwipeTracker) SetUpperOvershoot(OvershootVar bool) { | 234 | func (x *SwipeTracker) SetUpperOvershoot(OvershootVar bool) { | ||
| 235 | + | core.LazyRegister(&xSwipeTrackerSetUpperOvershoot, "ADW", "adw_swipe_tracker_set_upper_overshoot", false) | |||
| 236 | + | ||||
| 207 | xSwipeTrackerSetUpperOvershoot(x.GoPointer(), OvershootVar) | 237 | xSwipeTrackerSetUpperOvershoot(x.GoPointer(), OvershootVar) | ||
| 208 | } | 238 | } | ||
| 209 | 239 | ||||
| @@ -214,6 +244,8 @@ var xSwipeTrackerShiftPosition func(uintptr, float64) | |||||
| 214 | // This can be used to adjust the current position if snap points move during | 244 | // This can be used to adjust the current position if snap points move during | ||
| 215 | // the gesture. | 245 | // the gesture. | ||
| 216 | func (x *SwipeTracker) ShiftPosition(DeltaVar float64) { | 246 | func (x *SwipeTracker) ShiftPosition(DeltaVar float64) { | ||
| 247 | + | core.LazyRegister(&xSwipeTrackerShiftPosition, "ADW", "adw_swipe_tracker_shift_position", false) | |||
| 248 | + | ||||
| 217 | xSwipeTrackerShiftPosition(x.GoPointer(), DeltaVar) | 249 | xSwipeTrackerShiftPosition(x.GoPointer(), DeltaVar) | ||
| 218 | } | 250 | } | ||
| 219 | 251 | ||||
| @@ -484,33 +516,4 @@ func (x *SwipeTracker) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 484 | func init() { | 516 | func init() { | ||
| 485 | core.SetPackageName("ADW", "libadwaita-1") | 517 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 486 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 518 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 487 | - | var libs []uintptr | |||
| 488 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 489 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 490 | - | if err != nil { | |||
| 491 | - | panic(err) | |||
| 492 | - | } | |||
| 493 | - | libs = append(libs, lib) | |||
| 494 | - | } | |||
| 495 | - | ||||
| 496 | - | core.PuregoSafeRegister(&xSwipeTrackerGLibType, libs, "adw_swipe_tracker_get_type") | |||
| 497 | - | ||||
| 498 | - | core.PuregoSafeRegister(&xNewSwipeTracker, libs, "adw_swipe_tracker_new") | |||
| 499 | - | ||||
| 500 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowLongSwipes, libs, "adw_swipe_tracker_get_allow_long_swipes") | |||
| 501 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowMouseDrag, libs, "adw_swipe_tracker_get_allow_mouse_drag") | |||
| 502 | - | core.PuregoSafeRegister(&xSwipeTrackerGetAllowWindowHandle, libs, "adw_swipe_tracker_get_allow_window_handle") | |||
| 503 | - | core.PuregoSafeRegister(&xSwipeTrackerGetEnabled, libs, "adw_swipe_tracker_get_enabled") | |||
| 504 | - | core.PuregoSafeRegister(&xSwipeTrackerGetLowerOvershoot, libs, "adw_swipe_tracker_get_lower_overshoot") | |||
| 505 | - | core.PuregoSafeRegister(&xSwipeTrackerGetReversed, libs, "adw_swipe_tracker_get_reversed") | |||
| 506 | - | core.PuregoSafeRegister(&xSwipeTrackerGetSwipeable, libs, "adw_swipe_tracker_get_swipeable") | |||
| 507 | - | core.PuregoSafeRegister(&xSwipeTrackerGetUpperOvershoot, libs, "adw_swipe_tracker_get_upper_overshoot") | |||
| 508 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowLongSwipes, libs, "adw_swipe_tracker_set_allow_long_swipes") | |||
| 509 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowMouseDrag, libs, "adw_swipe_tracker_set_allow_mouse_drag") | |||
| 510 | - | core.PuregoSafeRegister(&xSwipeTrackerSetAllowWindowHandle, libs, "adw_swipe_tracker_set_allow_window_handle") | |||
| 511 | - | core.PuregoSafeRegister(&xSwipeTrackerSetEnabled, libs, "adw_swipe_tracker_set_enabled") | |||
| 512 | - | core.PuregoSafeRegister(&xSwipeTrackerSetLowerOvershoot, libs, "adw_swipe_tracker_set_lower_overshoot") | |||
| 513 | - | core.PuregoSafeRegister(&xSwipeTrackerSetReversed, libs, "adw_swipe_tracker_set_reversed") | |||
| 514 | - | core.PuregoSafeRegister(&xSwipeTrackerSetUpperOvershoot, libs, "adw_swipe_tracker_set_upper_overshoot") | |||
| 515 | - | core.PuregoSafeRegister(&xSwipeTrackerShiftPosition, libs, "adw_swipe_tracker_shift_position") | |||
| 516 | } | 519 | } | ||