Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
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.20260714200603-7370c78950ef | |
| 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.20260714200603-7370c78950ef |
| 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 -18 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
| @@ -119,6 +119,7 @@ type ActionRow struct { | |||
| 119 | 119 | var xActionRowGLibType func() types.GType | |
| 120 | 120 | ||
| 121 | 121 | func ActionRowGLibType() types.GType { | |
| 122 | + | core.LazyRegister(&xActionRowGLibType, "ADW", "adw_action_row_get_type", false) | |
| 122 | 123 | return xActionRowGLibType() | |
| 123 | 124 | } | |
| 124 | 125 | ||
| @@ -132,6 +133,7 @@ var xNewActionRow func() uintptr | |||
| 132 | 133 | ||
| 133 | 134 | // Creates a new `AdwActionRow`. | |
| 134 | 135 | func NewActionRow() *ActionRow { | |
| 136 | + | core.LazyRegister(&xNewActionRow, "ADW", "adw_action_row_new", false) | |
| 135 | 137 | var cls *ActionRow | |
| 136 | 138 | ||
| 137 | 139 | cret := xNewActionRow() | |
| @@ -149,6 +151,8 @@ var xActionRowActivate func(uintptr) | |||
| 149 | 151 | ||
| 150 | 152 | // Activates @self. | |
| 151 | 153 | func (x *ActionRow) Activate() { | |
| 154 | + | core.LazyRegister(&xActionRowActivate, "ADW", "adw_action_row_activate", false) | |
| 155 | + | ||
| 152 | 156 | xActionRowActivate(x.GoPointer()) | |
| 153 | 157 | } | |
| 154 | 158 | ||
| @@ -156,6 +160,8 @@ var xActionRowAddPrefix func(uintptr, uintptr) | |||
| 156 | 160 | ||
| 157 | 161 | // Adds a prefix widget to @self. | |
| 158 | 162 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | |
| 163 | + | core.LazyRegister(&xActionRowAddPrefix, "ADW", "adw_action_row_add_prefix", false) | |
| 164 | + | ||
| 159 | 165 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | |
| 160 | 166 | } | |
| 161 | 167 | ||
| @@ -163,6 +169,8 @@ var xActionRowAddSuffix func(uintptr, uintptr) | |||
| 163 | 169 | ||
| 164 | 170 | // Adds a suffix widget to @self. | |
| 165 | 171 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | |
| 172 | + | core.LazyRegister(&xActionRowAddSuffix, "ADW", "adw_action_row_add_suffix", false) | |
| 173 | + | ||
| 166 | 174 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | |
| 167 | 175 | } | |
| 168 | 176 | ||
| @@ -170,6 +178,7 @@ var xActionRowGetActivatableWidget func(uintptr) uintptr | |||
| 170 | 178 | ||
| 171 | 179 | // Gets the widget activated when @self is activated. | |
| 172 | 180 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | |
| 181 | + | core.LazyRegister(&xActionRowGetActivatableWidget, "ADW", "adw_action_row_get_activatable_widget", false) | |
| 173 | 182 | var cls *gtk.Widget | |
| 174 | 183 | ||
| 175 | 184 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | |
| @@ -187,6 +196,8 @@ var xActionRowGetIconName func(uintptr) string | |||
| 187 | 196 | ||
| 188 | 197 | // Gets the icon name for @self. | |
| 189 | 198 | func (x *ActionRow) GetIconName() string { | |
| 199 | + | core.LazyRegister(&xActionRowGetIconName, "ADW", "adw_action_row_get_icon_name", false) | |
| 200 | + | ||
| 190 | 201 | cret := xActionRowGetIconName(x.GoPointer()) | |
| 191 | 202 | return cret | |
| 192 | 203 | } | |
| @@ -195,6 +206,8 @@ var xActionRowGetSubtitle func(uintptr) string | |||
| 195 | 206 | ||
| 196 | 207 | // Gets the subtitle for @self. | |
| 197 | 208 | func (x *ActionRow) GetSubtitle() string { | |
| 209 | + | core.LazyRegister(&xActionRowGetSubtitle, "ADW", "adw_action_row_get_subtitle", false) | |
| 210 | + | ||
| 198 | 211 | cret := xActionRowGetSubtitle(x.GoPointer()) | |
| 199 | 212 | return cret | |
| 200 | 213 | } | |
| @@ -204,6 +217,8 @@ var xActionRowGetSubtitleLines func(uintptr) int | |||
| 204 | 217 | // Gets the number of lines at the end of which the subtitle label will be | |
| 205 | 218 | // ellipsized. | |
| 206 | 219 | func (x *ActionRow) GetSubtitleLines() int { | |
| 220 | + | core.LazyRegister(&xActionRowGetSubtitleLines, "ADW", "adw_action_row_get_subtitle_lines", false) | |
| 221 | + | ||
| 207 | 222 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | |
| 208 | 223 | return cret | |
| 209 | 224 | } | |
| @@ -212,6 +227,8 @@ var xActionRowGetSubtitleSelectable func(uintptr) bool | |||
| 212 | 227 | ||
| 213 | 228 | // Gets whether the user can copy the subtitle from the label | |
| 214 | 229 | func (x *ActionRow) GetSubtitleSelectable() bool { | |
| 230 | + | core.LazyRegister(&xActionRowGetSubtitleSelectable, "ADW", "adw_action_row_get_subtitle_selectable", false) | |
| 231 | + | ||
| 215 | 232 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | |
| 216 | 233 | return cret | |
| 217 | 234 | } | |
| @@ -221,6 +238,8 @@ var xActionRowGetTitleLines func(uintptr) int | |||
| 221 | 238 | // Gets the number of lines at the end of which the title label will be | |
| 222 | 239 | // ellipsized. | |
| 223 | 240 | func (x *ActionRow) GetTitleLines() int { | |
| 241 | + | core.LazyRegister(&xActionRowGetTitleLines, "ADW", "adw_action_row_get_title_lines", false) | |
| 242 | + | ||
| 224 | 243 | cret := xActionRowGetTitleLines(x.GoPointer()) | |
| 225 | 244 | return cret | |
| 226 | 245 | } | |
| @@ -229,6 +248,8 @@ var xActionRowRemove func(uintptr, uintptr) | |||
| 229 | 248 | ||
| 230 | 249 | // Removes a child from @self. | |
| 231 | 250 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | |
| 251 | + | core.LazyRegister(&xActionRowRemove, "ADW", "adw_action_row_remove", false) | |
| 252 | + | ||
| 232 | 253 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | |
| 233 | 254 | } | |
| 234 | 255 | ||
| @@ -243,6 +264,8 @@ var xActionRowSetActivatableWidget func(uintptr, uintptr) | |||
| 243 | 264 | // The target widget will be activated by emitting the | |
| 244 | 265 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | |
| 245 | 266 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | |
| 267 | + | core.LazyRegister(&xActionRowSetActivatableWidget, "ADW", "adw_action_row_set_activatable_widget", false) | |
| 268 | + | ||
| 246 | 269 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | |
| 247 | 270 | } | |
| 248 | 271 | ||
| @@ -250,6 +273,8 @@ var xActionRowSetIconName func(uintptr, uintptr) | |||
| 250 | 273 | ||
| 251 | 274 | // Sets the icon name for @self. | |
| 252 | 275 | func (x *ActionRow) SetIconName(IconNameVar *string) { | |
| 276 | + | core.LazyRegister(&xActionRowSetIconName, "ADW", "adw_action_row_set_icon_name", false) | |
| 277 | + | ||
| 253 | 278 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 254 | 279 | defer core.GFreeNullable(IconNameVarPtr) | |
| 255 | 280 | ||
| @@ -263,6 +288,8 @@ var xActionRowSetSubtitle func(uintptr, string) | |||
| 263 | 288 | // The subtitle is interpreted as Pango markup unless | |
| 264 | 289 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | |
| 265 | 290 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | |
| 291 | + | core.LazyRegister(&xActionRowSetSubtitle, "ADW", "adw_action_row_set_subtitle", false) | |
| 292 | + | ||
| 266 | 293 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | |
| 267 | 294 | } | |
| 268 | 295 | ||
| @@ -273,6 +300,8 @@ var xActionRowSetSubtitleLines func(uintptr, int) | |||
| 273 | 300 | // | |
| 274 | 301 | // If the value is 0, the number of lines won't be limited. | |
| 275 | 302 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | |
| 303 | + | core.LazyRegister(&xActionRowSetSubtitleLines, "ADW", "adw_action_row_set_subtitle_lines", false) | |
| 304 | + | ||
| 276 | 305 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | |
| 277 | 306 | } | |
| 278 | 307 | ||
| @@ -282,6 +311,8 @@ var xActionRowSetSubtitleSelectable func(uintptr, bool) | |||
| 282 | 311 | // | |
| 283 | 312 | // See also [property@Gtk.Label:selectable]. | |
| 284 | 313 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | |
| 314 | + | core.LazyRegister(&xActionRowSetSubtitleSelectable, "ADW", "adw_action_row_set_subtitle_selectable", false) | |
| 315 | + | ||
| 285 | 316 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | |
| 286 | 317 | } | |
| 287 | 318 | ||
| @@ -292,6 +323,8 @@ var xActionRowSetTitleLines func(uintptr, int) | |||
| 292 | 323 | // | |
| 293 | 324 | // If the value is 0, the number of lines won't be limited. | |
| 294 | 325 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | |
| 326 | + | core.LazyRegister(&xActionRowSetTitleLines, "ADW", "adw_action_row_set_title_lines", false) | |
| 327 | + | ||
| 295 | 328 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | |
| 296 | 329 | } | |
| 297 | 330 | ||
| @@ -776,33 +809,4 @@ func (x *ActionRow) GetBuildableId() string { | |||
| 776 | 809 | func init() { | |
| 777 | 810 | core.SetPackageName("ADW", "libadwaita-1") | |
| 778 | 811 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 779 | - | var libs []uintptr | |
| 780 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 781 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 782 | - | if err != nil { | |
| 783 | - | panic(err) | |
| 784 | - | } | |
| 785 | - | libs = append(libs, lib) | |
| 786 | - | } | |
| 787 | - | ||
| 788 | - | core.PuregoSafeRegister(&xActionRowGLibType, libs, "adw_action_row_get_type") | |
| 789 | - | ||
| 790 | - | core.PuregoSafeRegister(&xNewActionRow, libs, "adw_action_row_new") | |
| 791 | - | ||
| 792 | - | core.PuregoSafeRegister(&xActionRowActivate, libs, "adw_action_row_activate") | |
| 793 | - | core.PuregoSafeRegister(&xActionRowAddPrefix, libs, "adw_action_row_add_prefix") | |
| 794 | - | core.PuregoSafeRegister(&xActionRowAddSuffix, libs, "adw_action_row_add_suffix") | |
| 795 | - | core.PuregoSafeRegister(&xActionRowGetActivatableWidget, libs, "adw_action_row_get_activatable_widget") | |
| 796 | - | core.PuregoSafeRegister(&xActionRowGetIconName, libs, "adw_action_row_get_icon_name") | |
| 797 | - | core.PuregoSafeRegister(&xActionRowGetSubtitle, libs, "adw_action_row_get_subtitle") | |
| 798 | - | core.PuregoSafeRegister(&xActionRowGetSubtitleLines, libs, "adw_action_row_get_subtitle_lines") | |
| 799 | - | core.PuregoSafeRegister(&xActionRowGetSubtitleSelectable, libs, "adw_action_row_get_subtitle_selectable") | |
| 800 | - | core.PuregoSafeRegister(&xActionRowGetTitleLines, libs, "adw_action_row_get_title_lines") | |
| 801 | - | core.PuregoSafeRegister(&xActionRowRemove, libs, "adw_action_row_remove") | |
| 802 | - | core.PuregoSafeRegister(&xActionRowSetActivatableWidget, libs, "adw_action_row_set_activatable_widget") | |
| 803 | - | core.PuregoSafeRegister(&xActionRowSetIconName, libs, "adw_action_row_set_icon_name") | |
| 804 | - | core.PuregoSafeRegister(&xActionRowSetSubtitle, libs, "adw_action_row_set_subtitle") | |
| 805 | - | core.PuregoSafeRegister(&xActionRowSetSubtitleLines, libs, "adw_action_row_set_subtitle_lines") | |
| 806 | - | core.PuregoSafeRegister(&xActionRowSetSubtitleSelectable, libs, "adw_action_row_set_subtitle_selectable") | |
| 807 | - | core.PuregoSafeRegister(&xActionRowSetTitleLines, libs, "adw_action_row_set_title_lines") | |
| 808 | 812 | } | |
| @@ -119,6 +119,7 @@ type ActionRow struct { | |||||
| 119 | var xActionRowGLibType func() types.GType | 119 | var xActionRowGLibType func() types.GType | ||
| 120 | 120 | ||||
| 121 | func ActionRowGLibType() types.GType { | 121 | func ActionRowGLibType() types.GType { | ||
| 122 | + | core.LazyRegister(&xActionRowGLibType, "ADW", "adw_action_row_get_type", false) | |||
| 122 | return xActionRowGLibType() | 123 | return xActionRowGLibType() | ||
| 123 | } | 124 | } | ||
| 124 | 125 | ||||
| @@ -132,6 +133,7 @@ var xNewActionRow func() uintptr | |||||
| 132 | 133 | ||||
| 133 | // Creates a new `AdwActionRow`. | 134 | // Creates a new `AdwActionRow`. | ||
| 134 | func NewActionRow() *ActionRow { | 135 | func NewActionRow() *ActionRow { | ||
| 136 | + | core.LazyRegister(&xNewActionRow, "ADW", "adw_action_row_new", false) | |||
| 135 | var cls *ActionRow | 137 | var cls *ActionRow | ||
| 136 | 138 | ||||
| 137 | cret := xNewActionRow() | 139 | cret := xNewActionRow() | ||
| @@ -149,6 +151,8 @@ var xActionRowActivate func(uintptr) | |||||
| 149 | 151 | ||||
| 150 | // Activates @self. | 152 | // Activates @self. | ||
| 151 | func (x *ActionRow) Activate() { | 153 | func (x *ActionRow) Activate() { | ||
| 154 | + | core.LazyRegister(&xActionRowActivate, "ADW", "adw_action_row_activate", false) | |||
| 155 | + | ||||
| 152 | xActionRowActivate(x.GoPointer()) | 156 | xActionRowActivate(x.GoPointer()) | ||
| 153 | } | 157 | } | ||
| 154 | 158 | ||||
| @@ -156,6 +160,8 @@ var xActionRowAddPrefix func(uintptr, uintptr) | |||||
| 156 | 160 | ||||
| 157 | // Adds a prefix widget to @self. | 161 | // Adds a prefix widget to @self. | ||
| 158 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | 162 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | ||
| 163 | + | core.LazyRegister(&xActionRowAddPrefix, "ADW", "adw_action_row_add_prefix", false) | |||
| 164 | + | ||||
| 159 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | 165 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 160 | } | 166 | } | ||
| 161 | 167 | ||||
| @@ -163,6 +169,8 @@ var xActionRowAddSuffix func(uintptr, uintptr) | |||||
| 163 | 169 | ||||
| 164 | // Adds a suffix widget to @self. | 170 | // Adds a suffix widget to @self. | ||
| 165 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | 171 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | ||
| 172 | + | core.LazyRegister(&xActionRowAddSuffix, "ADW", "adw_action_row_add_suffix", false) | |||
| 173 | + | ||||
| 166 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | 174 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 167 | } | 175 | } | ||
| 168 | 176 | ||||
| @@ -170,6 +178,7 @@ var xActionRowGetActivatableWidget func(uintptr) uintptr | |||||
| 170 | 178 | ||||
| 171 | // Gets the widget activated when @self is activated. | 179 | // Gets the widget activated when @self is activated. | ||
| 172 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | 180 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | ||
| 181 | + | core.LazyRegister(&xActionRowGetActivatableWidget, "ADW", "adw_action_row_get_activatable_widget", false) | |||
| 173 | var cls *gtk.Widget | 182 | var cls *gtk.Widget | ||
| 174 | 183 | ||||
| 175 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | 184 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | ||
| @@ -187,6 +196,8 @@ var xActionRowGetIconName func(uintptr) string | |||||
| 187 | 196 | ||||
| 188 | // Gets the icon name for @self. | 197 | // Gets the icon name for @self. | ||
| 189 | func (x *ActionRow) GetIconName() string { | 198 | func (x *ActionRow) GetIconName() string { | ||
| 199 | + | core.LazyRegister(&xActionRowGetIconName, "ADW", "adw_action_row_get_icon_name", false) | |||
| 200 | + | ||||
| 190 | cret := xActionRowGetIconName(x.GoPointer()) | 201 | cret := xActionRowGetIconName(x.GoPointer()) | ||
| 191 | return cret | 202 | return cret | ||
| 192 | } | 203 | } | ||
| @@ -195,6 +206,8 @@ var xActionRowGetSubtitle func(uintptr) string | |||||
| 195 | 206 | ||||
| 196 | // Gets the subtitle for @self. | 207 | // Gets the subtitle for @self. | ||
| 197 | func (x *ActionRow) GetSubtitle() string { | 208 | func (x *ActionRow) GetSubtitle() string { | ||
| 209 | + | core.LazyRegister(&xActionRowGetSubtitle, "ADW", "adw_action_row_get_subtitle", false) | |||
| 210 | + | ||||
| 198 | cret := xActionRowGetSubtitle(x.GoPointer()) | 211 | cret := xActionRowGetSubtitle(x.GoPointer()) | ||
| 199 | return cret | 212 | return cret | ||
| 200 | } | 213 | } | ||
| @@ -204,6 +217,8 @@ var xActionRowGetSubtitleLines func(uintptr) int | |||||
| 204 | // Gets the number of lines at the end of which the subtitle label will be | 217 | // Gets the number of lines at the end of which the subtitle label will be | ||
| 205 | // ellipsized. | 218 | // ellipsized. | ||
| 206 | func (x *ActionRow) GetSubtitleLines() int { | 219 | func (x *ActionRow) GetSubtitleLines() int { | ||
| 220 | + | core.LazyRegister(&xActionRowGetSubtitleLines, "ADW", "adw_action_row_get_subtitle_lines", false) | |||
| 221 | + | ||||
| 207 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | 222 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | ||
| 208 | return cret | 223 | return cret | ||
| 209 | } | 224 | } | ||
| @@ -212,6 +227,8 @@ var xActionRowGetSubtitleSelectable func(uintptr) bool | |||||
| 212 | 227 | ||||
| 213 | // Gets whether the user can copy the subtitle from the label | 228 | // Gets whether the user can copy the subtitle from the label | ||
| 214 | func (x *ActionRow) GetSubtitleSelectable() bool { | 229 | func (x *ActionRow) GetSubtitleSelectable() bool { | ||
| 230 | + | core.LazyRegister(&xActionRowGetSubtitleSelectable, "ADW", "adw_action_row_get_subtitle_selectable", false) | |||
| 231 | + | ||||
| 215 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | 232 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | ||
| 216 | return cret | 233 | return cret | ||
| 217 | } | 234 | } | ||
| @@ -221,6 +238,8 @@ var xActionRowGetTitleLines func(uintptr) int | |||||
| 221 | // Gets the number of lines at the end of which the title label will be | 238 | // Gets the number of lines at the end of which the title label will be | ||
| 222 | // ellipsized. | 239 | // ellipsized. | ||
| 223 | func (x *ActionRow) GetTitleLines() int { | 240 | func (x *ActionRow) GetTitleLines() int { | ||
| 241 | + | core.LazyRegister(&xActionRowGetTitleLines, "ADW", "adw_action_row_get_title_lines", false) | |||
| 242 | + | ||||
| 224 | cret := xActionRowGetTitleLines(x.GoPointer()) | 243 | cret := xActionRowGetTitleLines(x.GoPointer()) | ||
| 225 | return cret | 244 | return cret | ||
| 226 | } | 245 | } | ||
| @@ -229,6 +248,8 @@ var xActionRowRemove func(uintptr, uintptr) | |||||
| 229 | 248 | ||||
| 230 | // Removes a child from @self. | 249 | // Removes a child from @self. | ||
| 231 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | 250 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | ||
| 251 | + | core.LazyRegister(&xActionRowRemove, "ADW", "adw_action_row_remove", false) | |||
| 252 | + | ||||
| 232 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | 253 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 233 | } | 254 | } | ||
| 234 | 255 | ||||
| @@ -243,6 +264,8 @@ var xActionRowSetActivatableWidget func(uintptr, uintptr) | |||||
| 243 | // The target widget will be activated by emitting the | 264 | // The target widget will be activated by emitting the | ||
| 244 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | 265 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | ||
| 245 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | 266 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | ||
| 267 | + | core.LazyRegister(&xActionRowSetActivatableWidget, "ADW", "adw_action_row_set_activatable_widget", false) | |||
| 268 | + | ||||
| 246 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | 269 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 247 | } | 270 | } | ||
| 248 | 271 | ||||
| @@ -250,6 +273,8 @@ var xActionRowSetIconName func(uintptr, uintptr) | |||||
| 250 | 273 | ||||
| 251 | // Sets the icon name for @self. | 274 | // Sets the icon name for @self. | ||
| 252 | func (x *ActionRow) SetIconName(IconNameVar *string) { | 275 | func (x *ActionRow) SetIconName(IconNameVar *string) { | ||
| 276 | + | core.LazyRegister(&xActionRowSetIconName, "ADW", "adw_action_row_set_icon_name", false) | |||
| 277 | + | ||||
| 253 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | 278 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | ||
| 254 | defer core.GFreeNullable(IconNameVarPtr) | 279 | defer core.GFreeNullable(IconNameVarPtr) | ||
| 255 | 280 | ||||
| @@ -263,6 +288,8 @@ var xActionRowSetSubtitle func(uintptr, string) | |||||
| 263 | // The subtitle is interpreted as Pango markup unless | 288 | // The subtitle is interpreted as Pango markup unless | ||
| 264 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | 289 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | ||
| 265 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | 290 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | ||
| 291 | + | core.LazyRegister(&xActionRowSetSubtitle, "ADW", "adw_action_row_set_subtitle", false) | |||
| 292 | + | ||||
| 266 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | 293 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | ||
| 267 | } | 294 | } | ||
| 268 | 295 | ||||
| @@ -273,6 +300,8 @@ var xActionRowSetSubtitleLines func(uintptr, int) | |||||
| 273 | // | 300 | // | ||
| 274 | // If the value is 0, the number of lines won't be limited. | 301 | // If the value is 0, the number of lines won't be limited. | ||
| 275 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | 302 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | ||
| 303 | + | core.LazyRegister(&xActionRowSetSubtitleLines, "ADW", "adw_action_row_set_subtitle_lines", false) | |||
| 304 | + | ||||
| 276 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | 305 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | ||
| 277 | } | 306 | } | ||
| 278 | 307 | ||||
| @@ -282,6 +311,8 @@ var xActionRowSetSubtitleSelectable func(uintptr, bool) | |||||
| 282 | // | 311 | // | ||
| 283 | // See also [property@Gtk.Label:selectable]. | 312 | // See also [property@Gtk.Label:selectable]. | ||
| 284 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | 313 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | ||
| 314 | + | core.LazyRegister(&xActionRowSetSubtitleSelectable, "ADW", "adw_action_row_set_subtitle_selectable", false) | |||
| 315 | + | ||||
| 285 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | 316 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | ||
| 286 | } | 317 | } | ||
| 287 | 318 | ||||
| @@ -292,6 +323,8 @@ var xActionRowSetTitleLines func(uintptr, int) | |||||
| 292 | // | 323 | // | ||
| 293 | // If the value is 0, the number of lines won't be limited. | 324 | // If the value is 0, the number of lines won't be limited. | ||
| 294 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | 325 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | ||
| 326 | + | core.LazyRegister(&xActionRowSetTitleLines, "ADW", "adw_action_row_set_title_lines", false) | |||
| 327 | + | ||||
| 295 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | 328 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | ||
| 296 | } | 329 | } | ||
| 297 | 330 | ||||
| @@ -776,33 +809,4 @@ func (x *ActionRow) GetBuildableId() string { | |||||
| 776 | func init() { | 809 | func init() { | ||
| 777 | core.SetPackageName("ADW", "libadwaita-1") | 810 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 778 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 811 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 779 | - | var libs []uintptr | |||
| 780 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 781 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 782 | - | if err != nil { | |||
| 783 | - | panic(err) | |||
| 784 | - | } | |||
| 785 | - | libs = append(libs, lib) | |||
| 786 | - | } | |||
| 787 | - | ||||
| 788 | - | core.PuregoSafeRegister(&xActionRowGLibType, libs, "adw_action_row_get_type") | |||
| 789 | - | ||||
| 790 | - | core.PuregoSafeRegister(&xNewActionRow, libs, "adw_action_row_new") | |||
| 791 | - | ||||
| 792 | - | core.PuregoSafeRegister(&xActionRowActivate, libs, "adw_action_row_activate") | |||
| 793 | - | core.PuregoSafeRegister(&xActionRowAddPrefix, libs, "adw_action_row_add_prefix") | |||
| 794 | - | core.PuregoSafeRegister(&xActionRowAddSuffix, libs, "adw_action_row_add_suffix") | |||
| 795 | - | core.PuregoSafeRegister(&xActionRowGetActivatableWidget, libs, "adw_action_row_get_activatable_widget") | |||
| 796 | - | core.PuregoSafeRegister(&xActionRowGetIconName, libs, "adw_action_row_get_icon_name") | |||
| 797 | - | core.PuregoSafeRegister(&xActionRowGetSubtitle, libs, "adw_action_row_get_subtitle") | |||
| 798 | - | core.PuregoSafeRegister(&xActionRowGetSubtitleLines, libs, "adw_action_row_get_subtitle_lines") | |||
| 799 | - | core.PuregoSafeRegister(&xActionRowGetSubtitleSelectable, libs, "adw_action_row_get_subtitle_selectable") | |||
| 800 | - | core.PuregoSafeRegister(&xActionRowGetTitleLines, libs, "adw_action_row_get_title_lines") | |||
| 801 | - | core.PuregoSafeRegister(&xActionRowRemove, libs, "adw_action_row_remove") | |||
| 802 | - | core.PuregoSafeRegister(&xActionRowSetActivatableWidget, libs, "adw_action_row_set_activatable_widget") | |||
| 803 | - | core.PuregoSafeRegister(&xActionRowSetIconName, libs, "adw_action_row_set_icon_name") | |||
| 804 | - | core.PuregoSafeRegister(&xActionRowSetSubtitle, libs, "adw_action_row_set_subtitle") | |||
| 805 | - | core.PuregoSafeRegister(&xActionRowSetSubtitleLines, libs, "adw_action_row_set_subtitle_lines") | |||
| 806 | - | core.PuregoSafeRegister(&xActionRowSetSubtitleSelectable, libs, "adw_action_row_set_subtitle_selectable") | |||
| 807 | - | core.PuregoSafeRegister(&xActionRowSetTitleLines, libs, "adw_action_row_set_title_lines") | |||
| 808 | } | 812 | } | ||