Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66
| @@ -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/gobject" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -96,7 +97,6 @@ type WrapBox struct { | |||
| 96 | 97 | var xWrapBoxGLibType func() types.GType | |
| 97 | 98 | ||
| 98 | 99 | func WrapBoxGLibType() types.GType { | |
| 99 | - | core.LazyRegister(&xWrapBoxGLibType, "ADW", "adw_wrap_box_get_type", false) | |
| 100 | 100 | return xWrapBoxGLibType() | |
| 101 | 101 | } | |
| 102 | 102 | ||
| @@ -110,7 +110,6 @@ var xNewWrapBox func() uintptr | |||
| 110 | 110 | ||
| 111 | 111 | // Creates a new `AdwWrapBox`. | |
| 112 | 112 | func NewWrapBox() *WrapBox { | |
| 113 | - | core.LazyRegister(&xNewWrapBox, "ADW", "adw_wrap_box_new", false) | |
| 114 | 113 | var cls *WrapBox | |
| 115 | 114 | ||
| 116 | 115 | cret := xNewWrapBox() | |
| @@ -128,8 +127,6 @@ var xWrapBoxAppend func(uintptr, uintptr) | |||
| 128 | 127 | ||
| 129 | 128 | // Adds @child as the last child to @self. | |
| 130 | 129 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | |
| 131 | - | core.LazyRegister(&xWrapBoxAppend, "ADW", "adw_wrap_box_append", false) | |
| 132 | - | ||
| 133 | 130 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | |
| 134 | 131 | } | |
| 135 | 132 | ||
| @@ -137,8 +134,6 @@ var xWrapBoxGetAlign func(uintptr) float32 | |||
| 137 | 134 | ||
| 138 | 135 | // Gets the alignment of the children within each line. | |
| 139 | 136 | func (x *WrapBox) GetAlign() float32 { | |
| 140 | - | core.LazyRegister(&xWrapBoxGetAlign, "ADW", "adw_wrap_box_get_align", false) | |
| 141 | - | ||
| 142 | 137 | cret := xWrapBoxGetAlign(x.GoPointer()) | |
| 143 | 138 | return cret | |
| 144 | 139 | } | |
| @@ -147,8 +142,6 @@ var xWrapBoxGetChildSpacing func(uintptr) int | |||
| 147 | 142 | ||
| 148 | 143 | // Gets spacing between widgets on the same line. | |
| 149 | 144 | func (x *WrapBox) GetChildSpacing() int { | |
| 150 | - | core.LazyRegister(&xWrapBoxGetChildSpacing, "ADW", "adw_wrap_box_get_child_spacing", false) | |
| 151 | - | ||
| 152 | 145 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | |
| 153 | 146 | return cret | |
| 154 | 147 | } | |
| @@ -157,8 +150,6 @@ var xWrapBoxGetChildSpacingUnit func(uintptr) LengthUnit | |||
| 157 | 150 | ||
| 158 | 151 | // Gets the length unit for child spacing. | |
| 159 | 152 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | |
| 160 | - | core.LazyRegister(&xWrapBoxGetChildSpacingUnit, "ADW", "adw_wrap_box_get_child_spacing_unit", false) | |
| 161 | - | ||
| 162 | 153 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | |
| 163 | 154 | return cret | |
| 164 | 155 | } | |
| @@ -167,8 +158,6 @@ var xWrapBoxGetJustify func(uintptr) JustifyMode | |||
| 167 | 158 | ||
| 168 | 159 | // Gets whether and how each complete line is stretched to fill the entire widget. | |
| 169 | 160 | func (x *WrapBox) GetJustify() JustifyMode { | |
| 170 | - | core.LazyRegister(&xWrapBoxGetJustify, "ADW", "adw_wrap_box_get_justify", false) | |
| 171 | - | ||
| 172 | 161 | cret := xWrapBoxGetJustify(x.GoPointer()) | |
| 173 | 162 | return cret | |
| 174 | 163 | } | |
| @@ -177,8 +166,6 @@ var xWrapBoxGetJustifyLastLine func(uintptr) bool | |||
| 177 | 166 | ||
| 178 | 167 | // Gets whether the last line should be stretched to fill the entire widget. | |
| 179 | 168 | func (x *WrapBox) GetJustifyLastLine() bool { | |
| 180 | - | core.LazyRegister(&xWrapBoxGetJustifyLastLine, "ADW", "adw_wrap_box_get_justify_last_line", false) | |
| 181 | - | ||
| 182 | 169 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | |
| 183 | 170 | return cret | |
| 184 | 171 | } | |
| @@ -187,8 +174,6 @@ var xWrapBoxGetLineHomogeneous func(uintptr) bool | |||
| 187 | 174 | ||
| 188 | 175 | // Gets whether all lines should take the same amount of space. | |
| 189 | 176 | func (x *WrapBox) GetLineHomogeneous() bool { | |
| 190 | - | core.LazyRegister(&xWrapBoxGetLineHomogeneous, "ADW", "adw_wrap_box_get_line_homogeneous", false) | |
| 191 | - | ||
| 192 | 177 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | |
| 193 | 178 | return cret | |
| 194 | 179 | } | |
| @@ -199,8 +184,6 @@ var xWrapBoxGetLineSpacing func(uintptr) int | |||
| 199 | 184 | // | |
| 200 | 185 | // See [property@WrapBox:line-spacing-unit]. | |
| 201 | 186 | func (x *WrapBox) GetLineSpacing() int { | |
| 202 | - | core.LazyRegister(&xWrapBoxGetLineSpacing, "ADW", "adw_wrap_box_get_line_spacing", false) | |
| 203 | - | ||
| 204 | 187 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | |
| 205 | 188 | return cret | |
| 206 | 189 | } | |
| @@ -209,8 +192,6 @@ var xWrapBoxGetLineSpacingUnit func(uintptr) LengthUnit | |||
| 209 | 192 | ||
| 210 | 193 | // Gets the length unit for line spacing. | |
| 211 | 194 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | |
| 212 | - | core.LazyRegister(&xWrapBoxGetLineSpacingUnit, "ADW", "adw_wrap_box_get_line_spacing_unit", false) | |
| 213 | - | ||
| 214 | 195 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | |
| 215 | 196 | return cret | |
| 216 | 197 | } | |
| @@ -219,8 +200,6 @@ var xWrapBoxGetNaturalLineLength func(uintptr) int | |||
| 219 | 200 | ||
| 220 | 201 | // Gets the natural size for each line. | |
| 221 | 202 | func (x *WrapBox) GetNaturalLineLength() int { | |
| 222 | - | core.LazyRegister(&xWrapBoxGetNaturalLineLength, "ADW", "adw_wrap_box_get_natural_line_length", false) | |
| 223 | - | ||
| 224 | 203 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | |
| 225 | 204 | return cret | |
| 226 | 205 | } | |
| @@ -229,8 +208,6 @@ var xWrapBoxGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||
| 229 | 208 | ||
| 230 | 209 | // Gets the length unit for line spacing. | |
| 231 | 210 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | |
| 232 | - | core.LazyRegister(&xWrapBoxGetNaturalLineLengthUnit, "ADW", "adw_wrap_box_get_natural_line_length_unit", false) | |
| 233 | - | ||
| 234 | 211 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | |
| 235 | 212 | return cret | |
| 236 | 213 | } | |
| @@ -239,8 +216,6 @@ var xWrapBoxGetPackDirection func(uintptr) PackDirection | |||
| 239 | 216 | ||
| 240 | 217 | // Gets the direction children are packed in each line. | |
| 241 | 218 | func (x *WrapBox) GetPackDirection() PackDirection { | |
| 242 | - | core.LazyRegister(&xWrapBoxGetPackDirection, "ADW", "adw_wrap_box_get_pack_direction", false) | |
| 243 | - | ||
| 244 | 219 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | |
| 245 | 220 | return cret | |
| 246 | 221 | } | |
| @@ -249,8 +224,6 @@ var xWrapBoxGetWrapPolicy func(uintptr) WrapPolicy | |||
| 249 | 224 | ||
| 250 | 225 | // Gets the policy for line wrapping. | |
| 251 | 226 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | |
| 252 | - | core.LazyRegister(&xWrapBoxGetWrapPolicy, "ADW", "adw_wrap_box_get_wrap_policy", false) | |
| 253 | - | ||
| 254 | 227 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | |
| 255 | 228 | return cret | |
| 256 | 229 | } | |
| @@ -259,8 +232,6 @@ var xWrapBoxGetWrapReverse func(uintptr) bool | |||
| 259 | 232 | ||
| 260 | 233 | // Gets whether wrap direction is reversed. | |
| 261 | 234 | func (x *WrapBox) GetWrapReverse() bool { | |
| 262 | - | core.LazyRegister(&xWrapBoxGetWrapReverse, "ADW", "adw_wrap_box_get_wrap_reverse", false) | |
| 263 | - | ||
| 264 | 235 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | |
| 265 | 236 | return cret | |
| 266 | 237 | } | |
| @@ -271,8 +242,6 @@ var xWrapBoxInsertChildAfter func(uintptr, uintptr, uintptr) | |||
| 271 | 242 | // | |
| 272 | 243 | // If @sibling is `NULL`, inserts @child at the first position. | |
| 273 | 244 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | |
| 274 | - | core.LazyRegister(&xWrapBoxInsertChildAfter, "ADW", "adw_wrap_box_insert_child_after", false) | |
| 275 | - | ||
| 276 | 245 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | |
| 277 | 246 | } | |
| 278 | 247 | ||
| @@ -280,8 +249,6 @@ var xWrapBoxPrepend func(uintptr, uintptr) | |||
| 280 | 249 | ||
| 281 | 250 | // Adds @child as the first child to @self. | |
| 282 | 251 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | |
| 283 | - | core.LazyRegister(&xWrapBoxPrepend, "ADW", "adw_wrap_box_prepend", false) | |
| 284 | - | ||
| 285 | 252 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | |
| 286 | 253 | } | |
| 287 | 254 | ||
| @@ -292,8 +259,6 @@ var xWrapBoxRemove func(uintptr, uintptr) | |||
| 292 | 259 | // The child must have been added before with [method@Adw.WrapBox.append], | |
| 293 | 260 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | |
| 294 | 261 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | |
| 295 | - | core.LazyRegister(&xWrapBoxRemove, "ADW", "adw_wrap_box_remove", false) | |
| 296 | - | ||
| 297 | 262 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | |
| 298 | 263 | } | |
| 299 | 264 | ||
| @@ -301,8 +266,6 @@ var xWrapBoxRemoveAll func(uintptr) | |||
| 301 | 266 | ||
| 302 | 267 | // Removes all children from @self. | |
| 303 | 268 | func (x *WrapBox) RemoveAll() { | |
| 304 | - | core.LazyRegister(&xWrapBoxRemoveAll, "ADW", "adw_wrap_box_remove_all", false) | |
| 305 | - | ||
| 306 | 269 | xWrapBoxRemoveAll(x.GoPointer()) | |
| 307 | 270 | } | |
| 308 | 271 | ||
| @@ -312,8 +275,6 @@ var xWrapBoxReorderChildAfter func(uintptr, uintptr, uintptr) | |||
| 312 | 275 | // | |
| 313 | 276 | // If @sibling is `NULL`, moves @child to the first position. | |
| 314 | 277 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | |
| 315 | - | core.LazyRegister(&xWrapBoxReorderChildAfter, "ADW", "adw_wrap_box_reorder_child_after", false) | |
| 316 | - | ||
| 317 | 278 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | |
| 318 | 279 | } | |
| 319 | 280 | ||
| @@ -329,8 +290,6 @@ var xWrapBoxSetAlign func(uintptr, float32) | |||
| 329 | 290 | // [enum@Adw.JustifyMode.none], or on the last line when the | |
| 330 | 291 | // [property@WrapBox:justify-last-line] is `FALSE`. | |
| 331 | 292 | func (x *WrapBox) SetAlign(AlignVar float32) { | |
| 332 | - | core.LazyRegister(&xWrapBoxSetAlign, "ADW", "adw_wrap_box_set_align", false) | |
| 333 | - | ||
| 334 | 293 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | |
| 335 | 294 | } | |
| 336 | 295 | ||
| @@ -340,8 +299,6 @@ var xWrapBoxSetChildSpacing func(uintptr, int) | |||
| 340 | 299 | // | |
| 341 | 300 | // See [property@WrapBox:child-spacing-unit]. | |
| 342 | 301 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | |
| 343 | - | core.LazyRegister(&xWrapBoxSetChildSpacing, "ADW", "adw_wrap_box_set_child_spacing", false) | |
| 344 | - | ||
| 345 | 302 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | |
| 346 | 303 | } | |
| 347 | 304 | ||
| @@ -353,8 +310,6 @@ var xWrapBoxSetChildSpacingUnit func(uintptr, LengthUnit) | |||
| 353 | 310 | // | |
| 354 | 311 | // See [property@WrapBox:child-spacing]. | |
| 355 | 312 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | |
| 356 | - | core.LazyRegister(&xWrapBoxSetChildSpacingUnit, "ADW", "adw_wrap_box_set_child_spacing_unit", false) | |
| 357 | - | ||
| 358 | 313 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | |
| 359 | 314 | } | |
| 360 | 315 | ||
| @@ -379,8 +334,6 @@ var xWrapBoxSetJustify func(uintptr, JustifyMode) | |||
| 379 | 334 | // By default this doesn't affect the last line, as it will be incomplete. Use | |
| 380 | 335 | // [property@WrapBox:justify-last-line] to justify it as well. | |
| 381 | 336 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | |
| 382 | - | core.LazyRegister(&xWrapBoxSetJustify, "ADW", "adw_wrap_box_set_justify", false) | |
| 383 | - | ||
| 384 | 337 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | |
| 385 | 338 | } | |
| 386 | 339 | ||
| @@ -390,8 +343,6 @@ var xWrapBoxSetJustifyLastLine func(uintptr, bool) | |||
| 390 | 343 | // | |
| 391 | 344 | // See [property@WrapBox:justify]. | |
| 392 | 345 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | |
| 393 | - | core.LazyRegister(&xWrapBoxSetJustifyLastLine, "ADW", "adw_wrap_box_set_justify_last_line", false) | |
| 394 | - | ||
| 395 | 346 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | |
| 396 | 347 | } | |
| 397 | 348 | ||
| @@ -399,8 +350,6 @@ var xWrapBoxSetLineHomogeneous func(uintptr, bool) | |||
| 399 | 350 | ||
| 400 | 351 | // Sets whether all lines should take the same amount of space. | |
| 401 | 352 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | |
| 402 | - | core.LazyRegister(&xWrapBoxSetLineHomogeneous, "ADW", "adw_wrap_box_set_line_homogeneous", false) | |
| 403 | - | ||
| 404 | 353 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | |
| 405 | 354 | } | |
| 406 | 355 | ||
| @@ -408,8 +357,6 @@ var xWrapBoxSetLineSpacing func(uintptr, int) | |||
| 408 | 357 | ||
| 409 | 358 | // Sets the spacing between lines. | |
| 410 | 359 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | |
| 411 | - | core.LazyRegister(&xWrapBoxSetLineSpacing, "ADW", "adw_wrap_box_set_line_spacing", false) | |
| 412 | - | ||
| 413 | 360 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | |
| 414 | 361 | } | |
| 415 | 362 | ||
| @@ -421,8 +368,6 @@ var xWrapBoxSetLineSpacingUnit func(uintptr, LengthUnit) | |||
| 421 | 368 | // | |
| 422 | 369 | // See [property@WrapBox:line-spacing]. | |
| 423 | 370 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | |
| 424 | - | core.LazyRegister(&xWrapBoxSetLineSpacingUnit, "ADW", "adw_wrap_box_set_line_spacing_unit", false) | |
| 425 | - | ||
| 426 | 371 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | |
| 427 | 372 | } | |
| 428 | 373 | ||
| @@ -435,8 +380,6 @@ var xWrapBoxSetNaturalLineLength func(uintptr, int) | |||
| 435 | 380 | // | |
| 436 | 381 | // See [property@WrapBox:natural-line-length-unit]. | |
| 437 | 382 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | |
| 438 | - | core.LazyRegister(&xWrapBoxSetNaturalLineLength, "ADW", "adw_wrap_box_set_natural_line_length", false) | |
| 439 | - | ||
| 440 | 383 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | |
| 441 | 384 | } | |
| 442 | 385 | ||
| @@ -448,8 +391,6 @@ var xWrapBoxSetNaturalLineLengthUnit func(uintptr, LengthUnit) | |||
| 448 | 391 | // | |
| 449 | 392 | // See [property@WrapBox:natural-line-length]. | |
| 450 | 393 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | |
| 451 | - | core.LazyRegister(&xWrapBoxSetNaturalLineLengthUnit, "ADW", "adw_wrap_box_set_natural_line_length_unit", false) | |
| 452 | - | ||
| 453 | 394 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | |
| 454 | 395 | } | |
| 455 | 396 | ||
| @@ -457,8 +398,6 @@ var xWrapBoxSetPackDirection func(uintptr, PackDirection) | |||
| 457 | 398 | ||
| 458 | 399 | // Sets the direction children are packed in each line. | |
| 459 | 400 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | |
| 460 | - | core.LazyRegister(&xWrapBoxSetPackDirection, "ADW", "adw_wrap_box_set_pack_direction", false) | |
| 461 | - | ||
| 462 | 401 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | |
| 463 | 402 | } | |
| 464 | 403 | ||
| @@ -474,8 +413,6 @@ var xWrapBoxSetWrapPolicy func(uintptr, WrapPolicy) | |||
| 474 | 413 | // children into each line as possible, shrinking them down to their minimum\ | |
| 475 | 414 | // size before wrapping to the next line. | |
| 476 | 415 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | |
| 477 | - | core.LazyRegister(&xWrapBoxSetWrapPolicy, "ADW", "adw_wrap_box_set_wrap_policy", false) | |
| 478 | - | ||
| 479 | 416 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | |
| 480 | 417 | } | |
| 481 | 418 | ||
| @@ -487,8 +424,6 @@ var xWrapBoxSetWrapReverse func(uintptr, bool) | |||
| 487 | 424 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | |
| 488 | 425 | // respectively. | |
| 489 | 426 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | |
| 490 | - | core.LazyRegister(&xWrapBoxSetWrapReverse, "ADW", "adw_wrap_box_set_wrap_reverse", false) | |
| 491 | - | ||
| 492 | 427 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | |
| 493 | 428 | } | |
| 494 | 429 | ||
| @@ -942,4 +877,49 @@ func (x *WrapBox) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 942 | 877 | func init() { | |
| 943 | 878 | core.SetPackageName("ADW", "libadwaita-1") | |
| 944 | 879 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 880 | + | var libs []uintptr | |
| 881 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 882 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 883 | + | if err != nil { | |
| 884 | + | panic(err) | |
| 885 | + | } | |
| 886 | + | libs = append(libs, lib) | |
| 887 | + | } | |
| 888 | + | ||
| 889 | + | core.PuregoSafeRegister(&xWrapBoxGLibType, libs, "adw_wrap_box_get_type") | |
| 890 | + | ||
| 891 | + | core.PuregoSafeRegister(&xNewWrapBox, libs, "adw_wrap_box_new") | |
| 892 | + | ||
| 893 | + | core.PuregoSafeRegister(&xWrapBoxAppend, libs, "adw_wrap_box_append") | |
| 894 | + | core.PuregoSafeRegister(&xWrapBoxGetAlign, libs, "adw_wrap_box_get_align") | |
| 895 | + | core.PuregoSafeRegister(&xWrapBoxGetChildSpacing, libs, "adw_wrap_box_get_child_spacing") | |
| 896 | + | core.PuregoSafeRegister(&xWrapBoxGetChildSpacingUnit, libs, "adw_wrap_box_get_child_spacing_unit") | |
| 897 | + | core.PuregoSafeRegister(&xWrapBoxGetJustify, libs, "adw_wrap_box_get_justify") | |
| 898 | + | core.PuregoSafeRegister(&xWrapBoxGetJustifyLastLine, libs, "adw_wrap_box_get_justify_last_line") | |
| 899 | + | core.PuregoSafeRegister(&xWrapBoxGetLineHomogeneous, libs, "adw_wrap_box_get_line_homogeneous") | |
| 900 | + | core.PuregoSafeRegister(&xWrapBoxGetLineSpacing, libs, "adw_wrap_box_get_line_spacing") | |
| 901 | + | core.PuregoSafeRegister(&xWrapBoxGetLineSpacingUnit, libs, "adw_wrap_box_get_line_spacing_unit") | |
| 902 | + | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLength, libs, "adw_wrap_box_get_natural_line_length") | |
| 903 | + | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLengthUnit, libs, "adw_wrap_box_get_natural_line_length_unit") | |
| 904 | + | core.PuregoSafeRegister(&xWrapBoxGetPackDirection, libs, "adw_wrap_box_get_pack_direction") | |
| 905 | + | core.PuregoSafeRegister(&xWrapBoxGetWrapPolicy, libs, "adw_wrap_box_get_wrap_policy") | |
| 906 | + | core.PuregoSafeRegister(&xWrapBoxGetWrapReverse, libs, "adw_wrap_box_get_wrap_reverse") | |
| 907 | + | core.PuregoSafeRegister(&xWrapBoxInsertChildAfter, libs, "adw_wrap_box_insert_child_after") | |
| 908 | + | core.PuregoSafeRegister(&xWrapBoxPrepend, libs, "adw_wrap_box_prepend") | |
| 909 | + | core.PuregoSafeRegister(&xWrapBoxRemove, libs, "adw_wrap_box_remove") | |
| 910 | + | core.PuregoSafeRegister(&xWrapBoxRemoveAll, libs, "adw_wrap_box_remove_all") | |
| 911 | + | core.PuregoSafeRegister(&xWrapBoxReorderChildAfter, libs, "adw_wrap_box_reorder_child_after") | |
| 912 | + | core.PuregoSafeRegister(&xWrapBoxSetAlign, libs, "adw_wrap_box_set_align") | |
| 913 | + | core.PuregoSafeRegister(&xWrapBoxSetChildSpacing, libs, "adw_wrap_box_set_child_spacing") | |
| 914 | + | core.PuregoSafeRegister(&xWrapBoxSetChildSpacingUnit, libs, "adw_wrap_box_set_child_spacing_unit") | |
| 915 | + | core.PuregoSafeRegister(&xWrapBoxSetJustify, libs, "adw_wrap_box_set_justify") | |
| 916 | + | core.PuregoSafeRegister(&xWrapBoxSetJustifyLastLine, libs, "adw_wrap_box_set_justify_last_line") | |
| 917 | + | core.PuregoSafeRegister(&xWrapBoxSetLineHomogeneous, libs, "adw_wrap_box_set_line_homogeneous") | |
| 918 | + | core.PuregoSafeRegister(&xWrapBoxSetLineSpacing, libs, "adw_wrap_box_set_line_spacing") | |
| 919 | + | core.PuregoSafeRegister(&xWrapBoxSetLineSpacingUnit, libs, "adw_wrap_box_set_line_spacing_unit") | |
| 920 | + | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLength, libs, "adw_wrap_box_set_natural_line_length") | |
| 921 | + | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLengthUnit, libs, "adw_wrap_box_set_natural_line_length_unit") | |
| 922 | + | core.PuregoSafeRegister(&xWrapBoxSetPackDirection, libs, "adw_wrap_box_set_pack_direction") | |
| 923 | + | core.PuregoSafeRegister(&xWrapBoxSetWrapPolicy, libs, "adw_wrap_box_set_wrap_policy") | |
| 924 | + | core.PuregoSafeRegister(&xWrapBoxSetWrapReverse, libs, "adw_wrap_box_set_wrap_reverse") | |
| 945 | 925 | } | |
| @@ -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/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -96,7 +97,6 @@ type WrapBox struct { | |||||
| 96 | var xWrapBoxGLibType func() types.GType | 97 | var xWrapBoxGLibType func() types.GType | ||
| 97 | 98 | ||||
| 98 | func WrapBoxGLibType() types.GType { | 99 | func WrapBoxGLibType() types.GType { | ||
| 99 | - | core.LazyRegister(&xWrapBoxGLibType, "ADW", "adw_wrap_box_get_type", false) | |||
| 100 | return xWrapBoxGLibType() | 100 | return xWrapBoxGLibType() | ||
| 101 | } | 101 | } | ||
| 102 | 102 | ||||
| @@ -110,7 +110,6 @@ var xNewWrapBox func() uintptr | |||||
| 110 | 110 | ||||
| 111 | // Creates a new `AdwWrapBox`. | 111 | // Creates a new `AdwWrapBox`. | ||
| 112 | func NewWrapBox() *WrapBox { | 112 | func NewWrapBox() *WrapBox { | ||
| 113 | - | core.LazyRegister(&xNewWrapBox, "ADW", "adw_wrap_box_new", false) | |||
| 114 | var cls *WrapBox | 113 | var cls *WrapBox | ||
| 115 | 114 | ||||
| 116 | cret := xNewWrapBox() | 115 | cret := xNewWrapBox() | ||
| @@ -128,8 +127,6 @@ var xWrapBoxAppend func(uintptr, uintptr) | |||||
| 128 | 127 | ||||
| 129 | // Adds @child as the last child to @self. | 128 | // Adds @child as the last child to @self. | ||
| 130 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | 129 | func (x *WrapBox) Append(ChildVar *gtk.Widget) { | ||
| 131 | - | core.LazyRegister(&xWrapBoxAppend, "ADW", "adw_wrap_box_append", false) | |||
| 132 | - | ||||
| 133 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | 130 | xWrapBoxAppend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 134 | } | 131 | } | ||
| 135 | 132 | ||||
| @@ -137,8 +134,6 @@ var xWrapBoxGetAlign func(uintptr) float32 | |||||
| 137 | 134 | ||||
| 138 | // Gets the alignment of the children within each line. | 135 | // Gets the alignment of the children within each line. | ||
| 139 | func (x *WrapBox) GetAlign() float32 { | 136 | func (x *WrapBox) GetAlign() float32 { | ||
| 140 | - | core.LazyRegister(&xWrapBoxGetAlign, "ADW", "adw_wrap_box_get_align", false) | |||
| 141 | - | ||||
| 142 | cret := xWrapBoxGetAlign(x.GoPointer()) | 137 | cret := xWrapBoxGetAlign(x.GoPointer()) | ||
| 143 | return cret | 138 | return cret | ||
| 144 | } | 139 | } | ||
| @@ -147,8 +142,6 @@ var xWrapBoxGetChildSpacing func(uintptr) int | |||||
| 147 | 142 | ||||
| 148 | // Gets spacing between widgets on the same line. | 143 | // Gets spacing between widgets on the same line. | ||
| 149 | func (x *WrapBox) GetChildSpacing() int { | 144 | func (x *WrapBox) GetChildSpacing() int { | ||
| 150 | - | core.LazyRegister(&xWrapBoxGetChildSpacing, "ADW", "adw_wrap_box_get_child_spacing", false) | |||
| 151 | - | ||||
| 152 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | 145 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | ||
| 153 | return cret | 146 | return cret | ||
| 154 | } | 147 | } | ||
| @@ -157,8 +150,6 @@ var xWrapBoxGetChildSpacingUnit func(uintptr) LengthUnit | |||||
| 157 | 150 | ||||
| 158 | // Gets the length unit for child spacing. | 151 | // Gets the length unit for child spacing. | ||
| 159 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | 152 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | ||
| 160 | - | core.LazyRegister(&xWrapBoxGetChildSpacingUnit, "ADW", "adw_wrap_box_get_child_spacing_unit", false) | |||
| 161 | - | ||||
| 162 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | 153 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | ||
| 163 | return cret | 154 | return cret | ||
| 164 | } | 155 | } | ||
| @@ -167,8 +158,6 @@ var xWrapBoxGetJustify func(uintptr) JustifyMode | |||||
| 167 | 158 | ||||
| 168 | // Gets whether and how each complete line is stretched to fill the entire widget. | 159 | // Gets whether and how each complete line is stretched to fill the entire widget. | ||
| 169 | func (x *WrapBox) GetJustify() JustifyMode { | 160 | func (x *WrapBox) GetJustify() JustifyMode { | ||
| 170 | - | core.LazyRegister(&xWrapBoxGetJustify, "ADW", "adw_wrap_box_get_justify", false) | |||
| 171 | - | ||||
| 172 | cret := xWrapBoxGetJustify(x.GoPointer()) | 161 | cret := xWrapBoxGetJustify(x.GoPointer()) | ||
| 173 | return cret | 162 | return cret | ||
| 174 | } | 163 | } | ||
| @@ -177,8 +166,6 @@ var xWrapBoxGetJustifyLastLine func(uintptr) bool | |||||
| 177 | 166 | ||||
| 178 | // Gets whether the last line should be stretched to fill the entire widget. | 167 | // Gets whether the last line should be stretched to fill the entire widget. | ||
| 179 | func (x *WrapBox) GetJustifyLastLine() bool { | 168 | func (x *WrapBox) GetJustifyLastLine() bool { | ||
| 180 | - | core.LazyRegister(&xWrapBoxGetJustifyLastLine, "ADW", "adw_wrap_box_get_justify_last_line", false) | |||
| 181 | - | ||||
| 182 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | 169 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | ||
| 183 | return cret | 170 | return cret | ||
| 184 | } | 171 | } | ||
| @@ -187,8 +174,6 @@ var xWrapBoxGetLineHomogeneous func(uintptr) bool | |||||
| 187 | 174 | ||||
| 188 | // Gets whether all lines should take the same amount of space. | 175 | // Gets whether all lines should take the same amount of space. | ||
| 189 | func (x *WrapBox) GetLineHomogeneous() bool { | 176 | func (x *WrapBox) GetLineHomogeneous() bool { | ||
| 190 | - | core.LazyRegister(&xWrapBoxGetLineHomogeneous, "ADW", "adw_wrap_box_get_line_homogeneous", false) | |||
| 191 | - | ||||
| 192 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | 177 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | ||
| 193 | return cret | 178 | return cret | ||
| 194 | } | 179 | } | ||
| @@ -199,8 +184,6 @@ var xWrapBoxGetLineSpacing func(uintptr) int | |||||
| 199 | // | 184 | // | ||
| 200 | // See [property@WrapBox:line-spacing-unit]. | 185 | // See [property@WrapBox:line-spacing-unit]. | ||
| 201 | func (x *WrapBox) GetLineSpacing() int { | 186 | func (x *WrapBox) GetLineSpacing() int { | ||
| 202 | - | core.LazyRegister(&xWrapBoxGetLineSpacing, "ADW", "adw_wrap_box_get_line_spacing", false) | |||
| 203 | - | ||||
| 204 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | 187 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | ||
| 205 | return cret | 188 | return cret | ||
| 206 | } | 189 | } | ||
| @@ -209,8 +192,6 @@ var xWrapBoxGetLineSpacingUnit func(uintptr) LengthUnit | |||||
| 209 | 192 | ||||
| 210 | // Gets the length unit for line spacing. | 193 | // Gets the length unit for line spacing. | ||
| 211 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | 194 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | ||
| 212 | - | core.LazyRegister(&xWrapBoxGetLineSpacingUnit, "ADW", "adw_wrap_box_get_line_spacing_unit", false) | |||
| 213 | - | ||||
| 214 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | 195 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | ||
| 215 | return cret | 196 | return cret | ||
| 216 | } | 197 | } | ||
| @@ -219,8 +200,6 @@ var xWrapBoxGetNaturalLineLength func(uintptr) int | |||||
| 219 | 200 | ||||
| 220 | // Gets the natural size for each line. | 201 | // Gets the natural size for each line. | ||
| 221 | func (x *WrapBox) GetNaturalLineLength() int { | 202 | func (x *WrapBox) GetNaturalLineLength() int { | ||
| 222 | - | core.LazyRegister(&xWrapBoxGetNaturalLineLength, "ADW", "adw_wrap_box_get_natural_line_length", false) | |||
| 223 | - | ||||
| 224 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | 203 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | ||
| 225 | return cret | 204 | return cret | ||
| 226 | } | 205 | } | ||
| @@ -229,8 +208,6 @@ var xWrapBoxGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||||
| 229 | 208 | ||||
| 230 | // Gets the length unit for line spacing. | 209 | // Gets the length unit for line spacing. | ||
| 231 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | 210 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | ||
| 232 | - | core.LazyRegister(&xWrapBoxGetNaturalLineLengthUnit, "ADW", "adw_wrap_box_get_natural_line_length_unit", false) | |||
| 233 | - | ||||
| 234 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | 211 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | ||
| 235 | return cret | 212 | return cret | ||
| 236 | } | 213 | } | ||
| @@ -239,8 +216,6 @@ var xWrapBoxGetPackDirection func(uintptr) PackDirection | |||||
| 239 | 216 | ||||
| 240 | // Gets the direction children are packed in each line. | 217 | // Gets the direction children are packed in each line. | ||
| 241 | func (x *WrapBox) GetPackDirection() PackDirection { | 218 | func (x *WrapBox) GetPackDirection() PackDirection { | ||
| 242 | - | core.LazyRegister(&xWrapBoxGetPackDirection, "ADW", "adw_wrap_box_get_pack_direction", false) | |||
| 243 | - | ||||
| 244 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | 219 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | ||
| 245 | return cret | 220 | return cret | ||
| 246 | } | 221 | } | ||
| @@ -249,8 +224,6 @@ var xWrapBoxGetWrapPolicy func(uintptr) WrapPolicy | |||||
| 249 | 224 | ||||
| 250 | // Gets the policy for line wrapping. | 225 | // Gets the policy for line wrapping. | ||
| 251 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | 226 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | ||
| 252 | - | core.LazyRegister(&xWrapBoxGetWrapPolicy, "ADW", "adw_wrap_box_get_wrap_policy", false) | |||
| 253 | - | ||||
| 254 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | 227 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | ||
| 255 | return cret | 228 | return cret | ||
| 256 | } | 229 | } | ||
| @@ -259,8 +232,6 @@ var xWrapBoxGetWrapReverse func(uintptr) bool | |||||
| 259 | 232 | ||||
| 260 | // Gets whether wrap direction is reversed. | 233 | // Gets whether wrap direction is reversed. | ||
| 261 | func (x *WrapBox) GetWrapReverse() bool { | 234 | func (x *WrapBox) GetWrapReverse() bool { | ||
| 262 | - | core.LazyRegister(&xWrapBoxGetWrapReverse, "ADW", "adw_wrap_box_get_wrap_reverse", false) | |||
| 263 | - | ||||
| 264 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | 235 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | ||
| 265 | return cret | 236 | return cret | ||
| 266 | } | 237 | } | ||
| @@ -271,8 +242,6 @@ var xWrapBoxInsertChildAfter func(uintptr, uintptr, uintptr) | |||||
| 271 | // | 242 | // | ||
| 272 | // If @sibling is `NULL`, inserts @child at the first position. | 243 | // If @sibling is `NULL`, inserts @child at the first position. | ||
| 273 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | 244 | func (x *WrapBox) InsertChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | ||
| 274 | - | core.LazyRegister(&xWrapBoxInsertChildAfter, "ADW", "adw_wrap_box_insert_child_after", false) | |||
| 275 | - | ||||
| 276 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | 245 | xWrapBoxInsertChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | ||
| 277 | } | 246 | } | ||
| 278 | 247 | ||||
| @@ -280,8 +249,6 @@ var xWrapBoxPrepend func(uintptr, uintptr) | |||||
| 280 | 249 | ||||
| 281 | // Adds @child as the first child to @self. | 250 | // Adds @child as the first child to @self. | ||
| 282 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | 251 | func (x *WrapBox) Prepend(ChildVar *gtk.Widget) { | ||
| 283 | - | core.LazyRegister(&xWrapBoxPrepend, "ADW", "adw_wrap_box_prepend", false) | |||
| 284 | - | ||||
| 285 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | 252 | xWrapBoxPrepend(x.GoPointer(), ChildVar.GoPointer()) | ||
| 286 | } | 253 | } | ||
| 287 | 254 | ||||
| @@ -292,8 +259,6 @@ var xWrapBoxRemove func(uintptr, uintptr) | |||||
| 292 | // The child must have been added before with [method@Adw.WrapBox.append], | 259 | // The child must have been added before with [method@Adw.WrapBox.append], | ||
| 293 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | 260 | // [method@Adw.WrapBox.prepend], or [method@Adw.WrapBox.insert_child_after]. | ||
| 294 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | 261 | func (x *WrapBox) Remove(ChildVar *gtk.Widget) { | ||
| 295 | - | core.LazyRegister(&xWrapBoxRemove, "ADW", "adw_wrap_box_remove", false) | |||
| 296 | - | ||||
| 297 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | 262 | xWrapBoxRemove(x.GoPointer(), ChildVar.GoPointer()) | ||
| 298 | } | 263 | } | ||
| 299 | 264 | ||||
| @@ -301,8 +266,6 @@ var xWrapBoxRemoveAll func(uintptr) | |||||
| 301 | 266 | ||||
| 302 | // Removes all children from @self. | 267 | // Removes all children from @self. | ||
| 303 | func (x *WrapBox) RemoveAll() { | 268 | func (x *WrapBox) RemoveAll() { | ||
| 304 | - | core.LazyRegister(&xWrapBoxRemoveAll, "ADW", "adw_wrap_box_remove_all", false) | |||
| 305 | - | ||||
| 306 | xWrapBoxRemoveAll(x.GoPointer()) | 269 | xWrapBoxRemoveAll(x.GoPointer()) | ||
| 307 | } | 270 | } | ||
| 308 | 271 | ||||
| @@ -312,8 +275,6 @@ var xWrapBoxReorderChildAfter func(uintptr, uintptr, uintptr) | |||||
| 312 | // | 275 | // | ||
| 313 | // If @sibling is `NULL`, moves @child to the first position. | 276 | // If @sibling is `NULL`, moves @child to the first position. | ||
| 314 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | 277 | func (x *WrapBox) ReorderChildAfter(ChildVar *gtk.Widget, SiblingVar *gtk.Widget) { | ||
| 315 | - | core.LazyRegister(&xWrapBoxReorderChildAfter, "ADW", "adw_wrap_box_reorder_child_after", false) | |||
| 316 | - | ||||
| 317 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | 278 | xWrapBoxReorderChildAfter(x.GoPointer(), ChildVar.GoPointer(), SiblingVar.GoPointer()) | ||
| 318 | } | 279 | } | ||
| 319 | 280 | ||||
| @@ -329,8 +290,6 @@ var xWrapBoxSetAlign func(uintptr, float32) | |||||
| 329 | // [enum@Adw.JustifyMode.none], or on the last line when the | 290 | // [enum@Adw.JustifyMode.none], or on the last line when the | ||
| 330 | // [property@WrapBox:justify-last-line] is `FALSE`. | 291 | // [property@WrapBox:justify-last-line] is `FALSE`. | ||
| 331 | func (x *WrapBox) SetAlign(AlignVar float32) { | 292 | func (x *WrapBox) SetAlign(AlignVar float32) { | ||
| 332 | - | core.LazyRegister(&xWrapBoxSetAlign, "ADW", "adw_wrap_box_set_align", false) | |||
| 333 | - | ||||
| 334 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | 293 | xWrapBoxSetAlign(x.GoPointer(), AlignVar) | ||
| 335 | } | 294 | } | ||
| 336 | 295 | ||||
| @@ -340,8 +299,6 @@ var xWrapBoxSetChildSpacing func(uintptr, int) | |||||
| 340 | // | 299 | // | ||
| 341 | // See [property@WrapBox:child-spacing-unit]. | 300 | // See [property@WrapBox:child-spacing-unit]. | ||
| 342 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | 301 | func (x *WrapBox) SetChildSpacing(ChildSpacingVar int) { | ||
| 343 | - | core.LazyRegister(&xWrapBoxSetChildSpacing, "ADW", "adw_wrap_box_set_child_spacing", false) | |||
| 344 | - | ||||
| 345 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | 302 | xWrapBoxSetChildSpacing(x.GoPointer(), ChildSpacingVar) | ||
| 346 | } | 303 | } | ||
| 347 | 304 | ||||
| @@ -353,8 +310,6 @@ var xWrapBoxSetChildSpacingUnit func(uintptr, LengthUnit) | |||||
| 353 | // | 310 | // | ||
| 354 | // See [property@WrapBox:child-spacing]. | 311 | // See [property@WrapBox:child-spacing]. | ||
| 355 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | 312 | func (x *WrapBox) SetChildSpacingUnit(UnitVar LengthUnit) { | ||
| 356 | - | core.LazyRegister(&xWrapBoxSetChildSpacingUnit, "ADW", "adw_wrap_box_set_child_spacing_unit", false) | |||
| 357 | - | ||||
| 358 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | 313 | xWrapBoxSetChildSpacingUnit(x.GoPointer(), UnitVar) | ||
| 359 | } | 314 | } | ||
| 360 | 315 | ||||
| @@ -379,8 +334,6 @@ var xWrapBoxSetJustify func(uintptr, JustifyMode) | |||||
| 379 | // By default this doesn't affect the last line, as it will be incomplete. Use | 334 | // By default this doesn't affect the last line, as it will be incomplete. Use | ||
| 380 | // [property@WrapBox:justify-last-line] to justify it as well. | 335 | // [property@WrapBox:justify-last-line] to justify it as well. | ||
| 381 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | 336 | func (x *WrapBox) SetJustify(JustifyVar JustifyMode) { | ||
| 382 | - | core.LazyRegister(&xWrapBoxSetJustify, "ADW", "adw_wrap_box_set_justify", false) | |||
| 383 | - | ||||
| 384 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | 337 | xWrapBoxSetJustify(x.GoPointer(), JustifyVar) | ||
| 385 | } | 338 | } | ||
| 386 | 339 | ||||
| @@ -390,8 +343,6 @@ var xWrapBoxSetJustifyLastLine func(uintptr, bool) | |||||
| 390 | // | 343 | // | ||
| 391 | // See [property@WrapBox:justify]. | 344 | // See [property@WrapBox:justify]. | ||
| 392 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | 345 | func (x *WrapBox) SetJustifyLastLine(JustifyLastLineVar bool) { | ||
| 393 | - | core.LazyRegister(&xWrapBoxSetJustifyLastLine, "ADW", "adw_wrap_box_set_justify_last_line", false) | |||
| 394 | - | ||||
| 395 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | 346 | xWrapBoxSetJustifyLastLine(x.GoPointer(), JustifyLastLineVar) | ||
| 396 | } | 347 | } | ||
| 397 | 348 | ||||
| @@ -399,8 +350,6 @@ var xWrapBoxSetLineHomogeneous func(uintptr, bool) | |||||
| 399 | 350 | ||||
| 400 | // Sets whether all lines should take the same amount of space. | 351 | // Sets whether all lines should take the same amount of space. | ||
| 401 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | 352 | func (x *WrapBox) SetLineHomogeneous(HomogeneousVar bool) { | ||
| 402 | - | core.LazyRegister(&xWrapBoxSetLineHomogeneous, "ADW", "adw_wrap_box_set_line_homogeneous", false) | |||
| 403 | - | ||||
| 404 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | 353 | xWrapBoxSetLineHomogeneous(x.GoPointer(), HomogeneousVar) | ||
| 405 | } | 354 | } | ||
| 406 | 355 | ||||
| @@ -408,8 +357,6 @@ var xWrapBoxSetLineSpacing func(uintptr, int) | |||||
| 408 | 357 | ||||
| 409 | // Sets the spacing between lines. | 358 | // Sets the spacing between lines. | ||
| 410 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | 359 | func (x *WrapBox) SetLineSpacing(LineSpacingVar int) { | ||
| 411 | - | core.LazyRegister(&xWrapBoxSetLineSpacing, "ADW", "adw_wrap_box_set_line_spacing", false) | |||
| 412 | - | ||||
| 413 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | 360 | xWrapBoxSetLineSpacing(x.GoPointer(), LineSpacingVar) | ||
| 414 | } | 361 | } | ||
| 415 | 362 | ||||
| @@ -421,8 +368,6 @@ var xWrapBoxSetLineSpacingUnit func(uintptr, LengthUnit) | |||||
| 421 | // | 368 | // | ||
| 422 | // See [property@WrapBox:line-spacing]. | 369 | // See [property@WrapBox:line-spacing]. | ||
| 423 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | 370 | func (x *WrapBox) SetLineSpacingUnit(UnitVar LengthUnit) { | ||
| 424 | - | core.LazyRegister(&xWrapBoxSetLineSpacingUnit, "ADW", "adw_wrap_box_set_line_spacing_unit", false) | |||
| 425 | - | ||||
| 426 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | 371 | xWrapBoxSetLineSpacingUnit(x.GoPointer(), UnitVar) | ||
| 427 | } | 372 | } | ||
| 428 | 373 | ||||
| @@ -435,8 +380,6 @@ var xWrapBoxSetNaturalLineLength func(uintptr, int) | |||||
| 435 | // | 380 | // | ||
| 436 | // See [property@WrapBox:natural-line-length-unit]. | 381 | // See [property@WrapBox:natural-line-length-unit]. | ||
| 437 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | 382 | func (x *WrapBox) SetNaturalLineLength(NaturalLineLengthVar int) { | ||
| 438 | - | core.LazyRegister(&xWrapBoxSetNaturalLineLength, "ADW", "adw_wrap_box_set_natural_line_length", false) | |||
| 439 | - | ||||
| 440 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | 383 | xWrapBoxSetNaturalLineLength(x.GoPointer(), NaturalLineLengthVar) | ||
| 441 | } | 384 | } | ||
| 442 | 385 | ||||
| @@ -448,8 +391,6 @@ var xWrapBoxSetNaturalLineLengthUnit func(uintptr, LengthUnit) | |||||
| 448 | // | 391 | // | ||
| 449 | // See [property@WrapBox:natural-line-length]. | 392 | // See [property@WrapBox:natural-line-length]. | ||
| 450 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | 393 | func (x *WrapBox) SetNaturalLineLengthUnit(UnitVar LengthUnit) { | ||
| 451 | - | core.LazyRegister(&xWrapBoxSetNaturalLineLengthUnit, "ADW", "adw_wrap_box_set_natural_line_length_unit", false) | |||
| 452 | - | ||||
| 453 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | 394 | xWrapBoxSetNaturalLineLengthUnit(x.GoPointer(), UnitVar) | ||
| 454 | } | 395 | } | ||
| 455 | 396 | ||||
| @@ -457,8 +398,6 @@ var xWrapBoxSetPackDirection func(uintptr, PackDirection) | |||||
| 457 | 398 | ||||
| 458 | // Sets the direction children are packed in each line. | 399 | // Sets the direction children are packed in each line. | ||
| 459 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | 400 | func (x *WrapBox) SetPackDirection(PackDirectionVar PackDirection) { | ||
| 460 | - | core.LazyRegister(&xWrapBoxSetPackDirection, "ADW", "adw_wrap_box_set_pack_direction", false) | |||
| 461 | - | ||||
| 462 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | 401 | xWrapBoxSetPackDirection(x.GoPointer(), PackDirectionVar) | ||
| 463 | } | 402 | } | ||
| 464 | 403 | ||||
| @@ -474,8 +413,6 @@ var xWrapBoxSetWrapPolicy func(uintptr, WrapPolicy) | |||||
| 474 | // children into each line as possible, shrinking them down to their minimum\ | 413 | // children into each line as possible, shrinking them down to their minimum\ | ||
| 475 | // size before wrapping to the next line. | 414 | // size before wrapping to the next line. | ||
| 476 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | 415 | func (x *WrapBox) SetWrapPolicy(WrapPolicyVar WrapPolicy) { | ||
| 477 | - | core.LazyRegister(&xWrapBoxSetWrapPolicy, "ADW", "adw_wrap_box_set_wrap_policy", false) | |||
| 478 | - | ||||
| 479 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | 416 | xWrapBoxSetWrapPolicy(x.GoPointer(), WrapPolicyVar) | ||
| 480 | } | 417 | } | ||
| 481 | 418 | ||||
| @@ -487,8 +424,6 @@ var xWrapBoxSetWrapReverse func(uintptr, bool) | |||||
| 487 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | 424 | // in a vertical box. If set to `TRUE`, they wrap upwards or towards the start | ||
| 488 | // respectively. | 425 | // respectively. | ||
| 489 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | 426 | func (x *WrapBox) SetWrapReverse(WrapReverseVar bool) { | ||
| 490 | - | core.LazyRegister(&xWrapBoxSetWrapReverse, "ADW", "adw_wrap_box_set_wrap_reverse", false) | |||
| 491 | - | ||||
| 492 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | 427 | xWrapBoxSetWrapReverse(x.GoPointer(), WrapReverseVar) | ||
| 493 | } | 428 | } | ||
| 494 | 429 | ||||
| @@ -942,4 +877,49 @@ func (x *WrapBox) SetOrientation(OrientationVar gtk.Orientation) { | |||||
| 942 | func init() { | 877 | func init() { | ||
| 943 | core.SetPackageName("ADW", "libadwaita-1") | 878 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 944 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 879 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 880 | + | var libs []uintptr | |||
| 881 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 882 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 883 | + | if err != nil { | |||
| 884 | + | panic(err) | |||
| 885 | + | } | |||
| 886 | + | libs = append(libs, lib) | |||
| 887 | + | } | |||
| 888 | + | ||||
| 889 | + | core.PuregoSafeRegister(&xWrapBoxGLibType, libs, "adw_wrap_box_get_type") | |||
| 890 | + | ||||
| 891 | + | core.PuregoSafeRegister(&xNewWrapBox, libs, "adw_wrap_box_new") | |||
| 892 | + | ||||
| 893 | + | core.PuregoSafeRegister(&xWrapBoxAppend, libs, "adw_wrap_box_append") | |||
| 894 | + | core.PuregoSafeRegister(&xWrapBoxGetAlign, libs, "adw_wrap_box_get_align") | |||
| 895 | + | core.PuregoSafeRegister(&xWrapBoxGetChildSpacing, libs, "adw_wrap_box_get_child_spacing") | |||
| 896 | + | core.PuregoSafeRegister(&xWrapBoxGetChildSpacingUnit, libs, "adw_wrap_box_get_child_spacing_unit") | |||
| 897 | + | core.PuregoSafeRegister(&xWrapBoxGetJustify, libs, "adw_wrap_box_get_justify") | |||
| 898 | + | core.PuregoSafeRegister(&xWrapBoxGetJustifyLastLine, libs, "adw_wrap_box_get_justify_last_line") | |||
| 899 | + | core.PuregoSafeRegister(&xWrapBoxGetLineHomogeneous, libs, "adw_wrap_box_get_line_homogeneous") | |||
| 900 | + | core.PuregoSafeRegister(&xWrapBoxGetLineSpacing, libs, "adw_wrap_box_get_line_spacing") | |||
| 901 | + | core.PuregoSafeRegister(&xWrapBoxGetLineSpacingUnit, libs, "adw_wrap_box_get_line_spacing_unit") | |||
| 902 | + | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLength, libs, "adw_wrap_box_get_natural_line_length") | |||
| 903 | + | core.PuregoSafeRegister(&xWrapBoxGetNaturalLineLengthUnit, libs, "adw_wrap_box_get_natural_line_length_unit") | |||
| 904 | + | core.PuregoSafeRegister(&xWrapBoxGetPackDirection, libs, "adw_wrap_box_get_pack_direction") | |||
| 905 | + | core.PuregoSafeRegister(&xWrapBoxGetWrapPolicy, libs, "adw_wrap_box_get_wrap_policy") | |||
| 906 | + | core.PuregoSafeRegister(&xWrapBoxGetWrapReverse, libs, "adw_wrap_box_get_wrap_reverse") | |||
| 907 | + | core.PuregoSafeRegister(&xWrapBoxInsertChildAfter, libs, "adw_wrap_box_insert_child_after") | |||
| 908 | + | core.PuregoSafeRegister(&xWrapBoxPrepend, libs, "adw_wrap_box_prepend") | |||
| 909 | + | core.PuregoSafeRegister(&xWrapBoxRemove, libs, "adw_wrap_box_remove") | |||
| 910 | + | core.PuregoSafeRegister(&xWrapBoxRemoveAll, libs, "adw_wrap_box_remove_all") | |||
| 911 | + | core.PuregoSafeRegister(&xWrapBoxReorderChildAfter, libs, "adw_wrap_box_reorder_child_after") | |||
| 912 | + | core.PuregoSafeRegister(&xWrapBoxSetAlign, libs, "adw_wrap_box_set_align") | |||
| 913 | + | core.PuregoSafeRegister(&xWrapBoxSetChildSpacing, libs, "adw_wrap_box_set_child_spacing") | |||
| 914 | + | core.PuregoSafeRegister(&xWrapBoxSetChildSpacingUnit, libs, "adw_wrap_box_set_child_spacing_unit") | |||
| 915 | + | core.PuregoSafeRegister(&xWrapBoxSetJustify, libs, "adw_wrap_box_set_justify") | |||
| 916 | + | core.PuregoSafeRegister(&xWrapBoxSetJustifyLastLine, libs, "adw_wrap_box_set_justify_last_line") | |||
| 917 | + | core.PuregoSafeRegister(&xWrapBoxSetLineHomogeneous, libs, "adw_wrap_box_set_line_homogeneous") | |||
| 918 | + | core.PuregoSafeRegister(&xWrapBoxSetLineSpacing, libs, "adw_wrap_box_set_line_spacing") | |||
| 919 | + | core.PuregoSafeRegister(&xWrapBoxSetLineSpacingUnit, libs, "adw_wrap_box_set_line_spacing_unit") | |||
| 920 | + | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLength, libs, "adw_wrap_box_set_natural_line_length") | |||
| 921 | + | core.PuregoSafeRegister(&xWrapBoxSetNaturalLineLengthUnit, libs, "adw_wrap_box_set_natural_line_length_unit") | |||
| 922 | + | core.PuregoSafeRegister(&xWrapBoxSetPackDirection, libs, "adw_wrap_box_set_pack_direction") | |||
| 923 | + | core.PuregoSafeRegister(&xWrapBoxSetWrapPolicy, libs, "adw_wrap_box_set_wrap_policy") | |||
| 924 | + | core.PuregoSafeRegister(&xWrapBoxSetWrapReverse, libs, "adw_wrap_box_set_wrap_reverse") | |||
| 945 | } | 925 | } | ||