fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gio" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| @@ -90,6 +89,7 @@ type SplitButton struct { | |||
| 90 | 89 | var xSplitButtonGLibType func() types.GType | |
| 91 | 90 | ||
| 92 | 91 | func SplitButtonGLibType() types.GType { | |
| 92 | + | core.LazyRegister(&xSplitButtonGLibType, "ADW", "adw_split_button_get_type", false) | |
| 93 | 93 | return xSplitButtonGLibType() | |
| 94 | 94 | } | |
| 95 | 95 | ||
| @@ -103,6 +103,7 @@ var xNewSplitButton func() uintptr | |||
| 103 | 103 | ||
| 104 | 104 | // Creates a new `AdwSplitButton`. | |
| 105 | 105 | func NewSplitButton() *SplitButton { | |
| 106 | + | core.LazyRegister(&xNewSplitButton, "ADW", "adw_split_button_new", false) | |
| 106 | 107 | var cls *SplitButton | |
| 107 | 108 | ||
| 108 | 109 | cret := xNewSplitButton() | |
| @@ -120,6 +121,8 @@ var xSplitButtonGetCanShrink func(uintptr) bool | |||
| 120 | 121 | ||
| 121 | 122 | // gets whether the button can be smaller than the natural size of its contents. | |
| 122 | 123 | func (x *SplitButton) GetCanShrink() bool { | |
| 124 | + | core.LazyRegister(&xSplitButtonGetCanShrink, "ADW", "adw_split_button_get_can_shrink", false) | |
| 125 | + | ||
| 123 | 126 | cret := xSplitButtonGetCanShrink(x.GoPointer()) | |
| 124 | 127 | return cret | |
| 125 | 128 | } | |
| @@ -128,6 +131,7 @@ var xSplitButtonGetChild func(uintptr) uintptr | |||
| 128 | 131 | ||
| 129 | 132 | // Gets the child widget. | |
| 130 | 133 | func (x *SplitButton) GetChild() *gtk.Widget { | |
| 134 | + | core.LazyRegister(&xSplitButtonGetChild, "ADW", "adw_split_button_get_child", false) | |
| 131 | 135 | var cls *gtk.Widget | |
| 132 | 136 | ||
| 133 | 137 | cret := xSplitButtonGetChild(x.GoPointer()) | |
| @@ -145,6 +149,8 @@ var xSplitButtonGetDirection func(uintptr) gtk.ArrowType | |||
| 145 | 149 | ||
| 146 | 150 | // Gets the direction in which the popup will be popped up. | |
| 147 | 151 | func (x *SplitButton) GetDirection() gtk.ArrowType { | |
| 152 | + | core.LazyRegister(&xSplitButtonGetDirection, "ADW", "adw_split_button_get_direction", false) | |
| 153 | + | ||
| 148 | 154 | cret := xSplitButtonGetDirection(x.GoPointer()) | |
| 149 | 155 | return cret | |
| 150 | 156 | } | |
| @@ -153,6 +159,8 @@ var xSplitButtonGetDropdownTooltip func(uintptr) string | |||
| 153 | 159 | ||
| 154 | 160 | // Gets the tooltip of the dropdown button of @self. | |
| 155 | 161 | func (x *SplitButton) GetDropdownTooltip() string { | |
| 162 | + | core.LazyRegister(&xSplitButtonGetDropdownTooltip, "ADW", "adw_split_button_get_dropdown_tooltip", false) | |
| 163 | + | ||
| 156 | 164 | cret := xSplitButtonGetDropdownTooltip(x.GoPointer()) | |
| 157 | 165 | return cret | |
| 158 | 166 | } | |
| @@ -161,6 +169,8 @@ var xSplitButtonGetIconName func(uintptr) string | |||
| 161 | 169 | ||
| 162 | 170 | // Gets the name of the icon used to automatically populate the button. | |
| 163 | 171 | func (x *SplitButton) GetIconName() string { | |
| 172 | + | core.LazyRegister(&xSplitButtonGetIconName, "ADW", "adw_split_button_get_icon_name", false) | |
| 173 | + | ||
| 164 | 174 | cret := xSplitButtonGetIconName(x.GoPointer()) | |
| 165 | 175 | return cret | |
| 166 | 176 | } | |
| @@ -169,6 +179,8 @@ var xSplitButtonGetLabel func(uintptr) string | |||
| 169 | 179 | ||
| 170 | 180 | // Gets the label for @self. | |
| 171 | 181 | func (x *SplitButton) GetLabel() string { | |
| 182 | + | core.LazyRegister(&xSplitButtonGetLabel, "ADW", "adw_split_button_get_label", false) | |
| 183 | + | ||
| 172 | 184 | cret := xSplitButtonGetLabel(x.GoPointer()) | |
| 173 | 185 | return cret | |
| 174 | 186 | } | |
| @@ -177,6 +189,7 @@ var xSplitButtonGetMenuModel func(uintptr) uintptr | |||
| 177 | 189 | ||
| 178 | 190 | // Gets the menu model from which the popup will be created. | |
| 179 | 191 | func (x *SplitButton) GetMenuModel() *gio.MenuModel { | |
| 192 | + | core.LazyRegister(&xSplitButtonGetMenuModel, "ADW", "adw_split_button_get_menu_model", false) | |
| 180 | 193 | var cls *gio.MenuModel | |
| 181 | 194 | ||
| 182 | 195 | cret := xSplitButtonGetMenuModel(x.GoPointer()) | |
| @@ -194,6 +207,7 @@ var xSplitButtonGetPopover func(uintptr) uintptr | |||
| 194 | 207 | ||
| 195 | 208 | // Gets the popover that will be popped up when the dropdown is clicked. | |
| 196 | 209 | func (x *SplitButton) GetPopover() *gtk.Popover { | |
| 210 | + | core.LazyRegister(&xSplitButtonGetPopover, "ADW", "adw_split_button_get_popover", false) | |
| 197 | 211 | var cls *gtk.Popover | |
| 198 | 212 | ||
| 199 | 213 | cret := xSplitButtonGetPopover(x.GoPointer()) | |
| @@ -211,6 +225,8 @@ var xSplitButtonGetUseUnderline func(uintptr) bool | |||
| 211 | 225 | ||
| 212 | 226 | // Gets whether an underline in the text indicates a mnemonic. | |
| 213 | 227 | func (x *SplitButton) GetUseUnderline() bool { | |
| 228 | + | core.LazyRegister(&xSplitButtonGetUseUnderline, "ADW", "adw_split_button_get_use_underline", false) | |
| 229 | + | ||
| 214 | 230 | cret := xSplitButtonGetUseUnderline(x.GoPointer()) | |
| 215 | 231 | return cret | |
| 216 | 232 | } | |
| @@ -219,6 +235,8 @@ var xSplitButtonPopdown func(uintptr) | |||
| 219 | 235 | ||
| 220 | 236 | // Dismisses the menu. | |
| 221 | 237 | func (x *SplitButton) Popdown() { | |
| 238 | + | core.LazyRegister(&xSplitButtonPopdown, "ADW", "adw_split_button_popdown", false) | |
| 239 | + | ||
| 222 | 240 | xSplitButtonPopdown(x.GoPointer()) | |
| 223 | 241 | } | |
| 224 | 242 | ||
| @@ -226,6 +244,8 @@ var xSplitButtonPopup func(uintptr) | |||
| 226 | 244 | ||
| 227 | 245 | // Pops up the menu. | |
| 228 | 246 | func (x *SplitButton) Popup() { | |
| 247 | + | core.LazyRegister(&xSplitButtonPopup, "ADW", "adw_split_button_popup", false) | |
| 248 | + | ||
| 229 | 249 | xSplitButtonPopup(x.GoPointer()) | |
| 230 | 250 | } | |
| 231 | 251 | ||
| @@ -238,6 +258,8 @@ var xSplitButtonSetCanShrink func(uintptr, bool) | |||
| 238 | 258 | // See [method@Gtk.Button.set_can_shrink] and | |
| 239 | 259 | // [method@Gtk.MenuButton.set_can_shrink]. | |
| 240 | 260 | func (x *SplitButton) SetCanShrink(CanShrinkVar bool) { | |
| 261 | + | core.LazyRegister(&xSplitButtonSetCanShrink, "ADW", "adw_split_button_set_can_shrink", false) | |
| 262 | + | ||
| 241 | 263 | xSplitButtonSetCanShrink(x.GoPointer(), CanShrinkVar) | |
| 242 | 264 | } | |
| 243 | 265 | ||
| @@ -248,6 +270,8 @@ var xSplitButtonSetChild func(uintptr, uintptr) | |||
| 248 | 270 | // Setting the child widget will set [property@SplitButton:label] and | |
| 249 | 271 | // [property@SplitButton:icon-name] to `NULL`. | |
| 250 | 272 | func (x *SplitButton) SetChild(ChildVar *gtk.Widget) { | |
| 273 | + | core.LazyRegister(&xSplitButtonSetChild, "ADW", "adw_split_button_set_child", false) | |
| 274 | + | ||
| 251 | 275 | xSplitButtonSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 252 | 276 | } | |
| 253 | 277 | ||
| @@ -262,6 +286,8 @@ var xSplitButtonSetDirection func(uintptr, gtk.ArrowType) | |||
| 262 | 286 | // | |
| 263 | 287 | // [enum@Gtk.ArrowType.none] behaves same as [enum@Gtk.ArrowType.down]. | |
| 264 | 288 | func (x *SplitButton) SetDirection(DirectionVar gtk.ArrowType) { | |
| 289 | + | core.LazyRegister(&xSplitButtonSetDirection, "ADW", "adw_split_button_set_direction", false) | |
| 290 | + | ||
| 265 | 291 | xSplitButtonSetDirection(x.GoPointer(), DirectionVar) | |
| 266 | 292 | } | |
| 267 | 293 | ||
| @@ -271,6 +297,8 @@ var xSplitButtonSetDropdownTooltip func(uintptr, string) | |||
| 271 | 297 | // | |
| 272 | 298 | // The tooltip can be marked up with the Pango text markup language. | |
| 273 | 299 | func (x *SplitButton) SetDropdownTooltip(TooltipVar string) { | |
| 300 | + | core.LazyRegister(&xSplitButtonSetDropdownTooltip, "ADW", "adw_split_button_set_dropdown_tooltip", false) | |
| 301 | + | ||
| 274 | 302 | xSplitButtonSetDropdownTooltip(x.GoPointer(), TooltipVar) | |
| 275 | 303 | } | |
| 276 | 304 | ||
| @@ -281,6 +309,8 @@ var xSplitButtonSetIconName func(uintptr, string) | |||
| 281 | 309 | // Setting the icon name will set [property@SplitButton:label] and | |
| 282 | 310 | // [property@SplitButton:child] to `NULL`. | |
| 283 | 311 | func (x *SplitButton) SetIconName(IconNameVar string) { | |
| 312 | + | core.LazyRegister(&xSplitButtonSetIconName, "ADW", "adw_split_button_set_icon_name", false) | |
| 313 | + | ||
| 284 | 314 | xSplitButtonSetIconName(x.GoPointer(), IconNameVar) | |
| 285 | 315 | } | |
| 286 | 316 | ||
| @@ -291,6 +321,8 @@ var xSplitButtonSetLabel func(uintptr, string) | |||
| 291 | 321 | // Setting the label will set [property@SplitButton:icon-name] and | |
| 292 | 322 | // [property@SplitButton:child] to `NULL`. | |
| 293 | 323 | func (x *SplitButton) SetLabel(LabelVar string) { | |
| 324 | + | core.LazyRegister(&xSplitButtonSetLabel, "ADW", "adw_split_button_set_label", false) | |
| 325 | + | ||
| 294 | 326 | xSplitButtonSetLabel(x.GoPointer(), LabelVar) | |
| 295 | 327 | } | |
| 296 | 328 | ||
| @@ -307,6 +339,8 @@ var xSplitButtonSetMenuModel func(uintptr, uintptr) | |||
| 307 | 339 | // If [property@SplitButton:popover] is already set, it will be dissociated from | |
| 308 | 340 | // the button, and the property is set to `NULL`. | |
| 309 | 341 | func (x *SplitButton) SetMenuModel(MenuModelVar *gio.MenuModel) { | |
| 342 | + | core.LazyRegister(&xSplitButtonSetMenuModel, "ADW", "adw_split_button_set_menu_model", false) | |
| 343 | + | ||
| 310 | 344 | xSplitButtonSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | |
| 311 | 345 | } | |
| 312 | 346 | ||
| @@ -319,6 +353,8 @@ var xSplitButtonSetPopover func(uintptr, uintptr) | |||
| 319 | 353 | // If [property@SplitButton:menu-model] is set, the menu model is dissociated | |
| 320 | 354 | // from the button, and the property is set to `NULL`. | |
| 321 | 355 | func (x *SplitButton) SetPopover(PopoverVar *gtk.Popover) { | |
| 356 | + | core.LazyRegister(&xSplitButtonSetPopover, "ADW", "adw_split_button_set_popover", false) | |
| 357 | + | ||
| 322 | 358 | xSplitButtonSetPopover(x.GoPointer(), PopoverVar.GoPointer()) | |
| 323 | 359 | } | |
| 324 | 360 | ||
| @@ -328,6 +364,8 @@ var xSplitButtonSetUseUnderline func(uintptr, bool) | |||
| 328 | 364 | // | |
| 329 | 365 | // See [property@SplitButton:label]. | |
| 330 | 366 | func (x *SplitButton) SetUseUnderline(UseUnderlineVar bool) { | |
| 367 | + | core.LazyRegister(&xSplitButtonSetUseUnderline, "ADW", "adw_split_button_set_use_underline", false) | |
| 368 | + | ||
| 331 | 369 | xSplitButtonSetUseUnderline(x.GoPointer(), UseUnderlineVar) | |
| 332 | 370 | } | |
| 333 | 371 | ||
| @@ -848,37 +886,4 @@ func (x *SplitButton) GetBuildableId() string { | |||
| 848 | 886 | func init() { | |
| 849 | 887 | core.SetPackageName("ADW", "libadwaita-1") | |
| 850 | 888 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 851 | - | var libs []uintptr | |
| 852 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 853 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 854 | - | if err != nil { | |
| 855 | - | panic(err) | |
| 856 | - | } | |
| 857 | - | libs = append(libs, lib) | |
| 858 | - | } | |
| 859 | - | ||
| 860 | - | core.PuregoSafeRegister(&xSplitButtonGLibType, libs, "adw_split_button_get_type") | |
| 861 | - | ||
| 862 | - | core.PuregoSafeRegister(&xNewSplitButton, libs, "adw_split_button_new") | |
| 863 | - | ||
| 864 | - | core.PuregoSafeRegister(&xSplitButtonGetCanShrink, libs, "adw_split_button_get_can_shrink") | |
| 865 | - | core.PuregoSafeRegister(&xSplitButtonGetChild, libs, "adw_split_button_get_child") | |
| 866 | - | core.PuregoSafeRegister(&xSplitButtonGetDirection, libs, "adw_split_button_get_direction") | |
| 867 | - | core.PuregoSafeRegister(&xSplitButtonGetDropdownTooltip, libs, "adw_split_button_get_dropdown_tooltip") | |
| 868 | - | core.PuregoSafeRegister(&xSplitButtonGetIconName, libs, "adw_split_button_get_icon_name") | |
| 869 | - | core.PuregoSafeRegister(&xSplitButtonGetLabel, libs, "adw_split_button_get_label") | |
| 870 | - | core.PuregoSafeRegister(&xSplitButtonGetMenuModel, libs, "adw_split_button_get_menu_model") | |
| 871 | - | core.PuregoSafeRegister(&xSplitButtonGetPopover, libs, "adw_split_button_get_popover") | |
| 872 | - | core.PuregoSafeRegister(&xSplitButtonGetUseUnderline, libs, "adw_split_button_get_use_underline") | |
| 873 | - | core.PuregoSafeRegister(&xSplitButtonPopdown, libs, "adw_split_button_popdown") | |
| 874 | - | core.PuregoSafeRegister(&xSplitButtonPopup, libs, "adw_split_button_popup") | |
| 875 | - | core.PuregoSafeRegister(&xSplitButtonSetCanShrink, libs, "adw_split_button_set_can_shrink") | |
| 876 | - | core.PuregoSafeRegister(&xSplitButtonSetChild, libs, "adw_split_button_set_child") | |
| 877 | - | core.PuregoSafeRegister(&xSplitButtonSetDirection, libs, "adw_split_button_set_direction") | |
| 878 | - | core.PuregoSafeRegister(&xSplitButtonSetDropdownTooltip, libs, "adw_split_button_set_dropdown_tooltip") | |
| 879 | - | core.PuregoSafeRegister(&xSplitButtonSetIconName, libs, "adw_split_button_set_icon_name") | |
| 880 | - | core.PuregoSafeRegister(&xSplitButtonSetLabel, libs, "adw_split_button_set_label") | |
| 881 | - | core.PuregoSafeRegister(&xSplitButtonSetMenuModel, libs, "adw_split_button_set_menu_model") | |
| 882 | - | core.PuregoSafeRegister(&xSplitButtonSetPopover, libs, "adw_split_button_set_popover") | |
| 883 | - | core.PuregoSafeRegister(&xSplitButtonSetUseUnderline, libs, "adw_split_button_set_use_underline") | |
| 884 | 889 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gio" | 9 | "github.com/bnema/puregotk/v4/gio" | ||
| 11 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| @@ -90,6 +89,7 @@ type SplitButton struct { | |||||
| 90 | var xSplitButtonGLibType func() types.GType | 89 | var xSplitButtonGLibType func() types.GType | ||
| 91 | 90 | ||||
| 92 | func SplitButtonGLibType() types.GType { | 91 | func SplitButtonGLibType() types.GType { | ||
| 92 | + | core.LazyRegister(&xSplitButtonGLibType, "ADW", "adw_split_button_get_type", false) | |||
| 93 | return xSplitButtonGLibType() | 93 | return xSplitButtonGLibType() | ||
| 94 | } | 94 | } | ||
| 95 | 95 | ||||
| @@ -103,6 +103,7 @@ var xNewSplitButton func() uintptr | |||||
| 103 | 103 | ||||
| 104 | // Creates a new `AdwSplitButton`. | 104 | // Creates a new `AdwSplitButton`. | ||
| 105 | func NewSplitButton() *SplitButton { | 105 | func NewSplitButton() *SplitButton { | ||
| 106 | + | core.LazyRegister(&xNewSplitButton, "ADW", "adw_split_button_new", false) | |||
| 106 | var cls *SplitButton | 107 | var cls *SplitButton | ||
| 107 | 108 | ||||
| 108 | cret := xNewSplitButton() | 109 | cret := xNewSplitButton() | ||
| @@ -120,6 +121,8 @@ var xSplitButtonGetCanShrink func(uintptr) bool | |||||
| 120 | 121 | ||||
| 121 | // gets whether the button can be smaller than the natural size of its contents. | 122 | // gets whether the button can be smaller than the natural size of its contents. | ||
| 122 | func (x *SplitButton) GetCanShrink() bool { | 123 | func (x *SplitButton) GetCanShrink() bool { | ||
| 124 | + | core.LazyRegister(&xSplitButtonGetCanShrink, "ADW", "adw_split_button_get_can_shrink", false) | |||
| 125 | + | ||||
| 123 | cret := xSplitButtonGetCanShrink(x.GoPointer()) | 126 | cret := xSplitButtonGetCanShrink(x.GoPointer()) | ||
| 124 | return cret | 127 | return cret | ||
| 125 | } | 128 | } | ||
| @@ -128,6 +131,7 @@ var xSplitButtonGetChild func(uintptr) uintptr | |||||
| 128 | 131 | ||||
| 129 | // Gets the child widget. | 132 | // Gets the child widget. | ||
| 130 | func (x *SplitButton) GetChild() *gtk.Widget { | 133 | func (x *SplitButton) GetChild() *gtk.Widget { | ||
| 134 | + | core.LazyRegister(&xSplitButtonGetChild, "ADW", "adw_split_button_get_child", false) | |||
| 131 | var cls *gtk.Widget | 135 | var cls *gtk.Widget | ||
| 132 | 136 | ||||
| 133 | cret := xSplitButtonGetChild(x.GoPointer()) | 137 | cret := xSplitButtonGetChild(x.GoPointer()) | ||
| @@ -145,6 +149,8 @@ var xSplitButtonGetDirection func(uintptr) gtk.ArrowType | |||||
| 145 | 149 | ||||
| 146 | // Gets the direction in which the popup will be popped up. | 150 | // Gets the direction in which the popup will be popped up. | ||
| 147 | func (x *SplitButton) GetDirection() gtk.ArrowType { | 151 | func (x *SplitButton) GetDirection() gtk.ArrowType { | ||
| 152 | + | core.LazyRegister(&xSplitButtonGetDirection, "ADW", "adw_split_button_get_direction", false) | |||
| 153 | + | ||||
| 148 | cret := xSplitButtonGetDirection(x.GoPointer()) | 154 | cret := xSplitButtonGetDirection(x.GoPointer()) | ||
| 149 | return cret | 155 | return cret | ||
| 150 | } | 156 | } | ||
| @@ -153,6 +159,8 @@ var xSplitButtonGetDropdownTooltip func(uintptr) string | |||||
| 153 | 159 | ||||
| 154 | // Gets the tooltip of the dropdown button of @self. | 160 | // Gets the tooltip of the dropdown button of @self. | ||
| 155 | func (x *SplitButton) GetDropdownTooltip() string { | 161 | func (x *SplitButton) GetDropdownTooltip() string { | ||
| 162 | + | core.LazyRegister(&xSplitButtonGetDropdownTooltip, "ADW", "adw_split_button_get_dropdown_tooltip", false) | |||
| 163 | + | ||||
| 156 | cret := xSplitButtonGetDropdownTooltip(x.GoPointer()) | 164 | cret := xSplitButtonGetDropdownTooltip(x.GoPointer()) | ||
| 157 | return cret | 165 | return cret | ||
| 158 | } | 166 | } | ||
| @@ -161,6 +169,8 @@ var xSplitButtonGetIconName func(uintptr) string | |||||
| 161 | 169 | ||||
| 162 | // Gets the name of the icon used to automatically populate the button. | 170 | // Gets the name of the icon used to automatically populate the button. | ||
| 163 | func (x *SplitButton) GetIconName() string { | 171 | func (x *SplitButton) GetIconName() string { | ||
| 172 | + | core.LazyRegister(&xSplitButtonGetIconName, "ADW", "adw_split_button_get_icon_name", false) | |||
| 173 | + | ||||
| 164 | cret := xSplitButtonGetIconName(x.GoPointer()) | 174 | cret := xSplitButtonGetIconName(x.GoPointer()) | ||
| 165 | return cret | 175 | return cret | ||
| 166 | } | 176 | } | ||
| @@ -169,6 +179,8 @@ var xSplitButtonGetLabel func(uintptr) string | |||||
| 169 | 179 | ||||
| 170 | // Gets the label for @self. | 180 | // Gets the label for @self. | ||
| 171 | func (x *SplitButton) GetLabel() string { | 181 | func (x *SplitButton) GetLabel() string { | ||
| 182 | + | core.LazyRegister(&xSplitButtonGetLabel, "ADW", "adw_split_button_get_label", false) | |||
| 183 | + | ||||
| 172 | cret := xSplitButtonGetLabel(x.GoPointer()) | 184 | cret := xSplitButtonGetLabel(x.GoPointer()) | ||
| 173 | return cret | 185 | return cret | ||
| 174 | } | 186 | } | ||
| @@ -177,6 +189,7 @@ var xSplitButtonGetMenuModel func(uintptr) uintptr | |||||
| 177 | 189 | ||||
| 178 | // Gets the menu model from which the popup will be created. | 190 | // Gets the menu model from which the popup will be created. | ||
| 179 | func (x *SplitButton) GetMenuModel() *gio.MenuModel { | 191 | func (x *SplitButton) GetMenuModel() *gio.MenuModel { | ||
| 192 | + | core.LazyRegister(&xSplitButtonGetMenuModel, "ADW", "adw_split_button_get_menu_model", false) | |||
| 180 | var cls *gio.MenuModel | 193 | var cls *gio.MenuModel | ||
| 181 | 194 | ||||
| 182 | cret := xSplitButtonGetMenuModel(x.GoPointer()) | 195 | cret := xSplitButtonGetMenuModel(x.GoPointer()) | ||
| @@ -194,6 +207,7 @@ var xSplitButtonGetPopover func(uintptr) uintptr | |||||
| 194 | 207 | ||||
| 195 | // Gets the popover that will be popped up when the dropdown is clicked. | 208 | // Gets the popover that will be popped up when the dropdown is clicked. | ||
| 196 | func (x *SplitButton) GetPopover() *gtk.Popover { | 209 | func (x *SplitButton) GetPopover() *gtk.Popover { | ||
| 210 | + | core.LazyRegister(&xSplitButtonGetPopover, "ADW", "adw_split_button_get_popover", false) | |||
| 197 | var cls *gtk.Popover | 211 | var cls *gtk.Popover | ||
| 198 | 212 | ||||
| 199 | cret := xSplitButtonGetPopover(x.GoPointer()) | 213 | cret := xSplitButtonGetPopover(x.GoPointer()) | ||
| @@ -211,6 +225,8 @@ var xSplitButtonGetUseUnderline func(uintptr) bool | |||||
| 211 | 225 | ||||
| 212 | // Gets whether an underline in the text indicates a mnemonic. | 226 | // Gets whether an underline in the text indicates a mnemonic. | ||
| 213 | func (x *SplitButton) GetUseUnderline() bool { | 227 | func (x *SplitButton) GetUseUnderline() bool { | ||
| 228 | + | core.LazyRegister(&xSplitButtonGetUseUnderline, "ADW", "adw_split_button_get_use_underline", false) | |||
| 229 | + | ||||
| 214 | cret := xSplitButtonGetUseUnderline(x.GoPointer()) | 230 | cret := xSplitButtonGetUseUnderline(x.GoPointer()) | ||
| 215 | return cret | 231 | return cret | ||
| 216 | } | 232 | } | ||
| @@ -219,6 +235,8 @@ var xSplitButtonPopdown func(uintptr) | |||||
| 219 | 235 | ||||
| 220 | // Dismisses the menu. | 236 | // Dismisses the menu. | ||
| 221 | func (x *SplitButton) Popdown() { | 237 | func (x *SplitButton) Popdown() { | ||
| 238 | + | core.LazyRegister(&xSplitButtonPopdown, "ADW", "adw_split_button_popdown", false) | |||
| 239 | + | ||||
| 222 | xSplitButtonPopdown(x.GoPointer()) | 240 | xSplitButtonPopdown(x.GoPointer()) | ||
| 223 | } | 241 | } | ||
| 224 | 242 | ||||
| @@ -226,6 +244,8 @@ var xSplitButtonPopup func(uintptr) | |||||
| 226 | 244 | ||||
| 227 | // Pops up the menu. | 245 | // Pops up the menu. | ||
| 228 | func (x *SplitButton) Popup() { | 246 | func (x *SplitButton) Popup() { | ||
| 247 | + | core.LazyRegister(&xSplitButtonPopup, "ADW", "adw_split_button_popup", false) | |||
| 248 | + | ||||
| 229 | xSplitButtonPopup(x.GoPointer()) | 249 | xSplitButtonPopup(x.GoPointer()) | ||
| 230 | } | 250 | } | ||
| 231 | 251 | ||||
| @@ -238,6 +258,8 @@ var xSplitButtonSetCanShrink func(uintptr, bool) | |||||
| 238 | // See [method@Gtk.Button.set_can_shrink] and | 258 | // See [method@Gtk.Button.set_can_shrink] and | ||
| 239 | // [method@Gtk.MenuButton.set_can_shrink]. | 259 | // [method@Gtk.MenuButton.set_can_shrink]. | ||
| 240 | func (x *SplitButton) SetCanShrink(CanShrinkVar bool) { | 260 | func (x *SplitButton) SetCanShrink(CanShrinkVar bool) { | ||
| 261 | + | core.LazyRegister(&xSplitButtonSetCanShrink, "ADW", "adw_split_button_set_can_shrink", false) | |||
| 262 | + | ||||
| 241 | xSplitButtonSetCanShrink(x.GoPointer(), CanShrinkVar) | 263 | xSplitButtonSetCanShrink(x.GoPointer(), CanShrinkVar) | ||
| 242 | } | 264 | } | ||
| 243 | 265 | ||||
| @@ -248,6 +270,8 @@ var xSplitButtonSetChild func(uintptr, uintptr) | |||||
| 248 | // Setting the child widget will set [property@SplitButton:label] and | 270 | // Setting the child widget will set [property@SplitButton:label] and | ||
| 249 | // [property@SplitButton:icon-name] to `NULL`. | 271 | // [property@SplitButton:icon-name] to `NULL`. | ||
| 250 | func (x *SplitButton) SetChild(ChildVar *gtk.Widget) { | 272 | func (x *SplitButton) SetChild(ChildVar *gtk.Widget) { | ||
| 273 | + | core.LazyRegister(&xSplitButtonSetChild, "ADW", "adw_split_button_set_child", false) | |||
| 274 | + | ||||
| 251 | xSplitButtonSetChild(x.GoPointer(), ChildVar.GoPointer()) | 275 | xSplitButtonSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 252 | } | 276 | } | ||
| 253 | 277 | ||||
| @@ -262,6 +286,8 @@ var xSplitButtonSetDirection func(uintptr, gtk.ArrowType) | |||||
| 262 | // | 286 | // | ||
| 263 | // [enum@Gtk.ArrowType.none] behaves same as [enum@Gtk.ArrowType.down]. | 287 | // [enum@Gtk.ArrowType.none] behaves same as [enum@Gtk.ArrowType.down]. | ||
| 264 | func (x *SplitButton) SetDirection(DirectionVar gtk.ArrowType) { | 288 | func (x *SplitButton) SetDirection(DirectionVar gtk.ArrowType) { | ||
| 289 | + | core.LazyRegister(&xSplitButtonSetDirection, "ADW", "adw_split_button_set_direction", false) | |||
| 290 | + | ||||
| 265 | xSplitButtonSetDirection(x.GoPointer(), DirectionVar) | 291 | xSplitButtonSetDirection(x.GoPointer(), DirectionVar) | ||
| 266 | } | 292 | } | ||
| 267 | 293 | ||||
| @@ -271,6 +297,8 @@ var xSplitButtonSetDropdownTooltip func(uintptr, string) | |||||
| 271 | // | 297 | // | ||
| 272 | // The tooltip can be marked up with the Pango text markup language. | 298 | // The tooltip can be marked up with the Pango text markup language. | ||
| 273 | func (x *SplitButton) SetDropdownTooltip(TooltipVar string) { | 299 | func (x *SplitButton) SetDropdownTooltip(TooltipVar string) { | ||
| 300 | + | core.LazyRegister(&xSplitButtonSetDropdownTooltip, "ADW", "adw_split_button_set_dropdown_tooltip", false) | |||
| 301 | + | ||||
| 274 | xSplitButtonSetDropdownTooltip(x.GoPointer(), TooltipVar) | 302 | xSplitButtonSetDropdownTooltip(x.GoPointer(), TooltipVar) | ||
| 275 | } | 303 | } | ||
| 276 | 304 | ||||
| @@ -281,6 +309,8 @@ var xSplitButtonSetIconName func(uintptr, string) | |||||
| 281 | // Setting the icon name will set [property@SplitButton:label] and | 309 | // Setting the icon name will set [property@SplitButton:label] and | ||
| 282 | // [property@SplitButton:child] to `NULL`. | 310 | // [property@SplitButton:child] to `NULL`. | ||
| 283 | func (x *SplitButton) SetIconName(IconNameVar string) { | 311 | func (x *SplitButton) SetIconName(IconNameVar string) { | ||
| 312 | + | core.LazyRegister(&xSplitButtonSetIconName, "ADW", "adw_split_button_set_icon_name", false) | |||
| 313 | + | ||||
| 284 | xSplitButtonSetIconName(x.GoPointer(), IconNameVar) | 314 | xSplitButtonSetIconName(x.GoPointer(), IconNameVar) | ||
| 285 | } | 315 | } | ||
| 286 | 316 | ||||
| @@ -291,6 +321,8 @@ var xSplitButtonSetLabel func(uintptr, string) | |||||
| 291 | // Setting the label will set [property@SplitButton:icon-name] and | 321 | // Setting the label will set [property@SplitButton:icon-name] and | ||
| 292 | // [property@SplitButton:child] to `NULL`. | 322 | // [property@SplitButton:child] to `NULL`. | ||
| 293 | func (x *SplitButton) SetLabel(LabelVar string) { | 323 | func (x *SplitButton) SetLabel(LabelVar string) { | ||
| 324 | + | core.LazyRegister(&xSplitButtonSetLabel, "ADW", "adw_split_button_set_label", false) | |||
| 325 | + | ||||
| 294 | xSplitButtonSetLabel(x.GoPointer(), LabelVar) | 326 | xSplitButtonSetLabel(x.GoPointer(), LabelVar) | ||
| 295 | } | 327 | } | ||
| 296 | 328 | ||||
| @@ -307,6 +339,8 @@ var xSplitButtonSetMenuModel func(uintptr, uintptr) | |||||
| 307 | // If [property@SplitButton:popover] is already set, it will be dissociated from | 339 | // If [property@SplitButton:popover] is already set, it will be dissociated from | ||
| 308 | // the button, and the property is set to `NULL`. | 340 | // the button, and the property is set to `NULL`. | ||
| 309 | func (x *SplitButton) SetMenuModel(MenuModelVar *gio.MenuModel) { | 341 | func (x *SplitButton) SetMenuModel(MenuModelVar *gio.MenuModel) { | ||
| 342 | + | core.LazyRegister(&xSplitButtonSetMenuModel, "ADW", "adw_split_button_set_menu_model", false) | |||
| 343 | + | ||||
| 310 | xSplitButtonSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | 344 | xSplitButtonSetMenuModel(x.GoPointer(), MenuModelVar.GoPointer()) | ||
| 311 | } | 345 | } | ||
| 312 | 346 | ||||
| @@ -319,6 +353,8 @@ var xSplitButtonSetPopover func(uintptr, uintptr) | |||||
| 319 | // If [property@SplitButton:menu-model] is set, the menu model is dissociated | 353 | // If [property@SplitButton:menu-model] is set, the menu model is dissociated | ||
| 320 | // from the button, and the property is set to `NULL`. | 354 | // from the button, and the property is set to `NULL`. | ||
| 321 | func (x *SplitButton) SetPopover(PopoverVar *gtk.Popover) { | 355 | func (x *SplitButton) SetPopover(PopoverVar *gtk.Popover) { | ||
| 356 | + | core.LazyRegister(&xSplitButtonSetPopover, "ADW", "adw_split_button_set_popover", false) | |||
| 357 | + | ||||
| 322 | xSplitButtonSetPopover(x.GoPointer(), PopoverVar.GoPointer()) | 358 | xSplitButtonSetPopover(x.GoPointer(), PopoverVar.GoPointer()) | ||
| 323 | } | 359 | } | ||
| 324 | 360 | ||||
| @@ -328,6 +364,8 @@ var xSplitButtonSetUseUnderline func(uintptr, bool) | |||||
| 328 | // | 364 | // | ||
| 329 | // See [property@SplitButton:label]. | 365 | // See [property@SplitButton:label]. | ||
| 330 | func (x *SplitButton) SetUseUnderline(UseUnderlineVar bool) { | 366 | func (x *SplitButton) SetUseUnderline(UseUnderlineVar bool) { | ||
| 367 | + | core.LazyRegister(&xSplitButtonSetUseUnderline, "ADW", "adw_split_button_set_use_underline", false) | |||
| 368 | + | ||||
| 331 | xSplitButtonSetUseUnderline(x.GoPointer(), UseUnderlineVar) | 369 | xSplitButtonSetUseUnderline(x.GoPointer(), UseUnderlineVar) | ||
| 332 | } | 370 | } | ||
| 333 | 371 | ||||
| @@ -848,37 +886,4 @@ func (x *SplitButton) GetBuildableId() string { | |||||
| 848 | func init() { | 886 | func init() { | ||
| 849 | core.SetPackageName("ADW", "libadwaita-1") | 887 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 850 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 888 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 851 | - | var libs []uintptr | |||
| 852 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 853 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 854 | - | if err != nil { | |||
| 855 | - | panic(err) | |||
| 856 | - | } | |||
| 857 | - | libs = append(libs, lib) | |||
| 858 | - | } | |||
| 859 | - | ||||
| 860 | - | core.PuregoSafeRegister(&xSplitButtonGLibType, libs, "adw_split_button_get_type") | |||
| 861 | - | ||||
| 862 | - | core.PuregoSafeRegister(&xNewSplitButton, libs, "adw_split_button_new") | |||
| 863 | - | ||||
| 864 | - | core.PuregoSafeRegister(&xSplitButtonGetCanShrink, libs, "adw_split_button_get_can_shrink") | |||
| 865 | - | core.PuregoSafeRegister(&xSplitButtonGetChild, libs, "adw_split_button_get_child") | |||
| 866 | - | core.PuregoSafeRegister(&xSplitButtonGetDirection, libs, "adw_split_button_get_direction") | |||
| 867 | - | core.PuregoSafeRegister(&xSplitButtonGetDropdownTooltip, libs, "adw_split_button_get_dropdown_tooltip") | |||
| 868 | - | core.PuregoSafeRegister(&xSplitButtonGetIconName, libs, "adw_split_button_get_icon_name") | |||
| 869 | - | core.PuregoSafeRegister(&xSplitButtonGetLabel, libs, "adw_split_button_get_label") | |||
| 870 | - | core.PuregoSafeRegister(&xSplitButtonGetMenuModel, libs, "adw_split_button_get_menu_model") | |||
| 871 | - | core.PuregoSafeRegister(&xSplitButtonGetPopover, libs, "adw_split_button_get_popover") | |||
| 872 | - | core.PuregoSafeRegister(&xSplitButtonGetUseUnderline, libs, "adw_split_button_get_use_underline") | |||
| 873 | - | core.PuregoSafeRegister(&xSplitButtonPopdown, libs, "adw_split_button_popdown") | |||
| 874 | - | core.PuregoSafeRegister(&xSplitButtonPopup, libs, "adw_split_button_popup") | |||
| 875 | - | core.PuregoSafeRegister(&xSplitButtonSetCanShrink, libs, "adw_split_button_set_can_shrink") | |||
| 876 | - | core.PuregoSafeRegister(&xSplitButtonSetChild, libs, "adw_split_button_set_child") | |||
| 877 | - | core.PuregoSafeRegister(&xSplitButtonSetDirection, libs, "adw_split_button_set_direction") | |||
| 878 | - | core.PuregoSafeRegister(&xSplitButtonSetDropdownTooltip, libs, "adw_split_button_set_dropdown_tooltip") | |||
| 879 | - | core.PuregoSafeRegister(&xSplitButtonSetIconName, libs, "adw_split_button_set_icon_name") | |||
| 880 | - | core.PuregoSafeRegister(&xSplitButtonSetLabel, libs, "adw_split_button_set_label") | |||
| 881 | - | core.PuregoSafeRegister(&xSplitButtonSetMenuModel, libs, "adw_split_button_set_menu_model") | |||
| 882 | - | core.PuregoSafeRegister(&xSplitButtonSetPopover, libs, "adw_split_button_set_popover") | |||
| 883 | - | core.PuregoSafeRegister(&xSplitButtonSetUseUnderline, libs, "adw_split_button_set_use_underline") | |||
| 884 | } | 889 | } | ||