fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
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.20260714181430-679a9ed72959 | |
| 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.20260714181430-679a9ed72959 |
| 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 -16 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32
| @@ -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/gdk" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -94,6 +93,7 @@ type TabBar struct { | |||
| 94 | 93 | var xTabBarGLibType func() types.GType | |
| 95 | 94 | ||
| 96 | 95 | func TabBarGLibType() types.GType { | |
| 96 | + | core.LazyRegister(&xTabBarGLibType, "ADW", "adw_tab_bar_get_type", false) | |
| 97 | 97 | return xTabBarGLibType() | |
| 98 | 98 | } | |
| 99 | 99 | ||
| @@ -107,6 +107,7 @@ var xNewTabBar func() uintptr | |||
| 107 | 107 | ||
| 108 | 108 | // Creates a new `AdwTabBar`. | |
| 109 | 109 | func NewTabBar() *TabBar { | |
| 110 | + | core.LazyRegister(&xNewTabBar, "ADW", "adw_tab_bar_new", false) | |
| 110 | 111 | var cls *TabBar | |
| 111 | 112 | ||
| 112 | 113 | cret := xNewTabBar() | |
| @@ -124,6 +125,8 @@ var xTabBarGetAutohide func(uintptr) bool | |||
| 124 | 125 | ||
| 125 | 126 | // Gets whether the tabs automatically hide. | |
| 126 | 127 | func (x *TabBar) GetAutohide() bool { | |
| 128 | + | core.LazyRegister(&xTabBarGetAutohide, "ADW", "adw_tab_bar_get_autohide", false) | |
| 129 | + | ||
| 127 | 130 | cret := xTabBarGetAutohide(x.GoPointer()) | |
| 128 | 131 | return cret | |
| 129 | 132 | } | |
| @@ -132,6 +135,7 @@ var xTabBarGetEndActionWidget func(uintptr) uintptr | |||
| 132 | 135 | ||
| 133 | 136 | // Gets the widget shown after the tabs. | |
| 134 | 137 | func (x *TabBar) GetEndActionWidget() *gtk.Widget { | |
| 138 | + | core.LazyRegister(&xTabBarGetEndActionWidget, "ADW", "adw_tab_bar_get_end_action_widget", false) | |
| 135 | 139 | var cls *gtk.Widget | |
| 136 | 140 | ||
| 137 | 141 | cret := xTabBarGetEndActionWidget(x.GoPointer()) | |
| @@ -149,6 +153,8 @@ var xTabBarGetExpandTabs func(uintptr) bool | |||
| 149 | 153 | ||
| 150 | 154 | // Gets whether tabs expand to full width. | |
| 151 | 155 | func (x *TabBar) GetExpandTabs() bool { | |
| 156 | + | core.LazyRegister(&xTabBarGetExpandTabs, "ADW", "adw_tab_bar_get_expand_tabs", false) | |
| 157 | + | ||
| 152 | 158 | cret := xTabBarGetExpandTabs(x.GoPointer()) | |
| 153 | 159 | return cret | |
| 154 | 160 | } | |
| @@ -163,6 +169,8 @@ var xTabBarGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||
| 163 | 169 | // The action will be a subset of what was originally passed to | |
| 164 | 170 | // [method@TabBar.setup_extra_drop_target]. | |
| 165 | 171 | func (x *TabBar) GetExtraDragPreferredAction() gdk.DragAction { | |
| 172 | + | core.LazyRegister(&xTabBarGetExtraDragPreferredAction, "ADW", "adw_tab_bar_get_extra_drag_preferred_action", false) | |
| 173 | + | ||
| 166 | 174 | cret := xTabBarGetExtraDragPreferredAction(x.GoPointer()) | |
| 167 | 175 | return cret | |
| 168 | 176 | } | |
| @@ -171,6 +179,8 @@ var xTabBarGetExtraDragPreload func(uintptr) bool | |||
| 171 | 179 | ||
| 172 | 180 | // Gets whether drop data should be preloaded on hover. | |
| 173 | 181 | func (x *TabBar) GetExtraDragPreload() bool { | |
| 182 | + | core.LazyRegister(&xTabBarGetExtraDragPreload, "ADW", "adw_tab_bar_get_extra_drag_preload", false) | |
| 183 | + | ||
| 174 | 184 | cret := xTabBarGetExtraDragPreload(x.GoPointer()) | |
| 175 | 185 | return cret | |
| 176 | 186 | } | |
| @@ -179,6 +189,8 @@ var xTabBarGetInverted func(uintptr) bool | |||
| 179 | 189 | ||
| 180 | 190 | // Gets whether tabs use inverted layout. | |
| 181 | 191 | func (x *TabBar) GetInverted() bool { | |
| 192 | + | core.LazyRegister(&xTabBarGetInverted, "ADW", "adw_tab_bar_get_inverted", false) | |
| 193 | + | ||
| 182 | 194 | cret := xTabBarGetInverted(x.GoPointer()) | |
| 183 | 195 | return cret | |
| 184 | 196 | } | |
| @@ -189,6 +201,8 @@ var xTabBarGetIsOverflowing func(uintptr) bool | |||
| 189 | 201 | // | |
| 190 | 202 | // If `TRUE`, all tabs cannot be displayed at once and require scrolling. | |
| 191 | 203 | func (x *TabBar) GetIsOverflowing() bool { | |
| 204 | + | core.LazyRegister(&xTabBarGetIsOverflowing, "ADW", "adw_tab_bar_get_is_overflowing", false) | |
| 205 | + | ||
| 192 | 206 | cret := xTabBarGetIsOverflowing(x.GoPointer()) | |
| 193 | 207 | return cret | |
| 194 | 208 | } | |
| @@ -197,6 +211,7 @@ var xTabBarGetStartActionWidget func(uintptr) uintptr | |||
| 197 | 211 | ||
| 198 | 212 | // Gets the widget shown before the tabs. | |
| 199 | 213 | func (x *TabBar) GetStartActionWidget() *gtk.Widget { | |
| 214 | + | core.LazyRegister(&xTabBarGetStartActionWidget, "ADW", "adw_tab_bar_get_start_action_widget", false) | |
| 200 | 215 | var cls *gtk.Widget | |
| 201 | 216 | ||
| 202 | 217 | cret := xTabBarGetStartActionWidget(x.GoPointer()) | |
| @@ -216,6 +231,8 @@ var xTabBarGetTabsRevealed func(uintptr) bool | |||
| 216 | 231 | // | |
| 217 | 232 | // See [property@TabBar:autohide]. | |
| 218 | 233 | func (x *TabBar) GetTabsRevealed() bool { | |
| 234 | + | core.LazyRegister(&xTabBarGetTabsRevealed, "ADW", "adw_tab_bar_get_tabs_revealed", false) | |
| 235 | + | ||
| 219 | 236 | cret := xTabBarGetTabsRevealed(x.GoPointer()) | |
| 220 | 237 | return cret | |
| 221 | 238 | } | |
| @@ -224,6 +241,7 @@ var xTabBarGetView func(uintptr) uintptr | |||
| 224 | 241 | ||
| 225 | 242 | // Gets the tab view @self controls. | |
| 226 | 243 | func (x *TabBar) GetView() *TabView { | |
| 244 | + | core.LazyRegister(&xTabBarGetView, "ADW", "adw_tab_bar_get_view", false) | |
| 227 | 245 | var cls *TabView | |
| 228 | 246 | ||
| 229 | 247 | cret := xTabBarGetView(x.GoPointer()) | |
| @@ -246,6 +264,8 @@ var xTabBarSetAutohide func(uintptr, bool) | |||
| 246 | 264 | // | |
| 247 | 265 | // See [property@TabBar:tabs-revealed]. | |
| 248 | 266 | func (x *TabBar) SetAutohide(AutohideVar bool) { | |
| 267 | + | core.LazyRegister(&xTabBarSetAutohide, "ADW", "adw_tab_bar_set_autohide", false) | |
| 268 | + | ||
| 249 | 269 | xTabBarSetAutohide(x.GoPointer(), AutohideVar) | |
| 250 | 270 | } | |
| 251 | 271 | ||
| @@ -253,6 +273,8 @@ var xTabBarSetEndActionWidget func(uintptr, uintptr) | |||
| 253 | 273 | ||
| 254 | 274 | // Sets the widget to show after the tabs. | |
| 255 | 275 | func (x *TabBar) SetEndActionWidget(WidgetVar *gtk.Widget) { | |
| 276 | + | core.LazyRegister(&xTabBarSetEndActionWidget, "ADW", "adw_tab_bar_set_end_action_widget", false) | |
| 277 | + | ||
| 256 | 278 | xTabBarSetEndActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | |
| 257 | 279 | } | |
| 258 | 280 | ||
| @@ -263,6 +285,8 @@ var xTabBarSetExpandTabs func(uintptr, bool) | |||
| 263 | 285 | // If set to `TRUE`, the tabs will always vary width filling the whole width | |
| 264 | 286 | // when possible, otherwise tabs will always have the minimum possible size. | |
| 265 | 287 | func (x *TabBar) SetExpandTabs(ExpandTabsVar bool) { | |
| 288 | + | core.LazyRegister(&xTabBarSetExpandTabs, "ADW", "adw_tab_bar_set_expand_tabs", false) | |
| 289 | + | ||
| 266 | 290 | xTabBarSetExpandTabs(x.GoPointer(), ExpandTabsVar) | |
| 267 | 291 | } | |
| 268 | 292 | ||
| @@ -272,6 +296,8 @@ var xTabBarSetExtraDragPreload func(uintptr, bool) | |||
| 272 | 296 | // | |
| 273 | 297 | // See [property@Gtk.DropTarget:preload]. | |
| 274 | 298 | func (x *TabBar) SetExtraDragPreload(PreloadVar bool) { | |
| 299 | + | core.LazyRegister(&xTabBarSetExtraDragPreload, "ADW", "adw_tab_bar_set_extra_drag_preload", false) | |
| 300 | + | ||
| 275 | 301 | xTabBarSetExtraDragPreload(x.GoPointer(), PreloadVar) | |
| 276 | 302 | } | |
| 277 | 303 | ||
| @@ -282,6 +308,8 @@ var xTabBarSetInverted func(uintptr, bool) | |||
| 282 | 308 | // If set to `TRUE`, non-pinned tabs will have the close button at the beginning | |
| 283 | 309 | // and the indicator at the end rather than the opposite. | |
| 284 | 310 | func (x *TabBar) SetInverted(InvertedVar bool) { | |
| 311 | + | core.LazyRegister(&xTabBarSetInverted, "ADW", "adw_tab_bar_set_inverted", false) | |
| 312 | + | ||
| 285 | 313 | xTabBarSetInverted(x.GoPointer(), InvertedVar) | |
| 286 | 314 | } | |
| 287 | 315 | ||
| @@ -289,6 +317,8 @@ var xTabBarSetStartActionWidget func(uintptr, uintptr) | |||
| 289 | 317 | ||
| 290 | 318 | // Sets the widget to show before the tabs. | |
| 291 | 319 | func (x *TabBar) SetStartActionWidget(WidgetVar *gtk.Widget) { | |
| 320 | + | core.LazyRegister(&xTabBarSetStartActionWidget, "ADW", "adw_tab_bar_set_start_action_widget", false) | |
| 321 | + | ||
| 292 | 322 | xTabBarSetStartActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | |
| 293 | 323 | } | |
| 294 | 324 | ||
| @@ -296,6 +326,8 @@ var xTabBarSetView func(uintptr, uintptr) | |||
| 296 | 326 | ||
| 297 | 327 | // Sets the tab view @self controls. | |
| 298 | 328 | func (x *TabBar) SetView(ViewVar *TabView) { | |
| 329 | + | core.LazyRegister(&xTabBarSetView, "ADW", "adw_tab_bar_set_view", false) | |
| 330 | + | ||
| 299 | 331 | xTabBarSetView(x.GoPointer(), ViewVar.GoPointer()) | |
| 300 | 332 | } | |
| 301 | 333 | ||
| @@ -311,6 +343,8 @@ var xTabBarSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType, uin | |||
| 311 | 343 | // | |
| 312 | 344 | // The [signal@TabBar::extra-drag-drop] signal can be used to handle the drop. | |
| 313 | 345 | func (x *TabBar) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | |
| 346 | + | core.LazyRegister(&xTabBarSetupExtraDropTarget, "ADW", "adw_tab_bar_setup_extra_drop_target", false) | |
| 347 | + | ||
| 314 | 348 | xTabBarSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | |
| 315 | 349 | } | |
| 316 | 350 | ||
| @@ -765,35 +799,4 @@ func (x *TabBar) GetBuildableId() string { | |||
| 765 | 799 | func init() { | |
| 766 | 800 | core.SetPackageName("ADW", "libadwaita-1") | |
| 767 | 801 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 768 | - | var libs []uintptr | |
| 769 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 770 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 771 | - | if err != nil { | |
| 772 | - | panic(err) | |
| 773 | - | } | |
| 774 | - | libs = append(libs, lib) | |
| 775 | - | } | |
| 776 | - | ||
| 777 | - | core.PuregoSafeRegister(&xTabBarGLibType, libs, "adw_tab_bar_get_type") | |
| 778 | - | ||
| 779 | - | core.PuregoSafeRegister(&xNewTabBar, libs, "adw_tab_bar_new") | |
| 780 | - | ||
| 781 | - | core.PuregoSafeRegister(&xTabBarGetAutohide, libs, "adw_tab_bar_get_autohide") | |
| 782 | - | core.PuregoSafeRegister(&xTabBarGetEndActionWidget, libs, "adw_tab_bar_get_end_action_widget") | |
| 783 | - | core.PuregoSafeRegister(&xTabBarGetExpandTabs, libs, "adw_tab_bar_get_expand_tabs") | |
| 784 | - | core.PuregoSafeRegister(&xTabBarGetExtraDragPreferredAction, libs, "adw_tab_bar_get_extra_drag_preferred_action") | |
| 785 | - | core.PuregoSafeRegister(&xTabBarGetExtraDragPreload, libs, "adw_tab_bar_get_extra_drag_preload") | |
| 786 | - | core.PuregoSafeRegister(&xTabBarGetInverted, libs, "adw_tab_bar_get_inverted") | |
| 787 | - | core.PuregoSafeRegister(&xTabBarGetIsOverflowing, libs, "adw_tab_bar_get_is_overflowing") | |
| 788 | - | core.PuregoSafeRegister(&xTabBarGetStartActionWidget, libs, "adw_tab_bar_get_start_action_widget") | |
| 789 | - | core.PuregoSafeRegister(&xTabBarGetTabsRevealed, libs, "adw_tab_bar_get_tabs_revealed") | |
| 790 | - | core.PuregoSafeRegister(&xTabBarGetView, libs, "adw_tab_bar_get_view") | |
| 791 | - | core.PuregoSafeRegister(&xTabBarSetAutohide, libs, "adw_tab_bar_set_autohide") | |
| 792 | - | core.PuregoSafeRegister(&xTabBarSetEndActionWidget, libs, "adw_tab_bar_set_end_action_widget") | |
| 793 | - | core.PuregoSafeRegister(&xTabBarSetExpandTabs, libs, "adw_tab_bar_set_expand_tabs") | |
| 794 | - | core.PuregoSafeRegister(&xTabBarSetExtraDragPreload, libs, "adw_tab_bar_set_extra_drag_preload") | |
| 795 | - | core.PuregoSafeRegister(&xTabBarSetInverted, libs, "adw_tab_bar_set_inverted") | |
| 796 | - | core.PuregoSafeRegister(&xTabBarSetStartActionWidget, libs, "adw_tab_bar_set_start_action_widget") | |
| 797 | - | core.PuregoSafeRegister(&xTabBarSetView, libs, "adw_tab_bar_set_view") | |
| 798 | - | core.PuregoSafeRegister(&xTabBarSetupExtraDropTarget, libs, "adw_tab_bar_setup_extra_drop_target") | |
| 799 | 802 | } | |
| @@ -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/gdk" | 9 | "github.com/bnema/puregotk/v4/gdk" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -94,6 +93,7 @@ type TabBar struct { | |||||
| 94 | var xTabBarGLibType func() types.GType | 93 | var xTabBarGLibType func() types.GType | ||
| 95 | 94 | ||||
| 96 | func TabBarGLibType() types.GType { | 95 | func TabBarGLibType() types.GType { | ||
| 96 | + | core.LazyRegister(&xTabBarGLibType, "ADW", "adw_tab_bar_get_type", false) | |||
| 97 | return xTabBarGLibType() | 97 | return xTabBarGLibType() | ||
| 98 | } | 98 | } | ||
| 99 | 99 | ||||
| @@ -107,6 +107,7 @@ var xNewTabBar func() uintptr | |||||
| 107 | 107 | ||||
| 108 | // Creates a new `AdwTabBar`. | 108 | // Creates a new `AdwTabBar`. | ||
| 109 | func NewTabBar() *TabBar { | 109 | func NewTabBar() *TabBar { | ||
| 110 | + | core.LazyRegister(&xNewTabBar, "ADW", "adw_tab_bar_new", false) | |||
| 110 | var cls *TabBar | 111 | var cls *TabBar | ||
| 111 | 112 | ||||
| 112 | cret := xNewTabBar() | 113 | cret := xNewTabBar() | ||
| @@ -124,6 +125,8 @@ var xTabBarGetAutohide func(uintptr) bool | |||||
| 124 | 125 | ||||
| 125 | // Gets whether the tabs automatically hide. | 126 | // Gets whether the tabs automatically hide. | ||
| 126 | func (x *TabBar) GetAutohide() bool { | 127 | func (x *TabBar) GetAutohide() bool { | ||
| 128 | + | core.LazyRegister(&xTabBarGetAutohide, "ADW", "adw_tab_bar_get_autohide", false) | |||
| 129 | + | ||||
| 127 | cret := xTabBarGetAutohide(x.GoPointer()) | 130 | cret := xTabBarGetAutohide(x.GoPointer()) | ||
| 128 | return cret | 131 | return cret | ||
| 129 | } | 132 | } | ||
| @@ -132,6 +135,7 @@ var xTabBarGetEndActionWidget func(uintptr) uintptr | |||||
| 132 | 135 | ||||
| 133 | // Gets the widget shown after the tabs. | 136 | // Gets the widget shown after the tabs. | ||
| 134 | func (x *TabBar) GetEndActionWidget() *gtk.Widget { | 137 | func (x *TabBar) GetEndActionWidget() *gtk.Widget { | ||
| 138 | + | core.LazyRegister(&xTabBarGetEndActionWidget, "ADW", "adw_tab_bar_get_end_action_widget", false) | |||
| 135 | var cls *gtk.Widget | 139 | var cls *gtk.Widget | ||
| 136 | 140 | ||||
| 137 | cret := xTabBarGetEndActionWidget(x.GoPointer()) | 141 | cret := xTabBarGetEndActionWidget(x.GoPointer()) | ||
| @@ -149,6 +153,8 @@ var xTabBarGetExpandTabs func(uintptr) bool | |||||
| 149 | 153 | ||||
| 150 | // Gets whether tabs expand to full width. | 154 | // Gets whether tabs expand to full width. | ||
| 151 | func (x *TabBar) GetExpandTabs() bool { | 155 | func (x *TabBar) GetExpandTabs() bool { | ||
| 156 | + | core.LazyRegister(&xTabBarGetExpandTabs, "ADW", "adw_tab_bar_get_expand_tabs", false) | |||
| 157 | + | ||||
| 152 | cret := xTabBarGetExpandTabs(x.GoPointer()) | 158 | cret := xTabBarGetExpandTabs(x.GoPointer()) | ||
| 153 | return cret | 159 | return cret | ||
| 154 | } | 160 | } | ||
| @@ -163,6 +169,8 @@ var xTabBarGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||||
| 163 | // The action will be a subset of what was originally passed to | 169 | // The action will be a subset of what was originally passed to | ||
| 164 | // [method@TabBar.setup_extra_drop_target]. | 170 | // [method@TabBar.setup_extra_drop_target]. | ||
| 165 | func (x *TabBar) GetExtraDragPreferredAction() gdk.DragAction { | 171 | func (x *TabBar) GetExtraDragPreferredAction() gdk.DragAction { | ||
| 172 | + | core.LazyRegister(&xTabBarGetExtraDragPreferredAction, "ADW", "adw_tab_bar_get_extra_drag_preferred_action", false) | |||
| 173 | + | ||||
| 166 | cret := xTabBarGetExtraDragPreferredAction(x.GoPointer()) | 174 | cret := xTabBarGetExtraDragPreferredAction(x.GoPointer()) | ||
| 167 | return cret | 175 | return cret | ||
| 168 | } | 176 | } | ||
| @@ -171,6 +179,8 @@ var xTabBarGetExtraDragPreload func(uintptr) bool | |||||
| 171 | 179 | ||||
| 172 | // Gets whether drop data should be preloaded on hover. | 180 | // Gets whether drop data should be preloaded on hover. | ||
| 173 | func (x *TabBar) GetExtraDragPreload() bool { | 181 | func (x *TabBar) GetExtraDragPreload() bool { | ||
| 182 | + | core.LazyRegister(&xTabBarGetExtraDragPreload, "ADW", "adw_tab_bar_get_extra_drag_preload", false) | |||
| 183 | + | ||||
| 174 | cret := xTabBarGetExtraDragPreload(x.GoPointer()) | 184 | cret := xTabBarGetExtraDragPreload(x.GoPointer()) | ||
| 175 | return cret | 185 | return cret | ||
| 176 | } | 186 | } | ||
| @@ -179,6 +189,8 @@ var xTabBarGetInverted func(uintptr) bool | |||||
| 179 | 189 | ||||
| 180 | // Gets whether tabs use inverted layout. | 190 | // Gets whether tabs use inverted layout. | ||
| 181 | func (x *TabBar) GetInverted() bool { | 191 | func (x *TabBar) GetInverted() bool { | ||
| 192 | + | core.LazyRegister(&xTabBarGetInverted, "ADW", "adw_tab_bar_get_inverted", false) | |||
| 193 | + | ||||
| 182 | cret := xTabBarGetInverted(x.GoPointer()) | 194 | cret := xTabBarGetInverted(x.GoPointer()) | ||
| 183 | return cret | 195 | return cret | ||
| 184 | } | 196 | } | ||
| @@ -189,6 +201,8 @@ var xTabBarGetIsOverflowing func(uintptr) bool | |||||
| 189 | // | 201 | // | ||
| 190 | // If `TRUE`, all tabs cannot be displayed at once and require scrolling. | 202 | // If `TRUE`, all tabs cannot be displayed at once and require scrolling. | ||
| 191 | func (x *TabBar) GetIsOverflowing() bool { | 203 | func (x *TabBar) GetIsOverflowing() bool { | ||
| 204 | + | core.LazyRegister(&xTabBarGetIsOverflowing, "ADW", "adw_tab_bar_get_is_overflowing", false) | |||
| 205 | + | ||||
| 192 | cret := xTabBarGetIsOverflowing(x.GoPointer()) | 206 | cret := xTabBarGetIsOverflowing(x.GoPointer()) | ||
| 193 | return cret | 207 | return cret | ||
| 194 | } | 208 | } | ||
| @@ -197,6 +211,7 @@ var xTabBarGetStartActionWidget func(uintptr) uintptr | |||||
| 197 | 211 | ||||
| 198 | // Gets the widget shown before the tabs. | 212 | // Gets the widget shown before the tabs. | ||
| 199 | func (x *TabBar) GetStartActionWidget() *gtk.Widget { | 213 | func (x *TabBar) GetStartActionWidget() *gtk.Widget { | ||
| 214 | + | core.LazyRegister(&xTabBarGetStartActionWidget, "ADW", "adw_tab_bar_get_start_action_widget", false) | |||
| 200 | var cls *gtk.Widget | 215 | var cls *gtk.Widget | ||
| 201 | 216 | ||||
| 202 | cret := xTabBarGetStartActionWidget(x.GoPointer()) | 217 | cret := xTabBarGetStartActionWidget(x.GoPointer()) | ||
| @@ -216,6 +231,8 @@ var xTabBarGetTabsRevealed func(uintptr) bool | |||||
| 216 | // | 231 | // | ||
| 217 | // See [property@TabBar:autohide]. | 232 | // See [property@TabBar:autohide]. | ||
| 218 | func (x *TabBar) GetTabsRevealed() bool { | 233 | func (x *TabBar) GetTabsRevealed() bool { | ||
| 234 | + | core.LazyRegister(&xTabBarGetTabsRevealed, "ADW", "adw_tab_bar_get_tabs_revealed", false) | |||
| 235 | + | ||||
| 219 | cret := xTabBarGetTabsRevealed(x.GoPointer()) | 236 | cret := xTabBarGetTabsRevealed(x.GoPointer()) | ||
| 220 | return cret | 237 | return cret | ||
| 221 | } | 238 | } | ||
| @@ -224,6 +241,7 @@ var xTabBarGetView func(uintptr) uintptr | |||||
| 224 | 241 | ||||
| 225 | // Gets the tab view @self controls. | 242 | // Gets the tab view @self controls. | ||
| 226 | func (x *TabBar) GetView() *TabView { | 243 | func (x *TabBar) GetView() *TabView { | ||
| 244 | + | core.LazyRegister(&xTabBarGetView, "ADW", "adw_tab_bar_get_view", false) | |||
| 227 | var cls *TabView | 245 | var cls *TabView | ||
| 228 | 246 | ||||
| 229 | cret := xTabBarGetView(x.GoPointer()) | 247 | cret := xTabBarGetView(x.GoPointer()) | ||
| @@ -246,6 +264,8 @@ var xTabBarSetAutohide func(uintptr, bool) | |||||
| 246 | // | 264 | // | ||
| 247 | // See [property@TabBar:tabs-revealed]. | 265 | // See [property@TabBar:tabs-revealed]. | ||
| 248 | func (x *TabBar) SetAutohide(AutohideVar bool) { | 266 | func (x *TabBar) SetAutohide(AutohideVar bool) { | ||
| 267 | + | core.LazyRegister(&xTabBarSetAutohide, "ADW", "adw_tab_bar_set_autohide", false) | |||
| 268 | + | ||||
| 249 | xTabBarSetAutohide(x.GoPointer(), AutohideVar) | 269 | xTabBarSetAutohide(x.GoPointer(), AutohideVar) | ||
| 250 | } | 270 | } | ||
| 251 | 271 | ||||
| @@ -253,6 +273,8 @@ var xTabBarSetEndActionWidget func(uintptr, uintptr) | |||||
| 253 | 273 | ||||
| 254 | // Sets the widget to show after the tabs. | 274 | // Sets the widget to show after the tabs. | ||
| 255 | func (x *TabBar) SetEndActionWidget(WidgetVar *gtk.Widget) { | 275 | func (x *TabBar) SetEndActionWidget(WidgetVar *gtk.Widget) { | ||
| 276 | + | core.LazyRegister(&xTabBarSetEndActionWidget, "ADW", "adw_tab_bar_set_end_action_widget", false) | |||
| 277 | + | ||||
| 256 | xTabBarSetEndActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | 278 | xTabBarSetEndActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 257 | } | 279 | } | ||
| 258 | 280 | ||||
| @@ -263,6 +285,8 @@ var xTabBarSetExpandTabs func(uintptr, bool) | |||||
| 263 | // If set to `TRUE`, the tabs will always vary width filling the whole width | 285 | // If set to `TRUE`, the tabs will always vary width filling the whole width | ||
| 264 | // when possible, otherwise tabs will always have the minimum possible size. | 286 | // when possible, otherwise tabs will always have the minimum possible size. | ||
| 265 | func (x *TabBar) SetExpandTabs(ExpandTabsVar bool) { | 287 | func (x *TabBar) SetExpandTabs(ExpandTabsVar bool) { | ||
| 288 | + | core.LazyRegister(&xTabBarSetExpandTabs, "ADW", "adw_tab_bar_set_expand_tabs", false) | |||
| 289 | + | ||||
| 266 | xTabBarSetExpandTabs(x.GoPointer(), ExpandTabsVar) | 290 | xTabBarSetExpandTabs(x.GoPointer(), ExpandTabsVar) | ||
| 267 | } | 291 | } | ||
| 268 | 292 | ||||
| @@ -272,6 +296,8 @@ var xTabBarSetExtraDragPreload func(uintptr, bool) | |||||
| 272 | // | 296 | // | ||
| 273 | // See [property@Gtk.DropTarget:preload]. | 297 | // See [property@Gtk.DropTarget:preload]. | ||
| 274 | func (x *TabBar) SetExtraDragPreload(PreloadVar bool) { | 298 | func (x *TabBar) SetExtraDragPreload(PreloadVar bool) { | ||
| 299 | + | core.LazyRegister(&xTabBarSetExtraDragPreload, "ADW", "adw_tab_bar_set_extra_drag_preload", false) | |||
| 300 | + | ||||
| 275 | xTabBarSetExtraDragPreload(x.GoPointer(), PreloadVar) | 301 | xTabBarSetExtraDragPreload(x.GoPointer(), PreloadVar) | ||
| 276 | } | 302 | } | ||
| 277 | 303 | ||||
| @@ -282,6 +308,8 @@ var xTabBarSetInverted func(uintptr, bool) | |||||
| 282 | // If set to `TRUE`, non-pinned tabs will have the close button at the beginning | 308 | // If set to `TRUE`, non-pinned tabs will have the close button at the beginning | ||
| 283 | // and the indicator at the end rather than the opposite. | 309 | // and the indicator at the end rather than the opposite. | ||
| 284 | func (x *TabBar) SetInverted(InvertedVar bool) { | 310 | func (x *TabBar) SetInverted(InvertedVar bool) { | ||
| 311 | + | core.LazyRegister(&xTabBarSetInverted, "ADW", "adw_tab_bar_set_inverted", false) | |||
| 312 | + | ||||
| 285 | xTabBarSetInverted(x.GoPointer(), InvertedVar) | 313 | xTabBarSetInverted(x.GoPointer(), InvertedVar) | ||
| 286 | } | 314 | } | ||
| 287 | 315 | ||||
| @@ -289,6 +317,8 @@ var xTabBarSetStartActionWidget func(uintptr, uintptr) | |||||
| 289 | 317 | ||||
| 290 | // Sets the widget to show before the tabs. | 318 | // Sets the widget to show before the tabs. | ||
| 291 | func (x *TabBar) SetStartActionWidget(WidgetVar *gtk.Widget) { | 319 | func (x *TabBar) SetStartActionWidget(WidgetVar *gtk.Widget) { | ||
| 320 | + | core.LazyRegister(&xTabBarSetStartActionWidget, "ADW", "adw_tab_bar_set_start_action_widget", false) | |||
| 321 | + | ||||
| 292 | xTabBarSetStartActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | 322 | xTabBarSetStartActionWidget(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 293 | } | 323 | } | ||
| 294 | 324 | ||||
| @@ -296,6 +326,8 @@ var xTabBarSetView func(uintptr, uintptr) | |||||
| 296 | 326 | ||||
| 297 | // Sets the tab view @self controls. | 327 | // Sets the tab view @self controls. | ||
| 298 | func (x *TabBar) SetView(ViewVar *TabView) { | 328 | func (x *TabBar) SetView(ViewVar *TabView) { | ||
| 329 | + | core.LazyRegister(&xTabBarSetView, "ADW", "adw_tab_bar_set_view", false) | |||
| 330 | + | ||||
| 299 | xTabBarSetView(x.GoPointer(), ViewVar.GoPointer()) | 331 | xTabBarSetView(x.GoPointer(), ViewVar.GoPointer()) | ||
| 300 | } | 332 | } | ||
| 301 | 333 | ||||
| @@ -311,6 +343,8 @@ var xTabBarSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType, uin | |||||
| 311 | // | 343 | // | ||
| 312 | // The [signal@TabBar::extra-drag-drop] signal can be used to handle the drop. | 344 | // The [signal@TabBar::extra-drag-drop] signal can be used to handle the drop. | ||
| 313 | func (x *TabBar) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | 345 | func (x *TabBar) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | ||
| 346 | + | core.LazyRegister(&xTabBarSetupExtraDropTarget, "ADW", "adw_tab_bar_setup_extra_drop_target", false) | |||
| 347 | + | ||||
| 314 | xTabBarSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | 348 | xTabBarSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | ||
| 315 | } | 349 | } | ||
| 316 | 350 | ||||
| @@ -765,35 +799,4 @@ func (x *TabBar) GetBuildableId() string { | |||||
| 765 | func init() { | 799 | func init() { | ||
| 766 | core.SetPackageName("ADW", "libadwaita-1") | 800 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 767 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 801 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 768 | - | var libs []uintptr | |||
| 769 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 770 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 771 | - | if err != nil { | |||
| 772 | - | panic(err) | |||
| 773 | - | } | |||
| 774 | - | libs = append(libs, lib) | |||
| 775 | - | } | |||
| 776 | - | ||||
| 777 | - | core.PuregoSafeRegister(&xTabBarGLibType, libs, "adw_tab_bar_get_type") | |||
| 778 | - | ||||
| 779 | - | core.PuregoSafeRegister(&xNewTabBar, libs, "adw_tab_bar_new") | |||
| 780 | - | ||||
| 781 | - | core.PuregoSafeRegister(&xTabBarGetAutohide, libs, "adw_tab_bar_get_autohide") | |||
| 782 | - | core.PuregoSafeRegister(&xTabBarGetEndActionWidget, libs, "adw_tab_bar_get_end_action_widget") | |||
| 783 | - | core.PuregoSafeRegister(&xTabBarGetExpandTabs, libs, "adw_tab_bar_get_expand_tabs") | |||
| 784 | - | core.PuregoSafeRegister(&xTabBarGetExtraDragPreferredAction, libs, "adw_tab_bar_get_extra_drag_preferred_action") | |||
| 785 | - | core.PuregoSafeRegister(&xTabBarGetExtraDragPreload, libs, "adw_tab_bar_get_extra_drag_preload") | |||
| 786 | - | core.PuregoSafeRegister(&xTabBarGetInverted, libs, "adw_tab_bar_get_inverted") | |||
| 787 | - | core.PuregoSafeRegister(&xTabBarGetIsOverflowing, libs, "adw_tab_bar_get_is_overflowing") | |||
| 788 | - | core.PuregoSafeRegister(&xTabBarGetStartActionWidget, libs, "adw_tab_bar_get_start_action_widget") | |||
| 789 | - | core.PuregoSafeRegister(&xTabBarGetTabsRevealed, libs, "adw_tab_bar_get_tabs_revealed") | |||
| 790 | - | core.PuregoSafeRegister(&xTabBarGetView, libs, "adw_tab_bar_get_view") | |||
| 791 | - | core.PuregoSafeRegister(&xTabBarSetAutohide, libs, "adw_tab_bar_set_autohide") | |||
| 792 | - | core.PuregoSafeRegister(&xTabBarSetEndActionWidget, libs, "adw_tab_bar_set_end_action_widget") | |||
| 793 | - | core.PuregoSafeRegister(&xTabBarSetExpandTabs, libs, "adw_tab_bar_set_expand_tabs") | |||
| 794 | - | core.PuregoSafeRegister(&xTabBarSetExtraDragPreload, libs, "adw_tab_bar_set_extra_drag_preload") | |||
| 795 | - | core.PuregoSafeRegister(&xTabBarSetInverted, libs, "adw_tab_bar_set_inverted") | |||
| 796 | - | core.PuregoSafeRegister(&xTabBarSetStartActionWidget, libs, "adw_tab_bar_set_start_action_widget") | |||
| 797 | - | core.PuregoSafeRegister(&xTabBarSetView, libs, "adw_tab_bar_set_view") | |||
| 798 | - | core.PuregoSafeRegister(&xTabBarSetupExtraDropTarget, libs, "adw_tab_bar_setup_extra_drop_target") | |||
| 799 | } | 802 | } | ||