Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gdk" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gio" | |
| @@ -117,7 +118,6 @@ type TabOverview struct { | |||
| 117 | 118 | var xTabOverviewGLibType func() types.GType | |
| 118 | 119 | ||
| 119 | 120 | func TabOverviewGLibType() types.GType { | |
| 120 | - | core.LazyRegister(&xTabOverviewGLibType, "ADW", "adw_tab_overview_get_type", false) | |
| 121 | 121 | return xTabOverviewGLibType() | |
| 122 | 122 | } | |
| 123 | 123 | ||
| @@ -131,7 +131,6 @@ var xNewTabOverview func() uintptr | |||
| 131 | 131 | ||
| 132 | 132 | // Creates a new `AdwTabOverview`. | |
| 133 | 133 | func NewTabOverview() *TabOverview { | |
| 134 | - | core.LazyRegister(&xNewTabOverview, "ADW", "adw_tab_overview_new", false) | |
| 135 | 134 | var cls *TabOverview | |
| 136 | 135 | ||
| 137 | 136 | cret := xNewTabOverview() | |
| @@ -149,7 +148,6 @@ var xTabOverviewGetChild func(uintptr) uintptr | |||
| 149 | 148 | ||
| 150 | 149 | // Gets the child widget of @self. | |
| 151 | 150 | func (x *TabOverview) GetChild() *gtk.Widget { | |
| 152 | - | core.LazyRegister(&xTabOverviewGetChild, "ADW", "adw_tab_overview_get_child", false) | |
| 153 | 151 | var cls *gtk.Widget | |
| 154 | 152 | ||
| 155 | 153 | cret := xTabOverviewGetChild(x.GoPointer()) | |
| @@ -167,8 +165,6 @@ var xTabOverviewGetEnableNewTab func(uintptr) bool | |||
| 167 | 165 | ||
| 168 | 166 | // Gets whether to new tab button is enabled for @self. | |
| 169 | 167 | func (x *TabOverview) GetEnableNewTab() bool { | |
| 170 | - | core.LazyRegister(&xTabOverviewGetEnableNewTab, "ADW", "adw_tab_overview_get_enable_new_tab", false) | |
| 171 | - | ||
| 172 | 168 | cret := xTabOverviewGetEnableNewTab(x.GoPointer()) | |
| 173 | 169 | return cret | |
| 174 | 170 | } | |
| @@ -177,8 +173,6 @@ var xTabOverviewGetEnableSearch func(uintptr) bool | |||
| 177 | 173 | ||
| 178 | 174 | // Gets whether search in tabs is enabled for @self. | |
| 179 | 175 | func (x *TabOverview) GetEnableSearch() bool { | |
| 180 | - | core.LazyRegister(&xTabOverviewGetEnableSearch, "ADW", "adw_tab_overview_get_enable_search", false) | |
| 181 | - | ||
| 182 | 176 | cret := xTabOverviewGetEnableSearch(x.GoPointer()) | |
| 183 | 177 | return cret | |
| 184 | 178 | } | |
| @@ -187,8 +181,6 @@ var xTabOverviewGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||
| 187 | 181 | ||
| 188 | 182 | // Gets the current action during a drop on the extra_drop_target. | |
| 189 | 183 | func (x *TabOverview) GetExtraDragPreferredAction() gdk.DragAction { | |
| 190 | - | core.LazyRegister(&xTabOverviewGetExtraDragPreferredAction, "ADW", "adw_tab_overview_get_extra_drag_preferred_action", false) | |
| 191 | - | ||
| 192 | 184 | cret := xTabOverviewGetExtraDragPreferredAction(x.GoPointer()) | |
| 193 | 185 | return cret | |
| 194 | 186 | } | |
| @@ -203,8 +195,6 @@ var xTabOverviewGetExtraDragPreload func(uintptr) bool | |||
| 203 | 195 | // The action will be a subset of what was originally passed to | |
| 204 | 196 | // [method@TabOverview.setup_extra_drop_target]. | |
| 205 | 197 | func (x *TabOverview) GetExtraDragPreload() bool { | |
| 206 | - | core.LazyRegister(&xTabOverviewGetExtraDragPreload, "ADW", "adw_tab_overview_get_extra_drag_preload", false) | |
| 207 | - | ||
| 208 | 198 | cret := xTabOverviewGetExtraDragPreload(x.GoPointer()) | |
| 209 | 199 | return cret | |
| 210 | 200 | } | |
| @@ -213,8 +203,6 @@ var xTabOverviewGetInverted func(uintptr) bool | |||
| 213 | 203 | ||
| 214 | 204 | // Gets whether thumbnails use inverted layout. | |
| 215 | 205 | func (x *TabOverview) GetInverted() bool { | |
| 216 | - | core.LazyRegister(&xTabOverviewGetInverted, "ADW", "adw_tab_overview_get_inverted", false) | |
| 217 | - | ||
| 218 | 206 | cret := xTabOverviewGetInverted(x.GoPointer()) | |
| 219 | 207 | return cret | |
| 220 | 208 | } | |
| @@ -223,8 +211,6 @@ var xTabOverviewGetOpen func(uintptr) bool | |||
| 223 | 211 | ||
| 224 | 212 | // Gets whether @self is open. | |
| 225 | 213 | func (x *TabOverview) GetOpen() bool { | |
| 226 | - | core.LazyRegister(&xTabOverviewGetOpen, "ADW", "adw_tab_overview_get_open", false) | |
| 227 | - | ||
| 228 | 214 | cret := xTabOverviewGetOpen(x.GoPointer()) | |
| 229 | 215 | return cret | |
| 230 | 216 | } | |
| @@ -235,8 +221,6 @@ var xTabOverviewGetSearchActive func(uintptr) bool | |||
| 235 | 221 | // | |
| 236 | 222 | // See [property@TabOverview:enable-search]. | |
| 237 | 223 | func (x *TabOverview) GetSearchActive() bool { | |
| 238 | - | core.LazyRegister(&xTabOverviewGetSearchActive, "ADW", "adw_tab_overview_get_search_active", false) | |
| 239 | - | ||
| 240 | 224 | cret := xTabOverviewGetSearchActive(x.GoPointer()) | |
| 241 | 225 | return cret | |
| 242 | 226 | } | |
| @@ -245,7 +229,6 @@ var xTabOverviewGetSecondaryMenu func(uintptr) uintptr | |||
| 245 | 229 | ||
| 246 | 230 | // Gets the secondary menu model for @self. | |
| 247 | 231 | func (x *TabOverview) GetSecondaryMenu() *gio.MenuModel { | |
| 248 | - | core.LazyRegister(&xTabOverviewGetSecondaryMenu, "ADW", "adw_tab_overview_get_secondary_menu", false) | |
| 249 | 232 | var cls *gio.MenuModel | |
| 250 | 233 | ||
| 251 | 234 | cret := xTabOverviewGetSecondaryMenu(x.GoPointer()) | |
| @@ -263,8 +246,6 @@ var xTabOverviewGetShowEndTitleButtons func(uintptr) bool | |||
| 263 | 246 | ||
| 264 | 247 | // Gets whether end title buttons are shown in @self's header bar. | |
| 265 | 248 | func (x *TabOverview) GetShowEndTitleButtons() bool { | |
| 266 | - | core.LazyRegister(&xTabOverviewGetShowEndTitleButtons, "ADW", "adw_tab_overview_get_show_end_title_buttons", false) | |
| 267 | - | ||
| 268 | 249 | cret := xTabOverviewGetShowEndTitleButtons(x.GoPointer()) | |
| 269 | 250 | return cret | |
| 270 | 251 | } | |
| @@ -273,8 +254,6 @@ var xTabOverviewGetShowStartTitleButtons func(uintptr) bool | |||
| 273 | 254 | ||
| 274 | 255 | // Gets whether start title buttons are shown in @self's header bar. | |
| 275 | 256 | func (x *TabOverview) GetShowStartTitleButtons() bool { | |
| 276 | - | core.LazyRegister(&xTabOverviewGetShowStartTitleButtons, "ADW", "adw_tab_overview_get_show_start_title_buttons", false) | |
| 277 | - | ||
| 278 | 257 | cret := xTabOverviewGetShowStartTitleButtons(x.GoPointer()) | |
| 279 | 258 | return cret | |
| 280 | 259 | } | |
| @@ -283,7 +262,6 @@ var xTabOverviewGetView func(uintptr) uintptr | |||
| 283 | 262 | ||
| 284 | 263 | // Gets the tab view @self controls. | |
| 285 | 264 | func (x *TabOverview) GetView() *TabView { | |
| 286 | - | core.LazyRegister(&xTabOverviewGetView, "ADW", "adw_tab_overview_get_view", false) | |
| 287 | 265 | var cls *TabView | |
| 288 | 266 | ||
| 289 | 267 | cret := xTabOverviewGetView(x.GoPointer()) | |
| @@ -301,8 +279,6 @@ var xTabOverviewSetChild func(uintptr, uintptr) | |||
| 301 | 279 | ||
| 302 | 280 | // Sets the child widget of @self. | |
| 303 | 281 | func (x *TabOverview) SetChild(ChildVar *gtk.Widget) { | |
| 304 | - | core.LazyRegister(&xTabOverviewSetChild, "ADW", "adw_tab_overview_set_child", false) | |
| 305 | - | ||
| 306 | 282 | xTabOverviewSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 307 | 283 | } | |
| 308 | 284 | ||
| @@ -312,8 +288,6 @@ var xTabOverviewSetEnableNewTab func(uintptr, bool) | |||
| 312 | 288 | // | |
| 313 | 289 | // Connect to the [signal@TabOverview::create-tab] signal to use it. | |
| 314 | 290 | func (x *TabOverview) SetEnableNewTab(EnableNewTabVar bool) { | |
| 315 | - | core.LazyRegister(&xTabOverviewSetEnableNewTab, "ADW", "adw_tab_overview_set_enable_new_tab", false) | |
| 316 | - | ||
| 317 | 291 | xTabOverviewSetEnableNewTab(x.GoPointer(), EnableNewTabVar) | |
| 318 | 292 | } | |
| 319 | 293 | ||
| @@ -330,8 +304,6 @@ var xTabOverviewSetEnableSearch func(uintptr, bool) | |||
| 330 | 304 | // Use [property@TabOverview:search-active] to check out if search is currently | |
| 331 | 305 | // active. | |
| 332 | 306 | func (x *TabOverview) SetEnableSearch(EnableSearchVar bool) { | |
| 333 | - | core.LazyRegister(&xTabOverviewSetEnableSearch, "ADW", "adw_tab_overview_set_enable_search", false) | |
| 334 | - | ||
| 335 | 307 | xTabOverviewSetEnableSearch(x.GoPointer(), EnableSearchVar) | |
| 336 | 308 | } | |
| 337 | 309 | ||
| @@ -341,8 +313,6 @@ var xTabOverviewSetExtraDragPreload func(uintptr, bool) | |||
| 341 | 313 | // | |
| 342 | 314 | // See [property@Gtk.DropTarget:preload]. | |
| 343 | 315 | func (x *TabOverview) SetExtraDragPreload(PreloadVar bool) { | |
| 344 | - | core.LazyRegister(&xTabOverviewSetExtraDragPreload, "ADW", "adw_tab_overview_set_extra_drag_preload", false) | |
| 345 | - | ||
| 346 | 316 | xTabOverviewSetExtraDragPreload(x.GoPointer(), PreloadVar) | |
| 347 | 317 | } | |
| 348 | 318 | ||
| @@ -353,8 +323,6 @@ var xTabOverviewSetInverted func(uintptr, bool) | |||
| 353 | 323 | // If set to `TRUE`, thumbnails will have the close or unpin button at the | |
| 354 | 324 | // beginning and the indicator at the end rather than the other way around. | |
| 355 | 325 | func (x *TabOverview) SetInverted(InvertedVar bool) { | |
| 356 | - | core.LazyRegister(&xTabOverviewSetInverted, "ADW", "adw_tab_overview_set_inverted", false) | |
| 357 | - | ||
| 358 | 326 | xTabOverviewSetInverted(x.GoPointer(), InvertedVar) | |
| 359 | 327 | } | |
| 360 | 328 | ||
| @@ -362,8 +330,6 @@ var xTabOverviewSetOpen func(uintptr, bool) | |||
| 362 | 330 | ||
| 363 | 331 | // Sets whether the to open @self. | |
| 364 | 332 | func (x *TabOverview) SetOpen(OpenVar bool) { | |
| 365 | - | core.LazyRegister(&xTabOverviewSetOpen, "ADW", "adw_tab_overview_set_open", false) | |
| 366 | - | ||
| 367 | 333 | xTabOverviewSetOpen(x.GoPointer(), OpenVar) | |
| 368 | 334 | } | |
| 369 | 335 | ||
| @@ -373,8 +339,6 @@ var xTabOverviewSetSecondaryMenu func(uintptr, uintptr) | |||
| 373 | 339 | // | |
| 374 | 340 | // Use it to add extra actions, e.g. to open a new window or undo closed tab. | |
| 375 | 341 | func (x *TabOverview) SetSecondaryMenu(SecondaryMenuVar *gio.MenuModel) { | |
| 376 | - | core.LazyRegister(&xTabOverviewSetSecondaryMenu, "ADW", "adw_tab_overview_set_secondary_menu", false) | |
| 377 | - | ||
| 378 | 342 | xTabOverviewSetSecondaryMenu(x.GoPointer(), SecondaryMenuVar.GoPointer()) | |
| 379 | 343 | } | |
| 380 | 344 | ||
| @@ -384,8 +348,6 @@ var xTabOverviewSetShowEndTitleButtons func(uintptr, bool) | |||
| 384 | 348 | // | |
| 385 | 349 | // See [property@HeaderBar:show-start-title-buttons] for the other side. | |
| 386 | 350 | func (x *TabOverview) SetShowEndTitleButtons(ShowEndTitleButtonsVar bool) { | |
| 387 | - | core.LazyRegister(&xTabOverviewSetShowEndTitleButtons, "ADW", "adw_tab_overview_set_show_end_title_buttons", false) | |
| 388 | - | ||
| 389 | 351 | xTabOverviewSetShowEndTitleButtons(x.GoPointer(), ShowEndTitleButtonsVar) | |
| 390 | 352 | } | |
| 391 | 353 | ||
| @@ -395,8 +357,6 @@ var xTabOverviewSetShowStartTitleButtons func(uintptr, bool) | |||
| 395 | 357 | // | |
| 396 | 358 | // See [property@HeaderBar:show-end-title-buttons] for the other side. | |
| 397 | 359 | func (x *TabOverview) SetShowStartTitleButtons(ShowStartTitleButtonsVar bool) { | |
| 398 | - | core.LazyRegister(&xTabOverviewSetShowStartTitleButtons, "ADW", "adw_tab_overview_set_show_start_title_buttons", false) | |
| 399 | - | ||
| 400 | 360 | xTabOverviewSetShowStartTitleButtons(x.GoPointer(), ShowStartTitleButtonsVar) | |
| 401 | 361 | } | |
| 402 | 362 | ||
| @@ -406,8 +366,6 @@ var xTabOverviewSetView func(uintptr, uintptr) | |||
| 406 | 366 | // | |
| 407 | 367 | // The view must be inside @self, see [property@TabOverview:child]. | |
| 408 | 368 | func (x *TabOverview) SetView(ViewVar *TabView) { | |
| 409 | - | core.LazyRegister(&xTabOverviewSetView, "ADW", "adw_tab_overview_set_view", false) | |
| 410 | - | ||
| 411 | 369 | xTabOverviewSetView(x.GoPointer(), ViewVar.GoPointer()) | |
| 412 | 370 | } | |
| 413 | 371 | ||
| @@ -424,8 +382,6 @@ var xTabOverviewSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType | |||
| 424 | 382 | // The [signal@TabOverview::extra-drag-drop] signal can be used to handle the | |
| 425 | 383 | // drop. | |
| 426 | 384 | func (x *TabOverview) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | |
| 427 | - | core.LazyRegister(&xTabOverviewSetupExtraDropTarget, "ADW", "adw_tab_overview_setup_extra_drop_target", false) | |
| 428 | - | ||
| 429 | 385 | xTabOverviewSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | |
| 430 | 386 | } | |
| 431 | 387 | ||
| @@ -967,4 +923,40 @@ func (x *TabOverview) GetBuildableId() string { | |||
| 967 | 923 | func init() { | |
| 968 | 924 | core.SetPackageName("ADW", "libadwaita-1") | |
| 969 | 925 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 926 | + | var libs []uintptr | |
| 927 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 928 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 929 | + | if err != nil { | |
| 930 | + | panic(err) | |
| 931 | + | } | |
| 932 | + | libs = append(libs, lib) | |
| 933 | + | } | |
| 934 | + | ||
| 935 | + | core.PuregoSafeRegister(&xTabOverviewGLibType, libs, "adw_tab_overview_get_type") | |
| 936 | + | ||
| 937 | + | core.PuregoSafeRegister(&xNewTabOverview, libs, "adw_tab_overview_new") | |
| 938 | + | ||
| 939 | + | core.PuregoSafeRegister(&xTabOverviewGetChild, libs, "adw_tab_overview_get_child") | |
| 940 | + | core.PuregoSafeRegister(&xTabOverviewGetEnableNewTab, libs, "adw_tab_overview_get_enable_new_tab") | |
| 941 | + | core.PuregoSafeRegister(&xTabOverviewGetEnableSearch, libs, "adw_tab_overview_get_enable_search") | |
| 942 | + | core.PuregoSafeRegister(&xTabOverviewGetExtraDragPreferredAction, libs, "adw_tab_overview_get_extra_drag_preferred_action") | |
| 943 | + | core.PuregoSafeRegister(&xTabOverviewGetExtraDragPreload, libs, "adw_tab_overview_get_extra_drag_preload") | |
| 944 | + | core.PuregoSafeRegister(&xTabOverviewGetInverted, libs, "adw_tab_overview_get_inverted") | |
| 945 | + | core.PuregoSafeRegister(&xTabOverviewGetOpen, libs, "adw_tab_overview_get_open") | |
| 946 | + | core.PuregoSafeRegister(&xTabOverviewGetSearchActive, libs, "adw_tab_overview_get_search_active") | |
| 947 | + | core.PuregoSafeRegister(&xTabOverviewGetSecondaryMenu, libs, "adw_tab_overview_get_secondary_menu") | |
| 948 | + | core.PuregoSafeRegister(&xTabOverviewGetShowEndTitleButtons, libs, "adw_tab_overview_get_show_end_title_buttons") | |
| 949 | + | core.PuregoSafeRegister(&xTabOverviewGetShowStartTitleButtons, libs, "adw_tab_overview_get_show_start_title_buttons") | |
| 950 | + | core.PuregoSafeRegister(&xTabOverviewGetView, libs, "adw_tab_overview_get_view") | |
| 951 | + | core.PuregoSafeRegister(&xTabOverviewSetChild, libs, "adw_tab_overview_set_child") | |
| 952 | + | core.PuregoSafeRegister(&xTabOverviewSetEnableNewTab, libs, "adw_tab_overview_set_enable_new_tab") | |
| 953 | + | core.PuregoSafeRegister(&xTabOverviewSetEnableSearch, libs, "adw_tab_overview_set_enable_search") | |
| 954 | + | core.PuregoSafeRegister(&xTabOverviewSetExtraDragPreload, libs, "adw_tab_overview_set_extra_drag_preload") | |
| 955 | + | core.PuregoSafeRegister(&xTabOverviewSetInverted, libs, "adw_tab_overview_set_inverted") | |
| 956 | + | core.PuregoSafeRegister(&xTabOverviewSetOpen, libs, "adw_tab_overview_set_open") | |
| 957 | + | core.PuregoSafeRegister(&xTabOverviewSetSecondaryMenu, libs, "adw_tab_overview_set_secondary_menu") | |
| 958 | + | core.PuregoSafeRegister(&xTabOverviewSetShowEndTitleButtons, libs, "adw_tab_overview_set_show_end_title_buttons") | |
| 959 | + | core.PuregoSafeRegister(&xTabOverviewSetShowStartTitleButtons, libs, "adw_tab_overview_set_show_start_title_buttons") | |
| 960 | + | core.PuregoSafeRegister(&xTabOverviewSetView, libs, "adw_tab_overview_set_view") | |
| 961 | + | core.PuregoSafeRegister(&xTabOverviewSetupExtraDropTarget, libs, "adw_tab_overview_setup_extra_drop_target") | |
| 970 | 962 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gdk" | 10 | "github.com/bnema/puregotk/v4/gdk" | ||
| 10 | "github.com/bnema/puregotk/v4/gio" | 11 | "github.com/bnema/puregotk/v4/gio" | ||
| @@ -117,7 +118,6 @@ type TabOverview struct { | |||||
| 117 | var xTabOverviewGLibType func() types.GType | 118 | var xTabOverviewGLibType func() types.GType | ||
| 118 | 119 | ||||
| 119 | func TabOverviewGLibType() types.GType { | 120 | func TabOverviewGLibType() types.GType { | ||
| 120 | - | core.LazyRegister(&xTabOverviewGLibType, "ADW", "adw_tab_overview_get_type", false) | |||
| 121 | return xTabOverviewGLibType() | 121 | return xTabOverviewGLibType() | ||
| 122 | } | 122 | } | ||
| 123 | 123 | ||||
| @@ -131,7 +131,6 @@ var xNewTabOverview func() uintptr | |||||
| 131 | 131 | ||||
| 132 | // Creates a new `AdwTabOverview`. | 132 | // Creates a new `AdwTabOverview`. | ||
| 133 | func NewTabOverview() *TabOverview { | 133 | func NewTabOverview() *TabOverview { | ||
| 134 | - | core.LazyRegister(&xNewTabOverview, "ADW", "adw_tab_overview_new", false) | |||
| 135 | var cls *TabOverview | 134 | var cls *TabOverview | ||
| 136 | 135 | ||||
| 137 | cret := xNewTabOverview() | 136 | cret := xNewTabOverview() | ||
| @@ -149,7 +148,6 @@ var xTabOverviewGetChild func(uintptr) uintptr | |||||
| 149 | 148 | ||||
| 150 | // Gets the child widget of @self. | 149 | // Gets the child widget of @self. | ||
| 151 | func (x *TabOverview) GetChild() *gtk.Widget { | 150 | func (x *TabOverview) GetChild() *gtk.Widget { | ||
| 152 | - | core.LazyRegister(&xTabOverviewGetChild, "ADW", "adw_tab_overview_get_child", false) | |||
| 153 | var cls *gtk.Widget | 151 | var cls *gtk.Widget | ||
| 154 | 152 | ||||
| 155 | cret := xTabOverviewGetChild(x.GoPointer()) | 153 | cret := xTabOverviewGetChild(x.GoPointer()) | ||
| @@ -167,8 +165,6 @@ var xTabOverviewGetEnableNewTab func(uintptr) bool | |||||
| 167 | 165 | ||||
| 168 | // Gets whether to new tab button is enabled for @self. | 166 | // Gets whether to new tab button is enabled for @self. | ||
| 169 | func (x *TabOverview) GetEnableNewTab() bool { | 167 | func (x *TabOverview) GetEnableNewTab() bool { | ||
| 170 | - | core.LazyRegister(&xTabOverviewGetEnableNewTab, "ADW", "adw_tab_overview_get_enable_new_tab", false) | |||
| 171 | - | ||||
| 172 | cret := xTabOverviewGetEnableNewTab(x.GoPointer()) | 168 | cret := xTabOverviewGetEnableNewTab(x.GoPointer()) | ||
| 173 | return cret | 169 | return cret | ||
| 174 | } | 170 | } | ||
| @@ -177,8 +173,6 @@ var xTabOverviewGetEnableSearch func(uintptr) bool | |||||
| 177 | 173 | ||||
| 178 | // Gets whether search in tabs is enabled for @self. | 174 | // Gets whether search in tabs is enabled for @self. | ||
| 179 | func (x *TabOverview) GetEnableSearch() bool { | 175 | func (x *TabOverview) GetEnableSearch() bool { | ||
| 180 | - | core.LazyRegister(&xTabOverviewGetEnableSearch, "ADW", "adw_tab_overview_get_enable_search", false) | |||
| 181 | - | ||||
| 182 | cret := xTabOverviewGetEnableSearch(x.GoPointer()) | 176 | cret := xTabOverviewGetEnableSearch(x.GoPointer()) | ||
| 183 | return cret | 177 | return cret | ||
| 184 | } | 178 | } | ||
| @@ -187,8 +181,6 @@ var xTabOverviewGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||||
| 187 | 181 | ||||
| 188 | // Gets the current action during a drop on the extra_drop_target. | 182 | // Gets the current action during a drop on the extra_drop_target. | ||
| 189 | func (x *TabOverview) GetExtraDragPreferredAction() gdk.DragAction { | 183 | func (x *TabOverview) GetExtraDragPreferredAction() gdk.DragAction { | ||
| 190 | - | core.LazyRegister(&xTabOverviewGetExtraDragPreferredAction, "ADW", "adw_tab_overview_get_extra_drag_preferred_action", false) | |||
| 191 | - | ||||
| 192 | cret := xTabOverviewGetExtraDragPreferredAction(x.GoPointer()) | 184 | cret := xTabOverviewGetExtraDragPreferredAction(x.GoPointer()) | ||
| 193 | return cret | 185 | return cret | ||
| 194 | } | 186 | } | ||
| @@ -203,8 +195,6 @@ var xTabOverviewGetExtraDragPreload func(uintptr) bool | |||||
| 203 | // The action will be a subset of what was originally passed to | 195 | // The action will be a subset of what was originally passed to | ||
| 204 | // [method@TabOverview.setup_extra_drop_target]. | 196 | // [method@TabOverview.setup_extra_drop_target]. | ||
| 205 | func (x *TabOverview) GetExtraDragPreload() bool { | 197 | func (x *TabOverview) GetExtraDragPreload() bool { | ||
| 206 | - | core.LazyRegister(&xTabOverviewGetExtraDragPreload, "ADW", "adw_tab_overview_get_extra_drag_preload", false) | |||
| 207 | - | ||||
| 208 | cret := xTabOverviewGetExtraDragPreload(x.GoPointer()) | 198 | cret := xTabOverviewGetExtraDragPreload(x.GoPointer()) | ||
| 209 | return cret | 199 | return cret | ||
| 210 | } | 200 | } | ||
| @@ -213,8 +203,6 @@ var xTabOverviewGetInverted func(uintptr) bool | |||||
| 213 | 203 | ||||
| 214 | // Gets whether thumbnails use inverted layout. | 204 | // Gets whether thumbnails use inverted layout. | ||
| 215 | func (x *TabOverview) GetInverted() bool { | 205 | func (x *TabOverview) GetInverted() bool { | ||
| 216 | - | core.LazyRegister(&xTabOverviewGetInverted, "ADW", "adw_tab_overview_get_inverted", false) | |||
| 217 | - | ||||
| 218 | cret := xTabOverviewGetInverted(x.GoPointer()) | 206 | cret := xTabOverviewGetInverted(x.GoPointer()) | ||
| 219 | return cret | 207 | return cret | ||
| 220 | } | 208 | } | ||
| @@ -223,8 +211,6 @@ var xTabOverviewGetOpen func(uintptr) bool | |||||
| 223 | 211 | ||||
| 224 | // Gets whether @self is open. | 212 | // Gets whether @self is open. | ||
| 225 | func (x *TabOverview) GetOpen() bool { | 213 | func (x *TabOverview) GetOpen() bool { | ||
| 226 | - | core.LazyRegister(&xTabOverviewGetOpen, "ADW", "adw_tab_overview_get_open", false) | |||
| 227 | - | ||||
| 228 | cret := xTabOverviewGetOpen(x.GoPointer()) | 214 | cret := xTabOverviewGetOpen(x.GoPointer()) | ||
| 229 | return cret | 215 | return cret | ||
| 230 | } | 216 | } | ||
| @@ -235,8 +221,6 @@ var xTabOverviewGetSearchActive func(uintptr) bool | |||||
| 235 | // | 221 | // | ||
| 236 | // See [property@TabOverview:enable-search]. | 222 | // See [property@TabOverview:enable-search]. | ||
| 237 | func (x *TabOverview) GetSearchActive() bool { | 223 | func (x *TabOverview) GetSearchActive() bool { | ||
| 238 | - | core.LazyRegister(&xTabOverviewGetSearchActive, "ADW", "adw_tab_overview_get_search_active", false) | |||
| 239 | - | ||||
| 240 | cret := xTabOverviewGetSearchActive(x.GoPointer()) | 224 | cret := xTabOverviewGetSearchActive(x.GoPointer()) | ||
| 241 | return cret | 225 | return cret | ||
| 242 | } | 226 | } | ||
| @@ -245,7 +229,6 @@ var xTabOverviewGetSecondaryMenu func(uintptr) uintptr | |||||
| 245 | 229 | ||||
| 246 | // Gets the secondary menu model for @self. | 230 | // Gets the secondary menu model for @self. | ||
| 247 | func (x *TabOverview) GetSecondaryMenu() *gio.MenuModel { | 231 | func (x *TabOverview) GetSecondaryMenu() *gio.MenuModel { | ||
| 248 | - | core.LazyRegister(&xTabOverviewGetSecondaryMenu, "ADW", "adw_tab_overview_get_secondary_menu", false) | |||
| 249 | var cls *gio.MenuModel | 232 | var cls *gio.MenuModel | ||
| 250 | 233 | ||||
| 251 | cret := xTabOverviewGetSecondaryMenu(x.GoPointer()) | 234 | cret := xTabOverviewGetSecondaryMenu(x.GoPointer()) | ||
| @@ -263,8 +246,6 @@ var xTabOverviewGetShowEndTitleButtons func(uintptr) bool | |||||
| 263 | 246 | ||||
| 264 | // Gets whether end title buttons are shown in @self's header bar. | 247 | // Gets whether end title buttons are shown in @self's header bar. | ||
| 265 | func (x *TabOverview) GetShowEndTitleButtons() bool { | 248 | func (x *TabOverview) GetShowEndTitleButtons() bool { | ||
| 266 | - | core.LazyRegister(&xTabOverviewGetShowEndTitleButtons, "ADW", "adw_tab_overview_get_show_end_title_buttons", false) | |||
| 267 | - | ||||
| 268 | cret := xTabOverviewGetShowEndTitleButtons(x.GoPointer()) | 249 | cret := xTabOverviewGetShowEndTitleButtons(x.GoPointer()) | ||
| 269 | return cret | 250 | return cret | ||
| 270 | } | 251 | } | ||
| @@ -273,8 +254,6 @@ var xTabOverviewGetShowStartTitleButtons func(uintptr) bool | |||||
| 273 | 254 | ||||
| 274 | // Gets whether start title buttons are shown in @self's header bar. | 255 | // Gets whether start title buttons are shown in @self's header bar. | ||
| 275 | func (x *TabOverview) GetShowStartTitleButtons() bool { | 256 | func (x *TabOverview) GetShowStartTitleButtons() bool { | ||
| 276 | - | core.LazyRegister(&xTabOverviewGetShowStartTitleButtons, "ADW", "adw_tab_overview_get_show_start_title_buttons", false) | |||
| 277 | - | ||||
| 278 | cret := xTabOverviewGetShowStartTitleButtons(x.GoPointer()) | 257 | cret := xTabOverviewGetShowStartTitleButtons(x.GoPointer()) | ||
| 279 | return cret | 258 | return cret | ||
| 280 | } | 259 | } | ||
| @@ -283,7 +262,6 @@ var xTabOverviewGetView func(uintptr) uintptr | |||||
| 283 | 262 | ||||
| 284 | // Gets the tab view @self controls. | 263 | // Gets the tab view @self controls. | ||
| 285 | func (x *TabOverview) GetView() *TabView { | 264 | func (x *TabOverview) GetView() *TabView { | ||
| 286 | - | core.LazyRegister(&xTabOverviewGetView, "ADW", "adw_tab_overview_get_view", false) | |||
| 287 | var cls *TabView | 265 | var cls *TabView | ||
| 288 | 266 | ||||
| 289 | cret := xTabOverviewGetView(x.GoPointer()) | 267 | cret := xTabOverviewGetView(x.GoPointer()) | ||
| @@ -301,8 +279,6 @@ var xTabOverviewSetChild func(uintptr, uintptr) | |||||
| 301 | 279 | ||||
| 302 | // Sets the child widget of @self. | 280 | // Sets the child widget of @self. | ||
| 303 | func (x *TabOverview) SetChild(ChildVar *gtk.Widget) { | 281 | func (x *TabOverview) SetChild(ChildVar *gtk.Widget) { | ||
| 304 | - | core.LazyRegister(&xTabOverviewSetChild, "ADW", "adw_tab_overview_set_child", false) | |||
| 305 | - | ||||
| 306 | xTabOverviewSetChild(x.GoPointer(), ChildVar.GoPointer()) | 282 | xTabOverviewSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 307 | } | 283 | } | ||
| 308 | 284 | ||||
| @@ -312,8 +288,6 @@ var xTabOverviewSetEnableNewTab func(uintptr, bool) | |||||
| 312 | // | 288 | // | ||
| 313 | // Connect to the [signal@TabOverview::create-tab] signal to use it. | 289 | // Connect to the [signal@TabOverview::create-tab] signal to use it. | ||
| 314 | func (x *TabOverview) SetEnableNewTab(EnableNewTabVar bool) { | 290 | func (x *TabOverview) SetEnableNewTab(EnableNewTabVar bool) { | ||
| 315 | - | core.LazyRegister(&xTabOverviewSetEnableNewTab, "ADW", "adw_tab_overview_set_enable_new_tab", false) | |||
| 316 | - | ||||
| 317 | xTabOverviewSetEnableNewTab(x.GoPointer(), EnableNewTabVar) | 291 | xTabOverviewSetEnableNewTab(x.GoPointer(), EnableNewTabVar) | ||
| 318 | } | 292 | } | ||
| 319 | 293 | ||||
| @@ -330,8 +304,6 @@ var xTabOverviewSetEnableSearch func(uintptr, bool) | |||||
| 330 | // Use [property@TabOverview:search-active] to check out if search is currently | 304 | // Use [property@TabOverview:search-active] to check out if search is currently | ||
| 331 | // active. | 305 | // active. | ||
| 332 | func (x *TabOverview) SetEnableSearch(EnableSearchVar bool) { | 306 | func (x *TabOverview) SetEnableSearch(EnableSearchVar bool) { | ||
| 333 | - | core.LazyRegister(&xTabOverviewSetEnableSearch, "ADW", "adw_tab_overview_set_enable_search", false) | |||
| 334 | - | ||||
| 335 | xTabOverviewSetEnableSearch(x.GoPointer(), EnableSearchVar) | 307 | xTabOverviewSetEnableSearch(x.GoPointer(), EnableSearchVar) | ||
| 336 | } | 308 | } | ||
| 337 | 309 | ||||
| @@ -341,8 +313,6 @@ var xTabOverviewSetExtraDragPreload func(uintptr, bool) | |||||
| 341 | // | 313 | // | ||
| 342 | // See [property@Gtk.DropTarget:preload]. | 314 | // See [property@Gtk.DropTarget:preload]. | ||
| 343 | func (x *TabOverview) SetExtraDragPreload(PreloadVar bool) { | 315 | func (x *TabOverview) SetExtraDragPreload(PreloadVar bool) { | ||
| 344 | - | core.LazyRegister(&xTabOverviewSetExtraDragPreload, "ADW", "adw_tab_overview_set_extra_drag_preload", false) | |||
| 345 | - | ||||
| 346 | xTabOverviewSetExtraDragPreload(x.GoPointer(), PreloadVar) | 316 | xTabOverviewSetExtraDragPreload(x.GoPointer(), PreloadVar) | ||
| 347 | } | 317 | } | ||
| 348 | 318 | ||||
| @@ -353,8 +323,6 @@ var xTabOverviewSetInverted func(uintptr, bool) | |||||
| 353 | // If set to `TRUE`, thumbnails will have the close or unpin button at the | 323 | // If set to `TRUE`, thumbnails will have the close or unpin button at the | ||
| 354 | // beginning and the indicator at the end rather than the other way around. | 324 | // beginning and the indicator at the end rather than the other way around. | ||
| 355 | func (x *TabOverview) SetInverted(InvertedVar bool) { | 325 | func (x *TabOverview) SetInverted(InvertedVar bool) { | ||
| 356 | - | core.LazyRegister(&xTabOverviewSetInverted, "ADW", "adw_tab_overview_set_inverted", false) | |||
| 357 | - | ||||
| 358 | xTabOverviewSetInverted(x.GoPointer(), InvertedVar) | 326 | xTabOverviewSetInverted(x.GoPointer(), InvertedVar) | ||
| 359 | } | 327 | } | ||
| 360 | 328 | ||||
| @@ -362,8 +330,6 @@ var xTabOverviewSetOpen func(uintptr, bool) | |||||
| 362 | 330 | ||||
| 363 | // Sets whether the to open @self. | 331 | // Sets whether the to open @self. | ||
| 364 | func (x *TabOverview) SetOpen(OpenVar bool) { | 332 | func (x *TabOverview) SetOpen(OpenVar bool) { | ||
| 365 | - | core.LazyRegister(&xTabOverviewSetOpen, "ADW", "adw_tab_overview_set_open", false) | |||
| 366 | - | ||||
| 367 | xTabOverviewSetOpen(x.GoPointer(), OpenVar) | 333 | xTabOverviewSetOpen(x.GoPointer(), OpenVar) | ||
| 368 | } | 334 | } | ||
| 369 | 335 | ||||
| @@ -373,8 +339,6 @@ var xTabOverviewSetSecondaryMenu func(uintptr, uintptr) | |||||
| 373 | // | 339 | // | ||
| 374 | // Use it to add extra actions, e.g. to open a new window or undo closed tab. | 340 | // Use it to add extra actions, e.g. to open a new window or undo closed tab. | ||
| 375 | func (x *TabOverview) SetSecondaryMenu(SecondaryMenuVar *gio.MenuModel) { | 341 | func (x *TabOverview) SetSecondaryMenu(SecondaryMenuVar *gio.MenuModel) { | ||
| 376 | - | core.LazyRegister(&xTabOverviewSetSecondaryMenu, "ADW", "adw_tab_overview_set_secondary_menu", false) | |||
| 377 | - | ||||
| 378 | xTabOverviewSetSecondaryMenu(x.GoPointer(), SecondaryMenuVar.GoPointer()) | 342 | xTabOverviewSetSecondaryMenu(x.GoPointer(), SecondaryMenuVar.GoPointer()) | ||
| 379 | } | 343 | } | ||
| 380 | 344 | ||||
| @@ -384,8 +348,6 @@ var xTabOverviewSetShowEndTitleButtons func(uintptr, bool) | |||||
| 384 | // | 348 | // | ||
| 385 | // See [property@HeaderBar:show-start-title-buttons] for the other side. | 349 | // See [property@HeaderBar:show-start-title-buttons] for the other side. | ||
| 386 | func (x *TabOverview) SetShowEndTitleButtons(ShowEndTitleButtonsVar bool) { | 350 | func (x *TabOverview) SetShowEndTitleButtons(ShowEndTitleButtonsVar bool) { | ||
| 387 | - | core.LazyRegister(&xTabOverviewSetShowEndTitleButtons, "ADW", "adw_tab_overview_set_show_end_title_buttons", false) | |||
| 388 | - | ||||
| 389 | xTabOverviewSetShowEndTitleButtons(x.GoPointer(), ShowEndTitleButtonsVar) | 351 | xTabOverviewSetShowEndTitleButtons(x.GoPointer(), ShowEndTitleButtonsVar) | ||
| 390 | } | 352 | } | ||
| 391 | 353 | ||||
| @@ -395,8 +357,6 @@ var xTabOverviewSetShowStartTitleButtons func(uintptr, bool) | |||||
| 395 | // | 357 | // | ||
| 396 | // See [property@HeaderBar:show-end-title-buttons] for the other side. | 358 | // See [property@HeaderBar:show-end-title-buttons] for the other side. | ||
| 397 | func (x *TabOverview) SetShowStartTitleButtons(ShowStartTitleButtonsVar bool) { | 359 | func (x *TabOverview) SetShowStartTitleButtons(ShowStartTitleButtonsVar bool) { | ||
| 398 | - | core.LazyRegister(&xTabOverviewSetShowStartTitleButtons, "ADW", "adw_tab_overview_set_show_start_title_buttons", false) | |||
| 399 | - | ||||
| 400 | xTabOverviewSetShowStartTitleButtons(x.GoPointer(), ShowStartTitleButtonsVar) | 360 | xTabOverviewSetShowStartTitleButtons(x.GoPointer(), ShowStartTitleButtonsVar) | ||
| 401 | } | 361 | } | ||
| 402 | 362 | ||||
| @@ -406,8 +366,6 @@ var xTabOverviewSetView func(uintptr, uintptr) | |||||
| 406 | // | 366 | // | ||
| 407 | // The view must be inside @self, see [property@TabOverview:child]. | 367 | // The view must be inside @self, see [property@TabOverview:child]. | ||
| 408 | func (x *TabOverview) SetView(ViewVar *TabView) { | 368 | func (x *TabOverview) SetView(ViewVar *TabView) { | ||
| 409 | - | core.LazyRegister(&xTabOverviewSetView, "ADW", "adw_tab_overview_set_view", false) | |||
| 410 | - | ||||
| 411 | xTabOverviewSetView(x.GoPointer(), ViewVar.GoPointer()) | 369 | xTabOverviewSetView(x.GoPointer(), ViewVar.GoPointer()) | ||
| 412 | } | 370 | } | ||
| 413 | 371 | ||||
| @@ -424,8 +382,6 @@ var xTabOverviewSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType | |||||
| 424 | // The [signal@TabOverview::extra-drag-drop] signal can be used to handle the | 382 | // The [signal@TabOverview::extra-drag-drop] signal can be used to handle the | ||
| 425 | // drop. | 383 | // drop. | ||
| 426 | func (x *TabOverview) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | 384 | func (x *TabOverview) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | ||
| 427 | - | core.LazyRegister(&xTabOverviewSetupExtraDropTarget, "ADW", "adw_tab_overview_setup_extra_drop_target", false) | |||
| 428 | - | ||||
| 429 | xTabOverviewSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | 385 | xTabOverviewSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | ||
| 430 | } | 386 | } | ||
| 431 | 387 | ||||
| @@ -967,4 +923,40 @@ func (x *TabOverview) GetBuildableId() string { | |||||
| 967 | func init() { | 923 | func init() { | ||
| 968 | core.SetPackageName("ADW", "libadwaita-1") | 924 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 969 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 925 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 926 | + | var libs []uintptr | |||
| 927 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 928 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 929 | + | if err != nil { | |||
| 930 | + | panic(err) | |||
| 931 | + | } | |||
| 932 | + | libs = append(libs, lib) | |||
| 933 | + | } | |||
| 934 | + | ||||
| 935 | + | core.PuregoSafeRegister(&xTabOverviewGLibType, libs, "adw_tab_overview_get_type") | |||
| 936 | + | ||||
| 937 | + | core.PuregoSafeRegister(&xNewTabOverview, libs, "adw_tab_overview_new") | |||
| 938 | + | ||||
| 939 | + | core.PuregoSafeRegister(&xTabOverviewGetChild, libs, "adw_tab_overview_get_child") | |||
| 940 | + | core.PuregoSafeRegister(&xTabOverviewGetEnableNewTab, libs, "adw_tab_overview_get_enable_new_tab") | |||
| 941 | + | core.PuregoSafeRegister(&xTabOverviewGetEnableSearch, libs, "adw_tab_overview_get_enable_search") | |||
| 942 | + | core.PuregoSafeRegister(&xTabOverviewGetExtraDragPreferredAction, libs, "adw_tab_overview_get_extra_drag_preferred_action") | |||
| 943 | + | core.PuregoSafeRegister(&xTabOverviewGetExtraDragPreload, libs, "adw_tab_overview_get_extra_drag_preload") | |||
| 944 | + | core.PuregoSafeRegister(&xTabOverviewGetInverted, libs, "adw_tab_overview_get_inverted") | |||
| 945 | + | core.PuregoSafeRegister(&xTabOverviewGetOpen, libs, "adw_tab_overview_get_open") | |||
| 946 | + | core.PuregoSafeRegister(&xTabOverviewGetSearchActive, libs, "adw_tab_overview_get_search_active") | |||
| 947 | + | core.PuregoSafeRegister(&xTabOverviewGetSecondaryMenu, libs, "adw_tab_overview_get_secondary_menu") | |||
| 948 | + | core.PuregoSafeRegister(&xTabOverviewGetShowEndTitleButtons, libs, "adw_tab_overview_get_show_end_title_buttons") | |||
| 949 | + | core.PuregoSafeRegister(&xTabOverviewGetShowStartTitleButtons, libs, "adw_tab_overview_get_show_start_title_buttons") | |||
| 950 | + | core.PuregoSafeRegister(&xTabOverviewGetView, libs, "adw_tab_overview_get_view") | |||
| 951 | + | core.PuregoSafeRegister(&xTabOverviewSetChild, libs, "adw_tab_overview_set_child") | |||
| 952 | + | core.PuregoSafeRegister(&xTabOverviewSetEnableNewTab, libs, "adw_tab_overview_set_enable_new_tab") | |||
| 953 | + | core.PuregoSafeRegister(&xTabOverviewSetEnableSearch, libs, "adw_tab_overview_set_enable_search") | |||
| 954 | + | core.PuregoSafeRegister(&xTabOverviewSetExtraDragPreload, libs, "adw_tab_overview_set_extra_drag_preload") | |||
| 955 | + | core.PuregoSafeRegister(&xTabOverviewSetInverted, libs, "adw_tab_overview_set_inverted") | |||
| 956 | + | core.PuregoSafeRegister(&xTabOverviewSetOpen, libs, "adw_tab_overview_set_open") | |||
| 957 | + | core.PuregoSafeRegister(&xTabOverviewSetSecondaryMenu, libs, "adw_tab_overview_set_secondary_menu") | |||
| 958 | + | core.PuregoSafeRegister(&xTabOverviewSetShowEndTitleButtons, libs, "adw_tab_overview_set_show_end_title_buttons") | |||
| 959 | + | core.PuregoSafeRegister(&xTabOverviewSetShowStartTitleButtons, libs, "adw_tab_overview_set_show_start_title_buttons") | |||
| 960 | + | core.PuregoSafeRegister(&xTabOverviewSetView, libs, "adw_tab_overview_set_view") | |||
| 961 | + | core.PuregoSafeRegister(&xTabOverviewSetupExtraDropTarget, libs, "adw_tab_overview_setup_extra_drop_target") | |||
| 970 | } | 962 | } | ||