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 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24
| @@ -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/gdk" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -71,6 +70,7 @@ type StatusPage struct { | |||
| 71 | 70 | var xStatusPageGLibType func() types.GType | |
| 72 | 71 | ||
| 73 | 72 | func StatusPageGLibType() types.GType { | |
| 73 | + | core.LazyRegister(&xStatusPageGLibType, "ADW", "adw_status_page_get_type", false) | |
| 74 | 74 | return xStatusPageGLibType() | |
| 75 | 75 | } | |
| 76 | 76 | ||
| @@ -84,6 +84,7 @@ var xNewStatusPage func() uintptr | |||
| 84 | 84 | ||
| 85 | 85 | // Creates a new `AdwStatusPage`. | |
| 86 | 86 | func NewStatusPage() *StatusPage { | |
| 87 | + | core.LazyRegister(&xNewStatusPage, "ADW", "adw_status_page_new", false) | |
| 87 | 88 | var cls *StatusPage | |
| 88 | 89 | ||
| 89 | 90 | cret := xNewStatusPage() | |
| @@ -101,6 +102,7 @@ var xStatusPageGetChild func(uintptr) uintptr | |||
| 101 | 102 | ||
| 102 | 103 | // Gets the child widget of @self. | |
| 103 | 104 | func (x *StatusPage) GetChild() *gtk.Widget { | |
| 105 | + | core.LazyRegister(&xStatusPageGetChild, "ADW", "adw_status_page_get_child", false) | |
| 104 | 106 | var cls *gtk.Widget | |
| 105 | 107 | ||
| 106 | 108 | cret := xStatusPageGetChild(x.GoPointer()) | |
| @@ -118,6 +120,8 @@ var xStatusPageGetDescription func(uintptr) string | |||
| 118 | 120 | ||
| 119 | 121 | // Gets the description markup for @self. | |
| 120 | 122 | func (x *StatusPage) GetDescription() string { | |
| 123 | + | core.LazyRegister(&xStatusPageGetDescription, "ADW", "adw_status_page_get_description", false) | |
| 124 | + | ||
| 121 | 125 | cret := xStatusPageGetDescription(x.GoPointer()) | |
| 122 | 126 | return cret | |
| 123 | 127 | } | |
| @@ -126,6 +130,8 @@ var xStatusPageGetIconName func(uintptr) string | |||
| 126 | 130 | ||
| 127 | 131 | // Gets the icon name for @self. | |
| 128 | 132 | func (x *StatusPage) GetIconName() string { | |
| 133 | + | core.LazyRegister(&xStatusPageGetIconName, "ADW", "adw_status_page_get_icon_name", false) | |
| 134 | + | ||
| 129 | 135 | cret := xStatusPageGetIconName(x.GoPointer()) | |
| 130 | 136 | return cret | |
| 131 | 137 | } | |
| @@ -134,6 +140,7 @@ var xStatusPageGetPaintable func(uintptr) uintptr | |||
| 134 | 140 | ||
| 135 | 141 | // Gets the paintable for @self. | |
| 136 | 142 | func (x *StatusPage) GetPaintable() *gdk.PaintableBase { | |
| 143 | + | core.LazyRegister(&xStatusPageGetPaintable, "ADW", "adw_status_page_get_paintable", false) | |
| 137 | 144 | var cls *gdk.PaintableBase | |
| 138 | 145 | ||
| 139 | 146 | cret := xStatusPageGetPaintable(x.GoPointer()) | |
| @@ -151,6 +158,8 @@ var xStatusPageGetTitle func(uintptr) string | |||
| 151 | 158 | ||
| 152 | 159 | // Gets the title for @self. | |
| 153 | 160 | func (x *StatusPage) GetTitle() string { | |
| 161 | + | core.LazyRegister(&xStatusPageGetTitle, "ADW", "adw_status_page_get_title", false) | |
| 162 | + | ||
| 154 | 163 | cret := xStatusPageGetTitle(x.GoPointer()) | |
| 155 | 164 | return cret | |
| 156 | 165 | } | |
| @@ -159,6 +168,8 @@ var xStatusPageSetChild func(uintptr, uintptr) | |||
| 159 | 168 | ||
| 160 | 169 | // Sets the child widget of @self. | |
| 161 | 170 | func (x *StatusPage) SetChild(ChildVar *gtk.Widget) { | |
| 171 | + | core.LazyRegister(&xStatusPageSetChild, "ADW", "adw_status_page_set_child", false) | |
| 172 | + | ||
| 162 | 173 | xStatusPageSetChild(x.GoPointer(), ChildVar.GoPointer()) | |
| 163 | 174 | } | |
| 164 | 175 | ||
| @@ -168,6 +179,8 @@ var xStatusPageSetDescription func(uintptr, uintptr) | |||
| 168 | 179 | // | |
| 169 | 180 | // The description is displayed below the title. It is parsed as Pango markup. | |
| 170 | 181 | func (x *StatusPage) SetDescription(DescriptionVar *string) { | |
| 182 | + | core.LazyRegister(&xStatusPageSetDescription, "ADW", "adw_status_page_set_description", false) | |
| 183 | + | ||
| 171 | 184 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 172 | 185 | defer core.GFreeNullable(DescriptionVarPtr) | |
| 173 | 186 | ||
| @@ -180,6 +193,8 @@ var xStatusPageSetIconName func(uintptr, uintptr) | |||
| 180 | 193 | // | |
| 181 | 194 | // Changing this will set [property@StatusPage:paintable] to `NULL`. | |
| 182 | 195 | func (x *StatusPage) SetIconName(IconNameVar *string) { | |
| 196 | + | core.LazyRegister(&xStatusPageSetIconName, "ADW", "adw_status_page_set_icon_name", false) | |
| 197 | + | ||
| 183 | 198 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 184 | 199 | defer core.GFreeNullable(IconNameVarPtr) | |
| 185 | 200 | ||
| @@ -192,6 +207,8 @@ var xStatusPageSetPaintable func(uintptr, uintptr) | |||
| 192 | 207 | // | |
| 193 | 208 | // Changing this will set [property@StatusPage:icon-name] to `NULL`. | |
| 194 | 209 | func (x *StatusPage) SetPaintable(PaintableVar gdk.Paintable) { | |
| 210 | + | core.LazyRegister(&xStatusPageSetPaintable, "ADW", "adw_status_page_set_paintable", false) | |
| 211 | + | ||
| 195 | 212 | xStatusPageSetPaintable(x.GoPointer(), PaintableVar.GoPointer()) | |
| 196 | 213 | } | |
| 197 | 214 | ||
| @@ -201,6 +218,8 @@ var xStatusPageSetTitle func(uintptr, string) | |||
| 201 | 218 | // | |
| 202 | 219 | // The title is displayed below the icon. It is not parsed as Pango markup. | |
| 203 | 220 | func (x *StatusPage) SetTitle(TitleVar string) { | |
| 221 | + | core.LazyRegister(&xStatusPageSetTitle, "ADW", "adw_status_page_set_title", false) | |
| 222 | + | ||
| 204 | 223 | xStatusPageSetTitle(x.GoPointer(), TitleVar) | |
| 205 | 224 | } | |
| 206 | 225 | ||
| @@ -537,27 +556,4 @@ func (x *StatusPage) GetBuildableId() string { | |||
| 537 | 556 | func init() { | |
| 538 | 557 | core.SetPackageName("ADW", "libadwaita-1") | |
| 539 | 558 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 540 | - | var libs []uintptr | |
| 541 | - | for _, libPath := range core.GetPaths("ADW") { | |
| 542 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 543 | - | if err != nil { | |
| 544 | - | panic(err) | |
| 545 | - | } | |
| 546 | - | libs = append(libs, lib) | |
| 547 | - | } | |
| 548 | - | ||
| 549 | - | core.PuregoSafeRegister(&xStatusPageGLibType, libs, "adw_status_page_get_type") | |
| 550 | - | ||
| 551 | - | core.PuregoSafeRegister(&xNewStatusPage, libs, "adw_status_page_new") | |
| 552 | - | ||
| 553 | - | core.PuregoSafeRegister(&xStatusPageGetChild, libs, "adw_status_page_get_child") | |
| 554 | - | core.PuregoSafeRegister(&xStatusPageGetDescription, libs, "adw_status_page_get_description") | |
| 555 | - | core.PuregoSafeRegister(&xStatusPageGetIconName, libs, "adw_status_page_get_icon_name") | |
| 556 | - | core.PuregoSafeRegister(&xStatusPageGetPaintable, libs, "adw_status_page_get_paintable") | |
| 557 | - | core.PuregoSafeRegister(&xStatusPageGetTitle, libs, "adw_status_page_get_title") | |
| 558 | - | core.PuregoSafeRegister(&xStatusPageSetChild, libs, "adw_status_page_set_child") | |
| 559 | - | core.PuregoSafeRegister(&xStatusPageSetDescription, libs, "adw_status_page_set_description") | |
| 560 | - | core.PuregoSafeRegister(&xStatusPageSetIconName, libs, "adw_status_page_set_icon_name") | |
| 561 | - | core.PuregoSafeRegister(&xStatusPageSetPaintable, libs, "adw_status_page_set_paintable") | |
| 562 | - | core.PuregoSafeRegister(&xStatusPageSetTitle, libs, "adw_status_page_set_title") | |
| 563 | 559 | } | |
| @@ -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/gdk" | 9 | "github.com/bnema/puregotk/v4/gdk" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -71,6 +70,7 @@ type StatusPage struct { | |||||
| 71 | var xStatusPageGLibType func() types.GType | 70 | var xStatusPageGLibType func() types.GType | ||
| 72 | 71 | ||||
| 73 | func StatusPageGLibType() types.GType { | 72 | func StatusPageGLibType() types.GType { | ||
| 73 | + | core.LazyRegister(&xStatusPageGLibType, "ADW", "adw_status_page_get_type", false) | |||
| 74 | return xStatusPageGLibType() | 74 | return xStatusPageGLibType() | ||
| 75 | } | 75 | } | ||
| 76 | 76 | ||||
| @@ -84,6 +84,7 @@ var xNewStatusPage func() uintptr | |||||
| 84 | 84 | ||||
| 85 | // Creates a new `AdwStatusPage`. | 85 | // Creates a new `AdwStatusPage`. | ||
| 86 | func NewStatusPage() *StatusPage { | 86 | func NewStatusPage() *StatusPage { | ||
| 87 | + | core.LazyRegister(&xNewStatusPage, "ADW", "adw_status_page_new", false) | |||
| 87 | var cls *StatusPage | 88 | var cls *StatusPage | ||
| 88 | 89 | ||||
| 89 | cret := xNewStatusPage() | 90 | cret := xNewStatusPage() | ||
| @@ -101,6 +102,7 @@ var xStatusPageGetChild func(uintptr) uintptr | |||||
| 101 | 102 | ||||
| 102 | // Gets the child widget of @self. | 103 | // Gets the child widget of @self. | ||
| 103 | func (x *StatusPage) GetChild() *gtk.Widget { | 104 | func (x *StatusPage) GetChild() *gtk.Widget { | ||
| 105 | + | core.LazyRegister(&xStatusPageGetChild, "ADW", "adw_status_page_get_child", false) | |||
| 104 | var cls *gtk.Widget | 106 | var cls *gtk.Widget | ||
| 105 | 107 | ||||
| 106 | cret := xStatusPageGetChild(x.GoPointer()) | 108 | cret := xStatusPageGetChild(x.GoPointer()) | ||
| @@ -118,6 +120,8 @@ var xStatusPageGetDescription func(uintptr) string | |||||
| 118 | 120 | ||||
| 119 | // Gets the description markup for @self. | 121 | // Gets the description markup for @self. | ||
| 120 | func (x *StatusPage) GetDescription() string { | 122 | func (x *StatusPage) GetDescription() string { | ||
| 123 | + | core.LazyRegister(&xStatusPageGetDescription, "ADW", "adw_status_page_get_description", false) | |||
| 124 | + | ||||
| 121 | cret := xStatusPageGetDescription(x.GoPointer()) | 125 | cret := xStatusPageGetDescription(x.GoPointer()) | ||
| 122 | return cret | 126 | return cret | ||
| 123 | } | 127 | } | ||
| @@ -126,6 +130,8 @@ var xStatusPageGetIconName func(uintptr) string | |||||
| 126 | 130 | ||||
| 127 | // Gets the icon name for @self. | 131 | // Gets the icon name for @self. | ||
| 128 | func (x *StatusPage) GetIconName() string { | 132 | func (x *StatusPage) GetIconName() string { | ||
| 133 | + | core.LazyRegister(&xStatusPageGetIconName, "ADW", "adw_status_page_get_icon_name", false) | |||
| 134 | + | ||||
| 129 | cret := xStatusPageGetIconName(x.GoPointer()) | 135 | cret := xStatusPageGetIconName(x.GoPointer()) | ||
| 130 | return cret | 136 | return cret | ||
| 131 | } | 137 | } | ||
| @@ -134,6 +140,7 @@ var xStatusPageGetPaintable func(uintptr) uintptr | |||||
| 134 | 140 | ||||
| 135 | // Gets the paintable for @self. | 141 | // Gets the paintable for @self. | ||
| 136 | func (x *StatusPage) GetPaintable() *gdk.PaintableBase { | 142 | func (x *StatusPage) GetPaintable() *gdk.PaintableBase { | ||
| 143 | + | core.LazyRegister(&xStatusPageGetPaintable, "ADW", "adw_status_page_get_paintable", false) | |||
| 137 | var cls *gdk.PaintableBase | 144 | var cls *gdk.PaintableBase | ||
| 138 | 145 | ||||
| 139 | cret := xStatusPageGetPaintable(x.GoPointer()) | 146 | cret := xStatusPageGetPaintable(x.GoPointer()) | ||
| @@ -151,6 +158,8 @@ var xStatusPageGetTitle func(uintptr) string | |||||
| 151 | 158 | ||||
| 152 | // Gets the title for @self. | 159 | // Gets the title for @self. | ||
| 153 | func (x *StatusPage) GetTitle() string { | 160 | func (x *StatusPage) GetTitle() string { | ||
| 161 | + | core.LazyRegister(&xStatusPageGetTitle, "ADW", "adw_status_page_get_title", false) | |||
| 162 | + | ||||
| 154 | cret := xStatusPageGetTitle(x.GoPointer()) | 163 | cret := xStatusPageGetTitle(x.GoPointer()) | ||
| 155 | return cret | 164 | return cret | ||
| 156 | } | 165 | } | ||
| @@ -159,6 +168,8 @@ var xStatusPageSetChild func(uintptr, uintptr) | |||||
| 159 | 168 | ||||
| 160 | // Sets the child widget of @self. | 169 | // Sets the child widget of @self. | ||
| 161 | func (x *StatusPage) SetChild(ChildVar *gtk.Widget) { | 170 | func (x *StatusPage) SetChild(ChildVar *gtk.Widget) { | ||
| 171 | + | core.LazyRegister(&xStatusPageSetChild, "ADW", "adw_status_page_set_child", false) | |||
| 172 | + | ||||
| 162 | xStatusPageSetChild(x.GoPointer(), ChildVar.GoPointer()) | 173 | xStatusPageSetChild(x.GoPointer(), ChildVar.GoPointer()) | ||
| 163 | } | 174 | } | ||
| 164 | 175 | ||||
| @@ -168,6 +179,8 @@ var xStatusPageSetDescription func(uintptr, uintptr) | |||||
| 168 | // | 179 | // | ||
| 169 | // The description is displayed below the title. It is parsed as Pango markup. | 180 | // The description is displayed below the title. It is parsed as Pango markup. | ||
| 170 | func (x *StatusPage) SetDescription(DescriptionVar *string) { | 181 | func (x *StatusPage) SetDescription(DescriptionVar *string) { | ||
| 182 | + | core.LazyRegister(&xStatusPageSetDescription, "ADW", "adw_status_page_set_description", false) | |||
| 183 | + | ||||
| 171 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | 184 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | ||
| 172 | defer core.GFreeNullable(DescriptionVarPtr) | 185 | defer core.GFreeNullable(DescriptionVarPtr) | ||
| 173 | 186 | ||||
| @@ -180,6 +193,8 @@ var xStatusPageSetIconName func(uintptr, uintptr) | |||||
| 180 | // | 193 | // | ||
| 181 | // Changing this will set [property@StatusPage:paintable] to `NULL`. | 194 | // Changing this will set [property@StatusPage:paintable] to `NULL`. | ||
| 182 | func (x *StatusPage) SetIconName(IconNameVar *string) { | 195 | func (x *StatusPage) SetIconName(IconNameVar *string) { | ||
| 196 | + | core.LazyRegister(&xStatusPageSetIconName, "ADW", "adw_status_page_set_icon_name", false) | |||
| 197 | + | ||||
| 183 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | 198 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | ||
| 184 | defer core.GFreeNullable(IconNameVarPtr) | 199 | defer core.GFreeNullable(IconNameVarPtr) | ||
| 185 | 200 | ||||
| @@ -192,6 +207,8 @@ var xStatusPageSetPaintable func(uintptr, uintptr) | |||||
| 192 | // | 207 | // | ||
| 193 | // Changing this will set [property@StatusPage:icon-name] to `NULL`. | 208 | // Changing this will set [property@StatusPage:icon-name] to `NULL`. | ||
| 194 | func (x *StatusPage) SetPaintable(PaintableVar gdk.Paintable) { | 209 | func (x *StatusPage) SetPaintable(PaintableVar gdk.Paintable) { | ||
| 210 | + | core.LazyRegister(&xStatusPageSetPaintable, "ADW", "adw_status_page_set_paintable", false) | |||
| 211 | + | ||||
| 195 | xStatusPageSetPaintable(x.GoPointer(), PaintableVar.GoPointer()) | 212 | xStatusPageSetPaintable(x.GoPointer(), PaintableVar.GoPointer()) | ||
| 196 | } | 213 | } | ||
| 197 | 214 | ||||
| @@ -201,6 +218,8 @@ var xStatusPageSetTitle func(uintptr, string) | |||||
| 201 | // | 218 | // | ||
| 202 | // The title is displayed below the icon. It is not parsed as Pango markup. | 219 | // The title is displayed below the icon. It is not parsed as Pango markup. | ||
| 203 | func (x *StatusPage) SetTitle(TitleVar string) { | 220 | func (x *StatusPage) SetTitle(TitleVar string) { | ||
| 221 | + | core.LazyRegister(&xStatusPageSetTitle, "ADW", "adw_status_page_set_title", false) | |||
| 222 | + | ||||
| 204 | xStatusPageSetTitle(x.GoPointer(), TitleVar) | 223 | xStatusPageSetTitle(x.GoPointer(), TitleVar) | ||
| 205 | } | 224 | } | ||
| 206 | 225 | ||||
| @@ -537,27 +556,4 @@ func (x *StatusPage) GetBuildableId() string { | |||||
| 537 | func init() { | 556 | func init() { | ||
| 538 | core.SetPackageName("ADW", "libadwaita-1") | 557 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 539 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 558 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 540 | - | var libs []uintptr | |||
| 541 | - | for _, libPath := range core.GetPaths("ADW") { | |||
| 542 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 543 | - | if err != nil { | |||
| 544 | - | panic(err) | |||
| 545 | - | } | |||
| 546 | - | libs = append(libs, lib) | |||
| 547 | - | } | |||
| 548 | - | ||||
| 549 | - | core.PuregoSafeRegister(&xStatusPageGLibType, libs, "adw_status_page_get_type") | |||
| 550 | - | ||||
| 551 | - | core.PuregoSafeRegister(&xNewStatusPage, libs, "adw_status_page_new") | |||
| 552 | - | ||||
| 553 | - | core.PuregoSafeRegister(&xStatusPageGetChild, libs, "adw_status_page_get_child") | |||
| 554 | - | core.PuregoSafeRegister(&xStatusPageGetDescription, libs, "adw_status_page_get_description") | |||
| 555 | - | core.PuregoSafeRegister(&xStatusPageGetIconName, libs, "adw_status_page_get_icon_name") | |||
| 556 | - | core.PuregoSafeRegister(&xStatusPageGetPaintable, libs, "adw_status_page_get_paintable") | |||
| 557 | - | core.PuregoSafeRegister(&xStatusPageGetTitle, libs, "adw_status_page_get_title") | |||
| 558 | - | core.PuregoSafeRegister(&xStatusPageSetChild, libs, "adw_status_page_set_child") | |||
| 559 | - | core.PuregoSafeRegister(&xStatusPageSetDescription, libs, "adw_status_page_set_description") | |||
| 560 | - | core.PuregoSafeRegister(&xStatusPageSetIconName, libs, "adw_status_page_set_icon_name") | |||
| 561 | - | core.PuregoSafeRegister(&xStatusPageSetPaintable, libs, "adw_status_page_set_paintable") | |||
| 562 | - | core.PuregoSafeRegister(&xStatusPageSetTitle, libs, "adw_status_page_set_title") | |||
| 563 | } | 559 | } | ||