Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33
| @@ -119,7 +119,6 @@ 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) | |
| 123 | 122 | return xActionRowGLibType() | |
| 124 | 123 | } | |
| 125 | 124 | ||
| @@ -133,7 +132,6 @@ var xNewActionRow func() uintptr | |||
| 133 | 132 | ||
| 134 | 133 | // Creates a new `AdwActionRow`. | |
| 135 | 134 | func NewActionRow() *ActionRow { | |
| 136 | - | core.LazyRegister(&xNewActionRow, "ADW", "adw_action_row_new", false) | |
| 137 | 135 | var cls *ActionRow | |
| 138 | 136 | ||
| 139 | 137 | cret := xNewActionRow() | |
| @@ -151,8 +149,6 @@ var xActionRowActivate func(uintptr) | |||
| 151 | 149 | ||
| 152 | 150 | // Activates @self. | |
| 153 | 151 | func (x *ActionRow) Activate() { | |
| 154 | - | core.LazyRegister(&xActionRowActivate, "ADW", "adw_action_row_activate", false) | |
| 155 | - | ||
| 156 | 152 | xActionRowActivate(x.GoPointer()) | |
| 157 | 153 | } | |
| 158 | 154 | ||
| @@ -160,8 +156,6 @@ var xActionRowAddPrefix func(uintptr, uintptr) | |||
| 160 | 156 | ||
| 161 | 157 | // Adds a prefix widget to @self. | |
| 162 | 158 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | |
| 163 | - | core.LazyRegister(&xActionRowAddPrefix, "ADW", "adw_action_row_add_prefix", false) | |
| 164 | - | ||
| 165 | 159 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | |
| 166 | 160 | } | |
| 167 | 161 | ||
| @@ -169,8 +163,6 @@ var xActionRowAddSuffix func(uintptr, uintptr) | |||
| 169 | 163 | ||
| 170 | 164 | // Adds a suffix widget to @self. | |
| 171 | 165 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | |
| 172 | - | core.LazyRegister(&xActionRowAddSuffix, "ADW", "adw_action_row_add_suffix", false) | |
| 173 | - | ||
| 174 | 166 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | |
| 175 | 167 | } | |
| 176 | 168 | ||
| @@ -178,7 +170,6 @@ var xActionRowGetActivatableWidget func(uintptr) uintptr | |||
| 178 | 170 | ||
| 179 | 171 | // Gets the widget activated when @self is activated. | |
| 180 | 172 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | |
| 181 | - | core.LazyRegister(&xActionRowGetActivatableWidget, "ADW", "adw_action_row_get_activatable_widget", false) | |
| 182 | 173 | var cls *gtk.Widget | |
| 183 | 174 | ||
| 184 | 175 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | |
| @@ -196,8 +187,6 @@ var xActionRowGetIconName func(uintptr) string | |||
| 196 | 187 | ||
| 197 | 188 | // Gets the icon name for @self. | |
| 198 | 189 | func (x *ActionRow) GetIconName() string { | |
| 199 | - | core.LazyRegister(&xActionRowGetIconName, "ADW", "adw_action_row_get_icon_name", false) | |
| 200 | - | ||
| 201 | 190 | cret := xActionRowGetIconName(x.GoPointer()) | |
| 202 | 191 | return cret | |
| 203 | 192 | } | |
| @@ -206,8 +195,6 @@ var xActionRowGetSubtitle func(uintptr) string | |||
| 206 | 195 | ||
| 207 | 196 | // Gets the subtitle for @self. | |
| 208 | 197 | func (x *ActionRow) GetSubtitle() string { | |
| 209 | - | core.LazyRegister(&xActionRowGetSubtitle, "ADW", "adw_action_row_get_subtitle", false) | |
| 210 | - | ||
| 211 | 198 | cret := xActionRowGetSubtitle(x.GoPointer()) | |
| 212 | 199 | return cret | |
| 213 | 200 | } | |
| @@ -217,8 +204,6 @@ var xActionRowGetSubtitleLines func(uintptr) int | |||
| 217 | 204 | // Gets the number of lines at the end of which the subtitle label will be | |
| 218 | 205 | // ellipsized. | |
| 219 | 206 | func (x *ActionRow) GetSubtitleLines() int { | |
| 220 | - | core.LazyRegister(&xActionRowGetSubtitleLines, "ADW", "adw_action_row_get_subtitle_lines", false) | |
| 221 | - | ||
| 222 | 207 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | |
| 223 | 208 | return cret | |
| 224 | 209 | } | |
| @@ -227,8 +212,6 @@ var xActionRowGetSubtitleSelectable func(uintptr) bool | |||
| 227 | 212 | ||
| 228 | 213 | // Gets whether the user can copy the subtitle from the label | |
| 229 | 214 | func (x *ActionRow) GetSubtitleSelectable() bool { | |
| 230 | - | core.LazyRegister(&xActionRowGetSubtitleSelectable, "ADW", "adw_action_row_get_subtitle_selectable", false) | |
| 231 | - | ||
| 232 | 215 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | |
| 233 | 216 | return cret | |
| 234 | 217 | } | |
| @@ -238,8 +221,6 @@ var xActionRowGetTitleLines func(uintptr) int | |||
| 238 | 221 | // Gets the number of lines at the end of which the title label will be | |
| 239 | 222 | // ellipsized. | |
| 240 | 223 | func (x *ActionRow) GetTitleLines() int { | |
| 241 | - | core.LazyRegister(&xActionRowGetTitleLines, "ADW", "adw_action_row_get_title_lines", false) | |
| 242 | - | ||
| 243 | 224 | cret := xActionRowGetTitleLines(x.GoPointer()) | |
| 244 | 225 | return cret | |
| 245 | 226 | } | |
| @@ -248,8 +229,6 @@ var xActionRowRemove func(uintptr, uintptr) | |||
| 248 | 229 | ||
| 249 | 230 | // Removes a child from @self. | |
| 250 | 231 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | |
| 251 | - | core.LazyRegister(&xActionRowRemove, "ADW", "adw_action_row_remove", false) | |
| 252 | - | ||
| 253 | 232 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | |
| 254 | 233 | } | |
| 255 | 234 | ||
| @@ -264,8 +243,6 @@ var xActionRowSetActivatableWidget func(uintptr, uintptr) | |||
| 264 | 243 | // The target widget will be activated by emitting the | |
| 265 | 244 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | |
| 266 | 245 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | |
| 267 | - | core.LazyRegister(&xActionRowSetActivatableWidget, "ADW", "adw_action_row_set_activatable_widget", false) | |
| 268 | - | ||
| 269 | 246 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | |
| 270 | 247 | } | |
| 271 | 248 | ||
| @@ -273,8 +250,6 @@ var xActionRowSetIconName func(uintptr, uintptr) | |||
| 273 | 250 | ||
| 274 | 251 | // Sets the icon name for @self. | |
| 275 | 252 | func (x *ActionRow) SetIconName(IconNameVar *string) { | |
| 276 | - | core.LazyRegister(&xActionRowSetIconName, "ADW", "adw_action_row_set_icon_name", false) | |
| 277 | - | ||
| 278 | 253 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 279 | 254 | defer core.GFreeNullable(IconNameVarPtr) | |
| 280 | 255 | ||
| @@ -288,8 +263,6 @@ var xActionRowSetSubtitle func(uintptr, string) | |||
| 288 | 263 | // The subtitle is interpreted as Pango markup unless | |
| 289 | 264 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | |
| 290 | 265 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | |
| 291 | - | core.LazyRegister(&xActionRowSetSubtitle, "ADW", "adw_action_row_set_subtitle", false) | |
| 292 | - | ||
| 293 | 266 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | |
| 294 | 267 | } | |
| 295 | 268 | ||
| @@ -300,8 +273,6 @@ var xActionRowSetSubtitleLines func(uintptr, int) | |||
| 300 | 273 | // | |
| 301 | 274 | // If the value is 0, the number of lines won't be limited. | |
| 302 | 275 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | |
| 303 | - | core.LazyRegister(&xActionRowSetSubtitleLines, "ADW", "adw_action_row_set_subtitle_lines", false) | |
| 304 | - | ||
| 305 | 276 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | |
| 306 | 277 | } | |
| 307 | 278 | ||
| @@ -311,8 +282,6 @@ var xActionRowSetSubtitleSelectable func(uintptr, bool) | |||
| 311 | 282 | // | |
| 312 | 283 | // See also [property@Gtk.Label:selectable]. | |
| 313 | 284 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | |
| 314 | - | core.LazyRegister(&xActionRowSetSubtitleSelectable, "ADW", "adw_action_row_set_subtitle_selectable", false) | |
| 315 | - | ||
| 316 | 285 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | |
| 317 | 286 | } | |
| 318 | 287 | ||
| @@ -323,8 +292,6 @@ var xActionRowSetTitleLines func(uintptr, int) | |||
| 323 | 292 | // | |
| 324 | 293 | // If the value is 0, the number of lines won't be limited. | |
| 325 | 294 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | |
| 326 | - | core.LazyRegister(&xActionRowSetTitleLines, "ADW", "adw_action_row_set_title_lines", false) | |
| 327 | - | ||
| 328 | 295 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | |
| 329 | 296 | } | |
| 330 | 297 | ||
| @@ -809,4 +776,33 @@ func (x *ActionRow) GetBuildableId() string { | |||
| 809 | 776 | func init() { | |
| 810 | 777 | core.SetPackageName("ADW", "libadwaita-1") | |
| 811 | 778 | 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") | |
| 812 | 808 | } | |
| @@ -119,7 +119,6 @@ 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) | |||
| 123 | return xActionRowGLibType() | 122 | return xActionRowGLibType() | ||
| 124 | } | 123 | } | ||
| 125 | 124 | ||||
| @@ -133,7 +132,6 @@ var xNewActionRow func() uintptr | |||||
| 133 | 132 | ||||
| 134 | // Creates a new `AdwActionRow`. | 133 | // Creates a new `AdwActionRow`. | ||
| 135 | func NewActionRow() *ActionRow { | 134 | func NewActionRow() *ActionRow { | ||
| 136 | - | core.LazyRegister(&xNewActionRow, "ADW", "adw_action_row_new", false) | |||
| 137 | var cls *ActionRow | 135 | var cls *ActionRow | ||
| 138 | 136 | ||||
| 139 | cret := xNewActionRow() | 137 | cret := xNewActionRow() | ||
| @@ -151,8 +149,6 @@ var xActionRowActivate func(uintptr) | |||||
| 151 | 149 | ||||
| 152 | // Activates @self. | 150 | // Activates @self. | ||
| 153 | func (x *ActionRow) Activate() { | 151 | func (x *ActionRow) Activate() { | ||
| 154 | - | core.LazyRegister(&xActionRowActivate, "ADW", "adw_action_row_activate", false) | |||
| 155 | - | ||||
| 156 | xActionRowActivate(x.GoPointer()) | 152 | xActionRowActivate(x.GoPointer()) | ||
| 157 | } | 153 | } | ||
| 158 | 154 | ||||
| @@ -160,8 +156,6 @@ var xActionRowAddPrefix func(uintptr, uintptr) | |||||
| 160 | 156 | ||||
| 161 | // Adds a prefix widget to @self. | 157 | // Adds a prefix widget to @self. | ||
| 162 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | 158 | func (x *ActionRow) AddPrefix(WidgetVar *gtk.Widget) { | ||
| 163 | - | core.LazyRegister(&xActionRowAddPrefix, "ADW", "adw_action_row_add_prefix", false) | |||
| 164 | - | ||||
| 165 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | 159 | xActionRowAddPrefix(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 166 | } | 160 | } | ||
| 167 | 161 | ||||
| @@ -169,8 +163,6 @@ var xActionRowAddSuffix func(uintptr, uintptr) | |||||
| 169 | 163 | ||||
| 170 | // Adds a suffix widget to @self. | 164 | // Adds a suffix widget to @self. | ||
| 171 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | 165 | func (x *ActionRow) AddSuffix(WidgetVar *gtk.Widget) { | ||
| 172 | - | core.LazyRegister(&xActionRowAddSuffix, "ADW", "adw_action_row_add_suffix", false) | |||
| 173 | - | ||||
| 174 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | 166 | xActionRowAddSuffix(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 175 | } | 167 | } | ||
| 176 | 168 | ||||
| @@ -178,7 +170,6 @@ var xActionRowGetActivatableWidget func(uintptr) uintptr | |||||
| 178 | 170 | ||||
| 179 | // Gets the widget activated when @self is activated. | 171 | // Gets the widget activated when @self is activated. | ||
| 180 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | 172 | func (x *ActionRow) GetActivatableWidget() *gtk.Widget { | ||
| 181 | - | core.LazyRegister(&xActionRowGetActivatableWidget, "ADW", "adw_action_row_get_activatable_widget", false) | |||
| 182 | var cls *gtk.Widget | 173 | var cls *gtk.Widget | ||
| 183 | 174 | ||||
| 184 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | 175 | cret := xActionRowGetActivatableWidget(x.GoPointer()) | ||
| @@ -196,8 +187,6 @@ var xActionRowGetIconName func(uintptr) string | |||||
| 196 | 187 | ||||
| 197 | // Gets the icon name for @self. | 188 | // Gets the icon name for @self. | ||
| 198 | func (x *ActionRow) GetIconName() string { | 189 | func (x *ActionRow) GetIconName() string { | ||
| 199 | - | core.LazyRegister(&xActionRowGetIconName, "ADW", "adw_action_row_get_icon_name", false) | |||
| 200 | - | ||||
| 201 | cret := xActionRowGetIconName(x.GoPointer()) | 190 | cret := xActionRowGetIconName(x.GoPointer()) | ||
| 202 | return cret | 191 | return cret | ||
| 203 | } | 192 | } | ||
| @@ -206,8 +195,6 @@ var xActionRowGetSubtitle func(uintptr) string | |||||
| 206 | 195 | ||||
| 207 | // Gets the subtitle for @self. | 196 | // Gets the subtitle for @self. | ||
| 208 | func (x *ActionRow) GetSubtitle() string { | 197 | func (x *ActionRow) GetSubtitle() string { | ||
| 209 | - | core.LazyRegister(&xActionRowGetSubtitle, "ADW", "adw_action_row_get_subtitle", false) | |||
| 210 | - | ||||
| 211 | cret := xActionRowGetSubtitle(x.GoPointer()) | 198 | cret := xActionRowGetSubtitle(x.GoPointer()) | ||
| 212 | return cret | 199 | return cret | ||
| 213 | } | 200 | } | ||
| @@ -217,8 +204,6 @@ var xActionRowGetSubtitleLines func(uintptr) int | |||||
| 217 | // Gets the number of lines at the end of which the subtitle label will be | 204 | // Gets the number of lines at the end of which the subtitle label will be | ||
| 218 | // ellipsized. | 205 | // ellipsized. | ||
| 219 | func (x *ActionRow) GetSubtitleLines() int { | 206 | func (x *ActionRow) GetSubtitleLines() int { | ||
| 220 | - | core.LazyRegister(&xActionRowGetSubtitleLines, "ADW", "adw_action_row_get_subtitle_lines", false) | |||
| 221 | - | ||||
| 222 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | 207 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | ||
| 223 | return cret | 208 | return cret | ||
| 224 | } | 209 | } | ||
| @@ -227,8 +212,6 @@ var xActionRowGetSubtitleSelectable func(uintptr) bool | |||||
| 227 | 212 | ||||
| 228 | // Gets whether the user can copy the subtitle from the label | 213 | // Gets whether the user can copy the subtitle from the label | ||
| 229 | func (x *ActionRow) GetSubtitleSelectable() bool { | 214 | func (x *ActionRow) GetSubtitleSelectable() bool { | ||
| 230 | - | core.LazyRegister(&xActionRowGetSubtitleSelectable, "ADW", "adw_action_row_get_subtitle_selectable", false) | |||
| 231 | - | ||||
| 232 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | 215 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | ||
| 233 | return cret | 216 | return cret | ||
| 234 | } | 217 | } | ||
| @@ -238,8 +221,6 @@ var xActionRowGetTitleLines func(uintptr) int | |||||
| 238 | // Gets the number of lines at the end of which the title label will be | 221 | // Gets the number of lines at the end of which the title label will be | ||
| 239 | // ellipsized. | 222 | // ellipsized. | ||
| 240 | func (x *ActionRow) GetTitleLines() int { | 223 | func (x *ActionRow) GetTitleLines() int { | ||
| 241 | - | core.LazyRegister(&xActionRowGetTitleLines, "ADW", "adw_action_row_get_title_lines", false) | |||
| 242 | - | ||||
| 243 | cret := xActionRowGetTitleLines(x.GoPointer()) | 224 | cret := xActionRowGetTitleLines(x.GoPointer()) | ||
| 244 | return cret | 225 | return cret | ||
| 245 | } | 226 | } | ||
| @@ -248,8 +229,6 @@ var xActionRowRemove func(uintptr, uintptr) | |||||
| 248 | 229 | ||||
| 249 | // Removes a child from @self. | 230 | // Removes a child from @self. | ||
| 250 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | 231 | func (x *ActionRow) Remove(WidgetVar *gtk.Widget) { | ||
| 251 | - | core.LazyRegister(&xActionRowRemove, "ADW", "adw_action_row_remove", false) | |||
| 252 | - | ||||
| 253 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | 232 | xActionRowRemove(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 254 | } | 233 | } | ||
| 255 | 234 | ||||
| @@ -264,8 +243,6 @@ var xActionRowSetActivatableWidget func(uintptr, uintptr) | |||||
| 264 | // The target widget will be activated by emitting the | 243 | // The target widget will be activated by emitting the | ||
| 265 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | 244 | // [signal@Gtk.Widget::mnemonic-activate] signal on it. | ||
| 266 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | 245 | func (x *ActionRow) SetActivatableWidget(WidgetVar *gtk.Widget) { | ||
| 267 | - | core.LazyRegister(&xActionRowSetActivatableWidget, "ADW", "adw_action_row_set_activatable_widget", false) | |||
| 268 | - | ||||
| 269 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | 246 | xActionRowSetActivatableWidget(x.GoPointer(), WidgetVar.GoPointer()) | ||
| 270 | } | 247 | } | ||
| 271 | 248 | ||||
| @@ -273,8 +250,6 @@ var xActionRowSetIconName func(uintptr, uintptr) | |||||
| 273 | 250 | ||||
| 274 | // Sets the icon name for @self. | 251 | // Sets the icon name for @self. | ||
| 275 | func (x *ActionRow) SetIconName(IconNameVar *string) { | 252 | func (x *ActionRow) SetIconName(IconNameVar *string) { | ||
| 276 | - | core.LazyRegister(&xActionRowSetIconName, "ADW", "adw_action_row_set_icon_name", false) | |||
| 277 | - | ||||
| 278 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | 253 | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | ||
| 279 | defer core.GFreeNullable(IconNameVarPtr) | 254 | defer core.GFreeNullable(IconNameVarPtr) | ||
| 280 | 255 | ||||
| @@ -288,8 +263,6 @@ var xActionRowSetSubtitle func(uintptr, string) | |||||
| 288 | // The subtitle is interpreted as Pango markup unless | 263 | // The subtitle is interpreted as Pango markup unless | ||
| 289 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | 264 | // [property@PreferencesRow:use-markup] is set to `FALSE`. | ||
| 290 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | 265 | func (x *ActionRow) SetSubtitle(SubtitleVar string) { | ||
| 291 | - | core.LazyRegister(&xActionRowSetSubtitle, "ADW", "adw_action_row_set_subtitle", false) | |||
| 292 | - | ||||
| 293 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | 266 | xActionRowSetSubtitle(x.GoPointer(), SubtitleVar) | ||
| 294 | } | 267 | } | ||
| 295 | 268 | ||||
| @@ -300,8 +273,6 @@ var xActionRowSetSubtitleLines func(uintptr, int) | |||||
| 300 | // | 273 | // | ||
| 301 | // If the value is 0, the number of lines won't be limited. | 274 | // If the value is 0, the number of lines won't be limited. | ||
| 302 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | 275 | func (x *ActionRow) SetSubtitleLines(SubtitleLinesVar int) { | ||
| 303 | - | core.LazyRegister(&xActionRowSetSubtitleLines, "ADW", "adw_action_row_set_subtitle_lines", false) | |||
| 304 | - | ||||
| 305 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | 276 | xActionRowSetSubtitleLines(x.GoPointer(), SubtitleLinesVar) | ||
| 306 | } | 277 | } | ||
| 307 | 278 | ||||
| @@ -311,8 +282,6 @@ var xActionRowSetSubtitleSelectable func(uintptr, bool) | |||||
| 311 | // | 282 | // | ||
| 312 | // See also [property@Gtk.Label:selectable]. | 283 | // See also [property@Gtk.Label:selectable]. | ||
| 313 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | 284 | func (x *ActionRow) SetSubtitleSelectable(SubtitleSelectableVar bool) { | ||
| 314 | - | core.LazyRegister(&xActionRowSetSubtitleSelectable, "ADW", "adw_action_row_set_subtitle_selectable", false) | |||
| 315 | - | ||||
| 316 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | 285 | xActionRowSetSubtitleSelectable(x.GoPointer(), SubtitleSelectableVar) | ||
| 317 | } | 286 | } | ||
| 318 | 287 | ||||
| @@ -323,8 +292,6 @@ var xActionRowSetTitleLines func(uintptr, int) | |||||
| 323 | // | 292 | // | ||
| 324 | // If the value is 0, the number of lines won't be limited. | 293 | // If the value is 0, the number of lines won't be limited. | ||
| 325 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | 294 | func (x *ActionRow) SetTitleLines(TitleLinesVar int) { | ||
| 326 | - | core.LazyRegister(&xActionRowSetTitleLines, "ADW", "adw_action_row_set_title_lines", false) | |||
| 327 | - | ||||
| 328 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | 295 | xActionRowSetTitleLines(x.GoPointer(), TitleLinesVar) | ||
| 329 | } | 296 | } | ||
| 330 | 297 | ||||
| @@ -809,4 +776,33 @@ func (x *ActionRow) GetBuildableId() string { | |||||
| 809 | func init() { | 776 | func init() { | ||
| 810 | core.SetPackageName("ADW", "libadwaita-1") | 777 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 811 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 778 | 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") | |||
| 812 | } | 808 | } | ||