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
| @@ -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/gio" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -61,7 +62,6 @@ type TabViewShortcuts int | |||
| 61 | 62 | var xTabViewShortcutsGLibType func() types.GType | |
| 62 | 63 | ||
| 63 | 64 | func TabViewShortcutsGLibType() types.GType { | |
| 64 | - | core.LazyRegister(&xTabViewShortcutsGLibType, "ADW", "adw_tab_view_shortcuts_get_type", false) | |
| 65 | 65 | return xTabViewShortcutsGLibType() | |
| 66 | 66 | } | |
| 67 | 67 | ||
| @@ -110,7 +110,6 @@ type TabPage struct { | |||
| 110 | 110 | var xTabPageGLibType func() types.GType | |
| 111 | 111 | ||
| 112 | 112 | func TabPageGLibType() types.GType { | |
| 113 | - | core.LazyRegister(&xTabPageGLibType, "ADW", "adw_tab_page_get_type", false) | |
| 114 | 113 | return xTabPageGLibType() | |
| 115 | 114 | } | |
| 116 | 115 | ||
| @@ -124,7 +123,6 @@ var xTabPageGetChild func(uintptr) uintptr | |||
| 124 | 123 | ||
| 125 | 124 | // Gets the child of @self. | |
| 126 | 125 | func (x *TabPage) GetChild() *gtk.Widget { | |
| 127 | - | core.LazyRegister(&xTabPageGetChild, "ADW", "adw_tab_page_get_child", false) | |
| 128 | 126 | var cls *gtk.Widget | |
| 129 | 127 | ||
| 130 | 128 | cret := xTabPageGetChild(x.GoPointer()) | |
| @@ -142,7 +140,6 @@ var xTabPageGetIcon func(uintptr) uintptr | |||
| 142 | 140 | ||
| 143 | 141 | // Gets the icon of @self. | |
| 144 | 142 | func (x *TabPage) GetIcon() *gio.IconBase { | |
| 145 | - | core.LazyRegister(&xTabPageGetIcon, "ADW", "adw_tab_page_get_icon", false) | |
| 146 | 143 | var cls *gio.IconBase | |
| 147 | 144 | ||
| 148 | 145 | cret := xTabPageGetIcon(x.GoPointer()) | |
| @@ -160,8 +157,6 @@ var xTabPageGetIndicatorActivatable func(uintptr) bool | |||
| 160 | 157 | ||
| 161 | 158 | // Gets whether the indicator of @self is activatable. | |
| 162 | 159 | func (x *TabPage) GetIndicatorActivatable() bool { | |
| 163 | - | core.LazyRegister(&xTabPageGetIndicatorActivatable, "ADW", "adw_tab_page_get_indicator_activatable", false) | |
| 164 | - | ||
| 165 | 160 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | |
| 166 | 161 | return cret | |
| 167 | 162 | } | |
| @@ -170,7 +165,6 @@ var xTabPageGetIndicatorIcon func(uintptr) uintptr | |||
| 170 | 165 | ||
| 171 | 166 | // Gets the indicator icon of @self. | |
| 172 | 167 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | |
| 173 | - | core.LazyRegister(&xTabPageGetIndicatorIcon, "ADW", "adw_tab_page_get_indicator_icon", false) | |
| 174 | 168 | var cls *gio.IconBase | |
| 175 | 169 | ||
| 176 | 170 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | |
| @@ -188,8 +182,6 @@ var xTabPageGetIndicatorTooltip func(uintptr) string | |||
| 188 | 182 | ||
| 189 | 183 | // Gets the tooltip of the indicator icon of @self. | |
| 190 | 184 | func (x *TabPage) GetIndicatorTooltip() string { | |
| 191 | - | core.LazyRegister(&xTabPageGetIndicatorTooltip, "ADW", "adw_tab_page_get_indicator_tooltip", false) | |
| 192 | - | ||
| 193 | 185 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | |
| 194 | 186 | return cret | |
| 195 | 187 | } | |
| @@ -198,8 +190,6 @@ var xTabPageGetKeyword func(uintptr) string | |||
| 198 | 190 | ||
| 199 | 191 | // Gets the search keyword of @self. | |
| 200 | 192 | func (x *TabPage) GetKeyword() string { | |
| 201 | - | core.LazyRegister(&xTabPageGetKeyword, "ADW", "adw_tab_page_get_keyword", false) | |
| 202 | - | ||
| 203 | 193 | cret := xTabPageGetKeyword(x.GoPointer()) | |
| 204 | 194 | return cret | |
| 205 | 195 | } | |
| @@ -208,8 +198,6 @@ var xTabPageGetLiveThumbnail func(uintptr) bool | |||
| 208 | 198 | ||
| 209 | 199 | // Gets whether to live thumbnail is enabled @self. | |
| 210 | 200 | func (x *TabPage) GetLiveThumbnail() bool { | |
| 211 | - | core.LazyRegister(&xTabPageGetLiveThumbnail, "ADW", "adw_tab_page_get_live_thumbnail", false) | |
| 212 | - | ||
| 213 | 201 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | |
| 214 | 202 | return cret | |
| 215 | 203 | } | |
| @@ -218,8 +206,6 @@ var xTabPageGetLoading func(uintptr) bool | |||
| 218 | 206 | ||
| 219 | 207 | // Gets whether @self is loading. | |
| 220 | 208 | func (x *TabPage) GetLoading() bool { | |
| 221 | - | core.LazyRegister(&xTabPageGetLoading, "ADW", "adw_tab_page_get_loading", false) | |
| 222 | - | ||
| 223 | 209 | cret := xTabPageGetLoading(x.GoPointer()) | |
| 224 | 210 | return cret | |
| 225 | 211 | } | |
| @@ -228,8 +214,6 @@ var xTabPageGetNeedsAttention func(uintptr) bool | |||
| 228 | 214 | ||
| 229 | 215 | // Gets whether @self needs attention. | |
| 230 | 216 | func (x *TabPage) GetNeedsAttention() bool { | |
| 231 | - | core.LazyRegister(&xTabPageGetNeedsAttention, "ADW", "adw_tab_page_get_needs_attention", false) | |
| 232 | - | ||
| 233 | 217 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | |
| 234 | 218 | return cret | |
| 235 | 219 | } | |
| @@ -240,7 +224,6 @@ var xTabPageGetParent func(uintptr) uintptr | |||
| 240 | 224 | // | |
| 241 | 225 | // See [method@TabView.add_page] and [method@TabView.close_page]. | |
| 242 | 226 | func (x *TabPage) GetParent() *TabPage { | |
| 243 | - | core.LazyRegister(&xTabPageGetParent, "ADW", "adw_tab_page_get_parent", false) | |
| 244 | 227 | var cls *TabPage | |
| 245 | 228 | ||
| 246 | 229 | cret := xTabPageGetParent(x.GoPointer()) | |
| @@ -260,8 +243,6 @@ var xTabPageGetPinned func(uintptr) bool | |||
| 260 | 243 | // | |
| 261 | 244 | // See [method@TabView.set_page_pinned]. | |
| 262 | 245 | func (x *TabPage) GetPinned() bool { | |
| 263 | - | core.LazyRegister(&xTabPageGetPinned, "ADW", "adw_tab_page_get_pinned", false) | |
| 264 | - | ||
| 265 | 246 | cret := xTabPageGetPinned(x.GoPointer()) | |
| 266 | 247 | return cret | |
| 267 | 248 | } | |
| @@ -270,8 +251,6 @@ var xTabPageGetSelected func(uintptr) bool | |||
| 270 | 251 | ||
| 271 | 252 | // Gets whether @self is selected. | |
| 272 | 253 | func (x *TabPage) GetSelected() bool { | |
| 273 | - | core.LazyRegister(&xTabPageGetSelected, "ADW", "adw_tab_page_get_selected", false) | |
| 274 | - | ||
| 275 | 254 | cret := xTabPageGetSelected(x.GoPointer()) | |
| 276 | 255 | return cret | |
| 277 | 256 | } | |
| @@ -280,8 +259,6 @@ var xTabPageGetThumbnailXalign func(uintptr) float32 | |||
| 280 | 259 | ||
| 281 | 260 | // Gets the horizontal alignment of the thumbnail for @self. | |
| 282 | 261 | func (x *TabPage) GetThumbnailXalign() float32 { | |
| 283 | - | core.LazyRegister(&xTabPageGetThumbnailXalign, "ADW", "adw_tab_page_get_thumbnail_xalign", false) | |
| 284 | - | ||
| 285 | 262 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | |
| 286 | 263 | return cret | |
| 287 | 264 | } | |
| @@ -290,8 +267,6 @@ var xTabPageGetThumbnailYalign func(uintptr) float32 | |||
| 290 | 267 | ||
| 291 | 268 | // Gets the vertical alignment of the thumbnail for @self. | |
| 292 | 269 | func (x *TabPage) GetThumbnailYalign() float32 { | |
| 293 | - | core.LazyRegister(&xTabPageGetThumbnailYalign, "ADW", "adw_tab_page_get_thumbnail_yalign", false) | |
| 294 | - | ||
| 295 | 270 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | |
| 296 | 271 | return cret | |
| 297 | 272 | } | |
| @@ -300,8 +275,6 @@ var xTabPageGetTitle func(uintptr) string | |||
| 300 | 275 | ||
| 301 | 276 | // Gets the title of @self. | |
| 302 | 277 | func (x *TabPage) GetTitle() string { | |
| 303 | - | core.LazyRegister(&xTabPageGetTitle, "ADW", "adw_tab_page_get_title", false) | |
| 304 | - | ||
| 305 | 278 | cret := xTabPageGetTitle(x.GoPointer()) | |
| 306 | 279 | return cret | |
| 307 | 280 | } | |
| @@ -310,8 +283,6 @@ var xTabPageGetTooltip func(uintptr) string | |||
| 310 | 283 | ||
| 311 | 284 | // Gets the tooltip of @self. | |
| 312 | 285 | func (x *TabPage) GetTooltip() string { | |
| 313 | - | core.LazyRegister(&xTabPageGetTooltip, "ADW", "adw_tab_page_get_tooltip", false) | |
| 314 | - | ||
| 315 | 286 | cret := xTabPageGetTooltip(x.GoPointer()) | |
| 316 | 287 | return cret | |
| 317 | 288 | } | |
| @@ -327,8 +298,6 @@ var xTabPageInvalidateThumbnail func(uintptr) | |||
| 327 | 298 | // | |
| 328 | 299 | // See also [method@TabView.invalidate_thumbnails]. | |
| 329 | 300 | func (x *TabPage) InvalidateThumbnail() { | |
| 330 | - | core.LazyRegister(&xTabPageInvalidateThumbnail, "ADW", "adw_tab_page_invalidate_thumbnail", false) | |
| 331 | - | ||
| 332 | 301 | xTabPageInvalidateThumbnail(x.GoPointer()) | |
| 333 | 302 | } | |
| 334 | 303 | ||
| @@ -342,8 +311,6 @@ var xTabPageSetIcon func(uintptr, uintptr) | |||
| 342 | 311 | // `AdwTabBar` also won't show the icon if the page is pinned and | |
| 343 | 312 | // [propertyTabPage:indicator-icon] is set. | |
| 344 | 313 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | |
| 345 | - | core.LazyRegister(&xTabPageSetIcon, "ADW", "adw_tab_page_set_icon", false) | |
| 346 | - | ||
| 347 | 314 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | |
| 348 | 315 | } | |
| 349 | 316 | ||
| @@ -356,8 +323,6 @@ var xTabPageSetIndicatorActivatable func(uintptr, bool) | |||
| 356 | 323 | // | |
| 357 | 324 | // If [property@TabPage:indicator-icon] is not set, does nothing. | |
| 358 | 325 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | |
| 359 | - | core.LazyRegister(&xTabPageSetIndicatorActivatable, "ADW", "adw_tab_page_set_indicator_activatable", false) | |
| 360 | - | ||
| 361 | 326 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | |
| 362 | 327 | } | |
| 363 | 328 | ||
| @@ -381,8 +346,6 @@ var xTabPageSetIndicatorIcon func(uintptr, uintptr) | |||
| 381 | 346 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | |
| 382 | 347 | // indicator icon can act as a button. | |
| 383 | 348 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | |
| 384 | - | core.LazyRegister(&xTabPageSetIndicatorIcon, "ADW", "adw_tab_page_set_indicator_icon", false) | |
| 385 | - | ||
| 386 | 349 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | |
| 387 | 350 | } | |
| 388 | 351 | ||
| @@ -394,8 +357,6 @@ var xTabPageSetIndicatorTooltip func(uintptr, string) | |||
| 394 | 357 | // | |
| 395 | 358 | // See [property@TabPage:indicator-icon]. | |
| 396 | 359 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | |
| 397 | - | core.LazyRegister(&xTabPageSetIndicatorTooltip, "ADW", "adw_tab_page_set_indicator_tooltip", false) | |
| 398 | - | ||
| 399 | 360 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | |
| 400 | 361 | } | |
| 401 | 362 | ||
| @@ -408,8 +369,6 @@ var xTabPageSetKeyword func(uintptr, string) | |||
| 408 | 369 | // | |
| 409 | 370 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | |
| 410 | 371 | func (x *TabPage) SetKeyword(KeywordVar string) { | |
| 411 | - | core.LazyRegister(&xTabPageSetKeyword, "ADW", "adw_tab_page_set_keyword", false) | |
| 412 | - | ||
| 413 | 372 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | |
| 414 | 373 | } | |
| 415 | 374 | ||
| @@ -425,8 +384,6 @@ var xTabPageSetLiveThumbnail func(uintptr, bool) | |||
| 425 | 384 | // [method@TabPage.invalidate_thumbnail] or | |
| 426 | 385 | // [method@TabView.invalidate_thumbnails] is called. | |
| 427 | 386 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | |
| 428 | - | core.LazyRegister(&xTabPageSetLiveThumbnail, "ADW", "adw_tab_page_set_live_thumbnail", false) | |
| 429 | - | ||
| 430 | 387 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | |
| 431 | 388 | } | |
| 432 | 389 | ||
| @@ -440,8 +397,6 @@ var xTabPageSetLoading func(uintptr, bool) | |||
| 440 | 397 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | |
| 441 | 398 | // status will not be visible with `AdwTabBar`. | |
| 442 | 399 | func (x *TabPage) SetLoading(LoadingVar bool) { | |
| 443 | - | core.LazyRegister(&xTabPageSetLoading, "ADW", "adw_tab_page_set_loading", false) | |
| 444 | - | ||
| 445 | 400 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | |
| 446 | 401 | } | |
| 447 | 402 | ||
| @@ -459,8 +414,6 @@ var xTabPageSetNeedsAttention func(uintptr, bool) | |||
| 459 | 414 | // [class@TabButton] will display a dot if any of the pages that aren't | |
| 460 | 415 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | |
| 461 | 416 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | |
| 462 | - | core.LazyRegister(&xTabPageSetNeedsAttention, "ADW", "adw_tab_page_set_needs_attention", false) | |
| 463 | - | ||
| 464 | 417 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | |
| 465 | 418 | } | |
| 466 | 419 | ||
| @@ -477,8 +430,6 @@ var xTabPageSetThumbnailXalign func(uintptr, float32) | |||
| 477 | 430 | // | |
| 478 | 431 | // The default horizontal alignment is 0. | |
| 479 | 432 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | |
| 480 | - | core.LazyRegister(&xTabPageSetThumbnailXalign, "ADW", "adw_tab_page_set_thumbnail_xalign", false) | |
| 481 | - | ||
| 482 | 433 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | |
| 483 | 434 | } | |
| 484 | 435 | ||
| @@ -495,8 +446,6 @@ var xTabPageSetThumbnailYalign func(uintptr, float32) | |||
| 495 | 446 | // | |
| 496 | 447 | // The default vertical alignment is 0. | |
| 497 | 448 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | |
| 498 | - | core.LazyRegister(&xTabPageSetThumbnailYalign, "ADW", "adw_tab_page_set_thumbnail_yalign", false) | |
| 499 | - | ||
| 500 | 449 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | |
| 501 | 450 | } | |
| 502 | 451 | ||
| @@ -511,8 +460,6 @@ var xTabPageSetTitle func(uintptr, string) | |||
| 511 | 460 | // | |
| 512 | 461 | // Sets the title of @self. | |
| 513 | 462 | func (x *TabPage) SetTitle(TitleVar string) { | |
| 514 | - | core.LazyRegister(&xTabPageSetTitle, "ADW", "adw_tab_page_set_title", false) | |
| 515 | - | ||
| 516 | 463 | xTabPageSetTitle(x.GoPointer(), TitleVar) | |
| 517 | 464 | } | |
| 518 | 465 | ||
| @@ -525,8 +472,6 @@ var xTabPageSetTooltip func(uintptr, string) | |||
| 525 | 472 | // If not set, [class@TabBar] and [class@TabOverview] will use | |
| 526 | 473 | // [property@TabPage:title] as a tooltip instead. | |
| 527 | 474 | func (x *TabPage) SetTooltip(TooltipVar string) { | |
| 528 | - | core.LazyRegister(&xTabPageSetTooltip, "ADW", "adw_tab_page_set_tooltip", false) | |
| 529 | - | ||
| 530 | 475 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | |
| 531 | 476 | } | |
| 532 | 477 | ||
| @@ -1166,7 +1111,6 @@ type TabView struct { | |||
| 1166 | 1111 | var xTabViewGLibType func() types.GType | |
| 1167 | 1112 | ||
| 1168 | 1113 | func TabViewGLibType() types.GType { | |
| 1169 | - | core.LazyRegister(&xTabViewGLibType, "ADW", "adw_tab_view_get_type", false) | |
| 1170 | 1114 | return xTabViewGLibType() | |
| 1171 | 1115 | } | |
| 1172 | 1116 | ||
| @@ -1180,7 +1124,6 @@ var xNewTabView func() uintptr | |||
| 1180 | 1124 | ||
| 1181 | 1125 | // Creates a new `AdwTabView`. | |
| 1182 | 1126 | func NewTabView() *TabView { | |
| 1183 | - | core.LazyRegister(&xNewTabView, "ADW", "adw_tab_view_new", false) | |
| 1184 | 1127 | var cls *TabView | |
| 1185 | 1128 | ||
| 1186 | 1129 | cret := xNewTabView() | |
| @@ -1204,7 +1147,6 @@ var xTabViewAddPage func(uintptr, uintptr, uintptr) uintptr | |||
| 1204 | 1147 | // | |
| 1205 | 1148 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | |
| 1206 | 1149 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | |
| 1207 | - | core.LazyRegister(&xTabViewAddPage, "ADW", "adw_tab_view_add_page", false) | |
| 1208 | 1150 | var cls *TabPage | |
| 1209 | 1151 | ||
| 1210 | 1152 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | |
| @@ -1224,8 +1166,6 @@ var xTabViewAddShortcuts func(uintptr, TabViewShortcuts) | |||
| 1224 | 1166 | // | |
| 1225 | 1167 | // See [property@TabView:shortcuts] for details. | |
| 1226 | 1168 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1227 | - | core.LazyRegister(&xTabViewAddShortcuts, "ADW", "adw_tab_view_add_shortcuts", false) | |
| 1228 | - | ||
| 1229 | 1169 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1230 | 1170 | } | |
| 1231 | 1171 | ||
| @@ -1233,7 +1173,6 @@ var xTabViewAppend func(uintptr, uintptr) uintptr | |||
| 1233 | 1173 | ||
| 1234 | 1174 | // Inserts @child as the last non-pinned page. | |
| 1235 | 1175 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | |
| 1236 | - | core.LazyRegister(&xTabViewAppend, "ADW", "adw_tab_view_append", false) | |
| 1237 | 1176 | var cls *TabPage | |
| 1238 | 1177 | ||
| 1239 | 1178 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1251,7 +1190,6 @@ var xTabViewAppendPinned func(uintptr, uintptr) uintptr | |||
| 1251 | 1190 | ||
| 1252 | 1191 | // Inserts @child as the last pinned page. | |
| 1253 | 1192 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | |
| 1254 | - | core.LazyRegister(&xTabViewAppendPinned, "ADW", "adw_tab_view_append_pinned", false) | |
| 1255 | 1193 | var cls *TabPage | |
| 1256 | 1194 | ||
| 1257 | 1195 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1269,8 +1207,6 @@ var xTabViewCloseOtherPages func(uintptr, uintptr) | |||
| 1269 | 1207 | ||
| 1270 | 1208 | // Requests to close all pages other than @page. | |
| 1271 | 1209 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | |
| 1272 | - | core.LazyRegister(&xTabViewCloseOtherPages, "ADW", "adw_tab_view_close_other_pages", false) | |
| 1273 | - | ||
| 1274 | 1210 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | |
| 1275 | 1211 | } | |
| 1276 | 1212 | ||
| @@ -1299,8 +1235,6 @@ var xTabViewClosePage func(uintptr, uintptr) | |||
| 1299 | 1235 | // (possibly indirect) of the parent. If both the previous page and the parent | |
| 1300 | 1236 | // are pinned, the parent will be selected instead. | |
| 1301 | 1237 | func (x *TabView) ClosePage(PageVar *TabPage) { | |
| 1302 | - | core.LazyRegister(&xTabViewClosePage, "ADW", "adw_tab_view_close_page", false) | |
| 1303 | - | ||
| 1304 | 1238 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | |
| 1305 | 1239 | } | |
| 1306 | 1240 | ||
| @@ -1315,8 +1249,6 @@ var xTabViewClosePageFinish func(uintptr, uintptr, bool) | |||
| 1315 | 1249 | // This function should not be called unless a custom handler for | |
| 1316 | 1250 | // [signal@TabView::close-page] is used. | |
| 1317 | 1251 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | |
| 1318 | - | core.LazyRegister(&xTabViewClosePageFinish, "ADW", "adw_tab_view_close_page_finish", false) | |
| 1319 | - | ||
| 1320 | 1252 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | |
| 1321 | 1253 | } | |
| 1322 | 1254 | ||
| @@ -1324,8 +1256,6 @@ var xTabViewClosePagesAfter func(uintptr, uintptr) | |||
| 1324 | 1256 | ||
| 1325 | 1257 | // Requests to close all pages after @page. | |
| 1326 | 1258 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | |
| 1327 | - | core.LazyRegister(&xTabViewClosePagesAfter, "ADW", "adw_tab_view_close_pages_after", false) | |
| 1328 | - | ||
| 1329 | 1259 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | |
| 1330 | 1260 | } | |
| 1331 | 1261 | ||
| @@ -1333,8 +1263,6 @@ var xTabViewClosePagesBefore func(uintptr, uintptr) | |||
| 1333 | 1263 | ||
| 1334 | 1264 | // Requests to close all pages before @page. | |
| 1335 | 1265 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | |
| 1336 | - | core.LazyRegister(&xTabViewClosePagesBefore, "ADW", "adw_tab_view_close_pages_before", false) | |
| 1337 | - | ||
| 1338 | 1266 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | |
| 1339 | 1267 | } | |
| 1340 | 1268 | ||
| @@ -1342,7 +1270,6 @@ var xTabViewGetDefaultIcon func(uintptr) uintptr | |||
| 1342 | 1270 | ||
| 1343 | 1271 | // Gets the default icon of @self. | |
| 1344 | 1272 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | |
| 1345 | - | core.LazyRegister(&xTabViewGetDefaultIcon, "ADW", "adw_tab_view_get_default_icon", false) | |
| 1346 | 1273 | var cls *gio.IconBase | |
| 1347 | 1274 | ||
| 1348 | 1275 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | |
| @@ -1366,8 +1293,6 @@ var xTabViewGetIsTransferringPage func(uintptr) bool | |||
| 1366 | 1293 | // During the transfer, children cannot receive pointer input and a tab can | |
| 1367 | 1294 | // be safely dropped on the tab view. | |
| 1368 | 1295 | func (x *TabView) GetIsTransferringPage() bool { | |
| 1369 | - | core.LazyRegister(&xTabViewGetIsTransferringPage, "ADW", "adw_tab_view_get_is_transferring_page", false) | |
| 1370 | - | ||
| 1371 | 1296 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | |
| 1372 | 1297 | return cret | |
| 1373 | 1298 | } | |
| @@ -1376,7 +1301,6 @@ var xTabViewGetMenuModel func(uintptr) uintptr | |||
| 1376 | 1301 | ||
| 1377 | 1302 | // Gets the tab context menu model for @self. | |
| 1378 | 1303 | func (x *TabView) GetMenuModel() *gio.MenuModel { | |
| 1379 | - | core.LazyRegister(&xTabViewGetMenuModel, "ADW", "adw_tab_view_get_menu_model", false) | |
| 1380 | 1304 | var cls *gio.MenuModel | |
| 1381 | 1305 | ||
| 1382 | 1306 | cret := xTabViewGetMenuModel(x.GoPointer()) | |
| @@ -1394,8 +1318,6 @@ var xTabViewGetNPages func(uintptr) int | |||
| 1394 | 1318 | ||
| 1395 | 1319 | // Gets the number of pages in @self. | |
| 1396 | 1320 | func (x *TabView) GetNPages() int { | |
| 1397 | - | core.LazyRegister(&xTabViewGetNPages, "ADW", "adw_tab_view_get_n_pages", false) | |
| 1398 | - | ||
| 1399 | 1321 | cret := xTabViewGetNPages(x.GoPointer()) | |
| 1400 | 1322 | return cret | |
| 1401 | 1323 | } | |
| @@ -1406,8 +1328,6 @@ var xTabViewGetNPinnedPages func(uintptr) int | |||
| 1406 | 1328 | // | |
| 1407 | 1329 | // See [method@TabView.set_page_pinned]. | |
| 1408 | 1330 | func (x *TabView) GetNPinnedPages() int { | |
| 1409 | - | core.LazyRegister(&xTabViewGetNPinnedPages, "ADW", "adw_tab_view_get_n_pinned_pages", false) | |
| 1410 | - | ||
| 1411 | 1331 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | |
| 1412 | 1332 | return cret | |
| 1413 | 1333 | } | |
| @@ -1416,7 +1336,6 @@ var xTabViewGetNthPage func(uintptr, int) uintptr | |||
| 1416 | 1336 | ||
| 1417 | 1337 | // Gets the [class@TabPage] representing the child at @position. | |
| 1418 | 1338 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | |
| 1419 | - | core.LazyRegister(&xTabViewGetNthPage, "ADW", "adw_tab_view_get_nth_page", false) | |
| 1420 | 1339 | var cls *TabPage | |
| 1421 | 1340 | ||
| 1422 | 1341 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | |
| @@ -1434,7 +1353,6 @@ var xTabViewGetPage func(uintptr, uintptr) uintptr | |||
| 1434 | 1353 | ||
| 1435 | 1354 | // Gets the [class@TabPage] object representing @child. | |
| 1436 | 1355 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | |
| 1437 | - | core.LazyRegister(&xTabViewGetPage, "ADW", "adw_tab_view_get_page", false) | |
| 1438 | 1356 | var cls *TabPage | |
| 1439 | 1357 | ||
| 1440 | 1358 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1452,8 +1370,6 @@ var xTabViewGetPagePosition func(uintptr, uintptr) int | |||
| 1452 | 1370 | ||
| 1453 | 1371 | // Finds the position of @page in @self, starting from 0. | |
| 1454 | 1372 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | |
| 1455 | - | core.LazyRegister(&xTabViewGetPagePosition, "ADW", "adw_tab_view_get_page_position", false) | |
| 1456 | - | ||
| 1457 | 1373 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | |
| 1458 | 1374 | return cret | |
| 1459 | 1375 | } | |
| @@ -1470,7 +1386,6 @@ var xTabViewGetPages func(uintptr) uintptr | |||
| 1470 | 1386 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | |
| 1471 | 1387 | // change the selected page. | |
| 1472 | 1388 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | |
| 1473 | - | core.LazyRegister(&xTabViewGetPages, "ADW", "adw_tab_view_get_pages", false) | |
| 1474 | 1389 | var cls *gtk.SelectionModelBase | |
| 1475 | 1390 | ||
| 1476 | 1391 | cret := xTabViewGetPages(x.GoPointer()) | |
| @@ -1487,7 +1402,6 @@ var xTabViewGetSelectedPage func(uintptr) uintptr | |||
| 1487 | 1402 | ||
| 1488 | 1403 | // Gets the currently selected page in @self. | |
| 1489 | 1404 | func (x *TabView) GetSelectedPage() *TabPage { | |
| 1490 | - | core.LazyRegister(&xTabViewGetSelectedPage, "ADW", "adw_tab_view_get_selected_page", false) | |
| 1491 | 1405 | var cls *TabPage | |
| 1492 | 1406 | ||
| 1493 | 1407 | cret := xTabViewGetSelectedPage(x.GoPointer()) | |
| @@ -1505,8 +1419,6 @@ var xTabViewGetShortcuts func(uintptr) TabViewShortcuts | |||
| 1505 | 1419 | ||
| 1506 | 1420 | // Gets the enabled shortcuts for @self. | |
| 1507 | 1421 | func (x *TabView) GetShortcuts() TabViewShortcuts { | |
| 1508 | - | core.LazyRegister(&xTabViewGetShortcuts, "ADW", "adw_tab_view_get_shortcuts", false) | |
| 1509 | - | ||
| 1510 | 1422 | cret := xTabViewGetShortcuts(x.GoPointer()) | |
| 1511 | 1423 | return cret | |
| 1512 | 1424 | } | |
| @@ -1518,7 +1430,6 @@ var xTabViewInsert func(uintptr, uintptr, int) uintptr | |||
| 1518 | 1430 | // It's an error to try to insert a page before a pinned page, in that case | |
| 1519 | 1431 | // [method@TabView.insert_pinned] should be used instead. | |
| 1520 | 1432 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | |
| 1521 | - | core.LazyRegister(&xTabViewInsert, "ADW", "adw_tab_view_insert", false) | |
| 1522 | 1433 | var cls *TabPage | |
| 1523 | 1434 | ||
| 1524 | 1435 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| @@ -1539,7 +1450,6 @@ var xTabViewInsertPinned func(uintptr, uintptr, int) uintptr | |||
| 1539 | 1450 | // It's an error to try to insert a pinned page after a non-pinned page, in | |
| 1540 | 1451 | // that case [method@TabView.insert] should be used instead. | |
| 1541 | 1452 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | |
| 1542 | - | core.LazyRegister(&xTabViewInsertPinned, "ADW", "adw_tab_view_insert_pinned", false) | |
| 1543 | 1453 | var cls *TabPage | |
| 1544 | 1454 | ||
| 1545 | 1455 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | |
| @@ -1560,8 +1470,6 @@ var xTabViewInvalidateThumbnails func(uintptr) | |||
| 1560 | 1470 | // This is a convenience method, equivalent to calling | |
| 1561 | 1471 | // [method@TabPage.invalidate_thumbnail] on each page. | |
| 1562 | 1472 | func (x *TabView) InvalidateThumbnails() { | |
| 1563 | - | core.LazyRegister(&xTabViewInvalidateThumbnails, "ADW", "adw_tab_view_invalidate_thumbnails", false) | |
| 1564 | - | ||
| 1565 | 1473 | xTabViewInvalidateThumbnails(x.GoPointer()) | |
| 1566 | 1474 | } | |
| 1567 | 1475 | ||
| @@ -1569,7 +1477,6 @@ var xTabViewPrepend func(uintptr, uintptr) uintptr | |||
| 1569 | 1477 | ||
| 1570 | 1478 | // Inserts @child as the first non-pinned page. | |
| 1571 | 1479 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | |
| 1572 | - | core.LazyRegister(&xTabViewPrepend, "ADW", "adw_tab_view_prepend", false) | |
| 1573 | 1480 | var cls *TabPage | |
| 1574 | 1481 | ||
| 1575 | 1482 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1587,7 +1494,6 @@ var xTabViewPrependPinned func(uintptr, uintptr) uintptr | |||
| 1587 | 1494 | ||
| 1588 | 1495 | // Inserts @child as the first pinned page. | |
| 1589 | 1496 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | |
| 1590 | - | core.LazyRegister(&xTabViewPrependPinned, "ADW", "adw_tab_view_prepend_pinned", false) | |
| 1591 | 1497 | var cls *TabPage | |
| 1592 | 1498 | ||
| 1593 | 1499 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | |
| @@ -1607,8 +1513,6 @@ var xTabViewRemoveShortcuts func(uintptr, TabViewShortcuts) | |||
| 1607 | 1513 | // | |
| 1608 | 1514 | // See [property@TabView:shortcuts] for details. | |
| 1609 | 1515 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1610 | - | core.LazyRegister(&xTabViewRemoveShortcuts, "ADW", "adw_tab_view_remove_shortcuts", false) | |
| 1611 | - | ||
| 1612 | 1516 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1613 | 1517 | } | |
| 1614 | 1518 | ||
| @@ -1616,8 +1520,6 @@ var xTabViewReorderBackward func(uintptr, uintptr) bool | |||
| 1616 | 1520 | ||
| 1617 | 1521 | // Reorders @page to before its previous page if possible. | |
| 1618 | 1522 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | |
| 1619 | - | core.LazyRegister(&xTabViewReorderBackward, "ADW", "adw_tab_view_reorder_backward", false) | |
| 1620 | - | ||
| 1621 | 1523 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | |
| 1622 | 1524 | return cret | |
| 1623 | 1525 | } | |
| @@ -1626,8 +1528,6 @@ var xTabViewReorderFirst func(uintptr, uintptr) bool | |||
| 1626 | 1528 | ||
| 1627 | 1529 | // Reorders @page to the first possible position. | |
| 1628 | 1530 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | |
| 1629 | - | core.LazyRegister(&xTabViewReorderFirst, "ADW", "adw_tab_view_reorder_first", false) | |
| 1630 | - | ||
| 1631 | 1531 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | |
| 1632 | 1532 | return cret | |
| 1633 | 1533 | } | |
| @@ -1636,8 +1536,6 @@ var xTabViewReorderForward func(uintptr, uintptr) bool | |||
| 1636 | 1536 | ||
| 1637 | 1537 | // Reorders @page to after its next page if possible. | |
| 1638 | 1538 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | |
| 1639 | - | core.LazyRegister(&xTabViewReorderForward, "ADW", "adw_tab_view_reorder_forward", false) | |
| 1640 | - | ||
| 1641 | 1539 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | |
| 1642 | 1540 | return cret | |
| 1643 | 1541 | } | |
| @@ -1646,8 +1544,6 @@ var xTabViewReorderLast func(uintptr, uintptr) bool | |||
| 1646 | 1544 | ||
| 1647 | 1545 | // Reorders @page to the last possible position. | |
| 1648 | 1546 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | |
| 1649 | - | core.LazyRegister(&xTabViewReorderLast, "ADW", "adw_tab_view_reorder_last", false) | |
| 1650 | - | ||
| 1651 | 1547 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | |
| 1652 | 1548 | return cret | |
| 1653 | 1549 | } | |
| @@ -1659,8 +1555,6 @@ var xTabViewReorderPage func(uintptr, uintptr, int) bool | |||
| 1659 | 1555 | // It's a programmer error to try to reorder a pinned page after a non-pinned | |
| 1660 | 1556 | // one, or a non-pinned page before a pinned one. | |
| 1661 | 1557 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | |
| 1662 | - | core.LazyRegister(&xTabViewReorderPage, "ADW", "adw_tab_view_reorder_page", false) | |
| 1663 | - | ||
| 1664 | 1558 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | |
| 1665 | 1559 | return cret | |
| 1666 | 1560 | } | |
| @@ -1671,8 +1565,6 @@ var xTabViewSelectNextPage func(uintptr) bool | |||
| 1671 | 1565 | // | |
| 1672 | 1566 | // If the last page was already selected, this function does nothing. | |
| 1673 | 1567 | func (x *TabView) SelectNextPage() bool { | |
| 1674 | - | core.LazyRegister(&xTabViewSelectNextPage, "ADW", "adw_tab_view_select_next_page", false) | |
| 1675 | - | ||
| 1676 | 1568 | cret := xTabViewSelectNextPage(x.GoPointer()) | |
| 1677 | 1569 | return cret | |
| 1678 | 1570 | } | |
| @@ -1683,8 +1575,6 @@ var xTabViewSelectPreviousPage func(uintptr) bool | |||
| 1683 | 1575 | // | |
| 1684 | 1576 | // If the first page was already selected, this function does nothing. | |
| 1685 | 1577 | func (x *TabView) SelectPreviousPage() bool { | |
| 1686 | - | core.LazyRegister(&xTabViewSelectPreviousPage, "ADW", "adw_tab_view_select_previous_page", false) | |
| 1687 | - | ||
| 1688 | 1578 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | |
| 1689 | 1579 | return cret | |
| 1690 | 1580 | } | |
| @@ -1704,8 +1594,6 @@ var xTabViewSetDefaultIcon func(uintptr, uintptr) | |||
| 1704 | 1594 | // | |
| 1705 | 1595 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | |
| 1706 | 1596 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | |
| 1707 | - | core.LazyRegister(&xTabViewSetDefaultIcon, "ADW", "adw_tab_view_set_default_icon", false) | |
| 1708 | - | ||
| 1709 | 1597 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | |
| 1710 | 1598 | } | |
| 1711 | 1599 | ||
| @@ -1717,8 +1605,6 @@ var xTabViewSetMenuModel func(uintptr, uintptr) | |||
| 1717 | 1605 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | |
| 1718 | 1606 | // the menu actions for the particular tab. | |
| 1719 | 1607 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | |
| 1720 | - | core.LazyRegister(&xTabViewSetMenuModel, "ADW", "adw_tab_view_set_menu_model", false) | |
| 1721 | - | ||
| 1722 | 1608 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | |
| 1723 | 1609 | } | |
| 1724 | 1610 | ||
| @@ -1754,8 +1640,6 @@ var xTabViewSetPagePinned func(uintptr, uintptr, bool) | |||
| 1754 | 1640 | // | |
| 1755 | 1641 | // Changes the value of the [property@TabPage:pinned] property. | |
| 1756 | 1642 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | |
| 1757 | - | core.LazyRegister(&xTabViewSetPagePinned, "ADW", "adw_tab_view_set_page_pinned", false) | |
| 1758 | - | ||
| 1759 | 1643 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | |
| 1760 | 1644 | } | |
| 1761 | 1645 | ||
| @@ -1763,8 +1647,6 @@ var xTabViewSetSelectedPage func(uintptr, uintptr) | |||
| 1763 | 1647 | ||
| 1764 | 1648 | // Sets the currently selected page in @self. | |
| 1765 | 1649 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | |
| 1766 | - | core.LazyRegister(&xTabViewSetSelectedPage, "ADW", "adw_tab_view_set_selected_page", false) | |
| 1767 | - | ||
| 1768 | 1650 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | |
| 1769 | 1651 | } | |
| 1770 | 1652 | ||
| @@ -1778,8 +1660,6 @@ var xTabViewSetShortcuts func(uintptr, TabViewShortcuts) | |||
| 1778 | 1660 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | |
| 1779 | 1661 | // a convenient way to manage individual shortcuts. | |
| 1780 | 1662 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | |
| 1781 | - | core.LazyRegister(&xTabViewSetShortcuts, "ADW", "adw_tab_view_set_shortcuts", false) | |
| 1782 | - | ||
| 1783 | 1663 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | |
| 1784 | 1664 | } | |
| 1785 | 1665 | ||
| @@ -1792,8 +1672,6 @@ var xTabViewTransferPage func(uintptr, uintptr, uintptr, int) | |||
| 1792 | 1672 | // It's a programmer error to try to insert a pinned page after a non-pinned | |
| 1793 | 1673 | // one, or a non-pinned page before a pinned one. | |
| 1794 | 1674 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | |
| 1795 | - | core.LazyRegister(&xTabViewTransferPage, "ADW", "adw_tab_view_transfer_page", false) | |
| 1796 | - | ||
| 1797 | 1675 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | |
| 1798 | 1676 | } | |
| 1799 | 1677 | ||
| @@ -2324,4 +2202,90 @@ func (x *TabView) GetBuildableId() string { | |||
| 2324 | 2202 | func init() { | |
| 2325 | 2203 | core.SetPackageName("ADW", "libadwaita-1") | |
| 2326 | 2204 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 2205 | + | var libs []uintptr | |
| 2206 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 2207 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2208 | + | if err != nil { | |
| 2209 | + | panic(err) | |
| 2210 | + | } | |
| 2211 | + | libs = append(libs, lib) | |
| 2212 | + | } | |
| 2213 | + | ||
| 2214 | + | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, libs, "adw_tab_view_shortcuts_get_type") | |
| 2215 | + | ||
| 2216 | + | core.PuregoSafeRegister(&xTabPageGLibType, libs, "adw_tab_page_get_type") | |
| 2217 | + | ||
| 2218 | + | core.PuregoSafeRegister(&xTabPageGetChild, libs, "adw_tab_page_get_child") | |
| 2219 | + | core.PuregoSafeRegister(&xTabPageGetIcon, libs, "adw_tab_page_get_icon") | |
| 2220 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, libs, "adw_tab_page_get_indicator_activatable") | |
| 2221 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorIcon, libs, "adw_tab_page_get_indicator_icon") | |
| 2222 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorTooltip, libs, "adw_tab_page_get_indicator_tooltip") | |
| 2223 | + | core.PuregoSafeRegister(&xTabPageGetKeyword, libs, "adw_tab_page_get_keyword") | |
| 2224 | + | core.PuregoSafeRegister(&xTabPageGetLiveThumbnail, libs, "adw_tab_page_get_live_thumbnail") | |
| 2225 | + | core.PuregoSafeRegister(&xTabPageGetLoading, libs, "adw_tab_page_get_loading") | |
| 2226 | + | core.PuregoSafeRegister(&xTabPageGetNeedsAttention, libs, "adw_tab_page_get_needs_attention") | |
| 2227 | + | core.PuregoSafeRegister(&xTabPageGetParent, libs, "adw_tab_page_get_parent") | |
| 2228 | + | core.PuregoSafeRegister(&xTabPageGetPinned, libs, "adw_tab_page_get_pinned") | |
| 2229 | + | core.PuregoSafeRegister(&xTabPageGetSelected, libs, "adw_tab_page_get_selected") | |
| 2230 | + | core.PuregoSafeRegister(&xTabPageGetThumbnailXalign, libs, "adw_tab_page_get_thumbnail_xalign") | |
| 2231 | + | core.PuregoSafeRegister(&xTabPageGetThumbnailYalign, libs, "adw_tab_page_get_thumbnail_yalign") | |
| 2232 | + | core.PuregoSafeRegister(&xTabPageGetTitle, libs, "adw_tab_page_get_title") | |
| 2233 | + | core.PuregoSafeRegister(&xTabPageGetTooltip, libs, "adw_tab_page_get_tooltip") | |
| 2234 | + | core.PuregoSafeRegister(&xTabPageInvalidateThumbnail, libs, "adw_tab_page_invalidate_thumbnail") | |
| 2235 | + | core.PuregoSafeRegister(&xTabPageSetIcon, libs, "adw_tab_page_set_icon") | |
| 2236 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorActivatable, libs, "adw_tab_page_set_indicator_activatable") | |
| 2237 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorIcon, libs, "adw_tab_page_set_indicator_icon") | |
| 2238 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorTooltip, libs, "adw_tab_page_set_indicator_tooltip") | |
| 2239 | + | core.PuregoSafeRegister(&xTabPageSetKeyword, libs, "adw_tab_page_set_keyword") | |
| 2240 | + | core.PuregoSafeRegister(&xTabPageSetLiveThumbnail, libs, "adw_tab_page_set_live_thumbnail") | |
| 2241 | + | core.PuregoSafeRegister(&xTabPageSetLoading, libs, "adw_tab_page_set_loading") | |
| 2242 | + | core.PuregoSafeRegister(&xTabPageSetNeedsAttention, libs, "adw_tab_page_set_needs_attention") | |
| 2243 | + | core.PuregoSafeRegister(&xTabPageSetThumbnailXalign, libs, "adw_tab_page_set_thumbnail_xalign") | |
| 2244 | + | core.PuregoSafeRegister(&xTabPageSetThumbnailYalign, libs, "adw_tab_page_set_thumbnail_yalign") | |
| 2245 | + | core.PuregoSafeRegister(&xTabPageSetTitle, libs, "adw_tab_page_set_title") | |
| 2246 | + | core.PuregoSafeRegister(&xTabPageSetTooltip, libs, "adw_tab_page_set_tooltip") | |
| 2247 | + | ||
| 2248 | + | core.PuregoSafeRegister(&xTabViewGLibType, libs, "adw_tab_view_get_type") | |
| 2249 | + | ||
| 2250 | + | core.PuregoSafeRegister(&xNewTabView, libs, "adw_tab_view_new") | |
| 2251 | + | ||
| 2252 | + | core.PuregoSafeRegister(&xTabViewAddPage, libs, "adw_tab_view_add_page") | |
| 2253 | + | core.PuregoSafeRegister(&xTabViewAddShortcuts, libs, "adw_tab_view_add_shortcuts") | |
| 2254 | + | core.PuregoSafeRegister(&xTabViewAppend, libs, "adw_tab_view_append") | |
| 2255 | + | core.PuregoSafeRegister(&xTabViewAppendPinned, libs, "adw_tab_view_append_pinned") | |
| 2256 | + | core.PuregoSafeRegister(&xTabViewCloseOtherPages, libs, "adw_tab_view_close_other_pages") | |
| 2257 | + | core.PuregoSafeRegister(&xTabViewClosePage, libs, "adw_tab_view_close_page") | |
| 2258 | + | core.PuregoSafeRegister(&xTabViewClosePageFinish, libs, "adw_tab_view_close_page_finish") | |
| 2259 | + | core.PuregoSafeRegister(&xTabViewClosePagesAfter, libs, "adw_tab_view_close_pages_after") | |
| 2260 | + | core.PuregoSafeRegister(&xTabViewClosePagesBefore, libs, "adw_tab_view_close_pages_before") | |
| 2261 | + | core.PuregoSafeRegister(&xTabViewGetDefaultIcon, libs, "adw_tab_view_get_default_icon") | |
| 2262 | + | core.PuregoSafeRegister(&xTabViewGetIsTransferringPage, libs, "adw_tab_view_get_is_transferring_page") | |
| 2263 | + | core.PuregoSafeRegister(&xTabViewGetMenuModel, libs, "adw_tab_view_get_menu_model") | |
| 2264 | + | core.PuregoSafeRegister(&xTabViewGetNPages, libs, "adw_tab_view_get_n_pages") | |
| 2265 | + | core.PuregoSafeRegister(&xTabViewGetNPinnedPages, libs, "adw_tab_view_get_n_pinned_pages") | |
| 2266 | + | core.PuregoSafeRegister(&xTabViewGetNthPage, libs, "adw_tab_view_get_nth_page") | |
| 2267 | + | core.PuregoSafeRegister(&xTabViewGetPage, libs, "adw_tab_view_get_page") | |
| 2268 | + | core.PuregoSafeRegister(&xTabViewGetPagePosition, libs, "adw_tab_view_get_page_position") | |
| 2269 | + | core.PuregoSafeRegister(&xTabViewGetPages, libs, "adw_tab_view_get_pages") | |
| 2270 | + | core.PuregoSafeRegister(&xTabViewGetSelectedPage, libs, "adw_tab_view_get_selected_page") | |
| 2271 | + | core.PuregoSafeRegister(&xTabViewGetShortcuts, libs, "adw_tab_view_get_shortcuts") | |
| 2272 | + | core.PuregoSafeRegister(&xTabViewInsert, libs, "adw_tab_view_insert") | |
| 2273 | + | core.PuregoSafeRegister(&xTabViewInsertPinned, libs, "adw_tab_view_insert_pinned") | |
| 2274 | + | core.PuregoSafeRegister(&xTabViewInvalidateThumbnails, libs, "adw_tab_view_invalidate_thumbnails") | |
| 2275 | + | core.PuregoSafeRegister(&xTabViewPrepend, libs, "adw_tab_view_prepend") | |
| 2276 | + | core.PuregoSafeRegister(&xTabViewPrependPinned, libs, "adw_tab_view_prepend_pinned") | |
| 2277 | + | core.PuregoSafeRegister(&xTabViewRemoveShortcuts, libs, "adw_tab_view_remove_shortcuts") | |
| 2278 | + | core.PuregoSafeRegister(&xTabViewReorderBackward, libs, "adw_tab_view_reorder_backward") | |
| 2279 | + | core.PuregoSafeRegister(&xTabViewReorderFirst, libs, "adw_tab_view_reorder_first") | |
| 2280 | + | core.PuregoSafeRegister(&xTabViewReorderForward, libs, "adw_tab_view_reorder_forward") | |
| 2281 | + | core.PuregoSafeRegister(&xTabViewReorderLast, libs, "adw_tab_view_reorder_last") | |
| 2282 | + | core.PuregoSafeRegister(&xTabViewReorderPage, libs, "adw_tab_view_reorder_page") | |
| 2283 | + | core.PuregoSafeRegister(&xTabViewSelectNextPage, libs, "adw_tab_view_select_next_page") | |
| 2284 | + | core.PuregoSafeRegister(&xTabViewSelectPreviousPage, libs, "adw_tab_view_select_previous_page") | |
| 2285 | + | core.PuregoSafeRegister(&xTabViewSetDefaultIcon, libs, "adw_tab_view_set_default_icon") | |
| 2286 | + | core.PuregoSafeRegister(&xTabViewSetMenuModel, libs, "adw_tab_view_set_menu_model") | |
| 2287 | + | core.PuregoSafeRegister(&xTabViewSetPagePinned, libs, "adw_tab_view_set_page_pinned") | |
| 2288 | + | core.PuregoSafeRegister(&xTabViewSetSelectedPage, libs, "adw_tab_view_set_selected_page") | |
| 2289 | + | core.PuregoSafeRegister(&xTabViewSetShortcuts, libs, "adw_tab_view_set_shortcuts") | |
| 2290 | + | core.PuregoSafeRegister(&xTabViewTransferPage, libs, "adw_tab_view_transfer_page") | |
| 2327 | 2291 | } | |
| @@ -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/gio" | 10 | "github.com/bnema/puregotk/v4/gio" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 11 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -61,7 +62,6 @@ type TabViewShortcuts int | |||||
| 61 | var xTabViewShortcutsGLibType func() types.GType | 62 | var xTabViewShortcutsGLibType func() types.GType | ||
| 62 | 63 | ||||
| 63 | func TabViewShortcutsGLibType() types.GType { | 64 | func TabViewShortcutsGLibType() types.GType { | ||
| 64 | - | core.LazyRegister(&xTabViewShortcutsGLibType, "ADW", "adw_tab_view_shortcuts_get_type", false) | |||
| 65 | return xTabViewShortcutsGLibType() | 65 | return xTabViewShortcutsGLibType() | ||
| 66 | } | 66 | } | ||
| 67 | 67 | ||||
| @@ -110,7 +110,6 @@ type TabPage struct { | |||||
| 110 | var xTabPageGLibType func() types.GType | 110 | var xTabPageGLibType func() types.GType | ||
| 111 | 111 | ||||
| 112 | func TabPageGLibType() types.GType { | 112 | func TabPageGLibType() types.GType { | ||
| 113 | - | core.LazyRegister(&xTabPageGLibType, "ADW", "adw_tab_page_get_type", false) | |||
| 114 | return xTabPageGLibType() | 113 | return xTabPageGLibType() | ||
| 115 | } | 114 | } | ||
| 116 | 115 | ||||
| @@ -124,7 +123,6 @@ var xTabPageGetChild func(uintptr) uintptr | |||||
| 124 | 123 | ||||
| 125 | // Gets the child of @self. | 124 | // Gets the child of @self. | ||
| 126 | func (x *TabPage) GetChild() *gtk.Widget { | 125 | func (x *TabPage) GetChild() *gtk.Widget { | ||
| 127 | - | core.LazyRegister(&xTabPageGetChild, "ADW", "adw_tab_page_get_child", false) | |||
| 128 | var cls *gtk.Widget | 126 | var cls *gtk.Widget | ||
| 129 | 127 | ||||
| 130 | cret := xTabPageGetChild(x.GoPointer()) | 128 | cret := xTabPageGetChild(x.GoPointer()) | ||
| @@ -142,7 +140,6 @@ var xTabPageGetIcon func(uintptr) uintptr | |||||
| 142 | 140 | ||||
| 143 | // Gets the icon of @self. | 141 | // Gets the icon of @self. | ||
| 144 | func (x *TabPage) GetIcon() *gio.IconBase { | 142 | func (x *TabPage) GetIcon() *gio.IconBase { | ||
| 145 | - | core.LazyRegister(&xTabPageGetIcon, "ADW", "adw_tab_page_get_icon", false) | |||
| 146 | var cls *gio.IconBase | 143 | var cls *gio.IconBase | ||
| 147 | 144 | ||||
| 148 | cret := xTabPageGetIcon(x.GoPointer()) | 145 | cret := xTabPageGetIcon(x.GoPointer()) | ||
| @@ -160,8 +157,6 @@ var xTabPageGetIndicatorActivatable func(uintptr) bool | |||||
| 160 | 157 | ||||
| 161 | // Gets whether the indicator of @self is activatable. | 158 | // Gets whether the indicator of @self is activatable. | ||
| 162 | func (x *TabPage) GetIndicatorActivatable() bool { | 159 | func (x *TabPage) GetIndicatorActivatable() bool { | ||
| 163 | - | core.LazyRegister(&xTabPageGetIndicatorActivatable, "ADW", "adw_tab_page_get_indicator_activatable", false) | |||
| 164 | - | ||||
| 165 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | 160 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | ||
| 166 | return cret | 161 | return cret | ||
| 167 | } | 162 | } | ||
| @@ -170,7 +165,6 @@ var xTabPageGetIndicatorIcon func(uintptr) uintptr | |||||
| 170 | 165 | ||||
| 171 | // Gets the indicator icon of @self. | 166 | // Gets the indicator icon of @self. | ||
| 172 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | 167 | func (x *TabPage) GetIndicatorIcon() *gio.IconBase { | ||
| 173 | - | core.LazyRegister(&xTabPageGetIndicatorIcon, "ADW", "adw_tab_page_get_indicator_icon", false) | |||
| 174 | var cls *gio.IconBase | 168 | var cls *gio.IconBase | ||
| 175 | 169 | ||||
| 176 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | 170 | cret := xTabPageGetIndicatorIcon(x.GoPointer()) | ||
| @@ -188,8 +182,6 @@ var xTabPageGetIndicatorTooltip func(uintptr) string | |||||
| 188 | 182 | ||||
| 189 | // Gets the tooltip of the indicator icon of @self. | 183 | // Gets the tooltip of the indicator icon of @self. | ||
| 190 | func (x *TabPage) GetIndicatorTooltip() string { | 184 | func (x *TabPage) GetIndicatorTooltip() string { | ||
| 191 | - | core.LazyRegister(&xTabPageGetIndicatorTooltip, "ADW", "adw_tab_page_get_indicator_tooltip", false) | |||
| 192 | - | ||||
| 193 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | 185 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | ||
| 194 | return cret | 186 | return cret | ||
| 195 | } | 187 | } | ||
| @@ -198,8 +190,6 @@ var xTabPageGetKeyword func(uintptr) string | |||||
| 198 | 190 | ||||
| 199 | // Gets the search keyword of @self. | 191 | // Gets the search keyword of @self. | ||
| 200 | func (x *TabPage) GetKeyword() string { | 192 | func (x *TabPage) GetKeyword() string { | ||
| 201 | - | core.LazyRegister(&xTabPageGetKeyword, "ADW", "adw_tab_page_get_keyword", false) | |||
| 202 | - | ||||
| 203 | cret := xTabPageGetKeyword(x.GoPointer()) | 193 | cret := xTabPageGetKeyword(x.GoPointer()) | ||
| 204 | return cret | 194 | return cret | ||
| 205 | } | 195 | } | ||
| @@ -208,8 +198,6 @@ var xTabPageGetLiveThumbnail func(uintptr) bool | |||||
| 208 | 198 | ||||
| 209 | // Gets whether to live thumbnail is enabled @self. | 199 | // Gets whether to live thumbnail is enabled @self. | ||
| 210 | func (x *TabPage) GetLiveThumbnail() bool { | 200 | func (x *TabPage) GetLiveThumbnail() bool { | ||
| 211 | - | core.LazyRegister(&xTabPageGetLiveThumbnail, "ADW", "adw_tab_page_get_live_thumbnail", false) | |||
| 212 | - | ||||
| 213 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | 201 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | ||
| 214 | return cret | 202 | return cret | ||
| 215 | } | 203 | } | ||
| @@ -218,8 +206,6 @@ var xTabPageGetLoading func(uintptr) bool | |||||
| 218 | 206 | ||||
| 219 | // Gets whether @self is loading. | 207 | // Gets whether @self is loading. | ||
| 220 | func (x *TabPage) GetLoading() bool { | 208 | func (x *TabPage) GetLoading() bool { | ||
| 221 | - | core.LazyRegister(&xTabPageGetLoading, "ADW", "adw_tab_page_get_loading", false) | |||
| 222 | - | ||||
| 223 | cret := xTabPageGetLoading(x.GoPointer()) | 209 | cret := xTabPageGetLoading(x.GoPointer()) | ||
| 224 | return cret | 210 | return cret | ||
| 225 | } | 211 | } | ||
| @@ -228,8 +214,6 @@ var xTabPageGetNeedsAttention func(uintptr) bool | |||||
| 228 | 214 | ||||
| 229 | // Gets whether @self needs attention. | 215 | // Gets whether @self needs attention. | ||
| 230 | func (x *TabPage) GetNeedsAttention() bool { | 216 | func (x *TabPage) GetNeedsAttention() bool { | ||
| 231 | - | core.LazyRegister(&xTabPageGetNeedsAttention, "ADW", "adw_tab_page_get_needs_attention", false) | |||
| 232 | - | ||||
| 233 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | 217 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | ||
| 234 | return cret | 218 | return cret | ||
| 235 | } | 219 | } | ||
| @@ -240,7 +224,6 @@ var xTabPageGetParent func(uintptr) uintptr | |||||
| 240 | // | 224 | // | ||
| 241 | // See [method@TabView.add_page] and [method@TabView.close_page]. | 225 | // See [method@TabView.add_page] and [method@TabView.close_page]. | ||
| 242 | func (x *TabPage) GetParent() *TabPage { | 226 | func (x *TabPage) GetParent() *TabPage { | ||
| 243 | - | core.LazyRegister(&xTabPageGetParent, "ADW", "adw_tab_page_get_parent", false) | |||
| 244 | var cls *TabPage | 227 | var cls *TabPage | ||
| 245 | 228 | ||||
| 246 | cret := xTabPageGetParent(x.GoPointer()) | 229 | cret := xTabPageGetParent(x.GoPointer()) | ||
| @@ -260,8 +243,6 @@ var xTabPageGetPinned func(uintptr) bool | |||||
| 260 | // | 243 | // | ||
| 261 | // See [method@TabView.set_page_pinned]. | 244 | // See [method@TabView.set_page_pinned]. | ||
| 262 | func (x *TabPage) GetPinned() bool { | 245 | func (x *TabPage) GetPinned() bool { | ||
| 263 | - | core.LazyRegister(&xTabPageGetPinned, "ADW", "adw_tab_page_get_pinned", false) | |||
| 264 | - | ||||
| 265 | cret := xTabPageGetPinned(x.GoPointer()) | 246 | cret := xTabPageGetPinned(x.GoPointer()) | ||
| 266 | return cret | 247 | return cret | ||
| 267 | } | 248 | } | ||
| @@ -270,8 +251,6 @@ var xTabPageGetSelected func(uintptr) bool | |||||
| 270 | 251 | ||||
| 271 | // Gets whether @self is selected. | 252 | // Gets whether @self is selected. | ||
| 272 | func (x *TabPage) GetSelected() bool { | 253 | func (x *TabPage) GetSelected() bool { | ||
| 273 | - | core.LazyRegister(&xTabPageGetSelected, "ADW", "adw_tab_page_get_selected", false) | |||
| 274 | - | ||||
| 275 | cret := xTabPageGetSelected(x.GoPointer()) | 254 | cret := xTabPageGetSelected(x.GoPointer()) | ||
| 276 | return cret | 255 | return cret | ||
| 277 | } | 256 | } | ||
| @@ -280,8 +259,6 @@ var xTabPageGetThumbnailXalign func(uintptr) float32 | |||||
| 280 | 259 | ||||
| 281 | // Gets the horizontal alignment of the thumbnail for @self. | 260 | // Gets the horizontal alignment of the thumbnail for @self. | ||
| 282 | func (x *TabPage) GetThumbnailXalign() float32 { | 261 | func (x *TabPage) GetThumbnailXalign() float32 { | ||
| 283 | - | core.LazyRegister(&xTabPageGetThumbnailXalign, "ADW", "adw_tab_page_get_thumbnail_xalign", false) | |||
| 284 | - | ||||
| 285 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | 262 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | ||
| 286 | return cret | 263 | return cret | ||
| 287 | } | 264 | } | ||
| @@ -290,8 +267,6 @@ var xTabPageGetThumbnailYalign func(uintptr) float32 | |||||
| 290 | 267 | ||||
| 291 | // Gets the vertical alignment of the thumbnail for @self. | 268 | // Gets the vertical alignment of the thumbnail for @self. | ||
| 292 | func (x *TabPage) GetThumbnailYalign() float32 { | 269 | func (x *TabPage) GetThumbnailYalign() float32 { | ||
| 293 | - | core.LazyRegister(&xTabPageGetThumbnailYalign, "ADW", "adw_tab_page_get_thumbnail_yalign", false) | |||
| 294 | - | ||||
| 295 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | 270 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | ||
| 296 | return cret | 271 | return cret | ||
| 297 | } | 272 | } | ||
| @@ -300,8 +275,6 @@ var xTabPageGetTitle func(uintptr) string | |||||
| 300 | 275 | ||||
| 301 | // Gets the title of @self. | 276 | // Gets the title of @self. | ||
| 302 | func (x *TabPage) GetTitle() string { | 277 | func (x *TabPage) GetTitle() string { | ||
| 303 | - | core.LazyRegister(&xTabPageGetTitle, "ADW", "adw_tab_page_get_title", false) | |||
| 304 | - | ||||
| 305 | cret := xTabPageGetTitle(x.GoPointer()) | 278 | cret := xTabPageGetTitle(x.GoPointer()) | ||
| 306 | return cret | 279 | return cret | ||
| 307 | } | 280 | } | ||
| @@ -310,8 +283,6 @@ var xTabPageGetTooltip func(uintptr) string | |||||
| 310 | 283 | ||||
| 311 | // Gets the tooltip of @self. | 284 | // Gets the tooltip of @self. | ||
| 312 | func (x *TabPage) GetTooltip() string { | 285 | func (x *TabPage) GetTooltip() string { | ||
| 313 | - | core.LazyRegister(&xTabPageGetTooltip, "ADW", "adw_tab_page_get_tooltip", false) | |||
| 314 | - | ||||
| 315 | cret := xTabPageGetTooltip(x.GoPointer()) | 286 | cret := xTabPageGetTooltip(x.GoPointer()) | ||
| 316 | return cret | 287 | return cret | ||
| 317 | } | 288 | } | ||
| @@ -327,8 +298,6 @@ var xTabPageInvalidateThumbnail func(uintptr) | |||||
| 327 | // | 298 | // | ||
| 328 | // See also [method@TabView.invalidate_thumbnails]. | 299 | // See also [method@TabView.invalidate_thumbnails]. | ||
| 329 | func (x *TabPage) InvalidateThumbnail() { | 300 | func (x *TabPage) InvalidateThumbnail() { | ||
| 330 | - | core.LazyRegister(&xTabPageInvalidateThumbnail, "ADW", "adw_tab_page_invalidate_thumbnail", false) | |||
| 331 | - | ||||
| 332 | xTabPageInvalidateThumbnail(x.GoPointer()) | 301 | xTabPageInvalidateThumbnail(x.GoPointer()) | ||
| 333 | } | 302 | } | ||
| 334 | 303 | ||||
| @@ -342,8 +311,6 @@ var xTabPageSetIcon func(uintptr, uintptr) | |||||
| 342 | // `AdwTabBar` also won't show the icon if the page is pinned and | 311 | // `AdwTabBar` also won't show the icon if the page is pinned and | ||
| 343 | // [propertyTabPage:indicator-icon] is set. | 312 | // [propertyTabPage:indicator-icon] is set. | ||
| 344 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | 313 | func (x *TabPage) SetIcon(IconVar gio.Icon) { | ||
| 345 | - | core.LazyRegister(&xTabPageSetIcon, "ADW", "adw_tab_page_set_icon", false) | |||
| 346 | - | ||||
| 347 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | 314 | xTabPageSetIcon(x.GoPointer(), IconVar.GoPointer()) | ||
| 348 | } | 315 | } | ||
| 349 | 316 | ||||
| @@ -356,8 +323,6 @@ var xTabPageSetIndicatorActivatable func(uintptr, bool) | |||||
| 356 | // | 323 | // | ||
| 357 | // If [property@TabPage:indicator-icon] is not set, does nothing. | 324 | // If [property@TabPage:indicator-icon] is not set, does nothing. | ||
| 358 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | 325 | func (x *TabPage) SetIndicatorActivatable(ActivatableVar bool) { | ||
| 359 | - | core.LazyRegister(&xTabPageSetIndicatorActivatable, "ADW", "adw_tab_page_set_indicator_activatable", false) | |||
| 360 | - | ||||
| 361 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | 326 | xTabPageSetIndicatorActivatable(x.GoPointer(), ActivatableVar) | ||
| 362 | } | 327 | } | ||
| 363 | 328 | ||||
| @@ -381,8 +346,6 @@ var xTabPageSetIndicatorIcon func(uintptr, uintptr) | |||||
| 381 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | 346 | // If [property@TabPage:indicator-activatable] is set to `TRUE`, the | ||
| 382 | // indicator icon can act as a button. | 347 | // indicator icon can act as a button. | ||
| 383 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | 348 | func (x *TabPage) SetIndicatorIcon(IndicatorIconVar gio.Icon) { | ||
| 384 | - | core.LazyRegister(&xTabPageSetIndicatorIcon, "ADW", "adw_tab_page_set_indicator_icon", false) | |||
| 385 | - | ||||
| 386 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | 349 | xTabPageSetIndicatorIcon(x.GoPointer(), IndicatorIconVar.GoPointer()) | ||
| 387 | } | 350 | } | ||
| 388 | 351 | ||||
| @@ -394,8 +357,6 @@ var xTabPageSetIndicatorTooltip func(uintptr, string) | |||||
| 394 | // | 357 | // | ||
| 395 | // See [property@TabPage:indicator-icon]. | 358 | // See [property@TabPage:indicator-icon]. | ||
| 396 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | 359 | func (x *TabPage) SetIndicatorTooltip(TooltipVar string) { | ||
| 397 | - | core.LazyRegister(&xTabPageSetIndicatorTooltip, "ADW", "adw_tab_page_set_indicator_tooltip", false) | |||
| 398 | - | ||||
| 399 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | 360 | xTabPageSetIndicatorTooltip(x.GoPointer(), TooltipVar) | ||
| 400 | } | 361 | } | ||
| 401 | 362 | ||||
| @@ -408,8 +369,6 @@ var xTabPageSetKeyword func(uintptr, string) | |||||
| 408 | // | 369 | // | ||
| 409 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | 370 | // Keywords allow to include e.g. page URLs into tab search in a web browser. | ||
| 410 | func (x *TabPage) SetKeyword(KeywordVar string) { | 371 | func (x *TabPage) SetKeyword(KeywordVar string) { | ||
| 411 | - | core.LazyRegister(&xTabPageSetKeyword, "ADW", "adw_tab_page_set_keyword", false) | |||
| 412 | - | ||||
| 413 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | 372 | xTabPageSetKeyword(x.GoPointer(), KeywordVar) | ||
| 414 | } | 373 | } | ||
| 415 | 374 | ||||
| @@ -425,8 +384,6 @@ var xTabPageSetLiveThumbnail func(uintptr, bool) | |||||
| 425 | // [method@TabPage.invalidate_thumbnail] or | 384 | // [method@TabPage.invalidate_thumbnail] or | ||
| 426 | // [method@TabView.invalidate_thumbnails] is called. | 385 | // [method@TabView.invalidate_thumbnails] is called. | ||
| 427 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | 386 | func (x *TabPage) SetLiveThumbnail(LiveThumbnailVar bool) { | ||
| 428 | - | core.LazyRegister(&xTabPageSetLiveThumbnail, "ADW", "adw_tab_page_set_live_thumbnail", false) | |||
| 429 | - | ||||
| 430 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | 387 | xTabPageSetLiveThumbnail(x.GoPointer(), LiveThumbnailVar) | ||
| 431 | } | 388 | } | ||
| 432 | 389 | ||||
| @@ -440,8 +397,6 @@ var xTabPageSetLoading func(uintptr, bool) | |||||
| 440 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | 397 | // If the page is pinned and [property@TabPage:indicator-icon] is set, loading | ||
| 441 | // status will not be visible with `AdwTabBar`. | 398 | // status will not be visible with `AdwTabBar`. | ||
| 442 | func (x *TabPage) SetLoading(LoadingVar bool) { | 399 | func (x *TabPage) SetLoading(LoadingVar bool) { | ||
| 443 | - | core.LazyRegister(&xTabPageSetLoading, "ADW", "adw_tab_page_set_loading", false) | |||
| 444 | - | ||||
| 445 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | 400 | xTabPageSetLoading(x.GoPointer(), LoadingVar) | ||
| 446 | } | 401 | } | ||
| 447 | 402 | ||||
| @@ -459,8 +414,6 @@ var xTabPageSetNeedsAttention func(uintptr, bool) | |||||
| 459 | // [class@TabButton] will display a dot if any of the pages that aren't | 414 | // [class@TabButton] will display a dot if any of the pages that aren't | ||
| 460 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | 415 | // selected have [property@TabPage:needs-attention] set to `TRUE`. | ||
| 461 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | 416 | func (x *TabPage) SetNeedsAttention(NeedsAttentionVar bool) { | ||
| 462 | - | core.LazyRegister(&xTabPageSetNeedsAttention, "ADW", "adw_tab_page_set_needs_attention", false) | |||
| 463 | - | ||||
| 464 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | 417 | xTabPageSetNeedsAttention(x.GoPointer(), NeedsAttentionVar) | ||
| 465 | } | 418 | } | ||
| 466 | 419 | ||||
| @@ -477,8 +430,6 @@ var xTabPageSetThumbnailXalign func(uintptr, float32) | |||||
| 477 | // | 430 | // | ||
| 478 | // The default horizontal alignment is 0. | 431 | // The default horizontal alignment is 0. | ||
| 479 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | 432 | func (x *TabPage) SetThumbnailXalign(XalignVar float32) { | ||
| 480 | - | core.LazyRegister(&xTabPageSetThumbnailXalign, "ADW", "adw_tab_page_set_thumbnail_xalign", false) | |||
| 481 | - | ||||
| 482 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | 433 | xTabPageSetThumbnailXalign(x.GoPointer(), XalignVar) | ||
| 483 | } | 434 | } | ||
| 484 | 435 | ||||
| @@ -495,8 +446,6 @@ var xTabPageSetThumbnailYalign func(uintptr, float32) | |||||
| 495 | // | 446 | // | ||
| 496 | // The default vertical alignment is 0. | 447 | // The default vertical alignment is 0. | ||
| 497 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | 448 | func (x *TabPage) SetThumbnailYalign(YalignVar float32) { | ||
| 498 | - | core.LazyRegister(&xTabPageSetThumbnailYalign, "ADW", "adw_tab_page_set_thumbnail_yalign", false) | |||
| 499 | - | ||||
| 500 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | 449 | xTabPageSetThumbnailYalign(x.GoPointer(), YalignVar) | ||
| 501 | } | 450 | } | ||
| 502 | 451 | ||||
| @@ -511,8 +460,6 @@ var xTabPageSetTitle func(uintptr, string) | |||||
| 511 | // | 460 | // | ||
| 512 | // Sets the title of @self. | 461 | // Sets the title of @self. | ||
| 513 | func (x *TabPage) SetTitle(TitleVar string) { | 462 | func (x *TabPage) SetTitle(TitleVar string) { | ||
| 514 | - | core.LazyRegister(&xTabPageSetTitle, "ADW", "adw_tab_page_set_title", false) | |||
| 515 | - | ||||
| 516 | xTabPageSetTitle(x.GoPointer(), TitleVar) | 463 | xTabPageSetTitle(x.GoPointer(), TitleVar) | ||
| 517 | } | 464 | } | ||
| 518 | 465 | ||||
| @@ -525,8 +472,6 @@ var xTabPageSetTooltip func(uintptr, string) | |||||
| 525 | // If not set, [class@TabBar] and [class@TabOverview] will use | 472 | // If not set, [class@TabBar] and [class@TabOverview] will use | ||
| 526 | // [property@TabPage:title] as a tooltip instead. | 473 | // [property@TabPage:title] as a tooltip instead. | ||
| 527 | func (x *TabPage) SetTooltip(TooltipVar string) { | 474 | func (x *TabPage) SetTooltip(TooltipVar string) { | ||
| 528 | - | core.LazyRegister(&xTabPageSetTooltip, "ADW", "adw_tab_page_set_tooltip", false) | |||
| 529 | - | ||||
| 530 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | 475 | xTabPageSetTooltip(x.GoPointer(), TooltipVar) | ||
| 531 | } | 476 | } | ||
| 532 | 477 | ||||
| @@ -1166,7 +1111,6 @@ type TabView struct { | |||||
| 1166 | var xTabViewGLibType func() types.GType | 1111 | var xTabViewGLibType func() types.GType | ||
| 1167 | 1112 | ||||
| 1168 | func TabViewGLibType() types.GType { | 1113 | func TabViewGLibType() types.GType { | ||
| 1169 | - | core.LazyRegister(&xTabViewGLibType, "ADW", "adw_tab_view_get_type", false) | |||
| 1170 | return xTabViewGLibType() | 1114 | return xTabViewGLibType() | ||
| 1171 | } | 1115 | } | ||
| 1172 | 1116 | ||||
| @@ -1180,7 +1124,6 @@ var xNewTabView func() uintptr | |||||
| 1180 | 1124 | ||||
| 1181 | // Creates a new `AdwTabView`. | 1125 | // Creates a new `AdwTabView`. | ||
| 1182 | func NewTabView() *TabView { | 1126 | func NewTabView() *TabView { | ||
| 1183 | - | core.LazyRegister(&xNewTabView, "ADW", "adw_tab_view_new", false) | |||
| 1184 | var cls *TabView | 1127 | var cls *TabView | ||
| 1185 | 1128 | ||||
| 1186 | cret := xNewTabView() | 1129 | cret := xNewTabView() | ||
| @@ -1204,7 +1147,6 @@ var xTabViewAddPage func(uintptr, uintptr, uintptr) uintptr | |||||
| 1204 | // | 1147 | // | ||
| 1205 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | 1148 | // If @parent is `NULL`, this function is equivalent to [method@TabView.append]. | ||
| 1206 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | 1149 | func (x *TabView) AddPage(ChildVar *gtk.Widget, ParentVar *TabPage) *TabPage { | ||
| 1207 | - | core.LazyRegister(&xTabViewAddPage, "ADW", "adw_tab_view_add_page", false) | |||
| 1208 | var cls *TabPage | 1150 | var cls *TabPage | ||
| 1209 | 1151 | ||||
| 1210 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | 1152 | cret := xTabViewAddPage(x.GoPointer(), ChildVar.GoPointer(), ParentVar.GoPointer()) | ||
| @@ -1224,8 +1166,6 @@ var xTabViewAddShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1224 | // | 1166 | // | ||
| 1225 | // See [property@TabView:shortcuts] for details. | 1167 | // See [property@TabView:shortcuts] for details. | ||
| 1226 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | 1168 | func (x *TabView) AddShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1227 | - | core.LazyRegister(&xTabViewAddShortcuts, "ADW", "adw_tab_view_add_shortcuts", false) | |||
| 1228 | - | ||||
| 1229 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | 1169 | xTabViewAddShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1230 | } | 1170 | } | ||
| 1231 | 1171 | ||||
| @@ -1233,7 +1173,6 @@ var xTabViewAppend func(uintptr, uintptr) uintptr | |||||
| 1233 | 1173 | ||||
| 1234 | // Inserts @child as the last non-pinned page. | 1174 | // Inserts @child as the last non-pinned page. | ||
| 1235 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | 1175 | func (x *TabView) Append(ChildVar *gtk.Widget) *TabPage { | ||
| 1236 | - | core.LazyRegister(&xTabViewAppend, "ADW", "adw_tab_view_append", false) | |||
| 1237 | var cls *TabPage | 1176 | var cls *TabPage | ||
| 1238 | 1177 | ||||
| 1239 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | 1178 | cret := xTabViewAppend(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1251,7 +1190,6 @@ var xTabViewAppendPinned func(uintptr, uintptr) uintptr | |||||
| 1251 | 1190 | ||||
| 1252 | // Inserts @child as the last pinned page. | 1191 | // Inserts @child as the last pinned page. | ||
| 1253 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | 1192 | func (x *TabView) AppendPinned(ChildVar *gtk.Widget) *TabPage { | ||
| 1254 | - | core.LazyRegister(&xTabViewAppendPinned, "ADW", "adw_tab_view_append_pinned", false) | |||
| 1255 | var cls *TabPage | 1193 | var cls *TabPage | ||
| 1256 | 1194 | ||||
| 1257 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | 1195 | cret := xTabViewAppendPinned(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1269,8 +1207,6 @@ var xTabViewCloseOtherPages func(uintptr, uintptr) | |||||
| 1269 | 1207 | ||||
| 1270 | // Requests to close all pages other than @page. | 1208 | // Requests to close all pages other than @page. | ||
| 1271 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | 1209 | func (x *TabView) CloseOtherPages(PageVar *TabPage) { | ||
| 1272 | - | core.LazyRegister(&xTabViewCloseOtherPages, "ADW", "adw_tab_view_close_other_pages", false) | |||
| 1273 | - | ||||
| 1274 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | 1210 | xTabViewCloseOtherPages(x.GoPointer(), PageVar.GoPointer()) | ||
| 1275 | } | 1211 | } | ||
| 1276 | 1212 | ||||
| @@ -1299,8 +1235,6 @@ var xTabViewClosePage func(uintptr, uintptr) | |||||
| 1299 | // (possibly indirect) of the parent. If both the previous page and the parent | 1235 | // (possibly indirect) of the parent. If both the previous page and the parent | ||
| 1300 | // are pinned, the parent will be selected instead. | 1236 | // are pinned, the parent will be selected instead. | ||
| 1301 | func (x *TabView) ClosePage(PageVar *TabPage) { | 1237 | func (x *TabView) ClosePage(PageVar *TabPage) { | ||
| 1302 | - | core.LazyRegister(&xTabViewClosePage, "ADW", "adw_tab_view_close_page", false) | |||
| 1303 | - | ||||
| 1304 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | 1238 | xTabViewClosePage(x.GoPointer(), PageVar.GoPointer()) | ||
| 1305 | } | 1239 | } | ||
| 1306 | 1240 | ||||
| @@ -1315,8 +1249,6 @@ var xTabViewClosePageFinish func(uintptr, uintptr, bool) | |||||
| 1315 | // This function should not be called unless a custom handler for | 1249 | // This function should not be called unless a custom handler for | ||
| 1316 | // [signal@TabView::close-page] is used. | 1250 | // [signal@TabView::close-page] is used. | ||
| 1317 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | 1251 | func (x *TabView) ClosePageFinish(PageVar *TabPage, ConfirmVar bool) { | ||
| 1318 | - | core.LazyRegister(&xTabViewClosePageFinish, "ADW", "adw_tab_view_close_page_finish", false) | |||
| 1319 | - | ||||
| 1320 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | 1252 | xTabViewClosePageFinish(x.GoPointer(), PageVar.GoPointer(), ConfirmVar) | ||
| 1321 | } | 1253 | } | ||
| 1322 | 1254 | ||||
| @@ -1324,8 +1256,6 @@ var xTabViewClosePagesAfter func(uintptr, uintptr) | |||||
| 1324 | 1256 | ||||
| 1325 | // Requests to close all pages after @page. | 1257 | // Requests to close all pages after @page. | ||
| 1326 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | 1258 | func (x *TabView) ClosePagesAfter(PageVar *TabPage) { | ||
| 1327 | - | core.LazyRegister(&xTabViewClosePagesAfter, "ADW", "adw_tab_view_close_pages_after", false) | |||
| 1328 | - | ||||
| 1329 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | 1259 | xTabViewClosePagesAfter(x.GoPointer(), PageVar.GoPointer()) | ||
| 1330 | } | 1260 | } | ||
| 1331 | 1261 | ||||
| @@ -1333,8 +1263,6 @@ var xTabViewClosePagesBefore func(uintptr, uintptr) | |||||
| 1333 | 1263 | ||||
| 1334 | // Requests to close all pages before @page. | 1264 | // Requests to close all pages before @page. | ||
| 1335 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | 1265 | func (x *TabView) ClosePagesBefore(PageVar *TabPage) { | ||
| 1336 | - | core.LazyRegister(&xTabViewClosePagesBefore, "ADW", "adw_tab_view_close_pages_before", false) | |||
| 1337 | - | ||||
| 1338 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | 1266 | xTabViewClosePagesBefore(x.GoPointer(), PageVar.GoPointer()) | ||
| 1339 | } | 1267 | } | ||
| 1340 | 1268 | ||||
| @@ -1342,7 +1270,6 @@ var xTabViewGetDefaultIcon func(uintptr) uintptr | |||||
| 1342 | 1270 | ||||
| 1343 | // Gets the default icon of @self. | 1271 | // Gets the default icon of @self. | ||
| 1344 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | 1272 | func (x *TabView) GetDefaultIcon() *gio.IconBase { | ||
| 1345 | - | core.LazyRegister(&xTabViewGetDefaultIcon, "ADW", "adw_tab_view_get_default_icon", false) | |||
| 1346 | var cls *gio.IconBase | 1273 | var cls *gio.IconBase | ||
| 1347 | 1274 | ||||
| 1348 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | 1275 | cret := xTabViewGetDefaultIcon(x.GoPointer()) | ||
| @@ -1366,8 +1293,6 @@ var xTabViewGetIsTransferringPage func(uintptr) bool | |||||
| 1366 | // During the transfer, children cannot receive pointer input and a tab can | 1293 | // During the transfer, children cannot receive pointer input and a tab can | ||
| 1367 | // be safely dropped on the tab view. | 1294 | // be safely dropped on the tab view. | ||
| 1368 | func (x *TabView) GetIsTransferringPage() bool { | 1295 | func (x *TabView) GetIsTransferringPage() bool { | ||
| 1369 | - | core.LazyRegister(&xTabViewGetIsTransferringPage, "ADW", "adw_tab_view_get_is_transferring_page", false) | |||
| 1370 | - | ||||
| 1371 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | 1296 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | ||
| 1372 | return cret | 1297 | return cret | ||
| 1373 | } | 1298 | } | ||
| @@ -1376,7 +1301,6 @@ var xTabViewGetMenuModel func(uintptr) uintptr | |||||
| 1376 | 1301 | ||||
| 1377 | // Gets the tab context menu model for @self. | 1302 | // Gets the tab context menu model for @self. | ||
| 1378 | func (x *TabView) GetMenuModel() *gio.MenuModel { | 1303 | func (x *TabView) GetMenuModel() *gio.MenuModel { | ||
| 1379 | - | core.LazyRegister(&xTabViewGetMenuModel, "ADW", "adw_tab_view_get_menu_model", false) | |||
| 1380 | var cls *gio.MenuModel | 1304 | var cls *gio.MenuModel | ||
| 1381 | 1305 | ||||
| 1382 | cret := xTabViewGetMenuModel(x.GoPointer()) | 1306 | cret := xTabViewGetMenuModel(x.GoPointer()) | ||
| @@ -1394,8 +1318,6 @@ var xTabViewGetNPages func(uintptr) int | |||||
| 1394 | 1318 | ||||
| 1395 | // Gets the number of pages in @self. | 1319 | // Gets the number of pages in @self. | ||
| 1396 | func (x *TabView) GetNPages() int { | 1320 | func (x *TabView) GetNPages() int { | ||
| 1397 | - | core.LazyRegister(&xTabViewGetNPages, "ADW", "adw_tab_view_get_n_pages", false) | |||
| 1398 | - | ||||
| 1399 | cret := xTabViewGetNPages(x.GoPointer()) | 1321 | cret := xTabViewGetNPages(x.GoPointer()) | ||
| 1400 | return cret | 1322 | return cret | ||
| 1401 | } | 1323 | } | ||
| @@ -1406,8 +1328,6 @@ var xTabViewGetNPinnedPages func(uintptr) int | |||||
| 1406 | // | 1328 | // | ||
| 1407 | // See [method@TabView.set_page_pinned]. | 1329 | // See [method@TabView.set_page_pinned]. | ||
| 1408 | func (x *TabView) GetNPinnedPages() int { | 1330 | func (x *TabView) GetNPinnedPages() int { | ||
| 1409 | - | core.LazyRegister(&xTabViewGetNPinnedPages, "ADW", "adw_tab_view_get_n_pinned_pages", false) | |||
| 1410 | - | ||||
| 1411 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | 1331 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | ||
| 1412 | return cret | 1332 | return cret | ||
| 1413 | } | 1333 | } | ||
| @@ -1416,7 +1336,6 @@ var xTabViewGetNthPage func(uintptr, int) uintptr | |||||
| 1416 | 1336 | ||||
| 1417 | // Gets the [class@TabPage] representing the child at @position. | 1337 | // Gets the [class@TabPage] representing the child at @position. | ||
| 1418 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | 1338 | func (x *TabView) GetNthPage(PositionVar int) *TabPage { | ||
| 1419 | - | core.LazyRegister(&xTabViewGetNthPage, "ADW", "adw_tab_view_get_nth_page", false) | |||
| 1420 | var cls *TabPage | 1339 | var cls *TabPage | ||
| 1421 | 1340 | ||||
| 1422 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | 1341 | cret := xTabViewGetNthPage(x.GoPointer(), PositionVar) | ||
| @@ -1434,7 +1353,6 @@ var xTabViewGetPage func(uintptr, uintptr) uintptr | |||||
| 1434 | 1353 | ||||
| 1435 | // Gets the [class@TabPage] object representing @child. | 1354 | // Gets the [class@TabPage] object representing @child. | ||
| 1436 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | 1355 | func (x *TabView) GetPage(ChildVar *gtk.Widget) *TabPage { | ||
| 1437 | - | core.LazyRegister(&xTabViewGetPage, "ADW", "adw_tab_view_get_page", false) | |||
| 1438 | var cls *TabPage | 1356 | var cls *TabPage | ||
| 1439 | 1357 | ||||
| 1440 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | 1358 | cret := xTabViewGetPage(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1452,8 +1370,6 @@ var xTabViewGetPagePosition func(uintptr, uintptr) int | |||||
| 1452 | 1370 | ||||
| 1453 | // Finds the position of @page in @self, starting from 0. | 1371 | // Finds the position of @page in @self, starting from 0. | ||
| 1454 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | 1372 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | ||
| 1455 | - | core.LazyRegister(&xTabViewGetPagePosition, "ADW", "adw_tab_view_get_page_position", false) | |||
| 1456 | - | ||||
| 1457 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | 1373 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | ||
| 1458 | return cret | 1374 | return cret | ||
| 1459 | } | 1375 | } | ||
| @@ -1470,7 +1386,6 @@ var xTabViewGetPages func(uintptr) uintptr | |||||
| 1470 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | 1386 | // It also implements [iface@Gtk.SelectionModel] and can be used to track and | ||
| 1471 | // change the selected page. | 1387 | // change the selected page. | ||
| 1472 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | 1388 | func (x *TabView) GetPages() *gtk.SelectionModelBase { | ||
| 1473 | - | core.LazyRegister(&xTabViewGetPages, "ADW", "adw_tab_view_get_pages", false) | |||
| 1474 | var cls *gtk.SelectionModelBase | 1389 | var cls *gtk.SelectionModelBase | ||
| 1475 | 1390 | ||||
| 1476 | cret := xTabViewGetPages(x.GoPointer()) | 1391 | cret := xTabViewGetPages(x.GoPointer()) | ||
| @@ -1487,7 +1402,6 @@ var xTabViewGetSelectedPage func(uintptr) uintptr | |||||
| 1487 | 1402 | ||||
| 1488 | // Gets the currently selected page in @self. | 1403 | // Gets the currently selected page in @self. | ||
| 1489 | func (x *TabView) GetSelectedPage() *TabPage { | 1404 | func (x *TabView) GetSelectedPage() *TabPage { | ||
| 1490 | - | core.LazyRegister(&xTabViewGetSelectedPage, "ADW", "adw_tab_view_get_selected_page", false) | |||
| 1491 | var cls *TabPage | 1405 | var cls *TabPage | ||
| 1492 | 1406 | ||||
| 1493 | cret := xTabViewGetSelectedPage(x.GoPointer()) | 1407 | cret := xTabViewGetSelectedPage(x.GoPointer()) | ||
| @@ -1505,8 +1419,6 @@ var xTabViewGetShortcuts func(uintptr) TabViewShortcuts | |||||
| 1505 | 1419 | ||||
| 1506 | // Gets the enabled shortcuts for @self. | 1420 | // Gets the enabled shortcuts for @self. | ||
| 1507 | func (x *TabView) GetShortcuts() TabViewShortcuts { | 1421 | func (x *TabView) GetShortcuts() TabViewShortcuts { | ||
| 1508 | - | core.LazyRegister(&xTabViewGetShortcuts, "ADW", "adw_tab_view_get_shortcuts", false) | |||
| 1509 | - | ||||
| 1510 | cret := xTabViewGetShortcuts(x.GoPointer()) | 1422 | cret := xTabViewGetShortcuts(x.GoPointer()) | ||
| 1511 | return cret | 1423 | return cret | ||
| 1512 | } | 1424 | } | ||
| @@ -1518,7 +1430,6 @@ var xTabViewInsert func(uintptr, uintptr, int) uintptr | |||||
| 1518 | // It's an error to try to insert a page before a pinned page, in that case | 1430 | // It's an error to try to insert a page before a pinned page, in that case | ||
| 1519 | // [method@TabView.insert_pinned] should be used instead. | 1431 | // [method@TabView.insert_pinned] should be used instead. | ||
| 1520 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | 1432 | func (x *TabView) Insert(ChildVar *gtk.Widget, PositionVar int) *TabPage { | ||
| 1521 | - | core.LazyRegister(&xTabViewInsert, "ADW", "adw_tab_view_insert", false) | |||
| 1522 | var cls *TabPage | 1433 | var cls *TabPage | ||
| 1523 | 1434 | ||||
| 1524 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 1435 | cret := xTabViewInsert(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| @@ -1539,7 +1450,6 @@ var xTabViewInsertPinned func(uintptr, uintptr, int) uintptr | |||||
| 1539 | // It's an error to try to insert a pinned page after a non-pinned page, in | 1450 | // It's an error to try to insert a pinned page after a non-pinned page, in | ||
| 1540 | // that case [method@TabView.insert] should be used instead. | 1451 | // that case [method@TabView.insert] should be used instead. | ||
| 1541 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | 1452 | func (x *TabView) InsertPinned(ChildVar *gtk.Widget, PositionVar int) *TabPage { | ||
| 1542 | - | core.LazyRegister(&xTabViewInsertPinned, "ADW", "adw_tab_view_insert_pinned", false) | |||
| 1543 | var cls *TabPage | 1453 | var cls *TabPage | ||
| 1544 | 1454 | ||||
| 1545 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | 1455 | cret := xTabViewInsertPinned(x.GoPointer(), ChildVar.GoPointer(), PositionVar) | ||
| @@ -1560,8 +1470,6 @@ var xTabViewInvalidateThumbnails func(uintptr) | |||||
| 1560 | // This is a convenience method, equivalent to calling | 1470 | // This is a convenience method, equivalent to calling | ||
| 1561 | // [method@TabPage.invalidate_thumbnail] on each page. | 1471 | // [method@TabPage.invalidate_thumbnail] on each page. | ||
| 1562 | func (x *TabView) InvalidateThumbnails() { | 1472 | func (x *TabView) InvalidateThumbnails() { | ||
| 1563 | - | core.LazyRegister(&xTabViewInvalidateThumbnails, "ADW", "adw_tab_view_invalidate_thumbnails", false) | |||
| 1564 | - | ||||
| 1565 | xTabViewInvalidateThumbnails(x.GoPointer()) | 1473 | xTabViewInvalidateThumbnails(x.GoPointer()) | ||
| 1566 | } | 1474 | } | ||
| 1567 | 1475 | ||||
| @@ -1569,7 +1477,6 @@ var xTabViewPrepend func(uintptr, uintptr) uintptr | |||||
| 1569 | 1477 | ||||
| 1570 | // Inserts @child as the first non-pinned page. | 1478 | // Inserts @child as the first non-pinned page. | ||
| 1571 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | 1479 | func (x *TabView) Prepend(ChildVar *gtk.Widget) *TabPage { | ||
| 1572 | - | core.LazyRegister(&xTabViewPrepend, "ADW", "adw_tab_view_prepend", false) | |||
| 1573 | var cls *TabPage | 1480 | var cls *TabPage | ||
| 1574 | 1481 | ||||
| 1575 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | 1482 | cret := xTabViewPrepend(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1587,7 +1494,6 @@ var xTabViewPrependPinned func(uintptr, uintptr) uintptr | |||||
| 1587 | 1494 | ||||
| 1588 | // Inserts @child as the first pinned page. | 1495 | // Inserts @child as the first pinned page. | ||
| 1589 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | 1496 | func (x *TabView) PrependPinned(ChildVar *gtk.Widget) *TabPage { | ||
| 1590 | - | core.LazyRegister(&xTabViewPrependPinned, "ADW", "adw_tab_view_prepend_pinned", false) | |||
| 1591 | var cls *TabPage | 1497 | var cls *TabPage | ||
| 1592 | 1498 | ||||
| 1593 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | 1499 | cret := xTabViewPrependPinned(x.GoPointer(), ChildVar.GoPointer()) | ||
| @@ -1607,8 +1513,6 @@ var xTabViewRemoveShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1607 | // | 1513 | // | ||
| 1608 | // See [property@TabView:shortcuts] for details. | 1514 | // See [property@TabView:shortcuts] for details. | ||
| 1609 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | 1515 | func (x *TabView) RemoveShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1610 | - | core.LazyRegister(&xTabViewRemoveShortcuts, "ADW", "adw_tab_view_remove_shortcuts", false) | |||
| 1611 | - | ||||
| 1612 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | 1516 | xTabViewRemoveShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1613 | } | 1517 | } | ||
| 1614 | 1518 | ||||
| @@ -1616,8 +1520,6 @@ var xTabViewReorderBackward func(uintptr, uintptr) bool | |||||
| 1616 | 1520 | ||||
| 1617 | // Reorders @page to before its previous page if possible. | 1521 | // Reorders @page to before its previous page if possible. | ||
| 1618 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | 1522 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | ||
| 1619 | - | core.LazyRegister(&xTabViewReorderBackward, "ADW", "adw_tab_view_reorder_backward", false) | |||
| 1620 | - | ||||
| 1621 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | 1523 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | ||
| 1622 | return cret | 1524 | return cret | ||
| 1623 | } | 1525 | } | ||
| @@ -1626,8 +1528,6 @@ var xTabViewReorderFirst func(uintptr, uintptr) bool | |||||
| 1626 | 1528 | ||||
| 1627 | // Reorders @page to the first possible position. | 1529 | // Reorders @page to the first possible position. | ||
| 1628 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | 1530 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | ||
| 1629 | - | core.LazyRegister(&xTabViewReorderFirst, "ADW", "adw_tab_view_reorder_first", false) | |||
| 1630 | - | ||||
| 1631 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | 1531 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | ||
| 1632 | return cret | 1532 | return cret | ||
| 1633 | } | 1533 | } | ||
| @@ -1636,8 +1536,6 @@ var xTabViewReorderForward func(uintptr, uintptr) bool | |||||
| 1636 | 1536 | ||||
| 1637 | // Reorders @page to after its next page if possible. | 1537 | // Reorders @page to after its next page if possible. | ||
| 1638 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | 1538 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | ||
| 1639 | - | core.LazyRegister(&xTabViewReorderForward, "ADW", "adw_tab_view_reorder_forward", false) | |||
| 1640 | - | ||||
| 1641 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | 1539 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | ||
| 1642 | return cret | 1540 | return cret | ||
| 1643 | } | 1541 | } | ||
| @@ -1646,8 +1544,6 @@ var xTabViewReorderLast func(uintptr, uintptr) bool | |||||
| 1646 | 1544 | ||||
| 1647 | // Reorders @page to the last possible position. | 1545 | // Reorders @page to the last possible position. | ||
| 1648 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | 1546 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | ||
| 1649 | - | core.LazyRegister(&xTabViewReorderLast, "ADW", "adw_tab_view_reorder_last", false) | |||
| 1650 | - | ||||
| 1651 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | 1547 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | ||
| 1652 | return cret | 1548 | return cret | ||
| 1653 | } | 1549 | } | ||
| @@ -1659,8 +1555,6 @@ var xTabViewReorderPage func(uintptr, uintptr, int) bool | |||||
| 1659 | // It's a programmer error to try to reorder a pinned page after a non-pinned | 1555 | // It's a programmer error to try to reorder a pinned page after a non-pinned | ||
| 1660 | // one, or a non-pinned page before a pinned one. | 1556 | // one, or a non-pinned page before a pinned one. | ||
| 1661 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | 1557 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | ||
| 1662 | - | core.LazyRegister(&xTabViewReorderPage, "ADW", "adw_tab_view_reorder_page", false) | |||
| 1663 | - | ||||
| 1664 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | 1558 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | ||
| 1665 | return cret | 1559 | return cret | ||
| 1666 | } | 1560 | } | ||
| @@ -1671,8 +1565,6 @@ var xTabViewSelectNextPage func(uintptr) bool | |||||
| 1671 | // | 1565 | // | ||
| 1672 | // If the last page was already selected, this function does nothing. | 1566 | // If the last page was already selected, this function does nothing. | ||
| 1673 | func (x *TabView) SelectNextPage() bool { | 1567 | func (x *TabView) SelectNextPage() bool { | ||
| 1674 | - | core.LazyRegister(&xTabViewSelectNextPage, "ADW", "adw_tab_view_select_next_page", false) | |||
| 1675 | - | ||||
| 1676 | cret := xTabViewSelectNextPage(x.GoPointer()) | 1568 | cret := xTabViewSelectNextPage(x.GoPointer()) | ||
| 1677 | return cret | 1569 | return cret | ||
| 1678 | } | 1570 | } | ||
| @@ -1683,8 +1575,6 @@ var xTabViewSelectPreviousPage func(uintptr) bool | |||||
| 1683 | // | 1575 | // | ||
| 1684 | // If the first page was already selected, this function does nothing. | 1576 | // If the first page was already selected, this function does nothing. | ||
| 1685 | func (x *TabView) SelectPreviousPage() bool { | 1577 | func (x *TabView) SelectPreviousPage() bool { | ||
| 1686 | - | core.LazyRegister(&xTabViewSelectPreviousPage, "ADW", "adw_tab_view_select_previous_page", false) | |||
| 1687 | - | ||||
| 1688 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | 1578 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | ||
| 1689 | return cret | 1579 | return cret | ||
| 1690 | } | 1580 | } | ||
| @@ -1704,8 +1594,6 @@ var xTabViewSetDefaultIcon func(uintptr, uintptr) | |||||
| 1704 | // | 1594 | // | ||
| 1705 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | 1595 | // By default, the `adw-tab-icon-missing-symbolic` icon is used. | ||
| 1706 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | 1596 | func (x *TabView) SetDefaultIcon(DefaultIconVar gio.Icon) { | ||
| 1707 | - | core.LazyRegister(&xTabViewSetDefaultIcon, "ADW", "adw_tab_view_set_default_icon", false) | |||
| 1708 | - | ||||
| 1709 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | 1597 | xTabViewSetDefaultIcon(x.GoPointer(), DefaultIconVar.GoPointer()) | ||
| 1710 | } | 1598 | } | ||
| 1711 | 1599 | ||||
| @@ -1717,8 +1605,6 @@ var xTabViewSetMenuModel func(uintptr, uintptr) | |||||
| 1717 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | 1605 | // provided menu model. Use the [signal@TabView::setup-menu] signal to set up | ||
| 1718 | // the menu actions for the particular tab. | 1606 | // the menu actions for the particular tab. | ||
| 1719 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | 1607 | func (x *TabView) SetMenuModel(MenuModelVar *gio.MenuModel) { | ||
| 1720 | - | core.LazyRegister(&xTabViewSetMenuModel, "ADW", "adw_tab_view_set_menu_model", false) | |||
| 1721 | - | ||||
| 1722 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | 1608 | xTabViewSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | ||
| 1723 | } | 1609 | } | ||
| 1724 | 1610 | ||||
| @@ -1754,8 +1640,6 @@ var xTabViewSetPagePinned func(uintptr, uintptr, bool) | |||||
| 1754 | // | 1640 | // | ||
| 1755 | // Changes the value of the [property@TabPage:pinned] property. | 1641 | // Changes the value of the [property@TabPage:pinned] property. | ||
| 1756 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | 1642 | func (x *TabView) SetPagePinned(PageVar *TabPage, PinnedVar bool) { | ||
| 1757 | - | core.LazyRegister(&xTabViewSetPagePinned, "ADW", "adw_tab_view_set_page_pinned", false) | |||
| 1758 | - | ||||
| 1759 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | 1643 | xTabViewSetPagePinned(x.GoPointer(), PageVar.GoPointer(), PinnedVar) | ||
| 1760 | } | 1644 | } | ||
| 1761 | 1645 | ||||
| @@ -1763,8 +1647,6 @@ var xTabViewSetSelectedPage func(uintptr, uintptr) | |||||
| 1763 | 1647 | ||||
| 1764 | // Sets the currently selected page in @self. | 1648 | // Sets the currently selected page in @self. | ||
| 1765 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | 1649 | func (x *TabView) SetSelectedPage(SelectedPageVar *TabPage) { | ||
| 1766 | - | core.LazyRegister(&xTabViewSetSelectedPage, "ADW", "adw_tab_view_set_selected_page", false) | |||
| 1767 | - | ||||
| 1768 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | 1650 | xTabViewSetSelectedPage(x.GoPointer(), SelectedPageVar.GoPointer()) | ||
| 1769 | } | 1651 | } | ||
| 1770 | 1652 | ||||
| @@ -1778,8 +1660,6 @@ var xTabViewSetShortcuts func(uintptr, TabViewShortcuts) | |||||
| 1778 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | 1660 | // [method@TabView.add_shortcuts] and [method@TabView.remove_shortcuts] provide | ||
| 1779 | // a convenient way to manage individual shortcuts. | 1661 | // a convenient way to manage individual shortcuts. | ||
| 1780 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | 1662 | func (x *TabView) SetShortcuts(ShortcutsVar TabViewShortcuts) { | ||
| 1781 | - | core.LazyRegister(&xTabViewSetShortcuts, "ADW", "adw_tab_view_set_shortcuts", false) | |||
| 1782 | - | ||||
| 1783 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | 1663 | xTabViewSetShortcuts(x.GoPointer(), ShortcutsVar) | ||
| 1784 | } | 1664 | } | ||
| 1785 | 1665 | ||||
| @@ -1792,8 +1672,6 @@ var xTabViewTransferPage func(uintptr, uintptr, uintptr, int) | |||||
| 1792 | // It's a programmer error to try to insert a pinned page after a non-pinned | 1672 | // It's a programmer error to try to insert a pinned page after a non-pinned | ||
| 1793 | // one, or a non-pinned page before a pinned one. | 1673 | // one, or a non-pinned page before a pinned one. | ||
| 1794 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | 1674 | func (x *TabView) TransferPage(PageVar *TabPage, OtherViewVar *TabView, PositionVar int) { | ||
| 1795 | - | core.LazyRegister(&xTabViewTransferPage, "ADW", "adw_tab_view_transfer_page", false) | |||
| 1796 | - | ||||
| 1797 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | 1675 | xTabViewTransferPage(x.GoPointer(), PageVar.GoPointer(), OtherViewVar.GoPointer(), PositionVar) | ||
| 1798 | } | 1676 | } | ||
| 1799 | 1677 | ||||
| @@ -2324,4 +2202,90 @@ func (x *TabView) GetBuildableId() string { | |||||
| 2324 | func init() { | 2202 | func init() { | ||
| 2325 | core.SetPackageName("ADW", "libadwaita-1") | 2203 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 2326 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 2204 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 2205 | + | var libs []uintptr | |||
| 2206 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 2207 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2208 | + | if err != nil { | |||
| 2209 | + | panic(err) | |||
| 2210 | + | } | |||
| 2211 | + | libs = append(libs, lib) | |||
| 2212 | + | } | |||
| 2213 | + | ||||
| 2214 | + | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, libs, "adw_tab_view_shortcuts_get_type") | |||
| 2215 | + | ||||
| 2216 | + | core.PuregoSafeRegister(&xTabPageGLibType, libs, "adw_tab_page_get_type") | |||
| 2217 | + | ||||
| 2218 | + | core.PuregoSafeRegister(&xTabPageGetChild, libs, "adw_tab_page_get_child") | |||
| 2219 | + | core.PuregoSafeRegister(&xTabPageGetIcon, libs, "adw_tab_page_get_icon") | |||
| 2220 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, libs, "adw_tab_page_get_indicator_activatable") | |||
| 2221 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorIcon, libs, "adw_tab_page_get_indicator_icon") | |||
| 2222 | + | core.PuregoSafeRegister(&xTabPageGetIndicatorTooltip, libs, "adw_tab_page_get_indicator_tooltip") | |||
| 2223 | + | core.PuregoSafeRegister(&xTabPageGetKeyword, libs, "adw_tab_page_get_keyword") | |||
| 2224 | + | core.PuregoSafeRegister(&xTabPageGetLiveThumbnail, libs, "adw_tab_page_get_live_thumbnail") | |||
| 2225 | + | core.PuregoSafeRegister(&xTabPageGetLoading, libs, "adw_tab_page_get_loading") | |||
| 2226 | + | core.PuregoSafeRegister(&xTabPageGetNeedsAttention, libs, "adw_tab_page_get_needs_attention") | |||
| 2227 | + | core.PuregoSafeRegister(&xTabPageGetParent, libs, "adw_tab_page_get_parent") | |||
| 2228 | + | core.PuregoSafeRegister(&xTabPageGetPinned, libs, "adw_tab_page_get_pinned") | |||
| 2229 | + | core.PuregoSafeRegister(&xTabPageGetSelected, libs, "adw_tab_page_get_selected") | |||
| 2230 | + | core.PuregoSafeRegister(&xTabPageGetThumbnailXalign, libs, "adw_tab_page_get_thumbnail_xalign") | |||
| 2231 | + | core.PuregoSafeRegister(&xTabPageGetThumbnailYalign, libs, "adw_tab_page_get_thumbnail_yalign") | |||
| 2232 | + | core.PuregoSafeRegister(&xTabPageGetTitle, libs, "adw_tab_page_get_title") | |||
| 2233 | + | core.PuregoSafeRegister(&xTabPageGetTooltip, libs, "adw_tab_page_get_tooltip") | |||
| 2234 | + | core.PuregoSafeRegister(&xTabPageInvalidateThumbnail, libs, "adw_tab_page_invalidate_thumbnail") | |||
| 2235 | + | core.PuregoSafeRegister(&xTabPageSetIcon, libs, "adw_tab_page_set_icon") | |||
| 2236 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorActivatable, libs, "adw_tab_page_set_indicator_activatable") | |||
| 2237 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorIcon, libs, "adw_tab_page_set_indicator_icon") | |||
| 2238 | + | core.PuregoSafeRegister(&xTabPageSetIndicatorTooltip, libs, "adw_tab_page_set_indicator_tooltip") | |||
| 2239 | + | core.PuregoSafeRegister(&xTabPageSetKeyword, libs, "adw_tab_page_set_keyword") | |||
| 2240 | + | core.PuregoSafeRegister(&xTabPageSetLiveThumbnail, libs, "adw_tab_page_set_live_thumbnail") | |||
| 2241 | + | core.PuregoSafeRegister(&xTabPageSetLoading, libs, "adw_tab_page_set_loading") | |||
| 2242 | + | core.PuregoSafeRegister(&xTabPageSetNeedsAttention, libs, "adw_tab_page_set_needs_attention") | |||
| 2243 | + | core.PuregoSafeRegister(&xTabPageSetThumbnailXalign, libs, "adw_tab_page_set_thumbnail_xalign") | |||
| 2244 | + | core.PuregoSafeRegister(&xTabPageSetThumbnailYalign, libs, "adw_tab_page_set_thumbnail_yalign") | |||
| 2245 | + | core.PuregoSafeRegister(&xTabPageSetTitle, libs, "adw_tab_page_set_title") | |||
| 2246 | + | core.PuregoSafeRegister(&xTabPageSetTooltip, libs, "adw_tab_page_set_tooltip") | |||
| 2247 | + | ||||
| 2248 | + | core.PuregoSafeRegister(&xTabViewGLibType, libs, "adw_tab_view_get_type") | |||
| 2249 | + | ||||
| 2250 | + | core.PuregoSafeRegister(&xNewTabView, libs, "adw_tab_view_new") | |||
| 2251 | + | ||||
| 2252 | + | core.PuregoSafeRegister(&xTabViewAddPage, libs, "adw_tab_view_add_page") | |||
| 2253 | + | core.PuregoSafeRegister(&xTabViewAddShortcuts, libs, "adw_tab_view_add_shortcuts") | |||
| 2254 | + | core.PuregoSafeRegister(&xTabViewAppend, libs, "adw_tab_view_append") | |||
| 2255 | + | core.PuregoSafeRegister(&xTabViewAppendPinned, libs, "adw_tab_view_append_pinned") | |||
| 2256 | + | core.PuregoSafeRegister(&xTabViewCloseOtherPages, libs, "adw_tab_view_close_other_pages") | |||
| 2257 | + | core.PuregoSafeRegister(&xTabViewClosePage, libs, "adw_tab_view_close_page") | |||
| 2258 | + | core.PuregoSafeRegister(&xTabViewClosePageFinish, libs, "adw_tab_view_close_page_finish") | |||
| 2259 | + | core.PuregoSafeRegister(&xTabViewClosePagesAfter, libs, "adw_tab_view_close_pages_after") | |||
| 2260 | + | core.PuregoSafeRegister(&xTabViewClosePagesBefore, libs, "adw_tab_view_close_pages_before") | |||
| 2261 | + | core.PuregoSafeRegister(&xTabViewGetDefaultIcon, libs, "adw_tab_view_get_default_icon") | |||
| 2262 | + | core.PuregoSafeRegister(&xTabViewGetIsTransferringPage, libs, "adw_tab_view_get_is_transferring_page") | |||
| 2263 | + | core.PuregoSafeRegister(&xTabViewGetMenuModel, libs, "adw_tab_view_get_menu_model") | |||
| 2264 | + | core.PuregoSafeRegister(&xTabViewGetNPages, libs, "adw_tab_view_get_n_pages") | |||
| 2265 | + | core.PuregoSafeRegister(&xTabViewGetNPinnedPages, libs, "adw_tab_view_get_n_pinned_pages") | |||
| 2266 | + | core.PuregoSafeRegister(&xTabViewGetNthPage, libs, "adw_tab_view_get_nth_page") | |||
| 2267 | + | core.PuregoSafeRegister(&xTabViewGetPage, libs, "adw_tab_view_get_page") | |||
| 2268 | + | core.PuregoSafeRegister(&xTabViewGetPagePosition, libs, "adw_tab_view_get_page_position") | |||
| 2269 | + | core.PuregoSafeRegister(&xTabViewGetPages, libs, "adw_tab_view_get_pages") | |||
| 2270 | + | core.PuregoSafeRegister(&xTabViewGetSelectedPage, libs, "adw_tab_view_get_selected_page") | |||
| 2271 | + | core.PuregoSafeRegister(&xTabViewGetShortcuts, libs, "adw_tab_view_get_shortcuts") | |||
| 2272 | + | core.PuregoSafeRegister(&xTabViewInsert, libs, "adw_tab_view_insert") | |||
| 2273 | + | core.PuregoSafeRegister(&xTabViewInsertPinned, libs, "adw_tab_view_insert_pinned") | |||
| 2274 | + | core.PuregoSafeRegister(&xTabViewInvalidateThumbnails, libs, "adw_tab_view_invalidate_thumbnails") | |||
| 2275 | + | core.PuregoSafeRegister(&xTabViewPrepend, libs, "adw_tab_view_prepend") | |||
| 2276 | + | core.PuregoSafeRegister(&xTabViewPrependPinned, libs, "adw_tab_view_prepend_pinned") | |||
| 2277 | + | core.PuregoSafeRegister(&xTabViewRemoveShortcuts, libs, "adw_tab_view_remove_shortcuts") | |||
| 2278 | + | core.PuregoSafeRegister(&xTabViewReorderBackward, libs, "adw_tab_view_reorder_backward") | |||
| 2279 | + | core.PuregoSafeRegister(&xTabViewReorderFirst, libs, "adw_tab_view_reorder_first") | |||
| 2280 | + | core.PuregoSafeRegister(&xTabViewReorderForward, libs, "adw_tab_view_reorder_forward") | |||
| 2281 | + | core.PuregoSafeRegister(&xTabViewReorderLast, libs, "adw_tab_view_reorder_last") | |||
| 2282 | + | core.PuregoSafeRegister(&xTabViewReorderPage, libs, "adw_tab_view_reorder_page") | |||
| 2283 | + | core.PuregoSafeRegister(&xTabViewSelectNextPage, libs, "adw_tab_view_select_next_page") | |||
| 2284 | + | core.PuregoSafeRegister(&xTabViewSelectPreviousPage, libs, "adw_tab_view_select_previous_page") | |||
| 2285 | + | core.PuregoSafeRegister(&xTabViewSetDefaultIcon, libs, "adw_tab_view_set_default_icon") | |||
| 2286 | + | core.PuregoSafeRegister(&xTabViewSetMenuModel, libs, "adw_tab_view_set_menu_model") | |||
| 2287 | + | core.PuregoSafeRegister(&xTabViewSetPagePinned, libs, "adw_tab_view_set_page_pinned") | |||
| 2288 | + | core.PuregoSafeRegister(&xTabViewSetSelectedPage, libs, "adw_tab_view_set_selected_page") | |||
| 2289 | + | core.PuregoSafeRegister(&xTabViewSetShortcuts, libs, "adw_tab_view_set_shortcuts") | |||
| 2290 | + | core.PuregoSafeRegister(&xTabViewTransferPage, libs, "adw_tab_view_transfer_page") | |||
| 2327 | } | 2291 | } | ||