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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36
| @@ -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/glib" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -46,7 +47,6 @@ type InputSource int | |||
| 46 | 47 | var xInputSourceGLibType func() types.GType | |
| 47 | 48 | ||
| 48 | 49 | func InputSourceGLibType() types.GType { | |
| 49 | - | core.LazyRegister(&xInputSourceGLibType, "GDK", "gdk_input_source_get_type", false) | |
| 50 | 50 | return xInputSourceGLibType() | |
| 51 | 51 | } | |
| 52 | 52 | ||
| @@ -83,7 +83,6 @@ type Device struct { | |||
| 83 | 83 | var xDeviceGLibType func() types.GType | |
| 84 | 84 | ||
| 85 | 85 | func DeviceGLibType() types.GType { | |
| 86 | - | core.LazyRegister(&xDeviceGLibType, "GDK", "gdk_device_get_type", false) | |
| 87 | 86 | return xDeviceGLibType() | |
| 88 | 87 | } | |
| 89 | 88 | ||
| @@ -102,8 +101,6 @@ var xDeviceGetActiveLayoutIndex func(uintptr) int | |||
| 102 | 101 | // | |
| 103 | 102 | // This is only relevant for keyboard devices. | |
| 104 | 103 | func (x *Device) GetActiveLayoutIndex() int { | |
| 105 | - | core.LazyRegister(&xDeviceGetActiveLayoutIndex, "GDK", "gdk_device_get_active_layout_index", false) | |
| 106 | - | ||
| 107 | 104 | cret := xDeviceGetActiveLayoutIndex(x.GoPointer()) | |
| 108 | 105 | return cret | |
| 109 | 106 | } | |
| @@ -114,8 +111,6 @@ var xDeviceGetCapsLockState func(uintptr) bool | |||
| 114 | 111 | // | |
| 115 | 112 | // This is only relevant for keyboard devices. | |
| 116 | 113 | func (x *Device) GetCapsLockState() bool { | |
| 117 | - | core.LazyRegister(&xDeviceGetCapsLockState, "GDK", "gdk_device_get_caps_lock_state", false) | |
| 118 | - | ||
| 119 | 114 | cret := xDeviceGetCapsLockState(x.GoPointer()) | |
| 120 | 115 | return cret | |
| 121 | 116 | } | |
| @@ -124,7 +119,6 @@ var xDeviceGetDeviceTool func(uintptr) uintptr | |||
| 124 | 119 | ||
| 125 | 120 | // Retrieves the current tool for @device. | |
| 126 | 121 | func (x *Device) GetDeviceTool() *DeviceTool { | |
| 127 | - | core.LazyRegister(&xDeviceGetDeviceTool, "GDK", "gdk_device_get_device_tool", false) | |
| 128 | 122 | var cls *DeviceTool | |
| 129 | 123 | ||
| 130 | 124 | cret := xDeviceGetDeviceTool(x.GoPointer()) | |
| @@ -147,8 +141,6 @@ var xDeviceGetDirection func(uintptr) pango.Direction | |||
| 147 | 141 | // The direction of a layout is the direction of the majority | |
| 148 | 142 | // of its symbols. See [func@Pango.unichar_direction]. | |
| 149 | 143 | func (x *Device) GetDirection() pango.Direction { | |
| 150 | - | core.LazyRegister(&xDeviceGetDirection, "GDK", "gdk_device_get_direction", false) | |
| 151 | - | ||
| 152 | 144 | cret := xDeviceGetDirection(x.GoPointer()) | |
| 153 | 145 | return cret | |
| 154 | 146 | } | |
| @@ -157,7 +149,6 @@ var xDeviceGetDisplay func(uintptr) uintptr | |||
| 157 | 149 | ||
| 158 | 150 | // Returns the `GdkDisplay` to which @device pertains. | |
| 159 | 151 | func (x *Device) GetDisplay() *Display { | |
| 160 | - | core.LazyRegister(&xDeviceGetDisplay, "GDK", "gdk_device_get_display", false) | |
| 161 | 152 | var cls *Display | |
| 162 | 153 | ||
| 163 | 154 | cret := xDeviceGetDisplay(x.GoPointer()) | |
| @@ -178,8 +169,6 @@ var xDeviceGetHasCursor func(uintptr) bool | |||
| 178 | 169 | // This is not meaningful for keyboard devices, which | |
| 179 | 170 | // don't have a pointer. | |
| 180 | 171 | func (x *Device) GetHasCursor() bool { | |
| 181 | - | core.LazyRegister(&xDeviceGetHasCursor, "GDK", "gdk_device_get_has_cursor", false) | |
| 182 | - | ||
| 183 | 172 | cret := xDeviceGetHasCursor(x.GoPointer()) | |
| 184 | 173 | return cret | |
| 185 | 174 | } | |
| @@ -190,8 +179,6 @@ var xDeviceGetLayoutNames func(uintptr) []string | |||
| 190 | 179 | // | |
| 191 | 180 | // This is only relevant for keyboard devices. | |
| 192 | 181 | func (x *Device) GetLayoutNames() []string { | |
| 193 | - | core.LazyRegister(&xDeviceGetLayoutNames, "GDK", "gdk_device_get_layout_names", false) | |
| 194 | - | ||
| 195 | 182 | cret := xDeviceGetLayoutNames(x.GoPointer()) | |
| 196 | 183 | return cret | |
| 197 | 184 | } | |
| @@ -202,8 +189,6 @@ var xDeviceGetModifierState func(uintptr) ModifierType | |||
| 202 | 189 | // | |
| 203 | 190 | // This is only relevant for keyboard devices. | |
| 204 | 191 | func (x *Device) GetModifierState() ModifierType { | |
| 205 | - | core.LazyRegister(&xDeviceGetModifierState, "GDK", "gdk_device_get_modifier_state", false) | |
| 206 | - | ||
| 207 | 192 | cret := xDeviceGetModifierState(x.GoPointer()) | |
| 208 | 193 | return cret | |
| 209 | 194 | } | |
| @@ -212,8 +197,6 @@ var xDeviceGetName func(uintptr) string | |||
| 212 | 197 | ||
| 213 | 198 | // The name of the device, suitable for showing in a user interface. | |
| 214 | 199 | func (x *Device) GetName() string { | |
| 215 | - | core.LazyRegister(&xDeviceGetName, "GDK", "gdk_device_get_name", false) | |
| 216 | - | ||
| 217 | 200 | cret := xDeviceGetName(x.GoPointer()) | |
| 218 | 201 | return cret | |
| 219 | 202 | } | |
| @@ -224,8 +207,6 @@ var xDeviceGetNumLockState func(uintptr) bool | |||
| 224 | 207 | // | |
| 225 | 208 | // This is only relevant for keyboard devices. | |
| 226 | 209 | func (x *Device) GetNumLockState() bool { | |
| 227 | - | core.LazyRegister(&xDeviceGetNumLockState, "GDK", "gdk_device_get_num_lock_state", false) | |
| 228 | - | ||
| 229 | 210 | cret := xDeviceGetNumLockState(x.GoPointer()) | |
| 230 | 211 | return cret | |
| 231 | 212 | } | |
| @@ -234,8 +215,6 @@ var xDeviceGetNumTouches func(uintptr) uint | |||
| 234 | 215 | ||
| 235 | 216 | // Retrieves the number of touch points associated to @device. | |
| 236 | 217 | func (x *Device) GetNumTouches() uint { | |
| 237 | - | core.LazyRegister(&xDeviceGetNumTouches, "GDK", "gdk_device_get_num_touches", false) | |
| 238 | - | ||
| 239 | 218 | cret := xDeviceGetNumTouches(x.GoPointer()) | |
| 240 | 219 | return cret | |
| 241 | 220 | } | |
| @@ -247,8 +226,6 @@ var xDeviceGetProductId func(uintptr) string | |||
| 247 | 226 | // This ID is retrieved from the device, and does not change. | |
| 248 | 227 | // See [method@Gdk.Device.get_vendor_id] for more information. | |
| 249 | 228 | func (x *Device) GetProductId() string { | |
| 250 | - | core.LazyRegister(&xDeviceGetProductId, "GDK", "gdk_device_get_product_id", false) | |
| 251 | - | ||
| 252 | 229 | cret := xDeviceGetProductId(x.GoPointer()) | |
| 253 | 230 | return cret | |
| 254 | 231 | } | |
| @@ -259,8 +236,6 @@ var xDeviceGetScrollLockState func(uintptr) bool | |||
| 259 | 236 | // | |
| 260 | 237 | // This is only relevant for keyboard devices. | |
| 261 | 238 | func (x *Device) GetScrollLockState() bool { | |
| 262 | - | core.LazyRegister(&xDeviceGetScrollLockState, "GDK", "gdk_device_get_scroll_lock_state", false) | |
| 263 | - | ||
| 264 | 239 | cret := xDeviceGetScrollLockState(x.GoPointer()) | |
| 265 | 240 | return cret | |
| 266 | 241 | } | |
| @@ -269,7 +244,6 @@ var xDeviceGetSeat func(uintptr) uintptr | |||
| 269 | 244 | ||
| 270 | 245 | // Returns the `GdkSeat` the device belongs to. | |
| 271 | 246 | func (x *Device) GetSeat() *Seat { | |
| 272 | - | core.LazyRegister(&xDeviceGetSeat, "GDK", "gdk_device_get_seat", false) | |
| 273 | 247 | var cls *Seat | |
| 274 | 248 | ||
| 275 | 249 | cret := xDeviceGetSeat(x.GoPointer()) | |
| @@ -287,8 +261,6 @@ var xDeviceGetSource func(uintptr) InputSource | |||
| 287 | 261 | ||
| 288 | 262 | // Determines the type of the device. | |
| 289 | 263 | func (x *Device) GetSource() InputSource { | |
| 290 | - | core.LazyRegister(&xDeviceGetSource, "GDK", "gdk_device_get_source", false) | |
| 291 | - | ||
| 292 | 264 | cret := xDeviceGetSource(x.GoPointer()) | |
| 293 | 265 | return cret | |
| 294 | 266 | } | |
| @@ -301,7 +273,6 @@ var xDeviceGetSurfaceAtPosition func(uintptr, *float64, *float64) uintptr | |||
| 301 | 273 | // Returns %NULL if the surface tree under @device is not known to GDK | |
| 302 | 274 | // (for example, belongs to another application). | |
| 303 | 275 | func (x *Device) GetSurfaceAtPosition(WinXVar *float64, WinYVar *float64) *Surface { | |
| 304 | - | core.LazyRegister(&xDeviceGetSurfaceAtPosition, "GDK", "gdk_device_get_surface_at_position", false) | |
| 305 | 276 | var cls *Surface | |
| 306 | 277 | ||
| 307 | 278 | cret := xDeviceGetSurfaceAtPosition(x.GoPointer(), WinXVar, WinYVar) | |
| @@ -324,8 +295,6 @@ var xDeviceGetTimestamp func(uintptr) uint32 | |||
| 324 | 295 | // events for a device that are not received from the OS, and will not | |
| 325 | 296 | // update the timestamp). | |
| 326 | 297 | func (x *Device) GetTimestamp() uint32 { | |
| 327 | - | core.LazyRegister(&xDeviceGetTimestamp, "GDK", "gdk_device_get_timestamp", false) | |
| 328 | - | ||
| 329 | 298 | cret := xDeviceGetTimestamp(x.GoPointer()) | |
| 330 | 299 | return cret | |
| 331 | 300 | } | |
| @@ -362,8 +331,6 @@ var xDeviceGetVendorId func(uintptr) string | |||
| 362 | 331 | // | |
| 363 | 332 | // ``` | |
| 364 | 333 | func (x *Device) GetVendorId() string { | |
| 365 | - | core.LazyRegister(&xDeviceGetVendorId, "GDK", "gdk_device_get_vendor_id", false) | |
| 366 | - | ||
| 367 | 334 | cret := xDeviceGetVendorId(x.GoPointer()) | |
| 368 | 335 | return cret | |
| 369 | 336 | } | |
| @@ -375,8 +342,6 @@ var xDeviceHasBidiLayouts func(uintptr) bool | |||
| 375 | 342 | // | |
| 376 | 343 | // This is only relevant for keyboard devices. | |
| 377 | 344 | func (x *Device) HasBidiLayouts() bool { | |
| 378 | - | core.LazyRegister(&xDeviceHasBidiLayouts, "GDK", "gdk_device_has_bidi_layouts", false) | |
| 379 | - | ||
| 380 | 345 | cret := xDeviceHasBidiLayouts(x.GoPointer()) | |
| 381 | 346 | return cret | |
| 382 | 347 | } | |
| @@ -616,4 +581,36 @@ func (x *Device) ConnectToolChanged(cb *func(Device, uintptr)) uint { | |||
| 616 | 581 | func init() { | |
| 617 | 582 | core.SetPackageName("GDK", "gtk4") | |
| 618 | 583 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 584 | + | var libs []uintptr | |
| 585 | + | for _, libPath := range core.GetPaths("GDK") { | |
| 586 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 587 | + | if err != nil { | |
| 588 | + | panic(err) | |
| 589 | + | } | |
| 590 | + | libs = append(libs, lib) | |
| 591 | + | } | |
| 592 | + | ||
| 593 | + | core.PuregoSafeRegister(&xInputSourceGLibType, libs, "gdk_input_source_get_type") | |
| 594 | + | ||
| 595 | + | core.PuregoSafeRegister(&xDeviceGLibType, libs, "gdk_device_get_type") | |
| 596 | + | ||
| 597 | + | core.PuregoSafeRegister(&xDeviceGetActiveLayoutIndex, libs, "gdk_device_get_active_layout_index") | |
| 598 | + | core.PuregoSafeRegister(&xDeviceGetCapsLockState, libs, "gdk_device_get_caps_lock_state") | |
| 599 | + | core.PuregoSafeRegister(&xDeviceGetDeviceTool, libs, "gdk_device_get_device_tool") | |
| 600 | + | core.PuregoSafeRegister(&xDeviceGetDirection, libs, "gdk_device_get_direction") | |
| 601 | + | core.PuregoSafeRegister(&xDeviceGetDisplay, libs, "gdk_device_get_display") | |
| 602 | + | core.PuregoSafeRegister(&xDeviceGetHasCursor, libs, "gdk_device_get_has_cursor") | |
| 603 | + | core.PuregoSafeRegister(&xDeviceGetLayoutNames, libs, "gdk_device_get_layout_names") | |
| 604 | + | core.PuregoSafeRegister(&xDeviceGetModifierState, libs, "gdk_device_get_modifier_state") | |
| 605 | + | core.PuregoSafeRegister(&xDeviceGetName, libs, "gdk_device_get_name") | |
| 606 | + | core.PuregoSafeRegister(&xDeviceGetNumLockState, libs, "gdk_device_get_num_lock_state") | |
| 607 | + | core.PuregoSafeRegister(&xDeviceGetNumTouches, libs, "gdk_device_get_num_touches") | |
| 608 | + | core.PuregoSafeRegister(&xDeviceGetProductId, libs, "gdk_device_get_product_id") | |
| 609 | + | core.PuregoSafeRegister(&xDeviceGetScrollLockState, libs, "gdk_device_get_scroll_lock_state") | |
| 610 | + | core.PuregoSafeRegister(&xDeviceGetSeat, libs, "gdk_device_get_seat") | |
| 611 | + | core.PuregoSafeRegister(&xDeviceGetSource, libs, "gdk_device_get_source") | |
| 612 | + | core.PuregoSafeRegister(&xDeviceGetSurfaceAtPosition, libs, "gdk_device_get_surface_at_position") | |
| 613 | + | core.PuregoSafeRegister(&xDeviceGetTimestamp, libs, "gdk_device_get_timestamp") | |
| 614 | + | core.PuregoSafeRegister(&xDeviceGetVendorId, libs, "gdk_device_get_vendor_id") | |
| 615 | + | core.PuregoSafeRegister(&xDeviceHasBidiLayouts, libs, "gdk_device_has_bidi_layouts") | |
| 619 | 616 | } | |
| @@ -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/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject" | 11 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -46,7 +47,6 @@ type InputSource int | |||||
| 46 | var xInputSourceGLibType func() types.GType | 47 | var xInputSourceGLibType func() types.GType | ||
| 47 | 48 | ||||
| 48 | func InputSourceGLibType() types.GType { | 49 | func InputSourceGLibType() types.GType { | ||
| 49 | - | core.LazyRegister(&xInputSourceGLibType, "GDK", "gdk_input_source_get_type", false) | |||
| 50 | return xInputSourceGLibType() | 50 | return xInputSourceGLibType() | ||
| 51 | } | 51 | } | ||
| 52 | 52 | ||||
| @@ -83,7 +83,6 @@ type Device struct { | |||||
| 83 | var xDeviceGLibType func() types.GType | 83 | var xDeviceGLibType func() types.GType | ||
| 84 | 84 | ||||
| 85 | func DeviceGLibType() types.GType { | 85 | func DeviceGLibType() types.GType { | ||
| 86 | - | core.LazyRegister(&xDeviceGLibType, "GDK", "gdk_device_get_type", false) | |||
| 87 | return xDeviceGLibType() | 86 | return xDeviceGLibType() | ||
| 88 | } | 87 | } | ||
| 89 | 88 | ||||
| @@ -102,8 +101,6 @@ var xDeviceGetActiveLayoutIndex func(uintptr) int | |||||
| 102 | // | 101 | // | ||
| 103 | // This is only relevant for keyboard devices. | 102 | // This is only relevant for keyboard devices. | ||
| 104 | func (x *Device) GetActiveLayoutIndex() int { | 103 | func (x *Device) GetActiveLayoutIndex() int { | ||
| 105 | - | core.LazyRegister(&xDeviceGetActiveLayoutIndex, "GDK", "gdk_device_get_active_layout_index", false) | |||
| 106 | - | ||||
| 107 | cret := xDeviceGetActiveLayoutIndex(x.GoPointer()) | 104 | cret := xDeviceGetActiveLayoutIndex(x.GoPointer()) | ||
| 108 | return cret | 105 | return cret | ||
| 109 | } | 106 | } | ||
| @@ -114,8 +111,6 @@ var xDeviceGetCapsLockState func(uintptr) bool | |||||
| 114 | // | 111 | // | ||
| 115 | // This is only relevant for keyboard devices. | 112 | // This is only relevant for keyboard devices. | ||
| 116 | func (x *Device) GetCapsLockState() bool { | 113 | func (x *Device) GetCapsLockState() bool { | ||
| 117 | - | core.LazyRegister(&xDeviceGetCapsLockState, "GDK", "gdk_device_get_caps_lock_state", false) | |||
| 118 | - | ||||
| 119 | cret := xDeviceGetCapsLockState(x.GoPointer()) | 114 | cret := xDeviceGetCapsLockState(x.GoPointer()) | ||
| 120 | return cret | 115 | return cret | ||
| 121 | } | 116 | } | ||
| @@ -124,7 +119,6 @@ var xDeviceGetDeviceTool func(uintptr) uintptr | |||||
| 124 | 119 | ||||
| 125 | // Retrieves the current tool for @device. | 120 | // Retrieves the current tool for @device. | ||
| 126 | func (x *Device) GetDeviceTool() *DeviceTool { | 121 | func (x *Device) GetDeviceTool() *DeviceTool { | ||
| 127 | - | core.LazyRegister(&xDeviceGetDeviceTool, "GDK", "gdk_device_get_device_tool", false) | |||
| 128 | var cls *DeviceTool | 122 | var cls *DeviceTool | ||
| 129 | 123 | ||||
| 130 | cret := xDeviceGetDeviceTool(x.GoPointer()) | 124 | cret := xDeviceGetDeviceTool(x.GoPointer()) | ||
| @@ -147,8 +141,6 @@ var xDeviceGetDirection func(uintptr) pango.Direction | |||||
| 147 | // The direction of a layout is the direction of the majority | 141 | // The direction of a layout is the direction of the majority | ||
| 148 | // of its symbols. See [func@Pango.unichar_direction]. | 142 | // of its symbols. See [func@Pango.unichar_direction]. | ||
| 149 | func (x *Device) GetDirection() pango.Direction { | 143 | func (x *Device) GetDirection() pango.Direction { | ||
| 150 | - | core.LazyRegister(&xDeviceGetDirection, "GDK", "gdk_device_get_direction", false) | |||
| 151 | - | ||||
| 152 | cret := xDeviceGetDirection(x.GoPointer()) | 144 | cret := xDeviceGetDirection(x.GoPointer()) | ||
| 153 | return cret | 145 | return cret | ||
| 154 | } | 146 | } | ||
| @@ -157,7 +149,6 @@ var xDeviceGetDisplay func(uintptr) uintptr | |||||
| 157 | 149 | ||||
| 158 | // Returns the `GdkDisplay` to which @device pertains. | 150 | // Returns the `GdkDisplay` to which @device pertains. | ||
| 159 | func (x *Device) GetDisplay() *Display { | 151 | func (x *Device) GetDisplay() *Display { | ||
| 160 | - | core.LazyRegister(&xDeviceGetDisplay, "GDK", "gdk_device_get_display", false) | |||
| 161 | var cls *Display | 152 | var cls *Display | ||
| 162 | 153 | ||||
| 163 | cret := xDeviceGetDisplay(x.GoPointer()) | 154 | cret := xDeviceGetDisplay(x.GoPointer()) | ||
| @@ -178,8 +169,6 @@ var xDeviceGetHasCursor func(uintptr) bool | |||||
| 178 | // This is not meaningful for keyboard devices, which | 169 | // This is not meaningful for keyboard devices, which | ||
| 179 | // don't have a pointer. | 170 | // don't have a pointer. | ||
| 180 | func (x *Device) GetHasCursor() bool { | 171 | func (x *Device) GetHasCursor() bool { | ||
| 181 | - | core.LazyRegister(&xDeviceGetHasCursor, "GDK", "gdk_device_get_has_cursor", false) | |||
| 182 | - | ||||
| 183 | cret := xDeviceGetHasCursor(x.GoPointer()) | 172 | cret := xDeviceGetHasCursor(x.GoPointer()) | ||
| 184 | return cret | 173 | return cret | ||
| 185 | } | 174 | } | ||
| @@ -190,8 +179,6 @@ var xDeviceGetLayoutNames func(uintptr) []string | |||||
| 190 | // | 179 | // | ||
| 191 | // This is only relevant for keyboard devices. | 180 | // This is only relevant for keyboard devices. | ||
| 192 | func (x *Device) GetLayoutNames() []string { | 181 | func (x *Device) GetLayoutNames() []string { | ||
| 193 | - | core.LazyRegister(&xDeviceGetLayoutNames, "GDK", "gdk_device_get_layout_names", false) | |||
| 194 | - | ||||
| 195 | cret := xDeviceGetLayoutNames(x.GoPointer()) | 182 | cret := xDeviceGetLayoutNames(x.GoPointer()) | ||
| 196 | return cret | 183 | return cret | ||
| 197 | } | 184 | } | ||
| @@ -202,8 +189,6 @@ var xDeviceGetModifierState func(uintptr) ModifierType | |||||
| 202 | // | 189 | // | ||
| 203 | // This is only relevant for keyboard devices. | 190 | // This is only relevant for keyboard devices. | ||
| 204 | func (x *Device) GetModifierState() ModifierType { | 191 | func (x *Device) GetModifierState() ModifierType { | ||
| 205 | - | core.LazyRegister(&xDeviceGetModifierState, "GDK", "gdk_device_get_modifier_state", false) | |||
| 206 | - | ||||
| 207 | cret := xDeviceGetModifierState(x.GoPointer()) | 192 | cret := xDeviceGetModifierState(x.GoPointer()) | ||
| 208 | return cret | 193 | return cret | ||
| 209 | } | 194 | } | ||
| @@ -212,8 +197,6 @@ var xDeviceGetName func(uintptr) string | |||||
| 212 | 197 | ||||
| 213 | // The name of the device, suitable for showing in a user interface. | 198 | // The name of the device, suitable for showing in a user interface. | ||
| 214 | func (x *Device) GetName() string { | 199 | func (x *Device) GetName() string { | ||
| 215 | - | core.LazyRegister(&xDeviceGetName, "GDK", "gdk_device_get_name", false) | |||
| 216 | - | ||||
| 217 | cret := xDeviceGetName(x.GoPointer()) | 200 | cret := xDeviceGetName(x.GoPointer()) | ||
| 218 | return cret | 201 | return cret | ||
| 219 | } | 202 | } | ||
| @@ -224,8 +207,6 @@ var xDeviceGetNumLockState func(uintptr) bool | |||||
| 224 | // | 207 | // | ||
| 225 | // This is only relevant for keyboard devices. | 208 | // This is only relevant for keyboard devices. | ||
| 226 | func (x *Device) GetNumLockState() bool { | 209 | func (x *Device) GetNumLockState() bool { | ||
| 227 | - | core.LazyRegister(&xDeviceGetNumLockState, "GDK", "gdk_device_get_num_lock_state", false) | |||
| 228 | - | ||||
| 229 | cret := xDeviceGetNumLockState(x.GoPointer()) | 210 | cret := xDeviceGetNumLockState(x.GoPointer()) | ||
| 230 | return cret | 211 | return cret | ||
| 231 | } | 212 | } | ||
| @@ -234,8 +215,6 @@ var xDeviceGetNumTouches func(uintptr) uint | |||||
| 234 | 215 | ||||
| 235 | // Retrieves the number of touch points associated to @device. | 216 | // Retrieves the number of touch points associated to @device. | ||
| 236 | func (x *Device) GetNumTouches() uint { | 217 | func (x *Device) GetNumTouches() uint { | ||
| 237 | - | core.LazyRegister(&xDeviceGetNumTouches, "GDK", "gdk_device_get_num_touches", false) | |||
| 238 | - | ||||
| 239 | cret := xDeviceGetNumTouches(x.GoPointer()) | 218 | cret := xDeviceGetNumTouches(x.GoPointer()) | ||
| 240 | return cret | 219 | return cret | ||
| 241 | } | 220 | } | ||
| @@ -247,8 +226,6 @@ var xDeviceGetProductId func(uintptr) string | |||||
| 247 | // This ID is retrieved from the device, and does not change. | 226 | // This ID is retrieved from the device, and does not change. | ||
| 248 | // See [method@Gdk.Device.get_vendor_id] for more information. | 227 | // See [method@Gdk.Device.get_vendor_id] for more information. | ||
| 249 | func (x *Device) GetProductId() string { | 228 | func (x *Device) GetProductId() string { | ||
| 250 | - | core.LazyRegister(&xDeviceGetProductId, "GDK", "gdk_device_get_product_id", false) | |||
| 251 | - | ||||
| 252 | cret := xDeviceGetProductId(x.GoPointer()) | 229 | cret := xDeviceGetProductId(x.GoPointer()) | ||
| 253 | return cret | 230 | return cret | ||
| 254 | } | 231 | } | ||
| @@ -259,8 +236,6 @@ var xDeviceGetScrollLockState func(uintptr) bool | |||||
| 259 | // | 236 | // | ||
| 260 | // This is only relevant for keyboard devices. | 237 | // This is only relevant for keyboard devices. | ||
| 261 | func (x *Device) GetScrollLockState() bool { | 238 | func (x *Device) GetScrollLockState() bool { | ||
| 262 | - | core.LazyRegister(&xDeviceGetScrollLockState, "GDK", "gdk_device_get_scroll_lock_state", false) | |||
| 263 | - | ||||
| 264 | cret := xDeviceGetScrollLockState(x.GoPointer()) | 239 | cret := xDeviceGetScrollLockState(x.GoPointer()) | ||
| 265 | return cret | 240 | return cret | ||
| 266 | } | 241 | } | ||
| @@ -269,7 +244,6 @@ var xDeviceGetSeat func(uintptr) uintptr | |||||
| 269 | 244 | ||||
| 270 | // Returns the `GdkSeat` the device belongs to. | 245 | // Returns the `GdkSeat` the device belongs to. | ||
| 271 | func (x *Device) GetSeat() *Seat { | 246 | func (x *Device) GetSeat() *Seat { | ||
| 272 | - | core.LazyRegister(&xDeviceGetSeat, "GDK", "gdk_device_get_seat", false) | |||
| 273 | var cls *Seat | 247 | var cls *Seat | ||
| 274 | 248 | ||||
| 275 | cret := xDeviceGetSeat(x.GoPointer()) | 249 | cret := xDeviceGetSeat(x.GoPointer()) | ||
| @@ -287,8 +261,6 @@ var xDeviceGetSource func(uintptr) InputSource | |||||
| 287 | 261 | ||||
| 288 | // Determines the type of the device. | 262 | // Determines the type of the device. | ||
| 289 | func (x *Device) GetSource() InputSource { | 263 | func (x *Device) GetSource() InputSource { | ||
| 290 | - | core.LazyRegister(&xDeviceGetSource, "GDK", "gdk_device_get_source", false) | |||
| 291 | - | ||||
| 292 | cret := xDeviceGetSource(x.GoPointer()) | 264 | cret := xDeviceGetSource(x.GoPointer()) | ||
| 293 | return cret | 265 | return cret | ||
| 294 | } | 266 | } | ||
| @@ -301,7 +273,6 @@ var xDeviceGetSurfaceAtPosition func(uintptr, *float64, *float64) uintptr | |||||
| 301 | // Returns %NULL if the surface tree under @device is not known to GDK | 273 | // Returns %NULL if the surface tree under @device is not known to GDK | ||
| 302 | // (for example, belongs to another application). | 274 | // (for example, belongs to another application). | ||
| 303 | func (x *Device) GetSurfaceAtPosition(WinXVar *float64, WinYVar *float64) *Surface { | 275 | func (x *Device) GetSurfaceAtPosition(WinXVar *float64, WinYVar *float64) *Surface { | ||
| 304 | - | core.LazyRegister(&xDeviceGetSurfaceAtPosition, "GDK", "gdk_device_get_surface_at_position", false) | |||
| 305 | var cls *Surface | 276 | var cls *Surface | ||
| 306 | 277 | ||||
| 307 | cret := xDeviceGetSurfaceAtPosition(x.GoPointer(), WinXVar, WinYVar) | 278 | cret := xDeviceGetSurfaceAtPosition(x.GoPointer(), WinXVar, WinYVar) | ||
| @@ -324,8 +295,6 @@ var xDeviceGetTimestamp func(uintptr) uint32 | |||||
| 324 | // events for a device that are not received from the OS, and will not | 295 | // events for a device that are not received from the OS, and will not | ||
| 325 | // update the timestamp). | 296 | // update the timestamp). | ||
| 326 | func (x *Device) GetTimestamp() uint32 { | 297 | func (x *Device) GetTimestamp() uint32 { | ||
| 327 | - | core.LazyRegister(&xDeviceGetTimestamp, "GDK", "gdk_device_get_timestamp", false) | |||
| 328 | - | ||||
| 329 | cret := xDeviceGetTimestamp(x.GoPointer()) | 298 | cret := xDeviceGetTimestamp(x.GoPointer()) | ||
| 330 | return cret | 299 | return cret | ||
| 331 | } | 300 | } | ||
| @@ -362,8 +331,6 @@ var xDeviceGetVendorId func(uintptr) string | |||||
| 362 | // | 331 | // | ||
| 363 | // ``` | 332 | // ``` | ||
| 364 | func (x *Device) GetVendorId() string { | 333 | func (x *Device) GetVendorId() string { | ||
| 365 | - | core.LazyRegister(&xDeviceGetVendorId, "GDK", "gdk_device_get_vendor_id", false) | |||
| 366 | - | ||||
| 367 | cret := xDeviceGetVendorId(x.GoPointer()) | 334 | cret := xDeviceGetVendorId(x.GoPointer()) | ||
| 368 | return cret | 335 | return cret | ||
| 369 | } | 336 | } | ||
| @@ -375,8 +342,6 @@ var xDeviceHasBidiLayouts func(uintptr) bool | |||||
| 375 | // | 342 | // | ||
| 376 | // This is only relevant for keyboard devices. | 343 | // This is only relevant for keyboard devices. | ||
| 377 | func (x *Device) HasBidiLayouts() bool { | 344 | func (x *Device) HasBidiLayouts() bool { | ||
| 378 | - | core.LazyRegister(&xDeviceHasBidiLayouts, "GDK", "gdk_device_has_bidi_layouts", false) | |||
| 379 | - | ||||
| 380 | cret := xDeviceHasBidiLayouts(x.GoPointer()) | 345 | cret := xDeviceHasBidiLayouts(x.GoPointer()) | ||
| 381 | return cret | 346 | return cret | ||
| 382 | } | 347 | } | ||
| @@ -616,4 +581,36 @@ func (x *Device) ConnectToolChanged(cb *func(Device, uintptr)) uint { | |||||
| 616 | func init() { | 581 | func init() { | ||
| 617 | core.SetPackageName("GDK", "gtk4") | 582 | core.SetPackageName("GDK", "gtk4") | ||
| 618 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 583 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 584 | + | var libs []uintptr | |||
| 585 | + | for _, libPath := range core.GetPaths("GDK") { | |||
| 586 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 587 | + | if err != nil { | |||
| 588 | + | panic(err) | |||
| 589 | + | } | |||
| 590 | + | libs = append(libs, lib) | |||
| 591 | + | } | |||
| 592 | + | ||||
| 593 | + | core.PuregoSafeRegister(&xInputSourceGLibType, libs, "gdk_input_source_get_type") | |||
| 594 | + | ||||
| 595 | + | core.PuregoSafeRegister(&xDeviceGLibType, libs, "gdk_device_get_type") | |||
| 596 | + | ||||
| 597 | + | core.PuregoSafeRegister(&xDeviceGetActiveLayoutIndex, libs, "gdk_device_get_active_layout_index") | |||
| 598 | + | core.PuregoSafeRegister(&xDeviceGetCapsLockState, libs, "gdk_device_get_caps_lock_state") | |||
| 599 | + | core.PuregoSafeRegister(&xDeviceGetDeviceTool, libs, "gdk_device_get_device_tool") | |||
| 600 | + | core.PuregoSafeRegister(&xDeviceGetDirection, libs, "gdk_device_get_direction") | |||
| 601 | + | core.PuregoSafeRegister(&xDeviceGetDisplay, libs, "gdk_device_get_display") | |||
| 602 | + | core.PuregoSafeRegister(&xDeviceGetHasCursor, libs, "gdk_device_get_has_cursor") | |||
| 603 | + | core.PuregoSafeRegister(&xDeviceGetLayoutNames, libs, "gdk_device_get_layout_names") | |||
| 604 | + | core.PuregoSafeRegister(&xDeviceGetModifierState, libs, "gdk_device_get_modifier_state") | |||
| 605 | + | core.PuregoSafeRegister(&xDeviceGetName, libs, "gdk_device_get_name") | |||
| 606 | + | core.PuregoSafeRegister(&xDeviceGetNumLockState, libs, "gdk_device_get_num_lock_state") | |||
| 607 | + | core.PuregoSafeRegister(&xDeviceGetNumTouches, libs, "gdk_device_get_num_touches") | |||
| 608 | + | core.PuregoSafeRegister(&xDeviceGetProductId, libs, "gdk_device_get_product_id") | |||
| 609 | + | core.PuregoSafeRegister(&xDeviceGetScrollLockState, libs, "gdk_device_get_scroll_lock_state") | |||
| 610 | + | core.PuregoSafeRegister(&xDeviceGetSeat, libs, "gdk_device_get_seat") | |||
| 611 | + | core.PuregoSafeRegister(&xDeviceGetSource, libs, "gdk_device_get_source") | |||
| 612 | + | core.PuregoSafeRegister(&xDeviceGetSurfaceAtPosition, libs, "gdk_device_get_surface_at_position") | |||
| 613 | + | core.PuregoSafeRegister(&xDeviceGetTimestamp, libs, "gdk_device_get_timestamp") | |||
| 614 | + | core.PuregoSafeRegister(&xDeviceGetVendorId, libs, "gdk_device_get_vendor_id") | |||
| 615 | + | core.PuregoSafeRegister(&xDeviceHasBidiLayouts, libs, "gdk_device_has_bidi_layouts") | |||
| 619 | } | 616 | } | ||