Gen: re-run gen script
- commit
- b328834424d33c948a4b177650d8c6628a1002e3
- author
- Jeroen Wijenbergh · · 2024-12-10 16:43 UTC
- committer
- Jeroen Wijenbergh · · 2025-04-07 12:23 UTC
- parent
- 15b4fd9
- signature
- unsigned
332 files · +1721 -1649
M v4/adw/adw-about-window.go +11 -11
| @@ -362,10 +362,10 @@ func (x *AboutWindow) GetApplicationName() string { | |||
| 362 | 362 | return cret | |
| 363 | 363 | } | |
| 364 | 364 | ||
| 365 | - | var xAboutWindowGetArtists func(uintptr) uintptr | |
| 365 | + | var xAboutWindowGetArtists func(uintptr) []string | |
| 366 | 366 | ||
| 367 | 367 | // Gets the list of artists of the application. | |
| 368 | - | func (x *AboutWindow) GetArtists() uintptr { | |
| 368 | + | func (x *AboutWindow) GetArtists() []string { | |
| 369 | 369 | ||
| 370 | 370 | cret := xAboutWindowGetArtists(x.GoPointer()) | |
| 371 | 371 | return cret | |
| @@ -407,10 +407,10 @@ func (x *AboutWindow) GetDebugInfoFilename() string { | |||
| 407 | 407 | return cret | |
| 408 | 408 | } | |
| 409 | 409 | ||
| 410 | - | var xAboutWindowGetDesigners func(uintptr) uintptr | |
| 410 | + | var xAboutWindowGetDesigners func(uintptr) []string | |
| 411 | 411 | ||
| 412 | 412 | // Gets the list of designers of the application. | |
| 413 | - | func (x *AboutWindow) GetDesigners() uintptr { | |
| 413 | + | func (x *AboutWindow) GetDesigners() []string { | |
| 414 | 414 | ||
| 415 | 415 | cret := xAboutWindowGetDesigners(x.GoPointer()) | |
| 416 | 416 | return cret | |
| @@ -425,19 +425,19 @@ func (x *AboutWindow) GetDeveloperName() string { | |||
| 425 | 425 | return cret | |
| 426 | 426 | } | |
| 427 | 427 | ||
| 428 | - | var xAboutWindowGetDevelopers func(uintptr) uintptr | |
| 428 | + | var xAboutWindowGetDevelopers func(uintptr) []string | |
| 429 | 429 | ||
| 430 | 430 | // Gets the list of developers of the application. | |
| 431 | - | func (x *AboutWindow) GetDevelopers() uintptr { | |
| 431 | + | func (x *AboutWindow) GetDevelopers() []string { | |
| 432 | 432 | ||
| 433 | 433 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | |
| 434 | 434 | return cret | |
| 435 | 435 | } | |
| 436 | 436 | ||
| 437 | - | var xAboutWindowGetDocumenters func(uintptr) uintptr | |
| 437 | + | var xAboutWindowGetDocumenters func(uintptr) []string | |
| 438 | 438 | ||
| 439 | 439 | // Gets the list of documenters of the application. | |
| 440 | - | func (x *AboutWindow) GetDocumenters() uintptr { | |
| 440 | + | func (x *AboutWindow) GetDocumenters() []string { | |
| 441 | 441 | ||
| 442 | 442 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | |
| 443 | 443 | return cret | |
| @@ -983,7 +983,7 @@ func (x *AboutWindow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, va | |||
| 983 | 983 | // property change must be communicated to assistive technologies. | |
| 984 | 984 | // | |
| 985 | 985 | // This function is meant to be used by language bindings. | |
| 986 | - | func (x *AboutWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 986 | + | func (x *AboutWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 987 | 987 | ||
| 988 | 988 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 989 | 989 | ||
| @@ -1019,7 +1019,7 @@ func (x *AboutWindow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, va | |||
| 1019 | 1019 | // relation change must be communicated to assistive technologies. | |
| 1020 | 1020 | // | |
| 1021 | 1021 | // This function is meant to be used by language bindings. | |
| 1022 | - | func (x *AboutWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1022 | + | func (x *AboutWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1023 | 1023 | ||
| 1024 | 1024 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1025 | 1025 | ||
| @@ -1052,7 +1052,7 @@ func (x *AboutWindow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ... | |||
| 1052 | 1052 | // state change must be communicated to assistive technologies. | |
| 1053 | 1053 | // | |
| 1054 | 1054 | // This function is meant to be used by language bindings. | |
| 1055 | - | func (x *AboutWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1055 | + | func (x *AboutWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 1056 | 1056 | ||
| 1057 | 1057 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1058 | 1058 | ||
M v4/adw/adw-action-row.go +4 -4
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type ActionRowClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [4]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *ActionRowClass) GoPointer() uintptr { | |
| @@ -342,7 +342,7 @@ func (x *ActionRow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varA | |||
| 342 | 342 | // property change must be communicated to assistive technologies. | |
| 343 | 343 | // | |
| 344 | 344 | // This function is meant to be used by language bindings. | |
| 345 | - | func (x *ActionRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 345 | + | func (x *ActionRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 346 | 346 | ||
| 347 | 347 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 348 | 348 | ||
| @@ -378,7 +378,7 @@ func (x *ActionRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varA | |||
| 378 | 378 | // relation change must be communicated to assistive technologies. | |
| 379 | 379 | // | |
| 380 | 380 | // This function is meant to be used by language bindings. | |
| 381 | - | func (x *ActionRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 381 | + | func (x *ActionRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 382 | 382 | ||
| 383 | 383 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 384 | 384 | ||
| @@ -411,7 +411,7 @@ func (x *ActionRow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...in | |||
| 411 | 411 | // state change must be communicated to assistive technologies. | |
| 412 | 412 | // | |
| 413 | 413 | // This function is meant to be used by language bindings. | |
| 414 | - | func (x *ActionRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 414 | + | func (x *ActionRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 415 | 415 | ||
| 416 | 416 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 417 | 417 | ||
M v4/adw/adw-application-window.go +6 -6
| @@ -17,7 +17,7 @@ import ( | |||
| 17 | 17 | type ApplicationWindowClass struct { | |
| 18 | 18 | ParentClass uintptr | |
| 19 | 19 | ||
| 20 | - | Padding uintptr | |
| 20 | + | Padding [4]uintptr | |
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | 23 | func (x *ApplicationWindowClass) GoPointer() uintptr { | |
| @@ -297,7 +297,7 @@ func (x *ApplicationWindow) HasAction(ActionNameVar string) bool { | |||
| 297 | 297 | // | |
| 298 | 298 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 299 | 299 | // it is no longer required. | |
| 300 | - | func (x *ApplicationWindow) ListActions() uintptr { | |
| 300 | + | func (x *ApplicationWindow) ListActions() []string { | |
| 301 | 301 | ||
| 302 | 302 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 303 | 303 | return cret | |
| @@ -391,7 +391,7 @@ func (x *ApplicationWindow) AddAction(ActionVar gio.Action) { | |||
| 391 | 391 | // } | |
| 392 | 392 | // | |
| 393 | 393 | // ]| | |
| 394 | - | func (x *ApplicationWindow) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 394 | + | func (x *ApplicationWindow) AddActionEntries(EntriesVar []gio.ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 395 | 395 | ||
| 396 | 396 | gio.XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 397 | 397 | ||
| @@ -481,7 +481,7 @@ func (x *ApplicationWindow) UpdateProperty(FirstPropertyVar gtk.AccessibleProper | |||
| 481 | 481 | // property change must be communicated to assistive technologies. | |
| 482 | 482 | // | |
| 483 | 483 | // This function is meant to be used by language bindings. | |
| 484 | - | func (x *ApplicationWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 484 | + | func (x *ApplicationWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 485 | 485 | ||
| 486 | 486 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 487 | 487 | ||
| @@ -517,7 +517,7 @@ func (x *ApplicationWindow) UpdateRelation(FirstRelationVar gtk.AccessibleRelati | |||
| 517 | 517 | // relation change must be communicated to assistive technologies. | |
| 518 | 518 | // | |
| 519 | 519 | // This function is meant to be used by language bindings. | |
| 520 | - | func (x *ApplicationWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 520 | + | func (x *ApplicationWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 521 | 521 | ||
| 522 | 522 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 523 | 523 | ||
| @@ -550,7 +550,7 @@ func (x *ApplicationWindow) UpdateState(FirstStateVar gtk.AccessibleState, varAr | |||
| 550 | 550 | // state change must be communicated to assistive technologies. | |
| 551 | 551 | // | |
| 552 | 552 | // This function is meant to be used by language bindings. | |
| 553 | - | func (x *ApplicationWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 553 | + | func (x *ApplicationWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 554 | 554 | ||
| 555 | 555 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 556 | 556 | ||
M v4/adw/adw-application.go +3 -3
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type ApplicationClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [4]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *ApplicationClass) GoPointer() uintptr { | |
| @@ -300,7 +300,7 @@ func (x *Application) HasAction(ActionNameVar string) bool { | |||
| 300 | 300 | // | |
| 301 | 301 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 302 | 302 | // it is no longer required. | |
| 303 | - | func (x *Application) ListActions() uintptr { | |
| 303 | + | func (x *Application) ListActions() []string { | |
| 304 | 304 | ||
| 305 | 305 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 306 | 306 | return cret | |
| @@ -394,7 +394,7 @@ func (x *Application) AddAction(ActionVar gio.Action) { | |||
| 394 | 394 | // } | |
| 395 | 395 | // | |
| 396 | 396 | // ]| | |
| 397 | - | func (x *Application) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 397 | + | func (x *Application) AddActionEntries(EntriesVar []gio.ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 398 | 398 | ||
| 399 | 399 | gio.XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 400 | 400 | ||
M v4/adw/adw-avatar.go +3 -3
| @@ -262,7 +262,7 @@ func (x *Avatar) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs | |||
| 262 | 262 | // property change must be communicated to assistive technologies. | |
| 263 | 263 | // | |
| 264 | 264 | // This function is meant to be used by language bindings. | |
| 265 | - | func (x *Avatar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 265 | + | func (x *Avatar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 266 | 266 | ||
| 267 | 267 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 268 | 268 | ||
| @@ -298,7 +298,7 @@ func (x *Avatar) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs | |||
| 298 | 298 | // relation change must be communicated to assistive technologies. | |
| 299 | 299 | // | |
| 300 | 300 | // This function is meant to be used by language bindings. | |
| 301 | - | func (x *Avatar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 301 | + | func (x *Avatar) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 302 | 302 | ||
| 303 | 303 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 304 | 304 | ||
| @@ -331,7 +331,7 @@ func (x *Avatar) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inter | |||
| 331 | 331 | // state change must be communicated to assistive technologies. | |
| 332 | 332 | // | |
| 333 | 333 | // This function is meant to be used by language bindings. | |
| 334 | - | func (x *Avatar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 334 | + | func (x *Avatar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 335 | 335 | ||
| 336 | 336 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 337 | 337 | ||
M v4/adw/adw-banner.go +3 -3
| @@ -239,7 +239,7 @@ func (x *Banner) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs | |||
| 239 | 239 | // property change must be communicated to assistive technologies. | |
| 240 | 240 | // | |
| 241 | 241 | // This function is meant to be used by language bindings. | |
| 242 | - | func (x *Banner) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 242 | + | func (x *Banner) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 243 | 243 | ||
| 244 | 244 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 245 | 245 | ||
| @@ -275,7 +275,7 @@ func (x *Banner) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs | |||
| 275 | 275 | // relation change must be communicated to assistive technologies. | |
| 276 | 276 | // | |
| 277 | 277 | // This function is meant to be used by language bindings. | |
| 278 | - | func (x *Banner) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 278 | + | func (x *Banner) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 279 | 279 | ||
| 280 | 280 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 281 | 281 | ||
| @@ -308,7 +308,7 @@ func (x *Banner) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inter | |||
| 308 | 308 | // state change must be communicated to assistive technologies. | |
| 309 | 309 | // | |
| 310 | 310 | // This function is meant to be used by language bindings. | |
| 311 | - | func (x *Banner) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 311 | + | func (x *Banner) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 312 | 312 | ||
| 313 | 313 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 314 | 314 | ||
M v4/adw/adw-bin.go +3 -3
| @@ -151,7 +151,7 @@ func (x *Bin) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs .. | |||
| 151 | 151 | // property change must be communicated to assistive technologies. | |
| 152 | 152 | // | |
| 153 | 153 | // This function is meant to be used by language bindings. | |
| 154 | - | func (x *Bin) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 154 | + | func (x *Bin) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 155 | 155 | ||
| 156 | 156 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 157 | 157 | ||
| @@ -187,7 +187,7 @@ func (x *Bin) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs .. | |||
| 187 | 187 | // relation change must be communicated to assistive technologies. | |
| 188 | 188 | // | |
| 189 | 189 | // This function is meant to be used by language bindings. | |
| 190 | - | func (x *Bin) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 190 | + | func (x *Bin) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 191 | 191 | ||
| 192 | 192 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 193 | 193 | ||
| @@ -220,7 +220,7 @@ func (x *Bin) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interfac | |||
| 220 | 220 | // state change must be communicated to assistive technologies. | |
| 221 | 221 | // | |
| 222 | 222 | // This function is meant to be used by language bindings. | |
| 223 | - | func (x *Bin) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 223 | + | func (x *Bin) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 224 | 224 | ||
| 225 | 225 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 226 | 226 | ||
M v4/adw/adw-button-content.go +3 -3
| @@ -221,7 +221,7 @@ func (x *ButtonContent) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, | |||
| 221 | 221 | // property change must be communicated to assistive technologies. | |
| 222 | 222 | // | |
| 223 | 223 | // This function is meant to be used by language bindings. | |
| 224 | - | func (x *ButtonContent) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 224 | + | func (x *ButtonContent) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 225 | 225 | ||
| 226 | 226 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 227 | 227 | ||
| @@ -257,7 +257,7 @@ func (x *ButtonContent) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, | |||
| 257 | 257 | // relation change must be communicated to assistive technologies. | |
| 258 | 258 | // | |
| 259 | 259 | // This function is meant to be used by language bindings. | |
| 260 | - | func (x *ButtonContent) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 260 | + | func (x *ButtonContent) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 261 | 261 | ||
| 262 | 262 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 263 | 263 | ||
| @@ -290,7 +290,7 @@ func (x *ButtonContent) UpdateState(FirstStateVar gtk.AccessibleState, varArgs . | |||
| 290 | 290 | // state change must be communicated to assistive technologies. | |
| 291 | 291 | // | |
| 292 | 292 | // This function is meant to be used by language bindings. | |
| 293 | - | func (x *ButtonContent) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 293 | + | func (x *ButtonContent) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 294 | 294 | ||
| 295 | 295 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 296 | 296 | ||
M v4/adw/adw-carousel-indicator-dots.go +3 -3
| @@ -157,7 +157,7 @@ func (x *CarouselIndicatorDots) UpdateProperty(FirstPropertyVar gtk.AccessiblePr | |||
| 157 | 157 | // property change must be communicated to assistive technologies. | |
| 158 | 158 | // | |
| 159 | 159 | // This function is meant to be used by language bindings. | |
| 160 | - | func (x *CarouselIndicatorDots) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 160 | + | func (x *CarouselIndicatorDots) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 161 | 161 | ||
| 162 | 162 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 163 | 163 | ||
| @@ -193,7 +193,7 @@ func (x *CarouselIndicatorDots) UpdateRelation(FirstRelationVar gtk.AccessibleRe | |||
| 193 | 193 | // relation change must be communicated to assistive technologies. | |
| 194 | 194 | // | |
| 195 | 195 | // This function is meant to be used by language bindings. | |
| 196 | - | func (x *CarouselIndicatorDots) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 196 | + | func (x *CarouselIndicatorDots) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 197 | 197 | ||
| 198 | 198 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 199 | 199 | ||
| @@ -226,7 +226,7 @@ func (x *CarouselIndicatorDots) UpdateState(FirstStateVar gtk.AccessibleState, v | |||
| 226 | 226 | // state change must be communicated to assistive technologies. | |
| 227 | 227 | // | |
| 228 | 228 | // This function is meant to be used by language bindings. | |
| 229 | - | func (x *CarouselIndicatorDots) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 229 | + | func (x *CarouselIndicatorDots) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 230 | 230 | ||
| 231 | 231 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 232 | 232 | ||
M v4/adw/adw-carousel-indicator-lines.go +3 -3
| @@ -156,7 +156,7 @@ func (x *CarouselIndicatorLines) UpdateProperty(FirstPropertyVar gtk.AccessibleP | |||
| 156 | 156 | // property change must be communicated to assistive technologies. | |
| 157 | 157 | // | |
| 158 | 158 | // This function is meant to be used by language bindings. | |
| 159 | - | func (x *CarouselIndicatorLines) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 159 | + | func (x *CarouselIndicatorLines) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 160 | 160 | ||
| 161 | 161 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 162 | 162 | ||
| @@ -192,7 +192,7 @@ func (x *CarouselIndicatorLines) UpdateRelation(FirstRelationVar gtk.AccessibleR | |||
| 192 | 192 | // relation change must be communicated to assistive technologies. | |
| 193 | 193 | // | |
| 194 | 194 | // This function is meant to be used by language bindings. | |
| 195 | - | func (x *CarouselIndicatorLines) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 195 | + | func (x *CarouselIndicatorLines) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 196 | 196 | ||
| 197 | 197 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 198 | 198 | ||
| @@ -225,7 +225,7 @@ func (x *CarouselIndicatorLines) UpdateState(FirstStateVar gtk.AccessibleState, | |||
| 225 | 225 | // state change must be communicated to assistive technologies. | |
| 226 | 226 | // | |
| 227 | 227 | // This function is meant to be used by language bindings. | |
| 228 | - | func (x *CarouselIndicatorLines) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 228 | + | func (x *CarouselIndicatorLines) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 229 | 229 | ||
| 230 | 230 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 231 | 231 | ||
M v4/adw/adw-carousel.go +4 -4
| @@ -367,7 +367,7 @@ func (x *Carousel) GetProgress() float64 { | |||
| 367 | 367 | // | |
| 368 | 368 | // Each snap point represents a progress value that is considered acceptable to | |
| 369 | 369 | // end the swipe on. | |
| 370 | - | func (x *Carousel) GetSnapPoints(NSnapPointsVar int) uintptr { | |
| 370 | + | func (x *Carousel) GetSnapPoints(NSnapPointsVar int) []float64 { | |
| 371 | 371 | ||
| 372 | 372 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 373 | 373 | return cret | |
| @@ -446,7 +446,7 @@ func (x *Carousel) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varAr | |||
| 446 | 446 | // property change must be communicated to assistive technologies. | |
| 447 | 447 | // | |
| 448 | 448 | // This function is meant to be used by language bindings. | |
| 449 | - | func (x *Carousel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 449 | + | func (x *Carousel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 450 | 450 | ||
| 451 | 451 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 452 | 452 | ||
| @@ -482,7 +482,7 @@ func (x *Carousel) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varAr | |||
| 482 | 482 | // relation change must be communicated to assistive technologies. | |
| 483 | 483 | // | |
| 484 | 484 | // This function is meant to be used by language bindings. | |
| 485 | - | func (x *Carousel) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 485 | + | func (x *Carousel) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 486 | 486 | ||
| 487 | 487 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 488 | 488 | ||
| @@ -515,7 +515,7 @@ func (x *Carousel) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...int | |||
| 515 | 515 | // state change must be communicated to assistive technologies. | |
| 516 | 516 | // | |
| 517 | 517 | // This function is meant to be used by language bindings. | |
| 518 | - | func (x *Carousel) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 518 | + | func (x *Carousel) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 519 | 519 | ||
| 520 | 520 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 521 | 521 | ||
M v4/adw/adw-clamp-scrollable.go +3 -3
| @@ -195,7 +195,7 @@ func (x *ClampScrollable) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty | |||
| 195 | 195 | // property change must be communicated to assistive technologies. | |
| 196 | 196 | // | |
| 197 | 197 | // This function is meant to be used by language bindings. | |
| 198 | - | func (x *ClampScrollable) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 198 | + | func (x *ClampScrollable) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 199 | 199 | ||
| 200 | 200 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 201 | 201 | ||
| @@ -231,7 +231,7 @@ func (x *ClampScrollable) UpdateRelation(FirstRelationVar gtk.AccessibleRelation | |||
| 231 | 231 | // relation change must be communicated to assistive technologies. | |
| 232 | 232 | // | |
| 233 | 233 | // This function is meant to be used by language bindings. | |
| 234 | - | func (x *ClampScrollable) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 234 | + | func (x *ClampScrollable) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 235 | 235 | ||
| 236 | 236 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 237 | 237 | ||
| @@ -264,7 +264,7 @@ func (x *ClampScrollable) UpdateState(FirstStateVar gtk.AccessibleState, varArgs | |||
| 264 | 264 | // state change must be communicated to assistive technologies. | |
| 265 | 265 | // | |
| 266 | 266 | // This function is meant to be used by language bindings. | |
| 267 | - | func (x *ClampScrollable) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 267 | + | func (x *ClampScrollable) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 268 | 268 | ||
| 269 | 269 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 270 | 270 | ||
M v4/adw/adw-clamp.go +3 -3
| @@ -218,7 +218,7 @@ func (x *Clamp) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs | |||
| 218 | 218 | // property change must be communicated to assistive technologies. | |
| 219 | 219 | // | |
| 220 | 220 | // This function is meant to be used by language bindings. | |
| 221 | - | func (x *Clamp) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 221 | + | func (x *Clamp) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 222 | 222 | ||
| 223 | 223 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 224 | 224 | ||
| @@ -254,7 +254,7 @@ func (x *Clamp) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs | |||
| 254 | 254 | // relation change must be communicated to assistive technologies. | |
| 255 | 255 | // | |
| 256 | 256 | // This function is meant to be used by language bindings. | |
| 257 | - | func (x *Clamp) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 257 | + | func (x *Clamp) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 258 | 258 | ||
| 259 | 259 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 260 | 260 | ||
| @@ -287,7 +287,7 @@ func (x *Clamp) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interf | |||
| 287 | 287 | // state change must be communicated to assistive technologies. | |
| 288 | 288 | // | |
| 289 | 289 | // This function is meant to be used by language bindings. | |
| 290 | - | func (x *Clamp) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 290 | + | func (x *Clamp) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 291 | 291 | ||
| 292 | 292 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 293 | 293 | ||
M v4/adw/adw-combo-row.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type ComboRowClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [4]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *ComboRowClass) GoPointer() uintptr { | |
| @@ -342,7 +342,7 @@ func (x *ComboRow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varAr | |||
| 342 | 342 | // property change must be communicated to assistive technologies. | |
| 343 | 343 | // | |
| 344 | 344 | // This function is meant to be used by language bindings. | |
| 345 | - | func (x *ComboRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 345 | + | func (x *ComboRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 346 | 346 | ||
| 347 | 347 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 348 | 348 | ||
| @@ -378,7 +378,7 @@ func (x *ComboRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varAr | |||
| 378 | 378 | // relation change must be communicated to assistive technologies. | |
| 379 | 379 | // | |
| 380 | 380 | // This function is meant to be used by language bindings. | |
| 381 | - | func (x *ComboRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 381 | + | func (x *ComboRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 382 | 382 | ||
| 383 | 383 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 384 | 384 | ||
| @@ -411,7 +411,7 @@ func (x *ComboRow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...int | |||
| 411 | 411 | // state change must be communicated to assistive technologies. | |
| 412 | 412 | // | |
| 413 | 413 | // This function is meant to be used by language bindings. | |
| 414 | - | func (x *ComboRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 414 | + | func (x *ComboRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 415 | 415 | ||
| 416 | 416 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 417 | 417 | ||
M v4/adw/adw-entry-row.go +3 -3
| @@ -356,7 +356,7 @@ func (x *EntryRow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varAr | |||
| 356 | 356 | // property change must be communicated to assistive technologies. | |
| 357 | 357 | // | |
| 358 | 358 | // This function is meant to be used by language bindings. | |
| 359 | - | func (x *EntryRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 359 | + | func (x *EntryRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 360 | 360 | ||
| 361 | 361 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 362 | 362 | ||
| @@ -392,7 +392,7 @@ func (x *EntryRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varAr | |||
| 392 | 392 | // relation change must be communicated to assistive technologies. | |
| 393 | 393 | // | |
| 394 | 394 | // This function is meant to be used by language bindings. | |
| 395 | - | func (x *EntryRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 395 | + | func (x *EntryRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 396 | 396 | ||
| 397 | 397 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 398 | 398 | ||
| @@ -425,7 +425,7 @@ func (x *EntryRow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...int | |||
| 425 | 425 | // state change must be communicated to assistive technologies. | |
| 426 | 426 | // | |
| 427 | 427 | // This function is meant to be used by language bindings. | |
| 428 | - | func (x *EntryRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 428 | + | func (x *EntryRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 429 | 429 | ||
| 430 | 430 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 431 | 431 | ||
M v4/adw/adw-enum-list-model.go +6 -5
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type EnumListItemClass struct { | |
| @@ -85,10 +86,10 @@ func EnumListModelNewFromInternalPtr(ptr uintptr) *EnumListModel { | |||
| 85 | 86 | return cls | |
| 86 | 87 | } | |
| 87 | 88 | ||
| 88 | - | var xNewEnumListModel func([]interface{}) uintptr | |
| 89 | + | var xNewEnumListModel func(types.GType) uintptr | |
| 89 | 90 | ||
| 90 | 91 | // Creates a new `AdwEnumListModel` for @enum_type. | |
| 91 | - | func NewEnumListModel(EnumTypeVar []interface{}) *EnumListModel { | |
| 92 | + | func NewEnumListModel(EnumTypeVar types.GType) *EnumListModel { | |
| 92 | 93 | var cls *EnumListModel | |
| 93 | 94 | ||
| 94 | 95 | cret := xNewEnumListModel(EnumTypeVar) | |
| @@ -110,10 +111,10 @@ func (x *EnumListModel) FindPosition(ValueVar int) uint { | |||
| 110 | 111 | return cret | |
| 111 | 112 | } | |
| 112 | 113 | ||
| 113 | - | var xEnumListModelGetEnumType func(uintptr) []interface{} | |
| 114 | + | var xEnumListModelGetEnumType func(uintptr) types.GType | |
| 114 | 115 | ||
| 115 | 116 | // Gets the type of the enum represented by @self. | |
| 116 | - | func (x *EnumListModel) GetEnumType() []interface{} { | |
| 117 | + | func (x *EnumListModel) GetEnumType() types.GType { | |
| 117 | 118 | ||
| 118 | 119 | cret := xEnumListModelGetEnumType(x.GoPointer()) | |
| 119 | 120 | return cret | |
| @@ -150,7 +151,7 @@ func (x *EnumListModel) GetItem(PositionVar uint) uintptr { | |||
| 150 | 151 | // | |
| 151 | 152 | // The item type of a #GListModel can not change during the life of the | |
| 152 | 153 | // model. | |
| 153 | - | func (x *EnumListModel) GetItemType() []interface{} { | |
| 154 | + | func (x *EnumListModel) GetItemType() types.GType { | |
| 154 | 155 | ||
| 155 | 156 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 156 | 157 | return cret | |
M v4/adw/adw-expander-row.go +4 -4
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type ExpanderRowClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [4]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *ExpanderRowClass) GoPointer() uintptr { | |
| @@ -318,7 +318,7 @@ func (x *ExpanderRow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, va | |||
| 318 | 318 | // property change must be communicated to assistive technologies. | |
| 319 | 319 | // | |
| 320 | 320 | // This function is meant to be used by language bindings. | |
| 321 | - | func (x *ExpanderRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 321 | + | func (x *ExpanderRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 322 | 322 | ||
| 323 | 323 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 324 | 324 | ||
| @@ -354,7 +354,7 @@ func (x *ExpanderRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, va | |||
| 354 | 354 | // relation change must be communicated to assistive technologies. | |
| 355 | 355 | // | |
| 356 | 356 | // This function is meant to be used by language bindings. | |
| 357 | - | func (x *ExpanderRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 357 | + | func (x *ExpanderRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 358 | 358 | ||
| 359 | 359 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 360 | 360 | ||
| @@ -387,7 +387,7 @@ func (x *ExpanderRow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ... | |||
| 387 | 387 | // state change must be communicated to assistive technologies. | |
| 388 | 388 | // | |
| 389 | 389 | // This function is meant to be used by language bindings. | |
| 390 | - | func (x *ExpanderRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 390 | + | func (x *ExpanderRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 391 | 391 | ||
| 392 | 392 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 393 | 393 | ||
M v4/adw/adw-flap.go +4 -4
| @@ -523,7 +523,7 @@ func (x *Flap) GetProgress() float64 { | |||
| 523 | 523 | // | |
| 524 | 524 | // Each snap point represents a progress value that is considered acceptable to | |
| 525 | 525 | // end the swipe on. | |
| 526 | - | func (x *Flap) GetSnapPoints(NSnapPointsVar int) uintptr { | |
| 526 | + | func (x *Flap) GetSnapPoints(NSnapPointsVar int) []float64 { | |
| 527 | 527 | ||
| 528 | 528 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 529 | 529 | return cret | |
| @@ -602,7 +602,7 @@ func (x *Flap) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs . | |||
| 602 | 602 | // property change must be communicated to assistive technologies. | |
| 603 | 603 | // | |
| 604 | 604 | // This function is meant to be used by language bindings. | |
| 605 | - | func (x *Flap) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 605 | + | func (x *Flap) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 606 | 606 | ||
| 607 | 607 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 608 | 608 | ||
| @@ -638,7 +638,7 @@ func (x *Flap) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs . | |||
| 638 | 638 | // relation change must be communicated to assistive technologies. | |
| 639 | 639 | // | |
| 640 | 640 | // This function is meant to be used by language bindings. | |
| 641 | - | func (x *Flap) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 641 | + | func (x *Flap) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 642 | 642 | ||
| 643 | 643 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 644 | 644 | ||
| @@ -671,7 +671,7 @@ func (x *Flap) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interfa | |||
| 671 | 671 | // state change must be communicated to assistive technologies. | |
| 672 | 672 | // | |
| 673 | 673 | // This function is meant to be used by language bindings. | |
| 674 | - | func (x *Flap) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 674 | + | func (x *Flap) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 675 | 675 | ||
| 676 | 676 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 677 | 677 | ||
M v4/adw/adw-header-bar.go +3 -3
| @@ -382,7 +382,7 @@ func (x *HeaderBar) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varA | |||
| 382 | 382 | // property change must be communicated to assistive technologies. | |
| 383 | 383 | // | |
| 384 | 384 | // This function is meant to be used by language bindings. | |
| 385 | - | func (x *HeaderBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 385 | + | func (x *HeaderBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 386 | 386 | ||
| 387 | 387 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 388 | 388 | ||
| @@ -418,7 +418,7 @@ func (x *HeaderBar) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varA | |||
| 418 | 418 | // relation change must be communicated to assistive technologies. | |
| 419 | 419 | // | |
| 420 | 420 | // This function is meant to be used by language bindings. | |
| 421 | - | func (x *HeaderBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 421 | + | func (x *HeaderBar) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 422 | 422 | ||
| 423 | 423 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 424 | 424 | ||
| @@ -451,7 +451,7 @@ func (x *HeaderBar) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...in | |||
| 451 | 451 | // state change must be communicated to assistive technologies. | |
| 452 | 452 | // | |
| 453 | 453 | // This function is meant to be used by language bindings. | |
| 454 | - | func (x *HeaderBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 454 | + | func (x *HeaderBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 455 | 455 | ||
| 456 | 456 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 457 | 457 | ||
M v4/adw/adw-leaflet.go +4 -4
| @@ -578,7 +578,7 @@ func (x *Leaflet) GetProgress() float64 { | |||
| 578 | 578 | // | |
| 579 | 579 | // Each snap point represents a progress value that is considered acceptable to | |
| 580 | 580 | // end the swipe on. | |
| 581 | - | func (x *Leaflet) GetSnapPoints(NSnapPointsVar int) uintptr { | |
| 581 | + | func (x *Leaflet) GetSnapPoints(NSnapPointsVar int) []float64 { | |
| 582 | 582 | ||
| 583 | 583 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 584 | 584 | return cret | |
| @@ -657,7 +657,7 @@ func (x *Leaflet) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArg | |||
| 657 | 657 | // property change must be communicated to assistive technologies. | |
| 658 | 658 | // | |
| 659 | 659 | // This function is meant to be used by language bindings. | |
| 660 | - | func (x *Leaflet) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 660 | + | func (x *Leaflet) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 661 | 661 | ||
| 662 | 662 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 663 | 663 | ||
| @@ -693,7 +693,7 @@ func (x *Leaflet) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArg | |||
| 693 | 693 | // relation change must be communicated to assistive technologies. | |
| 694 | 694 | // | |
| 695 | 695 | // This function is meant to be used by language bindings. | |
| 696 | - | func (x *Leaflet) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 696 | + | func (x *Leaflet) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 697 | 697 | ||
| 698 | 698 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 699 | 699 | ||
| @@ -726,7 +726,7 @@ func (x *Leaflet) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inte | |||
| 726 | 726 | // state change must be communicated to assistive technologies. | |
| 727 | 727 | // | |
| 728 | 728 | // This function is meant to be used by language bindings. | |
| 729 | - | func (x *Leaflet) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 729 | + | func (x *Leaflet) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 730 | 730 | ||
| 731 | 731 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 732 | 732 | ||
M v4/adw/adw-message-dialog.go +4 -4
| @@ -17,7 +17,7 @@ import ( | |||
| 17 | 17 | type MessageDialogClass struct { | |
| 18 | 18 | ParentClass uintptr | |
| 19 | 19 | ||
| 20 | - | Padding uintptr | |
| 20 | + | Padding [4]uintptr | |
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | 23 | func (x *MessageDialogClass) GoPointer() uintptr { | |
| @@ -705,7 +705,7 @@ func (x *MessageDialog) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, | |||
| 705 | 705 | // property change must be communicated to assistive technologies. | |
| 706 | 706 | // | |
| 707 | 707 | // This function is meant to be used by language bindings. | |
| 708 | - | func (x *MessageDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 708 | + | func (x *MessageDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 709 | 709 | ||
| 710 | 710 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 711 | 711 | ||
| @@ -741,7 +741,7 @@ func (x *MessageDialog) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, | |||
| 741 | 741 | // relation change must be communicated to assistive technologies. | |
| 742 | 742 | // | |
| 743 | 743 | // This function is meant to be used by language bindings. | |
| 744 | - | func (x *MessageDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 744 | + | func (x *MessageDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 745 | 745 | ||
| 746 | 746 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 747 | 747 | ||
| @@ -774,7 +774,7 @@ func (x *MessageDialog) UpdateState(FirstStateVar gtk.AccessibleState, varArgs . | |||
| 774 | 774 | // state change must be communicated to assistive technologies. | |
| 775 | 775 | // | |
| 776 | 776 | // This function is meant to be used by language bindings. | |
| 777 | - | func (x *MessageDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 777 | + | func (x *MessageDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 778 | 778 | ||
| 779 | 779 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 780 | 780 | ||
M v4/adw/adw-password-entry-row.go +3 -3
| @@ -133,7 +133,7 @@ func (x *PasswordEntryRow) UpdateProperty(FirstPropertyVar gtk.AccessiblePropert | |||
| 133 | 133 | // property change must be communicated to assistive technologies. | |
| 134 | 134 | // | |
| 135 | 135 | // This function is meant to be used by language bindings. | |
| 136 | - | func (x *PasswordEntryRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 136 | + | func (x *PasswordEntryRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 137 | 137 | ||
| 138 | 138 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 139 | 139 | ||
| @@ -169,7 +169,7 @@ func (x *PasswordEntryRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelatio | |||
| 169 | 169 | // relation change must be communicated to assistive technologies. | |
| 170 | 170 | // | |
| 171 | 171 | // This function is meant to be used by language bindings. | |
| 172 | - | func (x *PasswordEntryRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 172 | + | func (x *PasswordEntryRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 173 | 173 | ||
| 174 | 174 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 175 | 175 | ||
| @@ -202,7 +202,7 @@ func (x *PasswordEntryRow) UpdateState(FirstStateVar gtk.AccessibleState, varArg | |||
| 202 | 202 | // state change must be communicated to assistive technologies. | |
| 203 | 203 | // | |
| 204 | 204 | // This function is meant to be used by language bindings. | |
| 205 | - | func (x *PasswordEntryRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 205 | + | func (x *PasswordEntryRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 206 | 206 | ||
| 207 | 207 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 208 | 208 | ||
M v4/adw/adw-preferences-group.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type PreferencesGroupClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [4]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *PreferencesGroupClass) GoPointer() uintptr { | |
| @@ -230,7 +230,7 @@ func (x *PreferencesGroup) UpdateProperty(FirstPropertyVar gtk.AccessiblePropert | |||
| 230 | 230 | // property change must be communicated to assistive technologies. | |
| 231 | 231 | // | |
| 232 | 232 | // This function is meant to be used by language bindings. | |
| 233 | - | func (x *PreferencesGroup) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 233 | + | func (x *PreferencesGroup) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 234 | 234 | ||
| 235 | 235 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 236 | 236 | ||
| @@ -266,7 +266,7 @@ func (x *PreferencesGroup) UpdateRelation(FirstRelationVar gtk.AccessibleRelatio | |||
| 266 | 266 | // relation change must be communicated to assistive technologies. | |
| 267 | 267 | // | |
| 268 | 268 | // This function is meant to be used by language bindings. | |
| 269 | - | func (x *PreferencesGroup) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 269 | + | func (x *PreferencesGroup) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 270 | 270 | ||
| 271 | 271 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 272 | 272 | ||
| @@ -299,7 +299,7 @@ func (x *PreferencesGroup) UpdateState(FirstStateVar gtk.AccessibleState, varArg | |||
| 299 | 299 | // state change must be communicated to assistive technologies. | |
| 300 | 300 | // | |
| 301 | 301 | // This function is meant to be used by language bindings. | |
| 302 | - | func (x *PreferencesGroup) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 302 | + | func (x *PreferencesGroup) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 303 | 303 | ||
| 304 | 304 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 305 | 305 | ||
M v4/adw/adw-preferences-page.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type PreferencesPageClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [4]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *PreferencesPageClass) GoPointer() uintptr { | |
| @@ -231,7 +231,7 @@ func (x *PreferencesPage) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty | |||
| 231 | 231 | // property change must be communicated to assistive technologies. | |
| 232 | 232 | // | |
| 233 | 233 | // This function is meant to be used by language bindings. | |
| 234 | - | func (x *PreferencesPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 234 | + | func (x *PreferencesPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 235 | 235 | ||
| 236 | 236 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 237 | 237 | ||
| @@ -267,7 +267,7 @@ func (x *PreferencesPage) UpdateRelation(FirstRelationVar gtk.AccessibleRelation | |||
| 267 | 267 | // relation change must be communicated to assistive technologies. | |
| 268 | 268 | // | |
| 269 | 269 | // This function is meant to be used by language bindings. | |
| 270 | - | func (x *PreferencesPage) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 270 | + | func (x *PreferencesPage) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 271 | 271 | ||
| 272 | 272 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 273 | 273 | ||
| @@ -300,7 +300,7 @@ func (x *PreferencesPage) UpdateState(FirstStateVar gtk.AccessibleState, varArgs | |||
| 300 | 300 | // state change must be communicated to assistive technologies. | |
| 301 | 301 | // | |
| 302 | 302 | // This function is meant to be used by language bindings. | |
| 303 | - | func (x *PreferencesPage) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 303 | + | func (x *PreferencesPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 304 | 304 | ||
| 305 | 305 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 306 | 306 | ||
M v4/adw/adw-preferences-row.go +4 -4
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type PreferencesRowClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [4]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *PreferencesRowClass) GoPointer() uintptr { | |
| @@ -204,7 +204,7 @@ func (x *PreferencesRow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, | |||
| 204 | 204 | // property change must be communicated to assistive technologies. | |
| 205 | 205 | // | |
| 206 | 206 | // This function is meant to be used by language bindings. | |
| 207 | - | func (x *PreferencesRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 207 | + | func (x *PreferencesRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 208 | 208 | ||
| 209 | 209 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 210 | 210 | ||
| @@ -240,7 +240,7 @@ func (x *PreferencesRow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, | |||
| 240 | 240 | // relation change must be communicated to assistive technologies. | |
| 241 | 241 | // | |
| 242 | 242 | // This function is meant to be used by language bindings. | |
| 243 | - | func (x *PreferencesRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 243 | + | func (x *PreferencesRow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 244 | 244 | ||
| 245 | 245 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 246 | 246 | ||
| @@ -273,7 +273,7 @@ func (x *PreferencesRow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs | |||
| 273 | 273 | // state change must be communicated to assistive technologies. | |
| 274 | 274 | // | |
| 275 | 275 | // This function is meant to be used by language bindings. | |
| 276 | - | func (x *PreferencesRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 276 | + | func (x *PreferencesRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 277 | 277 | ||
| 278 | 278 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 279 | 279 | ||
M v4/adw/adw-preferences-window.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type PreferencesWindowClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [4]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *PreferencesWindowClass) GoPointer() uintptr { | |
| @@ -276,7 +276,7 @@ func (x *PreferencesWindow) UpdateProperty(FirstPropertyVar gtk.AccessibleProper | |||
| 276 | 276 | // property change must be communicated to assistive technologies. | |
| 277 | 277 | // | |
| 278 | 278 | // This function is meant to be used by language bindings. | |
| 279 | - | func (x *PreferencesWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 279 | + | func (x *PreferencesWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 280 | 280 | ||
| 281 | 281 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 282 | 282 | ||
| @@ -312,7 +312,7 @@ func (x *PreferencesWindow) UpdateRelation(FirstRelationVar gtk.AccessibleRelati | |||
| 312 | 312 | // relation change must be communicated to assistive technologies. | |
| 313 | 313 | // | |
| 314 | 314 | // This function is meant to be used by language bindings. | |
| 315 | - | func (x *PreferencesWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 315 | + | func (x *PreferencesWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 316 | 316 | ||
| 317 | 317 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 318 | 318 | ||
| @@ -345,7 +345,7 @@ func (x *PreferencesWindow) UpdateState(FirstStateVar gtk.AccessibleState, varAr | |||
| 345 | 345 | // state change must be communicated to assistive technologies. | |
| 346 | 346 | // | |
| 347 | 347 | // This function is meant to be used by language bindings. | |
| 348 | - | func (x *PreferencesWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 348 | + | func (x *PreferencesWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 349 | 349 | ||
| 350 | 350 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 351 | 351 | ||
M v4/adw/adw-split-button.go +3 -3
| @@ -416,7 +416,7 @@ func (x *SplitButton) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, va | |||
| 416 | 416 | // property change must be communicated to assistive technologies. | |
| 417 | 417 | // | |
| 418 | 418 | // This function is meant to be used by language bindings. | |
| 419 | - | func (x *SplitButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 419 | + | func (x *SplitButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 420 | 420 | ||
| 421 | 421 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 422 | 422 | ||
| @@ -452,7 +452,7 @@ func (x *SplitButton) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, va | |||
| 452 | 452 | // relation change must be communicated to assistive technologies. | |
| 453 | 453 | // | |
| 454 | 454 | // This function is meant to be used by language bindings. | |
| 455 | - | func (x *SplitButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 455 | + | func (x *SplitButton) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 456 | 456 | ||
| 457 | 457 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 458 | 458 | ||
| @@ -485,7 +485,7 @@ func (x *SplitButton) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ... | |||
| 485 | 485 | // state change must be communicated to assistive technologies. | |
| 486 | 486 | // | |
| 487 | 487 | // This function is meant to be used by language bindings. | |
| 488 | - | func (x *SplitButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 488 | + | func (x *SplitButton) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 489 | 489 | ||
| 490 | 490 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 491 | 491 | ||
M v4/adw/adw-squeezer.go +3 -3
| @@ -426,7 +426,7 @@ func (x *Squeezer) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varAr | |||
| 426 | 426 | // property change must be communicated to assistive technologies. | |
| 427 | 427 | // | |
| 428 | 428 | // This function is meant to be used by language bindings. | |
| 429 | - | func (x *Squeezer) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 429 | + | func (x *Squeezer) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 430 | 430 | ||
| 431 | 431 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 432 | 432 | ||
| @@ -462,7 +462,7 @@ func (x *Squeezer) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varAr | |||
| 462 | 462 | // relation change must be communicated to assistive technologies. | |
| 463 | 463 | // | |
| 464 | 464 | // This function is meant to be used by language bindings. | |
| 465 | - | func (x *Squeezer) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 465 | + | func (x *Squeezer) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 466 | 466 | ||
| 467 | 467 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 468 | 468 | ||
| @@ -495,7 +495,7 @@ func (x *Squeezer) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...int | |||
| 495 | 495 | // state change must be communicated to assistive technologies. | |
| 496 | 496 | // | |
| 497 | 497 | // This function is meant to be used by language bindings. | |
| 498 | - | func (x *Squeezer) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 498 | + | func (x *Squeezer) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 499 | 499 | ||
| 500 | 500 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 501 | 501 | ||
M v4/adw/adw-status-page.go +3 -3
| @@ -245,7 +245,7 @@ func (x *StatusPage) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, var | |||
| 245 | 245 | // property change must be communicated to assistive technologies. | |
| 246 | 246 | // | |
| 247 | 247 | // This function is meant to be used by language bindings. | |
| 248 | - | func (x *StatusPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 248 | + | func (x *StatusPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 249 | 249 | ||
| 250 | 250 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 251 | 251 | ||
| @@ -281,7 +281,7 @@ func (x *StatusPage) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, var | |||
| 281 | 281 | // relation change must be communicated to assistive technologies. | |
| 282 | 282 | // | |
| 283 | 283 | // This function is meant to be used by language bindings. | |
| 284 | - | func (x *StatusPage) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 284 | + | func (x *StatusPage) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 285 | 285 | ||
| 286 | 286 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 287 | 287 | ||
| @@ -314,7 +314,7 @@ func (x *StatusPage) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...i | |||
| 314 | 314 | // state change must be communicated to assistive technologies. | |
| 315 | 315 | // | |
| 316 | 316 | // This function is meant to be used by language bindings. | |
| 317 | - | func (x *StatusPage) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 317 | + | func (x *StatusPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 318 | 318 | ||
| 319 | 319 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 320 | 320 | ||
M v4/adw/adw-swipeable.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type SwipeableInterface struct { | |
| 14 | 14 | Parent uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [4]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *SwipeableInterface) GoPointer() uintptr { | |
| @@ -31,7 +31,7 @@ type Swipeable interface { | |||
| 31 | 31 | GetCancelProgress() float64 | |
| 32 | 32 | GetDistance() float64 | |
| 33 | 33 | GetProgress() float64 | |
| 34 | - | GetSnapPoints(NSnapPointsVar int) uintptr | |
| 34 | + | GetSnapPoints(NSnapPointsVar int) []float64 | |
| 35 | 35 | GetSwipeArea(NavigationDirectionVar NavigationDirection, IsDragVar bool, RectVar *gdk.Rectangle) | |
| 36 | 36 | } | |
| 37 | 37 | type SwipeableBase struct { | |
| @@ -73,7 +73,7 @@ func (x *SwipeableBase) GetProgress() float64 { | |||
| 73 | 73 | // | |
| 74 | 74 | // Each snap point represents a progress value that is considered acceptable to | |
| 75 | 75 | // end the swipe on. | |
| 76 | - | func (x *SwipeableBase) GetSnapPoints(NSnapPointsVar int) uintptr { | |
| 76 | + | func (x *SwipeableBase) GetSnapPoints(NSnapPointsVar int) []float64 { | |
| 77 | 77 | ||
| 78 | 78 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 79 | 79 | return cret | |
| @@ -97,7 +97,7 @@ func (x *SwipeableBase) GetSwipeArea(NavigationDirectionVar NavigationDirection, | |||
| 97 | 97 | var XAdwSwipeableGetCancelProgress func(uintptr) float64 | |
| 98 | 98 | var XAdwSwipeableGetDistance func(uintptr) float64 | |
| 99 | 99 | var XAdwSwipeableGetProgress func(uintptr) float64 | |
| 100 | - | var XAdwSwipeableGetSnapPoints func(uintptr, int) uintptr | |
| 100 | + | var XAdwSwipeableGetSnapPoints func(uintptr, int) []float64 | |
| 101 | 101 | var XAdwSwipeableGetSwipeArea func(uintptr, NavigationDirection, bool, *gdk.Rectangle) | |
| 102 | 102 | ||
| 103 | 103 | func init() { | |
M v4/adw/adw-tab-bar.go +6 -5
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -254,7 +255,7 @@ func (x *TabBar) SetView(ViewVar *TabView) { | |||
| 254 | 255 | ||
| 255 | 256 | } | |
| 256 | 257 | ||
| 257 | - | var xTabBarSetupExtraDropTarget func(uintptr, gdk.DragAction, uintptr, uint) | |
| 258 | + | var xTabBarSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType, uint) | |
| 258 | 259 | ||
| 259 | 260 | // Sets the supported types for this drop target. | |
| 260 | 261 | // | |
| @@ -267,7 +268,7 @@ var xTabBarSetupExtraDropTarget func(uintptr, gdk.DragAction, uintptr, uint) | |||
| 267 | 268 | // it will be automatically selected. | |
| 268 | 269 | // | |
| 269 | 270 | // The [signal@TabBar::extra-drag-drop] signal can be used to handle the drop. | |
| 270 | - | func (x *TabBar) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar uintptr, NTypesVar uint) { | |
| 271 | + | func (x *TabBar) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | |
| 271 | 272 | ||
| 272 | 273 | xTabBarSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | |
| 273 | 274 | ||
| @@ -392,7 +393,7 @@ func (x *TabBar) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs | |||
| 392 | 393 | // property change must be communicated to assistive technologies. | |
| 393 | 394 | // | |
| 394 | 395 | // This function is meant to be used by language bindings. | |
| 395 | - | func (x *TabBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 396 | + | func (x *TabBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 396 | 397 | ||
| 397 | 398 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 398 | 399 | ||
| @@ -428,7 +429,7 @@ func (x *TabBar) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs | |||
| 428 | 429 | // relation change must be communicated to assistive technologies. | |
| 429 | 430 | // | |
| 430 | 431 | // This function is meant to be used by language bindings. | |
| 431 | - | func (x *TabBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 432 | + | func (x *TabBar) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 432 | 433 | ||
| 433 | 434 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 434 | 435 | ||
| @@ -461,7 +462,7 @@ func (x *TabBar) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inter | |||
| 461 | 462 | // state change must be communicated to assistive technologies. | |
| 462 | 463 | // | |
| 463 | 464 | // This function is meant to be used by language bindings. | |
| 464 | - | func (x *TabBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 465 | + | func (x *TabBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 465 | 466 | ||
| 466 | 467 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 467 | 468 | ||
M v4/adw/adw-tab-button.go +3 -3
| @@ -213,7 +213,7 @@ func (x *TabButton) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varA | |||
| 213 | 213 | // property change must be communicated to assistive technologies. | |
| 214 | 214 | // | |
| 215 | 215 | // This function is meant to be used by language bindings. | |
| 216 | - | func (x *TabButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 216 | + | func (x *TabButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 217 | 217 | ||
| 218 | 218 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 219 | 219 | ||
| @@ -249,7 +249,7 @@ func (x *TabButton) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varA | |||
| 249 | 249 | // relation change must be communicated to assistive technologies. | |
| 250 | 250 | // | |
| 251 | 251 | // This function is meant to be used by language bindings. | |
| 252 | - | func (x *TabButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 252 | + | func (x *TabButton) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 253 | 253 | ||
| 254 | 254 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 255 | 255 | ||
| @@ -282,7 +282,7 @@ func (x *TabButton) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...in | |||
| 282 | 282 | // state change must be communicated to assistive technologies. | |
| 283 | 283 | // | |
| 284 | 284 | // This function is meant to be used by language bindings. | |
| 285 | - | func (x *TabButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 285 | + | func (x *TabButton) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 286 | 286 | ||
| 287 | 287 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 288 | 288 | ||
M v4/adw/adw-tab-overview.go +6 -5
| @@ -10,6 +10,7 @@ import ( | |||
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 13 | 14 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 14 | 15 | ) | |
| 15 | 16 | ||
| @@ -345,7 +346,7 @@ func (x *TabOverview) SetView(ViewVar *TabView) { | |||
| 345 | 346 | ||
| 346 | 347 | } | |
| 347 | 348 | ||
| 348 | - | var xTabOverviewSetupExtraDropTarget func(uintptr, gdk.DragAction, uintptr, uint) | |
| 349 | + | var xTabOverviewSetupExtraDropTarget func(uintptr, gdk.DragAction, []types.GType, uint) | |
| 349 | 350 | ||
| 350 | 351 | // Sets the supported types for this drop target. | |
| 351 | 352 | // | |
| @@ -359,7 +360,7 @@ var xTabOverviewSetupExtraDropTarget func(uintptr, gdk.DragAction, uintptr, uint | |||
| 359 | 360 | // | |
| 360 | 361 | // The [signal@TabOverview::extra-drag-drop] signal can be used to handle the | |
| 361 | 362 | // drop. | |
| 362 | - | func (x *TabOverview) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar uintptr, NTypesVar uint) { | |
| 363 | + | func (x *TabOverview) SetupExtraDropTarget(ActionsVar gdk.DragAction, TypesVar []types.GType, NTypesVar uint) { | |
| 363 | 364 | ||
| 364 | 365 | xTabOverviewSetupExtraDropTarget(x.GoPointer(), ActionsVar, TypesVar, NTypesVar) | |
| 365 | 366 | ||
| @@ -511,7 +512,7 @@ func (x *TabOverview) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, va | |||
| 511 | 512 | // property change must be communicated to assistive technologies. | |
| 512 | 513 | // | |
| 513 | 514 | // This function is meant to be used by language bindings. | |
| 514 | - | func (x *TabOverview) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 515 | + | func (x *TabOverview) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 515 | 516 | ||
| 516 | 517 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 517 | 518 | ||
| @@ -547,7 +548,7 @@ func (x *TabOverview) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, va | |||
| 547 | 548 | // relation change must be communicated to assistive technologies. | |
| 548 | 549 | // | |
| 549 | 550 | // This function is meant to be used by language bindings. | |
| 550 | - | func (x *TabOverview) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 551 | + | func (x *TabOverview) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 551 | 552 | ||
| 552 | 553 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 553 | 554 | ||
| @@ -580,7 +581,7 @@ func (x *TabOverview) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ... | |||
| 580 | 581 | // state change must be communicated to assistive technologies. | |
| 581 | 582 | // | |
| 582 | 583 | // This function is meant to be used by language bindings. | |
| 583 | - | func (x *TabOverview) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 584 | + | func (x *TabOverview) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 584 | 585 | ||
| 585 | 586 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 586 | 587 | ||
M v4/adw/adw-tab-view.go +6 -6
| @@ -545,7 +545,7 @@ func (x *TabPage) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArg | |||
| 545 | 545 | // property change must be communicated to assistive technologies. | |
| 546 | 546 | // | |
| 547 | 547 | // This function is meant to be used by language bindings. | |
| 548 | - | func (x *TabPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 548 | + | func (x *TabPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 549 | 549 | ||
| 550 | 550 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 551 | 551 | ||
| @@ -581,7 +581,7 @@ func (x *TabPage) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArg | |||
| 581 | 581 | // relation change must be communicated to assistive technologies. | |
| 582 | 582 | // | |
| 583 | 583 | // This function is meant to be used by language bindings. | |
| 584 | - | func (x *TabPage) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 584 | + | func (x *TabPage) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 585 | 585 | ||
| 586 | 586 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 587 | 587 | ||
| @@ -614,7 +614,7 @@ func (x *TabPage) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inte | |||
| 614 | 614 | // state change must be communicated to assistive technologies. | |
| 615 | 615 | // | |
| 616 | 616 | // This function is meant to be used by language bindings. | |
| 617 | - | func (x *TabPage) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 617 | + | func (x *TabPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 618 | 618 | ||
| 619 | 619 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 620 | 620 | ||
| @@ -1523,7 +1523,7 @@ func (x *TabView) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArg | |||
| 1523 | 1523 | // property change must be communicated to assistive technologies. | |
| 1524 | 1524 | // | |
| 1525 | 1525 | // This function is meant to be used by language bindings. | |
| 1526 | - | func (x *TabView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1526 | + | func (x *TabView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1527 | 1527 | ||
| 1528 | 1528 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1529 | 1529 | ||
| @@ -1559,7 +1559,7 @@ func (x *TabView) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArg | |||
| 1559 | 1559 | // relation change must be communicated to assistive technologies. | |
| 1560 | 1560 | // | |
| 1561 | 1561 | // This function is meant to be used by language bindings. | |
| 1562 | - | func (x *TabView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1562 | + | func (x *TabView) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1563 | 1563 | ||
| 1564 | 1564 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1565 | 1565 | ||
| @@ -1592,7 +1592,7 @@ func (x *TabView) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inte | |||
| 1592 | 1592 | // state change must be communicated to assistive technologies. | |
| 1593 | 1593 | // | |
| 1594 | 1594 | // This function is meant to be used by language bindings. | |
| 1595 | - | func (x *TabView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1595 | + | func (x *TabView) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 1596 | 1596 | ||
| 1597 | 1597 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1598 | 1598 | ||
M v4/adw/adw-toast-overlay.go +3 -3
| @@ -198,7 +198,7 @@ func (x *ToastOverlay) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, v | |||
| 198 | 198 | // property change must be communicated to assistive technologies. | |
| 199 | 199 | // | |
| 200 | 200 | // This function is meant to be used by language bindings. | |
| 201 | - | func (x *ToastOverlay) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 201 | + | func (x *ToastOverlay) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 202 | 202 | ||
| 203 | 203 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 204 | 204 | ||
| @@ -234,7 +234,7 @@ func (x *ToastOverlay) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, v | |||
| 234 | 234 | // relation change must be communicated to assistive technologies. | |
| 235 | 235 | // | |
| 236 | 236 | // This function is meant to be used by language bindings. | |
| 237 | - | func (x *ToastOverlay) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 237 | + | func (x *ToastOverlay) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 238 | 238 | ||
| 239 | 239 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 240 | 240 | ||
| @@ -267,7 +267,7 @@ func (x *ToastOverlay) UpdateState(FirstStateVar gtk.AccessibleState, varArgs .. | |||
| 267 | 267 | // state change must be communicated to assistive technologies. | |
| 268 | 268 | // | |
| 269 | 269 | // This function is meant to be used by language bindings. | |
| 270 | - | func (x *ToastOverlay) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 270 | + | func (x *ToastOverlay) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 271 | 271 | ||
| 272 | 272 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 273 | 273 | ||
M v4/adw/adw-view-stack.go +6 -6
| @@ -408,7 +408,7 @@ func (x *ViewStack) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varA | |||
| 408 | 408 | // property change must be communicated to assistive technologies. | |
| 409 | 409 | // | |
| 410 | 410 | // This function is meant to be used by language bindings. | |
| 411 | - | func (x *ViewStack) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 411 | + | func (x *ViewStack) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 412 | 412 | ||
| 413 | 413 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 414 | 414 | ||
| @@ -444,7 +444,7 @@ func (x *ViewStack) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varA | |||
| 444 | 444 | // relation change must be communicated to assistive technologies. | |
| 445 | 445 | // | |
| 446 | 446 | // This function is meant to be used by language bindings. | |
| 447 | - | func (x *ViewStack) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 447 | + | func (x *ViewStack) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 448 | 448 | ||
| 449 | 449 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 450 | 450 | ||
| @@ -477,7 +477,7 @@ func (x *ViewStack) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...in | |||
| 477 | 477 | // state change must be communicated to assistive technologies. | |
| 478 | 478 | // | |
| 479 | 479 | // This function is meant to be used by language bindings. | |
| 480 | - | func (x *ViewStack) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 480 | + | func (x *ViewStack) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 481 | 481 | ||
| 482 | 482 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 483 | 483 | ||
| @@ -726,7 +726,7 @@ func (x *ViewStackPage) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, | |||
| 726 | 726 | // property change must be communicated to assistive technologies. | |
| 727 | 727 | // | |
| 728 | 728 | // This function is meant to be used by language bindings. | |
| 729 | - | func (x *ViewStackPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 729 | + | func (x *ViewStackPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 730 | 730 | ||
| 731 | 731 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 732 | 732 | ||
| @@ -762,7 +762,7 @@ func (x *ViewStackPage) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, | |||
| 762 | 762 | // relation change must be communicated to assistive technologies. | |
| 763 | 763 | // | |
| 764 | 764 | // This function is meant to be used by language bindings. | |
| 765 | - | func (x *ViewStackPage) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 765 | + | func (x *ViewStackPage) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 766 | 766 | ||
| 767 | 767 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 768 | 768 | ||
| @@ -795,7 +795,7 @@ func (x *ViewStackPage) UpdateState(FirstStateVar gtk.AccessibleState, varArgs . | |||
| 795 | 795 | // state change must be communicated to assistive technologies. | |
| 796 | 796 | // | |
| 797 | 797 | // This function is meant to be used by language bindings. | |
| 798 | - | func (x *ViewStackPage) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 798 | + | func (x *ViewStackPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 799 | 799 | ||
| 800 | 800 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 801 | 801 | ||
M v4/adw/adw-view-switcher-bar.go +3 -3
| @@ -213,7 +213,7 @@ func (x *ViewSwitcherBar) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty | |||
| 213 | 213 | // property change must be communicated to assistive technologies. | |
| 214 | 214 | // | |
| 215 | 215 | // This function is meant to be used by language bindings. | |
| 216 | - | func (x *ViewSwitcherBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 216 | + | func (x *ViewSwitcherBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 217 | 217 | ||
| 218 | 218 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 219 | 219 | ||
| @@ -249,7 +249,7 @@ func (x *ViewSwitcherBar) UpdateRelation(FirstRelationVar gtk.AccessibleRelation | |||
| 249 | 249 | // relation change must be communicated to assistive technologies. | |
| 250 | 250 | // | |
| 251 | 251 | // This function is meant to be used by language bindings. | |
| 252 | - | func (x *ViewSwitcherBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 252 | + | func (x *ViewSwitcherBar) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 253 | 253 | ||
| 254 | 254 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 255 | 255 | ||
| @@ -282,7 +282,7 @@ func (x *ViewSwitcherBar) UpdateState(FirstStateVar gtk.AccessibleState, varArgs | |||
| 282 | 282 | // state change must be communicated to assistive technologies. | |
| 283 | 283 | // | |
| 284 | 284 | // This function is meant to be used by language bindings. | |
| 285 | - | func (x *ViewSwitcherBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 285 | + | func (x *ViewSwitcherBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 286 | 286 | ||
| 287 | 287 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 288 | 288 | ||
M v4/adw/adw-view-switcher-title.go +3 -3
| @@ -279,7 +279,7 @@ func (x *ViewSwitcherTitle) UpdateProperty(FirstPropertyVar gtk.AccessibleProper | |||
| 279 | 279 | // property change must be communicated to assistive technologies. | |
| 280 | 280 | // | |
| 281 | 281 | // This function is meant to be used by language bindings. | |
| 282 | - | func (x *ViewSwitcherTitle) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 282 | + | func (x *ViewSwitcherTitle) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 283 | 283 | ||
| 284 | 284 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 285 | 285 | ||
| @@ -315,7 +315,7 @@ func (x *ViewSwitcherTitle) UpdateRelation(FirstRelationVar gtk.AccessibleRelati | |||
| 315 | 315 | // relation change must be communicated to assistive technologies. | |
| 316 | 316 | // | |
| 317 | 317 | // This function is meant to be used by language bindings. | |
| 318 | - | func (x *ViewSwitcherTitle) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 318 | + | func (x *ViewSwitcherTitle) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 319 | 319 | ||
| 320 | 320 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 321 | 321 | ||
| @@ -348,7 +348,7 @@ func (x *ViewSwitcherTitle) UpdateState(FirstStateVar gtk.AccessibleState, varAr | |||
| 348 | 348 | // state change must be communicated to assistive technologies. | |
| 349 | 349 | // | |
| 350 | 350 | // This function is meant to be used by language bindings. | |
| 351 | - | func (x *ViewSwitcherTitle) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 351 | + | func (x *ViewSwitcherTitle) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 352 | 352 | ||
| 353 | 353 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 354 | 354 | ||
M v4/adw/adw-view-switcher.go +3 -3
| @@ -195,7 +195,7 @@ func (x *ViewSwitcher) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, v | |||
| 195 | 195 | // property change must be communicated to assistive technologies. | |
| 196 | 196 | // | |
| 197 | 197 | // This function is meant to be used by language bindings. | |
| 198 | - | func (x *ViewSwitcher) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 198 | + | func (x *ViewSwitcher) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 199 | 199 | ||
| 200 | 200 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 201 | 201 | ||
| @@ -231,7 +231,7 @@ func (x *ViewSwitcher) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, v | |||
| 231 | 231 | // relation change must be communicated to assistive technologies. | |
| 232 | 232 | // | |
| 233 | 233 | // This function is meant to be used by language bindings. | |
| 234 | - | func (x *ViewSwitcher) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 234 | + | func (x *ViewSwitcher) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 235 | 235 | ||
| 236 | 236 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 237 | 237 | ||
| @@ -264,7 +264,7 @@ func (x *ViewSwitcher) UpdateState(FirstStateVar gtk.AccessibleState, varArgs .. | |||
| 264 | 264 | // state change must be communicated to assistive technologies. | |
| 265 | 265 | // | |
| 266 | 266 | // This function is meant to be used by language bindings. | |
| 267 | - | func (x *ViewSwitcher) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 267 | + | func (x *ViewSwitcher) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 268 | 268 | ||
| 269 | 269 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 270 | 270 | ||
M v4/adw/adw-window-title.go +3 -3
| @@ -167,7 +167,7 @@ func (x *WindowTitle) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, va | |||
| 167 | 167 | // property change must be communicated to assistive technologies. | |
| 168 | 168 | // | |
| 169 | 169 | // This function is meant to be used by language bindings. | |
| 170 | - | func (x *WindowTitle) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 170 | + | func (x *WindowTitle) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 171 | 171 | ||
| 172 | 172 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 173 | 173 | ||
| @@ -203,7 +203,7 @@ func (x *WindowTitle) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, va | |||
| 203 | 203 | // relation change must be communicated to assistive technologies. | |
| 204 | 204 | // | |
| 205 | 205 | // This function is meant to be used by language bindings. | |
| 206 | - | func (x *WindowTitle) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 206 | + | func (x *WindowTitle) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 207 | 207 | ||
| 208 | 208 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 209 | 209 | ||
| @@ -236,7 +236,7 @@ func (x *WindowTitle) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ... | |||
| 236 | 236 | // state change must be communicated to assistive technologies. | |
| 237 | 237 | // | |
| 238 | 238 | // This function is meant to be used by language bindings. | |
| 239 | - | func (x *WindowTitle) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 239 | + | func (x *WindowTitle) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 240 | 240 | ||
| 241 | 241 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 242 | 242 | ||
M v4/adw/adw-window.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type WindowClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [4]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *WindowClass) GoPointer() uintptr { | |
| @@ -178,7 +178,7 @@ func (x *Window) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs | |||
| 178 | 178 | // property change must be communicated to assistive technologies. | |
| 179 | 179 | // | |
| 180 | 180 | // This function is meant to be used by language bindings. | |
| 181 | - | func (x *Window) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 181 | + | func (x *Window) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { | |
| 182 | 182 | ||
| 183 | 183 | gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 184 | 184 | ||
| @@ -214,7 +214,7 @@ func (x *Window) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs | |||
| 214 | 214 | // relation change must be communicated to assistive technologies. | |
| 215 | 215 | // | |
| 216 | 216 | // This function is meant to be used by language bindings. | |
| 217 | - | func (x *Window) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 217 | + | func (x *Window) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { | |
| 218 | 218 | ||
| 219 | 219 | gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 220 | 220 | ||
| @@ -247,7 +247,7 @@ func (x *Window) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...inter | |||
| 247 | 247 | // state change must be communicated to assistive technologies. | |
| 248 | 248 | // | |
| 249 | 249 | // This function is meant to be used by language bindings. | |
| 250 | - | func (x *Window) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 250 | + | func (x *Window) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { | |
| 251 | 251 | ||
| 252 | 252 | gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 253 | 253 | ||
M v4/gdk/gdkclipboard.go +7 -6
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | // The `GdkClipboard` object represents data shared between applications or | |
| @@ -209,7 +210,7 @@ func (x *Clipboard) ReadTextureFinish(ResultVar gio.AsyncResult) (*Texture, erro | |||
| 209 | 210 | ||
| 210 | 211 | } | |
| 211 | 212 | ||
| 212 | - | var xClipboardReadValueAsync func(uintptr, []interface{}, int, uintptr, uintptr, uintptr) | |
| 213 | + | var xClipboardReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, uintptr) | |
| 213 | 214 | ||
| 214 | 215 | // Asynchronously request the @clipboard contents converted to the given | |
| 215 | 216 | // @type. | |
| @@ -220,7 +221,7 @@ var xClipboardReadValueAsync func(uintptr, []interface{}, int, uintptr, uintptr, | |||
| 220 | 221 | // For local clipboard contents that are available in the given `GType`, | |
| 221 | 222 | // the value will be copied directly. Otherwise, GDK will try to use | |
| 222 | 223 | // [func@content_deserialize_async] to convert the clipboard's data. | |
| 223 | - | func (x *Clipboard) ReadValueAsync(TypeVar []interface{}, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 224 | + | func (x *Clipboard) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 224 | 225 | ||
| 225 | 226 | xClipboardReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 226 | 227 | ||
| @@ -242,7 +243,7 @@ func (x *Clipboard) ReadValueFinish(ResultVar gio.AsyncResult) (*gobject.Value, | |||
| 242 | 243 | ||
| 243 | 244 | } | |
| 244 | 245 | ||
| 245 | - | var xClipboardSet func(uintptr, []interface{}, ...interface{}) | |
| 246 | + | var xClipboardSet func(uintptr, types.GType, ...interface{}) | |
| 246 | 247 | ||
| 247 | 248 | // Sets the clipboard to contain the value collected from the given varargs. | |
| 248 | 249 | // | |
| @@ -255,7 +256,7 @@ var xClipboardSet func(uintptr, []interface{}, ...interface{}) | |||
| 255 | 256 | // | |
| 256 | 257 | // gdk_clipboard_set (clipboard, GDK_TYPE_TEXTURE, some_texture); | |
| 257 | 258 | // ``` | |
| 258 | - | func (x *Clipboard) Set(TypeVar []interface{}, varArgs ...interface{}) { | |
| 259 | + | func (x *Clipboard) Set(TypeVar types.GType, varArgs ...interface{}) { | |
| 259 | 260 | ||
| 260 | 261 | xClipboardSet(x.GoPointer(), TypeVar, varArgs...) | |
| 261 | 262 | ||
| @@ -299,10 +300,10 @@ func (x *Clipboard) SetTexture(TextureVar *Texture) { | |||
| 299 | 300 | ||
| 300 | 301 | } | |
| 301 | 302 | ||
| 302 | - | var xClipboardSetValist func(uintptr, []interface{}, []interface{}) | |
| 303 | + | var xClipboardSetValist func(uintptr, types.GType, []interface{}) | |
| 303 | 304 | ||
| 304 | 305 | // Sets the clipboard to contain the value collected from the given @args. | |
| 305 | - | func (x *Clipboard) SetValist(TypeVar []interface{}, ArgsVar []interface{}) { | |
| 306 | + | func (x *Clipboard) SetValist(TypeVar types.GType, ArgsVar []interface{}) { | |
| 306 | 307 | ||
| 307 | 308 | xClipboardSetValist(x.GoPointer(), TypeVar, ArgsVar) | |
| 308 | 309 | ||
M v4/gdk/gdkcontentdeserializer.go +7 -6
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The type of a function that can be registered with gdk_content_register_deserializer(). | |
| @@ -16,7 +17,7 @@ import ( | |||
| 16 | 17 | // operation. | |
| 17 | 18 | type ContentDeserializeFunc func(uintptr) | |
| 18 | 19 | ||
| 19 | - | var xContentDeserializeAsync func(uintptr, string, []interface{}, int, uintptr, uintptr, uintptr) | |
| 20 | + | var xContentDeserializeAsync func(uintptr, string, types.GType, int, uintptr, uintptr, uintptr) | |
| 20 | 21 | ||
| 21 | 22 | // Read content from the given input stream and deserialize it, asynchronously. | |
| 22 | 23 | // | |
| @@ -25,7 +26,7 @@ var xContentDeserializeAsync func(uintptr, string, []interface{}, int, uintptr, | |||
| 25 | 26 | // | |
| 26 | 27 | // When the operation is finished, @callback will be called. You must then | |
| 27 | 28 | // call [func@Gdk.content_deserialize_finish] to get the result of the operation. | |
| 28 | - | func ContentDeserializeAsync(StreamVar *gio.InputStream, MimeTypeVar string, TypeVar []interface{}, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 29 | + | func ContentDeserializeAsync(StreamVar *gio.InputStream, MimeTypeVar string, TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 29 | 30 | ||
| 30 | 31 | xContentDeserializeAsync(StreamVar.GoPointer(), MimeTypeVar, TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 31 | 32 | ||
| @@ -45,10 +46,10 @@ func ContentDeserializeFinish(ResultVar gio.AsyncResult, ValueVar *gobject.Value | |||
| 45 | 46 | ||
| 46 | 47 | } | |
| 47 | 48 | ||
| 48 | - | var xContentRegisterDeserializer func(string, []interface{}, uintptr, uintptr, uintptr) | |
| 49 | + | var xContentRegisterDeserializer func(string, types.GType, uintptr, uintptr, uintptr) | |
| 49 | 50 | ||
| 50 | 51 | // Registers a function to deserialize object of a given type. | |
| 51 | - | func ContentRegisterDeserializer(MimeTypeVar string, TypeVar []interface{}, DeserializeVar *ContentDeserializeFunc, DataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 52 | + | func ContentRegisterDeserializer(MimeTypeVar string, TypeVar types.GType, DeserializeVar *ContentDeserializeFunc, DataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 52 | 53 | ||
| 53 | 54 | xContentRegisterDeserializer(MimeTypeVar, TypeVar, glib.NewCallback(DeserializeVar), DataVar, glib.NewCallback(NotifyVar)) | |
| 54 | 55 | ||
| @@ -94,10 +95,10 @@ func (x *ContentDeserializer) GetCancellable() *gio.Cancellable { | |||
| 94 | 95 | return cls | |
| 95 | 96 | } | |
| 96 | 97 | ||
| 97 | - | var xContentDeserializerGetGtype func(uintptr) []interface{} | |
| 98 | + | var xContentDeserializerGetGtype func(uintptr) types.GType | |
| 98 | 99 | ||
| 99 | 100 | // Gets the `GType` to create an instance of. | |
| 100 | - | func (x *ContentDeserializer) GetGtype() []interface{} { | |
| 101 | + | func (x *ContentDeserializer) GetGtype() types.GType { | |
| 101 | 102 | ||
| 102 | 103 | cret := xContentDeserializerGetGtype(x.GoPointer()) | |
| 103 | 104 | return cret | |
M v4/gdk/gdkcontentformats.go +3 -2
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // A `GdkContentFormatsBuilder` is an auxiliary struct used to create | |
| @@ -40,10 +41,10 @@ func (x *ContentFormatsBuilder) AddFormats(FormatsVar *ContentFormats) { | |||
| 40 | 41 | ||
| 41 | 42 | } | |
| 42 | 43 | ||
| 43 | - | var xContentFormatsBuilderAddGtype func(uintptr, []interface{}) | |
| 44 | + | var xContentFormatsBuilderAddGtype func(uintptr, types.GType) | |
| 44 | 45 | ||
| 45 | 46 | // Appends @type to @builder if it has not already been added. | |
| 46 | - | func (x *ContentFormatsBuilder) AddGtype(TypeVar []interface{}) { | |
| 47 | + | func (x *ContentFormatsBuilder) AddGtype(TypeVar types.GType) { | |
| 47 | 48 | ||
| 48 | 49 | xContentFormatsBuilderAddGtype(x.GoPointer(), TypeVar) | |
| 49 | 50 | ||
M v4/gdk/gdkcontentprovider.go +4 -3
| @@ -9,13 +9,14 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | // Class structure for `GdkContentProvider`. | |
| 15 | 16 | type ContentProviderClass struct { | |
| 16 | 17 | ParentClass uintptr | |
| 17 | 18 | ||
| 18 | - | Padding uintptr | |
| 19 | + | Padding [8]uintptr | |
| 19 | 20 | } | |
| 20 | 21 | ||
| 21 | 22 | func (x *ContentProviderClass) GoPointer() uintptr { | |
| @@ -74,14 +75,14 @@ func NewContentProviderForValue(ValueVar *gobject.Value) *ContentProvider { | |||
| 74 | 75 | return cls | |
| 75 | 76 | } | |
| 76 | 77 | ||
| 77 | - | var xNewContentProviderTyped func([]interface{}, ...interface{}) uintptr | |
| 78 | + | var xNewContentProviderTyped func(types.GType, ...interface{}) uintptr | |
| 78 | 79 | ||
| 79 | 80 | // Create a content provider that provides the value of the given | |
| 80 | 81 | // @type. | |
| 81 | 82 | // | |
| 82 | 83 | // The value is provided using G_VALUE_COLLECT(), so the same rules | |
| 83 | 84 | // apply as when calling g_object_new() or g_object_set(). | |
| 84 | - | func NewContentProviderTyped(TypeVar []interface{}, varArgs ...interface{}) *ContentProvider { | |
| 85 | + | func NewContentProviderTyped(TypeVar types.GType, varArgs ...interface{}) *ContentProvider { | |
| 85 | 86 | var cls *ContentProvider | |
| 86 | 87 | ||
| 87 | 88 | cret := xNewContentProviderTyped(TypeVar, varArgs...) | |
M v4/gdk/gdkcontentserializer.go +5 -4
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The type of a function that can be registered with gdk_content_register_serializer(). | |
| @@ -16,10 +17,10 @@ import ( | |||
| 16 | 17 | // operation. | |
| 17 | 18 | type ContentSerializeFunc func(uintptr) | |
| 18 | 19 | ||
| 19 | - | var xContentRegisterSerializer func([]interface{}, string, uintptr, uintptr, uintptr) | |
| 20 | + | var xContentRegisterSerializer func(types.GType, string, uintptr, uintptr, uintptr) | |
| 20 | 21 | ||
| 21 | 22 | // Registers a function to serialize objects of a given type. | |
| 22 | - | func ContentRegisterSerializer(TypeVar []interface{}, MimeTypeVar string, SerializeVar *ContentSerializeFunc, DataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 23 | + | func ContentRegisterSerializer(TypeVar types.GType, MimeTypeVar string, SerializeVar *ContentSerializeFunc, DataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 23 | 24 | ||
| 24 | 25 | xContentRegisterSerializer(TypeVar, MimeTypeVar, glib.NewCallback(SerializeVar), DataVar, glib.NewCallback(NotifyVar)) | |
| 25 | 26 | ||
| @@ -95,10 +96,10 @@ func (x *ContentSerializer) GetCancellable() *gio.Cancellable { | |||
| 95 | 96 | return cls | |
| 96 | 97 | } | |
| 97 | 98 | ||
| 98 | - | var xContentSerializerGetGtype func(uintptr) []interface{} | |
| 99 | + | var xContentSerializerGetGtype func(uintptr) types.GType | |
| 99 | 100 | ||
| 100 | 101 | // Gets the `GType` to of the object to serialize. | |
| 101 | - | func (x *ContentSerializer) GetGtype() []interface{} { | |
| 102 | + | func (x *ContentSerializer) GetGtype() types.GType { | |
| 102 | 103 | ||
| 103 | 104 | cret := xContentSerializerGetGtype(x.GoPointer()) | |
| 104 | 105 | return cret | |
M v4/gdk/gdkdevice.go +1 -1
| @@ -22,7 +22,7 @@ type TimeCoord struct { | |||
| 22 | 22 | ||
| 23 | 23 | Flags AxisFlags | |
| 24 | 24 | ||
| 25 | - | Axes uintptr | |
| 25 | + | Axes [12]float64 | |
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | 28 | func (x *TimeCoord) GoPointer() uintptr { | |
M v4/gdk/gdkdisplay.go +2 -2
| @@ -313,7 +313,7 @@ func (x *Display) ListSeats() *glib.List { | |||
| 313 | 313 | return cret | |
| 314 | 314 | } | |
| 315 | 315 | ||
| 316 | - | var xDisplayMapKeycode func(uintptr, uint, uintptr, uintptr, int) bool | |
| 316 | + | var xDisplayMapKeycode func(uintptr, uint, uintptr, []uint, int) bool | |
| 317 | 317 | ||
| 318 | 318 | // Returns the keyvals bound to @keycode. | |
| 319 | 319 | // | |
| @@ -324,7 +324,7 @@ var xDisplayMapKeycode func(uintptr, uint, uintptr, uintptr, int) bool | |||
| 324 | 324 | // keyboard group and level. | |
| 325 | 325 | // | |
| 326 | 326 | // Free the returned arrays with g_free(). | |
| 327 | - | func (x *Display) MapKeycode(KeycodeVar uint, KeysVar uintptr, KeyvalsVar uintptr, NEntriesVar int) bool { | |
| 327 | + | func (x *Display) MapKeycode(KeycodeVar uint, KeysVar uintptr, KeyvalsVar []uint, NEntriesVar int) bool { | |
| 328 | 328 | ||
| 329 | 329 | cret := xDisplayMapKeycode(x.GoPointer(), KeycodeVar, KeysVar, KeyvalsVar, NEntriesVar) | |
| 330 | 330 | return cret | |
M v4/gdk/gdkdrop.go +3 -2
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The `GdkDrop` object represents the target of an ongoing DND operation. | |
| @@ -186,7 +187,7 @@ func (x *Drop) ReadFinish(ResultVar gio.AsyncResult, OutMimeTypeVar string) (*gi | |||
| 186 | 187 | ||
| 187 | 188 | } | |
| 188 | 189 | ||
| 189 | - | var xDropReadValueAsync func(uintptr, []interface{}, int, uintptr, uintptr, uintptr) | |
| 190 | + | var xDropReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, uintptr) | |
| 190 | 191 | ||
| 191 | 192 | // Asynchronously request the drag operation's contents converted | |
| 192 | 193 | // to the given @type. | |
| @@ -198,7 +199,7 @@ var xDropReadValueAsync func(uintptr, []interface{}, int, uintptr, uintptr, uint | |||
| 198 | 199 | // For local drag-and-drop operations that are available in the given | |
| 199 | 200 | // `GType`, the value will be copied directly. Otherwise, GDK will | |
| 200 | 201 | // try to use [func@Gdk.content_deserialize_async] to convert the data. | |
| 201 | - | func (x *Drop) ReadValueAsync(TypeVar []interface{}, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 202 | + | func (x *Drop) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 202 | 203 | ||
| 203 | 204 | xDropReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 204 | 205 | ||
M v4/gdk/gdkevents.go +4 -4
| @@ -492,13 +492,13 @@ func (x *Event) GetDistance(Event2Var *Event, DistanceVar float64) bool { | |||
| 492 | 492 | return cret | |
| 493 | 493 | } | |
| 494 | 494 | ||
| 495 | - | var xEventGetAxes func(uintptr, uintptr, uint) bool | |
| 495 | + | var xEventGetAxes func(uintptr, []float64, uint) bool | |
| 496 | 496 | ||
| 497 | 497 | // Extracts all axis values from an event. | |
| 498 | 498 | // | |
| 499 | 499 | // To find out which axes are used, use [method@Gdk.DeviceTool.get_axes] | |
| 500 | 500 | // on the device tool returned by [method@Gdk.Event.get_device_tool]. | |
| 501 | - | func (x *Event) GetAxes(AxesVar uintptr, NAxesVar uint) bool { | |
| 501 | + | func (x *Event) GetAxes(AxesVar []float64, NAxesVar uint) bool { | |
| 502 | 502 | ||
| 503 | 503 | cret := xEventGetAxes(x.GoPointer(), AxesVar, NAxesVar) | |
| 504 | 504 | return cret | |
| @@ -598,7 +598,7 @@ func (x *Event) GetEventType() EventType { | |||
| 598 | 598 | return cret | |
| 599 | 599 | } | |
| 600 | 600 | ||
| 601 | - | var xEventGetHistory func(uintptr, uint) uintptr | |
| 601 | + | var xEventGetHistory func(uintptr, uint) []TimeCoord | |
| 602 | 602 | ||
| 603 | 603 | // Retrieves the history of the device that @event is for, as a list of | |
| 604 | 604 | // time and coordinates. | |
| @@ -609,7 +609,7 @@ var xEventGetHistory func(uintptr, uint) uintptr | |||
| 609 | 609 | // Note that only motion and scroll events record history, and motion | |
| 610 | 610 | // events do it only if one of the mouse buttons is down, or the device | |
| 611 | 611 | // has a tool. | |
| 612 | - | func (x *Event) GetHistory(OutNCoordsVar uint) uintptr { | |
| 612 | + | func (x *Event) GetHistory(OutNCoordsVar uint) []TimeCoord { | |
| 613 | 613 | ||
| 614 | 614 | cret := xEventGetHistory(x.GoPointer(), OutNCoordsVar) | |
| 615 | 615 | return cret | |
M v4/gdk/gdkpango.go +2 -2
| @@ -26,7 +26,7 @@ func PangoLayoutGetClipRegion(LayoutVar *pango.Layout, XOriginVar int, YOriginVa | |||
| 26 | 26 | return cret | |
| 27 | 27 | } | |
| 28 | 28 | ||
| 29 | - | var xPangoLayoutLineGetClipRegion func(*pango.LayoutLine, int, int, uintptr, int) *cairo.Region | |
| 29 | + | var xPangoLayoutLineGetClipRegion func(*pango.LayoutLine, int, int, []int, int) *cairo.Region | |
| 30 | 30 | ||
| 31 | 31 | // Obtains a clip region which contains the areas where the given | |
| 32 | 32 | // ranges of text would be drawn. | |
| @@ -43,7 +43,7 @@ var xPangoLayoutLineGetClipRegion func(*pango.LayoutLine, int, int, uintptr, int | |||
| 43 | 43 | // ranges, not ink extents. So the drawn line may in fact touch areas out of | |
| 44 | 44 | // the clip region. The clip region is mainly useful for highlightling parts | |
| 45 | 45 | // of text, such as when text is selected. | |
| 46 | - | func PangoLayoutLineGetClipRegion(LineVar *pango.LayoutLine, XOriginVar int, YOriginVar int, IndexRangesVar uintptr, NRangesVar int) *cairo.Region { | |
| 46 | + | func PangoLayoutLineGetClipRegion(LineVar *pango.LayoutLine, XOriginVar int, YOriginVar int, IndexRangesVar []int, NRangesVar int) *cairo.Region { | |
| 47 | 47 | ||
| 48 | 48 | cret := xPangoLayoutLineGetClipRegion(LineVar, XOriginVar, YOriginVar, IndexRangesVar, NRangesVar) | |
| 49 | 49 | return cret | |
M v4/gdk/gdktexture.go +2 -2
| @@ -197,7 +197,7 @@ func NewTextureFromResource(ResourcePathVar string) *Texture { | |||
| 197 | 197 | return cls | |
| 198 | 198 | } | |
| 199 | 199 | ||
| 200 | - | var xTextureDownload func(uintptr, uintptr, uint) | |
| 200 | + | var xTextureDownload func(uintptr, []byte, uint) | |
| 201 | 201 | ||
| 202 | 202 | // Downloads the @texture into local memory. | |
| 203 | 203 | // | |
| @@ -222,7 +222,7 @@ var xTextureDownload func(uintptr, uintptr, uint) | |||
| 222 | 222 | // | |
| 223 | 223 | // cairo_surface_mark_dirty (surface); | |
| 224 | 224 | // ``` | |
| 225 | - | func (x *Texture) Download(DataVar uintptr, StrideVar uint) { | |
| 225 | + | func (x *Texture) Download(DataVar []byte, StrideVar uint) { | |
| 226 | 226 | ||
| 227 | 227 | xTextureDownload(x.GoPointer(), DataVar, StrideVar) | |
| 228 | 228 | ||
M v4/gdk/gdktoplevelsize.go +3 -2
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The `GdkToplevelSize` struct contains information that is useful | |
| @@ -76,9 +77,9 @@ func (x *ToplevelSize) SetSize(WidthVar int, HeightVar int) { | |||
| 76 | 77 | ||
| 77 | 78 | } | |
| 78 | 79 | ||
| 79 | - | var xToplevelSizeGetType func() []interface{} | |
| 80 | + | var xToplevelSizeGetType func() types.GType | |
| 80 | 81 | ||
| 81 | - | func ToplevelSizeGetType() []interface{} { | |
| 82 | + | func ToplevelSizeGetType() types.GType { | |
| 82 | 83 | ||
| 83 | 84 | cret := xToplevelSizeGetType() | |
| 84 | 85 | return cret | |
M v4/gdk/gdktypes.go +11 -10
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The `GdkContentFormats` structure is used to advertise and negotiate the | |
| @@ -61,19 +62,19 @@ func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormat | |||
| 61 | 62 | return cret | |
| 62 | 63 | } | |
| 63 | 64 | ||
| 64 | - | var xNewContentFormatsForGtype func([]interface{}) *ContentFormats | |
| 65 | + | var xNewContentFormatsForGtype func(types.GType) *ContentFormats | |
| 65 | 66 | ||
| 66 | 67 | // Creates a new `GdkContentFormats` for a given `GType`. | |
| 67 | - | func NewContentFormatsForGtype(TypeVar []interface{}) *ContentFormats { | |
| 68 | + | func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats { | |
| 68 | 69 | ||
| 69 | 70 | cret := xNewContentFormatsForGtype(TypeVar) | |
| 70 | 71 | return cret | |
| 71 | 72 | } | |
| 72 | 73 | ||
| 73 | - | var xContentFormatsContainGtype func(uintptr, []interface{}) bool | |
| 74 | + | var xContentFormatsContainGtype func(uintptr, types.GType) bool | |
| 74 | 75 | ||
| 75 | 76 | // Checks if a given `GType` is part of the given @formats. | |
| 76 | - | func (x *ContentFormats) ContainGtype(TypeVar []interface{}) bool { | |
| 77 | + | func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool { | |
| 77 | 78 | ||
| 78 | 79 | cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar) | |
| 79 | 80 | return cret | |
| @@ -88,25 +89,25 @@ func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool { | |||
| 88 | 89 | return cret | |
| 89 | 90 | } | |
| 90 | 91 | ||
| 91 | - | var xContentFormatsGetGtypes func(uintptr, uint) uintptr | |
| 92 | + | var xContentFormatsGetGtypes func(uintptr, uint) []types.GType | |
| 92 | 93 | ||
| 93 | 94 | // Gets the `GType`s included in @formats. | |
| 94 | 95 | // | |
| 95 | 96 | // Note that @formats may not contain any `GType`s, in particular when | |
| 96 | 97 | // they are empty. In that case %NULL will be returned. | |
| 97 | - | func (x *ContentFormats) GetGtypes(NGtypesVar uint) uintptr { | |
| 98 | + | func (x *ContentFormats) GetGtypes(NGtypesVar uint) []types.GType { | |
| 98 | 99 | ||
| 99 | 100 | cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar) | |
| 100 | 101 | return cret | |
| 101 | 102 | } | |
| 102 | 103 | ||
| 103 | - | var xContentFormatsGetMimeTypes func(uintptr, uint) uintptr | |
| 104 | + | var xContentFormatsGetMimeTypes func(uintptr, uint) []string | |
| 104 | 105 | ||
| 105 | 106 | // Gets the mime types included in @formats. | |
| 106 | 107 | // | |
| 107 | 108 | // Note that @formats may not contain any mime types, in particular | |
| 108 | 109 | // when they are empty. In that case %NULL will be returned. | |
| 109 | - | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar uint) uintptr { | |
| 110 | + | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar uint) []string { | |
| 110 | 111 | ||
| 111 | 112 | cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar) | |
| 112 | 113 | return cret | |
| @@ -121,13 +122,13 @@ func (x *ContentFormats) Match(SecondVar *ContentFormats) bool { | |||
| 121 | 122 | return cret | |
| 122 | 123 | } | |
| 123 | 124 | ||
| 124 | - | var xContentFormatsMatchGtype func(uintptr, *ContentFormats) []interface{} | |
| 125 | + | var xContentFormatsMatchGtype func(uintptr, *ContentFormats) types.GType | |
| 125 | 126 | ||
| 126 | 127 | // Finds the first `GType` from @first that is also contained | |
| 127 | 128 | // in @second. | |
| 128 | 129 | // | |
| 129 | 130 | // If no matching `GType` is found, %G_TYPE_INVALID is returned. | |
| 130 | - | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) []interface{} { | |
| 131 | + | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType { | |
| 131 | 132 | ||
| 132 | 133 | cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar) | |
| 133 | 134 | return cret | |
M v4/gdkpixbuf/gdk-pixbuf-core.go +2 -2
| @@ -10,7 +10,7 @@ import "github.com/jwijenbergh/puregotk/v4/glib" | |||
| 10 | 10 | // pixel array so that a pixbuf can be created from it; in this case you | |
| 11 | 11 | // will need to pass in a function of type `GdkPixbufDestroyNotify` so that | |
| 12 | 12 | // the pixel data can be freed when the pixbuf is finalized. | |
| 13 | - | type PixbufDestroyNotify func(uintptr, uintptr) | |
| 13 | + | type PixbufDestroyNotify func([]byte, uintptr) | |
| 14 | 14 | ||
| 15 | 15 | // Save functions used by [method@GdkPixbuf.Pixbuf.save_to_callback]. | |
| 16 | 16 | // | |
| @@ -20,7 +20,7 @@ type PixbufDestroyNotify func(uintptr, uintptr) | |||
| 20 | 20 | // If successful it should return `TRUE`; if an error occurs it should set | |
| 21 | 21 | // `error` and return `FALSE`, in which case `gdk_pixbuf_save_to_callback()` | |
| 22 | 22 | // will fail with the same error. | |
| 23 | - | type PixbufSaveFunc func(uintptr, uint, **glib.Error, uintptr) bool | |
| 23 | + | type PixbufSaveFunc func([]byte, uint, **glib.Error, uintptr) bool | |
| 24 | 24 | ||
| 25 | 25 | // This enumeration defines the color spaces that are supported by | |
| 26 | 26 | // the gdk-pixbuf library. | |
M v4/gdkpixbuf/gdk-pixbuf-io.go +9 -9
| @@ -30,7 +30,7 @@ type PixbufModuleFillInfoFunc func(*PixbufFormat) | |||
| 30 | 30 | type PixbufModuleFillVtableFunc func(*PixbufModule) | |
| 31 | 31 | ||
| 32 | 32 | // Incrementally loads a buffer into the image data. | |
| 33 | - | type PixbufModuleIncrementLoadFunc func(uintptr, uintptr, uint, **glib.Error) bool | |
| 33 | + | type PixbufModuleIncrementLoadFunc func(uintptr, []byte, uint, **glib.Error) bool | |
| 34 | 34 | ||
| 35 | 35 | // Loads a file from a standard C file stream into a new `GdkPixbufAnimation`. | |
| 36 | 36 | // | |
| @@ -58,14 +58,14 @@ type PixbufModulePreparedFunc func(uintptr, uintptr, uintptr) | |||
| 58 | 58 | // The optional `option_keys` and `option_values` arrays contain the keys and | |
| 59 | 59 | // values (in the same order) for attributes to be saved alongside the image | |
| 60 | 60 | // data. | |
| 61 | - | type PixbufModuleSaveCallbackFunc func(uintptr, uintptr, uintptr, uintptr, uintptr, **glib.Error) bool | |
| 61 | + | type PixbufModuleSaveCallbackFunc func(uintptr, uintptr, uintptr, []string, []string, **glib.Error) bool | |
| 62 | 62 | ||
| 63 | 63 | // Saves a `GdkPixbuf` into a standard C file stream. | |
| 64 | 64 | // | |
| 65 | 65 | // The optional `param_keys` and `param_values` arrays contain the keys and | |
| 66 | 66 | // values (in the same order) for attributes to be saved alongside the image | |
| 67 | 67 | // data. | |
| 68 | - | type PixbufModuleSaveFunc func(uintptr, uintptr, uintptr, uintptr, **glib.Error) bool | |
| 68 | + | type PixbufModuleSaveFunc func(uintptr, uintptr, []string, []string, **glib.Error) bool | |
| 69 | 69 | ||
| 70 | 70 | // Checks whether the given `option_key` is supported when saving. | |
| 71 | 71 | type PixbufModuleSaveOptionSupportedFunc func(string) bool | |
| @@ -112,9 +112,9 @@ type PixbufFormat struct { | |||
| 112 | 112 | ||
| 113 | 113 | Description uintptr | |
| 114 | 114 | ||
| 115 | - | MimeTypes uintptr | |
| 115 | + | MimeTypes []string | |
| 116 | 116 | ||
| 117 | - | Extensions uintptr | |
| 117 | + | Extensions []string | |
| 118 | 118 | ||
| 119 | 119 | Flags uint32 | |
| 120 | 120 | ||
| @@ -155,11 +155,11 @@ func (x *PixbufFormat) GetDescription() string { | |||
| 155 | 155 | return cret | |
| 156 | 156 | } | |
| 157 | 157 | ||
| 158 | - | var xPixbufFormatGetExtensions func(uintptr) uintptr | |
| 158 | + | var xPixbufFormatGetExtensions func(uintptr) []string | |
| 159 | 159 | ||
| 160 | 160 | // Returns the filename extensions typically used for files in the | |
| 161 | 161 | // given format. | |
| 162 | - | func (x *PixbufFormat) GetExtensions() uintptr { | |
| 162 | + | func (x *PixbufFormat) GetExtensions() []string { | |
| 163 | 163 | ||
| 164 | 164 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | |
| 165 | 165 | return cret | |
| @@ -177,10 +177,10 @@ func (x *PixbufFormat) GetLicense() string { | |||
| 177 | 177 | return cret | |
| 178 | 178 | } | |
| 179 | 179 | ||
| 180 | - | var xPixbufFormatGetMimeTypes func(uintptr) uintptr | |
| 180 | + | var xPixbufFormatGetMimeTypes func(uintptr) []string | |
| 181 | 181 | ||
| 182 | 182 | // Returns the mime types supported by the format. | |
| 183 | - | func (x *PixbufFormat) GetMimeTypes() uintptr { | |
| 183 | + | func (x *PixbufFormat) GetMimeTypes() []string { | |
| 184 | 184 | ||
| 185 | 185 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | |
| 186 | 186 | return cret | |
M v4/gdkpixbuf/gdk-pixbuf-loader.go +2 -2
| @@ -267,10 +267,10 @@ func (x *PixbufLoader) SetSize(WidthVar int, HeightVar int) { | |||
| 267 | 267 | ||
| 268 | 268 | } | |
| 269 | 269 | ||
| 270 | - | var xPixbufLoaderWrite func(uintptr, uintptr, uint, **glib.Error) bool | |
| 270 | + | var xPixbufLoaderWrite func(uintptr, []byte, uint, **glib.Error) bool | |
| 271 | 271 | ||
| 272 | 272 | // Parses the next `count` bytes in the given image buffer. | |
| 273 | - | func (x *PixbufLoader) Write(BufVar uintptr, CountVar uint) (bool, error) { | |
| 273 | + | func (x *PixbufLoader) Write(BufVar []byte, CountVar uint) (bool, error) { | |
| 274 | 274 | var cerr *glib.Error | |
| 275 | 275 | ||
| 276 | 276 | cret := xPixbufLoaderWrite(x.GoPointer(), BufVar, CountVar, &cerr) | |
M v4/gdkpixbuf/gdk-pixbuf.go +14 -14
| @@ -199,7 +199,7 @@ func NewPixbufFromBytes(DataVar *glib.Bytes, ColorspaceVar Colorspace, HasAlphaV | |||
| 199 | 199 | return cls | |
| 200 | 200 | } | |
| 201 | 201 | ||
| 202 | - | var xNewPixbufFromData func(uintptr, Colorspace, bool, int, int, int, int, uintptr, uintptr) uintptr | |
| 202 | + | var xNewPixbufFromData func([]byte, Colorspace, bool, int, int, int, int, uintptr, uintptr) uintptr | |
| 203 | 203 | ||
| 204 | 204 | // Creates a new #GdkPixbuf out of in-memory image data. | |
| 205 | 205 | // | |
| @@ -212,7 +212,7 @@ var xNewPixbufFromData func(uintptr, Colorspace, bool, int, int, int, int, uintp | |||
| 212 | 212 | // it is its responsibility to free the pixel array. | |
| 213 | 213 | // | |
| 214 | 214 | // See also: [ctor@GdkPixbuf.Pixbuf.new_from_bytes] | |
| 215 | - | func NewPixbufFromData(DataVar uintptr, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | |
| 215 | + | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | |
| 216 | 216 | var cls *Pixbuf | |
| 217 | 217 | ||
| 218 | 218 | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallback(DestroyFnVar), DestroyFnDataVar) | |
| @@ -337,7 +337,7 @@ func NewPixbufFromFileAtSize(FilenameVar string, WidthVar int, HeightVar int) (* | |||
| 337 | 337 | ||
| 338 | 338 | } | |
| 339 | 339 | ||
| 340 | - | var xNewPixbufFromInline func(int, uintptr, bool, **glib.Error) uintptr | |
| 340 | + | var xNewPixbufFromInline func(int, []byte, bool, **glib.Error) uintptr | |
| 341 | 341 | ||
| 342 | 342 | // Creates a `GdkPixbuf` from a flat representation that is suitable for | |
| 343 | 343 | // storing as inline data in a program. | |
| @@ -372,7 +372,7 @@ var xNewPixbufFromInline func(int, uintptr, bool, **glib.Error) uintptr | |||
| 372 | 372 | // For non-const inline data, you could get out of memory. For untrusted | |
| 373 | 373 | // inline data located at runtime, you could have corrupt inline data in | |
| 374 | 374 | // addition. | |
| 375 | - | func NewPixbufFromInline(DataLengthVar int, DataVar uintptr, CopyPixelsVar bool) (*Pixbuf, error) { | |
| 375 | + | func NewPixbufFromInline(DataLengthVar int, DataVar []byte, CopyPixelsVar bool) (*Pixbuf, error) { | |
| 376 | 376 | var cls *Pixbuf | |
| 377 | 377 | var cerr *glib.Error | |
| 378 | 378 | ||
| @@ -840,7 +840,7 @@ func (x *Pixbuf) GetOptions() *glib.HashTable { | |||
| 840 | 840 | return cret | |
| 841 | 841 | } | |
| 842 | 842 | ||
| 843 | - | var xPixbufGetPixels func(uintptr) uintptr | |
| 843 | + | var xPixbufGetPixels func(uintptr) []byte | |
| 844 | 844 | ||
| 845 | 845 | // Queries a pointer to the pixel data of a pixbuf. | |
| 846 | 846 | // | |
| @@ -849,13 +849,13 @@ var xPixbufGetPixels func(uintptr) uintptr | |||
| 849 | 849 | // | |
| 850 | 850 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | |
| 851 | 851 | // about how the pixel data is stored in memory. | |
| 852 | - | func (x *Pixbuf) GetPixels() uintptr { | |
| 852 | + | func (x *Pixbuf) GetPixels() []byte { | |
| 853 | 853 | ||
| 854 | 854 | cret := xPixbufGetPixels(x.GoPointer()) | |
| 855 | 855 | return cret | |
| 856 | 856 | } | |
| 857 | 857 | ||
| 858 | - | var xPixbufGetPixelsWithLength func(uintptr, uint) uintptr | |
| 858 | + | var xPixbufGetPixelsWithLength func(uintptr, uint) []byte | |
| 859 | 859 | ||
| 860 | 860 | // Queries a pointer to the pixel data of a pixbuf. | |
| 861 | 861 | // | |
| @@ -864,7 +864,7 @@ var xPixbufGetPixelsWithLength func(uintptr, uint) uintptr | |||
| 864 | 864 | // | |
| 865 | 865 | // Please see the section on [image data](class.Pixbuf.html#image-data) for information | |
| 866 | 866 | // about how the pixel data is stored in memory. | |
| 867 | - | func (x *Pixbuf) GetPixelsWithLength(LengthVar uint) uintptr { | |
| 867 | + | func (x *Pixbuf) GetPixelsWithLength(LengthVar uint) []byte { | |
| 868 | 868 | ||
| 869 | 869 | cret := xPixbufGetPixelsWithLength(x.GoPointer(), LengthVar) | |
| 870 | 870 | return cret | |
| @@ -1084,7 +1084,7 @@ func (x *Pixbuf) Save(FilenameVar string, TypeVar string, ErrorVar **glib.Error, | |||
| 1084 | 1084 | return cret | |
| 1085 | 1085 | } | |
| 1086 | 1086 | ||
| 1087 | - | var xPixbufSaveToBuffer func(uintptr, uintptr, uint, string, **glib.Error, ...interface{}) bool | |
| 1087 | + | var xPixbufSaveToBuffer func(uintptr, []byte, uint, string, **glib.Error, ...interface{}) bool | |
| 1088 | 1088 | ||
| 1089 | 1089 | // Saves pixbuf to a new buffer in format `type`, which is currently "jpeg", | |
| 1090 | 1090 | // "png", "tiff", "ico" or "bmp". | |
| @@ -1100,13 +1100,13 @@ var xPixbufSaveToBuffer func(uintptr, uintptr, uint, string, **glib.Error, ...in | |||
| 1100 | 1100 | // domain. | |
| 1101 | 1101 | // | |
| 1102 | 1102 | // See `gdk_pixbuf_save()` for more details. | |
| 1103 | - | func (x *Pixbuf) SaveToBuffer(BufferVar uintptr, BufferSizeVar uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1103 | + | func (x *Pixbuf) SaveToBuffer(BufferVar []byte, BufferSizeVar uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1104 | 1104 | ||
| 1105 | 1105 | cret := xPixbufSaveToBuffer(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, ErrorVar, varArgs...) | |
| 1106 | 1106 | return cret | |
| 1107 | 1107 | } | |
| 1108 | 1108 | ||
| 1109 | - | var xPixbufSaveToBufferv func(uintptr, uintptr, uint, string, []string, []string, **glib.Error) bool | |
| 1109 | + | var xPixbufSaveToBufferv func(uintptr, []byte, uint, string, []string, []string, **glib.Error) bool | |
| 1110 | 1110 | ||
| 1111 | 1111 | // Vector version of `gdk_pixbuf_save_to_buffer()`. | |
| 1112 | 1112 | // | |
| @@ -1114,7 +1114,7 @@ var xPixbufSaveToBufferv func(uintptr, uintptr, uint, string, []string, []string | |||
| 1114 | 1114 | // "tiff", "png", "ico" or "bmp". | |
| 1115 | 1115 | // | |
| 1116 | 1116 | // See [method@GdkPixbuf.Pixbuf.save_to_buffer] for more details. | |
| 1117 | - | func (x *Pixbuf) SaveToBufferv(BufferVar uintptr, BufferSizeVar uint, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | |
| 1117 | + | func (x *Pixbuf) SaveToBufferv(BufferVar []byte, BufferSizeVar uint, TypeVar string, OptionKeysVar []string, OptionValuesVar []string) (bool, error) { | |
| 1118 | 1118 | var cerr *glib.Error | |
| 1119 | 1119 | ||
| 1120 | 1120 | cret := xPixbufSaveToBufferv(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| @@ -1220,7 +1220,7 @@ func (x *Pixbuf) SaveToStreamv(StreamVar *gio.OutputStream, TypeVar string, Opti | |||
| 1220 | 1220 | ||
| 1221 | 1221 | } | |
| 1222 | 1222 | ||
| 1223 | - | var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, uintptr, uintptr, uintptr, uintptr, uintptr) | |
| 1223 | + | var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, []string, []string, uintptr, uintptr, uintptr) | |
| 1224 | 1224 | ||
| 1225 | 1225 | // Saves `pixbuf` to an output stream asynchronously. | |
| 1226 | 1226 | // | |
| @@ -1231,7 +1231,7 @@ var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, uintptr, uintptr, u | |||
| 1231 | 1231 | // | |
| 1232 | 1232 | // You can then call gdk_pixbuf_save_to_stream_finish() to get the result of | |
| 1233 | 1233 | // the operation. | |
| 1234 | - | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar uintptr, OptionValuesVar uintptr, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1234 | + | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1235 | 1235 | ||
| 1236 | 1236 | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1237 | 1237 | ||
M v4/gio/gactiongroup.go +3 -3
| @@ -78,7 +78,7 @@ type ActionGroup interface { | |||
| 78 | 78 | GetActionStateHint(ActionNameVar string) *glib.Variant | |
| 79 | 79 | GetActionStateType(ActionNameVar string) *glib.VariantType | |
| 80 | 80 | HasAction(ActionNameVar string) bool | |
| 81 | - | ListActions() uintptr | |
| 81 | + | ListActions() []string | |
| 82 | 82 | QueryAction(ActionNameVar string, EnabledVar bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool | |
| 83 | 83 | } | |
| 84 | 84 | type ActionGroupBase struct { | |
| @@ -285,7 +285,7 @@ func (x *ActionGroupBase) HasAction(ActionNameVar string) bool { | |||
| 285 | 285 | // | |
| 286 | 286 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 287 | 287 | // it is no longer required. | |
| 288 | - | func (x *ActionGroupBase) ListActions() uintptr { | |
| 288 | + | func (x *ActionGroupBase) ListActions() []string { | |
| 289 | 289 | ||
| 290 | 290 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 291 | 291 | return cret | |
| @@ -336,7 +336,7 @@ var XGActionGroupGetActionState func(uintptr, string) *glib.Variant | |||
| 336 | 336 | var XGActionGroupGetActionStateHint func(uintptr, string) *glib.Variant | |
| 337 | 337 | var XGActionGroupGetActionStateType func(uintptr, string) *glib.VariantType | |
| 338 | 338 | var XGActionGroupHasAction func(uintptr, string) bool | |
| 339 | - | var XGActionGroupListActions func(uintptr) uintptr | |
| 339 | + | var XGActionGroupListActions func(uintptr) []string | |
| 340 | 340 | var XGActionGroupQueryAction func(uintptr, string, bool, **glib.VariantType, **glib.VariantType, **glib.Variant, **glib.Variant) bool | |
| 341 | 341 | ||
| 342 | 342 | func init() { | |
M v4/gio/gactionmap.go +4 -4
| @@ -26,7 +26,7 @@ type ActionEntry struct { | |||
| 26 | 26 | ||
| 27 | 27 | State uintptr | |
| 28 | 28 | ||
| 29 | - | Padding uintptr | |
| 29 | + | Padding [3]uint | |
| 30 | 30 | } | |
| 31 | 31 | ||
| 32 | 32 | func (x *ActionEntry) GoPointer() uintptr { | |
| @@ -55,7 +55,7 @@ type ActionMap interface { | |||
| 55 | 55 | GoPointer() uintptr | |
| 56 | 56 | SetGoPointer(uintptr) | |
| 57 | 57 | AddAction(ActionVar Action) | |
| 58 | - | AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) | |
| 58 | + | AddActionEntries(EntriesVar []ActionEntry, NEntriesVar int, UserDataVar uintptr) | |
| 59 | 59 | LookupAction(ActionNameVar string) *ActionBase | |
| 60 | 60 | RemoveAction(ActionNameVar string) | |
| 61 | 61 | } | |
| @@ -126,7 +126,7 @@ func (x *ActionMapBase) AddAction(ActionVar Action) { | |||
| 126 | 126 | // } | |
| 127 | 127 | // | |
| 128 | 128 | // ]| | |
| 129 | - | func (x *ActionMapBase) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 129 | + | func (x *ActionMapBase) AddActionEntries(EntriesVar []ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 130 | 130 | ||
| 131 | 131 | XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 132 | 132 | ||
| @@ -159,7 +159,7 @@ func (x *ActionMapBase) RemoveAction(ActionNameVar string) { | |||
| 159 | 159 | } | |
| 160 | 160 | ||
| 161 | 161 | var XGActionMapAddAction func(uintptr, uintptr) | |
| 162 | - | var XGActionMapAddActionEntries func(uintptr, uintptr, int, uintptr) | |
| 162 | + | var XGActionMapAddActionEntries func(uintptr, []ActionEntry, int, uintptr) | |
| 163 | 163 | var XGActionMapLookupAction func(uintptr, string) uintptr | |
| 164 | 164 | var XGActionMapRemoveAction func(uintptr, string) | |
| 165 | 165 | ||
M v4/gio/gapplication.go +5 -5
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type ApplicationClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [7]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *ApplicationClass) GoPointer() uintptr { | |
| @@ -209,7 +209,7 @@ func (x *Application) AddMainOption(LongNameVar string, ShortNameVar byte, Flags | |||
| 209 | 209 | ||
| 210 | 210 | } | |
| 211 | 211 | ||
| 212 | - | var xApplicationAddMainOptionEntries func(uintptr, uintptr) | |
| 212 | + | var xApplicationAddMainOptionEntries func(uintptr, []glib.OptionEntry) | |
| 213 | 213 | ||
| 214 | 214 | // Adds main option entries to be handled by @application. | |
| 215 | 215 | // | |
| @@ -265,7 +265,7 @@ var xApplicationAddMainOptionEntries func(uintptr, uintptr) | |||
| 265 | 265 | // - for %G_OPTION_ARG_FILENAME, use `^&ay` | |
| 266 | 266 | // - for %G_OPTION_ARG_STRING_ARRAY, use `^a&s` | |
| 267 | 267 | // - for %G_OPTION_ARG_FILENAME_ARRAY, use `^a&ay` | |
| 268 | - | func (x *Application) AddMainOptionEntries(EntriesVar uintptr) { | |
| 268 | + | func (x *Application) AddMainOptionEntries(EntriesVar []glib.OptionEntry) { | |
| 269 | 269 | ||
| 270 | 270 | xApplicationAddMainOptionEntries(x.GoPointer(), EntriesVar) | |
| 271 | 271 | ||
| @@ -1287,7 +1287,7 @@ func (x *Application) HasAction(ActionNameVar string) bool { | |||
| 1287 | 1287 | // | |
| 1288 | 1288 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 1289 | 1289 | // it is no longer required. | |
| 1290 | - | func (x *Application) ListActions() uintptr { | |
| 1290 | + | func (x *Application) ListActions() []string { | |
| 1291 | 1291 | ||
| 1292 | 1292 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 1293 | 1293 | return cret | |
| @@ -1381,7 +1381,7 @@ func (x *Application) AddAction(ActionVar Action) { | |||
| 1381 | 1381 | // } | |
| 1382 | 1382 | // | |
| 1383 | 1383 | // ]| | |
| 1384 | - | func (x *Application) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 1384 | + | func (x *Application) AddActionEntries(EntriesVar []ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 1385 | 1385 | ||
| 1386 | 1386 | XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 1387 | 1387 | ||
M v4/gio/gapplicationcommandline.go +5 -5
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type ApplicationCommandLineClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [11]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *ApplicationCommandLineClass) GoPointer() uintptr { | |
| @@ -231,7 +231,7 @@ func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | |||
| 231 | 231 | return cls | |
| 232 | 232 | } | |
| 233 | 233 | ||
| 234 | - | var xApplicationCommandLineGetArguments func(uintptr, int) uintptr | |
| 234 | + | var xApplicationCommandLineGetArguments func(uintptr, int) []string | |
| 235 | 235 | ||
| 236 | 236 | // Gets the list of arguments that was passed on the command line. | |
| 237 | 237 | // | |
| @@ -244,7 +244,7 @@ var xApplicationCommandLineGetArguments func(uintptr, int) uintptr | |||
| 244 | 244 | // | |
| 245 | 245 | // The return value is %NULL-terminated and should be freed using | |
| 246 | 246 | // g_strfreev(). | |
| 247 | - | func (x *ApplicationCommandLine) GetArguments(ArgcVar int) uintptr { | |
| 247 | + | func (x *ApplicationCommandLine) GetArguments(ArgcVar int) []string { | |
| 248 | 248 | ||
| 249 | 249 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | |
| 250 | 250 | return cret | |
| @@ -266,7 +266,7 @@ func (x *ApplicationCommandLine) GetCwd() string { | |||
| 266 | 266 | return cret | |
| 267 | 267 | } | |
| 268 | 268 | ||
| 269 | - | var xApplicationCommandLineGetEnviron func(uintptr) uintptr | |
| 269 | + | var xApplicationCommandLineGetEnviron func(uintptr) []string | |
| 270 | 270 | ||
| 271 | 271 | // Gets the contents of the 'environ' variable of the command line | |
| 272 | 272 | // invocation, as would be returned by g_get_environ(), ie as a | |
| @@ -283,7 +283,7 @@ var xApplicationCommandLineGetEnviron func(uintptr) uintptr | |||
| 283 | 283 | // | |
| 284 | 284 | // See g_application_command_line_getenv() if you are only interested | |
| 285 | 285 | // in the value of a single environment variable. | |
| 286 | - | func (x *ApplicationCommandLine) GetEnviron() uintptr { | |
| 286 | + | func (x *ApplicationCommandLine) GetEnviron() []string { | |
| 287 | 287 | ||
| 288 | 288 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | |
| 289 | 289 | return cret | |
M v4/gio/gasyncinitable.go +3 -2
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Provides an interface for asynchronous initializing object such that | |
| @@ -226,7 +227,7 @@ var XGAsyncInitableInitAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 226 | 227 | var XGAsyncInitableInitFinish func(uintptr, uintptr, **glib.Error) bool | |
| 227 | 228 | var XGAsyncInitableNewFinish func(uintptr, uintptr, **glib.Error) uintptr | |
| 228 | 229 | ||
| 229 | - | var xAsyncInitableNewvAsync func([]interface{}, uint, *gobject.Parameter, int, uintptr, uintptr, uintptr) | |
| 230 | + | var xAsyncInitableNewvAsync func(types.GType, uint, *gobject.Parameter, int, uintptr, uintptr, uintptr) | |
| 230 | 231 | ||
| 231 | 232 | // Helper function for constructing #GAsyncInitable object. This is | |
| 232 | 233 | // similar to g_object_newv() but also initializes the object asynchronously. | |
| @@ -234,7 +235,7 @@ var xAsyncInitableNewvAsync func([]interface{}, uint, *gobject.Parameter, int, u | |||
| 234 | 235 | // When the initialization is finished, @callback will be called. You can | |
| 235 | 236 | // then call g_async_initable_new_finish() to get the new object and check | |
| 236 | 237 | // for any errors. | |
| 237 | - | func AsyncInitableNewvAsync(ObjectTypeVar []interface{}, NParametersVar uint, ParametersVar *gobject.Parameter, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 238 | + | func AsyncInitableNewvAsync(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar *gobject.Parameter, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 238 | 239 | ||
| 239 | 240 | xAsyncInitableNewvAsync(ObjectTypeVar, NParametersVar, ParametersVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 240 | 241 | ||
M v4/gio/gbufferedinputstream.go +4 -4
| @@ -165,22 +165,22 @@ func (x *BufferedInputStream) GetBufferSize() uint { | |||
| 165 | 165 | return cret | |
| 166 | 166 | } | |
| 167 | 167 | ||
| 168 | - | var xBufferedInputStreamPeek func(uintptr, uintptr, uint, uint) uint | |
| 168 | + | var xBufferedInputStreamPeek func(uintptr, []byte, uint, uint) uint | |
| 169 | 169 | ||
| 170 | 170 | // Peeks in the buffer, copying data of size @count into @buffer, | |
| 171 | 171 | // offset @offset bytes. | |
| 172 | - | func (x *BufferedInputStream) Peek(BufferVar uintptr, OffsetVar uint, CountVar uint) uint { | |
| 172 | + | func (x *BufferedInputStream) Peek(BufferVar []byte, OffsetVar uint, CountVar uint) uint { | |
| 173 | 173 | ||
| 174 | 174 | cret := xBufferedInputStreamPeek(x.GoPointer(), BufferVar, OffsetVar, CountVar) | |
| 175 | 175 | return cret | |
| 176 | 176 | } | |
| 177 | 177 | ||
| 178 | - | var xBufferedInputStreamPeekBuffer func(uintptr, uint) uintptr | |
| 178 | + | var xBufferedInputStreamPeekBuffer func(uintptr, uint) []byte | |
| 179 | 179 | ||
| 180 | 180 | // Returns the buffer with the currently available bytes. The returned | |
| 181 | 181 | // buffer must not be modified and will become invalid when reading from | |
| 182 | 182 | // the stream or filling the buffer. | |
| 183 | - | func (x *BufferedInputStream) PeekBuffer(CountVar uint) uintptr { | |
| 183 | + | func (x *BufferedInputStream) PeekBuffer(CountVar uint) []byte { | |
| 184 | 184 | ||
| 185 | 185 | cret := xBufferedInputStreamPeekBuffer(x.GoPointer(), CountVar) | |
| 186 | 186 | return cret | |
M v4/gio/gcharsetconverter.go +1 -1
| @@ -168,7 +168,7 @@ func (c *CharsetConverter) SetGoPointer(ptr uintptr) { | |||
| 168 | 168 | // at a partial multibyte sequence). Converters are supposed to try | |
| 169 | 169 | // to produce as much output as possible and then return an error | |
| 170 | 170 | // (typically %G_IO_ERROR_PARTIAL_INPUT). | |
| 171 | - | func (x *CharsetConverter) Convert(InbufVar uintptr, InbufSizeVar uint, OutbufVar uintptr, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 171 | + | func (x *CharsetConverter) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 172 | 172 | var cerr *glib.Error | |
| 173 | 173 | ||
| 174 | 174 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
M v4/gio/gcontenttype.go +8 -8
| @@ -73,11 +73,11 @@ func ContentTypeGetIcon(TypeVar string) *IconBase { | |||
| 73 | 73 | return cls | |
| 74 | 74 | } | |
| 75 | 75 | ||
| 76 | - | var xContentTypeGetMimeDirs func() uintptr | |
| 76 | + | var xContentTypeGetMimeDirs func() []string | |
| 77 | 77 | ||
| 78 | 78 | // Get the list of directories which MIME data is loaded from. See | |
| 79 | 79 | // g_content_type_set_mime_dirs() for details. | |
| 80 | - | func ContentTypeGetMimeDirs() uintptr { | |
| 80 | + | func ContentTypeGetMimeDirs() []string { | |
| 81 | 81 | ||
| 82 | 82 | cret := xContentTypeGetMimeDirs() | |
| 83 | 83 | return cret | |
| @@ -108,19 +108,19 @@ func ContentTypeGetSymbolicIcon(TypeVar string) *IconBase { | |||
| 108 | 108 | return cls | |
| 109 | 109 | } | |
| 110 | 110 | ||
| 111 | - | var xContentTypeGuess func(string, uintptr, uint, bool) string | |
| 111 | + | var xContentTypeGuess func(string, []byte, uint, bool) string | |
| 112 | 112 | ||
| 113 | 113 | // Guesses the content type based on example data. If the function is | |
| 114 | 114 | // uncertain, @result_uncertain will be set to %TRUE. Either @filename | |
| 115 | 115 | // or @data may be %NULL, in which case the guess will be based solely | |
| 116 | 116 | // on the other argument. | |
| 117 | - | func ContentTypeGuess(FilenameVar string, DataVar uintptr, DataSizeVar uint, ResultUncertainVar bool) string { | |
| 117 | + | func ContentTypeGuess(FilenameVar string, DataVar []byte, DataSizeVar uint, ResultUncertainVar bool) string { | |
| 118 | 118 | ||
| 119 | 119 | cret := xContentTypeGuess(FilenameVar, DataVar, DataSizeVar, ResultUncertainVar) | |
| 120 | 120 | return cret | |
| 121 | 121 | } | |
| 122 | 122 | ||
| 123 | - | var xContentTypeGuessForTree func(uintptr) uintptr | |
| 123 | + | var xContentTypeGuessForTree func(uintptr) []string | |
| 124 | 124 | ||
| 125 | 125 | // Tries to guess the type of the tree with root @root, by | |
| 126 | 126 | // looking at the files it contains. The result is an array | |
| @@ -134,7 +134,7 @@ var xContentTypeGuessForTree func(uintptr) uintptr | |||
| 134 | 134 | // | |
| 135 | 135 | // This function is useful in the implementation of | |
| 136 | 136 | // g_mount_guess_content_type(). | |
| 137 | - | func ContentTypeGuessForTree(RootVar File) uintptr { | |
| 137 | + | func ContentTypeGuessForTree(RootVar File) []string { | |
| 138 | 138 | ||
| 139 | 139 | cret := xContentTypeGuessForTree(RootVar.GoPointer()) | |
| 140 | 140 | return cret | |
| @@ -171,7 +171,7 @@ func ContentTypeIsUnknown(TypeVar string) bool { | |||
| 171 | 171 | return cret | |
| 172 | 172 | } | |
| 173 | 173 | ||
| 174 | - | var xContentTypeSetMimeDirs func(uintptr) | |
| 174 | + | var xContentTypeSetMimeDirs func([]string) | |
| 175 | 175 | ||
| 176 | 176 | // Set the list of directories used by GIO to load the MIME database. | |
| 177 | 177 | // If @dirs is %NULL, the directories used are the default: | |
| @@ -198,7 +198,7 @@ var xContentTypeSetMimeDirs func(uintptr) | |||
| 198 | 198 | // return g_test_run (); | |
| 199 | 199 | // | |
| 200 | 200 | // ]| | |
| 201 | - | func ContentTypeSetMimeDirs(DirsVar uintptr) { | |
| 201 | + | func ContentTypeSetMimeDirs(DirsVar []string) { | |
| 202 | 202 | ||
| 203 | 203 | xContentTypeSetMimeDirs(DirsVar) | |
| 204 | 204 | ||
M v4/gio/gconverter.go +3 -3
| @@ -30,7 +30,7 @@ func (x *ConverterIface) GoPointer() uintptr { | |||
| 30 | 30 | type Converter interface { | |
| 31 | 31 | GoPointer() uintptr | |
| 32 | 32 | SetGoPointer(uintptr) | |
| 33 | - | Convert(InbufVar uintptr, InbufSizeVar uint, OutbufVar uintptr, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) ConverterResult | |
| 33 | + | Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) ConverterResult | |
| 34 | 34 | Reset() | |
| 35 | 35 | } | |
| 36 | 36 | type ConverterBase struct { | |
| @@ -127,7 +127,7 @@ func (x *ConverterBase) SetGoPointer(ptr uintptr) { | |||
| 127 | 127 | // at a partial multibyte sequence). Converters are supposed to try | |
| 128 | 128 | // to produce as much output as possible and then return an error | |
| 129 | 129 | // (typically %G_IO_ERROR_PARTIAL_INPUT). | |
| 130 | - | func (x *ConverterBase) Convert(InbufVar uintptr, InbufSizeVar uint, OutbufVar uintptr, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 130 | + | func (x *ConverterBase) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 131 | 131 | var cerr *glib.Error | |
| 132 | 132 | ||
| 133 | 133 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -147,7 +147,7 @@ func (x *ConverterBase) Reset() { | |||
| 147 | 147 | ||
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | - | var XGConverterConvert func(uintptr, uintptr, uint, uintptr, uint, ConverterFlags, uint, uint, **glib.Error) ConverterResult | |
| 150 | + | var XGConverterConvert func(uintptr, []byte, uint, []byte, uint, ConverterFlags, uint, uint, **glib.Error) ConverterResult | |
| 151 | 151 | var XGConverterReset func(uintptr) | |
| 152 | 152 | ||
| 153 | 153 | func init() { | |
M v4/gio/gconverterinputstream.go +1 -1
| @@ -133,7 +133,7 @@ func (x *ConverterInputStream) IsReadable() bool { | |||
| 133 | 133 | // if @cancellable has already been cancelled when you call, which | |
| 134 | 134 | // may happen if you call this method after a source triggers due | |
| 135 | 135 | // to having been cancelled. | |
| 136 | - | func (x *ConverterInputStream) ReadNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 136 | + | func (x *ConverterInputStream) ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 137 | 137 | var cerr *glib.Error | |
| 138 | 138 | ||
| 139 | 139 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gconverteroutputstream.go +2 -2
| @@ -137,7 +137,7 @@ func (x *ConverterOutputStream) IsWritable() bool { | |||
| 137 | 137 | // Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying | |
| 138 | 138 | // transports like D/TLS require that you re-send the same @buffer and | |
| 139 | 139 | // @count in the next write call. | |
| 140 | - | func (x *ConverterOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 140 | + | func (x *ConverterOutputStream) WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 141 | 141 | var cerr *glib.Error | |
| 142 | 142 | ||
| 143 | 143 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -164,7 +164,7 @@ func (x *ConverterOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uin | |||
| 164 | 164 | // Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying | |
| 165 | 165 | // transports like D/TLS require that you re-send the same @vectors and | |
| 166 | 166 | // @n_vectors in the next write call. | |
| 167 | - | func (x *ConverterOutputStream) WritevNonblocking(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 167 | + | func (x *ConverterOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 168 | 168 | var cerr *glib.Error | |
| 169 | 169 | ||
| 170 | 170 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gdatagrambased.go +6 -6
| @@ -75,8 +75,8 @@ type DatagramBased interface { | |||
| 75 | 75 | ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition | |
| 76 | 76 | ConditionWait(ConditionVar glib.IOCondition, TimeoutVar int64, CancellableVar *Cancellable) bool | |
| 77 | 77 | CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source | |
| 78 | - | ReceiveMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 79 | - | SendMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 78 | + | ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 79 | + | SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 80 | 80 | } | |
| 81 | 81 | type DatagramBasedBase struct { | |
| 82 | 82 | Ptr uintptr | |
| @@ -219,7 +219,7 @@ func (x *DatagramBasedBase) CreateSource(ConditionVar glib.IOCondition, Cancella | |||
| 219 | 219 | // messages successfully received before the error will be returned. If | |
| 220 | 220 | // @cancellable is cancelled, %G_IO_ERROR_CANCELLED is returned as with any | |
| 221 | 221 | // other error. | |
| 222 | - | func (x *DatagramBasedBase) ReceiveMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) (int, error) { | |
| 222 | + | func (x *DatagramBasedBase) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) (int, error) { | |
| 223 | 223 | var cerr *glib.Error | |
| 224 | 224 | ||
| 225 | 225 | cret := XGDatagramBasedReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, TimeoutVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -271,7 +271,7 @@ func (x *DatagramBasedBase) ReceiveMessages(MessagesVar uintptr, NumMessagesVar | |||
| 271 | 271 | // be returned if zero messages could be sent; otherwise the number of messages | |
| 272 | 272 | // successfully sent before the error will be returned. If @cancellable is | |
| 273 | 273 | // cancelled, %G_IO_ERROR_CANCELLED is returned as with any other error. | |
| 274 | - | func (x *DatagramBasedBase) SendMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) (int, error) { | |
| 274 | + | func (x *DatagramBasedBase) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) (int, error) { | |
| 275 | 275 | var cerr *glib.Error | |
| 276 | 276 | ||
| 277 | 277 | cret := XGDatagramBasedSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, TimeoutVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -285,8 +285,8 @@ func (x *DatagramBasedBase) SendMessages(MessagesVar uintptr, NumMessagesVar uin | |||
| 285 | 285 | var XGDatagramBasedConditionCheck func(uintptr, glib.IOCondition) glib.IOCondition | |
| 286 | 286 | var XGDatagramBasedConditionWait func(uintptr, glib.IOCondition, int64, uintptr, **glib.Error) bool | |
| 287 | 287 | var XGDatagramBasedCreateSource func(uintptr, glib.IOCondition, uintptr) *glib.Source | |
| 288 | - | var XGDatagramBasedReceiveMessages func(uintptr, uintptr, uint, int, int64, uintptr, **glib.Error) int | |
| 289 | - | var XGDatagramBasedSendMessages func(uintptr, uintptr, uint, int, int64, uintptr, **glib.Error) int | |
| 288 | + | var XGDatagramBasedReceiveMessages func(uintptr, []InputMessage, uint, int, int64, uintptr, **glib.Error) int | |
| 289 | + | var XGDatagramBasedSendMessages func(uintptr, []OutputMessage, uint, int, int64, uintptr, **glib.Error) int | |
| 290 | 290 | ||
| 291 | 291 | func init() { | |
| 292 | 292 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
M v4/gio/gdatainputstream.go +4 -4
| @@ -143,7 +143,7 @@ func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) | |||
| 143 | 143 | ||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | - | var xDataInputStreamReadLine func(uintptr, uint, uintptr, **glib.Error) uintptr | |
| 146 | + | var xDataInputStreamReadLine func(uintptr, uint, uintptr, **glib.Error) []byte | |
| 147 | 147 | ||
| 148 | 148 | // Reads a line from the data input stream. Note that no encoding | |
| 149 | 149 | // checks or conversion is performed; the input is not guaranteed to | |
| @@ -152,7 +152,7 @@ var xDataInputStreamReadLine func(uintptr, uint, uintptr, **glib.Error) uintptr | |||
| 152 | 152 | // If @cancellable is not %NULL, then the operation can be cancelled by | |
| 153 | 153 | // triggering the cancellable object from another thread. If the operation | |
| 154 | 154 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 155 | - | func (x *DataInputStream) ReadLine(LengthVar uint, CancellableVar *Cancellable) (uintptr, error) { | |
| 155 | + | func (x *DataInputStream) ReadLine(LengthVar uint, CancellableVar *Cancellable) ([]byte, error) { | |
| 156 | 156 | var cerr *glib.Error | |
| 157 | 157 | ||
| 158 | 158 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -177,13 +177,13 @@ func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cance | |||
| 177 | 177 | ||
| 178 | 178 | } | |
| 179 | 179 | ||
| 180 | - | var xDataInputStreamReadLineFinish func(uintptr, uintptr, uint, **glib.Error) uintptr | |
| 180 | + | var xDataInputStreamReadLineFinish func(uintptr, uintptr, uint, **glib.Error) []byte | |
| 181 | 181 | ||
| 182 | 182 | // Finish an asynchronous call started by | |
| 183 | 183 | // g_data_input_stream_read_line_async(). Note the warning about | |
| 184 | 184 | // string encoding in g_data_input_stream_read_line() applies here as | |
| 185 | 185 | // well. | |
| 186 | - | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar uint) (uintptr, error) { | |
| 186 | + | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar uint) ([]byte, error) { | |
| 187 | 187 | var cerr *glib.Error | |
| 188 | 188 | ||
| 189 | 189 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
M v4/gio/gdbusconnection.go +3 -3
| @@ -108,7 +108,7 @@ type DBusSubtreeDispatchFunc func(uintptr, string, string, string, string, uintp | |||
| 108 | 108 | // contain the `/` character. | |
| 109 | 109 | // | |
| 110 | 110 | // The return value will be freed with g_strfreev(). | |
| 111 | - | type DBusSubtreeEnumerateFunc func(uintptr, string, string, uintptr) uintptr | |
| 111 | + | type DBusSubtreeEnumerateFunc func(uintptr, string, string, uintptr) []string | |
| 112 | 112 | ||
| 113 | 113 | // The type of the @introspect function in #GDBusSubtreeVTable. | |
| 114 | 114 | // | |
| @@ -178,7 +178,7 @@ type DBusInterfaceVTable struct { | |||
| 178 | 178 | ||
| 179 | 179 | SetProperty DBusInterfaceSetPropertyFunc | |
| 180 | 180 | ||
| 181 | - | Padding uintptr | |
| 181 | + | Padding [8]uintptr | |
| 182 | 182 | } | |
| 183 | 183 | ||
| 184 | 184 | func (x *DBusInterfaceVTable) GoPointer() uintptr { | |
| @@ -193,7 +193,7 @@ type DBusSubtreeVTable struct { | |||
| 193 | 193 | ||
| 194 | 194 | Dispatch DBusSubtreeDispatchFunc | |
| 195 | 195 | ||
| 196 | - | Padding uintptr | |
| 196 | + | Padding [8]uintptr | |
| 197 | 197 | } | |
| 198 | 198 | ||
| 199 | 199 | func (x *DBusSubtreeVTable) GoPointer() uintptr { | |
M v4/gio/gdbuserror.go +2 -2
| @@ -110,13 +110,13 @@ func DbusErrorRegisterError(ErrorDomainVar glib.Quark, ErrorCodeVar int, DbusErr | |||
| 110 | 110 | return cret | |
| 111 | 111 | } | |
| 112 | 112 | ||
| 113 | - | var xDbusErrorRegisterErrorDomain func(string, uint, uintptr, uint) | |
| 113 | + | var xDbusErrorRegisterErrorDomain func(string, uint, []DBusErrorEntry, uint) | |
| 114 | 114 | ||
| 115 | 115 | // Helper function for associating a #GError error domain with D-Bus error names. | |
| 116 | 116 | // | |
| 117 | 117 | // While @quark_volatile has a `volatile` qualifier, this is a historical | |
| 118 | 118 | // artifact and the argument passed to it should not be `volatile`. | |
| 119 | - | func DbusErrorRegisterErrorDomain(ErrorDomainQuarkNameVar string, QuarkVolatileVar uint, EntriesVar uintptr, NumEntriesVar uint) { | |
| 119 | + | func DbusErrorRegisterErrorDomain(ErrorDomainQuarkNameVar string, QuarkVolatileVar uint, EntriesVar []DBusErrorEntry, NumEntriesVar uint) { | |
| 120 | 120 | ||
| 121 | 121 | xDbusErrorRegisterErrorDomain(ErrorDomainQuarkNameVar, QuarkVolatileVar, EntriesVar, NumEntriesVar) | |
| 122 | 122 | ||
M v4/gio/gdbusinterfaceskeleton.go +2 -2
| @@ -14,9 +14,9 @@ import ( | |||
| 14 | 14 | type DBusInterfaceSkeletonClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | VfuncPadding uintptr | |
| 17 | + | VfuncPadding [8]uintptr | |
| 18 | 18 | ||
| 19 | - | SignalPadding uintptr | |
| 19 | + | SignalPadding [8]uintptr | |
| 20 | 20 | } | |
| 21 | 21 | ||
| 22 | 22 | func (x *DBusInterfaceSkeletonClass) GoPointer() uintptr { | |
M v4/gio/gdbusobjectmanagerclient.go +3 -3
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DBusObjectManagerClientClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DBusObjectManagerClientClass) GoPointer() uintptr { | |
| @@ -273,13 +273,13 @@ func (c *DBusObjectManagerClient) SetGoPointer(ptr uintptr) { | |||
| 273 | 273 | // This signal is emitted in the | |
| 274 | 274 | // [thread-default main context][g-main-context-push-thread-default] | |
| 275 | 275 | // that @manager was constructed in. | |
| 276 | - | func (x *DBusObjectManagerClient) ConnectInterfaceProxyPropertiesChanged(cb *func(DBusObjectManagerClient, uintptr, uintptr, uintptr, uintptr)) uint32 { | |
| 276 | + | func (x *DBusObjectManagerClient) ConnectInterfaceProxyPropertiesChanged(cb *func(DBusObjectManagerClient, uintptr, uintptr, uintptr, []string)) uint32 { | |
| 277 | 277 | cbPtr := uintptr(unsafe.Pointer(cb)) | |
| 278 | 278 | if cbRefPtr, ok := glib.GetCallback(cbPtr); ok { | |
| 279 | 279 | return gobject.SignalConnect(x.GoPointer(), "interface-proxy-properties-changed", cbRefPtr) | |
| 280 | 280 | } | |
| 281 | 281 | ||
| 282 | - | fcb := func(clsPtr uintptr, ObjectProxyVarp uintptr, InterfaceProxyVarp uintptr, ChangedPropertiesVarp uintptr, InvalidatedPropertiesVarp uintptr) { | |
| 282 | + | fcb := func(clsPtr uintptr, ObjectProxyVarp uintptr, InterfaceProxyVarp uintptr, ChangedPropertiesVarp uintptr, InvalidatedPropertiesVarp []string) { | |
| 283 | 283 | fa := DBusObjectManagerClient{} | |
| 284 | 284 | fa.Ptr = clsPtr | |
| 285 | 285 | cbFn := *cb | |
M v4/gio/gdbusobjectmanagerserver.go +1 -1
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DBusObjectManagerServerClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DBusObjectManagerServerClass) GoPointer() uintptr { | |
M v4/gio/gdbusobjectproxy.go +1 -1
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DBusObjectProxyClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DBusObjectProxyClass) GoPointer() uintptr { | |
M v4/gio/gdbusobjectskeleton.go +1 -1
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DBusObjectSkeletonClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DBusObjectSkeletonClass) GoPointer() uintptr { | |
M v4/gio/gdbusproxy.go +5 -5
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DBusProxyClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [32]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DBusProxyClass) GoPointer() uintptr { | |
| @@ -359,10 +359,10 @@ func (x *DBusProxy) GetCachedProperty(PropertyNameVar string) *glib.Variant { | |||
| 359 | 359 | return cret | |
| 360 | 360 | } | |
| 361 | 361 | ||
| 362 | - | var xDBusProxyGetCachedPropertyNames func(uintptr) uintptr | |
| 362 | + | var xDBusProxyGetCachedPropertyNames func(uintptr) []string | |
| 363 | 363 | ||
| 364 | 364 | // Gets the names of all cached properties on @proxy. | |
| 365 | - | func (x *DBusProxy) GetCachedPropertyNames() uintptr { | |
| 365 | + | func (x *DBusProxy) GetCachedPropertyNames() []string { | |
| 366 | 366 | ||
| 367 | 367 | cret := xDBusProxyGetCachedPropertyNames(x.GoPointer()) | |
| 368 | 368 | return cret | |
| @@ -548,13 +548,13 @@ func (c *DBusProxy) SetGoPointer(ptr uintptr) { | |||
| 548 | 548 | // This signal corresponds to the | |
| 549 | 549 | // `PropertiesChanged` D-Bus signal on the | |
| 550 | 550 | // `org.freedesktop.DBus.Properties` interface. | |
| 551 | - | func (x *DBusProxy) ConnectGPropertiesChanged(cb *func(DBusProxy, uintptr, uintptr)) uint32 { | |
| 551 | + | func (x *DBusProxy) ConnectGPropertiesChanged(cb *func(DBusProxy, uintptr, []string)) uint32 { | |
| 552 | 552 | cbPtr := uintptr(unsafe.Pointer(cb)) | |
| 553 | 553 | if cbRefPtr, ok := glib.GetCallback(cbPtr); ok { | |
| 554 | 554 | return gobject.SignalConnect(x.GoPointer(), "g-properties-changed", cbRefPtr) | |
| 555 | 555 | } | |
| 556 | 556 | ||
| 557 | - | fcb := func(clsPtr uintptr, ChangedPropertiesVarp uintptr, InvalidatedPropertiesVarp uintptr) { | |
| 557 | + | fcb := func(clsPtr uintptr, ChangedPropertiesVarp uintptr, InvalidatedPropertiesVarp []string) { | |
| 558 | 558 | fa := DBusProxy{} | |
| 559 | 559 | fa.Ptr = clsPtr | |
| 560 | 560 | cbFn := *cb | |
M v4/gio/gdbusutils.go +4 -4
| @@ -17,7 +17,7 @@ func DbusEscapeObjectPath(SVar string) string { | |||
| 17 | 17 | return cret | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | - | var xDbusEscapeObjectPathBytestring func(uintptr) string | |
| 20 | + | var xDbusEscapeObjectPathBytestring func([]byte) string | |
| 21 | 21 | ||
| 22 | 22 | // Escapes @bytes for use in a D-Bus object path component. | |
| 23 | 23 | // @bytes is an array of zero or more nonzero bytes in an | |
| @@ -35,7 +35,7 @@ var xDbusEscapeObjectPathBytestring func(uintptr) string | |||
| 35 | 35 | // D-Bus object paths. | |
| 36 | 36 | // | |
| 37 | 37 | // This can be reversed with g_dbus_unescape_object_path(). | |
| 38 | - | func DbusEscapeObjectPathBytestring(BytesVar uintptr) string { | |
| 38 | + | func DbusEscapeObjectPathBytestring(BytesVar []byte) string { | |
| 39 | 39 | ||
| 40 | 40 | cret := xDbusEscapeObjectPathBytestring(BytesVar) | |
| 41 | 41 | return cret | |
| @@ -176,7 +176,7 @@ func DbusIsUniqueName(StringVar string) bool { | |||
| 176 | 176 | return cret | |
| 177 | 177 | } | |
| 178 | 178 | ||
| 179 | - | var xDbusUnescapeObjectPath func(string) uintptr | |
| 179 | + | var xDbusUnescapeObjectPath func(string) []byte | |
| 180 | 180 | ||
| 181 | 181 | // Unescapes an string that was previously escaped with | |
| 182 | 182 | // g_dbus_escape_object_path(). If the string is in a format that could | |
| @@ -186,7 +186,7 @@ var xDbusUnescapeObjectPath func(string) uintptr | |||
| 186 | 186 | // Encoding alphanumeric characters which do not need to be | |
| 187 | 187 | // encoded is not allowed (e.g `_63` is not valid, the string | |
| 188 | 188 | // should contain `c` instead). | |
| 189 | - | func DbusUnescapeObjectPath(SVar string) uintptr { | |
| 189 | + | func DbusUnescapeObjectPath(SVar string) []byte { | |
| 190 | 190 | ||
| 191 | 191 | cret := xDbusUnescapeObjectPath(SVar) | |
| 192 | 192 | return cret | |
M v4/gio/gdebugcontrollerdbus.go +1 -1
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type DebugControllerDBusClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [12]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *DebugControllerDBusClass) GoPointer() uintptr { | |
M v4/gio/gdesktopappinfo.go +6 -6
| @@ -218,10 +218,10 @@ func (x *DesktopAppInfo) GetIsHidden() bool { | |||
| 218 | 218 | return cret | |
| 219 | 219 | } | |
| 220 | 220 | ||
| 221 | - | var xDesktopAppInfoGetKeywords func(uintptr) uintptr | |
| 221 | + | var xDesktopAppInfoGetKeywords func(uintptr) []string | |
| 222 | 222 | ||
| 223 | 223 | // Gets the keywords from the desktop file. | |
| 224 | - | func (x *DesktopAppInfo) GetKeywords() uintptr { | |
| 224 | + | func (x *DesktopAppInfo) GetKeywords() []string { | |
| 225 | 225 | ||
| 226 | 226 | cret := xDesktopAppInfoGetKeywords(x.GoPointer()) | |
| 227 | 227 | return cret | |
| @@ -291,12 +291,12 @@ func (x *DesktopAppInfo) GetString(KeyVar string) string { | |||
| 291 | 291 | return cret | |
| 292 | 292 | } | |
| 293 | 293 | ||
| 294 | - | var xDesktopAppInfoGetStringList func(uintptr, string, uint) uintptr | |
| 294 | + | var xDesktopAppInfoGetStringList func(uintptr, string, uint) []string | |
| 295 | 295 | ||
| 296 | 296 | // Looks up a string list value in the keyfile backing @info. | |
| 297 | 297 | // | |
| 298 | 298 | // The @key is looked up in the "Desktop Entry" group. | |
| 299 | - | func (x *DesktopAppInfo) GetStringList(KeyVar string, LengthVar uint) uintptr { | |
| 299 | + | func (x *DesktopAppInfo) GetStringList(KeyVar string, LengthVar uint) []string { | |
| 300 | 300 | ||
| 301 | 301 | cret := xDesktopAppInfoGetStringList(x.GoPointer(), KeyVar, LengthVar) | |
| 302 | 302 | return cret | |
| @@ -382,14 +382,14 @@ func (x *DesktopAppInfo) LaunchUrisAsManagerWithFds(UrisVar *glib.List, LaunchCo | |||
| 382 | 382 | ||
| 383 | 383 | } | |
| 384 | 384 | ||
| 385 | - | var xDesktopAppInfoListActions func(uintptr) uintptr | |
| 385 | + | var xDesktopAppInfoListActions func(uintptr) []string | |
| 386 | 386 | ||
| 387 | 387 | // Returns the list of "additional application actions" supported on the | |
| 388 | 388 | // desktop file, as per the desktop file specification. | |
| 389 | 389 | // | |
| 390 | 390 | // As per the specification, this is the list of actions that are | |
| 391 | 391 | // explicitly listed in the "Actions" key of the [Desktop Entry] group. | |
| 392 | - | func (x *DesktopAppInfo) ListActions() uintptr { | |
| 392 | + | func (x *DesktopAppInfo) ListActions() []string { | |
| 393 | 393 | ||
| 394 | 394 | cret := xDesktopAppInfoListActions(x.GoPointer()) | |
| 395 | 395 | return cret | |
M v4/gio/gdtlsconnection.go +6 -6
| @@ -46,7 +46,7 @@ type DtlsConnection interface { | |||
| 46 | 46 | CloseFinish(ResultVar AsyncResult) bool | |
| 47 | 47 | EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool | |
| 48 | 48 | GetCertificate() *TlsCertificate | |
| 49 | - | GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar uintptr) bool | |
| 49 | + | GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar []byte) bool | |
| 50 | 50 | GetCiphersuiteName() string | |
| 51 | 51 | GetDatabase() *TlsDatabase | |
| 52 | 52 | GetInteraction() *TlsInteraction | |
| @@ -59,7 +59,7 @@ type DtlsConnection interface { | |||
| 59 | 59 | Handshake(CancellableVar *Cancellable) bool | |
| 60 | 60 | HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 61 | 61 | HandshakeFinish(ResultVar AsyncResult) bool | |
| 62 | - | SetAdvertisedProtocols(ProtocolsVar uintptr) | |
| 62 | + | SetAdvertisedProtocols(ProtocolsVar []string) | |
| 63 | 63 | SetCertificate(CertificateVar *TlsCertificate) | |
| 64 | 64 | SetDatabase(DatabaseVar *TlsDatabase) | |
| 65 | 65 | SetInteraction(InteractionVar *TlsInteraction) | |
| @@ -169,7 +169,7 @@ func (x *DtlsConnectionBase) GetCertificate() *TlsCertificate { | |||
| 169 | 169 | // will be available though. That could happen if TLS connection does not | |
| 170 | 170 | // support @type or the binding data is not available yet due to additional | |
| 171 | 171 | // negotiation or input required. | |
| 172 | - | func (x *DtlsConnectionBase) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar uintptr) (bool, error) { | |
| 172 | + | func (x *DtlsConnectionBase) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar []byte) (bool, error) { | |
| 173 | 173 | var cerr *glib.Error | |
| 174 | 174 | ||
| 175 | 175 | cret := XGDtlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | |
| @@ -361,7 +361,7 @@ func (x *DtlsConnectionBase) HandshakeFinish(ResultVar AsyncResult) (bool, error | |||
| 361 | 361 | // | |
| 362 | 362 | // See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) | |
| 363 | 363 | // for a list of registered protocol IDs. | |
| 364 | - | func (x *DtlsConnectionBase) SetAdvertisedProtocols(ProtocolsVar uintptr) { | |
| 364 | + | func (x *DtlsConnectionBase) SetAdvertisedProtocols(ProtocolsVar []string) { | |
| 365 | 365 | ||
| 366 | 366 | XGDtlsConnectionSetAdvertisedProtocols(x.GoPointer(), ProtocolsVar) | |
| 367 | 367 | ||
| @@ -514,7 +514,7 @@ var XGDtlsConnectionCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 514 | 514 | var XGDtlsConnectionCloseFinish func(uintptr, uintptr, **glib.Error) bool | |
| 515 | 515 | var XGDtlsConnectionEmitAcceptCertificate func(uintptr, uintptr, TlsCertificateFlags) bool | |
| 516 | 516 | var XGDtlsConnectionGetCertificate func(uintptr) uintptr | |
| 517 | - | var XGDtlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, uintptr, **glib.Error) bool | |
| 517 | + | var XGDtlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, []byte, **glib.Error) bool | |
| 518 | 518 | var XGDtlsConnectionGetCiphersuiteName func(uintptr) string | |
| 519 | 519 | var XGDtlsConnectionGetDatabase func(uintptr) uintptr | |
| 520 | 520 | var XGDtlsConnectionGetInteraction func(uintptr) uintptr | |
| @@ -527,7 +527,7 @@ var XGDtlsConnectionGetRequireCloseNotify func(uintptr) bool | |||
| 527 | 527 | var XGDtlsConnectionHandshake func(uintptr, uintptr, **glib.Error) bool | |
| 528 | 528 | var XGDtlsConnectionHandshakeAsync func(uintptr, int, uintptr, uintptr, uintptr) | |
| 529 | 529 | var XGDtlsConnectionHandshakeFinish func(uintptr, uintptr, **glib.Error) bool | |
| 530 | - | var XGDtlsConnectionSetAdvertisedProtocols func(uintptr, uintptr) | |
| 530 | + | var XGDtlsConnectionSetAdvertisedProtocols func(uintptr, []string) | |
| 531 | 531 | var XGDtlsConnectionSetCertificate func(uintptr, uintptr) | |
| 532 | 532 | var XGDtlsConnectionSetDatabase func(uintptr, uintptr) | |
| 533 | 533 | var XGDtlsConnectionSetInteraction func(uintptr, uintptr) | |
M v4/gio/ginetaddress.go +2 -2
| @@ -61,12 +61,12 @@ func NewInetAddressAny(FamilyVar SocketFamily) *InetAddress { | |||
| 61 | 61 | return cls | |
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | - | var xNewInetAddressFromBytes func(uintptr, SocketFamily) uintptr | |
| 64 | + | var xNewInetAddressFromBytes func([]byte, SocketFamily) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new #GInetAddress from the given @family and @bytes. | |
| 67 | 67 | // @bytes should be 4 bytes for %G_SOCKET_FAMILY_IPV4 and 16 bytes for | |
| 68 | 68 | // %G_SOCKET_FAMILY_IPV6. | |
| 69 | - | func NewInetAddressFromBytes(BytesVar uintptr, FamilyVar SocketFamily) *InetAddress { | |
| 69 | + | func NewInetAddressFromBytes(BytesVar []byte, FamilyVar SocketFamily) *InetAddress { | |
| 70 | 70 | var cls *InetAddress | |
| 71 | 71 | ||
| 72 | 72 | cret := xNewInetAddressFromBytes(BytesVar, FamilyVar) | |
M v4/gio/ginitable.go +3 -2
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Provides an interface for initializing object such that initialization | |
| @@ -112,12 +113,12 @@ func (x *InitableBase) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 112 | 113 | ||
| 113 | 114 | var XGInitableInit func(uintptr, uintptr, **glib.Error) bool | |
| 114 | 115 | ||
| 115 | - | var xInitableNewv func([]interface{}, uint, uintptr, uintptr, **glib.Error) uintptr | |
| 116 | + | var xInitableNewv func(types.GType, uint, []gobject.Parameter, uintptr, **glib.Error) uintptr | |
| 116 | 117 | ||
| 117 | 118 | // Helper function for constructing #GInitable object. This is | |
| 118 | 119 | // similar to g_object_newv() but also initializes the object | |
| 119 | 120 | // and returns %NULL, setting an error on failure. | |
| 120 | - | func InitableNewv(ObjectTypeVar []interface{}, NParametersVar uint, ParametersVar uintptr, CancellableVar *Cancellable) (*gobject.Object, error) { | |
| 121 | + | func InitableNewv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar []gobject.Parameter, CancellableVar *Cancellable) (*gobject.Object, error) { | |
| 121 | 122 | var cls *gobject.Object | |
| 122 | 123 | var cerr *glib.Error | |
| 123 | 124 | ||
M v4/gio/ginputstream.go +8 -8
| @@ -141,7 +141,7 @@ func (x *InputStream) IsClosed() bool { | |||
| 141 | 141 | return cret | |
| 142 | 142 | } | |
| 143 | 143 | ||
| 144 | - | var xInputStreamRead func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 144 | + | var xInputStreamRead func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 145 | 145 | ||
| 146 | 146 | // Tries to read @count bytes from the stream into the buffer starting at | |
| 147 | 147 | // @buffer. Will block during this read. | |
| @@ -164,7 +164,7 @@ var xInputStreamRead func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |||
| 164 | 164 | // partial result will be returned, without an error. | |
| 165 | 165 | // | |
| 166 | 166 | // On error -1 is returned and @error is set accordingly. | |
| 167 | - | func (x *InputStream) Read(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 167 | + | func (x *InputStream) Read(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 168 | 168 | var cerr *glib.Error | |
| 169 | 169 | ||
| 170 | 170 | cret := xInputStreamRead(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -175,7 +175,7 @@ func (x *InputStream) Read(BufferVar uintptr, CountVar uint, CancellableVar *Can | |||
| 175 | 175 | ||
| 176 | 176 | } | |
| 177 | 177 | ||
| 178 | - | var xInputStreamReadAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Error) bool | |
| 178 | + | var xInputStreamReadAll func(uintptr, []byte, uint, uint, uintptr, **glib.Error) bool | |
| 179 | 179 | ||
| 180 | 180 | // Tries to read @count bytes from the stream into the buffer starting at | |
| 181 | 181 | // @buffer. Will block during this read. | |
| @@ -196,7 +196,7 @@ var xInputStreamReadAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Error | |||
| 196 | 196 | // read before the error was encountered. This functionality is only | |
| 197 | 197 | // available from C. If you need it from another language then you must | |
| 198 | 198 | // write your own loop around g_input_stream_read(). | |
| 199 | - | func (x *InputStream) ReadAll(BufferVar uintptr, CountVar uint, BytesReadVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 199 | + | func (x *InputStream) ReadAll(BufferVar []byte, CountVar uint, BytesReadVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 200 | 200 | var cerr *glib.Error | |
| 201 | 201 | ||
| 202 | 202 | cret := xInputStreamReadAll(x.GoPointer(), BufferVar, CountVar, BytesReadVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -207,7 +207,7 @@ func (x *InputStream) ReadAll(BufferVar uintptr, CountVar uint, BytesReadVar uin | |||
| 207 | 207 | ||
| 208 | 208 | } | |
| 209 | 209 | ||
| 210 | - | var xInputStreamReadAllAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 210 | + | var xInputStreamReadAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uintptr) | |
| 211 | 211 | ||
| 212 | 212 | // Request an asynchronous read of @count bytes from the stream into the | |
| 213 | 213 | // buffer starting at @buffer. | |
| @@ -219,7 +219,7 @@ var xInputStreamReadAllAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, | |||
| 219 | 219 | // Any outstanding I/O request with higher priority (lower numerical | |
| 220 | 220 | // value) will be executed before an outstanding request with lower | |
| 221 | 221 | // priority. Default priority is %G_PRIORITY_DEFAULT. | |
| 222 | - | func (x *InputStream) ReadAllAsync(BufferVar uintptr, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 222 | + | func (x *InputStream) ReadAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 223 | 223 | ||
| 224 | 224 | xInputStreamReadAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 225 | 225 | ||
| @@ -247,7 +247,7 @@ func (x *InputStream) ReadAllFinish(ResultVar AsyncResult, BytesReadVar uint) (b | |||
| 247 | 247 | ||
| 248 | 248 | } | |
| 249 | 249 | ||
| 250 | - | var xInputStreamReadAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 250 | + | var xInputStreamReadAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uintptr) | |
| 251 | 251 | ||
| 252 | 252 | // Request an asynchronous read of @count bytes from the stream into the buffer | |
| 253 | 253 | // starting at @buffer. When the operation is finished @callback will be called. | |
| @@ -272,7 +272,7 @@ var xInputStreamReadAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, ui | |||
| 272 | 272 | // The asynchronous methods have a default fallback that uses threads to implement | |
| 273 | 273 | // asynchronicity, so they are optional for inheriting classes. However, if you | |
| 274 | 274 | // override one you must override all. | |
| 275 | - | func (x *InputStream) ReadAsync(BufferVar uintptr, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 275 | + | func (x *InputStream) ReadAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 276 | 276 | ||
| 277 | 277 | xInputStreamReadAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 278 | 278 | ||
M v4/gio/gio-2.0.go +15 -15
| @@ -484,7 +484,7 @@ func (x *DBusActionGroup) HasAction(ActionNameVar string) bool { | |||
| 484 | 484 | // | |
| 485 | 485 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 486 | 486 | // it is no longer required. | |
| 487 | - | func (x *DBusActionGroup) ListActions() uintptr { | |
| 487 | + | func (x *DBusActionGroup) ListActions() []string { | |
| 488 | 488 | ||
| 489 | 489 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 490 | 490 | return cret | |
| @@ -2179,7 +2179,7 @@ func NewDBusMessage() *DBusMessage { | |||
| 2179 | 2179 | return cls | |
| 2180 | 2180 | } | |
| 2181 | 2181 | ||
| 2182 | - | var xNewDBusMessageFromBlob func(uintptr, uint, DBusCapabilityFlags, **glib.Error) uintptr | |
| 2182 | + | var xNewDBusMessageFromBlob func([]byte, uint, DBusCapabilityFlags, **glib.Error) uintptr | |
| 2183 | 2183 | ||
| 2184 | 2184 | // Creates a new #GDBusMessage from the data stored at @blob. The byte | |
| 2185 | 2185 | // order that the message was in can be retrieved using | |
| @@ -2187,7 +2187,7 @@ var xNewDBusMessageFromBlob func(uintptr, uint, DBusCapabilityFlags, **glib.Erro | |||
| 2187 | 2187 | // | |
| 2188 | 2188 | // If the @blob cannot be parsed, contains invalid fields, or contains invalid | |
| 2189 | 2189 | // headers, %G_IO_ERROR_INVALID_ARGUMENT will be returned. | |
| 2190 | - | func NewDBusMessageFromBlob(BlobVar uintptr, BlobLenVar uint, CapabilitiesVar DBusCapabilityFlags) (*DBusMessage, error) { | |
| 2190 | + | func NewDBusMessageFromBlob(BlobVar []byte, BlobLenVar uint, CapabilitiesVar DBusCapabilityFlags) (*DBusMessage, error) { | |
| 2191 | 2191 | var cls *DBusMessage | |
| 2192 | 2192 | var cerr *glib.Error | |
| 2193 | 2193 | ||
| @@ -2329,10 +2329,10 @@ func (x *DBusMessage) GetHeader(HeaderFieldVar DBusMessageHeaderField) *glib.Var | |||
| 2329 | 2329 | return cret | |
| 2330 | 2330 | } | |
| 2331 | 2331 | ||
| 2332 | - | var xDBusMessageGetHeaderFields func(uintptr) uintptr | |
| 2332 | + | var xDBusMessageGetHeaderFields func(uintptr) []byte | |
| 2333 | 2333 | ||
| 2334 | 2334 | // Gets an array of all header fields on @message that are set. | |
| 2335 | - | func (x *DBusMessage) GetHeaderFields() uintptr { | |
| 2335 | + | func (x *DBusMessage) GetHeaderFields() []byte { | |
| 2336 | 2336 | ||
| 2337 | 2337 | cret := xDBusMessageGetHeaderFields(x.GoPointer()) | |
| 2338 | 2338 | return cret | |
| @@ -2738,11 +2738,11 @@ func (x *DBusMessage) SetUnixFdList(FdListVar *UnixFDList) { | |||
| 2738 | 2738 | ||
| 2739 | 2739 | } | |
| 2740 | 2740 | ||
| 2741 | - | var xDBusMessageToBlob func(uintptr, uint, DBusCapabilityFlags, **glib.Error) uintptr | |
| 2741 | + | var xDBusMessageToBlob func(uintptr, uint, DBusCapabilityFlags, **glib.Error) []byte | |
| 2742 | 2742 | ||
| 2743 | 2743 | // Serializes @message to a blob. The byte order returned by | |
| 2744 | 2744 | // g_dbus_message_get_byte_order() will be used. | |
| 2745 | - | func (x *DBusMessage) ToBlob(OutSizeVar uint, CapabilitiesVar DBusCapabilityFlags) (uintptr, error) { | |
| 2745 | + | func (x *DBusMessage) ToBlob(OutSizeVar uint, CapabilitiesVar DBusCapabilityFlags) ([]byte, error) { | |
| 2746 | 2746 | var cerr *glib.Error | |
| 2747 | 2747 | ||
| 2748 | 2748 | cret := xDBusMessageToBlob(x.GoPointer(), OutSizeVar, CapabilitiesVar, &cerr) | |
| @@ -2781,11 +2781,11 @@ func (c *DBusMessage) SetGoPointer(ptr uintptr) { | |||
| 2781 | 2781 | c.Ptr = ptr | |
| 2782 | 2782 | } | |
| 2783 | 2783 | ||
| 2784 | - | var xDBusMessageBytesNeeded func(uintptr, uint, **glib.Error) int | |
| 2784 | + | var xDBusMessageBytesNeeded func([]byte, uint, **glib.Error) int | |
| 2785 | 2785 | ||
| 2786 | 2786 | // Utility function to calculate how many bytes are needed to | |
| 2787 | 2787 | // completely deserialize the D-Bus message stored at @blob. | |
| 2788 | - | func DBusMessageBytesNeeded(BlobVar uintptr, BlobLenVar uint) (int, error) { | |
| 2788 | + | func DBusMessageBytesNeeded(BlobVar []byte, BlobLenVar uint) (int, error) { | |
| 2789 | 2789 | var cerr *glib.Error | |
| 2790 | 2790 | ||
| 2791 | 2791 | cret := xDBusMessageBytesNeeded(BlobVar, BlobLenVar, &cerr) | |
| @@ -4929,12 +4929,12 @@ func NewSubprocess(FlagsVar SubprocessFlags, ErrorVar **glib.Error, Argv0Var str | |||
| 4929 | 4929 | return cls | |
| 4930 | 4930 | } | |
| 4931 | 4931 | ||
| 4932 | - | var xNewSubprocessv func(uintptr, SubprocessFlags, **glib.Error) uintptr | |
| 4932 | + | var xNewSubprocessv func([]string, SubprocessFlags, **glib.Error) uintptr | |
| 4933 | 4933 | ||
| 4934 | 4934 | // Create a new process with the given flags and argument list. | |
| 4935 | 4935 | // | |
| 4936 | 4936 | // The argument list is expected to be %NULL-terminated. | |
| 4937 | - | func NewSubprocessv(ArgvVar uintptr, FlagsVar SubprocessFlags) (*Subprocess, error) { | |
| 4937 | + | func NewSubprocessv(ArgvVar []string, FlagsVar SubprocessFlags) (*Subprocess, error) { | |
| 4938 | 4938 | var cls *Subprocess | |
| 4939 | 4939 | var cerr *glib.Error | |
| 4940 | 4940 | ||
| @@ -5519,7 +5519,7 @@ func (x *SubprocessLauncher) SetCwd(CwdVar string) { | |||
| 5519 | 5519 | ||
| 5520 | 5520 | } | |
| 5521 | 5521 | ||
| 5522 | - | var xSubprocessLauncherSetEnviron func(uintptr, uintptr) | |
| 5522 | + | var xSubprocessLauncherSetEnviron func(uintptr, []string) | |
| 5523 | 5523 | ||
| 5524 | 5524 | // Replace the entire environment of processes launched from this | |
| 5525 | 5525 | // launcher with the given 'environ' variable. | |
| @@ -5540,7 +5540,7 @@ var xSubprocessLauncherSetEnviron func(uintptr, uintptr) | |||
| 5540 | 5540 | // | |
| 5541 | 5541 | // On UNIX, all strings in this array can be arbitrary byte strings. | |
| 5542 | 5542 | // On Windows, they should be in UTF-8. | |
| 5543 | - | func (x *SubprocessLauncher) SetEnviron(EnvVar uintptr) { | |
| 5543 | + | func (x *SubprocessLauncher) SetEnviron(EnvVar []string) { | |
| 5544 | 5544 | ||
| 5545 | 5545 | xSubprocessLauncherSetEnviron(x.GoPointer(), EnvVar) | |
| 5546 | 5546 | ||
| @@ -5655,10 +5655,10 @@ func (x *SubprocessLauncher) Spawn(ErrorVar **glib.Error, Argv0Var string, varAr | |||
| 5655 | 5655 | return cls | |
| 5656 | 5656 | } | |
| 5657 | 5657 | ||
| 5658 | - | var xSubprocessLauncherSpawnv func(uintptr, uintptr, **glib.Error) uintptr | |
| 5658 | + | var xSubprocessLauncherSpawnv func(uintptr, []string, **glib.Error) uintptr | |
| 5659 | 5659 | ||
| 5660 | 5660 | // Creates a #GSubprocess given a provided array of arguments. | |
| 5661 | - | func (x *SubprocessLauncher) Spawnv(ArgvVar uintptr) (*Subprocess, error) { | |
| 5661 | + | func (x *SubprocessLauncher) Spawnv(ArgvVar []string) (*Subprocess, error) { | |
| 5662 | 5662 | var cls *Subprocess | |
| 5663 | 5663 | var cerr *glib.Error | |
| 5664 | 5664 | ||
M v4/gio/giomodule.go +5 -4
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type IOModuleClass struct { | |
| @@ -49,14 +50,14 @@ func (x *IOModuleScope) Free() { | |||
| 49 | 50 | ||
| 50 | 51 | } | |
| 51 | 52 | ||
| 52 | - | var xIoExtensionPointImplement func(string, []interface{}, string, int) *IOExtension | |
| 53 | + | var xIoExtensionPointImplement func(string, types.GType, string, int) *IOExtension | |
| 53 | 54 | ||
| 54 | 55 | // Registers @type as extension for the extension point with name | |
| 55 | 56 | // @extension_point_name. | |
| 56 | 57 | // | |
| 57 | 58 | // If @type has already been registered as an extension for this | |
| 58 | 59 | // extension point, the existing #GIOExtension object is returned. | |
| 59 | - | func IoExtensionPointImplement(ExtensionPointNameVar string, TypeVar []interface{}, ExtensionNameVar string, PriorityVar int) *IOExtension { | |
| 60 | + | func IoExtensionPointImplement(ExtensionPointNameVar string, TypeVar types.GType, ExtensionNameVar string, PriorityVar int) *IOExtension { | |
| 60 | 61 | ||
| 61 | 62 | cret := xIoExtensionPointImplement(ExtensionPointNameVar, TypeVar, ExtensionNameVar, PriorityVar) | |
| 62 | 63 | return cret | |
| @@ -226,7 +227,7 @@ func (c *IOModule) SetGoPointer(ptr uintptr) { | |||
| 226 | 227 | // Calls the @complete_interface_info function from the | |
| 227 | 228 | // #GTypePluginClass of @plugin. There should be no need to use this | |
| 228 | 229 | // function outside of the GObject type system itself. | |
| 229 | - | func (x *IOModule) CompleteInterfaceInfo(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InfoVar *gobject.InterfaceInfo) { | |
| 230 | + | func (x *IOModule) CompleteInterfaceInfo(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *gobject.InterfaceInfo) { | |
| 230 | 231 | ||
| 231 | 232 | gobject.XGTypePluginCompleteInterfaceInfo(x.GoPointer(), InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 232 | 233 | ||
| @@ -235,7 +236,7 @@ func (x *IOModule) CompleteInterfaceInfo(InstanceTypeVar []interface{}, Interfac | |||
| 235 | 236 | // Calls the @complete_type_info function from the #GTypePluginClass of @plugin. | |
| 236 | 237 | // There should be no need to use this function outside of the GObject | |
| 237 | 238 | // type system itself. | |
| 238 | - | func (x *IOModule) CompleteTypeInfo(GTypeVar []interface{}, InfoVar *gobject.TypeInfo, ValueTableVar *gobject.TypeValueTable) { | |
| 239 | + | func (x *IOModule) CompleteTypeInfo(GTypeVar types.GType, InfoVar *gobject.TypeInfo, ValueTableVar *gobject.TypeValueTable) { | |
| 239 | 240 | ||
| 240 | 241 | gobject.XGTypePluginCompleteTypeInfo(x.GoPointer(), GTypeVar, InfoVar, ValueTableVar) | |
| 241 | 242 | ||
M v4/gio/giotypes.go +9 -8
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Type definition for a function that will be called back when an asynchronous | |
| @@ -35,7 +36,7 @@ type CancellableSourceFunc func(uintptr, uintptr) bool | |||
| 35 | 36 | // This function is called in the | |
| 36 | 37 | // [thread-default main loop][g-main-context-push-thread-default] | |
| 37 | 38 | // that @manager was constructed in. | |
| 38 | - | type DBusProxyTypeFunc func(uintptr, string, string, uintptr) []interface{} | |
| 39 | + | type DBusProxyTypeFunc func(uintptr, string, string, uintptr) types.GType | |
| 39 | 40 | ||
| 40 | 41 | // This is the function type of the callback used for the #GSource | |
| 41 | 42 | // returned by g_datagram_based_create_source(). | |
| @@ -256,10 +257,10 @@ func (x *IOExtension) GetPriority() int { | |||
| 256 | 257 | return cret | |
| 257 | 258 | } | |
| 258 | 259 | ||
| 259 | - | var xIOExtensionGetType func(uintptr) []interface{} | |
| 260 | + | var xIOExtensionGetType func(uintptr) types.GType | |
| 260 | 261 | ||
| 261 | 262 | // Gets the type associated with @extension. | |
| 262 | - | func (x *IOExtension) GetType() []interface{} { | |
| 263 | + | func (x *IOExtension) GetType() types.GType { | |
| 263 | 264 | ||
| 264 | 265 | cret := xIOExtensionGetType(x.GoPointer()) | |
| 265 | 266 | return cret | |
| @@ -303,20 +304,20 @@ func (x *IOExtensionPoint) GetExtensions() *glib.List { | |||
| 303 | 304 | return cret | |
| 304 | 305 | } | |
| 305 | 306 | ||
| 306 | - | var xIOExtensionPointGetRequiredType func(uintptr) []interface{} | |
| 307 | + | var xIOExtensionPointGetRequiredType func(uintptr) types.GType | |
| 307 | 308 | ||
| 308 | 309 | // Gets the required type for @extension_point. | |
| 309 | - | func (x *IOExtensionPoint) GetRequiredType() []interface{} { | |
| 310 | + | func (x *IOExtensionPoint) GetRequiredType() types.GType { | |
| 310 | 311 | ||
| 311 | 312 | cret := xIOExtensionPointGetRequiredType(x.GoPointer()) | |
| 312 | 313 | return cret | |
| 313 | 314 | } | |
| 314 | 315 | ||
| 315 | - | var xIOExtensionPointSetRequiredType func(uintptr, []interface{}) | |
| 316 | + | var xIOExtensionPointSetRequiredType func(uintptr, types.GType) | |
| 316 | 317 | ||
| 317 | 318 | // Sets the required type for @extension_point to @type. | |
| 318 | 319 | // All implementations must henceforth have this type. | |
| 319 | - | func (x *IOExtensionPoint) SetRequiredType(TypeVar []interface{}) { | |
| 320 | + | func (x *IOExtensionPoint) SetRequiredType(TypeVar types.GType) { | |
| 320 | 321 | ||
| 321 | 322 | xIOExtensionPointSetRequiredType(x.GoPointer(), TypeVar) | |
| 322 | 323 | ||
| @@ -387,7 +388,7 @@ func (x *IOStreamAdapter) GoPointer() uintptr { | |||
| 387 | 388 | type InputMessage struct { | |
| 388 | 389 | Address **SocketAddress | |
| 389 | 390 | ||
| 390 | - | Vectors uintptr | |
| 391 | + | Vectors []InputVector | |
| 391 | 392 | ||
| 392 | 393 | NumVectors uint | |
| 393 | 394 | ||
M v4/gio/glistmodel.go +4 -3
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The virtual function table for #GListModel. | |
| @@ -69,7 +70,7 @@ type ListModel interface { | |||
| 69 | 70 | GoPointer() uintptr | |
| 70 | 71 | SetGoPointer(uintptr) | |
| 71 | 72 | GetItem(PositionVar uint) uintptr | |
| 72 | - | GetItemType() []interface{} | |
| 73 | + | GetItemType() types.GType | |
| 73 | 74 | GetNItems() uint | |
| 74 | 75 | GetObject(PositionVar uint) *gobject.Object | |
| 75 | 76 | ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar uint) | |
| @@ -109,7 +110,7 @@ func (x *ListModelBase) GetItem(PositionVar uint) uintptr { | |||
| 109 | 110 | // | |
| 110 | 111 | // The item type of a #GListModel can not change during the life of the | |
| 111 | 112 | // model. | |
| 112 | - | func (x *ListModelBase) GetItemType() []interface{} { | |
| 113 | + | func (x *ListModelBase) GetItemType() types.GType { | |
| 113 | 114 | ||
| 114 | 115 | cret := XGListModelGetItemType(x.GoPointer()) | |
| 115 | 116 | return cret | |
| @@ -178,7 +179,7 @@ func (x *ListModelBase) ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar | |||
| 178 | 179 | } | |
| 179 | 180 | ||
| 180 | 181 | var XGListModelGetItem func(uintptr, uint) uintptr | |
| 181 | - | var XGListModelGetItemType func(uintptr) []interface{} | |
| 182 | + | var XGListModelGetItemType func(uintptr) types.GType | |
| 182 | 183 | var XGListModelGetNItems func(uintptr) uint | |
| 183 | 184 | var XGListModelGetObject func(uintptr, uint) uintptr | |
| 184 | 185 | var XGListModelItemsChanged func(uintptr, uint, uint, uint) | |
M v4/gio/gliststore.go +6 -5
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ListStoreClass struct { | |
| @@ -33,11 +34,11 @@ func ListStoreNewFromInternalPtr(ptr uintptr) *ListStore { | |||
| 33 | 34 | return cls | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 36 | - | var xNewListStore func([]interface{}) uintptr | |
| 37 | + | var xNewListStore func(types.GType) uintptr | |
| 37 | 38 | ||
| 38 | 39 | // Creates a new #GListStore with items of type @item_type. @item_type | |
| 39 | 40 | // must be a subclass of #GObject. | |
| 40 | - | func NewListStore(ItemTypeVar []interface{}) *ListStore { | |
| 41 | + | func NewListStore(ItemTypeVar types.GType) *ListStore { | |
| 41 | 42 | var cls *ListStore | |
| 42 | 43 | ||
| 43 | 44 | cret := xNewListStore(ItemTypeVar) | |
| @@ -153,7 +154,7 @@ func (x *ListStore) Sort(CompareFuncVar *glib.CompareDataFunc, UserDataVar uintp | |||
| 153 | 154 | ||
| 154 | 155 | } | |
| 155 | 156 | ||
| 156 | - | var xListStoreSplice func(uintptr, uint, uint, uintptr, uint) | |
| 157 | + | var xListStoreSplice func(uintptr, uint, uint, []gobject.Object, uint) | |
| 157 | 158 | ||
| 158 | 159 | // Changes @store by removing @n_removals items and adding @n_additions | |
| 159 | 160 | // items to it. @additions must contain @n_additions items of type | |
| @@ -168,7 +169,7 @@ var xListStoreSplice func(uintptr, uint, uint, uintptr, uint) | |||
| 168 | 169 | // The parameters @position and @n_removals must be correct (ie: | |
| 169 | 170 | // @position + @n_removals must be less than or equal to the length of | |
| 170 | 171 | // the list at the time this function is called). | |
| 171 | - | func (x *ListStore) Splice(PositionVar uint, NRemovalsVar uint, AdditionsVar uintptr, NAdditionsVar uint) { | |
| 172 | + | func (x *ListStore) Splice(PositionVar uint, NRemovalsVar uint, AdditionsVar []gobject.Object, NAdditionsVar uint) { | |
| 172 | 173 | ||
| 173 | 174 | xListStoreSplice(x.GoPointer(), PositionVar, NRemovalsVar, AdditionsVar, NAdditionsVar) | |
| 174 | 175 | ||
| @@ -205,7 +206,7 @@ func (x *ListStore) GetItem(PositionVar uint) uintptr { | |||
| 205 | 206 | // | |
| 206 | 207 | // The item type of a #GListModel can not change during the life of the | |
| 207 | 208 | // model. | |
| 208 | - | func (x *ListStore) GetItemType() []interface{} { | |
| 209 | + | func (x *ListStore) GetItemType() types.GType { | |
| 209 | 210 | ||
| 210 | 211 | cret := XGListModelGetItemType(x.GoPointer()) | |
| 211 | 212 | return cret | |
M v4/gio/gmemoryinputstream.go +5 -5
| @@ -71,10 +71,10 @@ func NewMemoryInputStreamFromBytes(BytesVar *glib.Bytes) *MemoryInputStream { | |||
| 71 | 71 | return cls | |
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | - | var xNewMemoryInputStreamFromData func(uintptr, int, uintptr) uintptr | |
| 74 | + | var xNewMemoryInputStreamFromData func([]byte, int, uintptr) uintptr | |
| 75 | 75 | ||
| 76 | 76 | // Creates a new #GMemoryInputStream with data in memory of a given size. | |
| 77 | - | func NewMemoryInputStreamFromData(DataVar uintptr, LenVar int, DestroyVar *glib.DestroyNotify) *MemoryInputStream { | |
| 77 | + | func NewMemoryInputStreamFromData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) *MemoryInputStream { | |
| 78 | 78 | var cls *MemoryInputStream | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewMemoryInputStreamFromData(DataVar, LenVar, glib.NewCallback(DestroyVar)) | |
| @@ -96,10 +96,10 @@ func (x *MemoryInputStream) AddBytes(BytesVar *glib.Bytes) { | |||
| 96 | 96 | ||
| 97 | 97 | } | |
| 98 | 98 | ||
| 99 | - | var xMemoryInputStreamAddData func(uintptr, uintptr, int, uintptr) | |
| 99 | + | var xMemoryInputStreamAddData func(uintptr, []byte, int, uintptr) | |
| 100 | 100 | ||
| 101 | 101 | // Appends @data to data that can be read from the input stream | |
| 102 | - | func (x *MemoryInputStream) AddData(DataVar uintptr, LenVar int, DestroyVar *glib.DestroyNotify) { | |
| 102 | + | func (x *MemoryInputStream) AddData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) { | |
| 103 | 103 | ||
| 104 | 104 | xMemoryInputStreamAddData(x.GoPointer(), DataVar, LenVar, glib.NewCallback(DestroyVar)) | |
| 105 | 105 | ||
| @@ -165,7 +165,7 @@ func (x *MemoryInputStream) IsReadable() bool { | |||
| 165 | 165 | // if @cancellable has already been cancelled when you call, which | |
| 166 | 166 | // may happen if you call this method after a source triggers due | |
| 167 | 167 | // to having been cancelled. | |
| 168 | - | func (x *MemoryInputStream) ReadNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 168 | + | func (x *MemoryInputStream) ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 169 | 169 | var cerr *glib.Error | |
| 170 | 170 | ||
| 171 | 171 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gmemoryoutputstream.go +2 -2
| @@ -251,7 +251,7 @@ func (x *MemoryOutputStream) IsWritable() bool { | |||
| 251 | 251 | // Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying | |
| 252 | 252 | // transports like D/TLS require that you re-send the same @buffer and | |
| 253 | 253 | // @count in the next write call. | |
| 254 | - | func (x *MemoryOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 254 | + | func (x *MemoryOutputStream) WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 255 | 255 | var cerr *glib.Error | |
| 256 | 256 | ||
| 257 | 257 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -278,7 +278,7 @@ func (x *MemoryOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uint, | |||
| 278 | 278 | // Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying | |
| 279 | 279 | // transports like D/TLS require that you re-send the same @vectors and | |
| 280 | 280 | // @n_vectors in the next write call. | |
| 281 | - | func (x *MemoryOutputStream) WritevNonblocking(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 281 | + | func (x *MemoryOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 282 | 282 | var cerr *glib.Error | |
| 283 | 283 | ||
| 284 | 284 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gmount.go +6 -6
| @@ -56,8 +56,8 @@ type Mount interface { | |||
| 56 | 56 | GetUuid() string | |
| 57 | 57 | GetVolume() *VolumeBase | |
| 58 | 58 | GuessContentType(ForceRescanVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 59 | - | GuessContentTypeFinish(ResultVar AsyncResult) uintptr | |
| 60 | - | GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Cancellable) uintptr | |
| 59 | + | GuessContentTypeFinish(ResultVar AsyncResult) []string | |
| 60 | + | GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Cancellable) []string | |
| 61 | 61 | IsShadowed() bool | |
| 62 | 62 | Remount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 63 | 63 | RemountFinish(ResultVar AsyncResult) bool | |
| @@ -273,7 +273,7 @@ func (x *MountBase) GuessContentType(ForceRescanVar bool, CancellableVar *Cancel | |||
| 273 | 273 | // %FALSE will be returned. In particular, you may get an | |
| 274 | 274 | // %G_IO_ERROR_NOT_SUPPORTED if the mount does not support content | |
| 275 | 275 | // guessing. | |
| 276 | - | func (x *MountBase) GuessContentTypeFinish(ResultVar AsyncResult) (uintptr, error) { | |
| 276 | + | func (x *MountBase) GuessContentTypeFinish(ResultVar AsyncResult) ([]string, error) { | |
| 277 | 277 | var cerr *glib.Error | |
| 278 | 278 | ||
| 279 | 279 | cret := XGMountGuessContentTypeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -293,7 +293,7 @@ func (x *MountBase) GuessContentTypeFinish(ResultVar AsyncResult) (uintptr, erro | |||
| 293 | 293 | // | |
| 294 | 294 | // This is a synchronous operation and as such may block doing IO; | |
| 295 | 295 | // see g_mount_guess_content_type() for the asynchronous version. | |
| 296 | - | func (x *MountBase) GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Cancellable) (uintptr, error) { | |
| 296 | + | func (x *MountBase) GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Cancellable) ([]string, error) { | |
| 297 | 297 | var cerr *glib.Error | |
| 298 | 298 | ||
| 299 | 299 | cret := XGMountGuessContentTypeSync(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -441,8 +441,8 @@ var XGMountGetSymbolicIcon func(uintptr) uintptr | |||
| 441 | 441 | var XGMountGetUuid func(uintptr) string | |
| 442 | 442 | var XGMountGetVolume func(uintptr) uintptr | |
| 443 | 443 | var XGMountGuessContentType func(uintptr, bool, uintptr, uintptr, uintptr) | |
| 444 | - | var XGMountGuessContentTypeFinish func(uintptr, uintptr, **glib.Error) uintptr | |
| 445 | - | var XGMountGuessContentTypeSync func(uintptr, bool, uintptr, **glib.Error) uintptr | |
| 444 | + | var XGMountGuessContentTypeFinish func(uintptr, uintptr, **glib.Error) []string | |
| 445 | + | var XGMountGuessContentTypeSync func(uintptr, bool, uintptr, **glib.Error) []string | |
| 446 | 446 | var XGMountIsShadowed func(uintptr) bool | |
| 447 | 447 | var XGMountRemount func(uintptr, MountMountFlags, uintptr, uintptr, uintptr, uintptr) | |
| 448 | 448 | var XGMountRemountFinish func(uintptr, uintptr, **glib.Error) bool | |
M v4/gio/gmountoperation.go +4 -4
| @@ -308,13 +308,13 @@ func (x *MountOperation) ConnectAskPassword(cb *func(MountOperation, string, str | |||
| 308 | 308 | // If the message contains a line break, the first line should be | |
| 309 | 309 | // presented as a heading. For example, it may be used as the | |
| 310 | 310 | // primary text in a #GtkMessageDialog. | |
| 311 | - | func (x *MountOperation) ConnectAskQuestion(cb *func(MountOperation, string, uintptr)) uint32 { | |
| 311 | + | func (x *MountOperation) ConnectAskQuestion(cb *func(MountOperation, string, []string)) uint32 { | |
| 312 | 312 | cbPtr := uintptr(unsafe.Pointer(cb)) | |
| 313 | 313 | if cbRefPtr, ok := glib.GetCallback(cbPtr); ok { | |
| 314 | 314 | return gobject.SignalConnect(x.GoPointer(), "ask-question", cbRefPtr) | |
| 315 | 315 | } | |
| 316 | 316 | ||
| 317 | - | fcb := func(clsPtr uintptr, MessageVarp string, ChoicesVarp uintptr) { | |
| 317 | + | fcb := func(clsPtr uintptr, MessageVarp string, ChoicesVarp []string) { | |
| 318 | 318 | fa := MountOperation{} | |
| 319 | 319 | fa.Ptr = clsPtr | |
| 320 | 320 | cbFn := *cb | |
| @@ -359,13 +359,13 @@ func (x *MountOperation) ConnectReply(cb *func(MountOperation, MountOperationRes | |||
| 359 | 359 | // If the message contains a line break, the first line should be | |
| 360 | 360 | // presented as a heading. For example, it may be used as the | |
| 361 | 361 | // primary text in a #GtkMessageDialog. | |
| 362 | - | func (x *MountOperation) ConnectShowProcesses(cb *func(MountOperation, string, uintptr, uintptr)) uint32 { | |
| 362 | + | func (x *MountOperation) ConnectShowProcesses(cb *func(MountOperation, string, []glib.Pid, []string)) uint32 { | |
| 363 | 363 | cbPtr := uintptr(unsafe.Pointer(cb)) | |
| 364 | 364 | if cbRefPtr, ok := glib.GetCallback(cbPtr); ok { | |
| 365 | 365 | return gobject.SignalConnect(x.GoPointer(), "show-processes", cbRefPtr) | |
| 366 | 366 | } | |
| 367 | 367 | ||
| 368 | - | fcb := func(clsPtr uintptr, MessageVarp string, ProcessesVarp uintptr, ChoicesVarp uintptr) { | |
| 368 | + | fcb := func(clsPtr uintptr, MessageVarp string, ProcessesVarp []glib.Pid, ChoicesVarp []string) { | |
| 369 | 369 | fa := MountOperation{} | |
| 370 | 370 | fa.Ptr = clsPtr | |
| 371 | 371 | cbFn := *cb | |
M v4/gio/goutputstream.go +16 -16
| @@ -309,7 +309,7 @@ func (x *OutputStream) Vprintf(BytesWrittenVar uint, CancellableVar *Cancellable | |||
| 309 | 309 | return cret | |
| 310 | 310 | } | |
| 311 | 311 | ||
| 312 | - | var xOutputStreamWrite func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 312 | + | var xOutputStreamWrite func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 313 | 313 | ||
| 314 | 314 | // Tries to write @count bytes from @buffer into the stream. Will block | |
| 315 | 315 | // during the operation. | |
| @@ -331,7 +331,7 @@ var xOutputStreamWrite func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |||
| 331 | 331 | // partial result will be returned, without an error. | |
| 332 | 332 | // | |
| 333 | 333 | // On error -1 is returned and @error is set accordingly. | |
| 334 | - | func (x *OutputStream) Write(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 334 | + | func (x *OutputStream) Write(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 335 | 335 | var cerr *glib.Error | |
| 336 | 336 | ||
| 337 | 337 | cret := xOutputStreamWrite(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -342,7 +342,7 @@ func (x *OutputStream) Write(BufferVar uintptr, CountVar uint, CancellableVar *C | |||
| 342 | 342 | ||
| 343 | 343 | } | |
| 344 | 344 | ||
| 345 | - | var xOutputStreamWriteAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Error) bool | |
| 345 | + | var xOutputStreamWriteAll func(uintptr, []byte, uint, uint, uintptr, **glib.Error) bool | |
| 346 | 346 | ||
| 347 | 347 | // Tries to write @count bytes from @buffer into the stream. Will block | |
| 348 | 348 | // during the operation. | |
| @@ -363,7 +363,7 @@ var xOutputStreamWriteAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Err | |||
| 363 | 363 | // functionality is only available from C. If you need it from another | |
| 364 | 364 | // language then you must write your own loop around | |
| 365 | 365 | // g_output_stream_write(). | |
| 366 | - | func (x *OutputStream) WriteAll(BufferVar uintptr, CountVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 366 | + | func (x *OutputStream) WriteAll(BufferVar []byte, CountVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 367 | 367 | var cerr *glib.Error | |
| 368 | 368 | ||
| 369 | 369 | cret := xOutputStreamWriteAll(x.GoPointer(), BufferVar, CountVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -374,7 +374,7 @@ func (x *OutputStream) WriteAll(BufferVar uintptr, CountVar uint, BytesWrittenVa | |||
| 374 | 374 | ||
| 375 | 375 | } | |
| 376 | 376 | ||
| 377 | - | var xOutputStreamWriteAllAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 377 | + | var xOutputStreamWriteAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uintptr) | |
| 378 | 378 | ||
| 379 | 379 | // Request an asynchronous write of @count bytes from @buffer into | |
| 380 | 380 | // the stream. When the operation is finished @callback will be called. | |
| @@ -391,7 +391,7 @@ var xOutputStreamWriteAllAsync func(uintptr, uintptr, uint, int, uintptr, uintpt | |||
| 391 | 391 | // | |
| 392 | 392 | // Note that no copy of @buffer will be made, so it must stay valid | |
| 393 | 393 | // until @callback is called. | |
| 394 | - | func (x *OutputStream) WriteAllAsync(BufferVar uintptr, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 394 | + | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 395 | 395 | ||
| 396 | 396 | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 397 | 397 | ||
| @@ -420,7 +420,7 @@ func (x *OutputStream) WriteAllFinish(ResultVar AsyncResult, BytesWrittenVar uin | |||
| 420 | 420 | ||
| 421 | 421 | } | |
| 422 | 422 | ||
| 423 | - | var xOutputStreamWriteAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 423 | + | var xOutputStreamWriteAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uintptr) | |
| 424 | 424 | ||
| 425 | 425 | // Request an asynchronous write of @count bytes from @buffer into | |
| 426 | 426 | // the stream. When the operation is finished @callback will be called. | |
| @@ -457,7 +457,7 @@ var xOutputStreamWriteAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, | |||
| 457 | 457 | // until @callback is called. See g_output_stream_write_bytes_async() | |
| 458 | 458 | // for a #GBytes version that will automatically hold a reference to | |
| 459 | 459 | // the contents (without copying) for the duration of the call. | |
| 460 | - | func (x *OutputStream) WriteAsync(BufferVar uintptr, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 460 | + | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 461 | 461 | ||
| 462 | 462 | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 463 | 463 | ||
| @@ -536,7 +536,7 @@ func (x *OutputStream) WriteFinish(ResultVar AsyncResult) (int, error) { | |||
| 536 | 536 | ||
| 537 | 537 | } | |
| 538 | 538 | ||
| 539 | - | var xOutputStreamWritev func(uintptr, uintptr, uint, uint, uintptr, **glib.Error) bool | |
| 539 | + | var xOutputStreamWritev func(uintptr, []OutputVector, uint, uint, uintptr, **glib.Error) bool | |
| 540 | 540 | ||
| 541 | 541 | // Tries to write the bytes contained in the @n_vectors @vectors into the | |
| 542 | 542 | // stream. Will block during the operation. | |
| @@ -561,7 +561,7 @@ var xOutputStreamWritev func(uintptr, uintptr, uint, uint, uintptr, **glib.Error | |||
| 561 | 561 | // aggregate buffer size, and will return %G_IO_ERROR_INVALID_ARGUMENT if these | |
| 562 | 562 | // are exceeded. For example, when writing to a local file on UNIX platforms, | |
| 563 | 563 | // the aggregate buffer size must not exceed %G_MAXSSIZE bytes. | |
| 564 | - | func (x *OutputStream) Writev(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 564 | + | func (x *OutputStream) Writev(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 565 | 565 | var cerr *glib.Error | |
| 566 | 566 | ||
| 567 | 567 | cret := xOutputStreamWritev(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -572,7 +572,7 @@ func (x *OutputStream) Writev(VectorsVar uintptr, NVectorsVar uint, BytesWritten | |||
| 572 | 572 | ||
| 573 | 573 | } | |
| 574 | 574 | ||
| 575 | - | var xOutputStreamWritevAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Error) bool | |
| 575 | + | var xOutputStreamWritevAll func(uintptr, []OutputVector, uint, uint, uintptr, **glib.Error) bool | |
| 576 | 576 | ||
| 577 | 577 | // Tries to write the bytes contained in the @n_vectors @vectors into the | |
| 578 | 578 | // stream. Will block during the operation. | |
| @@ -596,7 +596,7 @@ var xOutputStreamWritevAll func(uintptr, uintptr, uint, uint, uintptr, **glib.Er | |||
| 596 | 596 | // | |
| 597 | 597 | // The content of the individual elements of @vectors might be changed by this | |
| 598 | 598 | // function. | |
| 599 | - | func (x *OutputStream) WritevAll(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 599 | + | func (x *OutputStream) WritevAll(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 600 | 600 | var cerr *glib.Error | |
| 601 | 601 | ||
| 602 | 602 | cret := xOutputStreamWritevAll(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -607,7 +607,7 @@ func (x *OutputStream) WritevAll(VectorsVar uintptr, NVectorsVar uint, BytesWrit | |||
| 607 | 607 | ||
| 608 | 608 | } | |
| 609 | 609 | ||
| 610 | - | var xOutputStreamWritevAllAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 610 | + | var xOutputStreamWritevAllAsync func(uintptr, []OutputVector, uint, int, uintptr, uintptr, uintptr) | |
| 611 | 611 | ||
| 612 | 612 | // Request an asynchronous write of the bytes contained in the @n_vectors @vectors into | |
| 613 | 613 | // the stream. When the operation is finished @callback will be called. | |
| @@ -625,7 +625,7 @@ var xOutputStreamWritevAllAsync func(uintptr, uintptr, uint, int, uintptr, uintp | |||
| 625 | 625 | // Note that no copy of @vectors will be made, so it must stay valid | |
| 626 | 626 | // until @callback is called. The content of the individual elements | |
| 627 | 627 | // of @vectors might be changed by this function. | |
| 628 | - | func (x *OutputStream) WritevAllAsync(VectorsVar uintptr, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 628 | + | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 629 | 629 | ||
| 630 | 630 | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 631 | 631 | ||
| @@ -654,7 +654,7 @@ func (x *OutputStream) WritevAllFinish(ResultVar AsyncResult, BytesWrittenVar ui | |||
| 654 | 654 | ||
| 655 | 655 | } | |
| 656 | 656 | ||
| 657 | - | var xOutputStreamWritevAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, uintptr) | |
| 657 | + | var xOutputStreamWritevAsync func(uintptr, []OutputVector, uint, int, uintptr, uintptr, uintptr) | |
| 658 | 658 | ||
| 659 | 659 | // Request an asynchronous write of the bytes contained in @n_vectors @vectors into | |
| 660 | 660 | // the stream. When the operation is finished @callback will be called. | |
| @@ -686,7 +686,7 @@ var xOutputStreamWritevAsync func(uintptr, uintptr, uint, int, uintptr, uintptr, | |||
| 686 | 686 | // | |
| 687 | 687 | // Note that no copy of @vectors will be made, so it must stay valid | |
| 688 | 688 | // until @callback is called. | |
| 689 | - | func (x *OutputStream) WritevAsync(VectorsVar uintptr, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 689 | + | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 690 | 690 | ||
| 691 | 691 | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 692 | 692 | ||
M v4/gio/gpermission.go +1 -1
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type PermissionClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Reserved uintptr | |
| 16 | + | Reserved [16]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *PermissionClass) GoPointer() uintptr { | |
M v4/gio/gpollableinputstream.go +3 -3
| @@ -37,7 +37,7 @@ type PollableInputStream interface { | |||
| 37 | 37 | CanPoll() bool | |
| 38 | 38 | CreateSource(CancellableVar *Cancellable) *glib.Source | |
| 39 | 39 | IsReadable() bool | |
| 40 | - | ReadNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) int | |
| 40 | + | ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | |
| 41 | 41 | } | |
| 42 | 42 | type PollableInputStreamBase struct { | |
| 43 | 43 | Ptr uintptr | |
| @@ -103,7 +103,7 @@ func (x *PollableInputStreamBase) IsReadable() bool { | |||
| 103 | 103 | // if @cancellable has already been cancelled when you call, which | |
| 104 | 104 | // may happen if you call this method after a source triggers due | |
| 105 | 105 | // to having been cancelled. | |
| 106 | - | func (x *PollableInputStreamBase) ReadNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 106 | + | func (x *PollableInputStreamBase) ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 107 | 107 | var cerr *glib.Error | |
| 108 | 108 | ||
| 109 | 109 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -117,7 +117,7 @@ func (x *PollableInputStreamBase) ReadNonblocking(BufferVar uintptr, CountVar ui | |||
| 117 | 117 | var XGPollableInputStreamCanPoll func(uintptr) bool | |
| 118 | 118 | var XGPollableInputStreamCreateSource func(uintptr, uintptr) *glib.Source | |
| 119 | 119 | var XGPollableInputStreamIsReadable func(uintptr) bool | |
| 120 | - | var XGPollableInputStreamReadNonblocking func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 120 | + | var XGPollableInputStreamReadNonblocking func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 121 | 121 | ||
| 122 | 122 | func init() { | |
| 123 | 123 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
M v4/gio/gpollableoutputstream.go +6 -6
| @@ -43,8 +43,8 @@ type PollableOutputStream interface { | |||
| 43 | 43 | CanPoll() bool | |
| 44 | 44 | CreateSource(CancellableVar *Cancellable) *glib.Source | |
| 45 | 45 | IsWritable() bool | |
| 46 | - | WriteNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) int | |
| 47 | - | WritevNonblocking(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) PollableReturn | |
| 46 | + | WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | |
| 47 | + | WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) PollableReturn | |
| 48 | 48 | } | |
| 49 | 49 | type PollableOutputStreamBase struct { | |
| 50 | 50 | Ptr uintptr | |
| @@ -114,7 +114,7 @@ func (x *PollableOutputStreamBase) IsWritable() bool { | |||
| 114 | 114 | // Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying | |
| 115 | 115 | // transports like D/TLS require that you re-send the same @buffer and | |
| 116 | 116 | // @count in the next write call. | |
| 117 | - | func (x *PollableOutputStreamBase) WriteNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 117 | + | func (x *PollableOutputStreamBase) WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 118 | 118 | var cerr *glib.Error | |
| 119 | 119 | ||
| 120 | 120 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -141,7 +141,7 @@ func (x *PollableOutputStreamBase) WriteNonblocking(BufferVar uintptr, CountVar | |||
| 141 | 141 | // Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying | |
| 142 | 142 | // transports like D/TLS require that you re-send the same @vectors and | |
| 143 | 143 | // @n_vectors in the next write call. | |
| 144 | - | func (x *PollableOutputStreamBase) WritevNonblocking(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 144 | + | func (x *PollableOutputStreamBase) WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 145 | 145 | var cerr *glib.Error | |
| 146 | 146 | ||
| 147 | 147 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -155,8 +155,8 @@ func (x *PollableOutputStreamBase) WritevNonblocking(VectorsVar uintptr, NVector | |||
| 155 | 155 | var XGPollableOutputStreamCanPoll func(uintptr) bool | |
| 156 | 156 | var XGPollableOutputStreamCreateSource func(uintptr, uintptr) *glib.Source | |
| 157 | 157 | var XGPollableOutputStreamIsWritable func(uintptr) bool | |
| 158 | - | var XGPollableOutputStreamWriteNonblocking func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 159 | - | var XGPollableOutputStreamWritevNonblocking func(uintptr, uintptr, uint, uint, uintptr, **glib.Error) PollableReturn | |
| 158 | + | var XGPollableOutputStreamWriteNonblocking func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 159 | + | var XGPollableOutputStreamWritevNonblocking func(uintptr, []OutputVector, uint, uint, uintptr, **glib.Error) PollableReturn | |
| 160 | 160 | ||
| 161 | 161 | func init() { | |
| 162 | 162 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
M v4/gio/gpollableutils.go +6 -6
| @@ -33,7 +33,7 @@ func PollableSourceNewFull(PollableStreamVar *gobject.Object, ChildSourceVar *gl | |||
| 33 | 33 | return cret | |
| 34 | 34 | } | |
| 35 | 35 | ||
| 36 | - | var xPollableStreamRead func(uintptr, uintptr, uint, bool, uintptr, **glib.Error) int | |
| 36 | + | var xPollableStreamRead func(uintptr, []byte, uint, bool, uintptr, **glib.Error) int | |
| 37 | 37 | ||
| 38 | 38 | // Tries to read from @stream, as with g_input_stream_read() (if | |
| 39 | 39 | // @blocking is %TRUE) or g_pollable_input_stream_read_nonblocking() | |
| @@ -44,7 +44,7 @@ var xPollableStreamRead func(uintptr, uintptr, uint, bool, uintptr, **glib.Error | |||
| 44 | 44 | // #GPollableInputStream for which g_pollable_input_stream_can_poll() | |
| 45 | 45 | // returns %TRUE, or else the behavior is undefined. If @blocking is | |
| 46 | 46 | // %TRUE, then @stream does not need to be a #GPollableInputStream. | |
| 47 | - | func PollableStreamRead(StreamVar *InputStream, BufferVar uintptr, CountVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 47 | + | func PollableStreamRead(StreamVar *InputStream, BufferVar []byte, CountVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 48 | 48 | var cerr *glib.Error | |
| 49 | 49 | ||
| 50 | 50 | cret := xPollableStreamRead(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -55,7 +55,7 @@ func PollableStreamRead(StreamVar *InputStream, BufferVar uintptr, CountVar uint | |||
| 55 | 55 | ||
| 56 | 56 | } | |
| 57 | 57 | ||
| 58 | - | var xPollableStreamWrite func(uintptr, uintptr, uint, bool, uintptr, **glib.Error) int | |
| 58 | + | var xPollableStreamWrite func(uintptr, []byte, uint, bool, uintptr, **glib.Error) int | |
| 59 | 59 | ||
| 60 | 60 | // Tries to write to @stream, as with g_output_stream_write() (if | |
| 61 | 61 | // @blocking is %TRUE) or g_pollable_output_stream_write_nonblocking() | |
| @@ -67,7 +67,7 @@ var xPollableStreamWrite func(uintptr, uintptr, uint, bool, uintptr, **glib.Erro | |||
| 67 | 67 | // g_pollable_output_stream_can_poll() returns %TRUE or else the | |
| 68 | 68 | // behavior is undefined. If @blocking is %TRUE, then @stream does not | |
| 69 | 69 | // need to be a #GPollableOutputStream. | |
| 70 | - | func PollableStreamWrite(StreamVar *OutputStream, BufferVar uintptr, CountVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 70 | + | func PollableStreamWrite(StreamVar *OutputStream, BufferVar []byte, CountVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 71 | 71 | var cerr *glib.Error | |
| 72 | 72 | ||
| 73 | 73 | cret := xPollableStreamWrite(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -78,7 +78,7 @@ func PollableStreamWrite(StreamVar *OutputStream, BufferVar uintptr, CountVar ui | |||
| 78 | 78 | ||
| 79 | 79 | } | |
| 80 | 80 | ||
| 81 | - | var xPollableStreamWriteAll func(uintptr, uintptr, uint, bool, uint, uintptr, **glib.Error) bool | |
| 81 | + | var xPollableStreamWriteAll func(uintptr, []byte, uint, bool, uint, uintptr, **glib.Error) bool | |
| 82 | 82 | ||
| 83 | 83 | // Tries to write @count bytes to @stream, as with | |
| 84 | 84 | // g_output_stream_write_all(), but using g_pollable_stream_write() | |
| @@ -98,7 +98,7 @@ var xPollableStreamWriteAll func(uintptr, uintptr, uint, bool, uint, uintptr, ** | |||
| 98 | 98 | // g_pollable_output_stream_can_poll() returns %TRUE or else the | |
| 99 | 99 | // behavior is undefined. If @blocking is %TRUE, then @stream does not | |
| 100 | 100 | // need to be a #GPollableOutputStream. | |
| 101 | - | func PollableStreamWriteAll(StreamVar *OutputStream, BufferVar uintptr, CountVar uint, BlockingVar bool, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 101 | + | func PollableStreamWriteAll(StreamVar *OutputStream, BufferVar []byte, CountVar uint, BlockingVar bool, BytesWrittenVar uint, CancellableVar *Cancellable) (bool, error) { | |
| 102 | 102 | var cerr *glib.Error | |
| 103 | 103 | ||
| 104 | 104 | cret := xPollableStreamWriteAll(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gproxyresolver.go +6 -6
| @@ -30,9 +30,9 @@ type ProxyResolver interface { | |||
| 30 | 30 | GoPointer() uintptr | |
| 31 | 31 | SetGoPointer(uintptr) | |
| 32 | 32 | IsSupported() bool | |
| 33 | - | Lookup(UriVar string, CancellableVar *Cancellable) uintptr | |
| 33 | + | Lookup(UriVar string, CancellableVar *Cancellable) []string | |
| 34 | 34 | LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 35 | - | LookupFinish(ResultVar AsyncResult) uintptr | |
| 35 | + | LookupFinish(ResultVar AsyncResult) []string | |
| 36 | 36 | } | |
| 37 | 37 | type ProxyResolverBase struct { | |
| 38 | 38 | Ptr uintptr | |
| @@ -70,7 +70,7 @@ func (x *ProxyResolverBase) IsSupported() bool { | |||
| 70 | 70 | // `direct://` is used when no proxy is needed. | |
| 71 | 71 | // Direct connection should not be attempted unless it is part of the | |
| 72 | 72 | // returned array of proxies. | |
| 73 | - | func (x *ProxyResolverBase) Lookup(UriVar string, CancellableVar *Cancellable) (uintptr, error) { | |
| 73 | + | func (x *ProxyResolverBase) Lookup(UriVar string, CancellableVar *Cancellable) ([]string, error) { | |
| 74 | 74 | var cerr *glib.Error | |
| 75 | 75 | ||
| 76 | 76 | cret := XGProxyResolverLookup(x.GoPointer(), UriVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -92,7 +92,7 @@ func (x *ProxyResolverBase) LookupAsync(UriVar string, CancellableVar *Cancellab | |||
| 92 | 92 | // Call this function to obtain the array of proxy URIs when | |
| 93 | 93 | // g_proxy_resolver_lookup_async() is complete. See | |
| 94 | 94 | // g_proxy_resolver_lookup() for more details. | |
| 95 | - | func (x *ProxyResolverBase) LookupFinish(ResultVar AsyncResult) (uintptr, error) { | |
| 95 | + | func (x *ProxyResolverBase) LookupFinish(ResultVar AsyncResult) ([]string, error) { | |
| 96 | 96 | var cerr *glib.Error | |
| 97 | 97 | ||
| 98 | 98 | cret := XGProxyResolverLookupFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -104,9 +104,9 @@ func (x *ProxyResolverBase) LookupFinish(ResultVar AsyncResult) (uintptr, error) | |||
| 104 | 104 | } | |
| 105 | 105 | ||
| 106 | 106 | var XGProxyResolverIsSupported func(uintptr) bool | |
| 107 | - | var XGProxyResolverLookup func(uintptr, string, uintptr, **glib.Error) uintptr | |
| 107 | + | var XGProxyResolverLookup func(uintptr, string, uintptr, **glib.Error) []string | |
| 108 | 108 | var XGProxyResolverLookupAsync func(uintptr, string, uintptr, uintptr, uintptr) | |
| 109 | - | var XGProxyResolverLookupFinish func(uintptr, uintptr, **glib.Error) uintptr | |
| 109 | + | var XGProxyResolverLookupFinish func(uintptr, uintptr, **glib.Error) []string | |
| 110 | 110 | ||
| 111 | 111 | const ( | |
| 112 | 112 | // Extension point for proxy resolving functionality. | |
M v4/gio/gsettings.go +13 -13
| @@ -34,7 +34,7 @@ type SettingsGetMapping func(*glib.Variant, uintptr, uintptr) bool | |||
| 34 | 34 | type SettingsClass struct { | |
| 35 | 35 | ParentClass uintptr | |
| 36 | 36 | ||
| 37 | - | Padding uintptr | |
| 37 | + | Padding [20]uintptr | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | 40 | func (x *SettingsClass) GoPointer() uintptr { | |
| @@ -873,13 +873,13 @@ func (x *Settings) GetString(KeyVar string) string { | |||
| 873 | 873 | return cret | |
| 874 | 874 | } | |
| 875 | 875 | ||
| 876 | - | var xSettingsGetStrv func(uintptr, string) uintptr | |
| 876 | + | var xSettingsGetStrv func(uintptr, string) []string | |
| 877 | 877 | ||
| 878 | 878 | // A convenience variant of g_settings_get() for string arrays. | |
| 879 | 879 | // | |
| 880 | 880 | // It is a programmer error to give a @key that isn't specified as | |
| 881 | 881 | // having an array of strings type in the schema for @settings. | |
| 882 | - | func (x *Settings) GetStrv(KeyVar string) uintptr { | |
| 882 | + | func (x *Settings) GetStrv(KeyVar string) []string { | |
| 883 | 883 | ||
| 884 | 884 | cret := xSettingsGetStrv(x.GoPointer(), KeyVar) | |
| 885 | 885 | return cret | |
| @@ -962,7 +962,7 @@ func (x *Settings) IsWritable(NameVar string) bool { | |||
| 962 | 962 | return cret | |
| 963 | 963 | } | |
| 964 | 964 | ||
| 965 | - | var xSettingsListChildren func(uintptr) uintptr | |
| 965 | + | var xSettingsListChildren func(uintptr) []string | |
| 966 | 966 | ||
| 967 | 967 | // Gets the list of children on @settings. | |
| 968 | 968 | // | |
| @@ -975,13 +975,13 @@ var xSettingsListChildren func(uintptr) uintptr | |||
| 975 | 975 | // | |
| 976 | 976 | // You should free the return value with g_strfreev() when you are done | |
| 977 | 977 | // with it. | |
| 978 | - | func (x *Settings) ListChildren() uintptr { | |
| 978 | + | func (x *Settings) ListChildren() []string { | |
| 979 | 979 | ||
| 980 | 980 | cret := xSettingsListChildren(x.GoPointer()) | |
| 981 | 981 | return cret | |
| 982 | 982 | } | |
| 983 | 983 | ||
| 984 | - | var xSettingsListKeys func(uintptr) uintptr | |
| 984 | + | var xSettingsListKeys func(uintptr) []string | |
| 985 | 985 | ||
| 986 | 986 | // Introspects the list of keys on @settings. | |
| 987 | 987 | // | |
| @@ -991,7 +991,7 @@ var xSettingsListKeys func(uintptr) uintptr | |||
| 991 | 991 | // | |
| 992 | 992 | // You should free the return value with g_strfreev() when you are done | |
| 993 | 993 | // with it. | |
| 994 | - | func (x *Settings) ListKeys() uintptr { | |
| 994 | + | func (x *Settings) ListKeys() []string { | |
| 995 | 995 | ||
| 996 | 996 | cret := xSettingsListKeys(x.GoPointer()) | |
| 997 | 997 | return cret | |
| @@ -1157,7 +1157,7 @@ func (x *Settings) SetString(KeyVar string, ValueVar string) bool { | |||
| 1157 | 1157 | return cret | |
| 1158 | 1158 | } | |
| 1159 | 1159 | ||
| 1160 | - | var xSettingsSetStrv func(uintptr, string, uintptr) bool | |
| 1160 | + | var xSettingsSetStrv func(uintptr, string, []string) bool | |
| 1161 | 1161 | ||
| 1162 | 1162 | // Sets @key in @settings to @value. | |
| 1163 | 1163 | // | |
| @@ -1166,7 +1166,7 @@ var xSettingsSetStrv func(uintptr, string, uintptr) bool | |||
| 1166 | 1166 | // | |
| 1167 | 1167 | // It is a programmer error to give a @key that isn't specified as | |
| 1168 | 1168 | // having an array of strings type in the schema for @settings. | |
| 1169 | - | func (x *Settings) SetStrv(KeyVar string, ValueVar uintptr) bool { | |
| 1169 | + | func (x *Settings) SetStrv(KeyVar string, ValueVar []string) bool { | |
| 1170 | 1170 | ||
| 1171 | 1171 | cret := xSettingsSetStrv(x.GoPointer(), KeyVar, ValueVar) | |
| 1172 | 1172 | return cret | |
| @@ -1351,19 +1351,19 @@ func (x *Settings) ConnectWritableChanged(cb *func(Settings, string)) uint32 { | |||
| 1351 | 1351 | return gobject.SignalConnect(x.GoPointer(), "writable-changed", cbRefPtr) | |
| 1352 | 1352 | } | |
| 1353 | 1353 | ||
| 1354 | - | var xSettingsListRelocatableSchemas func() uintptr | |
| 1354 | + | var xSettingsListRelocatableSchemas func() []string | |
| 1355 | 1355 | ||
| 1356 | 1356 | // Deprecated. | |
| 1357 | - | func SettingsListRelocatableSchemas() uintptr { | |
| 1357 | + | func SettingsListRelocatableSchemas() []string { | |
| 1358 | 1358 | ||
| 1359 | 1359 | cret := xSettingsListRelocatableSchemas() | |
| 1360 | 1360 | return cret | |
| 1361 | 1361 | } | |
| 1362 | 1362 | ||
| 1363 | - | var xSettingsListSchemas func() uintptr | |
| 1363 | + | var xSettingsListSchemas func() []string | |
| 1364 | 1364 | ||
| 1365 | 1365 | // Deprecated. | |
| 1366 | - | func SettingsListSchemas() uintptr { | |
| 1366 | + | func SettingsListSchemas() []string { | |
| 1367 | 1367 | ||
| 1368 | 1368 | cret := xSettingsListSchemas() | |
| 1369 | 1369 | return cret | |
M v4/gio/gsettingsbackend.go +5 -5
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type SettingsBackendClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [23]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *SettingsBackendClass) GoPointer() uintptr { | |
| @@ -215,7 +215,7 @@ func (x *SettingsBackend) ChangedTree(TreeVar *glib.Tree, OriginTagVar uintptr) | |||
| 215 | 215 | ||
| 216 | 216 | } | |
| 217 | 217 | ||
| 218 | - | var xSettingsBackendKeysChanged func(uintptr, string, uintptr, uintptr) | |
| 218 | + | var xSettingsBackendKeysChanged func(uintptr, string, []string, uintptr) | |
| 219 | 219 | ||
| 220 | 220 | // Signals that a list of keys have possibly changed. Backend | |
| 221 | 221 | // implementations should call this if keys have possibly changed their | |
| @@ -238,7 +238,7 @@ var xSettingsBackendKeysChanged func(uintptr, string, uintptr, uintptr) | |||
| 238 | 238 | // For efficiency reasons, the implementation should strive for @path to | |
| 239 | 239 | // be as long as possible (ie: the longest common prefix of all of the | |
| 240 | 240 | // keys that were changed) but this is not strictly required. | |
| 241 | - | func (x *SettingsBackend) KeysChanged(PathVar string, ItemsVar uintptr, OriginTagVar uintptr) { | |
| 241 | + | func (x *SettingsBackend) KeysChanged(PathVar string, ItemsVar []string, OriginTagVar uintptr) { | |
| 242 | 242 | ||
| 243 | 243 | xSettingsBackendKeysChanged(x.GoPointer(), PathVar, ItemsVar, OriginTagVar) | |
| 244 | 244 | ||
| @@ -306,7 +306,7 @@ func (c *SettingsBackend) SetGoPointer(ptr uintptr) { | |||
| 306 | 306 | c.Ptr = ptr | |
| 307 | 307 | } | |
| 308 | 308 | ||
| 309 | - | var xSettingsBackendFlattenTree func(*glib.Tree, string, uintptr, uintptr) | |
| 309 | + | var xSettingsBackendFlattenTree func(*glib.Tree, string, []string, uintptr) | |
| 310 | 310 | ||
| 311 | 311 | // Calculate the longest common prefix of all keys in a tree and write | |
| 312 | 312 | // out an array of the key names relative to that prefix and, | |
| @@ -315,7 +315,7 @@ var xSettingsBackendFlattenTree func(*glib.Tree, string, uintptr, uintptr) | |||
| 315 | 315 | // You must free the value returned in @path, @keys and @values using | |
| 316 | 316 | // g_free(). You should not attempt to free or unref the contents of | |
| 317 | 317 | // @keys or @values. | |
| 318 | - | func SettingsBackendFlattenTree(TreeVar *glib.Tree, PathVar string, KeysVar uintptr, ValuesVar uintptr) { | |
| 318 | + | func SettingsBackendFlattenTree(TreeVar *glib.Tree, PathVar string, KeysVar []string, ValuesVar uintptr) { | |
| 319 | 319 | ||
| 320 | 320 | xSettingsBackendFlattenTree(TreeVar, PathVar, KeysVar, ValuesVar) | |
| 321 | 321 | ||
M v4/gio/gsettingsschema.go +6 -6
| @@ -160,26 +160,26 @@ func (x *SettingsSchema) HasKey(NameVar string) bool { | |||
| 160 | 160 | return cret | |
| 161 | 161 | } | |
| 162 | 162 | ||
| 163 | - | var xSettingsSchemaListChildren func(uintptr) uintptr | |
| 163 | + | var xSettingsSchemaListChildren func(uintptr) []string | |
| 164 | 164 | ||
| 165 | 165 | // Gets the list of children in @schema. | |
| 166 | 166 | // | |
| 167 | 167 | // You should free the return value with g_strfreev() when you are done | |
| 168 | 168 | // with it. | |
| 169 | - | func (x *SettingsSchema) ListChildren() uintptr { | |
| 169 | + | func (x *SettingsSchema) ListChildren() []string { | |
| 170 | 170 | ||
| 171 | 171 | cret := xSettingsSchemaListChildren(x.GoPointer()) | |
| 172 | 172 | return cret | |
| 173 | 173 | } | |
| 174 | 174 | ||
| 175 | - | var xSettingsSchemaListKeys func(uintptr) uintptr | |
| 175 | + | var xSettingsSchemaListKeys func(uintptr) []string | |
| 176 | 176 | ||
| 177 | 177 | // Introspects the list of keys on @schema. | |
| 178 | 178 | // | |
| 179 | 179 | // You should probably not be calling this function from "normal" code | |
| 180 | 180 | // (since you should already know what keys are in your schema). This | |
| 181 | 181 | // function is intended for introspection reasons. | |
| 182 | - | func (x *SettingsSchema) ListKeys() uintptr { | |
| 182 | + | func (x *SettingsSchema) ListKeys() []string { | |
| 183 | 183 | ||
| 184 | 184 | cret := xSettingsSchemaListKeys(x.GoPointer()) | |
| 185 | 185 | return cret | |
| @@ -412,7 +412,7 @@ func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *Settin | |||
| 412 | 412 | ||
| 413 | 413 | } | |
| 414 | 414 | ||
| 415 | - | var xSettingsSchemaSourceListSchemas func(uintptr, bool, uintptr, uintptr) | |
| 415 | + | var xSettingsSchemaSourceListSchemas func(uintptr, bool, []string, []string) | |
| 416 | 416 | ||
| 417 | 417 | // Lists the schemas in a given source. | |
| 418 | 418 | // | |
| @@ -426,7 +426,7 @@ var xSettingsSchemaSourceListSchemas func(uintptr, bool, uintptr, uintptr) | |||
| 426 | 426 | // | |
| 427 | 427 | // Do not call this function from normal programs. This is designed for | |
| 428 | 428 | // use by database editors, commandline tools, etc. | |
| 429 | - | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar uintptr, RelocatableVar uintptr) { | |
| 429 | + | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar []string, RelocatableVar []string) { | |
| 430 | 430 | ||
| 431 | 431 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | |
| 432 | 432 | ||
M v4/gio/gsimpleactiongroup.go +5 -5
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type SimpleActionGroupClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [12]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *SimpleActionGroupClass) GoPointer() uintptr { | |
| @@ -55,11 +55,11 @@ func NewSimpleActionGroup() *SimpleActionGroup { | |||
| 55 | 55 | return cls | |
| 56 | 56 | } | |
| 57 | 57 | ||
| 58 | - | var xSimpleActionGroupAddEntries func(uintptr, uintptr, int, uintptr) | |
| 58 | + | var xSimpleActionGroupAddEntries func(uintptr, []ActionEntry, int, uintptr) | |
| 59 | 59 | ||
| 60 | 60 | // A convenience function for creating multiple #GSimpleAction instances | |
| 61 | 61 | // and adding them to the action group. | |
| 62 | - | func (x *SimpleActionGroup) AddEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 62 | + | func (x *SimpleActionGroup) AddEntries(EntriesVar []ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 63 | 63 | ||
| 64 | 64 | xSimpleActionGroupAddEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 65 | 65 | ||
| @@ -309,7 +309,7 @@ func (x *SimpleActionGroup) HasAction(ActionNameVar string) bool { | |||
| 309 | 309 | // | |
| 310 | 310 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 311 | 311 | // it is no longer required. | |
| 312 | - | func (x *SimpleActionGroup) ListActions() uintptr { | |
| 312 | + | func (x *SimpleActionGroup) ListActions() []string { | |
| 313 | 313 | ||
| 314 | 314 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 315 | 315 | return cret | |
| @@ -403,7 +403,7 @@ func (x *SimpleActionGroup) AddAction(ActionVar Action) { | |||
| 403 | 403 | // } | |
| 404 | 404 | // | |
| 405 | 405 | // ]| | |
| 406 | - | func (x *SimpleActionGroup) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 406 | + | func (x *SimpleActionGroup) AddActionEntries(EntriesVar []ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 407 | 407 | ||
| 408 | 408 | XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 409 | 409 | ||
M v4/gio/gsimpleproxyresolver.go +6 -6
| @@ -58,13 +58,13 @@ func (x *SimpleProxyResolver) SetDefaultProxy(DefaultProxyVar string) { | |||
| 58 | 58 | ||
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | - | var xSimpleProxyResolverSetIgnoreHosts func(uintptr, uintptr) | |
| 61 | + | var xSimpleProxyResolverSetIgnoreHosts func(uintptr, []string) | |
| 62 | 62 | ||
| 63 | 63 | // Sets the list of ignored hosts. | |
| 64 | 64 | // | |
| 65 | 65 | // See #GSimpleProxyResolver:ignore-hosts for more details on how the | |
| 66 | 66 | // @ignore_hosts argument is interpreted. | |
| 67 | - | func (x *SimpleProxyResolver) SetIgnoreHosts(IgnoreHostsVar uintptr) { | |
| 67 | + | func (x *SimpleProxyResolver) SetIgnoreHosts(IgnoreHostsVar []string) { | |
| 68 | 68 | ||
| 69 | 69 | xSimpleProxyResolverSetIgnoreHosts(x.GoPointer(), IgnoreHostsVar) | |
| 70 | 70 | ||
| @@ -118,7 +118,7 @@ func (x *SimpleProxyResolver) IsSupported() bool { | |||
| 118 | 118 | // `direct://` is used when no proxy is needed. | |
| 119 | 119 | // Direct connection should not be attempted unless it is part of the | |
| 120 | 120 | // returned array of proxies. | |
| 121 | - | func (x *SimpleProxyResolver) Lookup(UriVar string, CancellableVar *Cancellable) (uintptr, error) { | |
| 121 | + | func (x *SimpleProxyResolver) Lookup(UriVar string, CancellableVar *Cancellable) ([]string, error) { | |
| 122 | 122 | var cerr *glib.Error | |
| 123 | 123 | ||
| 124 | 124 | cret := XGProxyResolverLookup(x.GoPointer(), UriVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -140,7 +140,7 @@ func (x *SimpleProxyResolver) LookupAsync(UriVar string, CancellableVar *Cancell | |||
| 140 | 140 | // Call this function to obtain the array of proxy URIs when | |
| 141 | 141 | // g_proxy_resolver_lookup_async() is complete. See | |
| 142 | 142 | // g_proxy_resolver_lookup() for more details. | |
| 143 | - | func (x *SimpleProxyResolver) LookupFinish(ResultVar AsyncResult) (uintptr, error) { | |
| 143 | + | func (x *SimpleProxyResolver) LookupFinish(ResultVar AsyncResult) ([]string, error) { | |
| 144 | 144 | var cerr *glib.Error | |
| 145 | 145 | ||
| 146 | 146 | cret := XGProxyResolverLookupFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -151,13 +151,13 @@ func (x *SimpleProxyResolver) LookupFinish(ResultVar AsyncResult) (uintptr, erro | |||
| 151 | 151 | ||
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | - | var xSimpleProxyResolverNew func(string, uintptr) uintptr | |
| 154 | + | var xSimpleProxyResolverNew func(string, []string) uintptr | |
| 155 | 155 | ||
| 156 | 156 | // Creates a new #GSimpleProxyResolver. See | |
| 157 | 157 | // #GSimpleProxyResolver:default-proxy and | |
| 158 | 158 | // #GSimpleProxyResolver:ignore-hosts for more details on how the | |
| 159 | 159 | // arguments are interpreted. | |
| 160 | - | func SimpleProxyResolverNew(DefaultProxyVar string, IgnoreHostsVar uintptr) *ProxyResolverBase { | |
| 160 | + | func SimpleProxyResolverNew(DefaultProxyVar string, IgnoreHostsVar []string) *ProxyResolverBase { | |
| 161 | 161 | var cls *ProxyResolverBase | |
| 162 | 162 | ||
| 163 | 163 | cret := xSimpleProxyResolverNew(DefaultProxyVar, IgnoreHostsVar) | |
M v4/gio/gsocket.go +22 -22
| @@ -822,7 +822,7 @@ func (x *Socket) Listen() (bool, error) { | |||
| 822 | 822 | ||
| 823 | 823 | } | |
| 824 | 824 | ||
| 825 | - | var xSocketReceive func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 825 | + | var xSocketReceive func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 826 | 826 | ||
| 827 | 827 | // Receive data (up to @size bytes) from a socket. This is mainly used by | |
| 828 | 828 | // connection-oriented sockets; it is identical to g_socket_receive_from() | |
| @@ -847,7 +847,7 @@ var xSocketReceive func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |||
| 847 | 847 | // %G_IO_IN condition. | |
| 848 | 848 | // | |
| 849 | 849 | // On error -1 is returned and @error is set accordingly. | |
| 850 | - | func (x *Socket) Receive(BufferVar uintptr, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 850 | + | func (x *Socket) Receive(BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 851 | 851 | var cerr *glib.Error | |
| 852 | 852 | ||
| 853 | 853 | cret := xSocketReceive(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -858,7 +858,7 @@ func (x *Socket) Receive(BufferVar uintptr, SizeVar uint, CancellableVar *Cancel | |||
| 858 | 858 | ||
| 859 | 859 | } | |
| 860 | 860 | ||
| 861 | - | var xSocketReceiveFrom func(uintptr, *uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 861 | + | var xSocketReceiveFrom func(uintptr, *uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 862 | 862 | ||
| 863 | 863 | // Receive data (up to @size bytes) from a socket. | |
| 864 | 864 | // | |
| @@ -867,7 +867,7 @@ var xSocketReceiveFrom func(uintptr, *uintptr, uintptr, uint, uintptr, **glib.Er | |||
| 867 | 867 | // @address is owned by the caller. | |
| 868 | 868 | // | |
| 869 | 869 | // See g_socket_receive() for additional information. | |
| 870 | - | func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar uintptr, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 870 | + | func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 871 | 871 | var cerr *glib.Error | |
| 872 | 872 | ||
| 873 | 873 | cret := xSocketReceiveFrom(x.GoPointer(), gobject.ConvertPtr(AddressVar), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -878,7 +878,7 @@ func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar uintptr, Size | |||
| 878 | 878 | ||
| 879 | 879 | } | |
| 880 | 880 | ||
| 881 | - | var xSocketReceiveMessage func(uintptr, *uintptr, uintptr, int, uintptr, int, int, uintptr, **glib.Error) int | |
| 881 | + | var xSocketReceiveMessage func(uintptr, *uintptr, []InputVector, int, uintptr, int, int, uintptr, **glib.Error) int | |
| 882 | 882 | ||
| 883 | 883 | // Receive data from a socket. For receiving multiple messages, see | |
| 884 | 884 | // g_socket_receive_messages(); for easier use, see | |
| @@ -939,7 +939,7 @@ var xSocketReceiveMessage func(uintptr, *uintptr, uintptr, int, uintptr, int, in | |||
| 939 | 939 | // %G_IO_IN condition. | |
| 940 | 940 | // | |
| 941 | 941 | // On error -1 is returned and @error is set accordingly. | |
| 942 | - | func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar uintptr, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 942 | + | func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar []InputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 943 | 943 | var cerr *glib.Error | |
| 944 | 944 | ||
| 945 | 945 | cret := xSocketReceiveMessage(x.GoPointer(), gobject.ConvertPtr(AddressVar), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -950,7 +950,7 @@ func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar uintptr, | |||
| 950 | 950 | ||
| 951 | 951 | } | |
| 952 | 952 | ||
| 953 | - | var xSocketReceiveMessages func(uintptr, uintptr, uint, int, uintptr, **glib.Error) int | |
| 953 | + | var xSocketReceiveMessages func(uintptr, []InputMessage, uint, int, uintptr, **glib.Error) int | |
| 954 | 954 | ||
| 955 | 955 | // Receive multiple data messages from @socket in one go. This is the most | |
| 956 | 956 | // complicated and fully-featured version of this call. For easier use, see | |
| @@ -1000,7 +1000,7 @@ var xSocketReceiveMessages func(uintptr, uintptr, uint, int, uintptr, **glib.Err | |||
| 1000 | 1000 | // On error -1 is returned and @error is set accordingly. An error will only | |
| 1001 | 1001 | // be returned if zero messages could be received; otherwise the number of | |
| 1002 | 1002 | // messages successfully received before the error will be returned. | |
| 1003 | - | func (x *Socket) ReceiveMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1003 | + | func (x *Socket) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1004 | 1004 | var cerr *glib.Error | |
| 1005 | 1005 | ||
| 1006 | 1006 | cret := xSocketReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1011,12 +1011,12 @@ func (x *Socket) ReceiveMessages(MessagesVar uintptr, NumMessagesVar uint, Flags | |||
| 1011 | 1011 | ||
| 1012 | 1012 | } | |
| 1013 | 1013 | ||
| 1014 | - | var xSocketReceiveWithBlocking func(uintptr, uintptr, uint, bool, uintptr, **glib.Error) int | |
| 1014 | + | var xSocketReceiveWithBlocking func(uintptr, []byte, uint, bool, uintptr, **glib.Error) int | |
| 1015 | 1015 | ||
| 1016 | 1016 | // This behaves exactly the same as g_socket_receive(), except that | |
| 1017 | 1017 | // the choice of blocking or non-blocking behavior is determined by | |
| 1018 | 1018 | // the @blocking argument rather than by @socket's properties. | |
| 1019 | - | func (x *Socket) ReceiveWithBlocking(BufferVar uintptr, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1019 | + | func (x *Socket) ReceiveWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1020 | 1020 | var cerr *glib.Error | |
| 1021 | 1021 | ||
| 1022 | 1022 | cret := xSocketReceiveWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1027,7 +1027,7 @@ func (x *Socket) ReceiveWithBlocking(BufferVar uintptr, SizeVar uint, BlockingVa | |||
| 1027 | 1027 | ||
| 1028 | 1028 | } | |
| 1029 | 1029 | ||
| 1030 | - | var xSocketSend func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 1030 | + | var xSocketSend func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 1031 | 1031 | ||
| 1032 | 1032 | // Tries to send @size bytes from @buffer on the socket. This is | |
| 1033 | 1033 | // mainly used by connection-oriented sockets; it is identical to | |
| @@ -1043,7 +1043,7 @@ var xSocketSend func(uintptr, uintptr, uint, uintptr, **glib.Error) int | |||
| 1043 | 1043 | // very common due to the way the underlying APIs work.) | |
| 1044 | 1044 | // | |
| 1045 | 1045 | // On error -1 is returned and @error is set accordingly. | |
| 1046 | - | func (x *Socket) Send(BufferVar uintptr, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1046 | + | func (x *Socket) Send(BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1047 | 1047 | var cerr *glib.Error | |
| 1048 | 1048 | ||
| 1049 | 1049 | cret := xSocketSend(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1054,7 +1054,7 @@ func (x *Socket) Send(BufferVar uintptr, SizeVar uint, CancellableVar *Cancellab | |||
| 1054 | 1054 | ||
| 1055 | 1055 | } | |
| 1056 | 1056 | ||
| 1057 | - | var xSocketSendMessage func(uintptr, uintptr, uintptr, int, uintptr, int, int, uintptr, **glib.Error) int | |
| 1057 | + | var xSocketSendMessage func(uintptr, uintptr, []OutputVector, int, uintptr, int, int, uintptr, **glib.Error) int | |
| 1058 | 1058 | ||
| 1059 | 1059 | // Send data to @address on @socket. For sending multiple messages see | |
| 1060 | 1060 | // g_socket_send_messages(); for easier use, see | |
| @@ -1098,7 +1098,7 @@ var xSocketSendMessage func(uintptr, uintptr, uintptr, int, uintptr, int, int, u | |||
| 1098 | 1098 | // function. | |
| 1099 | 1099 | // | |
| 1100 | 1100 | // On error -1 is returned and @error is set accordingly. | |
| 1101 | - | func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar uintptr, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1101 | + | func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1102 | 1102 | var cerr *glib.Error | |
| 1103 | 1103 | ||
| 1104 | 1104 | cret := xSocketSendMessage(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1109,7 +1109,7 @@ func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar uintptr, NumV | |||
| 1109 | 1109 | ||
| 1110 | 1110 | } | |
| 1111 | 1111 | ||
| 1112 | - | var xSocketSendMessageWithTimeout func(uintptr, uintptr, uintptr, int, uintptr, int, int, int64, uint, uintptr, **glib.Error) PollableReturn | |
| 1112 | + | var xSocketSendMessageWithTimeout func(uintptr, uintptr, []OutputVector, int, uintptr, int, int, int64, uint, uintptr, **glib.Error) PollableReturn | |
| 1113 | 1113 | ||
| 1114 | 1114 | // This behaves exactly the same as g_socket_send_message(), except that | |
| 1115 | 1115 | // the choice of timeout behavior is determined by the @timeout_us argument | |
| @@ -1118,7 +1118,7 @@ var xSocketSendMessageWithTimeout func(uintptr, uintptr, uintptr, int, uintptr, | |||
| 1118 | 1118 | // On error %G_POLLABLE_RETURN_FAILED is returned and @error is set accordingly, or | |
| 1119 | 1119 | // if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is | |
| 1120 | 1120 | // returned. @bytes_written will contain 0 in both cases. | |
| 1121 | - | func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar uintptr, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, TimeoutUsVar int64, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 1121 | + | func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, TimeoutUsVar int64, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 1122 | 1122 | var cerr *glib.Error | |
| 1123 | 1123 | ||
| 1124 | 1124 | cret := xSocketSendMessageWithTimeout(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, TimeoutUsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1129,7 +1129,7 @@ func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar ui | |||
| 1129 | 1129 | ||
| 1130 | 1130 | } | |
| 1131 | 1131 | ||
| 1132 | - | var xSocketSendMessages func(uintptr, uintptr, uint, int, uintptr, **glib.Error) int | |
| 1132 | + | var xSocketSendMessages func(uintptr, []OutputMessage, uint, int, uintptr, **glib.Error) int | |
| 1133 | 1133 | ||
| 1134 | 1134 | // Send multiple data messages from @socket in one go. This is the most | |
| 1135 | 1135 | // complicated and fully-featured version of this call. For easier use, see | |
| @@ -1165,7 +1165,7 @@ var xSocketSendMessages func(uintptr, uintptr, uint, int, uintptr, **glib.Error) | |||
| 1165 | 1165 | // On error -1 is returned and @error is set accordingly. An error will only | |
| 1166 | 1166 | // be returned if zero messages could be sent; otherwise the number of messages | |
| 1167 | 1167 | // successfully sent before the error will be returned. | |
| 1168 | - | func (x *Socket) SendMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1168 | + | func (x *Socket) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1169 | 1169 | var cerr *glib.Error | |
| 1170 | 1170 | ||
| 1171 | 1171 | cret := xSocketSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1176,14 +1176,14 @@ func (x *Socket) SendMessages(MessagesVar uintptr, NumMessagesVar uint, FlagsVar | |||
| 1176 | 1176 | ||
| 1177 | 1177 | } | |
| 1178 | 1178 | ||
| 1179 | - | var xSocketSendTo func(uintptr, uintptr, uintptr, uint, uintptr, **glib.Error) int | |
| 1179 | + | var xSocketSendTo func(uintptr, uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 1180 | 1180 | ||
| 1181 | 1181 | // Tries to send @size bytes from @buffer to @address. If @address is | |
| 1182 | 1182 | // %NULL then the message is sent to the default receiver (set by | |
| 1183 | 1183 | // g_socket_connect()). | |
| 1184 | 1184 | // | |
| 1185 | 1185 | // See g_socket_send() for additional information. | |
| 1186 | - | func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar uintptr, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1186 | + | func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1187 | 1187 | var cerr *glib.Error | |
| 1188 | 1188 | ||
| 1189 | 1189 | cret := xSocketSendTo(x.GoPointer(), AddressVar.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1194,12 +1194,12 @@ func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar uintptr, SizeVar ui | |||
| 1194 | 1194 | ||
| 1195 | 1195 | } | |
| 1196 | 1196 | ||
| 1197 | - | var xSocketSendWithBlocking func(uintptr, uintptr, uint, bool, uintptr, **glib.Error) int | |
| 1197 | + | var xSocketSendWithBlocking func(uintptr, []byte, uint, bool, uintptr, **glib.Error) int | |
| 1198 | 1198 | ||
| 1199 | 1199 | // This behaves exactly the same as g_socket_send(), except that | |
| 1200 | 1200 | // the choice of blocking or non-blocking behavior is determined by | |
| 1201 | 1201 | // the @blocking argument rather than by @socket's properties. | |
| 1202 | - | func (x *Socket) SendWithBlocking(BufferVar uintptr, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1202 | + | func (x *Socket) SendWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1203 | 1203 | var cerr *glib.Error | |
| 1204 | 1204 | ||
| 1205 | 1205 | cret := xSocketSendWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gsocketconnection.go +5 -4
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SocketConnectionClass struct { | |
| @@ -179,25 +180,25 @@ func (c *SocketConnection) SetGoPointer(ptr uintptr) { | |||
| 179 | 180 | c.Ptr = ptr | |
| 180 | 181 | } | |
| 181 | 182 | ||
| 182 | - | var xSocketConnectionFactoryLookupType func(SocketFamily, SocketType, int) []interface{} | |
| 183 | + | var xSocketConnectionFactoryLookupType func(SocketFamily, SocketType, int) types.GType | |
| 183 | 184 | ||
| 184 | 185 | // Looks up the #GType to be used when creating socket connections on | |
| 185 | 186 | // sockets with the specified @family, @type and @protocol_id. | |
| 186 | 187 | // | |
| 187 | 188 | // If no type is registered, the #GSocketConnection base type is returned. | |
| 188 | - | func SocketConnectionFactoryLookupType(FamilyVar SocketFamily, TypeVar SocketType, ProtocolIdVar int) []interface{} { | |
| 189 | + | func SocketConnectionFactoryLookupType(FamilyVar SocketFamily, TypeVar SocketType, ProtocolIdVar int) types.GType { | |
| 189 | 190 | ||
| 190 | 191 | cret := xSocketConnectionFactoryLookupType(FamilyVar, TypeVar, ProtocolIdVar) | |
| 191 | 192 | return cret | |
| 192 | 193 | } | |
| 193 | 194 | ||
| 194 | - | var xSocketConnectionFactoryRegisterType func([]interface{}, SocketFamily, SocketType, int) | |
| 195 | + | var xSocketConnectionFactoryRegisterType func(types.GType, SocketFamily, SocketType, int) | |
| 195 | 196 | ||
| 196 | 197 | // Looks up the #GType to be used when creating socket connections on | |
| 197 | 198 | // sockets with the specified @family, @type and @protocol. | |
| 198 | 199 | // | |
| 199 | 200 | // If no type is registered, the #GSocketConnection base type is returned. | |
| 200 | - | func SocketConnectionFactoryRegisterType(GTypeVar []interface{}, FamilyVar SocketFamily, TypeVar SocketType, ProtocolVar int) { | |
| 201 | + | func SocketConnectionFactoryRegisterType(GTypeVar types.GType, FamilyVar SocketFamily, TypeVar SocketType, ProtocolVar int) { | |
| 201 | 202 | ||
| 202 | 203 | xSocketConnectionFactoryRegisterType(GTypeVar, FamilyVar, TypeVar, ProtocolVar) | |
| 203 | 204 | ||
M v4/gio/gthemedicon.go +2 -2
| @@ -109,10 +109,10 @@ func (x *ThemedIcon) AppendName(IconnameVar string) { | |||
| 109 | 109 | ||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | - | var xThemedIconGetNames func(uintptr) uintptr | |
| 112 | + | var xThemedIconGetNames func(uintptr) []string | |
| 113 | 113 | ||
| 114 | 114 | // Gets the names of icons from within @icon. | |
| 115 | - | func (x *ThemedIcon) GetNames() uintptr { | |
| 115 | + | func (x *ThemedIcon) GetNames() []string { | |
| 116 | 116 | ||
| 117 | 117 | cret := xThemedIconGetNames(x.GoPointer()) | |
| 118 | 118 | return cret | |
M v4/gio/gtlsbackend.go +19 -18
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for describing TLS-related types. | |
| @@ -22,13 +23,13 @@ func (x *TlsBackendInterface) GoPointer() uintptr { | |||
| 22 | 23 | type TlsBackend interface { | |
| 23 | 24 | GoPointer() uintptr | |
| 24 | 25 | SetGoPointer(uintptr) | |
| 25 | - | GetCertificateType() []interface{} | |
| 26 | - | GetClientConnectionType() []interface{} | |
| 26 | + | GetCertificateType() types.GType | |
| 27 | + | GetClientConnectionType() types.GType | |
| 27 | 28 | GetDefaultDatabase() *TlsDatabase | |
| 28 | - | GetDtlsClientConnectionType() []interface{} | |
| 29 | - | GetDtlsServerConnectionType() []interface{} | |
| 30 | - | GetFileDatabaseType() []interface{} | |
| 31 | - | GetServerConnectionType() []interface{} | |
| 29 | + | GetDtlsClientConnectionType() types.GType | |
| 30 | + | GetDtlsServerConnectionType() types.GType | |
| 31 | + | GetFileDatabaseType() types.GType | |
| 32 | + | GetServerConnectionType() types.GType | |
| 32 | 33 | SetDefaultDatabase(DatabaseVar *TlsDatabase) | |
| 33 | 34 | SupportsDtls() bool | |
| 34 | 35 | SupportsTls() bool | |
| @@ -46,14 +47,14 @@ func (x *TlsBackendBase) SetGoPointer(ptr uintptr) { | |||
| 46 | 47 | } | |
| 47 | 48 | ||
| 48 | 49 | // Gets the #GType of @backend's #GTlsCertificate implementation. | |
| 49 | - | func (x *TlsBackendBase) GetCertificateType() []interface{} { | |
| 50 | + | func (x *TlsBackendBase) GetCertificateType() types.GType { | |
| 50 | 51 | ||
| 51 | 52 | cret := XGTlsBackendGetCertificateType(x.GoPointer()) | |
| 52 | 53 | return cret | |
| 53 | 54 | } | |
| 54 | 55 | ||
| 55 | 56 | // Gets the #GType of @backend's #GTlsClientConnection implementation. | |
| 56 | - | func (x *TlsBackendBase) GetClientConnectionType() []interface{} { | |
| 57 | + | func (x *TlsBackendBase) GetClientConnectionType() types.GType { | |
| 57 | 58 | ||
| 58 | 59 | cret := XGTlsBackendGetClientConnectionType(x.GoPointer()) | |
| 59 | 60 | return cret | |
| @@ -74,28 +75,28 @@ func (x *TlsBackendBase) GetDefaultDatabase() *TlsDatabase { | |||
| 74 | 75 | } | |
| 75 | 76 | ||
| 76 | 77 | // Gets the #GType of @backend’s #GDtlsClientConnection implementation. | |
| 77 | - | func (x *TlsBackendBase) GetDtlsClientConnectionType() []interface{} { | |
| 78 | + | func (x *TlsBackendBase) GetDtlsClientConnectionType() types.GType { | |
| 78 | 79 | ||
| 79 | 80 | cret := XGTlsBackendGetDtlsClientConnectionType(x.GoPointer()) | |
| 80 | 81 | return cret | |
| 81 | 82 | } | |
| 82 | 83 | ||
| 83 | 84 | // Gets the #GType of @backend’s #GDtlsServerConnection implementation. | |
| 84 | - | func (x *TlsBackendBase) GetDtlsServerConnectionType() []interface{} { | |
| 85 | + | func (x *TlsBackendBase) GetDtlsServerConnectionType() types.GType { | |
| 85 | 86 | ||
| 86 | 87 | cret := XGTlsBackendGetDtlsServerConnectionType(x.GoPointer()) | |
| 87 | 88 | return cret | |
| 88 | 89 | } | |
| 89 | 90 | ||
| 90 | 91 | // Gets the #GType of @backend's #GTlsFileDatabase implementation. | |
| 91 | - | func (x *TlsBackendBase) GetFileDatabaseType() []interface{} { | |
| 92 | + | func (x *TlsBackendBase) GetFileDatabaseType() types.GType { | |
| 92 | 93 | ||
| 93 | 94 | cret := XGTlsBackendGetFileDatabaseType(x.GoPointer()) | |
| 94 | 95 | return cret | |
| 95 | 96 | } | |
| 96 | 97 | ||
| 97 | 98 | // Gets the #GType of @backend's #GTlsServerConnection implementation. | |
| 98 | - | func (x *TlsBackendBase) GetServerConnectionType() []interface{} { | |
| 99 | + | func (x *TlsBackendBase) GetServerConnectionType() types.GType { | |
| 99 | 100 | ||
| 100 | 101 | cret := XGTlsBackendGetServerConnectionType(x.GoPointer()) | |
| 101 | 102 | return cret | |
| @@ -131,13 +132,13 @@ func (x *TlsBackendBase) SupportsTls() bool { | |||
| 131 | 132 | return cret | |
| 132 | 133 | } | |
| 133 | 134 | ||
| 134 | - | var XGTlsBackendGetCertificateType func(uintptr) []interface{} | |
| 135 | - | var XGTlsBackendGetClientConnectionType func(uintptr) []interface{} | |
| 135 | + | var XGTlsBackendGetCertificateType func(uintptr) types.GType | |
| 136 | + | var XGTlsBackendGetClientConnectionType func(uintptr) types.GType | |
| 136 | 137 | var XGTlsBackendGetDefaultDatabase func(uintptr) uintptr | |
| 137 | - | var XGTlsBackendGetDtlsClientConnectionType func(uintptr) []interface{} | |
| 138 | - | var XGTlsBackendGetDtlsServerConnectionType func(uintptr) []interface{} | |
| 139 | - | var XGTlsBackendGetFileDatabaseType func(uintptr) []interface{} | |
| 140 | - | var XGTlsBackendGetServerConnectionType func(uintptr) []interface{} | |
| 138 | + | var XGTlsBackendGetDtlsClientConnectionType func(uintptr) types.GType | |
| 139 | + | var XGTlsBackendGetDtlsServerConnectionType func(uintptr) types.GType | |
| 140 | + | var XGTlsBackendGetFileDatabaseType func(uintptr) types.GType | |
| 141 | + | var XGTlsBackendGetServerConnectionType func(uintptr) types.GType | |
| 141 | 142 | var XGTlsBackendSetDefaultDatabase func(uintptr, uintptr) | |
| 142 | 143 | var XGTlsBackendSupportsDtls func(uintptr) bool | |
| 143 | 144 | var XGTlsBackendSupportsTls func(uintptr) bool | |
M v4/gio/gtlscertificate.go +7 -7
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type TlsCertificateClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *TlsCertificateClass) GoPointer() uintptr { | |
| @@ -214,7 +214,7 @@ func NewTlsCertificateFromPkcs11Uris(Pkcs11UriVar string, PrivateKeyPkcs11UriVar | |||
| 214 | 214 | ||
| 215 | 215 | } | |
| 216 | 216 | ||
| 217 | - | var xNewTlsCertificateFromPkcs12 func(uintptr, uint, string, **glib.Error) uintptr | |
| 217 | + | var xNewTlsCertificateFromPkcs12 func([]byte, uint, string, **glib.Error) uintptr | |
| 218 | 218 | ||
| 219 | 219 | // Creates a #GTlsCertificate from the data in @data. It must contain | |
| 220 | 220 | // a certificate and matching private key. | |
| @@ -233,7 +233,7 @@ var xNewTlsCertificateFromPkcs12 func(uintptr, uint, string, **glib.Error) uintp | |||
| 233 | 233 | // %G_IO_ERROR_NOT_SUPPORTED. | |
| 234 | 234 | // | |
| 235 | 235 | // Other parsing failures will error with %G_TLS_ERROR_BAD_CERTIFICATE. | |
| 236 | - | func NewTlsCertificateFromPkcs12(DataVar uintptr, LengthVar uint, PasswordVar string) (*TlsCertificate, error) { | |
| 236 | + | func NewTlsCertificateFromPkcs12(DataVar []byte, LengthVar uint, PasswordVar string) (*TlsCertificate, error) { | |
| 237 | 237 | var cls *TlsCertificate | |
| 238 | 238 | var cerr *glib.Error | |
| 239 | 239 | ||
| @@ -251,19 +251,19 @@ func NewTlsCertificateFromPkcs12(DataVar uintptr, LengthVar uint, PasswordVar st | |||
| 251 | 251 | ||
| 252 | 252 | } | |
| 253 | 253 | ||
| 254 | - | var xTlsCertificateGetDnsNames func(uintptr) uintptr | |
| 254 | + | var xTlsCertificateGetDnsNames func(uintptr) []glib.Bytes | |
| 255 | 255 | ||
| 256 | 256 | // Gets the value of #GTlsCertificate:dns-names. | |
| 257 | - | func (x *TlsCertificate) GetDnsNames() uintptr { | |
| 257 | + | func (x *TlsCertificate) GetDnsNames() []glib.Bytes { | |
| 258 | 258 | ||
| 259 | 259 | cret := xTlsCertificateGetDnsNames(x.GoPointer()) | |
| 260 | 260 | return cret | |
| 261 | 261 | } | |
| 262 | 262 | ||
| 263 | - | var xTlsCertificateGetIpAddresses func(uintptr) uintptr | |
| 263 | + | var xTlsCertificateGetIpAddresses func(uintptr) []InetAddress | |
| 264 | 264 | ||
| 265 | 265 | // Gets the value of #GTlsCertificate:ip-addresses. | |
| 266 | - | func (x *TlsCertificate) GetIpAddresses() uintptr { | |
| 266 | + | func (x *TlsCertificate) GetIpAddresses() []InetAddress { | |
| 267 | 267 | ||
| 268 | 268 | cret := xTlsCertificateGetIpAddresses(x.GoPointer()) | |
| 269 | 269 | return cret | |
M v4/gio/gtlsconnection.go +5 -5
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type TlsConnectionClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [6]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *TlsConnectionClass) GoPointer() uintptr { | |
| @@ -72,7 +72,7 @@ func (x *TlsConnection) GetCertificate() *TlsCertificate { | |||
| 72 | 72 | return cls | |
| 73 | 73 | } | |
| 74 | 74 | ||
| 75 | - | var xTlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, uintptr, **glib.Error) bool | |
| 75 | + | var xTlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, []byte, **glib.Error) bool | |
| 76 | 76 | ||
| 77 | 77 | // Query the TLS backend for TLS channel binding data of @type for @conn. | |
| 78 | 78 | // | |
| @@ -87,7 +87,7 @@ var xTlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, uin | |||
| 87 | 87 | // will be available though. That could happen if TLS connection does not | |
| 88 | 88 | // support @type or the binding data is not available yet due to additional | |
| 89 | 89 | // negotiation or input required. | |
| 90 | - | func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar uintptr) (bool, error) { | |
| 90 | + | func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar []byte) (bool, error) { | |
| 91 | 91 | var cerr *glib.Error | |
| 92 | 92 | ||
| 93 | 93 | cret := xTlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | |
| @@ -310,7 +310,7 @@ func (x *TlsConnection) HandshakeFinish(ResultVar AsyncResult) (bool, error) { | |||
| 310 | 310 | ||
| 311 | 311 | } | |
| 312 | 312 | ||
| 313 | - | var xTlsConnectionSetAdvertisedProtocols func(uintptr, uintptr) | |
| 313 | + | var xTlsConnectionSetAdvertisedProtocols func(uintptr, []string) | |
| 314 | 314 | ||
| 315 | 315 | // Sets the list of application-layer protocols to advertise that the | |
| 316 | 316 | // caller is willing to speak on this connection. The | |
| @@ -322,7 +322,7 @@ var xTlsConnectionSetAdvertisedProtocols func(uintptr, uintptr) | |||
| 322 | 322 | // | |
| 323 | 323 | // See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) | |
| 324 | 324 | // for a list of registered protocol IDs. | |
| 325 | - | func (x *TlsConnection) SetAdvertisedProtocols(ProtocolsVar uintptr) { | |
| 325 | + | func (x *TlsConnection) SetAdvertisedProtocols(ProtocolsVar []string) { | |
| 326 | 326 | ||
| 327 | 327 | xTlsConnectionSetAdvertisedProtocols(x.GoPointer(), ProtocolsVar) | |
| 328 | 328 | ||
M v4/gio/gtlsdatabase.go +5 -5
| @@ -16,7 +16,7 @@ import ( | |||
| 16 | 16 | type TlsDatabaseClass struct { | |
| 17 | 17 | ParentClass uintptr | |
| 18 | 18 | ||
| 19 | - | Padding uintptr | |
| 19 | + | Padding [16]uintptr | |
| 20 | 20 | } | |
| 21 | 21 | ||
| 22 | 22 | func (x *TlsDatabaseClass) GoPointer() uintptr { | |
| @@ -213,13 +213,13 @@ func (x *TlsDatabase) LookupCertificateIssuerFinish(ResultVar AsyncResult) (*Tls | |||
| 213 | 213 | ||
| 214 | 214 | } | |
| 215 | 215 | ||
| 216 | - | var xTlsDatabaseLookupCertificatesIssuedBy func(uintptr, uintptr, uintptr, TlsDatabaseLookupFlags, uintptr, **glib.Error) *glib.List | |
| 216 | + | var xTlsDatabaseLookupCertificatesIssuedBy func(uintptr, []byte, uintptr, TlsDatabaseLookupFlags, uintptr, **glib.Error) *glib.List | |
| 217 | 217 | ||
| 218 | 218 | // Look up certificates issued by this issuer in the database. | |
| 219 | 219 | // | |
| 220 | 220 | // This function can block, use g_tls_database_lookup_certificates_issued_by_async() to perform | |
| 221 | 221 | // the lookup operation asynchronously. | |
| 222 | - | func (x *TlsDatabase) LookupCertificatesIssuedBy(IssuerRawDnVar uintptr, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable) (*glib.List, error) { | |
| 222 | + | func (x *TlsDatabase) LookupCertificatesIssuedBy(IssuerRawDnVar []byte, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable) (*glib.List, error) { | |
| 223 | 223 | var cerr *glib.Error | |
| 224 | 224 | ||
| 225 | 225 | cret := xTlsDatabaseLookupCertificatesIssuedBy(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -230,7 +230,7 @@ func (x *TlsDatabase) LookupCertificatesIssuedBy(IssuerRawDnVar uintptr, Interac | |||
| 230 | 230 | ||
| 231 | 231 | } | |
| 232 | 232 | ||
| 233 | - | var xTlsDatabaseLookupCertificatesIssuedByAsync func(uintptr, uintptr, uintptr, TlsDatabaseLookupFlags, uintptr, uintptr, uintptr) | |
| 233 | + | var xTlsDatabaseLookupCertificatesIssuedByAsync func(uintptr, []byte, uintptr, TlsDatabaseLookupFlags, uintptr, uintptr, uintptr) | |
| 234 | 234 | ||
| 235 | 235 | // Asynchronously look up certificates issued by this issuer in the database. See | |
| 236 | 236 | // g_tls_database_lookup_certificates_issued_by() for more information. | |
| @@ -238,7 +238,7 @@ var xTlsDatabaseLookupCertificatesIssuedByAsync func(uintptr, uintptr, uintptr, | |||
| 238 | 238 | // The database may choose to hold a reference to the issuer byte array for the duration | |
| 239 | 239 | // of of this asynchronous operation. The byte array should not be modified during | |
| 240 | 240 | // this time. | |
| 241 | - | func (x *TlsDatabase) LookupCertificatesIssuedByAsync(IssuerRawDnVar uintptr, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 241 | + | func (x *TlsDatabase) LookupCertificatesIssuedByAsync(IssuerRawDnVar []byte, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 242 | 242 | ||
| 243 | 243 | xTlsDatabaseLookupCertificatesIssuedByAsync(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 244 | 244 | ||
M v4/gio/gtlsfiledatabase.go +1 -1
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type TlsFileDatabaseInterface struct { | |
| 14 | 14 | GIface uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *TlsFileDatabaseInterface) GoPointer() uintptr { | |
M v4/gio/gtlsinteraction.go +1 -1
| @@ -27,7 +27,7 @@ import ( | |||
| 27 | 27 | type TlsInteractionClass struct { | |
| 28 | 28 | ParentClass uintptr | |
| 29 | 29 | ||
| 30 | - | Padding uintptr | |
| 30 | + | Padding [21]uintptr | |
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | 33 | func (x *TlsInteractionClass) GoPointer() uintptr { | |
M v4/gio/gtlspassword.go +7 -7
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type TlsPasswordClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [4]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *TlsPasswordClass) GoPointer() uintptr { | |
| @@ -73,14 +73,14 @@ func (x *TlsPassword) GetFlags() TlsPasswordFlags { | |||
| 73 | 73 | return cret | |
| 74 | 74 | } | |
| 75 | 75 | ||
| 76 | - | var xTlsPasswordGetValue func(uintptr, uint) uintptr | |
| 76 | + | var xTlsPasswordGetValue func(uintptr, uint) []byte | |
| 77 | 77 | ||
| 78 | 78 | // Get the password value. If @length is not %NULL then it will be | |
| 79 | 79 | // filled in with the length of the password value. (Note that the | |
| 80 | 80 | // password value is not nul-terminated, so you can only pass %NULL | |
| 81 | 81 | // for @length in contexts where you know the password will have a | |
| 82 | 82 | // certain fixed length.) | |
| 83 | - | func (x *TlsPassword) GetValue(LengthVar uint) uintptr { | |
| 83 | + | func (x *TlsPassword) GetValue(LengthVar uint) []byte { | |
| 84 | 84 | ||
| 85 | 85 | cret := xTlsPasswordGetValue(x.GoPointer(), LengthVar) | |
| 86 | 86 | return cret | |
| @@ -115,7 +115,7 @@ func (x *TlsPassword) SetFlags(FlagsVar TlsPasswordFlags) { | |||
| 115 | 115 | ||
| 116 | 116 | } | |
| 117 | 117 | ||
| 118 | - | var xTlsPasswordSetValue func(uintptr, uintptr, int) | |
| 118 | + | var xTlsPasswordSetValue func(uintptr, []byte, int) | |
| 119 | 119 | ||
| 120 | 120 | // Set the value for this password. The @value will be copied by the password | |
| 121 | 121 | // object. | |
| @@ -124,13 +124,13 @@ var xTlsPasswordSetValue func(uintptr, uintptr, int) | |||
| 124 | 124 | // @length if using a nul-terminated password, and @length will be | |
| 125 | 125 | // calculated automatically. (Note that the terminating nul is not | |
| 126 | 126 | // considered part of the password in this case.) | |
| 127 | - | func (x *TlsPassword) SetValue(ValueVar uintptr, LengthVar int) { | |
| 127 | + | func (x *TlsPassword) SetValue(ValueVar []byte, LengthVar int) { | |
| 128 | 128 | ||
| 129 | 129 | xTlsPasswordSetValue(x.GoPointer(), ValueVar, LengthVar) | |
| 130 | 130 | ||
| 131 | 131 | } | |
| 132 | 132 | ||
| 133 | - | var xTlsPasswordSetValueFull func(uintptr, uintptr, int, uintptr) | |
| 133 | + | var xTlsPasswordSetValueFull func(uintptr, []byte, int, uintptr) | |
| 134 | 134 | ||
| 135 | 135 | // Provide the value for this password. | |
| 136 | 136 | // | |
| @@ -141,7 +141,7 @@ var xTlsPasswordSetValueFull func(uintptr, uintptr, int, uintptr) | |||
| 141 | 141 | // @length if using a nul-terminated password, and @length will be | |
| 142 | 142 | // calculated automatically. (Note that the terminating nul is not | |
| 143 | 143 | // considered part of the password in this case.) | |
| 144 | - | func (x *TlsPassword) SetValueFull(ValueVar uintptr, LengthVar int, DestroyVar *glib.DestroyNotify) { | |
| 144 | + | func (x *TlsPassword) SetValueFull(ValueVar []byte, LengthVar int, DestroyVar *glib.DestroyNotify) { | |
| 145 | 145 | ||
| 146 | 146 | xTlsPasswordSetValueFull(x.GoPointer(), ValueVar, LengthVar, glib.NewCallback(DestroyVar)) | |
| 147 | 147 | ||
M v4/gio/gunixfdlist.go +6 -6
| @@ -61,7 +61,7 @@ func NewUnixFDList() *UnixFDList { | |||
| 61 | 61 | return cls | |
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | - | var xNewUnixFDListFromArray func(uintptr, int) uintptr | |
| 64 | + | var xNewUnixFDListFromArray func([]int, int) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new #GUnixFDList containing the file descriptors given in | |
| 67 | 67 | // @fds. The file descriptors become the property of the new list and | |
| @@ -71,7 +71,7 @@ var xNewUnixFDListFromArray func(uintptr, int) uintptr | |||
| 71 | 71 | // Each file descriptor in the array should be set to close-on-exec. | |
| 72 | 72 | // | |
| 73 | 73 | // If @n_fds is -1 then @fds must be terminated with -1. | |
| 74 | - | func NewUnixFDListFromArray(FdsVar uintptr, NFdsVar int) *UnixFDList { | |
| 74 | + | func NewUnixFDListFromArray(FdsVar []int, NFdsVar int) *UnixFDList { | |
| 75 | 75 | var cls *UnixFDList | |
| 76 | 76 | ||
| 77 | 77 | cret := xNewUnixFDListFromArray(FdsVar, NFdsVar) | |
| @@ -144,7 +144,7 @@ func (x *UnixFDList) GetLength() int { | |||
| 144 | 144 | return cret | |
| 145 | 145 | } | |
| 146 | 146 | ||
| 147 | - | var xUnixFDListPeekFds func(uintptr, int) uintptr | |
| 147 | + | var xUnixFDListPeekFds func(uintptr, int) []int | |
| 148 | 148 | ||
| 149 | 149 | // Returns the array of file descriptors that is contained in this | |
| 150 | 150 | // object. | |
| @@ -159,13 +159,13 @@ var xUnixFDListPeekFds func(uintptr, int) uintptr | |||
| 159 | 159 | // | |
| 160 | 160 | // This function never returns %NULL. In case there are no file | |
| 161 | 161 | // descriptors contained in @list, an empty array is returned. | |
| 162 | - | func (x *UnixFDList) PeekFds(LengthVar int) uintptr { | |
| 162 | + | func (x *UnixFDList) PeekFds(LengthVar int) []int { | |
| 163 | 163 | ||
| 164 | 164 | cret := xUnixFDListPeekFds(x.GoPointer(), LengthVar) | |
| 165 | 165 | return cret | |
| 166 | 166 | } | |
| 167 | 167 | ||
| 168 | - | var xUnixFDListStealFds func(uintptr, int) uintptr | |
| 168 | + | var xUnixFDListStealFds func(uintptr, int) []int | |
| 169 | 169 | ||
| 170 | 170 | // Returns the array of file descriptors that is contained in this | |
| 171 | 171 | // object. | |
| @@ -185,7 +185,7 @@ var xUnixFDListStealFds func(uintptr, int) uintptr | |||
| 185 | 185 | // | |
| 186 | 186 | // This function never returns %NULL. In case there are no file | |
| 187 | 187 | // descriptors contained in @list, an empty array is returned. | |
| 188 | - | func (x *UnixFDList) StealFds(LengthVar int) uintptr { | |
| 188 | + | func (x *UnixFDList) StealFds(LengthVar int) []int { | |
| 189 | 189 | ||
| 190 | 190 | cret := xUnixFDListStealFds(x.GoPointer(), LengthVar) | |
| 191 | 191 | return cret | |
M v4/gio/gunixfdmessage.go +2 -2
| @@ -121,7 +121,7 @@ func (x *UnixFDMessage) GetFdList() *UnixFDList { | |||
| 121 | 121 | return cls | |
| 122 | 122 | } | |
| 123 | 123 | ||
| 124 | - | var xUnixFDMessageStealFds func(uintptr, int) uintptr | |
| 124 | + | var xUnixFDMessageStealFds func(uintptr, int) []int | |
| 125 | 125 | ||
| 126 | 126 | // Returns the array of file descriptors that is contained in this | |
| 127 | 127 | // object. | |
| @@ -140,7 +140,7 @@ var xUnixFDMessageStealFds func(uintptr, int) uintptr | |||
| 140 | 140 | // | |
| 141 | 141 | // This function never returns %NULL. In case there are no file | |
| 142 | 142 | // descriptors contained in @message, an empty array is returned. | |
| 143 | - | func (x *UnixFDMessage) StealFds(LengthVar int) uintptr { | |
| 143 | + | func (x *UnixFDMessage) StealFds(LengthVar int) []int { | |
| 144 | 144 | ||
| 145 | 145 | cret := xUnixFDMessageStealFds(x.GoPointer(), LengthVar) | |
| 146 | 146 | return cret | |
M v4/gio/gunixinputstream.go +1 -1
| @@ -151,7 +151,7 @@ func (x *UnixInputStream) IsReadable() bool { | |||
| 151 | 151 | // if @cancellable has already been cancelled when you call, which | |
| 152 | 152 | // may happen if you call this method after a source triggers due | |
| 153 | 153 | // to having been cancelled. | |
| 154 | - | func (x *UnixInputStream) ReadNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 154 | + | func (x *UnixInputStream) ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 155 | 155 | var cerr *glib.Error | |
| 156 | 156 | ||
| 157 | 157 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gunixoutputstream.go +2 -2
| @@ -155,7 +155,7 @@ func (x *UnixOutputStream) IsWritable() bool { | |||
| 155 | 155 | // Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying | |
| 156 | 156 | // transports like D/TLS require that you re-send the same @buffer and | |
| 157 | 157 | // @count in the next write call. | |
| 158 | - | func (x *UnixOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 158 | + | func (x *UnixOutputStream) WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 159 | 159 | var cerr *glib.Error | |
| 160 | 160 | ||
| 161 | 161 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -182,7 +182,7 @@ func (x *UnixOutputStream) WriteNonblocking(BufferVar uintptr, CountVar uint, Ca | |||
| 182 | 182 | // Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying | |
| 183 | 183 | // transports like D/TLS require that you re-send the same @vectors and | |
| 184 | 184 | // @n_vectors in the next write call. | |
| 185 | - | func (x *UnixOutputStream) WritevNonblocking(VectorsVar uintptr, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 185 | + | func (x *UnixOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 186 | 186 | var cerr *glib.Error | |
| 187 | 187 | ||
| 188 | 188 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
M v4/gio/gunixsocketaddress.go +4 -4
| @@ -70,11 +70,11 @@ func NewUnixSocketAddress(PathVar string) *UnixSocketAddress { | |||
| 70 | 70 | return cls | |
| 71 | 71 | } | |
| 72 | 72 | ||
| 73 | - | var xNewUnixSocketAddressAbstract func(uintptr, int) uintptr | |
| 73 | + | var xNewUnixSocketAddressAbstract func([]byte, int) uintptr | |
| 74 | 74 | ||
| 75 | 75 | // Creates a new %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED | |
| 76 | 76 | // #GUnixSocketAddress for @path. | |
| 77 | - | func NewUnixSocketAddressAbstract(PathVar uintptr, PathLenVar int) *UnixSocketAddress { | |
| 77 | + | func NewUnixSocketAddressAbstract(PathVar []byte, PathLenVar int) *UnixSocketAddress { | |
| 78 | 78 | var cls *UnixSocketAddress | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewUnixSocketAddressAbstract(PathVar, PathLenVar) | |
| @@ -87,7 +87,7 @@ func NewUnixSocketAddressAbstract(PathVar uintptr, PathLenVar int) *UnixSocketAd | |||
| 87 | 87 | return cls | |
| 88 | 88 | } | |
| 89 | 89 | ||
| 90 | - | var xNewUnixSocketAddressWithType func(uintptr, int, UnixSocketAddressType) uintptr | |
| 90 | + | var xNewUnixSocketAddressWithType func([]byte, int, UnixSocketAddressType) uintptr | |
| 91 | 91 | ||
| 92 | 92 | // Creates a new #GUnixSocketAddress of type @type with name @path. | |
| 93 | 93 | // | |
| @@ -120,7 +120,7 @@ var xNewUnixSocketAddressWithType func(uintptr, int, UnixSocketAddressType) uint | |||
| 120 | 120 | // when connecting to a server created by another process, you must | |
| 121 | 121 | // use the appropriate type corresponding to how that process created | |
| 122 | 122 | // its listening socket. | |
| 123 | - | func NewUnixSocketAddressWithType(PathVar uintptr, PathLenVar int, TypeVar UnixSocketAddressType) *UnixSocketAddress { | |
| 123 | + | func NewUnixSocketAddressWithType(PathVar []byte, PathLenVar int, TypeVar UnixSocketAddressType) *UnixSocketAddress { | |
| 124 | 124 | var cls *UnixSocketAddress | |
| 125 | 125 | ||
| 126 | 126 | cret := xNewUnixSocketAddressWithType(PathVar, PathLenVar, TypeVar) | |
M v4/gio/gvfs.go +2 -2
| @@ -79,10 +79,10 @@ func (x *Vfs) GetFileForUri(UriVar string) *FileBase { | |||
| 79 | 79 | return cls | |
| 80 | 80 | } | |
| 81 | 81 | ||
| 82 | - | var xVfsGetSupportedUriSchemes func(uintptr) uintptr | |
| 82 | + | var xVfsGetSupportedUriSchemes func(uintptr) []string | |
| 83 | 83 | ||
| 84 | 84 | // Gets a list of URI schemes supported by @vfs. | |
| 85 | - | func (x *Vfs) GetSupportedUriSchemes() uintptr { | |
| 85 | + | func (x *Vfs) GetSupportedUriSchemes() []string { | |
| 86 | 86 | ||
| 87 | 87 | cret := xVfsGetSupportedUriSchemes(x.GoPointer()) | |
| 88 | 88 | return cret | |
M v4/gio/gzlibcompressor.go +1 -1
| @@ -169,7 +169,7 @@ func (c *ZlibCompressor) SetGoPointer(ptr uintptr) { | |||
| 169 | 169 | // at a partial multibyte sequence). Converters are supposed to try | |
| 170 | 170 | // to produce as much output as possible and then return an error | |
| 171 | 171 | // (typically %G_IO_ERROR_PARTIAL_INPUT). | |
| 172 | - | func (x *ZlibCompressor) Convert(InbufVar uintptr, InbufSizeVar uint, OutbufVar uintptr, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 172 | + | func (x *ZlibCompressor) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 173 | 173 | var cerr *glib.Error | |
| 174 | 174 | ||
| 175 | 175 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
M v4/gio/gzlibdecompressor.go +1 -1
| @@ -157,7 +157,7 @@ func (c *ZlibDecompressor) SetGoPointer(ptr uintptr) { | |||
| 157 | 157 | // at a partial multibyte sequence). Converters are supposed to try | |
| 158 | 158 | // to produce as much output as possible and then return an error | |
| 159 | 159 | // (typically %G_IO_ERROR_PARTIAL_INPUT). | |
| 160 | - | func (x *ZlibDecompressor) Convert(InbufVar uintptr, InbufSizeVar uint, OutbufVar uintptr, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 160 | + | func (x *ZlibDecompressor) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) (ConverterResult, error) { | |
| 161 | 161 | var cerr *glib.Error | |
| 162 | 162 | ||
| 163 | 163 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
M v4/glib/garray.go +26 -26
| @@ -61,24 +61,24 @@ func (x *Bytes) GoPointer() uintptr { | |||
| 61 | 61 | return uintptr(unsafe.Pointer(x)) | |
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | - | var xNewBytes func(uintptr, uint) *Bytes | |
| 64 | + | var xNewBytes func([]byte, uint) *Bytes | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new #GBytes from @data. | |
| 67 | 67 | // | |
| 68 | 68 | // @data is copied. If @size is 0, @data may be %NULL. | |
| 69 | - | func NewBytes(DataVar uintptr, SizeVar uint) *Bytes { | |
| 69 | + | func NewBytes(DataVar []byte, SizeVar uint) *Bytes { | |
| 70 | 70 | ||
| 71 | 71 | cret := xNewBytes(DataVar, SizeVar) | |
| 72 | 72 | return cret | |
| 73 | 73 | } | |
| 74 | 74 | ||
| 75 | - | var xNewBytesStatic func(uintptr, uint) *Bytes | |
| 75 | + | var xNewBytesStatic func([]byte, uint) *Bytes | |
| 76 | 76 | ||
| 77 | 77 | // Creates a new #GBytes from static data. | |
| 78 | 78 | // | |
| 79 | 79 | // @data must be static (ie: never modified or freed). It may be %NULL if @size | |
| 80 | 80 | // is 0. | |
| 81 | - | func NewBytesStatic(DataVar uintptr, SizeVar uint) *Bytes { | |
| 81 | + | func NewBytesStatic(DataVar []byte, SizeVar uint) *Bytes { | |
| 82 | 82 | ||
| 83 | 83 | cret := xNewBytesStatic(DataVar, SizeVar) | |
| 84 | 84 | return cret | |
| @@ -104,7 +104,7 @@ func NewBytesTake(DataVar uintptr, SizeVar uint) *Bytes { | |||
| 104 | 104 | return cret | |
| 105 | 105 | } | |
| 106 | 106 | ||
| 107 | - | var xNewBytesWithFreeFunc func(uintptr, uint, uintptr, uintptr) *Bytes | |
| 107 | + | var xNewBytesWithFreeFunc func([]byte, uint, uintptr, uintptr) *Bytes | |
| 108 | 108 | ||
| 109 | 109 | // Creates a #GBytes from @data. | |
| 110 | 110 | // | |
| @@ -115,7 +115,7 @@ var xNewBytesWithFreeFunc func(uintptr, uint, uintptr, uintptr) *Bytes | |||
| 115 | 115 | // been called to indicate that the bytes is no longer in use. | |
| 116 | 116 | // | |
| 117 | 117 | // @data may be %NULL if @size is 0. | |
| 118 | - | func NewBytesWithFreeFunc(DataVar uintptr, SizeVar uint, FreeFuncVar *DestroyNotify, UserDataVar uintptr) *Bytes { | |
| 118 | + | func NewBytesWithFreeFunc(DataVar []byte, SizeVar uint, FreeFuncVar *DestroyNotify, UserDataVar uintptr) *Bytes { | |
| 119 | 119 | ||
| 120 | 120 | cret := xNewBytesWithFreeFunc(DataVar, SizeVar, NewCallback(FreeFuncVar), UserDataVar) | |
| 121 | 121 | return cret | |
| @@ -151,7 +151,7 @@ func (x *Bytes) Equal(Bytes2Var uintptr) bool { | |||
| 151 | 151 | return cret | |
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | - | var xBytesGetData func(uintptr, uint) uintptr | |
| 154 | + | var xBytesGetData func(uintptr, uint) []byte | |
| 155 | 155 | ||
| 156 | 156 | // Get the byte data in the #GBytes. This data should not be modified. | |
| 157 | 157 | // | |
| @@ -160,7 +160,7 @@ var xBytesGetData func(uintptr, uint) uintptr | |||
| 160 | 160 | // %NULL may be returned if @size is 0. This is not guaranteed, as the #GBytes | |
| 161 | 161 | // may represent an empty string with @data non-%NULL and @size as 0. %NULL will | |
| 162 | 162 | // not be returned if @size is non-zero. | |
| 163 | - | func (x *Bytes) GetData(SizeVar uint) uintptr { | |
| 163 | + | func (x *Bytes) GetData(SizeVar uint) []byte { | |
| 164 | 164 | ||
| 165 | 165 | cret := xBytesGetData(x.GoPointer(), SizeVar) | |
| 166 | 166 | return cret | |
| @@ -255,7 +255,7 @@ func (x *Bytes) Unref() { | |||
| 255 | 255 | ||
| 256 | 256 | } | |
| 257 | 257 | ||
| 258 | - | var xBytesUnrefToArray func(uintptr) uintptr | |
| 258 | + | var xBytesUnrefToArray func(uintptr) []byte | |
| 259 | 259 | ||
| 260 | 260 | // Unreferences the bytes, and returns a new mutable #GByteArray containing | |
| 261 | 261 | // the same byte data. | |
| @@ -268,7 +268,7 @@ var xBytesUnrefToArray func(uintptr) uintptr | |||
| 268 | 268 | // Do not use it if @bytes contains more than %G_MAXUINT | |
| 269 | 269 | // bytes. #GByteArray stores the length of its data in #guint, which | |
| 270 | 270 | // may be shorter than #gsize, that @bytes is using. | |
| 271 | - | func (x *Bytes) UnrefToArray() uintptr { | |
| 271 | + | func (x *Bytes) UnrefToArray() []byte { | |
| 272 | 272 | ||
| 273 | 273 | cret := xBytesUnrefToArray(x.GoPointer()) | |
| 274 | 274 | return cret | |
| @@ -300,19 +300,19 @@ func (x *PtrArray) GoPointer() uintptr { | |||
| 300 | 300 | return uintptr(unsafe.Pointer(x)) | |
| 301 | 301 | } | |
| 302 | 302 | ||
| 303 | - | var xByteArrayFree func(uintptr, bool) byte | |
| 303 | + | var xByteArrayFree func([]byte, bool) byte | |
| 304 | 304 | ||
| 305 | 305 | // Frees the memory allocated by the #GByteArray. If @free_segment is | |
| 306 | 306 | // %TRUE it frees the actual byte data. If the reference count of | |
| 307 | 307 | // @array is greater than one, the #GByteArray wrapper is preserved but | |
| 308 | 308 | // the size of @array will be set to zero. | |
| 309 | - | func ByteArrayFree(ArrayVar uintptr, FreeSegmentVar bool) byte { | |
| 309 | + | func ByteArrayFree(ArrayVar []byte, FreeSegmentVar bool) byte { | |
| 310 | 310 | ||
| 311 | 311 | cret := xByteArrayFree(ArrayVar, FreeSegmentVar) | |
| 312 | 312 | return cret | |
| 313 | 313 | } | |
| 314 | 314 | ||
| 315 | - | var xByteArrayFreeToBytes func(uintptr) *Bytes | |
| 315 | + | var xByteArrayFreeToBytes func([]byte) *Bytes | |
| 316 | 316 | ||
| 317 | 317 | // Transfers the data from the #GByteArray into a new immutable #GBytes. | |
| 318 | 318 | // | |
| @@ -322,22 +322,22 @@ var xByteArrayFreeToBytes func(uintptr) *Bytes | |||
| 322 | 322 | // | |
| 323 | 323 | // This is identical to using g_bytes_new_take() and g_byte_array_free() | |
| 324 | 324 | // together. | |
| 325 | - | func ByteArrayFreeToBytes(ArrayVar uintptr) *Bytes { | |
| 325 | + | func ByteArrayFreeToBytes(ArrayVar []byte) *Bytes { | |
| 326 | 326 | ||
| 327 | 327 | cret := xByteArrayFreeToBytes(ArrayVar) | |
| 328 | 328 | return cret | |
| 329 | 329 | } | |
| 330 | 330 | ||
| 331 | - | var xByteArrayNew func() uintptr | |
| 331 | + | var xByteArrayNew func() []byte | |
| 332 | 332 | ||
| 333 | 333 | // Creates a new #GByteArray with a reference count of 1. | |
| 334 | - | func ByteArrayNew() uintptr { | |
| 334 | + | func ByteArrayNew() []byte { | |
| 335 | 335 | ||
| 336 | 336 | cret := xByteArrayNew() | |
| 337 | 337 | return cret | |
| 338 | 338 | } | |
| 339 | 339 | ||
| 340 | - | var xByteArrayNewTake func(uintptr, uint) uintptr | |
| 340 | + | var xByteArrayNewTake func([]byte, uint) []byte | |
| 341 | 341 | ||
| 342 | 342 | // Create byte array containing the data. The data will be owned by the array | |
| 343 | 343 | // and will be freed with g_free(), i.e. it could be allocated using g_strdup(). | |
| @@ -345,36 +345,36 @@ var xByteArrayNewTake func(uintptr, uint) uintptr | |||
| 345 | 345 | // Do not use it if @len is greater than %G_MAXUINT. #GByteArray | |
| 346 | 346 | // stores the length of its data in #guint, which may be shorter than | |
| 347 | 347 | // #gsize. | |
| 348 | - | func ByteArrayNewTake(DataVar uintptr, LenVar uint) uintptr { | |
| 348 | + | func ByteArrayNewTake(DataVar []byte, LenVar uint) []byte { | |
| 349 | 349 | ||
| 350 | 350 | cret := xByteArrayNewTake(DataVar, LenVar) | |
| 351 | 351 | return cret | |
| 352 | 352 | } | |
| 353 | 353 | ||
| 354 | - | var xByteArraySteal func(uintptr, uint) byte | |
| 354 | + | var xByteArraySteal func([]byte, uint) byte | |
| 355 | 355 | ||
| 356 | 356 | // Frees the data in the array and resets the size to zero, while | |
| 357 | 357 | // the underlying array is preserved for use elsewhere and returned | |
| 358 | 358 | // to the caller. | |
| 359 | - | func ByteArraySteal(ArrayVar uintptr, LenVar uint) byte { | |
| 359 | + | func ByteArraySteal(ArrayVar []byte, LenVar uint) byte { | |
| 360 | 360 | ||
| 361 | 361 | cret := xByteArraySteal(ArrayVar, LenVar) | |
| 362 | 362 | return cret | |
| 363 | 363 | } | |
| 364 | 364 | ||
| 365 | - | var xByteArrayUnref func(uintptr) | |
| 365 | + | var xByteArrayUnref func([]byte) | |
| 366 | 366 | ||
| 367 | 367 | // Atomically decrements the reference count of @array by one. If the | |
| 368 | 368 | // reference count drops to 0, all memory allocated by the array is | |
| 369 | 369 | // released. This function is thread-safe and may be called from any | |
| 370 | 370 | // thread. | |
| 371 | - | func ByteArrayUnref(ArrayVar uintptr) { | |
| 371 | + | func ByteArrayUnref(ArrayVar []byte) { | |
| 372 | 372 | ||
| 373 | 373 | xByteArrayUnref(ArrayVar) | |
| 374 | 374 | ||
| 375 | 375 | } | |
| 376 | 376 | ||
| 377 | - | var xPtrArrayFind func(uintptr, uintptr, uint) bool | |
| 377 | + | var xPtrArrayFind func([]uintptr, uintptr, uint) bool | |
| 378 | 378 | ||
| 379 | 379 | // Checks whether @needle exists in @haystack. If the element is found, %TRUE is | |
| 380 | 380 | // returned and the element’s index is returned in @index_ (if non-%NULL). | |
| @@ -383,13 +383,13 @@ var xPtrArrayFind func(uintptr, uintptr, uint) bool | |||
| 383 | 383 | // | |
| 384 | 384 | // This does pointer comparisons only. If you want to use more complex equality | |
| 385 | 385 | // checks, such as string comparisons, use g_ptr_array_find_with_equal_func(). | |
| 386 | - | func PtrArrayFind(HaystackVar uintptr, NeedleVar uintptr, IndexVar uint) bool { | |
| 386 | + | func PtrArrayFind(HaystackVar []uintptr, NeedleVar uintptr, IndexVar uint) bool { | |
| 387 | 387 | ||
| 388 | 388 | cret := xPtrArrayFind(HaystackVar, NeedleVar, IndexVar) | |
| 389 | 389 | return cret | |
| 390 | 390 | } | |
| 391 | 391 | ||
| 392 | - | var xPtrArrayFindWithEqualFunc func(uintptr, uintptr, uintptr, uint) bool | |
| 392 | + | var xPtrArrayFindWithEqualFunc func([]uintptr, uintptr, uintptr, uint) bool | |
| 393 | 393 | ||
| 394 | 394 | // Checks whether @needle exists in @haystack, using the given @equal_func. | |
| 395 | 395 | // If the element is found, %TRUE is returned and the element’s index is | |
| @@ -400,7 +400,7 @@ var xPtrArrayFindWithEqualFunc func(uintptr, uintptr, uintptr, uint) bool | |||
| 400 | 400 | // @equal_func is called with the element from the array as its first parameter, | |
| 401 | 401 | // and @needle as its second parameter. If @equal_func is %NULL, pointer | |
| 402 | 402 | // equality is used. | |
| 403 | - | func PtrArrayFindWithEqualFunc(HaystackVar uintptr, NeedleVar uintptr, EqualFuncVar *EqualFunc, IndexVar uint) bool { | |
| 403 | + | func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFuncVar *EqualFunc, IndexVar uint) bool { | |
| 404 | 404 | ||
| 405 | 405 | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, NewCallback(EqualFuncVar), IndexVar) | |
| 406 | 406 | return cret | |
M v4/glib/gbase64.go +12 -12
| @@ -6,28 +6,28 @@ import ( | |||
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | - | var xBase64Decode func(string, uint) uintptr | |
| 9 | + | var xBase64Decode func(string, uint) []byte | |
| 10 | 10 | ||
| 11 | 11 | // Decode a sequence of Base-64 encoded text into binary data. Note | |
| 12 | 12 | // that the returned binary data is not necessarily zero-terminated, | |
| 13 | 13 | // so it should not be used as a character string. | |
| 14 | - | func Base64Decode(TextVar string, OutLenVar uint) uintptr { | |
| 14 | + | func Base64Decode(TextVar string, OutLenVar uint) []byte { | |
| 15 | 15 | ||
| 16 | 16 | cret := xBase64Decode(TextVar, OutLenVar) | |
| 17 | 17 | return cret | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | - | var xBase64DecodeInplace func(uintptr, uint) byte | |
| 20 | + | var xBase64DecodeInplace func([]byte, uint) byte | |
| 21 | 21 | ||
| 22 | 22 | // Decode a sequence of Base-64 encoded text into binary data | |
| 23 | 23 | // by overwriting the input data. | |
| 24 | - | func Base64DecodeInplace(TextVar uintptr, OutLenVar uint) byte { | |
| 24 | + | func Base64DecodeInplace(TextVar []byte, OutLenVar uint) byte { | |
| 25 | 25 | ||
| 26 | 26 | cret := xBase64DecodeInplace(TextVar, OutLenVar) | |
| 27 | 27 | return cret | |
| 28 | 28 | } | |
| 29 | 29 | ||
| 30 | - | var xBase64DecodeStep func(uintptr, uint, uintptr, int, uint) uint | |
| 30 | + | var xBase64DecodeStep func([]byte, uint, []byte, int, uint) uint | |
| 31 | 31 | ||
| 32 | 32 | // Incrementally decode a sequence of binary data from its Base-64 stringified | |
| 33 | 33 | // representation. By calling this function multiple times you can convert | |
| @@ -37,23 +37,23 @@ var xBase64DecodeStep func(uintptr, uint, uintptr, int, uint) uint | |||
| 37 | 37 | // be written to it. Since base64 encodes 3 bytes in 4 chars you need | |
| 38 | 38 | // at least: (@len / 4) * 3 + 3 bytes (+ 3 may be needed in case of non-zero | |
| 39 | 39 | // state). | |
| 40 | - | func Base64DecodeStep(InVar uintptr, LenVar uint, OutVar uintptr, StateVar int, SaveVar uint) uint { | |
| 40 | + | func Base64DecodeStep(InVar []byte, LenVar uint, OutVar []byte, StateVar int, SaveVar uint) uint { | |
| 41 | 41 | ||
| 42 | 42 | cret := xBase64DecodeStep(InVar, LenVar, OutVar, StateVar, SaveVar) | |
| 43 | 43 | return cret | |
| 44 | 44 | } | |
| 45 | 45 | ||
| 46 | - | var xBase64Encode func(uintptr, uint) string | |
| 46 | + | var xBase64Encode func([]byte, uint) string | |
| 47 | 47 | ||
| 48 | 48 | // Encode a sequence of binary data into its Base-64 stringified | |
| 49 | 49 | // representation. | |
| 50 | - | func Base64Encode(DataVar uintptr, LenVar uint) string { | |
| 50 | + | func Base64Encode(DataVar []byte, LenVar uint) string { | |
| 51 | 51 | ||
| 52 | 52 | cret := xBase64Encode(DataVar, LenVar) | |
| 53 | 53 | return cret | |
| 54 | 54 | } | |
| 55 | 55 | ||
| 56 | - | var xBase64EncodeClose func(bool, uintptr, int, int) uint | |
| 56 | + | var xBase64EncodeClose func(bool, []byte, int, int) uint | |
| 57 | 57 | ||
| 58 | 58 | // Flush the status from a sequence of calls to g_base64_encode_step(). | |
| 59 | 59 | // | |
| @@ -62,13 +62,13 @@ var xBase64EncodeClose func(bool, uintptr, int, int) uint | |||
| 62 | 62 | // line-breaking is enabled. | |
| 63 | 63 | // | |
| 64 | 64 | // The @out array will not be automatically nul-terminated. | |
| 65 | - | func Base64EncodeClose(BreakLinesVar bool, OutVar uintptr, StateVar int, SaveVar int) uint { | |
| 65 | + | func Base64EncodeClose(BreakLinesVar bool, OutVar []byte, StateVar int, SaveVar int) uint { | |
| 66 | 66 | ||
| 67 | 67 | cret := xBase64EncodeClose(BreakLinesVar, OutVar, StateVar, SaveVar) | |
| 68 | 68 | return cret | |
| 69 | 69 | } | |
| 70 | 70 | ||
| 71 | - | var xBase64EncodeStep func(uintptr, uint, bool, uintptr, int, int) uint | |
| 71 | + | var xBase64EncodeStep func([]byte, uint, bool, []byte, int, int) uint | |
| 72 | 72 | ||
| 73 | 73 | // Incrementally encode a sequence of binary data into its Base-64 stringified | |
| 74 | 74 | // representation. By calling this function multiple times you can convert | |
| @@ -89,7 +89,7 @@ var xBase64EncodeStep func(uintptr, uint, bool, uintptr, int, int) uint | |||
| 89 | 89 | // Note however that it breaks the lines with `LF` characters, not | |
| 90 | 90 | // `CR LF` sequences, so the result cannot be passed directly to SMTP | |
| 91 | 91 | // or certain other protocols. | |
| 92 | - | func Base64EncodeStep(InVar uintptr, LenVar uint, BreakLinesVar bool, OutVar uintptr, StateVar int, SaveVar int) uint { | |
| 92 | + | func Base64EncodeStep(InVar []byte, LenVar uint, BreakLinesVar bool, OutVar []byte, StateVar int, SaveVar int) uint { | |
| 93 | 93 | ||
| 94 | 94 | cret := xBase64EncodeStep(InVar, LenVar, BreakLinesVar, OutVar, StateVar, SaveVar) | |
| 95 | 95 | return cret | |
M v4/glib/gbookmarkfile.go +12 -12
| @@ -153,14 +153,14 @@ func (x *BookmarkFile) GetApplicationInfo(UriVar string, NameVar string, ExecVar | |||
| 153 | 153 | ||
| 154 | 154 | } | |
| 155 | 155 | ||
| 156 | - | var xBookmarkFileGetApplications func(uintptr, string, uint, **Error) uintptr | |
| 156 | + | var xBookmarkFileGetApplications func(uintptr, string, uint, **Error) []string | |
| 157 | 157 | ||
| 158 | 158 | // Retrieves the names of the applications that have registered the | |
| 159 | 159 | // bookmark for @uri. | |
| 160 | 160 | // | |
| 161 | 161 | // In the event the URI cannot be found, %NULL is returned and | |
| 162 | 162 | // @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. | |
| 163 | - | func (x *BookmarkFile) GetApplications(UriVar string, LengthVar uint) (uintptr, error) { | |
| 163 | + | func (x *BookmarkFile) GetApplications(UriVar string, LengthVar uint) ([]string, error) { | |
| 164 | 164 | var cerr *Error | |
| 165 | 165 | ||
| 166 | 166 | cret := xBookmarkFileGetApplications(x.GoPointer(), UriVar, LengthVar, &cerr) | |
| @@ -188,7 +188,7 @@ func (x *BookmarkFile) GetDescription(UriVar string) (string, error) { | |||
| 188 | 188 | ||
| 189 | 189 | } | |
| 190 | 190 | ||
| 191 | - | var xBookmarkFileGetGroups func(uintptr, string, uint, **Error) uintptr | |
| 191 | + | var xBookmarkFileGetGroups func(uintptr, string, uint, **Error) []string | |
| 192 | 192 | ||
| 193 | 193 | // Retrieves the list of group names of the bookmark for @uri. | |
| 194 | 194 | // | |
| @@ -197,7 +197,7 @@ var xBookmarkFileGetGroups func(uintptr, string, uint, **Error) uintptr | |||
| 197 | 197 | // | |
| 198 | 198 | // The returned array is %NULL terminated, so @length may optionally | |
| 199 | 199 | // be %NULL. | |
| 200 | - | func (x *BookmarkFile) GetGroups(UriVar string, LengthVar uint) (uintptr, error) { | |
| 200 | + | func (x *BookmarkFile) GetGroups(UriVar string, LengthVar uint) ([]string, error) { | |
| 201 | 201 | var cerr *Error | |
| 202 | 202 | ||
| 203 | 203 | cret := xBookmarkFileGetGroups(x.GoPointer(), UriVar, LengthVar, &cerr) | |
| @@ -325,12 +325,12 @@ func (x *BookmarkFile) GetTitle(UriVar string) (string, error) { | |||
| 325 | 325 | ||
| 326 | 326 | } | |
| 327 | 327 | ||
| 328 | - | var xBookmarkFileGetUris func(uintptr, uint) uintptr | |
| 328 | + | var xBookmarkFileGetUris func(uintptr, uint) []string | |
| 329 | 329 | ||
| 330 | 330 | // Returns all URIs of the bookmarks in the bookmark file @bookmark. | |
| 331 | 331 | // The array of returned URIs will be %NULL-terminated, so @length may | |
| 332 | 332 | // optionally be %NULL. | |
| 333 | - | func (x *BookmarkFile) GetUris(LengthVar uint) uintptr { | |
| 333 | + | func (x *BookmarkFile) GetUris(LengthVar uint) []string { | |
| 334 | 334 | ||
| 335 | 335 | cret := xBookmarkFileGetUris(x.GoPointer(), LengthVar) | |
| 336 | 336 | return cret | |
| @@ -415,12 +415,12 @@ func (x *BookmarkFile) HasItem(UriVar string) bool { | |||
| 415 | 415 | return cret | |
| 416 | 416 | } | |
| 417 | 417 | ||
| 418 | - | var xBookmarkFileLoadFromData func(uintptr, uintptr, uint, **Error) bool | |
| 418 | + | var xBookmarkFileLoadFromData func(uintptr, []byte, uint, **Error) bool | |
| 419 | 419 | ||
| 420 | 420 | // Loads a bookmark file from memory into an empty #GBookmarkFile | |
| 421 | 421 | // structure. If the object cannot be created then @error is set to a | |
| 422 | 422 | // #GBookmarkFileError. | |
| 423 | - | func (x *BookmarkFile) LoadFromData(DataVar uintptr, LengthVar uint) (bool, error) { | |
| 423 | + | func (x *BookmarkFile) LoadFromData(DataVar []byte, LengthVar uint) (bool, error) { | |
| 424 | 424 | var cerr *Error | |
| 425 | 425 | ||
| 426 | 426 | cret := xBookmarkFileLoadFromData(x.GoPointer(), DataVar, LengthVar, &cerr) | |
| @@ -655,13 +655,13 @@ func (x *BookmarkFile) SetDescription(UriVar string, DescriptionVar string) { | |||
| 655 | 655 | ||
| 656 | 656 | } | |
| 657 | 657 | ||
| 658 | - | var xBookmarkFileSetGroups func(uintptr, string, uintptr, uint) | |
| 658 | + | var xBookmarkFileSetGroups func(uintptr, string, []string, uint) | |
| 659 | 659 | ||
| 660 | 660 | // Sets a list of group names for the item with URI @uri. Each previously | |
| 661 | 661 | // set group name list is removed. | |
| 662 | 662 | // | |
| 663 | 663 | // If @uri cannot be found then an item for it is created. | |
| 664 | - | func (x *BookmarkFile) SetGroups(UriVar string, GroupsVar uintptr, LengthVar uint) { | |
| 664 | + | func (x *BookmarkFile) SetGroups(UriVar string, GroupsVar []string, LengthVar uint) { | |
| 665 | 665 | ||
| 666 | 666 | xBookmarkFileSetGroups(x.GoPointer(), UriVar, GroupsVar, LengthVar) | |
| 667 | 667 | ||
| @@ -782,10 +782,10 @@ func (x *BookmarkFile) SetVisitedDateTime(UriVar string, VisitedVar *DateTime) { | |||
| 782 | 782 | ||
| 783 | 783 | } | |
| 784 | 784 | ||
| 785 | - | var xBookmarkFileToData func(uintptr, uint, **Error) uintptr | |
| 785 | + | var xBookmarkFileToData func(uintptr, uint, **Error) []byte | |
| 786 | 786 | ||
| 787 | 787 | // This function outputs @bookmark as a string. | |
| 788 | - | func (x *BookmarkFile) ToData(LengthVar uint) (uintptr, error) { | |
| 788 | + | func (x *BookmarkFile) ToData(LengthVar uint) ([]byte, error) { | |
| 789 | 789 | var cerr *Error | |
| 790 | 790 | ||
| 791 | 791 | cret := xBookmarkFileToData(x.GoPointer(), LengthVar, &cerr) | |
M v4/glib/gcharset.go +6 -6
| @@ -68,7 +68,7 @@ func GetConsoleCharset(CharsetVar string) bool { | |||
| 68 | 68 | return cret | |
| 69 | 69 | } | |
| 70 | 70 | ||
| 71 | - | var xGetLanguageNames func() uintptr | |
| 71 | + | var xGetLanguageNames func() []string | |
| 72 | 72 | ||
| 73 | 73 | // Computes a list of applicable locale names, which can be used to | |
| 74 | 74 | // e.g. construct locale-dependent filenames or search paths. The returned | |
| @@ -81,13 +81,13 @@ var xGetLanguageNames func() uintptr | |||
| 81 | 81 | // This function consults the environment variables `LANGUAGE`, `LC_ALL`, | |
| 82 | 82 | // `LC_MESSAGES` and `LANG` to find the list of locales specified by the | |
| 83 | 83 | // user. | |
| 84 | - | func GetLanguageNames() uintptr { | |
| 84 | + | func GetLanguageNames() []string { | |
| 85 | 85 | ||
| 86 | 86 | cret := xGetLanguageNames() | |
| 87 | 87 | return cret | |
| 88 | 88 | } | |
| 89 | 89 | ||
| 90 | - | var xGetLanguageNamesWithCategory func(string) uintptr | |
| 90 | + | var xGetLanguageNamesWithCategory func(string) []string | |
| 91 | 91 | ||
| 92 | 92 | // Computes a list of applicable locale names with a locale category name, | |
| 93 | 93 | // which can be used to construct the fallback locale-dependent filenames | |
| @@ -99,13 +99,13 @@ var xGetLanguageNamesWithCategory func(string) uintptr | |||
| 99 | 99 | // user. | |
| 100 | 100 | // | |
| 101 | 101 | // g_get_language_names() returns g_get_language_names_with_category("LC_MESSAGES"). | |
| 102 | - | func GetLanguageNamesWithCategory(CategoryNameVar string) uintptr { | |
| 102 | + | func GetLanguageNamesWithCategory(CategoryNameVar string) []string { | |
| 103 | 103 | ||
| 104 | 104 | cret := xGetLanguageNamesWithCategory(CategoryNameVar) | |
| 105 | 105 | return cret | |
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | - | var xGetLocaleVariants func(string) uintptr | |
| 108 | + | var xGetLocaleVariants func(string) []string | |
| 109 | 109 | ||
| 110 | 110 | // Returns a list of derived variants of @locale, which can be used to | |
| 111 | 111 | // e.g. construct locale-dependent filenames or search paths. The returned | |
| @@ -122,7 +122,7 @@ var xGetLocaleVariants func(string) uintptr | |||
| 122 | 122 | // | |
| 123 | 123 | // If you need the list of variants for the current locale, | |
| 124 | 124 | // use g_get_language_names(). | |
| 125 | - | func GetLocaleVariants(LocaleVar string) uintptr { | |
| 125 | + | func GetLocaleVariants(LocaleVar string) []string { | |
| 126 | 126 | ||
| 127 | 127 | cret := xGetLocaleVariants(LocaleVar) | |
| 128 | 128 | return cret | |
M v4/glib/gchecksum.go +6 -6
| @@ -60,14 +60,14 @@ func (x *Checksum) Free() { | |||
| 60 | 60 | ||
| 61 | 61 | } | |
| 62 | 62 | ||
| 63 | - | var xChecksumGetDigest func(uintptr, uintptr, uint) | |
| 63 | + | var xChecksumGetDigest func(uintptr, []byte, uint) | |
| 64 | 64 | ||
| 65 | 65 | // Gets the digest from @checksum as a raw binary vector and places it | |
| 66 | 66 | // into @buffer. The size of the digest depends on the type of checksum. | |
| 67 | 67 | // | |
| 68 | 68 | // Once this function has been called, the #GChecksum is closed and can | |
| 69 | 69 | // no longer be updated with g_checksum_update(). | |
| 70 | - | func (x *Checksum) GetDigest(BufferVar uintptr, DigestLenVar uint) { | |
| 70 | + | func (x *Checksum) GetDigest(BufferVar []byte, DigestLenVar uint) { | |
| 71 | 71 | ||
| 72 | 72 | xChecksumGetDigest(x.GoPointer(), BufferVar, DigestLenVar) | |
| 73 | 73 | ||
| @@ -96,12 +96,12 @@ func (x *Checksum) Reset() { | |||
| 96 | 96 | ||
| 97 | 97 | } | |
| 98 | 98 | ||
| 99 | - | var xChecksumUpdate func(uintptr, uintptr, int) | |
| 99 | + | var xChecksumUpdate func(uintptr, []byte, int) | |
| 100 | 100 | ||
| 101 | 101 | // Feeds @data into an existing #GChecksum. The checksum must still be | |
| 102 | 102 | // open, that is g_checksum_get_string() or g_checksum_get_digest() must | |
| 103 | 103 | // not have been called on @checksum. | |
| 104 | - | func (x *Checksum) Update(DataVar uintptr, LengthVar int) { | |
| 104 | + | func (x *Checksum) Update(DataVar []byte, LengthVar int) { | |
| 105 | 105 | ||
| 106 | 106 | xChecksumUpdate(x.GoPointer(), DataVar, LengthVar) | |
| 107 | 107 | ||
| @@ -150,14 +150,14 @@ func ComputeChecksumForBytes(ChecksumTypeVar ChecksumType, DataVar *Bytes) strin | |||
| 150 | 150 | return cret | |
| 151 | 151 | } | |
| 152 | 152 | ||
| 153 | - | var xComputeChecksumForData func(ChecksumType, uintptr, uint) string | |
| 153 | + | var xComputeChecksumForData func(ChecksumType, []byte, uint) string | |
| 154 | 154 | ||
| 155 | 155 | // Computes the checksum for a binary @data of @length. This is a | |
| 156 | 156 | // convenience wrapper for g_checksum_new(), g_checksum_get_string() | |
| 157 | 157 | // and g_checksum_free(). | |
| 158 | 158 | // | |
| 159 | 159 | // The hexadecimal string returned will be in lower case. | |
| 160 | - | func ComputeChecksumForData(ChecksumTypeVar ChecksumType, DataVar uintptr, LengthVar uint) string { | |
| 160 | + | func ComputeChecksumForData(ChecksumTypeVar ChecksumType, DataVar []byte, LengthVar uint) string { | |
| 161 | 161 | ||
| 162 | 162 | cret := xComputeChecksumForData(ChecksumTypeVar, DataVar, LengthVar) | |
| 163 | 163 | return cret | |
M v4/glib/gconvert.go +14 -14
| @@ -82,7 +82,7 @@ const ( | |||
| 82 | 82 | GConvertErrorEmbeddedNulValue ConvertError = 7 | |
| 83 | 83 | ) | |
| 84 | 84 | ||
| 85 | - | var xConvert func(uintptr, int, string, string, uint, uint, **Error) uintptr | |
| 85 | + | var xConvert func([]byte, int, string, string, uint, uint, **Error) []byte | |
| 86 | 86 | ||
| 87 | 87 | // Converts a string from one character set to another. | |
| 88 | 88 | // | |
| @@ -98,7 +98,7 @@ var xConvert func(uintptr, int, string, string, uint, uint, **Error) uintptr | |||
| 98 | 98 | // | |
| 99 | 99 | // Using extensions such as "//TRANSLIT" may not work (or may not work | |
| 100 | 100 | // well) on many platforms. Consider using g_str_to_ascii() instead. | |
| 101 | - | func Convert(StrVar uintptr, LenVar int, ToCodesetVar string, FromCodesetVar string, BytesReadVar uint, BytesWrittenVar uint) (uintptr, error) { | |
| 101 | + | func Convert(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, BytesReadVar uint, BytesWrittenVar uint) ([]byte, error) { | |
| 102 | 102 | var cerr *Error | |
| 103 | 103 | ||
| 104 | 104 | cret := xConvert(StrVar, LenVar, ToCodesetVar, FromCodesetVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -109,7 +109,7 @@ func Convert(StrVar uintptr, LenVar int, ToCodesetVar string, FromCodesetVar str | |||
| 109 | 109 | ||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | - | var xConvertWithFallback func(uintptr, int, string, string, string, uint, uint, **Error) uintptr | |
| 112 | + | var xConvertWithFallback func([]byte, int, string, string, string, uint, uint, **Error) []byte | |
| 113 | 113 | ||
| 114 | 114 | // Converts a string from one character set to another, possibly | |
| 115 | 115 | // including fallback sequences for characters not representable | |
| @@ -128,7 +128,7 @@ var xConvertWithFallback func(uintptr, int, string, string, string, uint, uint, | |||
| 128 | 128 | // this is the GNU C converter for CP1255 which does not emit a base | |
| 129 | 129 | // character until it knows that the next character is not a mark that | |
| 130 | 130 | // could combine with the base character.) | |
| 131 | - | func ConvertWithFallback(StrVar uintptr, LenVar int, ToCodesetVar string, FromCodesetVar string, FallbackVar string, BytesReadVar uint, BytesWrittenVar uint) (uintptr, error) { | |
| 131 | + | func ConvertWithFallback(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, FallbackVar string, BytesReadVar uint, BytesWrittenVar uint) ([]byte, error) { | |
| 132 | 132 | var cerr *Error | |
| 133 | 133 | ||
| 134 | 134 | cret := xConvertWithFallback(StrVar, LenVar, ToCodesetVar, FromCodesetVar, FallbackVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -139,7 +139,7 @@ func ConvertWithFallback(StrVar uintptr, LenVar int, ToCodesetVar string, FromCo | |||
| 139 | 139 | ||
| 140 | 140 | } | |
| 141 | 141 | ||
| 142 | - | var xConvertWithIconv func(uintptr, int, uintptr, uint, uint, **Error) uintptr | |
| 142 | + | var xConvertWithIconv func([]byte, int, uintptr, uint, uint, **Error) []byte | |
| 143 | 143 | ||
| 144 | 144 | // Converts a string from one character set to another. | |
| 145 | 145 | // | |
| @@ -160,7 +160,7 @@ var xConvertWithIconv func(uintptr, int, uintptr, uint, uint, **Error) uintptr | |||
| 160 | 160 | // this is the same error code as is returned for an invalid byte sequence in | |
| 161 | 161 | // the input character set. To get defined behaviour for conversion of | |
| 162 | 162 | // unrepresentable characters, use g_convert_with_fallback(). | |
| 163 | - | func ConvertWithIconv(StrVar uintptr, LenVar int, ConverterVar uintptr, BytesReadVar uint, BytesWrittenVar uint) (uintptr, error) { | |
| 163 | + | func ConvertWithIconv(StrVar []byte, LenVar int, ConverterVar uintptr, BytesReadVar uint, BytesWrittenVar uint) ([]byte, error) { | |
| 164 | 164 | var cerr *Error | |
| 165 | 165 | ||
| 166 | 166 | cret := xConvertWithIconv(StrVar, LenVar, ConverterVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -296,7 +296,7 @@ func FilenameToUtf8(OpsysstringVar string, LenVar int, BytesReadVar uint, BytesW | |||
| 296 | 296 | ||
| 297 | 297 | } | |
| 298 | 298 | ||
| 299 | - | var xGetFilenameCharsets func(uintptr) bool | |
| 299 | + | var xGetFilenameCharsets func([]string) bool | |
| 300 | 300 | ||
| 301 | 301 | // Determines the preferred character sets used for filenames. | |
| 302 | 302 | // The first character set from the @charsets is the filename encoding, the | |
| @@ -322,7 +322,7 @@ var xGetFilenameCharsets func(uintptr) bool | |||
| 322 | 322 | // Note that on Unix, regardless of the locale character set or | |
| 323 | 323 | // `G_FILENAME_ENCODING` value, the actual file names present | |
| 324 | 324 | // on a system might be in any random encoding or just gibberish. | |
| 325 | - | func GetFilenameCharsets(FilenameCharsetsVar uintptr) bool { | |
| 325 | + | func GetFilenameCharsets(FilenameCharsetsVar []string) bool { | |
| 326 | 326 | ||
| 327 | 327 | cret := xGetFilenameCharsets(FilenameCharsetsVar) | |
| 328 | 328 | return cret | |
| @@ -363,7 +363,7 @@ func IconvOpen(ToCodesetVar string, FromCodesetVar string) uintptr { | |||
| 363 | 363 | return cret | |
| 364 | 364 | } | |
| 365 | 365 | ||
| 366 | - | var xLocaleFromUtf8 func(string, int, uint, uint, **Error) uintptr | |
| 366 | + | var xLocaleFromUtf8 func(string, int, uint, uint, **Error) []byte | |
| 367 | 367 | ||
| 368 | 368 | // Converts a string from UTF-8 to the encoding used for strings by | |
| 369 | 369 | // the C runtime (usually the same as that used by the operating | |
| @@ -374,7 +374,7 @@ var xLocaleFromUtf8 func(string, int, uint, uint, **Error) uintptr | |||
| 374 | 374 | // argument is positive. A nul character found inside the string will result | |
| 375 | 375 | // in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert | |
| 376 | 376 | // input that may contain embedded nul characters. | |
| 377 | - | func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar uint, BytesWrittenVar uint) (uintptr, error) { | |
| 377 | + | func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar uint, BytesWrittenVar uint) ([]byte, error) { | |
| 378 | 378 | var cerr *Error | |
| 379 | 379 | ||
| 380 | 380 | cret := xLocaleFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -385,7 +385,7 @@ func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar uint, BytesWr | |||
| 385 | 385 | ||
| 386 | 386 | } | |
| 387 | 387 | ||
| 388 | - | var xLocaleToUtf8 func(uintptr, int, uint, uint, **Error) string | |
| 388 | + | var xLocaleToUtf8 func([]byte, int, uint, uint, **Error) string | |
| 389 | 389 | ||
| 390 | 390 | // Converts a string which is in the encoding used for strings by | |
| 391 | 391 | // the C runtime (usually the same as that used by the operating | |
| @@ -398,7 +398,7 @@ var xLocaleToUtf8 func(uintptr, int, uint, uint, **Error) string | |||
| 398 | 398 | // the %G_CONVERT_ERROR_ILLEGAL_SEQUENCE error for backward compatibility with | |
| 399 | 399 | // earlier versions of this library. Use g_convert() to produce output that | |
| 400 | 400 | // may contain embedded nul characters. | |
| 401 | - | func LocaleToUtf8(OpsysstringVar uintptr, LenVar int, BytesReadVar uint, BytesWrittenVar uint) (string, error) { | |
| 401 | + | func LocaleToUtf8(OpsysstringVar []byte, LenVar int, BytesReadVar uint, BytesWrittenVar uint) (string, error) { | |
| 402 | 402 | var cerr *Error | |
| 403 | 403 | ||
| 404 | 404 | cret := xLocaleToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -409,12 +409,12 @@ func LocaleToUtf8(OpsysstringVar uintptr, LenVar int, BytesReadVar uint, BytesWr | |||
| 409 | 409 | ||
| 410 | 410 | } | |
| 411 | 411 | ||
| 412 | - | var xUriListExtractUris func(string) uintptr | |
| 412 | + | var xUriListExtractUris func(string) []string | |
| 413 | 413 | ||
| 414 | 414 | // Splits an URI list conforming to the text/uri-list | |
| 415 | 415 | // mime type defined in RFC 2483 into individual URIs, | |
| 416 | 416 | // discarding any comments. The URIs are not validated. | |
| 417 | - | func UriListExtractUris(UriListVar string) uintptr { | |
| 417 | + | func UriListExtractUris(UriListVar string) []string { | |
| 418 | 418 | ||
| 419 | 419 | cret := xUriListExtractUris(UriListVar) | |
| 420 | 420 | return cret | |
M v4/glib/genviron.go +10 -10
| @@ -6,37 +6,37 @@ import ( | |||
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | - | var xEnvironGetenv func(uintptr, string) string | |
| 9 | + | var xEnvironGetenv func([]string, string) string | |
| 10 | 10 | ||
| 11 | 11 | // Returns the value of the environment variable @variable in the | |
| 12 | 12 | // provided list @envp. | |
| 13 | - | func EnvironGetenv(EnvpVar uintptr, VariableVar string) string { | |
| 13 | + | func EnvironGetenv(EnvpVar []string, VariableVar string) string { | |
| 14 | 14 | ||
| 15 | 15 | cret := xEnvironGetenv(EnvpVar, VariableVar) | |
| 16 | 16 | return cret | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | - | var xEnvironSetenv func(uintptr, string, string, bool) uintptr | |
| 19 | + | var xEnvironSetenv func([]string, string, string, bool) []string | |
| 20 | 20 | ||
| 21 | 21 | // Sets the environment variable @variable in the provided list | |
| 22 | 22 | // @envp to @value. | |
| 23 | - | func EnvironSetenv(EnvpVar uintptr, VariableVar string, ValueVar string, OverwriteVar bool) uintptr { | |
| 23 | + | func EnvironSetenv(EnvpVar []string, VariableVar string, ValueVar string, OverwriteVar bool) []string { | |
| 24 | 24 | ||
| 25 | 25 | cret := xEnvironSetenv(EnvpVar, VariableVar, ValueVar, OverwriteVar) | |
| 26 | 26 | return cret | |
| 27 | 27 | } | |
| 28 | 28 | ||
| 29 | - | var xEnvironUnsetenv func(uintptr, string) uintptr | |
| 29 | + | var xEnvironUnsetenv func([]string, string) []string | |
| 30 | 30 | ||
| 31 | 31 | // Removes the environment variable @variable from the provided | |
| 32 | 32 | // environment @envp. | |
| 33 | - | func EnvironUnsetenv(EnvpVar uintptr, VariableVar string) uintptr { | |
| 33 | + | func EnvironUnsetenv(EnvpVar []string, VariableVar string) []string { | |
| 34 | 34 | ||
| 35 | 35 | cret := xEnvironUnsetenv(EnvpVar, VariableVar) | |
| 36 | 36 | return cret | |
| 37 | 37 | } | |
| 38 | 38 | ||
| 39 | - | var xGetEnviron func() uintptr | |
| 39 | + | var xGetEnviron func() []string | |
| 40 | 40 | ||
| 41 | 41 | // Gets the list of environment variables for the current process. | |
| 42 | 42 | // | |
| @@ -48,7 +48,7 @@ var xGetEnviron func() uintptr | |||
| 48 | 48 | // | |
| 49 | 49 | // The return value is freshly allocated and it should be freed with | |
| 50 | 50 | // g_strfreev() when it is no longer needed. | |
| 51 | - | func GetEnviron() uintptr { | |
| 51 | + | func GetEnviron() []string { | |
| 52 | 52 | ||
| 53 | 53 | cret := xGetEnviron() | |
| 54 | 54 | return cret | |
| @@ -69,7 +69,7 @@ func Getenv(VariableVar string) string { | |||
| 69 | 69 | return cret | |
| 70 | 70 | } | |
| 71 | 71 | ||
| 72 | - | var xListenv func() uintptr | |
| 72 | + | var xListenv func() []string | |
| 73 | 73 | ||
| 74 | 74 | // Gets the names of all variables set in the environment. | |
| 75 | 75 | // | |
| @@ -79,7 +79,7 @@ var xListenv func() uintptr | |||
| 79 | 79 | // array are in system codepage encoding, while in most of the typical | |
| 80 | 80 | // use cases for environment variables in GLib-using programs you want | |
| 81 | 81 | // the UTF-8 encoding that this function and g_getenv() provide. | |
| 82 | - | func Listenv() uintptr { | |
| 82 | + | func Listenv() []string { | |
| 83 | 83 | ||
| 84 | 84 | cret := xListenv() | |
| 85 | 85 | return cret | |
M v4/glib/gfileutils.go +10 -10
| @@ -208,12 +208,12 @@ func BuildFilenameValist(FirstElementVar string, ArgsVar []interface{}) string { | |||
| 208 | 208 | return cret | |
| 209 | 209 | } | |
| 210 | 210 | ||
| 211 | - | var xBuildFilenamev func(uintptr) string | |
| 211 | + | var xBuildFilenamev func([]string) string | |
| 212 | 212 | ||
| 213 | 213 | // Behaves exactly like g_build_filename(), but takes the path elements | |
| 214 | 214 | // as a string array, instead of varargs. This function is mainly | |
| 215 | 215 | // meant for language bindings. | |
| 216 | - | func BuildFilenamev(ArgsVar uintptr) string { | |
| 216 | + | func BuildFilenamev(ArgsVar []string) string { | |
| 217 | 217 | ||
| 218 | 218 | cret := xBuildFilenamev(ArgsVar) | |
| 219 | 219 | return cret | |
| @@ -253,12 +253,12 @@ func BuildPath(SeparatorVar string, FirstElementVar string, varArgs ...interface | |||
| 253 | 253 | return cret | |
| 254 | 254 | } | |
| 255 | 255 | ||
| 256 | - | var xBuildPathv func(string, uintptr) string | |
| 256 | + | var xBuildPathv func(string, []string) string | |
| 257 | 257 | ||
| 258 | 258 | // Behaves exactly like g_build_path(), but takes the path elements | |
| 259 | 259 | // as a string array, instead of varargs. This function is mainly | |
| 260 | 260 | // meant for language bindings. | |
| 261 | - | func BuildPathv(SeparatorVar string, ArgsVar uintptr) string { | |
| 261 | + | func BuildPathv(SeparatorVar string, ArgsVar []string) string { | |
| 262 | 262 | ||
| 263 | 263 | cret := xBuildPathv(SeparatorVar, ArgsVar) | |
| 264 | 264 | return cret | |
| @@ -327,7 +327,7 @@ func FileErrorFromErrno(ErrNoVar int) FileError { | |||
| 327 | 327 | return cret | |
| 328 | 328 | } | |
| 329 | 329 | ||
| 330 | - | var xFileGetContents func(string, uintptr, uint, **Error) bool | |
| 330 | + | var xFileGetContents func(string, []byte, uint, **Error) bool | |
| 331 | 331 | ||
| 332 | 332 | // Reads an entire file into allocated memory, with good error | |
| 333 | 333 | // checking. | |
| @@ -339,7 +339,7 @@ var xFileGetContents func(string, uintptr, uint, **Error) bool | |||
| 339 | 339 | // %FALSE and sets @error. The error domain is %G_FILE_ERROR. Possible error | |
| 340 | 340 | // codes are those in the #GFileError enumeration. In the error case, | |
| 341 | 341 | // @contents is set to %NULL and @length is set to zero. | |
| 342 | - | func FileGetContents(FilenameVar string, ContentsVar uintptr, LengthVar uint) (bool, error) { | |
| 342 | + | func FileGetContents(FilenameVar string, ContentsVar []byte, LengthVar uint) (bool, error) { | |
| 343 | 343 | var cerr *Error | |
| 344 | 344 | ||
| 345 | 345 | cret := xFileGetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| @@ -395,13 +395,13 @@ func FileReadLink(FilenameVar string) (string, error) { | |||
| 395 | 395 | ||
| 396 | 396 | } | |
| 397 | 397 | ||
| 398 | - | var xFileSetContents func(string, uintptr, int, **Error) bool | |
| 398 | + | var xFileSetContents func(string, []byte, int, **Error) bool | |
| 399 | 399 | ||
| 400 | 400 | // Writes all of @contents to a file named @filename. This is a convenience | |
| 401 | 401 | // wrapper around calling g_file_set_contents_full() with `flags` set to | |
| 402 | 402 | // `G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING` and | |
| 403 | 403 | // `mode` set to `0666`. | |
| 404 | - | func FileSetContents(FilenameVar string, ContentsVar uintptr, LengthVar int) (bool, error) { | |
| 404 | + | func FileSetContents(FilenameVar string, ContentsVar []byte, LengthVar int) (bool, error) { | |
| 405 | 405 | var cerr *Error | |
| 406 | 406 | ||
| 407 | 407 | cret := xFileSetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| @@ -412,7 +412,7 @@ func FileSetContents(FilenameVar string, ContentsVar uintptr, LengthVar int) (bo | |||
| 412 | 412 | ||
| 413 | 413 | } | |
| 414 | 414 | ||
| 415 | - | var xFileSetContentsFull func(string, uintptr, int, FileSetContentsFlags, int, **Error) bool | |
| 415 | + | var xFileSetContentsFull func(string, []byte, int, FileSetContentsFlags, int, **Error) bool | |
| 416 | 416 | ||
| 417 | 417 | // Writes all of @contents to a file named @filename, with good error checking. | |
| 418 | 418 | // If a file called @filename already exists it will be overwritten. | |
| @@ -468,7 +468,7 @@ var xFileSetContentsFull func(string, uintptr, int, FileSetContentsFlags, int, * | |||
| 468 | 468 | // If the file didn’t exist before and is created, it will be given the | |
| 469 | 469 | // permissions from @mode. Otherwise, the permissions of the existing file may | |
| 470 | 470 | // be changed to @mode depending on @flags, or they may remain unchanged. | |
| 471 | - | func FileSetContentsFull(FilenameVar string, ContentsVar uintptr, LengthVar int, FlagsVar FileSetContentsFlags, ModeVar int) (bool, error) { | |
| 471 | + | func FileSetContentsFull(FilenameVar string, ContentsVar []byte, LengthVar int, FlagsVar FileSetContentsFlags, ModeVar int) (bool, error) { | |
| 472 | 472 | var cerr *Error | |
| 473 | 473 | ||
| 474 | 474 | cret := xFileSetContentsFull(FilenameVar, ContentsVar, LengthVar, FlagsVar, ModeVar, &cerr) | |
M v4/glib/ghmac.go +8 -8
| @@ -29,14 +29,14 @@ func (x *Hmac) Copy() *Hmac { | |||
| 29 | 29 | return cret | |
| 30 | 30 | } | |
| 31 | 31 | ||
| 32 | - | var xHmacGetDigest func(uintptr, uintptr, uint) | |
| 32 | + | var xHmacGetDigest func(uintptr, []byte, uint) | |
| 33 | 33 | ||
| 34 | 34 | // Gets the digest from @checksum as a raw binary array and places it | |
| 35 | 35 | // into @buffer. The size of the digest depends on the type of checksum. | |
| 36 | 36 | // | |
| 37 | 37 | // Once this function has been called, the #GHmac is closed and can | |
| 38 | 38 | // no longer be updated with g_checksum_update(). | |
| 39 | - | func (x *Hmac) GetDigest(BufferVar uintptr, DigestLenVar uint) { | |
| 39 | + | func (x *Hmac) GetDigest(BufferVar []byte, DigestLenVar uint) { | |
| 40 | 40 | ||
| 41 | 41 | xHmacGetDigest(x.GoPointer(), BufferVar, DigestLenVar) | |
| 42 | 42 | ||
| @@ -81,13 +81,13 @@ func (x *Hmac) Unref() { | |||
| 81 | 81 | ||
| 82 | 82 | } | |
| 83 | 83 | ||
| 84 | - | var xHmacUpdate func(uintptr, uintptr, int) | |
| 84 | + | var xHmacUpdate func(uintptr, []byte, int) | |
| 85 | 85 | ||
| 86 | 86 | // Feeds @data into an existing #GHmac. | |
| 87 | 87 | // | |
| 88 | 88 | // The HMAC must still be open, that is g_hmac_get_string() or | |
| 89 | 89 | // g_hmac_get_digest() must not have been called on @hmac. | |
| 90 | - | func (x *Hmac) Update(DataVar uintptr, LengthVar int) { | |
| 90 | + | func (x *Hmac) Update(DataVar []byte, LengthVar int) { | |
| 91 | 91 | ||
| 92 | 92 | xHmacUpdate(x.GoPointer(), DataVar, LengthVar) | |
| 93 | 93 | ||
| @@ -106,25 +106,25 @@ func ComputeHmacForBytes(DigestTypeVar ChecksumType, KeyVar *Bytes, DataVar *Byt | |||
| 106 | 106 | return cret | |
| 107 | 107 | } | |
| 108 | 108 | ||
| 109 | - | var xComputeHmacForData func(ChecksumType, uintptr, uint, uintptr, uint) string | |
| 109 | + | var xComputeHmacForData func(ChecksumType, []byte, uint, []byte, uint) string | |
| 110 | 110 | ||
| 111 | 111 | // Computes the HMAC for a binary @data of @length. This is a | |
| 112 | 112 | // convenience wrapper for g_hmac_new(), g_hmac_get_string() | |
| 113 | 113 | // and g_hmac_unref(). | |
| 114 | 114 | // | |
| 115 | 115 | // The hexadecimal string returned will be in lower case. | |
| 116 | - | func ComputeHmacForData(DigestTypeVar ChecksumType, KeyVar uintptr, KeyLenVar uint, DataVar uintptr, LengthVar uint) string { | |
| 116 | + | func ComputeHmacForData(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar uint, DataVar []byte, LengthVar uint) string { | |
| 117 | 117 | ||
| 118 | 118 | cret := xComputeHmacForData(DigestTypeVar, KeyVar, KeyLenVar, DataVar, LengthVar) | |
| 119 | 119 | return cret | |
| 120 | 120 | } | |
| 121 | 121 | ||
| 122 | - | var xComputeHmacForString func(ChecksumType, uintptr, uint, string, int) string | |
| 122 | + | var xComputeHmacForString func(ChecksumType, []byte, uint, string, int) string | |
| 123 | 123 | ||
| 124 | 124 | // Computes the HMAC for a string. | |
| 125 | 125 | // | |
| 126 | 126 | // The hexadecimal string returned will be in lower case. | |
| 127 | - | func ComputeHmacForString(DigestTypeVar ChecksumType, KeyVar uintptr, KeyLenVar uint, StrVar string, LengthVar int) string { | |
| 127 | + | func ComputeHmacForString(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar uint, StrVar string, LengthVar int) string { | |
| 128 | 128 | ||
| 129 | 129 | cret := xComputeHmacForString(DigestTypeVar, KeyVar, KeyLenVar, StrVar, LengthVar) | |
| 130 | 130 | return cret | |
M v4/glib/ghook.go +1 -1
| @@ -80,7 +80,7 @@ type HookList struct { | |||
| 80 | 80 | ||
| 81 | 81 | FinalizeHook HookFinalizeFunc | |
| 82 | 82 | ||
| 83 | - | Dummy uintptr | |
| 83 | + | Dummy [2]uintptr | |
| 84 | 84 | } | |
| 85 | 85 | ||
| 86 | 86 | func (x *HookList) GoPointer() uintptr { | |
M v4/glib/giochannel.go +7 -7
| @@ -39,7 +39,7 @@ type IOChannel struct { | |||
| 39 | 39 | ||
| 40 | 40 | WriteBuf *String | |
| 41 | 41 | ||
| 42 | - | PartialWriteBuf uintptr | |
| 42 | + | PartialWriteBuf [6]byte | |
| 43 | 43 | ||
| 44 | 44 | UseBuffer uint | |
| 45 | 45 | ||
| @@ -237,10 +237,10 @@ func (x *IOChannel) Read(BufVar string, CountVar uint, BytesReadVar uint) IOErro | |||
| 237 | 237 | return cret | |
| 238 | 238 | } | |
| 239 | 239 | ||
| 240 | - | var xIOChannelReadChars func(uintptr, uintptr, uint, uint, **Error) IOStatus | |
| 240 | + | var xIOChannelReadChars func(uintptr, []byte, uint, uint, **Error) IOStatus | |
| 241 | 241 | ||
| 242 | 242 | // Replacement for g_io_channel_read() with the new API. | |
| 243 | - | func (x *IOChannel) ReadChars(BufVar uintptr, CountVar uint, BytesReadVar uint) (IOStatus, error) { | |
| 243 | + | func (x *IOChannel) ReadChars(BufVar []byte, CountVar uint, BytesReadVar uint) (IOStatus, error) { | |
| 244 | 244 | var cerr *Error | |
| 245 | 245 | ||
| 246 | 246 | cret := xIOChannelReadChars(x.GoPointer(), BufVar, CountVar, BytesReadVar, &cerr) | |
| @@ -282,10 +282,10 @@ func (x *IOChannel) ReadLineString(BufferVar *String, TerminatorPosVar uint) (IO | |||
| 282 | 282 | ||
| 283 | 283 | } | |
| 284 | 284 | ||
| 285 | - | var xIOChannelReadToEnd func(uintptr, uintptr, uint, **Error) IOStatus | |
| 285 | + | var xIOChannelReadToEnd func(uintptr, []byte, uint, **Error) IOStatus | |
| 286 | 286 | ||
| 287 | 287 | // Reads all the remaining data from the file. | |
| 288 | - | func (x *IOChannel) ReadToEnd(StrReturnVar uintptr, LengthVar uint) (IOStatus, error) { | |
| 288 | + | func (x *IOChannel) ReadToEnd(StrReturnVar []byte, LengthVar uint) (IOStatus, error) { | |
| 289 | 289 | var cerr *Error | |
| 290 | 290 | ||
| 291 | 291 | cret := xIOChannelReadToEnd(x.GoPointer(), StrReturnVar, LengthVar, &cerr) | |
| @@ -511,7 +511,7 @@ func (x *IOChannel) Write(BufVar string, CountVar uint, BytesWrittenVar uint) IO | |||
| 511 | 511 | return cret | |
| 512 | 512 | } | |
| 513 | 513 | ||
| 514 | - | var xIOChannelWriteChars func(uintptr, uintptr, int, uint, **Error) IOStatus | |
| 514 | + | var xIOChannelWriteChars func(uintptr, []byte, int, uint, **Error) IOStatus | |
| 515 | 515 | ||
| 516 | 516 | // Replacement for g_io_channel_write() with the new API. | |
| 517 | 517 | // | |
| @@ -519,7 +519,7 @@ var xIOChannelWriteChars func(uintptr, uintptr, int, uint, **Error) IOStatus | |||
| 519 | 519 | // mixing of reading and writing is not allowed. A call to g_io_channel_write_chars () | |
| 520 | 520 | // may only be made on a channel from which data has been read in the | |
| 521 | 521 | // cases described in the documentation for g_io_channel_set_encoding (). | |
| 522 | - | func (x *IOChannel) WriteChars(BufVar uintptr, CountVar int, BytesWrittenVar uint) (IOStatus, error) { | |
| 522 | + | func (x *IOChannel) WriteChars(BufVar []byte, CountVar int, BytesWrittenVar uint) (IOStatus, error) { | |
| 523 | 523 | var cerr *Error | |
| 524 | 524 | ||
| 525 | 525 | cret := xIOChannelWriteChars(x.GoPointer(), BufVar, CountVar, BytesWrittenVar, &cerr) | |
M v4/glib/gkeyfile.go +26 -26
| @@ -60,7 +60,7 @@ func (x *KeyFile) GetBoolean(GroupNameVar string, KeyVar string) (bool, error) { | |||
| 60 | 60 | ||
| 61 | 61 | } | |
| 62 | 62 | ||
| 63 | - | var xKeyFileGetBooleanList func(uintptr, string, string, uint, **Error) uintptr | |
| 63 | + | var xKeyFileGetBooleanList func(uintptr, string, string, uint, **Error) []bool | |
| 64 | 64 | ||
| 65 | 65 | // Returns the values associated with @key under @group_name as | |
| 66 | 66 | // booleans. | |
| @@ -69,7 +69,7 @@ var xKeyFileGetBooleanList func(uintptr, string, string, uint, **Error) uintptr | |||
| 69 | 69 | // %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated | |
| 70 | 70 | // with @key cannot be interpreted as booleans then %NULL is returned | |
| 71 | 71 | // and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. | |
| 72 | - | func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar uint) (uintptr, error) { | |
| 72 | + | func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar uint) ([]bool, error) { | |
| 73 | 73 | var cerr *Error | |
| 74 | 74 | ||
| 75 | 75 | cret := xKeyFileGetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -121,7 +121,7 @@ func (x *KeyFile) GetDouble(GroupNameVar string, KeyVar string) (float64, error) | |||
| 121 | 121 | ||
| 122 | 122 | } | |
| 123 | 123 | ||
| 124 | - | var xKeyFileGetDoubleList func(uintptr, string, string, uint, **Error) uintptr | |
| 124 | + | var xKeyFileGetDoubleList func(uintptr, string, string, uint, **Error) []float64 | |
| 125 | 125 | ||
| 126 | 126 | // Returns the values associated with @key under @group_name as | |
| 127 | 127 | // doubles. | |
| @@ -130,7 +130,7 @@ var xKeyFileGetDoubleList func(uintptr, string, string, uint, **Error) uintptr | |||
| 130 | 130 | // %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated | |
| 131 | 131 | // with @key cannot be interpreted as doubles then %NULL is returned | |
| 132 | 132 | // and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. | |
| 133 | - | func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar uint) (uintptr, error) { | |
| 133 | + | func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar uint) ([]float64, error) { | |
| 134 | 134 | var cerr *Error | |
| 135 | 135 | ||
| 136 | 136 | cret := xKeyFileGetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -141,12 +141,12 @@ func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar ui | |||
| 141 | 141 | ||
| 142 | 142 | } | |
| 143 | 143 | ||
| 144 | - | var xKeyFileGetGroups func(uintptr, uint) uintptr | |
| 144 | + | var xKeyFileGetGroups func(uintptr, uint) []string | |
| 145 | 145 | ||
| 146 | 146 | // Returns all groups in the key file loaded with @key_file. | |
| 147 | 147 | // The array of returned groups will be %NULL-terminated, so | |
| 148 | 148 | // @length may optionally be %NULL. | |
| 149 | - | func (x *KeyFile) GetGroups(LengthVar uint) uintptr { | |
| 149 | + | func (x *KeyFile) GetGroups(LengthVar uint) []string { | |
| 150 | 150 | ||
| 151 | 151 | cret := xKeyFileGetGroups(x.GoPointer(), LengthVar) | |
| 152 | 152 | return cret | |
| @@ -189,7 +189,7 @@ func (x *KeyFile) GetInteger(GroupNameVar string, KeyVar string) (int, error) { | |||
| 189 | 189 | ||
| 190 | 190 | } | |
| 191 | 191 | ||
| 192 | - | var xKeyFileGetIntegerList func(uintptr, string, string, uint, **Error) uintptr | |
| 192 | + | var xKeyFileGetIntegerList func(uintptr, string, string, uint, **Error) []int | |
| 193 | 193 | ||
| 194 | 194 | // Returns the values associated with @key under @group_name as | |
| 195 | 195 | // integers. | |
| @@ -199,7 +199,7 @@ var xKeyFileGetIntegerList func(uintptr, string, string, uint, **Error) uintptr | |||
| 199 | 199 | // with @key cannot be interpreted as integers, or are out of range for | |
| 200 | 200 | // #gint, then %NULL is returned | |
| 201 | 201 | // and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. | |
| 202 | - | func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar uint) (uintptr, error) { | |
| 202 | + | func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar uint) ([]int, error) { | |
| 203 | 203 | var cerr *Error | |
| 204 | 204 | ||
| 205 | 205 | cret := xKeyFileGetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -210,14 +210,14 @@ func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar u | |||
| 210 | 210 | ||
| 211 | 211 | } | |
| 212 | 212 | ||
| 213 | - | var xKeyFileGetKeys func(uintptr, string, uint, **Error) uintptr | |
| 213 | + | var xKeyFileGetKeys func(uintptr, string, uint, **Error) []string | |
| 214 | 214 | ||
| 215 | 215 | // Returns all keys for the group name @group_name. The array of | |
| 216 | 216 | // returned keys will be %NULL-terminated, so @length may | |
| 217 | 217 | // optionally be %NULL. In the event that the @group_name cannot | |
| 218 | 218 | // be found, %NULL is returned and @error is set to | |
| 219 | 219 | // %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. | |
| 220 | - | func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar uint) (uintptr, error) { | |
| 220 | + | func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar uint) ([]string, error) { | |
| 221 | 221 | var cerr *Error | |
| 222 | 222 | ||
| 223 | 223 | cret := xKeyFileGetKeys(x.GoPointer(), GroupNameVar, LengthVar, &cerr) | |
| @@ -270,7 +270,7 @@ func (x *KeyFile) GetLocaleString(GroupNameVar string, KeyVar string, LocaleVar | |||
| 270 | 270 | ||
| 271 | 271 | } | |
| 272 | 272 | ||
| 273 | - | var xKeyFileGetLocaleStringList func(uintptr, string, string, string, uint, **Error) uintptr | |
| 273 | + | var xKeyFileGetLocaleStringList func(uintptr, string, string, string, uint, **Error) []string | |
| 274 | 274 | ||
| 275 | 275 | // Returns the values associated with @key under @group_name | |
| 276 | 276 | // translated in the given @locale if available. If @locale is | |
| @@ -286,7 +286,7 @@ var xKeyFileGetLocaleStringList func(uintptr, string, string, string, uint, **Er | |||
| 286 | 286 | // can be found then the untranslated values are returned. The | |
| 287 | 287 | // returned array is %NULL-terminated, so @length may optionally | |
| 288 | 288 | // be %NULL. | |
| 289 | - | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, LengthVar uint) (uintptr, error) { | |
| 289 | + | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, LengthVar uint) ([]string, error) { | |
| 290 | 290 | var cerr *Error | |
| 291 | 291 | ||
| 292 | 292 | cret := xKeyFileGetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, LengthVar, &cerr) | |
| @@ -327,7 +327,7 @@ func (x *KeyFile) GetString(GroupNameVar string, KeyVar string) (string, error) | |||
| 327 | 327 | ||
| 328 | 328 | } | |
| 329 | 329 | ||
| 330 | - | var xKeyFileGetStringList func(uintptr, string, string, uint, **Error) uintptr | |
| 330 | + | var xKeyFileGetStringList func(uintptr, string, string, uint, **Error) []string | |
| 331 | 331 | ||
| 332 | 332 | // Returns the values associated with @key under @group_name. | |
| 333 | 333 | // | |
| @@ -335,7 +335,7 @@ var xKeyFileGetStringList func(uintptr, string, string, uint, **Error) uintptr | |||
| 335 | 335 | // @error is set to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the | |
| 336 | 336 | // event that the @group_name cannot be found, %NULL is returned | |
| 337 | 337 | // and @error is set to %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. | |
| 338 | - | func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar uint) (uintptr, error) { | |
| 338 | + | func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar uint) ([]string, error) { | |
| 339 | 339 | var cerr *Error | |
| 340 | 340 | ||
| 341 | 341 | cret := xKeyFileGetStringList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -462,7 +462,7 @@ func (x *KeyFile) LoadFromDataDirs(FileVar string, FullPathVar string, FlagsVar | |||
| 462 | 462 | ||
| 463 | 463 | } | |
| 464 | 464 | ||
| 465 | - | var xKeyFileLoadFromDirs func(uintptr, string, uintptr, string, KeyFileFlags, **Error) bool | |
| 465 | + | var xKeyFileLoadFromDirs func(uintptr, string, []string, string, KeyFileFlags, **Error) bool | |
| 466 | 466 | ||
| 467 | 467 | // This function looks for a key file named @file in the paths | |
| 468 | 468 | // specified in @search_dirs, loads the file into @key_file and | |
| @@ -473,7 +473,7 @@ var xKeyFileLoadFromDirs func(uintptr, string, uintptr, string, KeyFileFlags, ** | |||
| 473 | 473 | // the file is found but the OS returns an error when opening or reading the | |
| 474 | 474 | // file, a %G_FILE_ERROR is returned. If there is a problem parsing the file, a | |
| 475 | 475 | // %G_KEY_FILE_ERROR is returned. | |
| 476 | - | func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar uintptr, FullPathVar string, FlagsVar KeyFileFlags) (bool, error) { | |
| 476 | + | func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar []string, FullPathVar string, FlagsVar KeyFileFlags) (bool, error) { | |
| 477 | 477 | var cerr *Error | |
| 478 | 478 | ||
| 479 | 479 | cret := xKeyFileLoadFromDirs(x.GoPointer(), FileVar, SearchDirsVar, FullPathVar, FlagsVar, &cerr) | |
| @@ -590,12 +590,12 @@ func (x *KeyFile) SetBoolean(GroupNameVar string, KeyVar string, ValueVar bool) | |||
| 590 | 590 | ||
| 591 | 591 | } | |
| 592 | 592 | ||
| 593 | - | var xKeyFileSetBooleanList func(uintptr, string, string, uintptr, uint) | |
| 593 | + | var xKeyFileSetBooleanList func(uintptr, string, string, []bool, uint) | |
| 594 | 594 | ||
| 595 | 595 | // Associates a list of boolean values with @key under @group_name. | |
| 596 | 596 | // If @key cannot be found then it is created. | |
| 597 | 597 | // If @group_name is %NULL, the start_group is used. | |
| 598 | - | func (x *KeyFile) SetBooleanList(GroupNameVar string, KeyVar string, ListVar uintptr, LengthVar uint) { | |
| 598 | + | func (x *KeyFile) SetBooleanList(GroupNameVar string, KeyVar string, ListVar []bool, LengthVar uint) { | |
| 599 | 599 | ||
| 600 | 600 | xKeyFileSetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 601 | 601 | ||
| @@ -632,11 +632,11 @@ func (x *KeyFile) SetDouble(GroupNameVar string, KeyVar string, ValueVar float64 | |||
| 632 | 632 | ||
| 633 | 633 | } | |
| 634 | 634 | ||
| 635 | - | var xKeyFileSetDoubleList func(uintptr, string, string, uintptr, uint) | |
| 635 | + | var xKeyFileSetDoubleList func(uintptr, string, string, []float64, uint) | |
| 636 | 636 | ||
| 637 | 637 | // Associates a list of double values with @key under | |
| 638 | 638 | // @group_name. If @key cannot be found then it is created. | |
| 639 | - | func (x *KeyFile) SetDoubleList(GroupNameVar string, KeyVar string, ListVar uintptr, LengthVar uint) { | |
| 639 | + | func (x *KeyFile) SetDoubleList(GroupNameVar string, KeyVar string, ListVar []float64, LengthVar uint) { | |
| 640 | 640 | ||
| 641 | 641 | xKeyFileSetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 642 | 642 | ||
| @@ -662,11 +662,11 @@ func (x *KeyFile) SetInteger(GroupNameVar string, KeyVar string, ValueVar int) { | |||
| 662 | 662 | ||
| 663 | 663 | } | |
| 664 | 664 | ||
| 665 | - | var xKeyFileSetIntegerList func(uintptr, string, string, uintptr, uint) | |
| 665 | + | var xKeyFileSetIntegerList func(uintptr, string, string, []int, uint) | |
| 666 | 666 | ||
| 667 | 667 | // Associates a list of integer values with @key under @group_name. | |
| 668 | 668 | // If @key cannot be found then it is created. | |
| 669 | - | func (x *KeyFile) SetIntegerList(GroupNameVar string, KeyVar string, ListVar uintptr, LengthVar uint) { | |
| 669 | + | func (x *KeyFile) SetIntegerList(GroupNameVar string, KeyVar string, ListVar []int, LengthVar uint) { | |
| 670 | 670 | ||
| 671 | 671 | xKeyFileSetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 672 | 672 | ||
| @@ -693,12 +693,12 @@ func (x *KeyFile) SetLocaleString(GroupNameVar string, KeyVar string, LocaleVar | |||
| 693 | 693 | ||
| 694 | 694 | } | |
| 695 | 695 | ||
| 696 | - | var xKeyFileSetLocaleStringList func(uintptr, string, string, string, uintptr, uint) | |
| 696 | + | var xKeyFileSetLocaleStringList func(uintptr, string, string, string, []string, uint) | |
| 697 | 697 | ||
| 698 | 698 | // Associates a list of string values for @key and @locale under | |
| 699 | 699 | // @group_name. If the translation for @key cannot be found then | |
| 700 | 700 | // it is created. | |
| 701 | - | func (x *KeyFile) SetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, ListVar uintptr, LengthVar uint) { | |
| 701 | + | func (x *KeyFile) SetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, ListVar []string, LengthVar uint) { | |
| 702 | 702 | ||
| 703 | 703 | xKeyFileSetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, ListVar, LengthVar) | |
| 704 | 704 | ||
| @@ -717,12 +717,12 @@ func (x *KeyFile) SetString(GroupNameVar string, KeyVar string, StringVar string | |||
| 717 | 717 | ||
| 718 | 718 | } | |
| 719 | 719 | ||
| 720 | - | var xKeyFileSetStringList func(uintptr, string, string, uintptr, uint) | |
| 720 | + | var xKeyFileSetStringList func(uintptr, string, string, []string, uint) | |
| 721 | 721 | ||
| 722 | 722 | // Associates a list of string values for @key under @group_name. | |
| 723 | 723 | // If @key cannot be found then it is created. | |
| 724 | 724 | // If @group_name cannot be found then it is created. | |
| 725 | - | func (x *KeyFile) SetStringList(GroupNameVar string, KeyVar string, ListVar uintptr, LengthVar uint) { | |
| 725 | + | func (x *KeyFile) SetStringList(GroupNameVar string, KeyVar string, ListVar []string, LengthVar uint) { | |
| 726 | 726 | ||
| 727 | 727 | xKeyFileSetStringList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 728 | 728 | ||
M v4/glib/glib-types.go +5 -4
| @@ -4,21 +4,22 @@ package glib | |||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 7 | 8 | ) | |
| 8 | 9 | ||
| 9 | 10 | type Type = uint | |
| 10 | 11 | ||
| 11 | - | var xStrvGetType func() []interface{} | |
| 12 | + | var xStrvGetType func() types.GType | |
| 12 | 13 | ||
| 13 | - | func StrvGetType() []interface{} { | |
| 14 | + | func StrvGetType() types.GType { | |
| 14 | 15 | ||
| 15 | 16 | cret := xStrvGetType() | |
| 16 | 17 | return cret | |
| 17 | 18 | } | |
| 18 | 19 | ||
| 19 | - | var xVariantGetGtype func() []interface{} | |
| 20 | + | var xVariantGetGtype func() types.GType | |
| 20 | 21 | ||
| 21 | - | func VariantGetGtype() []interface{} { | |
| 22 | + | func VariantGetGtype() types.GType { | |
| 22 | 23 | ||
| 23 | 24 | cret := xVariantGetGtype() | |
| 24 | 25 | return cret | |
M v4/glib/gmain.go +4 -4
| @@ -95,7 +95,7 @@ func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | |||
| 95 | 95 | ||
| 96 | 96 | } | |
| 97 | 97 | ||
| 98 | - | var xMainContextCheck func(uintptr, int, uintptr, int) bool | |
| 98 | + | var xMainContextCheck func(uintptr, int, []PollFD, int) bool | |
| 99 | 99 | ||
| 100 | 100 | // Passes the results of polling back to the main loop. You should be | |
| 101 | 101 | // careful to pass @fds and its length @n_fds as received from | |
| @@ -104,7 +104,7 @@ var xMainContextCheck func(uintptr, int, uintptr, int) bool | |||
| 104 | 104 | // | |
| 105 | 105 | // You must have successfully acquired the context with | |
| 106 | 106 | // g_main_context_acquire() before you may call this function. | |
| 107 | - | func (x *MainContext) Check(MaxPriorityVar int, FdsVar uintptr, NFdsVar int) bool { | |
| 107 | + | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | |
| 108 | 108 | ||
| 109 | 109 | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | |
| 110 | 110 | return cret | |
| @@ -329,7 +329,7 @@ func (x *MainContext) PushThreadDefault() { | |||
| 329 | 329 | ||
| 330 | 330 | } | |
| 331 | 331 | ||
| 332 | - | var xMainContextQuery func(uintptr, int, int, uintptr, int) int | |
| 332 | + | var xMainContextQuery func(uintptr, int, int, []PollFD, int) int | |
| 333 | 333 | ||
| 334 | 334 | // Determines information necessary to poll this main loop. You should | |
| 335 | 335 | // be careful to pass the resulting @fds array and its length @n_fds | |
| @@ -338,7 +338,7 @@ var xMainContextQuery func(uintptr, int, int, uintptr, int) int | |||
| 338 | 338 | // | |
| 339 | 339 | // You must have successfully acquired the context with | |
| 340 | 340 | // g_main_context_acquire() before you may call this function. | |
| 341 | - | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar int, FdsVar uintptr, NFdsVar int) int { | |
| 341 | + | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar int, FdsVar []PollFD, NFdsVar int) int { | |
| 342 | 342 | ||
| 343 | 343 | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | |
| 344 | 344 | return cret | |
M v4/glib/gmessages.go +11 -11
| @@ -38,7 +38,7 @@ type LogFunc func(string, LogLevelFlags, string, uintptr) | |||
| 38 | 38 | // send messages to a remote logging server and there is a network error), it | |
| 39 | 39 | // should return %G_LOG_WRITER_UNHANDLED. This allows writer functions to be | |
| 40 | 40 | // chained and fall back to simpler handlers in case of failure. | |
| 41 | - | type LogWriterFunc func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutput | |
| 41 | + | type LogWriterFunc func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOutput | |
| 42 | 42 | ||
| 43 | 43 | // Specifies the type of the print handler functions. | |
| 44 | 44 | // These are called with the complete formatted string to output. | |
| @@ -481,7 +481,7 @@ func LogStructured(LogDomainVar string, LogLevelVar LogLevelFlags, varArgs ...in | |||
| 481 | 481 | ||
| 482 | 482 | } | |
| 483 | 483 | ||
| 484 | - | var xLogStructuredArray func(LogLevelFlags, uintptr, uint) | |
| 484 | + | var xLogStructuredArray func(LogLevelFlags, []LogField, uint) | |
| 485 | 485 | ||
| 486 | 486 | // Log a message with structured data. The message will be passed through to the | |
| 487 | 487 | // log writer set by the application using g_log_set_writer_func(). If the | |
| @@ -492,7 +492,7 @@ var xLogStructuredArray func(LogLevelFlags, uintptr, uint) | |||
| 492 | 492 | // | |
| 493 | 493 | // This assumes that @log_level is already present in @fields (typically as the | |
| 494 | 494 | // `PRIORITY` field). | |
| 495 | - | func LogStructuredArray(LogLevelVar LogLevelFlags, FieldsVar uintptr, NFieldsVar uint) { | |
| 495 | + | func LogStructuredArray(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint) { | |
| 496 | 496 | ||
| 497 | 497 | xLogStructuredArray(LogLevelVar, FieldsVar, NFieldsVar) | |
| 498 | 498 | ||
| @@ -528,7 +528,7 @@ func LogVariant(LogDomainVar string, LogLevelVar LogLevelFlags, FieldsVar *Varia | |||
| 528 | 528 | ||
| 529 | 529 | } | |
| 530 | 530 | ||
| 531 | - | var xLogWriterDefault func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutput | |
| 531 | + | var xLogWriterDefault func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOutput | |
| 532 | 532 | ||
| 533 | 533 | // Format a structured log message and output it to the default log destination | |
| 534 | 534 | // for the platform. On Linux, this is typically the systemd journal, falling | |
| @@ -549,7 +549,7 @@ var xLogWriterDefault func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutpu | |||
| 549 | 549 | // g_log_writer_default() uses the mask set by g_log_set_always_fatal() to | |
| 550 | 550 | // determine which messages are fatal. When using a custom writer func instead it is | |
| 551 | 551 | // up to the writer function to determine which log messages are fatal. | |
| 552 | - | func LogWriterDefault(LogLevelVar LogLevelFlags, FieldsVar uintptr, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 552 | + | func LogWriterDefault(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 553 | 553 | ||
| 554 | 554 | cret := xLogWriterDefault(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 555 | 555 | return cret | |
| @@ -615,7 +615,7 @@ func LogWriterDefaultWouldDrop(LogLevelVar LogLevelFlags, LogDomainVar string) b | |||
| 615 | 615 | return cret | |
| 616 | 616 | } | |
| 617 | 617 | ||
| 618 | - | var xLogWriterFormatFields func(LogLevelFlags, uintptr, uint, bool) string | |
| 618 | + | var xLogWriterFormatFields func(LogLevelFlags, []LogField, uint, bool) string | |
| 619 | 619 | ||
| 620 | 620 | // Format a structured log message as a string suitable for outputting to the | |
| 621 | 621 | // terminal (or elsewhere). This will include the values of all fields it knows | |
| @@ -626,7 +626,7 @@ var xLogWriterFormatFields func(LogLevelFlags, uintptr, uint, bool) string | |||
| 626 | 626 | // The returned string does **not** have a trailing new-line character. It is | |
| 627 | 627 | // encoded in the character set of the current locale, which is not necessarily | |
| 628 | 628 | // UTF-8. | |
| 629 | - | func LogWriterFormatFields(LogLevelVar LogLevelFlags, FieldsVar uintptr, NFieldsVar uint, UseColorVar bool) string { | |
| 629 | + | func LogWriterFormatFields(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UseColorVar bool) string { | |
| 630 | 630 | ||
| 631 | 631 | cret := xLogWriterFormatFields(LogLevelVar, FieldsVar, NFieldsVar, UseColorVar) | |
| 632 | 632 | return cret | |
| @@ -651,7 +651,7 @@ func LogWriterIsJournald(OutputFdVar int) bool { | |||
| 651 | 651 | return cret | |
| 652 | 652 | } | |
| 653 | 653 | ||
| 654 | - | var xLogWriterJournald func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutput | |
| 654 | + | var xLogWriterJournald func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOutput | |
| 655 | 655 | ||
| 656 | 656 | // Format a structured log message and send it to the systemd journal as a set | |
| 657 | 657 | // of key–value pairs. All fields are sent to the journal, but if a field has | |
| @@ -662,13 +662,13 @@ var xLogWriterJournald func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutp | |||
| 662 | 662 | // | |
| 663 | 663 | // If GLib has been compiled without systemd support, this function is still | |
| 664 | 664 | // defined, but will always return %G_LOG_WRITER_UNHANDLED. | |
| 665 | - | func LogWriterJournald(LogLevelVar LogLevelFlags, FieldsVar uintptr, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 665 | + | func LogWriterJournald(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 666 | 666 | ||
| 667 | 667 | cret := xLogWriterJournald(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 668 | 668 | return cret | |
| 669 | 669 | } | |
| 670 | 670 | ||
| 671 | - | var xLogWriterStandardStreams func(LogLevelFlags, uintptr, uint, uintptr) LogWriterOutput | |
| 671 | + | var xLogWriterStandardStreams func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOutput | |
| 672 | 672 | ||
| 673 | 673 | // Format a structured log message and print it to either `stdout` or `stderr`, | |
| 674 | 674 | // depending on its log level. %G_LOG_LEVEL_INFO and %G_LOG_LEVEL_DEBUG messages | |
| @@ -684,7 +684,7 @@ var xLogWriterStandardStreams func(LogLevelFlags, uintptr, uint, uintptr) LogWri | |||
| 684 | 684 | // A trailing new-line character is added to the log message when it is printed. | |
| 685 | 685 | // | |
| 686 | 686 | // This is suitable for use as a #GLogWriterFunc. | |
| 687 | - | func LogWriterStandardStreams(LogLevelVar LogLevelFlags, FieldsVar uintptr, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 687 | + | func LogWriterStandardStreams(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 688 | 688 | ||
| 689 | 689 | cret := xLogWriterStandardStreams(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 690 | 690 | return cret | |
M v4/glib/goption.go +8 -8
| @@ -39,11 +39,11 @@ func (x *OptionContext) AddGroup(GroupVar *OptionGroup) { | |||
| 39 | 39 | ||
| 40 | 40 | } | |
| 41 | 41 | ||
| 42 | - | var xOptionContextAddMainEntries func(uintptr, uintptr, string) | |
| 42 | + | var xOptionContextAddMainEntries func(uintptr, []OptionEntry, string) | |
| 43 | 43 | ||
| 44 | 44 | // A convenience function which creates a main group if it doesn't | |
| 45 | 45 | // exist, adds the @entries to it and sets the translation domain. | |
| 46 | - | func (x *OptionContext) AddMainEntries(EntriesVar uintptr, TranslationDomainVar string) { | |
| 46 | + | func (x *OptionContext) AddMainEntries(EntriesVar []OptionEntry, TranslationDomainVar string) { | |
| 47 | 47 | ||
| 48 | 48 | xOptionContextAddMainEntries(x.GoPointer(), EntriesVar, TranslationDomainVar) | |
| 49 | 49 | ||
| @@ -135,7 +135,7 @@ func (x *OptionContext) GetSummary() string { | |||
| 135 | 135 | return cret | |
| 136 | 136 | } | |
| 137 | 137 | ||
| 138 | - | var xOptionContextParse func(uintptr, int, uintptr, **Error) bool | |
| 138 | + | var xOptionContextParse func(uintptr, int, []string, **Error) bool | |
| 139 | 139 | ||
| 140 | 140 | // Parses the command line arguments, recognizing options | |
| 141 | 141 | // which have been added to @context. A side-effect of | |
| @@ -158,7 +158,7 @@ var xOptionContextParse func(uintptr, int, uintptr, **Error) bool | |||
| 158 | 158 | // Note that function depends on the [current locale][setlocale] for | |
| 159 | 159 | // automatic character set conversion of string and filename | |
| 160 | 160 | // arguments. | |
| 161 | - | func (x *OptionContext) Parse(ArgcVar int, ArgvVar uintptr) (bool, error) { | |
| 161 | + | func (x *OptionContext) Parse(ArgcVar int, ArgvVar []string) (bool, error) { | |
| 162 | 162 | var cerr *Error | |
| 163 | 163 | ||
| 164 | 164 | cret := xOptionContextParse(x.GoPointer(), ArgcVar, ArgvVar, &cerr) | |
| @@ -169,7 +169,7 @@ func (x *OptionContext) Parse(ArgcVar int, ArgvVar uintptr) (bool, error) { | |||
| 169 | 169 | ||
| 170 | 170 | } | |
| 171 | 171 | ||
| 172 | - | var xOptionContextParseStrv func(uintptr, uintptr, **Error) bool | |
| 172 | + | var xOptionContextParseStrv func(uintptr, []string, **Error) bool | |
| 173 | 173 | ||
| 174 | 174 | // Parses the command line arguments. | |
| 175 | 175 | // | |
| @@ -187,7 +187,7 @@ var xOptionContextParseStrv func(uintptr, uintptr, **Error) bool | |||
| 187 | 187 | // | |
| 188 | 188 | // This function is useful if you are trying to use #GOptionContext with | |
| 189 | 189 | // #GApplication. | |
| 190 | - | func (x *OptionContext) ParseStrv(ArgumentsVar uintptr) (bool, error) { | |
| 190 | + | func (x *OptionContext) ParseStrv(ArgumentsVar []string) (bool, error) { | |
| 191 | 191 | var cerr *Error | |
| 192 | 192 | ||
| 193 | 193 | cret := xOptionContextParseStrv(x.GoPointer(), ArgumentsVar, &cerr) | |
| @@ -371,10 +371,10 @@ func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar st | |||
| 371 | 371 | return cret | |
| 372 | 372 | } | |
| 373 | 373 | ||
| 374 | - | var xOptionGroupAddEntries func(uintptr, uintptr) | |
| 374 | + | var xOptionGroupAddEntries func(uintptr, []OptionEntry) | |
| 375 | 375 | ||
| 376 | 376 | // Adds the options specified in @entries to @group. | |
| 377 | - | func (x *OptionGroup) AddEntries(EntriesVar uintptr) { | |
| 377 | + | func (x *OptionGroup) AddEntries(EntriesVar []OptionEntry) { | |
| 378 | 378 | ||
| 379 | 379 | xOptionGroupAddEntries(x.GoPointer(), EntriesVar) | |
| 380 | 380 | ||
M v4/glib/gregex.go +20 -20
| @@ -77,7 +77,7 @@ func (x *MatchInfo) Fetch(MatchNumVar int) string { | |||
| 77 | 77 | return cret | |
| 78 | 78 | } | |
| 79 | 79 | ||
| 80 | - | var xMatchInfoFetchAll func(uintptr) uintptr | |
| 80 | + | var xMatchInfoFetchAll func(uintptr) []string | |
| 81 | 81 | ||
| 82 | 82 | // Bundles up pointers to each of the matching substrings from a match | |
| 83 | 83 | // and stores them in an array of gchar pointers. The first element in | |
| @@ -95,7 +95,7 @@ var xMatchInfoFetchAll func(uintptr) uintptr | |||
| 95 | 95 | // | |
| 96 | 96 | // The strings are fetched from the string passed to the match function, | |
| 97 | 97 | // so you cannot call this function after freeing the string. | |
| 98 | - | func (x *MatchInfo) FetchAll() uintptr { | |
| 98 | + | func (x *MatchInfo) FetchAll() []string { | |
| 99 | 99 | ||
| 100 | 100 | cret := xMatchInfoFetchAll(x.GoPointer()) | |
| 101 | 101 | return cret | |
| @@ -527,7 +527,7 @@ func (x *Regex) MatchAll(StringVar string, MatchOptionsVar RegexMatchFlags, Matc | |||
| 527 | 527 | return cret | |
| 528 | 528 | } | |
| 529 | 529 | ||
| 530 | - | var xRegexMatchAllFull func(uintptr, uintptr, int, int, RegexMatchFlags, **MatchInfo, **Error) bool | |
| 530 | + | var xRegexMatchAllFull func(uintptr, []string, int, int, RegexMatchFlags, **MatchInfo, **Error) bool | |
| 531 | 531 | ||
| 532 | 532 | // Using the standard algorithm for regular expression matching only | |
| 533 | 533 | // the longest match in the @string is retrieved, it is not possible | |
| @@ -567,7 +567,7 @@ var xRegexMatchAllFull func(uintptr, uintptr, int, int, RegexMatchFlags, **Match | |||
| 567 | 567 | // @string is not copied and is used in #GMatchInfo internally. If | |
| 568 | 568 | // you use any #GMatchInfo method (except g_match_info_free()) after | |
| 569 | 569 | // freeing or modifying @string then the behaviour is undefined. | |
| 570 | - | func (x *Regex) MatchAllFull(StringVar uintptr, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MatchInfoVar **MatchInfo) (bool, error) { | |
| 570 | + | func (x *Regex) MatchAllFull(StringVar []string, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MatchInfoVar **MatchInfo) (bool, error) { | |
| 571 | 571 | var cerr *Error | |
| 572 | 572 | ||
| 573 | 573 | cret := xRegexMatchAllFull(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, MatchOptionsVar, MatchInfoVar, &cerr) | |
| @@ -578,7 +578,7 @@ func (x *Regex) MatchAllFull(StringVar uintptr, StringLenVar int, StartPositionV | |||
| 578 | 578 | ||
| 579 | 579 | } | |
| 580 | 580 | ||
| 581 | - | var xRegexMatchFull func(uintptr, uintptr, int, int, RegexMatchFlags, **MatchInfo, **Error) bool | |
| 581 | + | var xRegexMatchFull func(uintptr, []string, int, int, RegexMatchFlags, **MatchInfo, **Error) bool | |
| 582 | 582 | ||
| 583 | 583 | // Scans for a match in @string for the pattern in @regex. | |
| 584 | 584 | // The @match_options are combined with the match options specified | |
| @@ -633,7 +633,7 @@ var xRegexMatchFull func(uintptr, uintptr, int, int, RegexMatchFlags, **MatchInf | |||
| 633 | 633 | // } | |
| 634 | 634 | // | |
| 635 | 635 | // ]| | |
| 636 | - | func (x *Regex) MatchFull(StringVar uintptr, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MatchInfoVar **MatchInfo) (bool, error) { | |
| 636 | + | func (x *Regex) MatchFull(StringVar []string, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MatchInfoVar **MatchInfo) (bool, error) { | |
| 637 | 637 | var cerr *Error | |
| 638 | 638 | ||
| 639 | 639 | cret := xRegexMatchFull(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, MatchOptionsVar, MatchInfoVar, &cerr) | |
| @@ -653,7 +653,7 @@ func (x *Regex) Ref() *Regex { | |||
| 653 | 653 | return cret | |
| 654 | 654 | } | |
| 655 | 655 | ||
| 656 | - | var xRegexReplace func(uintptr, uintptr, int, int, string, RegexMatchFlags, **Error) string | |
| 656 | + | var xRegexReplace func(uintptr, []string, int, int, string, RegexMatchFlags, **Error) string | |
| 657 | 657 | ||
| 658 | 658 | // Replaces all occurrences of the pattern in @regex with the | |
| 659 | 659 | // replacement text. Backreferences of the form '\number' or | |
| @@ -681,7 +681,7 @@ var xRegexReplace func(uintptr, uintptr, int, int, string, RegexMatchFlags, **Er | |||
| 681 | 681 | // Setting @start_position differs from just passing over a shortened | |
| 682 | 682 | // string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern that | |
| 683 | 683 | // begins with any kind of lookbehind assertion, such as "\b". | |
| 684 | - | func (x *Regex) Replace(StringVar uintptr, StringLenVar int, StartPositionVar int, ReplacementVar string, MatchOptionsVar RegexMatchFlags) (string, error) { | |
| 684 | + | func (x *Regex) Replace(StringVar []string, StringLenVar int, StartPositionVar int, ReplacementVar string, MatchOptionsVar RegexMatchFlags) (string, error) { | |
| 685 | 685 | var cerr *Error | |
| 686 | 686 | ||
| 687 | 687 | cret := xRegexReplace(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, ReplacementVar, MatchOptionsVar, &cerr) | |
| @@ -692,7 +692,7 @@ func (x *Regex) Replace(StringVar uintptr, StringLenVar int, StartPositionVar in | |||
| 692 | 692 | ||
| 693 | 693 | } | |
| 694 | 694 | ||
| 695 | - | var xRegexReplaceEval func(uintptr, uintptr, int, int, RegexMatchFlags, uintptr, uintptr, **Error) string | |
| 695 | + | var xRegexReplaceEval func(uintptr, []string, int, int, RegexMatchFlags, uintptr, uintptr, **Error) string | |
| 696 | 696 | ||
| 697 | 697 | // Replaces occurrences of the pattern in regex with the output of | |
| 698 | 698 | // @eval for that occurrence. | |
| @@ -741,7 +741,7 @@ var xRegexReplaceEval func(uintptr, uintptr, int, int, RegexMatchFlags, uintptr, | |||
| 741 | 741 | // | |
| 742 | 742 | // ... | |
| 743 | 743 | // ]| | |
| 744 | - | func (x *Regex) ReplaceEval(StringVar uintptr, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, EvalVar *RegexEvalCallback, UserDataVar uintptr) (string, error) { | |
| 744 | + | func (x *Regex) ReplaceEval(StringVar []string, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, EvalVar *RegexEvalCallback, UserDataVar uintptr) (string, error) { | |
| 745 | 745 | var cerr *Error | |
| 746 | 746 | ||
| 747 | 747 | cret := xRegexReplaceEval(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, MatchOptionsVar, NewCallback(EvalVar), UserDataVar, &cerr) | |
| @@ -752,7 +752,7 @@ func (x *Regex) ReplaceEval(StringVar uintptr, StringLenVar int, StartPositionVa | |||
| 752 | 752 | ||
| 753 | 753 | } | |
| 754 | 754 | ||
| 755 | - | var xRegexReplaceLiteral func(uintptr, uintptr, int, int, string, RegexMatchFlags, **Error) string | |
| 755 | + | var xRegexReplaceLiteral func(uintptr, []string, int, int, string, RegexMatchFlags, **Error) string | |
| 756 | 756 | ||
| 757 | 757 | // Replaces all occurrences of the pattern in @regex with the | |
| 758 | 758 | // replacement text. @replacement is replaced literally, to | |
| @@ -762,7 +762,7 @@ var xRegexReplaceLiteral func(uintptr, uintptr, int, int, string, RegexMatchFlag | |||
| 762 | 762 | // shortened string and setting %G_REGEX_MATCH_NOTBOL in the | |
| 763 | 763 | // case of a pattern that begins with any kind of lookbehind | |
| 764 | 764 | // assertion, such as "\b". | |
| 765 | - | func (x *Regex) ReplaceLiteral(StringVar uintptr, StringLenVar int, StartPositionVar int, ReplacementVar string, MatchOptionsVar RegexMatchFlags) (string, error) { | |
| 765 | + | func (x *Regex) ReplaceLiteral(StringVar []string, StringLenVar int, StartPositionVar int, ReplacementVar string, MatchOptionsVar RegexMatchFlags) (string, error) { | |
| 766 | 766 | var cerr *Error | |
| 767 | 767 | ||
| 768 | 768 | cret := xRegexReplaceLiteral(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, ReplacementVar, MatchOptionsVar, &cerr) | |
| @@ -773,7 +773,7 @@ func (x *Regex) ReplaceLiteral(StringVar uintptr, StringLenVar int, StartPositio | |||
| 773 | 773 | ||
| 774 | 774 | } | |
| 775 | 775 | ||
| 776 | - | var xRegexSplit func(uintptr, string, RegexMatchFlags) uintptr | |
| 776 | + | var xRegexSplit func(uintptr, string, RegexMatchFlags) []string | |
| 777 | 777 | ||
| 778 | 778 | // Breaks the string on the pattern, and returns an array of the tokens. | |
| 779 | 779 | // If the pattern contains capturing parentheses, then the text for each | |
| @@ -792,13 +792,13 @@ var xRegexSplit func(uintptr, string, RegexMatchFlags) uintptr | |||
| 792 | 792 | // characters wherever it matches the empty string between characters. | |
| 793 | 793 | // For example splitting "ab c" using as a separator "\s*", you will get | |
| 794 | 794 | // "a", "b" and "c". | |
| 795 | - | func (x *Regex) Split(StringVar string, MatchOptionsVar RegexMatchFlags) uintptr { | |
| 795 | + | func (x *Regex) Split(StringVar string, MatchOptionsVar RegexMatchFlags) []string { | |
| 796 | 796 | ||
| 797 | 797 | cret := xRegexSplit(x.GoPointer(), StringVar, MatchOptionsVar) | |
| 798 | 798 | return cret | |
| 799 | 799 | } | |
| 800 | 800 | ||
| 801 | - | var xRegexSplitFull func(uintptr, uintptr, int, int, RegexMatchFlags, int, **Error) uintptr | |
| 801 | + | var xRegexSplitFull func(uintptr, []string, int, int, RegexMatchFlags, int, **Error) []string | |
| 802 | 802 | ||
| 803 | 803 | // Breaks the string on the pattern, and returns an array of the tokens. | |
| 804 | 804 | // If the pattern contains capturing parentheses, then the text for each | |
| @@ -821,7 +821,7 @@ var xRegexSplitFull func(uintptr, uintptr, int, int, RegexMatchFlags, int, **Err | |||
| 821 | 821 | // Setting @start_position differs from just passing over a shortened | |
| 822 | 822 | // string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern | |
| 823 | 823 | // that begins with any kind of lookbehind assertion, such as "\b". | |
| 824 | - | func (x *Regex) SplitFull(StringVar uintptr, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MaxTokensVar int) (uintptr, error) { | |
| 824 | + | func (x *Regex) SplitFull(StringVar []string, StringLenVar int, StartPositionVar int, MatchOptionsVar RegexMatchFlags, MaxTokensVar int) ([]string, error) { | |
| 825 | 825 | var cerr *Error | |
| 826 | 826 | ||
| 827 | 827 | cret := xRegexSplitFull(x.GoPointer(), StringVar, StringLenVar, StartPositionVar, MatchOptionsVar, MaxTokensVar, &cerr) | |
| @@ -1216,7 +1216,7 @@ func RegexEscapeNul(StringVar string, LengthVar int) string { | |||
| 1216 | 1216 | return cret | |
| 1217 | 1217 | } | |
| 1218 | 1218 | ||
| 1219 | - | var xRegexEscapeString func(uintptr, int) string | |
| 1219 | + | var xRegexEscapeString func([]string, int) string | |
| 1220 | 1220 | ||
| 1221 | 1221 | // Escapes the special characters used for regular expressions | |
| 1222 | 1222 | // in @string, for instance "a.b*c" becomes "a\.b\*c". This | |
| @@ -1225,7 +1225,7 @@ var xRegexEscapeString func(uintptr, int) string | |||
| 1225 | 1225 | // @string can contain nul characters that are replaced with "\0", | |
| 1226 | 1226 | // in this case remember to specify the correct length of @string | |
| 1227 | 1227 | // in @length. | |
| 1228 | - | func RegexEscapeString(StringVar uintptr, LengthVar int) string { | |
| 1228 | + | func RegexEscapeString(StringVar []string, LengthVar int) string { | |
| 1229 | 1229 | ||
| 1230 | 1230 | cret := xRegexEscapeString(StringVar, LengthVar) | |
| 1231 | 1231 | return cret | |
| @@ -1249,7 +1249,7 @@ func RegexMatchSimple(PatternVar string, StringVar string, CompileOptionsVar Reg | |||
| 1249 | 1249 | return cret | |
| 1250 | 1250 | } | |
| 1251 | 1251 | ||
| 1252 | - | var xRegexSplitSimple func(string, string, RegexCompileFlags, RegexMatchFlags) uintptr | |
| 1252 | + | var xRegexSplitSimple func(string, string, RegexCompileFlags, RegexMatchFlags) []string | |
| 1253 | 1253 | ||
| 1254 | 1254 | // Breaks the string on the pattern, and returns an array of | |
| 1255 | 1255 | // the tokens. If the pattern contains capturing parentheses, | |
| @@ -1278,7 +1278,7 @@ var xRegexSplitSimple func(string, string, RegexCompileFlags, RegexMatchFlags) u | |||
| 1278 | 1278 | // separate characters wherever it matches the empty string between | |
| 1279 | 1279 | // characters. For example splitting "ab c" using as a separator | |
| 1280 | 1280 | // "\s*", you will get "a", "b" and "c". | |
| 1281 | - | func RegexSplitSimple(PatternVar string, StringVar string, CompileOptionsVar RegexCompileFlags, MatchOptionsVar RegexMatchFlags) uintptr { | |
| 1281 | + | func RegexSplitSimple(PatternVar string, StringVar string, CompileOptionsVar RegexCompileFlags, MatchOptionsVar RegexMatchFlags) []string { | |
| 1282 | 1282 | ||
| 1283 | 1283 | cret := xRegexSplitSimple(PatternVar, StringVar, CompileOptionsVar, MatchOptionsVar) | |
| 1284 | 1284 | return cret | |
M v4/glib/gshell.go +2 -2
| @@ -19,7 +19,7 @@ const ( | |||
| 19 | 19 | GShellErrorFailedValue ShellError = 2 | |
| 20 | 20 | ) | |
| 21 | 21 | ||
| 22 | - | var xShellParseArgv func(string, int, uintptr, **Error) bool | |
| 22 | + | var xShellParseArgv func(string, int, []string, **Error) bool | |
| 23 | 23 | ||
| 24 | 24 | // Parses a command line into an argument vector, in much the same way | |
| 25 | 25 | // the shell would, but without many of the expansions the shell would | |
| @@ -39,7 +39,7 @@ var xShellParseArgv func(string, int, uintptr, **Error) bool | |||
| 39 | 39 | // successfully. | |
| 40 | 40 | // | |
| 41 | 41 | // Free the returned vector with g_strfreev(). | |
| 42 | - | func ShellParseArgv(CommandLineVar string, ArgcpVar int, ArgvpVar uintptr) (bool, error) { | |
| 42 | + | func ShellParseArgv(CommandLineVar string, ArgcpVar int, ArgvpVar []string) (bool, error) { | |
| 43 | 43 | var cerr *Error | |
| 44 | 44 | ||
| 45 | 45 | cret := xShellParseArgv(CommandLineVar, ArgcpVar, ArgvpVar, &cerr) | |
M v4/glib/gspawn.go +12 -12
| @@ -128,7 +128,7 @@ const ( | |||
| 128 | 128 | GSpawnErrorFailedValue SpawnError = 19 | |
| 129 | 129 | ) | |
| 130 | 130 | ||
| 131 | - | var xSpawnAsync func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, *Pid, **Error) bool | |
| 131 | + | var xSpawnAsync func(string, []string, []string, SpawnFlags, uintptr, uintptr, *Pid, **Error) bool | |
| 132 | 132 | ||
| 133 | 133 | // Executes a child program asynchronously. | |
| 134 | 134 | // | |
| @@ -146,7 +146,7 @@ var xSpawnAsync func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, *Pi | |||
| 146 | 146 | // Note that the returned @child_pid on Windows is a handle to the child | |
| 147 | 147 | // process and not its identifier. Process handles and process identifiers | |
| 148 | 148 | // are different concepts on Windows. | |
| 149 | - | func SpawnAsync(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid) (bool, error) { | |
| 149 | + | func SpawnAsync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid) (bool, error) { | |
| 150 | 150 | var cerr *Error | |
| 151 | 151 | ||
| 152 | 152 | cret := xSpawnAsync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, &cerr) | |
| @@ -157,13 +157,13 @@ func SpawnAsync(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, Fl | |||
| 157 | 157 | ||
| 158 | 158 | } | |
| 159 | 159 | ||
| 160 | - | var xSpawnAsyncWithFds func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, *Pid, int, int, int, **Error) bool | |
| 160 | + | var xSpawnAsyncWithFds func(string, []string, []string, SpawnFlags, uintptr, uintptr, *Pid, int, int, int, **Error) bool | |
| 161 | 161 | ||
| 162 | 162 | // Executes a child program asynchronously. | |
| 163 | 163 | // | |
| 164 | 164 | // Identical to g_spawn_async_with_pipes_and_fds() but with `n_fds` set to zero, | |
| 165 | 165 | // so no FD assignments are used. | |
| 166 | - | func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | |
| 166 | + | func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | |
| 167 | 167 | var cerr *Error | |
| 168 | 168 | ||
| 169 | 169 | cret := xSpawnAsyncWithFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | |
| @@ -174,11 +174,11 @@ func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uint | |||
| 174 | 174 | ||
| 175 | 175 | } | |
| 176 | 176 | ||
| 177 | - | var xSpawnAsyncWithPipes func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, *Pid, int, int, int, **Error) bool | |
| 177 | + | var xSpawnAsyncWithPipes func(string, []string, []string, SpawnFlags, uintptr, uintptr, *Pid, int, int, int, **Error) bool | |
| 178 | 178 | ||
| 179 | 179 | // Identical to g_spawn_async_with_pipes_and_fds() but with `n_fds` set to zero, | |
| 180 | 180 | // so no FD assignments are used. | |
| 181 | - | func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StandardInputVar int, StandardOutputVar int, StandardErrorVar int) (bool, error) { | |
| 181 | + | func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StandardInputVar int, StandardOutputVar int, StandardErrorVar int) (bool, error) { | |
| 182 | 182 | var cerr *Error | |
| 183 | 183 | ||
| 184 | 184 | cret := xSpawnAsyncWithPipes(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StandardInputVar, StandardOutputVar, StandardErrorVar, &cerr) | |
| @@ -189,7 +189,7 @@ func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar ui | |||
| 189 | 189 | ||
| 190 | 190 | } | |
| 191 | 191 | ||
| 192 | - | var xSpawnAsyncWithPipesAndFds func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, int, int, int, uintptr, uintptr, uint, *Pid, int, int, int, **Error) bool | |
| 192 | + | var xSpawnAsyncWithPipesAndFds func(string, []string, []string, SpawnFlags, uintptr, uintptr, int, int, int, []int, []int, uint, *Pid, int, int, int, **Error) bool | |
| 193 | 193 | ||
| 194 | 194 | // Executes a child program asynchronously (your program will not | |
| 195 | 195 | // block waiting for the child to exit). | |
| @@ -379,7 +379,7 @@ var xSpawnAsyncWithPipesAndFds func(string, uintptr, uintptr, SpawnFlags, uintpt | |||
| 379 | 379 | // graphical application too, then to ensure that the spawned program opens its | |
| 380 | 380 | // windows on the right screen, you may want to use #GdkAppLaunchContext, | |
| 381 | 381 | // #GAppLaunchContext, or set the `DISPLAY` environment variable. | |
| 382 | - | func SpawnAsyncWithPipesAndFds(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int, SourceFdsVar uintptr, TargetFdsVar uintptr, NFdsVar uint, ChildPidOutVar *Pid, StdinPipeOutVar int, StdoutPipeOutVar int, StderrPipeOutVar int) (bool, error) { | |
| 382 | + | func SpawnAsyncWithPipesAndFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int, SourceFdsVar []int, TargetFdsVar []int, NFdsVar uint, ChildPidOutVar *Pid, StdinPipeOutVar int, StdoutPipeOutVar int, StderrPipeOutVar int) (bool, error) { | |
| 383 | 383 | var cerr *Error | |
| 384 | 384 | ||
| 385 | 385 | cret := xSpawnAsyncWithPipesAndFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, SourceFdsVar, TargetFdsVar, NFdsVar, ChildPidOutVar, StdinPipeOutVar, StdoutPipeOutVar, StderrPipeOutVar, &cerr) | |
| @@ -498,7 +498,7 @@ func SpawnCommandLineAsync(CommandLineVar string) (bool, error) { | |||
| 498 | 498 | ||
| 499 | 499 | } | |
| 500 | 500 | ||
| 501 | - | var xSpawnCommandLineSync func(string, uintptr, uintptr, int, **Error) bool | |
| 501 | + | var xSpawnCommandLineSync func(string, []byte, []byte, int, **Error) bool | |
| 502 | 502 | ||
| 503 | 503 | // A simple version of g_spawn_sync() with little-used parameters | |
| 504 | 504 | // removed, taking a command line instead of an argument vector. | |
| @@ -529,7 +529,7 @@ var xSpawnCommandLineSync func(string, uintptr, uintptr, int, **Error) bool | |||
| 529 | 529 | // the backslashes will be eaten, and the space will act as a | |
| 530 | 530 | // separator. You need to enclose such paths with single quotes, like | |
| 531 | 531 | // "'c:\\program files\\app\\app.exe' 'e:\\folder\\argument.txt'". | |
| 532 | - | func SpawnCommandLineSync(CommandLineVar string, StandardOutputVar uintptr, StandardErrorVar uintptr, WaitStatusVar int) (bool, error) { | |
| 532 | + | func SpawnCommandLineSync(CommandLineVar string, StandardOutputVar []byte, StandardErrorVar []byte, WaitStatusVar int) (bool, error) { | |
| 533 | 533 | var cerr *Error | |
| 534 | 534 | ||
| 535 | 535 | cret := xSpawnCommandLineSync(CommandLineVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) | |
| @@ -540,7 +540,7 @@ func SpawnCommandLineSync(CommandLineVar string, StandardOutputVar uintptr, Stan | |||
| 540 | 540 | ||
| 541 | 541 | } | |
| 542 | 542 | ||
| 543 | - | var xSpawnSync func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, uintptr, uintptr, int, **Error) bool | |
| 543 | + | var xSpawnSync func(string, []string, []string, SpawnFlags, uintptr, uintptr, []byte, []byte, int, **Error) bool | |
| 544 | 544 | ||
| 545 | 545 | // Executes a child synchronously (waits for the child to exit before returning). | |
| 546 | 546 | // | |
| @@ -565,7 +565,7 @@ var xSpawnSync func(string, uintptr, uintptr, SpawnFlags, uintptr, uintptr, uint | |||
| 565 | 565 | // This function calls g_spawn_async_with_pipes() internally; see that | |
| 566 | 566 | // function for full details on the other parameters and details on | |
| 567 | 567 | // how these functions work on Windows. | |
| 568 | - | func SpawnSync(WorkingDirectoryVar string, ArgvVar uintptr, EnvpVar uintptr, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StandardOutputVar uintptr, StandardErrorVar uintptr, WaitStatusVar int) (bool, error) { | |
| 568 | + | func SpawnSync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StandardOutputVar []byte, StandardErrorVar []byte, WaitStatusVar int) (bool, error) { | |
| 569 | 569 | var cerr *Error | |
| 570 | 570 | ||
| 571 | 571 | cret := xSpawnSync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) | |
M v4/glib/gstrfuncs.go +8 -8
| @@ -492,7 +492,7 @@ func StrToAscii(StrVar string, FromLocaleVar string) string { | |||
| 492 | 492 | return cret | |
| 493 | 493 | } | |
| 494 | 494 | ||
| 495 | - | var xStrTokenizeAndFold func(string, string, uintptr) uintptr | |
| 495 | + | var xStrTokenizeAndFold func(string, string, []string) []string | |
| 496 | 496 | ||
| 497 | 497 | // Tokenises @string and performs folding on each token. | |
| 498 | 498 | // | |
| @@ -509,7 +509,7 @@ var xStrTokenizeAndFold func(string, string, uintptr) uintptr | |||
| 509 | 509 | // for doing so is unspecified, but @translit_locale (if specified) may | |
| 510 | 510 | // improve the transliteration if the language of the source string is | |
| 511 | 511 | // known. | |
| 512 | - | func StrTokenizeAndFold(StringVar string, TranslitLocaleVar string, AsciiAlternatesVar uintptr) uintptr { | |
| 512 | + | func StrTokenizeAndFold(StringVar string, TranslitLocaleVar string, AsciiAlternatesVar []string) []string { | |
| 513 | 513 | ||
| 514 | 514 | cret := xStrTokenizeAndFold(StringVar, TranslitLocaleVar, AsciiAlternatesVar) | |
| 515 | 515 | return cret | |
| @@ -703,13 +703,13 @@ func StrdupVprintf(FormatVar string, ArgsVar []interface{}) string { | |||
| 703 | 703 | return cret | |
| 704 | 704 | } | |
| 705 | 705 | ||
| 706 | - | var xStrdupv func(string) uintptr | |
| 706 | + | var xStrdupv func(string) []string | |
| 707 | 707 | ||
| 708 | 708 | // Copies %NULL-terminated array of strings. The copy is a deep copy; | |
| 709 | 709 | // the new array should be freed by first freeing each string, then | |
| 710 | 710 | // the array itself. g_strfreev() does this for you. If called | |
| 711 | 711 | // on a %NULL value, g_strdupv() simply returns %NULL. | |
| 712 | - | func Strdupv(StrArrayVar string) uintptr { | |
| 712 | + | func Strdupv(StrArrayVar string) []string { | |
| 713 | 713 | ||
| 714 | 714 | cret := xStrdupv(StrArrayVar) | |
| 715 | 715 | return cret | |
| @@ -925,7 +925,7 @@ func Strsignal(SignumVar int) string { | |||
| 925 | 925 | return cret | |
| 926 | 926 | } | |
| 927 | 927 | ||
| 928 | - | var xStrsplit func(string, string, int) uintptr | |
| 928 | + | var xStrsplit func(string, string, int) []string | |
| 929 | 929 | ||
| 930 | 930 | // Splits a string into a maximum of @max_tokens pieces, using the given | |
| 931 | 931 | // @delimiter. If @max_tokens is reached, the remainder of @string is | |
| @@ -941,13 +941,13 @@ var xStrsplit func(string, string, int) uintptr | |||
| 941 | 941 | // more useful than consistent handling of empty elements. If you do need | |
| 942 | 942 | // to represent empty elements, you'll need to check for the empty string | |
| 943 | 943 | // before calling g_strsplit(). | |
| 944 | - | func Strsplit(StringVar string, DelimiterVar string, MaxTokensVar int) uintptr { | |
| 944 | + | func Strsplit(StringVar string, DelimiterVar string, MaxTokensVar int) []string { | |
| 945 | 945 | ||
| 946 | 946 | cret := xStrsplit(StringVar, DelimiterVar, MaxTokensVar) | |
| 947 | 947 | return cret | |
| 948 | 948 | } | |
| 949 | 949 | ||
| 950 | - | var xStrsplitSet func(string, string, int) uintptr | |
| 950 | + | var xStrsplitSet func(string, string, int) []string | |
| 951 | 951 | ||
| 952 | 952 | // Splits @string into a number of tokens not containing any of the characters | |
| 953 | 953 | // in @delimiter. A token is the (possibly empty) longest string that does not | |
| @@ -970,7 +970,7 @@ var xStrsplitSet func(string, string, int) uintptr | |||
| 970 | 970 | // | |
| 971 | 971 | // Note that this function works on bytes not characters, so it can't be used | |
| 972 | 972 | // to delimit UTF-8 strings for anything but ASCII characters. | |
| 973 | - | func StrsplitSet(StringVar string, DelimitersVar string, MaxTokensVar int) uintptr { | |
| 973 | + | func StrsplitSet(StringVar string, DelimitersVar string, MaxTokensVar int) []string { | |
| 974 | 974 | ||
| 975 | 975 | cret := xStrsplitSet(StringVar, DelimitersVar, MaxTokensVar) | |
| 976 | 976 | return cret | |
M v4/glib/gstrvbuilder.go +2 -2
| @@ -61,12 +61,12 @@ func (x *StrvBuilder) Addv(ValueVar []string) { | |||
| 61 | 61 | ||
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | - | var xStrvBuilderEnd func(uintptr) uintptr | |
| 64 | + | var xStrvBuilderEnd func(uintptr) []string | |
| 65 | 65 | ||
| 66 | 66 | // Ends the builder process and returns the constructed NULL-terminated string | |
| 67 | 67 | // array. The returned value should be freed with g_strfreev() when no longer | |
| 68 | 68 | // needed. | |
| 69 | - | func (x *StrvBuilder) End() uintptr { | |
| 69 | + | func (x *StrvBuilder) End() []string { | |
| 70 | 70 | ||
| 71 | 71 | cret := xStrvBuilderEnd(x.GoPointer()) | |
| 72 | 72 | return cret | |
M v4/glib/gthread.go +4 -4
| @@ -82,7 +82,7 @@ type ThreadFunc func(uintptr) uintptr | |||
| 82 | 82 | type Cond struct { | |
| 83 | 83 | P uintptr | |
| 84 | 84 | ||
| 85 | - | I uintptr | |
| 85 | + | I [2]uint | |
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | 88 | func (x *Cond) GoPointer() uintptr { | |
| @@ -270,7 +270,7 @@ type Private struct { | |||
| 270 | 270 | ||
| 271 | 271 | Notify DestroyNotify | |
| 272 | 272 | ||
| 273 | - | Future uintptr | |
| 273 | + | Future [2]uintptr | |
| 274 | 274 | } | |
| 275 | 275 | ||
| 276 | 276 | func (x *Private) GoPointer() uintptr { | |
| @@ -385,7 +385,7 @@ func (x *Private) Set(ValueVar uintptr) { | |||
| 385 | 385 | type RWLock struct { | |
| 386 | 386 | P uintptr | |
| 387 | 387 | ||
| 388 | - | I uintptr | |
| 388 | + | I [2]uint | |
| 389 | 389 | } | |
| 390 | 390 | ||
| 391 | 391 | func (x *RWLock) GoPointer() uintptr { | |
| @@ -541,7 +541,7 @@ func (x *RWLock) WriterUnlock() { | |||
| 541 | 541 | type RecMutex struct { | |
| 542 | 542 | P uintptr | |
| 543 | 543 | ||
| 544 | - | I uintptr | |
| 544 | + | I [2]uint | |
| 545 | 545 | } | |
| 546 | 546 | ||
| 547 | 547 | func (x *RecMutex) GoPointer() uintptr { | |
M v4/glib/gunicode.go +4 -4
| @@ -1494,7 +1494,7 @@ func Utf8ToUtf16(StrVar string, LenVar int32, ItemsReadVar int32, ItemsWrittenVa | |||
| 1494 | 1494 | ||
| 1495 | 1495 | } | |
| 1496 | 1496 | ||
| 1497 | - | var xUtf8Validate func(uintptr, int, string) bool | |
| 1497 | + | var xUtf8Validate func([]byte, int, string) bool | |
| 1498 | 1498 | ||
| 1499 | 1499 | // Validates UTF-8 encoded text. @str is the text to validate; | |
| 1500 | 1500 | // if @str is nul-terminated, then @max_len can be -1, otherwise | |
| @@ -1511,19 +1511,19 @@ var xUtf8Validate func(uintptr, int, string) bool | |||
| 1511 | 1511 | // routines require valid UTF-8 as input; so data read from a file | |
| 1512 | 1512 | // or the network should be checked with g_utf8_validate() before | |
| 1513 | 1513 | // doing anything else with it. | |
| 1514 | - | func Utf8Validate(StrVar uintptr, MaxLenVar int, EndVar string) bool { | |
| 1514 | + | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar string) bool { | |
| 1515 | 1515 | ||
| 1516 | 1516 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | |
| 1517 | 1517 | return cret | |
| 1518 | 1518 | } | |
| 1519 | 1519 | ||
| 1520 | - | var xUtf8ValidateLen func(uintptr, uint, string) bool | |
| 1520 | + | var xUtf8ValidateLen func([]byte, uint, string) bool | |
| 1521 | 1521 | ||
| 1522 | 1522 | // Validates UTF-8 encoded text. | |
| 1523 | 1523 | // | |
| 1524 | 1524 | // As with g_utf8_validate(), but @max_len must be set, and hence this function | |
| 1525 | 1525 | // will always return %FALSE if any of the bytes of @str are nul. | |
| 1526 | - | func Utf8ValidateLen(StrVar uintptr, MaxLenVar uint, EndVar string) bool { | |
| 1526 | + | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar string) bool { | |
| 1527 | 1527 | ||
| 1528 | 1528 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | |
| 1529 | 1529 | return cret | |
M v4/glib/guri.go +3 -3
| @@ -333,7 +333,7 @@ type UriParamsIter struct { | |||
| 333 | 333 | ||
| 334 | 334 | Dummy2 uintptr | |
| 335 | 335 | ||
| 336 | - | Dummy3 uintptr | |
| 336 | + | Dummy3 [256]byte | |
| 337 | 337 | } | |
| 338 | 338 | ||
| 339 | 339 | func (x *UriParamsIter) GoPointer() uintptr { | |
| @@ -562,7 +562,7 @@ func UriBuildWithUser(FlagsVar UriFlags, SchemeVar string, UserVar string, Passw | |||
| 562 | 562 | return cret | |
| 563 | 563 | } | |
| 564 | 564 | ||
| 565 | - | var xUriEscapeBytes func(uintptr, uint, string) string | |
| 565 | + | var xUriEscapeBytes func([]byte, uint, string) string | |
| 566 | 566 | ||
| 567 | 567 | // Escapes arbitrary data for use in a URI. | |
| 568 | 568 | // | |
| @@ -575,7 +575,7 @@ var xUriEscapeBytes func(uintptr, uint, string) string | |||
| 575 | 575 | // | |
| 576 | 576 | // Though technically incorrect, this will also allow escaping nul | |
| 577 | 577 | // bytes as `%“00`. | |
| 578 | - | func UriEscapeBytes(UnescapedVar uintptr, LengthVar uint, ReservedCharsAllowedVar string) string { | |
| 578 | + | func UriEscapeBytes(UnescapedVar []byte, LengthVar uint, ReservedCharsAllowedVar string) string { | |
| 579 | 579 | ||
| 580 | 580 | cret := xUriEscapeBytes(UnescapedVar, LengthVar, ReservedCharsAllowedVar) | |
| 581 | 581 | return cret | |
M v4/glib/gutils.go +6 -6
| @@ -334,7 +334,7 @@ func GetRealName() string { | |||
| 334 | 334 | return cret | |
| 335 | 335 | } | |
| 336 | 336 | ||
| 337 | - | var xGetSystemConfigDirs func() uintptr | |
| 337 | + | var xGetSystemConfigDirs func() []string | |
| 338 | 338 | ||
| 339 | 339 | // Returns an ordered list of base directories in which to access | |
| 340 | 340 | // system-wide configuration information. | |
| @@ -356,13 +356,13 @@ var xGetSystemConfigDirs func() uintptr | |||
| 356 | 356 | // | |
| 357 | 357 | // The return value is cached and modifying it at runtime is not supported, as | |
| 358 | 358 | // it’s not thread-safe to modify environment variables at runtime. | |
| 359 | - | func GetSystemConfigDirs() uintptr { | |
| 359 | + | func GetSystemConfigDirs() []string { | |
| 360 | 360 | ||
| 361 | 361 | cret := xGetSystemConfigDirs() | |
| 362 | 362 | return cret | |
| 363 | 363 | } | |
| 364 | 364 | ||
| 365 | - | var xGetSystemDataDirs func() uintptr | |
| 365 | + | var xGetSystemDataDirs func() []string | |
| 366 | 366 | ||
| 367 | 367 | // Returns an ordered list of base directories in which to access | |
| 368 | 368 | // system-wide application data. | |
| @@ -398,7 +398,7 @@ var xGetSystemDataDirs func() uintptr | |||
| 398 | 398 | // | |
| 399 | 399 | // The return value is cached and modifying it at runtime is not supported, as | |
| 400 | 400 | // it’s not thread-safe to modify environment variables at runtime. | |
| 401 | - | func GetSystemDataDirs() uintptr { | |
| 401 | + | func GetSystemDataDirs() []string { | |
| 402 | 402 | ||
| 403 | 403 | cret := xGetSystemDataDirs() | |
| 404 | 404 | return cret | |
| @@ -585,7 +585,7 @@ func NullifyPointer(NullifyLocationVar uintptr) { | |||
| 585 | 585 | ||
| 586 | 586 | } | |
| 587 | 587 | ||
| 588 | - | var xParseDebugString func(string, uintptr, uint) uint | |
| 588 | + | var xParseDebugString func(string, []DebugKey, uint) uint | |
| 589 | 589 | ||
| 590 | 590 | // Parses a string containing debugging options | |
| 591 | 591 | // into a %guint containing bit flags. This is used | |
| @@ -599,7 +599,7 @@ var xParseDebugString func(string, uintptr, uint) uint | |||
| 599 | 599 | // | |
| 600 | 600 | // If @string is equal to "help", all the available keys in @keys | |
| 601 | 601 | // are printed out to standard error. | |
| 602 | - | func ParseDebugString(StringVar string, KeysVar uintptr, NkeysVar uint) uint { | |
| 602 | + | func ParseDebugString(StringVar string, KeysVar []DebugKey, NkeysVar uint) uint { | |
| 603 | 603 | ||
| 604 | 604 | cret := xParseDebugString(StringVar, KeysVar, NkeysVar) | |
| 605 | 605 | return cret | |
M v4/glib/gvariant.go +29 -29
| @@ -338,7 +338,7 @@ func NewVariantByte(ValueVar byte) *Variant { | |||
| 338 | 338 | return cret | |
| 339 | 339 | } | |
| 340 | 340 | ||
| 341 | - | var xNewVariantBytestring func(uintptr) *Variant | |
| 341 | + | var xNewVariantBytestring func([]byte) *Variant | |
| 342 | 342 | ||
| 343 | 343 | // Creates an array-of-bytes #GVariant with the contents of @string. | |
| 344 | 344 | // This function is just like g_variant_new_string() except that the | |
| @@ -346,19 +346,19 @@ var xNewVariantBytestring func(uintptr) *Variant | |||
| 346 | 346 | // | |
| 347 | 347 | // The nul terminator character at the end of the string is stored in | |
| 348 | 348 | // the array. | |
| 349 | - | func NewVariantBytestring(StringVar uintptr) *Variant { | |
| 349 | + | func NewVariantBytestring(StringVar []byte) *Variant { | |
| 350 | 350 | ||
| 351 | 351 | cret := xNewVariantBytestring(StringVar) | |
| 352 | 352 | return cret | |
| 353 | 353 | } | |
| 354 | 354 | ||
| 355 | - | var xNewVariantBytestringArray func(uintptr, int) *Variant | |
| 355 | + | var xNewVariantBytestringArray func([]string, int) *Variant | |
| 356 | 356 | ||
| 357 | 357 | // Constructs an array of bytestring #GVariant from the given array of | |
| 358 | 358 | // strings. | |
| 359 | 359 | // | |
| 360 | 360 | // If @length is -1 then @strv is %NULL-terminated. | |
| 361 | - | func NewVariantBytestringArray(StrvVar uintptr, LengthVar int) *Variant { | |
| 361 | + | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | |
| 362 | 362 | ||
| 363 | 363 | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | |
| 364 | 364 | return cret | |
| @@ -424,7 +424,7 @@ func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) | |||
| 424 | 424 | return cret | |
| 425 | 425 | } | |
| 426 | 426 | ||
| 427 | - | var xNewVariantFromData func(*VariantType, uintptr, uint, bool, uintptr, uintptr) *Variant | |
| 427 | + | var xNewVariantFromData func(*VariantType, []byte, uint, bool, uintptr, uintptr) *Variant | |
| 428 | 428 | ||
| 429 | 429 | // Creates a new #GVariant instance from serialized data. | |
| 430 | 430 | // | |
| @@ -455,7 +455,7 @@ var xNewVariantFromData func(*VariantType, uintptr, uint, bool, uintptr, uintptr | |||
| 455 | 455 | // @type being loaded. Otherwise this function will internally create a copy of | |
| 456 | 456 | // the memory (since GLib 2.60) or (in older versions) fail and exit the | |
| 457 | 457 | // process. | |
| 458 | - | func NewVariantFromData(TypeVar *VariantType, DataVar uintptr, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | |
| 458 | + | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | |
| 459 | 459 | ||
| 460 | 460 | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallback(NotifyVar), UserDataVar) | |
| 461 | 461 | return cret | |
| @@ -530,7 +530,7 @@ func NewVariantObjectPath(ObjectPathVar string) *Variant { | |||
| 530 | 530 | return cret | |
| 531 | 531 | } | |
| 532 | 532 | ||
| 533 | - | var xNewVariantObjv func(uintptr, int) *Variant | |
| 533 | + | var xNewVariantObjv func([]string, int) *Variant | |
| 534 | 534 | ||
| 535 | 535 | // Constructs an array of object paths #GVariant from the given array of | |
| 536 | 536 | // strings. | |
| @@ -539,7 +539,7 @@ var xNewVariantObjv func(uintptr, int) *Variant | |||
| 539 | 539 | // g_variant_is_object_path(). | |
| 540 | 540 | // | |
| 541 | 541 | // If @length is -1 then @strv is %NULL-terminated. | |
| 542 | - | func NewVariantObjv(StrvVar uintptr, LengthVar int) *Variant { | |
| 542 | + | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | |
| 543 | 543 | ||
| 544 | 544 | cret := xNewVariantObjv(StrvVar, LengthVar) | |
| 545 | 545 | return cret | |
| @@ -653,13 +653,13 @@ func NewVariantString(StringVar string) *Variant { | |||
| 653 | 653 | return cret | |
| 654 | 654 | } | |
| 655 | 655 | ||
| 656 | - | var xNewVariantStrv func(uintptr, int) *Variant | |
| 656 | + | var xNewVariantStrv func([]string, int) *Variant | |
| 657 | 657 | ||
| 658 | 658 | // Constructs an array of strings #GVariant from the given array of | |
| 659 | 659 | // strings. | |
| 660 | 660 | // | |
| 661 | 661 | // If @length is -1 then @strv is %NULL-terminated. | |
| 662 | - | func NewVariantStrv(StrvVar uintptr, LengthVar int) *Variant { | |
| 662 | + | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | |
| 663 | 663 | ||
| 664 | 664 | cret := xNewVariantStrv(StrvVar, LengthVar) | |
| 665 | 665 | return cret | |
| @@ -861,19 +861,19 @@ func (x *Variant) Compare(TwoVar uintptr) int { | |||
| 861 | 861 | return cret | |
| 862 | 862 | } | |
| 863 | 863 | ||
| 864 | - | var xVariantDupBytestring func(uintptr, uint) uintptr | |
| 864 | + | var xVariantDupBytestring func(uintptr, uint) []byte | |
| 865 | 865 | ||
| 866 | 866 | // Similar to g_variant_get_bytestring() except that instead of | |
| 867 | 867 | // returning a constant string, the string is duplicated. | |
| 868 | 868 | // | |
| 869 | 869 | // The return value must be freed using g_free(). | |
| 870 | - | func (x *Variant) DupBytestring(LengthVar uint) uintptr { | |
| 870 | + | func (x *Variant) DupBytestring(LengthVar uint) []byte { | |
| 871 | 871 | ||
| 872 | 872 | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | |
| 873 | 873 | return cret | |
| 874 | 874 | } | |
| 875 | 875 | ||
| 876 | - | var xVariantDupBytestringArray func(uintptr, uint) uintptr | |
| 876 | + | var xVariantDupBytestringArray func(uintptr, uint) []string | |
| 877 | 877 | ||
| 878 | 878 | // Gets the contents of an array of array of bytes #GVariant. This call | |
| 879 | 879 | // makes a deep copy; the return result should be released with | |
| @@ -885,13 +885,13 @@ var xVariantDupBytestringArray func(uintptr, uint) uintptr | |||
| 885 | 885 | // | |
| 886 | 886 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 887 | 887 | // %NULL pointer will be returned. | |
| 888 | - | func (x *Variant) DupBytestringArray(LengthVar uint) uintptr { | |
| 888 | + | func (x *Variant) DupBytestringArray(LengthVar uint) []string { | |
| 889 | 889 | ||
| 890 | 890 | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | |
| 891 | 891 | return cret | |
| 892 | 892 | } | |
| 893 | 893 | ||
| 894 | - | var xVariantDupObjv func(uintptr, uint) uintptr | |
| 894 | + | var xVariantDupObjv func(uintptr, uint) []string | |
| 895 | 895 | ||
| 896 | 896 | // Gets the contents of an array of object paths #GVariant. This call | |
| 897 | 897 | // makes a deep copy; the return result should be released with | |
| @@ -903,7 +903,7 @@ var xVariantDupObjv func(uintptr, uint) uintptr | |||
| 903 | 903 | // | |
| 904 | 904 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 905 | 905 | // %NULL pointer will be returned. | |
| 906 | - | func (x *Variant) DupObjv(LengthVar uint) uintptr { | |
| 906 | + | func (x *Variant) DupObjv(LengthVar uint) []string { | |
| 907 | 907 | ||
| 908 | 908 | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | |
| 909 | 909 | return cret | |
| @@ -923,7 +923,7 @@ func (x *Variant) DupString(LengthVar uint) string { | |||
| 923 | 923 | return cret | |
| 924 | 924 | } | |
| 925 | 925 | ||
| 926 | - | var xVariantDupStrv func(uintptr, uint) uintptr | |
| 926 | + | var xVariantDupStrv func(uintptr, uint) []string | |
| 927 | 927 | ||
| 928 | 928 | // Gets the contents of an array of strings #GVariant. This call | |
| 929 | 929 | // makes a deep copy; the return result should be released with | |
| @@ -935,7 +935,7 @@ var xVariantDupStrv func(uintptr, uint) uintptr | |||
| 935 | 935 | // | |
| 936 | 936 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 937 | 937 | // %NULL pointer will be returned. | |
| 938 | - | func (x *Variant) DupStrv(LengthVar uint) uintptr { | |
| 938 | + | func (x *Variant) DupStrv(LengthVar uint) []string { | |
| 939 | 939 | ||
| 940 | 940 | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | |
| 941 | 941 | return cret | |
| @@ -1001,7 +1001,7 @@ func (x *Variant) GetByte() byte { | |||
| 1001 | 1001 | return cret | |
| 1002 | 1002 | } | |
| 1003 | 1003 | ||
| 1004 | - | var xVariantGetBytestring func(uintptr) uintptr | |
| 1004 | + | var xVariantGetBytestring func(uintptr) []byte | |
| 1005 | 1005 | ||
| 1006 | 1006 | // Returns the string value of a #GVariant instance with an | |
| 1007 | 1007 | // array-of-bytes type. The string has no particular encoding. | |
| @@ -1021,13 +1021,13 @@ var xVariantGetBytestring func(uintptr) uintptr | |||
| 1021 | 1021 | // array of bytes. | |
| 1022 | 1022 | // | |
| 1023 | 1023 | // The return value remains valid as long as @value exists. | |
| 1024 | - | func (x *Variant) GetBytestring() uintptr { | |
| 1024 | + | func (x *Variant) GetBytestring() []byte { | |
| 1025 | 1025 | ||
| 1026 | 1026 | cret := xVariantGetBytestring(x.GoPointer()) | |
| 1027 | 1027 | return cret | |
| 1028 | 1028 | } | |
| 1029 | 1029 | ||
| 1030 | - | var xVariantGetBytestringArray func(uintptr, uint) uintptr | |
| 1030 | + | var xVariantGetBytestringArray func(uintptr, uint) []string | |
| 1031 | 1031 | ||
| 1032 | 1032 | // Gets the contents of an array of array of bytes #GVariant. This call | |
| 1033 | 1033 | // makes a shallow copy; the return result should be released with | |
| @@ -1039,7 +1039,7 @@ var xVariantGetBytestringArray func(uintptr, uint) uintptr | |||
| 1039 | 1039 | // | |
| 1040 | 1040 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1041 | 1041 | // %NULL pointer will be returned. | |
| 1042 | - | func (x *Variant) GetBytestringArray(LengthVar uint) uintptr { | |
| 1042 | + | func (x *Variant) GetBytestringArray(LengthVar uint) []string { | |
| 1043 | 1043 | ||
| 1044 | 1044 | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | |
| 1045 | 1045 | return cret | |
| @@ -1150,7 +1150,7 @@ func (x *Variant) GetDouble() float64 { | |||
| 1150 | 1150 | return cret | |
| 1151 | 1151 | } | |
| 1152 | 1152 | ||
| 1153 | - | var xVariantGetFixedArray func(uintptr, uint, uint) uintptr | |
| 1153 | + | var xVariantGetFixedArray func(uintptr, uint, uint) []uintptr | |
| 1154 | 1154 | ||
| 1155 | 1155 | // Provides access to the serialized data for an array of fixed-sized | |
| 1156 | 1156 | // items. | |
| @@ -1178,7 +1178,7 @@ var xVariantGetFixedArray func(uintptr, uint, uint) uintptr | |||
| 1178 | 1178 | // | |
| 1179 | 1179 | // @n_elements, which must be non-%NULL, is set equal to the number of | |
| 1180 | 1180 | // items in the array. | |
| 1181 | - | func (x *Variant) GetFixedArray(NElementsVar uint, ElementSizeVar uint) uintptr { | |
| 1181 | + | func (x *Variant) GetFixedArray(NElementsVar uint, ElementSizeVar uint) []uintptr { | |
| 1182 | 1182 | ||
| 1183 | 1183 | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | |
| 1184 | 1184 | return cret | |
| @@ -1277,7 +1277,7 @@ func (x *Variant) GetNormalForm() *Variant { | |||
| 1277 | 1277 | return cret | |
| 1278 | 1278 | } | |
| 1279 | 1279 | ||
| 1280 | - | var xVariantGetObjv func(uintptr, uint) uintptr | |
| 1280 | + | var xVariantGetObjv func(uintptr, uint) []string | |
| 1281 | 1281 | ||
| 1282 | 1282 | // Gets the contents of an array of object paths #GVariant. This call | |
| 1283 | 1283 | // makes a shallow copy; the return result should be released with | |
| @@ -1289,7 +1289,7 @@ var xVariantGetObjv func(uintptr, uint) uintptr | |||
| 1289 | 1289 | // | |
| 1290 | 1290 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1291 | 1291 | // %NULL pointer will be returned. | |
| 1292 | - | func (x *Variant) GetObjv(LengthVar uint) uintptr { | |
| 1292 | + | func (x *Variant) GetObjv(LengthVar uint) []string { | |
| 1293 | 1293 | ||
| 1294 | 1294 | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | |
| 1295 | 1295 | return cret | |
| @@ -1340,7 +1340,7 @@ func (x *Variant) GetString(LengthVar uint) string { | |||
| 1340 | 1340 | return cret | |
| 1341 | 1341 | } | |
| 1342 | 1342 | ||
| 1343 | - | var xVariantGetStrv func(uintptr, uint) uintptr | |
| 1343 | + | var xVariantGetStrv func(uintptr, uint) []string | |
| 1344 | 1344 | ||
| 1345 | 1345 | // Gets the contents of an array of strings #GVariant. This call | |
| 1346 | 1346 | // makes a shallow copy; the return result should be released with | |
| @@ -1352,7 +1352,7 @@ var xVariantGetStrv func(uintptr, uint) uintptr | |||
| 1352 | 1352 | // | |
| 1353 | 1353 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1354 | 1354 | // %NULL pointer will be returned. | |
| 1355 | - | func (x *Variant) GetStrv(LengthVar uint) uintptr { | |
| 1355 | + | func (x *Variant) GetStrv(LengthVar uint) []string { | |
| 1356 | 1356 | ||
| 1357 | 1357 | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | |
| 1358 | 1358 | return cret | |
| @@ -2335,7 +2335,7 @@ func (x *VariantDict) Unref() { | |||
| 2335 | 2335 | // #GVariantIter is an opaque data structure and can only be accessed | |
| 2336 | 2336 | // using the following functions. | |
| 2337 | 2337 | type VariantIter struct { | |
| 2338 | - | X uintptr | |
| 2338 | + | X [16]uint | |
| 2339 | 2339 | } | |
| 2340 | 2340 | ||
| 2341 | 2341 | func (x *VariantIter) GoPointer() uintptr { | |
M v4/gobject/gboxed.go +7 -6
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | // This function is provided by the user and should produce a copy | |
| @@ -15,25 +16,25 @@ type BoxedCopyFunc func(uintptr) uintptr | |||
| 15 | 16 | // structure passed. | |
| 16 | 17 | type BoxedFreeFunc func(uintptr) | |
| 17 | 18 | ||
| 18 | - | var xBoxedCopy func([]interface{}, uintptr) uintptr | |
| 19 | + | var xBoxedCopy func(types.GType, uintptr) uintptr | |
| 19 | 20 | ||
| 20 | 21 | // Provide a copy of a boxed structure @src_boxed which is of type @boxed_type. | |
| 21 | - | func BoxedCopy(BoxedTypeVar []interface{}, SrcBoxedVar uintptr) uintptr { | |
| 22 | + | func BoxedCopy(BoxedTypeVar types.GType, SrcBoxedVar uintptr) uintptr { | |
| 22 | 23 | ||
| 23 | 24 | cret := xBoxedCopy(BoxedTypeVar, SrcBoxedVar) | |
| 24 | 25 | return cret | |
| 25 | 26 | } | |
| 26 | 27 | ||
| 27 | - | var xBoxedFree func([]interface{}, uintptr) | |
| 28 | + | var xBoxedFree func(types.GType, uintptr) | |
| 28 | 29 | ||
| 29 | 30 | // Free the boxed structure @boxed which is of type @boxed_type. | |
| 30 | - | func BoxedFree(BoxedTypeVar []interface{}, BoxedVar uintptr) { | |
| 31 | + | func BoxedFree(BoxedTypeVar types.GType, BoxedVar uintptr) { | |
| 31 | 32 | ||
| 32 | 33 | xBoxedFree(BoxedTypeVar, BoxedVar) | |
| 33 | 34 | ||
| 34 | 35 | } | |
| 35 | 36 | ||
| 36 | - | var xBoxedTypeRegisterStatic func(string, uintptr, uintptr) []interface{} | |
| 37 | + | var xBoxedTypeRegisterStatic func(string, uintptr, uintptr) types.GType | |
| 37 | 38 | ||
| 38 | 39 | // This function creates a new %G_TYPE_BOXED derived type id for a new | |
| 39 | 40 | // boxed type with name @name. | |
| @@ -44,7 +45,7 @@ var xBoxedTypeRegisterStatic func(string, uintptr, uintptr) []interface{} | |||
| 44 | 45 | // For the general case, it is recommended to use G_DEFINE_BOXED_TYPE() | |
| 45 | 46 | // instead of calling g_boxed_type_register_static() directly. The macro | |
| 46 | 47 | // will create the appropriate `*_get_type()` function for the boxed type. | |
| 47 | - | func BoxedTypeRegisterStatic(NameVar string, BoxedCopyVar *BoxedCopyFunc, BoxedFreeVar *BoxedFreeFunc) []interface{} { | |
| 48 | + | func BoxedTypeRegisterStatic(NameVar string, BoxedCopyVar *BoxedCopyFunc, BoxedFreeVar *BoxedFreeFunc) types.GType { | |
| 48 | 49 | ||
| 49 | 50 | cret := xBoxedTypeRegisterStatic(NameVar, glib.NewCallback(BoxedCopyVar), glib.NewCallback(BoxedFreeVar)) | |
| 50 | 51 | return cret | |
M v4/gobject/gclosure.go +7 -6
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The type used for callback functions in structure definitions and function | |
| @@ -20,7 +21,7 @@ import ( | |||
| 20 | 21 | type Callback func() | |
| 21 | 22 | ||
| 22 | 23 | // The type used for marshaller functions. | |
| 23 | - | type ClosureMarshal func(*Closure, *Value, uint, uintptr, uintptr, uintptr) | |
| 24 | + | type ClosureMarshal func(*Closure, *Value, uint, []Value, uintptr, uintptr) | |
| 24 | 25 | ||
| 25 | 26 | // The type used for the various notification callbacks which can be registered | |
| 26 | 27 | // on closures. | |
| @@ -29,7 +30,7 @@ type ClosureNotify func(uintptr, *Closure) | |||
| 29 | 30 | // This is the signature of va_list marshaller functions, an optional | |
| 30 | 31 | // marshaller that can be used in some situations to avoid | |
| 31 | 32 | // marshalling the signal argument into GValues. | |
| 32 | - | type VaClosureMarshal func(*Closure, *Value, *TypeInstance, []interface{}, uintptr, int, uintptr) | |
| 33 | + | type VaClosureMarshal func(*Closure, *Value, *TypeInstance, []interface{}, uintptr, int, []types.GType) | |
| 33 | 34 | ||
| 34 | 35 | // A #GCClosure is a specialization of #GClosure for C function callbacks. | |
| 35 | 36 | type CClosure struct { | |
| @@ -243,10 +244,10 @@ func (x *Closure) Invalidate() { | |||
| 243 | 244 | ||
| 244 | 245 | } | |
| 245 | 246 | ||
| 246 | - | var xClosureInvoke func(uintptr, *Value, uint, uintptr, uintptr) | |
| 247 | + | var xClosureInvoke func(uintptr, *Value, uint, []Value, uintptr) | |
| 247 | 248 | ||
| 248 | 249 | // Invokes the closure, i.e. executes the callback represented by the @closure. | |
| 249 | - | func (x *Closure) Invoke(ReturnValueVar *Value, NParamValuesVar uint, ParamValuesVar uintptr, InvocationHintVar uintptr) { | |
| 250 | + | func (x *Closure) Invoke(ReturnValueVar *Value, NParamValuesVar uint, ParamValuesVar []Value, InvocationHintVar uintptr) { | |
| 250 | 251 | ||
| 251 | 252 | xClosureInvoke(x.GoPointer(), ReturnValueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar) | |
| 252 | 253 | ||
| @@ -444,12 +445,12 @@ func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyData | |||
| 444 | 445 | return cret | |
| 445 | 446 | } | |
| 446 | 447 | ||
| 447 | - | var xSignalTypeCclosureNew func([]interface{}, uint) *Closure | |
| 448 | + | var xSignalTypeCclosureNew func(types.GType, uint) *Closure | |
| 448 | 449 | ||
| 449 | 450 | // Creates a new closure which invokes the function found at the offset | |
| 450 | 451 | // @struct_offset in the class structure of the interface or classed type | |
| 451 | 452 | // identified by @itype. | |
| 452 | - | func SignalTypeCclosureNew(ItypeVar []interface{}, StructOffsetVar uint) *Closure { | |
| 453 | + | func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure { | |
| 453 | 454 | ||
| 454 | 455 | cret := xSignalTypeCclosureNew(ItypeVar, StructOffsetVar) | |
| 455 | 456 | return cret | |
M v4/gobject/genums.go +13 -12
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The class of an enumeration type holds information about its | |
| @@ -70,7 +71,7 @@ func (x *FlagsValue) GoPointer() uintptr { | |||
| 70 | 71 | return uintptr(unsafe.Pointer(x)) | |
| 71 | 72 | } | |
| 72 | 73 | ||
| 73 | - | var xEnumCompleteTypeInfo func([]interface{}, *TypeInfo, *EnumValue) | |
| 74 | + | var xEnumCompleteTypeInfo func(types.GType, *TypeInfo, *EnumValue) | |
| 74 | 75 | ||
| 75 | 76 | // This function is meant to be called from the `complete_type_info` | |
| 76 | 77 | // function of a #GTypePlugin implementation, as in the following | |
| @@ -95,7 +96,7 @@ var xEnumCompleteTypeInfo func([]interface{}, *TypeInfo, *EnumValue) | |||
| 95 | 96 | // } | |
| 96 | 97 | // | |
| 97 | 98 | // ]| | |
| 98 | - | func EnumCompleteTypeInfo(GEnumTypeVar []interface{}, InfoVar *TypeInfo, ConstValuesVar *EnumValue) { | |
| 99 | + | func EnumCompleteTypeInfo(GEnumTypeVar types.GType, InfoVar *TypeInfo, ConstValuesVar *EnumValue) { | |
| 99 | 100 | ||
| 100 | 101 | xEnumCompleteTypeInfo(GEnumTypeVar, InfoVar, ConstValuesVar) | |
| 101 | 102 | ||
| @@ -128,37 +129,37 @@ func EnumGetValueByNick(EnumClassVar *EnumClass, NickVar string) *EnumValue { | |||
| 128 | 129 | return cret | |
| 129 | 130 | } | |
| 130 | 131 | ||
| 131 | - | var xEnumRegisterStatic func(string, *EnumValue) []interface{} | |
| 132 | + | var xEnumRegisterStatic func(string, *EnumValue) types.GType | |
| 132 | 133 | ||
| 133 | 134 | // Registers a new static enumeration type with the name @name. | |
| 134 | 135 | // | |
| 135 | 136 | // It is normally more convenient to let [glib-mkenums][glib-mkenums], | |
| 136 | 137 | // generate a my_enum_get_type() function from a usual C enumeration | |
| 137 | 138 | // definition than to write one yourself using g_enum_register_static(). | |
| 138 | - | func EnumRegisterStatic(NameVar string, ConstStaticValuesVar *EnumValue) []interface{} { | |
| 139 | + | func EnumRegisterStatic(NameVar string, ConstStaticValuesVar *EnumValue) types.GType { | |
| 139 | 140 | ||
| 140 | 141 | cret := xEnumRegisterStatic(NameVar, ConstStaticValuesVar) | |
| 141 | 142 | return cret | |
| 142 | 143 | } | |
| 143 | 144 | ||
| 144 | - | var xEnumToString func([]interface{}, int) string | |
| 145 | + | var xEnumToString func(types.GType, int) string | |
| 145 | 146 | ||
| 146 | 147 | // Pretty-prints @value in the form of the enum’s name. | |
| 147 | 148 | // | |
| 148 | 149 | // This is intended to be used for debugging purposes. The format of the output | |
| 149 | 150 | // may change in the future. | |
| 150 | - | func EnumToString(GEnumTypeVar []interface{}, ValueVar int) string { | |
| 151 | + | func EnumToString(GEnumTypeVar types.GType, ValueVar int) string { | |
| 151 | 152 | ||
| 152 | 153 | cret := xEnumToString(GEnumTypeVar, ValueVar) | |
| 153 | 154 | return cret | |
| 154 | 155 | } | |
| 155 | 156 | ||
| 156 | - | var xFlagsCompleteTypeInfo func([]interface{}, *TypeInfo, *FlagsValue) | |
| 157 | + | var xFlagsCompleteTypeInfo func(types.GType, *TypeInfo, *FlagsValue) | |
| 157 | 158 | ||
| 158 | 159 | // This function is meant to be called from the complete_type_info() | |
| 159 | 160 | // function of a #GTypePlugin implementation, see the example for | |
| 160 | 161 | // g_enum_complete_type_info() above. | |
| 161 | - | func FlagsCompleteTypeInfo(GFlagsTypeVar []interface{}, InfoVar *TypeInfo, ConstValuesVar *FlagsValue) { | |
| 162 | + | func FlagsCompleteTypeInfo(GFlagsTypeVar types.GType, InfoVar *TypeInfo, ConstValuesVar *FlagsValue) { | |
| 162 | 163 | ||
| 163 | 164 | xFlagsCompleteTypeInfo(GFlagsTypeVar, InfoVar, ConstValuesVar) | |
| 164 | 165 | ||
| @@ -191,27 +192,27 @@ func FlagsGetValueByNick(FlagsClassVar *FlagsClass, NickVar string) *FlagsValue | |||
| 191 | 192 | return cret | |
| 192 | 193 | } | |
| 193 | 194 | ||
| 194 | - | var xFlagsRegisterStatic func(string, *FlagsValue) []interface{} | |
| 195 | + | var xFlagsRegisterStatic func(string, *FlagsValue) types.GType | |
| 195 | 196 | ||
| 196 | 197 | // Registers a new static flags type with the name @name. | |
| 197 | 198 | // | |
| 198 | 199 | // It is normally more convenient to let [glib-mkenums][glib-mkenums] | |
| 199 | 200 | // generate a my_flags_get_type() function from a usual C enumeration | |
| 200 | 201 | // definition than to write one yourself using g_flags_register_static(). | |
| 201 | - | func FlagsRegisterStatic(NameVar string, ConstStaticValuesVar *FlagsValue) []interface{} { | |
| 202 | + | func FlagsRegisterStatic(NameVar string, ConstStaticValuesVar *FlagsValue) types.GType { | |
| 202 | 203 | ||
| 203 | 204 | cret := xFlagsRegisterStatic(NameVar, ConstStaticValuesVar) | |
| 204 | 205 | return cret | |
| 205 | 206 | } | |
| 206 | 207 | ||
| 207 | - | var xFlagsToString func([]interface{}, uint) string | |
| 208 | + | var xFlagsToString func(types.GType, uint) string | |
| 208 | 209 | ||
| 209 | 210 | // Pretty-prints @value in the form of the flag names separated by ` | ` and | |
| 210 | 211 | // sorted. Any extra bits will be shown at the end as a hexadecimal number. | |
| 211 | 212 | // | |
| 212 | 213 | // This is intended to be used for debugging purposes. The format of the output | |
| 213 | 214 | // may change in the future. | |
| 214 | - | func FlagsToString(FlagsTypeVar []interface{}, ValueVar uint) string { | |
| 215 | + | func FlagsToString(FlagsTypeVar types.GType, ValueVar uint) string { | |
| 215 | 216 | ||
| 216 | 217 | cret := xFlagsToString(FlagsTypeVar, ValueVar) | |
| 217 | 218 | return cret | |
M v4/gobject/gobject-2.0.go +9 -8
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // An interface that handles the lifecycle of dynamically loaded types. | |
| @@ -60,8 +61,8 @@ import ( | |||
| 60 | 61 | type TypePlugin interface { | |
| 61 | 62 | GoPointer() uintptr | |
| 62 | 63 | SetGoPointer(uintptr) | |
| 63 | - | CompleteInterfaceInfo(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InfoVar *InterfaceInfo) | |
| 64 | - | CompleteTypeInfo(GTypeVar []interface{}, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) | |
| 64 | + | CompleteInterfaceInfo(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) | |
| 65 | + | CompleteTypeInfo(GTypeVar types.GType, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) | |
| 65 | 66 | Unuse() | |
| 66 | 67 | Use() | |
| 67 | 68 | } | |
| @@ -80,7 +81,7 @@ func (x *TypePluginBase) SetGoPointer(ptr uintptr) { | |||
| 80 | 81 | // Calls the @complete_interface_info function from the | |
| 81 | 82 | // #GTypePluginClass of @plugin. There should be no need to use this | |
| 82 | 83 | // function outside of the GObject type system itself. | |
| 83 | - | func (x *TypePluginBase) CompleteInterfaceInfo(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InfoVar *InterfaceInfo) { | |
| 84 | + | func (x *TypePluginBase) CompleteInterfaceInfo(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | |
| 84 | 85 | ||
| 85 | 86 | XGTypePluginCompleteInterfaceInfo(x.GoPointer(), InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 86 | 87 | ||
| @@ -89,7 +90,7 @@ func (x *TypePluginBase) CompleteInterfaceInfo(InstanceTypeVar []interface{}, In | |||
| 89 | 90 | // Calls the @complete_type_info function from the #GTypePluginClass of @plugin. | |
| 90 | 91 | // There should be no need to use this function outside of the GObject | |
| 91 | 92 | // type system itself. | |
| 92 | - | func (x *TypePluginBase) CompleteTypeInfo(GTypeVar []interface{}, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) { | |
| 93 | + | func (x *TypePluginBase) CompleteTypeInfo(GTypeVar types.GType, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) { | |
| 93 | 94 | ||
| 94 | 95 | XGTypePluginCompleteTypeInfo(x.GoPointer(), GTypeVar, InfoVar, ValueTableVar) | |
| 95 | 96 | ||
| @@ -113,8 +114,8 @@ func (x *TypePluginBase) Use() { | |||
| 113 | 114 | ||
| 114 | 115 | } | |
| 115 | 116 | ||
| 116 | - | var XGTypePluginCompleteInterfaceInfo func(uintptr, []interface{}, []interface{}, *InterfaceInfo) | |
| 117 | - | var XGTypePluginCompleteTypeInfo func(uintptr, []interface{}, *TypeInfo, *TypeValueTable) | |
| 117 | + | var XGTypePluginCompleteInterfaceInfo func(uintptr, types.GType, types.GType, *InterfaceInfo) | |
| 118 | + | var XGTypePluginCompleteTypeInfo func(uintptr, types.GType, *TypeInfo, *TypeValueTable) | |
| 118 | 119 | var XGTypePluginUnuse func(uintptr) | |
| 119 | 120 | var XGTypePluginUse func(uintptr) | |
| 120 | 121 | ||
| @@ -505,10 +506,10 @@ func SignalGroupNewFromInternalPtr(ptr uintptr) *SignalGroup { | |||
| 505 | 506 | return cls | |
| 506 | 507 | } | |
| 507 | 508 | ||
| 508 | - | var xNewSignalGroup func([]interface{}) uintptr | |
| 509 | + | var xNewSignalGroup func(types.GType) uintptr | |
| 509 | 510 | ||
| 510 | 511 | // Creates a new #GSignalGroup for target instances of @target_type. | |
| 511 | - | func NewSignalGroup(TargetTypeVar []interface{}) *SignalGroup { | |
| 512 | + | func NewSignalGroup(TargetTypeVar types.GType) *SignalGroup { | |
| 512 | 513 | var cls *SignalGroup | |
| 513 | 514 | ||
| 514 | 515 | cret := xNewSignalGroup(TargetTypeVar) | |
M v4/gobject/gobject.go +15 -14
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The type of the @finalize function of #GObjectClass. | |
| @@ -45,7 +46,7 @@ type InitiallyUnownedClass struct { | |||
| 45 | 46 | ||
| 46 | 47 | Flags uint | |
| 47 | 48 | ||
| 48 | - | Pdummy uintptr | |
| 49 | + | Pdummy [6]uintptr | |
| 49 | 50 | } | |
| 50 | 51 | ||
| 51 | 52 | func (x *InitiallyUnownedClass) GoPointer() uintptr { | |
| @@ -88,7 +89,7 @@ type ObjectClass struct { | |||
| 88 | 89 | ||
| 89 | 90 | Flags uint | |
| 90 | 91 | ||
| 91 | - | Pdummy uintptr | |
| 92 | + | Pdummy [6]uintptr | |
| 92 | 93 | } | |
| 93 | 94 | ||
| 94 | 95 | func (x *ObjectClass) GoPointer() uintptr { | |
| @@ -451,7 +452,7 @@ func ObjectNewFromInternalPtr(ptr uintptr) *Object { | |||
| 451 | 452 | return cls | |
| 452 | 453 | } | |
| 453 | 454 | ||
| 454 | - | var xNewObject func([]interface{}, string, ...interface{}) uintptr | |
| 455 | + | var xNewObject func(types.GType, string, ...interface{}) uintptr | |
| 455 | 456 | ||
| 456 | 457 | // Creates a new instance of a #GObject subtype and sets its properties. | |
| 457 | 458 | // | |
| @@ -479,7 +480,7 @@ var xNewObject func([]interface{}, string, ...interface{}) uintptr | |||
| 479 | 480 | // #gdouble). If you need larger alignment for an element in a #GObject, you | |
| 480 | 481 | // should allocate it on the heap (aligned), or arrange for your #GObject to be | |
| 481 | 482 | // appropriately padded. | |
| 482 | - | func NewObject(ObjectTypeVar []interface{}, FirstPropertyNameVar string, varArgs ...interface{}) *Object { | |
| 483 | + | func NewObject(ObjectTypeVar types.GType, FirstPropertyNameVar string, varArgs ...interface{}) *Object { | |
| 483 | 484 | var cls *Object | |
| 484 | 485 | ||
| 485 | 486 | cret := xNewObject(ObjectTypeVar, FirstPropertyNameVar, varArgs...) | |
| @@ -492,13 +493,13 @@ func NewObject(ObjectTypeVar []interface{}, FirstPropertyNameVar string, varArgs | |||
| 492 | 493 | return cls | |
| 493 | 494 | } | |
| 494 | 495 | ||
| 495 | - | var xNewObjectValist func([]interface{}, string, []interface{}) uintptr | |
| 496 | + | var xNewObjectValist func(types.GType, string, []interface{}) uintptr | |
| 496 | 497 | ||
| 497 | 498 | // Creates a new instance of a #GObject subtype and sets its properties. | |
| 498 | 499 | // | |
| 499 | 500 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 500 | 501 | // which are not explicitly specified are set to their default values. | |
| 501 | - | func NewObjectValist(ObjectTypeVar []interface{}, FirstPropertyNameVar string, VarArgsVar []interface{}) *Object { | |
| 502 | + | func NewObjectValist(ObjectTypeVar types.GType, FirstPropertyNameVar string, VarArgsVar []interface{}) *Object { | |
| 502 | 503 | var cls *Object | |
| 503 | 504 | ||
| 504 | 505 | cret := xNewObjectValist(ObjectTypeVar, FirstPropertyNameVar, VarArgsVar) | |
| @@ -511,7 +512,7 @@ func NewObjectValist(ObjectTypeVar []interface{}, FirstPropertyNameVar string, V | |||
| 511 | 512 | return cls | |
| 512 | 513 | } | |
| 513 | 514 | ||
| 514 | - | var xNewObjectWithProperties func([]interface{}, uint, []string, uintptr) uintptr | |
| 515 | + | var xNewObjectWithProperties func(types.GType, uint, []string, []Value) uintptr | |
| 515 | 516 | ||
| 516 | 517 | // Creates a new instance of a #GObject subtype and sets its properties using | |
| 517 | 518 | // the provided arrays. Both arrays must have exactly @n_properties elements, | |
| @@ -519,7 +520,7 @@ var xNewObjectWithProperties func([]interface{}, uint, []string, uintptr) uintpt | |||
| 519 | 520 | // | |
| 520 | 521 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 521 | 522 | // which are not explicitly specified are set to their default values. | |
| 522 | - | func NewObjectWithProperties(ObjectTypeVar []interface{}, NPropertiesVar uint, NamesVar []string, ValuesVar uintptr) *Object { | |
| 523 | + | func NewObjectWithProperties(ObjectTypeVar types.GType, NPropertiesVar uint, NamesVar []string, ValuesVar []Value) *Object { | |
| 523 | 524 | var cls *Object | |
| 524 | 525 | ||
| 525 | 526 | cret := xNewObjectWithProperties(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | |
| @@ -532,13 +533,13 @@ func NewObjectWithProperties(ObjectTypeVar []interface{}, NPropertiesVar uint, N | |||
| 532 | 533 | return cls | |
| 533 | 534 | } | |
| 534 | 535 | ||
| 535 | - | var xNewObjectv func([]interface{}, uint, uintptr) uintptr | |
| 536 | + | var xNewObjectv func(types.GType, uint, []Parameter) uintptr | |
| 536 | 537 | ||
| 537 | 538 | // Creates a new instance of a #GObject subtype and sets its properties. | |
| 538 | 539 | // | |
| 539 | 540 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 540 | 541 | // which are not explicitly specified are set to their default values. | |
| 541 | - | func NewObjectv(ObjectTypeVar []interface{}, NParametersVar uint, ParametersVar uintptr) *Object { | |
| 542 | + | func NewObjectv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar []Parameter) *Object { | |
| 542 | 543 | var cls *Object | |
| 543 | 544 | ||
| 544 | 545 | cret := xNewObjectv(ObjectTypeVar, NParametersVar, ParametersVar) | |
| @@ -939,13 +940,13 @@ func (x *Object) GetValist(FirstPropertyNameVar string, VarArgsVar []interface{} | |||
| 939 | 940 | ||
| 940 | 941 | } | |
| 941 | 942 | ||
| 942 | - | var xObjectGetv func(uintptr, uint, uintptr, uintptr) | |
| 943 | + | var xObjectGetv func(uintptr, uint, []string, []Value) | |
| 943 | 944 | ||
| 944 | 945 | // Gets @n_properties properties for an @object. | |
| 945 | 946 | // Obtained properties will be set to @values. All properties must be valid. | |
| 946 | 947 | // Warnings will be emitted and undefined behaviour may result if invalid | |
| 947 | 948 | // properties are passed in. | |
| 948 | - | func (x *Object) Getv(NPropertiesVar uint, NamesVar uintptr, ValuesVar uintptr) { | |
| 949 | + | func (x *Object) Getv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | |
| 949 | 950 | ||
| 950 | 951 | xObjectGetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | |
| 951 | 952 | ||
| @@ -1251,13 +1252,13 @@ func (x *Object) SetValist(FirstPropertyNameVar string, VarArgsVar []interface{} | |||
| 1251 | 1252 | ||
| 1252 | 1253 | } | |
| 1253 | 1254 | ||
| 1254 | - | var xObjectSetv func(uintptr, uint, uintptr, uintptr) | |
| 1255 | + | var xObjectSetv func(uintptr, uint, []string, []Value) | |
| 1255 | 1256 | ||
| 1256 | 1257 | // Sets @n_properties properties for an @object. | |
| 1257 | 1258 | // Properties to be set will be taken from @values. All properties must be | |
| 1258 | 1259 | // valid. Warnings will be emitted and undefined behaviour may result if invalid | |
| 1259 | 1260 | // properties are passed in. | |
| 1260 | - | func (x *Object) Setv(NPropertiesVar uint, NamesVar uintptr, ValuesVar uintptr) { | |
| 1261 | + | func (x *Object) Setv(NPropertiesVar uint, NamesVar []string, ValuesVar []Value) { | |
| 1261 | 1262 | ||
| 1262 | 1263 | xObjectSetv(x.GoPointer(), NPropertiesVar, NamesVar, ValuesVar) | |
| 1263 | 1264 | ||
M v4/gobject/gparam.go +16 -15
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The class structure for the GParamSpec type. | |
| @@ -15,9 +16,9 @@ import ( | |||
| 15 | 16 | type ParamSpecClass struct { | |
| 16 | 17 | GTypeClass uintptr | |
| 17 | 18 | ||
| 18 | - | ValueType []interface{} | |
| 19 | + | ValueType types.GType | |
| 19 | 20 | ||
| 20 | - | Dummy uintptr | |
| 21 | + | Dummy [4]uintptr | |
| 21 | 22 | } | |
| 22 | 23 | ||
| 23 | 24 | func (x *ParamSpecClass) GoPointer() uintptr { | |
| @@ -36,39 +37,39 @@ func (x *ParamSpecPool) GoPointer() uintptr { | |||
| 36 | 37 | return uintptr(unsafe.Pointer(x)) | |
| 37 | 38 | } | |
| 38 | 39 | ||
| 39 | - | var xParamSpecPoolInsert func(uintptr, uintptr, []interface{}) | |
| 40 | + | var xParamSpecPoolInsert func(uintptr, uintptr, types.GType) | |
| 40 | 41 | ||
| 41 | 42 | // Inserts a #GParamSpec in the pool. | |
| 42 | - | func (x *ParamSpecPool) Insert(PspecVar *ParamSpec, OwnerTypeVar []interface{}) { | |
| 43 | + | func (x *ParamSpecPool) Insert(PspecVar *ParamSpec, OwnerTypeVar types.GType) { | |
| 43 | 44 | ||
| 44 | 45 | xParamSpecPoolInsert(x.GoPointer(), PspecVar.GoPointer(), OwnerTypeVar) | |
| 45 | 46 | ||
| 46 | 47 | } | |
| 47 | 48 | ||
| 48 | - | var xParamSpecPoolList func(uintptr, []interface{}, uint) uintptr | |
| 49 | + | var xParamSpecPoolList func(uintptr, types.GType, uint) uintptr | |
| 49 | 50 | ||
| 50 | 51 | // Gets an array of all #GParamSpecs owned by @owner_type in | |
| 51 | 52 | // the pool. | |
| 52 | - | func (x *ParamSpecPool) List(OwnerTypeVar []interface{}, NPspecsPVar uint) uintptr { | |
| 53 | + | func (x *ParamSpecPool) List(OwnerTypeVar types.GType, NPspecsPVar uint) uintptr { | |
| 53 | 54 | ||
| 54 | 55 | cret := xParamSpecPoolList(x.GoPointer(), OwnerTypeVar, NPspecsPVar) | |
| 55 | 56 | return cret | |
| 56 | 57 | } | |
| 57 | 58 | ||
| 58 | - | var xParamSpecPoolListOwned func(uintptr, []interface{}) *glib.List | |
| 59 | + | var xParamSpecPoolListOwned func(uintptr, types.GType) *glib.List | |
| 59 | 60 | ||
| 60 | 61 | // Gets an #GList of all #GParamSpecs owned by @owner_type in | |
| 61 | 62 | // the pool. | |
| 62 | - | func (x *ParamSpecPool) ListOwned(OwnerTypeVar []interface{}) *glib.List { | |
| 63 | + | func (x *ParamSpecPool) ListOwned(OwnerTypeVar types.GType) *glib.List { | |
| 63 | 64 | ||
| 64 | 65 | cret := xParamSpecPoolListOwned(x.GoPointer(), OwnerTypeVar) | |
| 65 | 66 | return cret | |
| 66 | 67 | } | |
| 67 | 68 | ||
| 68 | - | var xParamSpecPoolLookup func(uintptr, string, []interface{}, bool) uintptr | |
| 69 | + | var xParamSpecPoolLookup func(uintptr, string, types.GType, bool) uintptr | |
| 69 | 70 | ||
| 70 | 71 | // Looks up a #GParamSpec in the pool. | |
| 71 | - | func (x *ParamSpecPool) Lookup(ParamNameVar string, OwnerTypeVar []interface{}, WalkAncestorsVar bool) *ParamSpec { | |
| 72 | + | func (x *ParamSpecPool) Lookup(ParamNameVar string, OwnerTypeVar types.GType, WalkAncestorsVar bool) *ParamSpec { | |
| 72 | 73 | var cls *ParamSpec | |
| 73 | 74 | ||
| 74 | 75 | cret := xParamSpecPoolLookup(x.GoPointer(), ParamNameVar, OwnerTypeVar, WalkAncestorsVar) | |
| @@ -104,7 +105,7 @@ type ParamSpecTypeInfo struct { | |||
| 104 | 105 | ||
| 105 | 106 | NPreallocs uint16 | |
| 106 | 107 | ||
| 107 | - | ValueType []interface{} | |
| 108 | + | ValueType types.GType | |
| 108 | 109 | } | |
| 109 | 110 | ||
| 110 | 111 | func (x *ParamSpecTypeInfo) GoPointer() uintptr { | |
| @@ -185,7 +186,7 @@ const ( | |||
| 185 | 186 | GParamDeprecatedValue ParamFlags = 2147483648 | |
| 186 | 187 | ) | |
| 187 | 188 | ||
| 188 | - | var xParamTypeRegisterStatic func(string, *ParamSpecTypeInfo) []interface{} | |
| 189 | + | var xParamTypeRegisterStatic func(string, *ParamSpecTypeInfo) types.GType | |
| 189 | 190 | ||
| 190 | 191 | // Registers @name as the name of a new static type derived | |
| 191 | 192 | // from %G_TYPE_PARAM. | |
| @@ -193,7 +194,7 @@ var xParamTypeRegisterStatic func(string, *ParamSpecTypeInfo) []interface{} | |||
| 193 | 194 | // The type system uses the information contained in the #GParamSpecTypeInfo | |
| 194 | 195 | // structure pointed to by @info to manage the #GParamSpec type and its | |
| 195 | 196 | // instances. | |
| 196 | - | func ParamTypeRegisterStatic(NameVar string, PspecInfoVar *ParamSpecTypeInfo) []interface{} { | |
| 197 | + | func ParamTypeRegisterStatic(NameVar string, PspecInfoVar *ParamSpecTypeInfo) types.GType { | |
| 197 | 198 | ||
| 198 | 199 | cret := xParamTypeRegisterStatic(NameVar, PspecInfoVar) | |
| 199 | 200 | return cret | |
| @@ -465,7 +466,7 @@ func (c *ParamSpec) SetGoPointer(ptr uintptr) { | |||
| 465 | 466 | c.Ptr = ptr | |
| 466 | 467 | } | |
| 467 | 468 | ||
| 468 | - | var xParamSpecInternal func([]interface{}, string, string, string, ParamFlags) uintptr | |
| 469 | + | var xParamSpecInternal func(types.GType, string, string, string, ParamFlags) uintptr | |
| 469 | 470 | ||
| 470 | 471 | // Creates a new #GParamSpec instance. | |
| 471 | 472 | // | |
| @@ -478,7 +479,7 @@ var xParamSpecInternal func([]interface{}, string, string, string, ParamFlags) u | |||
| 478 | 479 | // for use as a label for the property in a property editor, and the | |
| 479 | 480 | // @blurb, which should be a somewhat longer description, suitable for | |
| 480 | 481 | // e.g. a tooltip. The @nick and @blurb should ideally be localized. | |
| 481 | - | func ParamSpecInternal(ParamTypeVar []interface{}, NameVar string, NickVar string, BlurbVar string, FlagsVar ParamFlags) *ParamSpec { | |
| 482 | + | func ParamSpecInternal(ParamTypeVar types.GType, NameVar string, NickVar string, BlurbVar string, FlagsVar ParamFlags) *ParamSpec { | |
| 482 | 483 | var cls *ParamSpec | |
| 483 | 484 | ||
| 484 | 485 | cret := xParamSpecInternal(ParamTypeVar, NameVar, NickVar, BlurbVar, FlagsVar) | |
M v4/gobject/gparamspecs.go +13 -12
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | var xNewParamSpecBoolean func(string, string, string, bool, ParamFlags) uintptr | |
| @@ -29,13 +30,13 @@ func NewParamSpecBoolean(NameVar string, NickVar string, BlurbVar string, Defaul | |||
| 29 | 30 | return cls | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 32 | - | var xNewParamSpecBoxed func(string, string, string, []interface{}, ParamFlags) uintptr | |
| 33 | + | var xNewParamSpecBoxed func(string, string, string, types.GType, ParamFlags) uintptr | |
| 33 | 34 | ||
| 34 | 35 | // Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED | |
| 35 | 36 | // derived property. | |
| 36 | 37 | // | |
| 37 | 38 | // See g_param_spec_internal() for details on property names. | |
| 38 | - | func NewParamSpecBoxed(NameVar string, NickVar string, BlurbVar string, BoxedTypeVar []interface{}, FlagsVar ParamFlags) *ParamSpec { | |
| 39 | + | func NewParamSpecBoxed(NameVar string, NickVar string, BlurbVar string, BoxedTypeVar types.GType, FlagsVar ParamFlags) *ParamSpec { | |
| 39 | 40 | var cls *ParamSpec | |
| 40 | 41 | ||
| 41 | 42 | cret := xNewParamSpecBoxed(NameVar, NickVar, BlurbVar, BoxedTypeVar, FlagsVar) | |
| @@ -83,13 +84,13 @@ func NewParamSpecDouble(NameVar string, NickVar string, BlurbVar string, Minimum | |||
| 83 | 84 | return cls | |
| 84 | 85 | } | |
| 85 | 86 | ||
| 86 | - | var xNewParamSpecEnum func(string, string, string, []interface{}, int, ParamFlags) uintptr | |
| 87 | + | var xNewParamSpecEnum func(string, string, string, types.GType, int, ParamFlags) uintptr | |
| 87 | 88 | ||
| 88 | 89 | // Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM | |
| 89 | 90 | // property. | |
| 90 | 91 | // | |
| 91 | 92 | // See g_param_spec_internal() for details on property names. | |
| 92 | - | func NewParamSpecEnum(NameVar string, NickVar string, BlurbVar string, EnumTypeVar []interface{}, DefaultValueVar int, FlagsVar ParamFlags) *ParamSpec { | |
| 93 | + | func NewParamSpecEnum(NameVar string, NickVar string, BlurbVar string, EnumTypeVar types.GType, DefaultValueVar int, FlagsVar ParamFlags) *ParamSpec { | |
| 93 | 94 | var cls *ParamSpec | |
| 94 | 95 | ||
| 95 | 96 | cret := xNewParamSpecEnum(NameVar, NickVar, BlurbVar, EnumTypeVar, DefaultValueVar, FlagsVar) | |
| @@ -102,13 +103,13 @@ func NewParamSpecEnum(NameVar string, NickVar string, BlurbVar string, EnumTypeV | |||
| 102 | 103 | return cls | |
| 103 | 104 | } | |
| 104 | 105 | ||
| 105 | - | var xNewParamSpecFlags func(string, string, string, []interface{}, uint, ParamFlags) uintptr | |
| 106 | + | var xNewParamSpecFlags func(string, string, string, types.GType, uint, ParamFlags) uintptr | |
| 106 | 107 | ||
| 107 | 108 | // Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS | |
| 108 | 109 | // property. | |
| 109 | 110 | // | |
| 110 | 111 | // See g_param_spec_internal() for details on property names. | |
| 111 | - | func NewParamSpecFlags(NameVar string, NickVar string, BlurbVar string, FlagsTypeVar []interface{}, DefaultValueVar uint, FlagsVar ParamFlags) *ParamSpec { | |
| 112 | + | func NewParamSpecFlags(NameVar string, NickVar string, BlurbVar string, FlagsTypeVar types.GType, DefaultValueVar uint, FlagsVar ParamFlags) *ParamSpec { | |
| 112 | 113 | var cls *ParamSpec | |
| 113 | 114 | ||
| 114 | 115 | cret := xNewParamSpecFlags(NameVar, NickVar, BlurbVar, FlagsTypeVar, DefaultValueVar, FlagsVar) | |
| @@ -139,13 +140,13 @@ func NewParamSpecFloat(NameVar string, NickVar string, BlurbVar string, MinimumV | |||
| 139 | 140 | return cls | |
| 140 | 141 | } | |
| 141 | 142 | ||
| 142 | - | var xParamSpecGtype func(string, string, string, []interface{}, ParamFlags) uintptr | |
| 143 | + | var xParamSpecGtype func(string, string, string, types.GType, ParamFlags) uintptr | |
| 143 | 144 | ||
| 144 | 145 | // Creates a new #GParamSpecGType instance specifying a | |
| 145 | 146 | // %G_TYPE_GTYPE property. | |
| 146 | 147 | // | |
| 147 | 148 | // See g_param_spec_internal() for details on property names. | |
| 148 | - | func ParamSpecGtype(NameVar string, NickVar string, BlurbVar string, IsATypeVar []interface{}, FlagsVar ParamFlags) *ParamSpec { | |
| 149 | + | func ParamSpecGtype(NameVar string, NickVar string, BlurbVar string, IsATypeVar types.GType, FlagsVar ParamFlags) *ParamSpec { | |
| 149 | 150 | var cls *ParamSpec | |
| 150 | 151 | ||
| 151 | 152 | cret := xParamSpecGtype(NameVar, NickVar, BlurbVar, IsATypeVar, FlagsVar) | |
| @@ -212,13 +213,13 @@ func NewParamSpecLong(NameVar string, NickVar string, BlurbVar string, MinimumVa | |||
| 212 | 213 | return cls | |
| 213 | 214 | } | |
| 214 | 215 | ||
| 215 | - | var xNewParamSpecObject func(string, string, string, []interface{}, ParamFlags) uintptr | |
| 216 | + | var xNewParamSpecObject func(string, string, string, types.GType, ParamFlags) uintptr | |
| 216 | 217 | ||
| 217 | 218 | // Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT | |
| 218 | 219 | // derived property. | |
| 219 | 220 | // | |
| 220 | 221 | // See g_param_spec_internal() for details on property names. | |
| 221 | - | func NewParamSpecObject(NameVar string, NickVar string, BlurbVar string, ObjectTypeVar []interface{}, FlagsVar ParamFlags) *ParamSpec { | |
| 222 | + | func NewParamSpecObject(NameVar string, NickVar string, BlurbVar string, ObjectTypeVar types.GType, FlagsVar ParamFlags) *ParamSpec { | |
| 222 | 223 | var cls *ParamSpec | |
| 223 | 224 | ||
| 224 | 225 | cret := xNewParamSpecObject(NameVar, NickVar, BlurbVar, ObjectTypeVar, FlagsVar) | |
| @@ -249,13 +250,13 @@ func NewParamSpecOverride(NameVar string, OverriddenVar *ParamSpec) *ParamSpec { | |||
| 249 | 250 | return cls | |
| 250 | 251 | } | |
| 251 | 252 | ||
| 252 | - | var xNewParamSpecParam func(string, string, string, []interface{}, ParamFlags) uintptr | |
| 253 | + | var xNewParamSpecParam func(string, string, string, types.GType, ParamFlags) uintptr | |
| 253 | 254 | ||
| 254 | 255 | // Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM | |
| 255 | 256 | // property. | |
| 256 | 257 | // | |
| 257 | 258 | // See g_param_spec_internal() for details on property names. | |
| 258 | - | func NewParamSpecParam(NameVar string, NickVar string, BlurbVar string, ParamTypeVar []interface{}, FlagsVar ParamFlags) *ParamSpec { | |
| 259 | + | func NewParamSpecParam(NameVar string, NickVar string, BlurbVar string, ParamTypeVar types.GType, FlagsVar ParamFlags) *ParamSpec { | |
| 259 | 260 | var cls *ParamSpec | |
| 260 | 261 | ||
| 261 | 262 | cret := xNewParamSpecParam(NameVar, NickVar, BlurbVar, ParamTypeVar, FlagsVar) | |
M v4/gobject/gsignal.go +29 -28
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The signal accumulator is a special callback function that can be used | |
| @@ -25,7 +26,7 @@ type SignalAccumulator func(*SignalInvocationHint, *Value, *Value, uintptr) bool | |||
| 25 | 26 | // trap all emissions of that signal, from any object. | |
| 26 | 27 | // | |
| 27 | 28 | // You may not attach these to signals created with the %G_SIGNAL_NO_HOOKS flag. | |
| 28 | - | type SignalEmissionHook func(*SignalInvocationHint, uint, uintptr, uintptr) bool | |
| 29 | + | type SignalEmissionHook func(*SignalInvocationHint, uint, []Value, uintptr) bool | |
| 29 | 30 | ||
| 30 | 31 | // The #GSignalInvocationHint structure is used to pass on additional information | |
| 31 | 32 | // to callbacks during a signal emission. | |
| @@ -49,15 +50,15 @@ type SignalQuery struct { | |||
| 49 | 50 | ||
| 50 | 51 | SignalName uintptr | |
| 51 | 52 | ||
| 52 | - | Itype []interface{} | |
| 53 | + | Itype types.GType | |
| 53 | 54 | ||
| 54 | 55 | SignalFlags SignalFlags | |
| 55 | 56 | ||
| 56 | - | ReturnType []interface{} | |
| 57 | + | ReturnType types.GType | |
| 57 | 58 | ||
| 58 | 59 | NParams uint | |
| 59 | 60 | ||
| 60 | - | ParamTypes uintptr | |
| 61 | + | ParamTypes []types.GType | |
| 61 | 62 | } | |
| 62 | 63 | ||
| 63 | 64 | func (x *SignalQuery) GoPointer() uintptr { | |
| @@ -220,13 +221,13 @@ func SignalAddEmissionHook(SignalIdVar uint, DetailVar glib.Quark, HookFuncVar * | |||
| 220 | 221 | return cret | |
| 221 | 222 | } | |
| 222 | 223 | ||
| 223 | - | var xSignalChainFromOverridden func(uintptr, *Value) | |
| 224 | + | var xSignalChainFromOverridden func([]Value, *Value) | |
| 224 | 225 | ||
| 225 | 226 | // Calls the original class closure of a signal. This function should only | |
| 226 | 227 | // be called from an overridden class closure; see | |
| 227 | 228 | // g_signal_override_class_closure() and | |
| 228 | 229 | // g_signal_override_class_handler(). | |
| 229 | - | func SignalChainFromOverridden(InstanceAndParamsVar uintptr, ReturnValueVar *Value) { | |
| 230 | + | func SignalChainFromOverridden(InstanceAndParamsVar []Value, ReturnValueVar *Value) { | |
| 230 | 231 | ||
| 231 | 232 | xSignalChainFromOverridden(InstanceAndParamsVar, ReturnValueVar) | |
| 232 | 233 | ||
| @@ -314,14 +315,14 @@ func SignalEmitValist(InstanceVar *TypeInstance, SignalIdVar uint, DetailVar gli | |||
| 314 | 315 | ||
| 315 | 316 | } | |
| 316 | 317 | ||
| 317 | - | var xSignalEmitv func(uintptr, uint, glib.Quark, *Value) | |
| 318 | + | var xSignalEmitv func([]Value, uint, glib.Quark, *Value) | |
| 318 | 319 | ||
| 319 | 320 | // Emits a signal. Signal emission is done synchronously. | |
| 320 | 321 | // The method will only return control after all handlers are called or signal emission was stopped. | |
| 321 | 322 | // | |
| 322 | 323 | // Note that g_signal_emitv() doesn't change @return_value if no handlers are | |
| 323 | 324 | // connected, in contrast to g_signal_emit() and g_signal_emit_valist(). | |
| 324 | - | func SignalEmitv(InstanceAndParamsVar uintptr, SignalIdVar uint, DetailVar glib.Quark, ReturnValueVar *Value) { | |
| 325 | + | func SignalEmitv(InstanceAndParamsVar []Value, SignalIdVar uint, DetailVar glib.Quark, ReturnValueVar *Value) { | |
| 325 | 326 | ||
| 326 | 327 | xSignalEmitv(InstanceAndParamsVar, SignalIdVar, DetailVar, ReturnValueVar) | |
| 327 | 328 | ||
| @@ -505,18 +506,18 @@ func SignalIsValidName(NameVar string) bool { | |||
| 505 | 506 | return cret | |
| 506 | 507 | } | |
| 507 | 508 | ||
| 508 | - | var xSignalListIds func([]interface{}, uint) uintptr | |
| 509 | + | var xSignalListIds func(types.GType, uint) []uint | |
| 509 | 510 | ||
| 510 | 511 | // Lists the signals by id that a certain instance or interface type | |
| 511 | 512 | // created. Further information about the signals can be acquired through | |
| 512 | 513 | // g_signal_query(). | |
| 513 | - | func SignalListIds(ItypeVar []interface{}, NIdsVar uint) uintptr { | |
| 514 | + | func SignalListIds(ItypeVar types.GType, NIdsVar uint) []uint { | |
| 514 | 515 | ||
| 515 | 516 | cret := xSignalListIds(ItypeVar, NIdsVar) | |
| 516 | 517 | return cret | |
| 517 | 518 | } | |
| 518 | 519 | ||
| 519 | - | var xSignalLookup func(string, []interface{}) uint | |
| 520 | + | var xSignalLookup func(string, types.GType) uint | |
| 520 | 521 | ||
| 521 | 522 | // Given the name of the signal and the type of object it connects to, gets | |
| 522 | 523 | // the signal's identifying integer. Emitting the signal by number is | |
| @@ -529,7 +530,7 @@ var xSignalLookup func(string, []interface{}) uint | |||
| 529 | 530 | // always installed during class initialization. | |
| 530 | 531 | // | |
| 531 | 532 | // See g_signal_new() for details on allowed signal names. | |
| 532 | - | func SignalLookup(NameVar string, ItypeVar []interface{}) uint { | |
| 533 | + | func SignalLookup(NameVar string, ItypeVar types.GType) uint { | |
| 533 | 534 | ||
| 534 | 535 | cret := xSignalLookup(NameVar, ItypeVar) | |
| 535 | 536 | return cret | |
| @@ -546,7 +547,7 @@ func SignalName(SignalIdVar uint) string { | |||
| 546 | 547 | return cret | |
| 547 | 548 | } | |
| 548 | 549 | ||
| 549 | - | var xSignalNew func(string, []interface{}, SignalFlags, uint, uintptr, uintptr, SignalCMarshaller, []interface{}, uint, ...interface{}) uint | |
| 550 | + | var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | |
| 550 | 551 | ||
| 551 | 552 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 552 | 553 | // | |
| @@ -572,13 +573,13 @@ var xSignalNew func(string, []interface{}, SignalFlags, uint, uintptr, uintptr, | |||
| 572 | 573 | // If @c_marshaller is non-%NULL, you need to also specify a va_marshaller | |
| 573 | 574 | // using g_signal_set_va_marshaller() or the generic va_marshaller will | |
| 574 | 575 | // be used. | |
| 575 | - | func SignalNew(SignalNameVar string, ItypeVar []interface{}, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar []interface{}, NParamsVar uint, varArgs ...interface{}) uint { | |
| 576 | + | func SignalNew(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 576 | 577 | ||
| 577 | 578 | cret := xSignalNew(SignalNameVar, ItypeVar, SignalFlagsVar, ClassOffsetVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | |
| 578 | 579 | return cret | |
| 579 | 580 | } | |
| 580 | 581 | ||
| 581 | - | var xSignalNewClassHandler func(string, []interface{}, SignalFlags, uintptr, uintptr, uintptr, SignalCMarshaller, []interface{}, uint, ...interface{}) uint | |
| 582 | + | var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | |
| 582 | 583 | ||
| 583 | 584 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 584 | 585 | // | |
| @@ -596,13 +597,13 @@ var xSignalNewClassHandler func(string, []interface{}, SignalFlags, uintptr, uin | |||
| 596 | 597 | // | |
| 597 | 598 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 598 | 599 | // the marshaller for this signal. | |
| 599 | - | func SignalNewClassHandler(SignalNameVar string, ItypeVar []interface{}, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar []interface{}, NParamsVar uint, varArgs ...interface{}) uint { | |
| 600 | + | func SignalNewClassHandler(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 600 | 601 | ||
| 601 | 602 | cret := xSignalNewClassHandler(SignalNameVar, ItypeVar, SignalFlagsVar, glib.NewCallback(ClassHandlerVar), glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | |
| 602 | 603 | return cret | |
| 603 | 604 | } | |
| 604 | 605 | ||
| 605 | - | var xSignalNewValist func(string, []interface{}, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, []interface{}, uint, []interface{}) uint | |
| 606 | + | var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []interface{}) uint | |
| 606 | 607 | ||
| 607 | 608 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 608 | 609 | // | |
| @@ -610,13 +611,13 @@ var xSignalNewValist func(string, []interface{}, SignalFlags, *Closure, uintptr, | |||
| 610 | 611 | // | |
| 611 | 612 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 612 | 613 | // the marshaller for this signal. | |
| 613 | - | func SignalNewValist(SignalNameVar string, ItypeVar []interface{}, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar []interface{}, NParamsVar uint, ArgsVar []interface{}) uint { | |
| 614 | + | func SignalNewValist(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ArgsVar []interface{}) uint { | |
| 614 | 615 | ||
| 615 | 616 | cret := xSignalNewValist(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ArgsVar) | |
| 616 | 617 | return cret | |
| 617 | 618 | } | |
| 618 | 619 | ||
| 619 | - | var xSignalNewv func(string, []interface{}, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, []interface{}, uint, uintptr) uint | |
| 620 | + | var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []types.GType) uint | |
| 620 | 621 | ||
| 621 | 622 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 622 | 623 | // | |
| @@ -624,13 +625,13 @@ var xSignalNewv func(string, []interface{}, SignalFlags, *Closure, uintptr, uint | |||
| 624 | 625 | // | |
| 625 | 626 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 626 | 627 | // the marshaller for this signal. | |
| 627 | - | func SignalNewv(SignalNameVar string, ItypeVar []interface{}, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar []interface{}, NParamsVar uint, ParamTypesVar uintptr) uint { | |
| 628 | + | func SignalNewv(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ParamTypesVar []types.GType) uint { | |
| 628 | 629 | ||
| 629 | 630 | cret := xSignalNewv(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ParamTypesVar) | |
| 630 | 631 | return cret | |
| 631 | 632 | } | |
| 632 | 633 | ||
| 633 | - | var xSignalOverrideClassClosure func(uint, []interface{}, *Closure) | |
| 634 | + | var xSignalOverrideClassClosure func(uint, types.GType, *Closure) | |
| 634 | 635 | ||
| 635 | 636 | // Overrides the class closure (i.e. the default handler) for the given signal | |
| 636 | 637 | // for emissions on instances of @instance_type. @instance_type must be derived | |
| @@ -639,13 +640,13 @@ var xSignalOverrideClassClosure func(uint, []interface{}, *Closure) | |||
| 639 | 640 | // See g_signal_chain_from_overridden() and | |
| 640 | 641 | // g_signal_chain_from_overridden_handler() for how to chain up to the | |
| 641 | 642 | // parent class closure from inside the overridden one. | |
| 642 | - | func SignalOverrideClassClosure(SignalIdVar uint, InstanceTypeVar []interface{}, ClassClosureVar *Closure) { | |
| 643 | + | func SignalOverrideClassClosure(SignalIdVar uint, InstanceTypeVar types.GType, ClassClosureVar *Closure) { | |
| 643 | 644 | ||
| 644 | 645 | xSignalOverrideClassClosure(SignalIdVar, InstanceTypeVar, ClassClosureVar) | |
| 645 | 646 | ||
| 646 | 647 | } | |
| 647 | 648 | ||
| 648 | - | var xSignalOverrideClassHandler func(string, []interface{}, uintptr) | |
| 649 | + | var xSignalOverrideClassHandler func(string, types.GType, uintptr) | |
| 649 | 650 | ||
| 650 | 651 | // Overrides the class closure (i.e. the default handler) for the | |
| 651 | 652 | // given signal for emissions on instances of @instance_type with | |
| @@ -655,17 +656,17 @@ var xSignalOverrideClassHandler func(string, []interface{}, uintptr) | |||
| 655 | 656 | // See g_signal_chain_from_overridden() and | |
| 656 | 657 | // g_signal_chain_from_overridden_handler() for how to chain up to the | |
| 657 | 658 | // parent class closure from inside the overridden one. | |
| 658 | - | func SignalOverrideClassHandler(SignalNameVar string, InstanceTypeVar []interface{}, ClassHandlerVar *Callback) { | |
| 659 | + | func SignalOverrideClassHandler(SignalNameVar string, InstanceTypeVar types.GType, ClassHandlerVar *Callback) { | |
| 659 | 660 | ||
| 660 | 661 | xSignalOverrideClassHandler(SignalNameVar, InstanceTypeVar, glib.NewCallback(ClassHandlerVar)) | |
| 661 | 662 | ||
| 662 | 663 | } | |
| 663 | 664 | ||
| 664 | - | var xSignalParseName func(string, []interface{}, uint, *glib.Quark, bool) bool | |
| 665 | + | var xSignalParseName func(string, types.GType, uint, *glib.Quark, bool) bool | |
| 665 | 666 | ||
| 666 | 667 | // Internal function to parse a signal name into its @signal_id | |
| 667 | 668 | // and @detail quark. | |
| 668 | - | func SignalParseName(DetailedSignalVar string, ItypeVar []interface{}, SignalIdPVar uint, DetailPVar *glib.Quark, ForceDetailQuarkVar bool) bool { | |
| 669 | + | func SignalParseName(DetailedSignalVar string, ItypeVar types.GType, SignalIdPVar uint, DetailPVar *glib.Quark, ForceDetailQuarkVar bool) bool { | |
| 669 | 670 | ||
| 670 | 671 | cret := xSignalParseName(DetailedSignalVar, ItypeVar, SignalIdPVar, DetailPVar, ForceDetailQuarkVar) | |
| 671 | 672 | return cret | |
| @@ -694,13 +695,13 @@ func SignalRemoveEmissionHook(SignalIdVar uint, HookIdVar uint32) { | |||
| 694 | 695 | ||
| 695 | 696 | } | |
| 696 | 697 | ||
| 697 | - | var xSignalSetVaMarshaller func(uint, []interface{}, SignalCVaMarshaller) | |
| 698 | + | var xSignalSetVaMarshaller func(uint, types.GType, SignalCVaMarshaller) | |
| 698 | 699 | ||
| 699 | 700 | // Change the #GSignalCVaMarshaller used for a given signal. This is a | |
| 700 | 701 | // specialised form of the marshaller that can often be used for the | |
| 701 | 702 | // common case of a single connected signal handler and avoids the | |
| 702 | 703 | // overhead of #GValue. Its use is optional. | |
| 703 | - | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar []interface{}, VaMarshallerVar SignalCVaMarshaller) { | |
| 704 | + | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar types.GType, VaMarshallerVar SignalCVaMarshaller) { | |
| 704 | 705 | ||
| 705 | 706 | xSignalSetVaMarshaller(SignalIdVar, InstanceTypeVar, VaMarshallerVar) | |
| 706 | 707 | ||
M v4/gobject/gtype.go +99 -98
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // A callback function used by the type system to finalize those portions | |
| @@ -220,7 +221,7 @@ func (x *InterfaceInfo) GoPointer() uintptr { | |||
| 220 | 221 | ||
| 221 | 222 | // An opaque structure used as the base of all classes. | |
| 222 | 223 | type TypeClass struct { | |
| 223 | - | GType []interface{} | |
| 224 | + | GType types.GType | |
| 224 | 225 | } | |
| 225 | 226 | ||
| 226 | 227 | func (x *TypeClass) GoPointer() uintptr { | |
| @@ -317,9 +318,9 @@ func (x *TypeClass) GetInstancePrivateOffset() int { | |||
| 317 | 318 | return cret | |
| 318 | 319 | } | |
| 319 | 320 | ||
| 320 | - | var xTypeClassGetPrivate func(uintptr, []interface{}) uintptr | |
| 321 | + | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | |
| 321 | 322 | ||
| 322 | - | func (x *TypeClass) GetPrivate(PrivateTypeVar []interface{}) uintptr { | |
| 323 | + | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 323 | 324 | ||
| 324 | 325 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 325 | 326 | return cret | |
| @@ -419,9 +420,9 @@ func (x *TypeInstance) GoPointer() uintptr { | |||
| 419 | 420 | return uintptr(unsafe.Pointer(x)) | |
| 420 | 421 | } | |
| 421 | 422 | ||
| 422 | - | var xTypeInstanceGetPrivate func(uintptr, []interface{}) uintptr | |
| 423 | + | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | |
| 423 | 424 | ||
| 424 | - | func (x *TypeInstance) GetPrivate(PrivateTypeVar []interface{}) uintptr { | |
| 425 | + | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 425 | 426 | ||
| 426 | 427 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 427 | 428 | return cret | |
| @@ -429,9 +430,9 @@ func (x *TypeInstance) GetPrivate(PrivateTypeVar []interface{}) uintptr { | |||
| 429 | 430 | ||
| 430 | 431 | // An opaque structure used as the base of all interface types. | |
| 431 | 432 | type TypeInterface struct { | |
| 432 | - | GType []interface{} | |
| 433 | + | GType types.GType | |
| 433 | 434 | ||
| 434 | - | GInstanceType []interface{} | |
| 435 | + | GInstanceType types.GType | |
| 435 | 436 | } | |
| 436 | 437 | ||
| 437 | 438 | func (x *TypeInterface) GoPointer() uintptr { | |
| @@ -454,7 +455,7 @@ func (x *TypeInterface) PeekParent() *TypeInterface { | |||
| 454 | 455 | // | |
| 455 | 456 | // See also: g_type_query() | |
| 456 | 457 | type TypeQuery struct { | |
| 457 | - | Type []interface{} | |
| 458 | + | Type types.GType | |
| 458 | 459 | ||
| 459 | 460 | TypeName uintptr | |
| 460 | 461 | ||
| @@ -577,7 +578,7 @@ func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFun | |||
| 577 | 578 | ||
| 578 | 579 | } | |
| 579 | 580 | ||
| 580 | - | var xTypeAddClassPrivate func([]interface{}, uint) | |
| 581 | + | var xTypeAddClassPrivate func(types.GType, uint) | |
| 581 | 582 | ||
| 582 | 583 | // Registers a private class structure for a classed type; | |
| 583 | 584 | // when the class is allocated, the private structures for | |
| @@ -589,15 +590,15 @@ var xTypeAddClassPrivate func([]interface{}, uint) | |||
| 589 | 590 | // type's get_type() function after the type is registered. | |
| 590 | 591 | // The private structure can be retrieved using the | |
| 591 | 592 | // G_TYPE_CLASS_GET_PRIVATE() macro. | |
| 592 | - | func TypeAddClassPrivate(ClassTypeVar []interface{}, PrivateSizeVar uint) { | |
| 593 | + | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | |
| 593 | 594 | ||
| 594 | 595 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | |
| 595 | 596 | ||
| 596 | 597 | } | |
| 597 | 598 | ||
| 598 | - | var xTypeAddInstancePrivate func([]interface{}, uint) int | |
| 599 | + | var xTypeAddInstancePrivate func(types.GType, uint) int | |
| 599 | 600 | ||
| 600 | - | func TypeAddInstancePrivate(ClassTypeVar []interface{}, PrivateSizeVar uint) int { | |
| 601 | + | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | |
| 601 | 602 | ||
| 602 | 603 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | |
| 603 | 604 | return cret | |
| @@ -620,39 +621,39 @@ func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceChec | |||
| 620 | 621 | ||
| 621 | 622 | } | |
| 622 | 623 | ||
| 623 | - | var xTypeAddInterfaceDynamic func([]interface{}, []interface{}, uintptr) | |
| 624 | + | var xTypeAddInterfaceDynamic func(types.GType, types.GType, uintptr) | |
| 624 | 625 | ||
| 625 | 626 | // Adds @interface_type to the dynamic @instance_type. The information | |
| 626 | 627 | // contained in the #GTypePlugin structure pointed to by @plugin | |
| 627 | 628 | // is used to manage the relationship. | |
| 628 | - | func TypeAddInterfaceDynamic(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, PluginVar TypePlugin) { | |
| 629 | + | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | |
| 629 | 630 | ||
| 630 | 631 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | |
| 631 | 632 | ||
| 632 | 633 | } | |
| 633 | 634 | ||
| 634 | - | var xTypeAddInterfaceStatic func([]interface{}, []interface{}, *InterfaceInfo) | |
| 635 | + | var xTypeAddInterfaceStatic func(types.GType, types.GType, *InterfaceInfo) | |
| 635 | 636 | ||
| 636 | 637 | // Adds @interface_type to the static @instance_type. | |
| 637 | 638 | // The information contained in the #GInterfaceInfo structure | |
| 638 | 639 | // pointed to by @info is used to manage the relationship. | |
| 639 | - | func TypeAddInterfaceStatic(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InfoVar *InterfaceInfo) { | |
| 640 | + | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | |
| 640 | 641 | ||
| 641 | 642 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 642 | 643 | ||
| 643 | 644 | } | |
| 644 | 645 | ||
| 645 | - | var xTypeCheckClassCast func(*TypeClass, []interface{}) *TypeClass | |
| 646 | + | var xTypeCheckClassCast func(*TypeClass, types.GType) *TypeClass | |
| 646 | 647 | ||
| 647 | - | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar []interface{}) *TypeClass { | |
| 648 | + | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | |
| 648 | 649 | ||
| 649 | 650 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | |
| 650 | 651 | return cret | |
| 651 | 652 | } | |
| 652 | 653 | ||
| 653 | - | var xTypeCheckClassIsA func(*TypeClass, []interface{}) bool | |
| 654 | + | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | |
| 654 | 655 | ||
| 655 | - | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar []interface{}) bool { | |
| 656 | + | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | |
| 656 | 657 | ||
| 657 | 658 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | |
| 658 | 659 | return cret | |
| @@ -668,33 +669,33 @@ func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |||
| 668 | 669 | return cret | |
| 669 | 670 | } | |
| 670 | 671 | ||
| 671 | - | var xTypeCheckInstanceCast func(*TypeInstance, []interface{}) *TypeInstance | |
| 672 | + | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) *TypeInstance | |
| 672 | 673 | ||
| 673 | - | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar []interface{}) *TypeInstance { | |
| 674 | + | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | |
| 674 | 675 | ||
| 675 | 676 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | |
| 676 | 677 | return cret | |
| 677 | 678 | } | |
| 678 | 679 | ||
| 679 | - | var xTypeCheckInstanceIsA func(*TypeInstance, []interface{}) bool | |
| 680 | + | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | |
| 680 | 681 | ||
| 681 | - | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar []interface{}) bool { | |
| 682 | + | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | |
| 682 | 683 | ||
| 683 | 684 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | |
| 684 | 685 | return cret | |
| 685 | 686 | } | |
| 686 | 687 | ||
| 687 | - | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, []interface{}) bool | |
| 688 | + | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | |
| 688 | 689 | ||
| 689 | - | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar []interface{}) bool { | |
| 690 | + | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | |
| 690 | 691 | ||
| 691 | 692 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | |
| 692 | 693 | return cret | |
| 693 | 694 | } | |
| 694 | 695 | ||
| 695 | - | var xTypeCheckIsValueType func([]interface{}) bool | |
| 696 | + | var xTypeCheckIsValueType func(types.GType) bool | |
| 696 | 697 | ||
| 697 | - | func TypeCheckIsValueType(TypeVar []interface{}) bool { | |
| 698 | + | func TypeCheckIsValueType(TypeVar types.GType) bool { | |
| 698 | 699 | ||
| 699 | 700 | cret := xTypeCheckIsValueType(TypeVar) | |
| 700 | 701 | return cret | |
| @@ -708,19 +709,19 @@ func TypeCheckValue(ValueVar *Value) bool { | |||
| 708 | 709 | return cret | |
| 709 | 710 | } | |
| 710 | 711 | ||
| 711 | - | var xTypeCheckValueHolds func(*Value, []interface{}) bool | |
| 712 | + | var xTypeCheckValueHolds func(*Value, types.GType) bool | |
| 712 | 713 | ||
| 713 | - | func TypeCheckValueHolds(ValueVar *Value, TypeVar []interface{}) bool { | |
| 714 | + | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | |
| 714 | 715 | ||
| 715 | 716 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | |
| 716 | 717 | return cret | |
| 717 | 718 | } | |
| 718 | 719 | ||
| 719 | - | var xTypeChildren func([]interface{}, uint) uintptr | |
| 720 | + | var xTypeChildren func(types.GType, uint) []types.GType | |
| 720 | 721 | ||
| 721 | 722 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 722 | 723 | // the child types of @type. | |
| 723 | - | func TypeChildren(TypeVar []interface{}, NChildrenVar uint) uintptr { | |
| 724 | + | func TypeChildren(TypeVar types.GType, NChildrenVar uint) []types.GType { | |
| 724 | 725 | ||
| 725 | 726 | cret := xTypeChildren(TypeVar, NChildrenVar) | |
| 726 | 727 | return cret | |
| @@ -734,41 +735,41 @@ func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) | |||
| 734 | 735 | ||
| 735 | 736 | } | |
| 736 | 737 | ||
| 737 | - | var xTypeClassPeek func([]interface{}) *TypeClass | |
| 738 | + | var xTypeClassPeek func(types.GType) *TypeClass | |
| 738 | 739 | ||
| 739 | 740 | // This function is essentially the same as g_type_class_ref(), | |
| 740 | 741 | // except that the classes reference count isn't incremented. | |
| 741 | 742 | // As a consequence, this function may return %NULL if the class | |
| 742 | 743 | // of the type passed in does not currently exist (hasn't been | |
| 743 | 744 | // referenced before). | |
| 744 | - | func TypeClassPeek(TypeVar []interface{}) *TypeClass { | |
| 745 | + | func TypeClassPeek(TypeVar types.GType) *TypeClass { | |
| 745 | 746 | ||
| 746 | 747 | cret := xTypeClassPeek(TypeVar) | |
| 747 | 748 | return cret | |
| 748 | 749 | } | |
| 749 | 750 | ||
| 750 | - | var xTypeClassPeekStatic func([]interface{}) *TypeClass | |
| 751 | + | var xTypeClassPeekStatic func(types.GType) *TypeClass | |
| 751 | 752 | ||
| 752 | 753 | // A more efficient version of g_type_class_peek() which works only for | |
| 753 | 754 | // static types. | |
| 754 | - | func TypeClassPeekStatic(TypeVar []interface{}) *TypeClass { | |
| 755 | + | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | |
| 755 | 756 | ||
| 756 | 757 | cret := xTypeClassPeekStatic(TypeVar) | |
| 757 | 758 | return cret | |
| 758 | 759 | } | |
| 759 | 760 | ||
| 760 | - | var xTypeClassRef func([]interface{}) *TypeClass | |
| 761 | + | var xTypeClassRef func(types.GType) *TypeClass | |
| 761 | 762 | ||
| 762 | 763 | // Increments the reference count of the class structure belonging to | |
| 763 | 764 | // @type. This function will demand-create the class if it doesn't | |
| 764 | 765 | // exist already. | |
| 765 | - | func TypeClassRef(TypeVar []interface{}) *TypeClass { | |
| 766 | + | func TypeClassRef(TypeVar types.GType) *TypeClass { | |
| 766 | 767 | ||
| 767 | 768 | cret := xTypeClassRef(TypeVar) | |
| 768 | 769 | return cret | |
| 769 | 770 | } | |
| 770 | 771 | ||
| 771 | - | var xTypeCreateInstance func([]interface{}) *TypeInstance | |
| 772 | + | var xTypeCreateInstance func(types.GType) *TypeInstance | |
| 772 | 773 | ||
| 773 | 774 | // Creates and initializes an instance of @type if @type is valid and | |
| 774 | 775 | // can be instantiated. The type system only performs basic allocation | |
| @@ -786,23 +787,23 @@ var xTypeCreateInstance func([]interface{}) *TypeInstance | |||
| 786 | 787 | // Note: Do not use this function, unless you're implementing a | |
| 787 | 788 | // fundamental type. Also language bindings should not use this | |
| 788 | 789 | // function, but g_object_new() instead. | |
| 789 | - | func TypeCreateInstance(TypeVar []interface{}) *TypeInstance { | |
| 790 | + | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | |
| 790 | 791 | ||
| 791 | 792 | cret := xTypeCreateInstance(TypeVar) | |
| 792 | 793 | return cret | |
| 793 | 794 | } | |
| 794 | 795 | ||
| 795 | - | var xTypeDefaultInterfacePeek func([]interface{}) *TypeInterface | |
| 796 | + | var xTypeDefaultInterfacePeek func(types.GType) *TypeInterface | |
| 796 | 797 | ||
| 797 | 798 | // If the interface type @g_type is currently in use, returns its | |
| 798 | 799 | // default interface vtable. | |
| 799 | - | func TypeDefaultInterfacePeek(GTypeVar []interface{}) *TypeInterface { | |
| 800 | + | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | |
| 800 | 801 | ||
| 801 | 802 | cret := xTypeDefaultInterfacePeek(GTypeVar) | |
| 802 | 803 | return cret | |
| 803 | 804 | } | |
| 804 | 805 | ||
| 805 | - | var xTypeDefaultInterfaceRef func([]interface{}) *TypeInterface | |
| 806 | + | var xTypeDefaultInterfaceRef func(types.GType) *TypeInterface | |
| 806 | 807 | ||
| 807 | 808 | // Increments the reference count for the interface type @g_type, | |
| 808 | 809 | // and returns the default interface vtable for the type. | |
| @@ -814,7 +815,7 @@ var xTypeDefaultInterfaceRef func([]interface{}) *TypeInterface | |||
| 814 | 815 | // Calling g_type_default_interface_ref() is useful when you | |
| 815 | 816 | // want to make sure that signals and properties for an interface | |
| 816 | 817 | // have been installed. | |
| 817 | - | func TypeDefaultInterfaceRef(GTypeVar []interface{}) *TypeInterface { | |
| 818 | + | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | |
| 818 | 819 | ||
| 819 | 820 | cret := xTypeDefaultInterfaceRef(GTypeVar) | |
| 820 | 821 | return cret | |
| @@ -833,17 +834,17 @@ func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | |||
| 833 | 834 | ||
| 834 | 835 | } | |
| 835 | 836 | ||
| 836 | - | var xTypeDepth func([]interface{}) uint | |
| 837 | + | var xTypeDepth func(types.GType) uint | |
| 837 | 838 | ||
| 838 | 839 | // Returns the length of the ancestry of the passed in type. This | |
| 839 | 840 | // includes the type itself, so that e.g. a fundamental type has depth 1. | |
| 840 | - | func TypeDepth(TypeVar []interface{}) uint { | |
| 841 | + | func TypeDepth(TypeVar types.GType) uint { | |
| 841 | 842 | ||
| 842 | 843 | cret := xTypeDepth(TypeVar) | |
| 843 | 844 | return cret | |
| 844 | 845 | } | |
| 845 | 846 | ||
| 846 | - | var xTypeEnsure func([]interface{}) | |
| 847 | + | var xTypeEnsure func(types.GType) | |
| 847 | 848 | ||
| 848 | 849 | // Ensures that the indicated @type has been registered with the | |
| 849 | 850 | // type system, and its _class_init() method has been run. | |
| @@ -857,7 +858,7 @@ var xTypeEnsure func([]interface{}) | |||
| 857 | 858 | // you write a bare call to a _get_type() macro, it may get optimized | |
| 858 | 859 | // out by the compiler. Using g_type_ensure() guarantees that the | |
| 859 | 860 | // type's _get_type() method is called. | |
| 860 | - | func TypeEnsure(TypeVar []interface{}) { | |
| 861 | + | func TypeEnsure(TypeVar types.GType) { | |
| 861 | 862 | ||
| 862 | 863 | xTypeEnsure(TypeVar) | |
| 863 | 864 | ||
| @@ -876,56 +877,56 @@ func TypeFreeInstance(InstanceVar *TypeInstance) { | |||
| 876 | 877 | ||
| 877 | 878 | } | |
| 878 | 879 | ||
| 879 | - | var xTypeFromName func(string) []interface{} | |
| 880 | + | var xTypeFromName func(string) types.GType | |
| 880 | 881 | ||
| 881 | 882 | // Look up the type ID from a given type name, returning 0 if no type | |
| 882 | 883 | // has been registered under this name (this is the preferred method | |
| 883 | 884 | // to find out by name whether a specific type has been registered | |
| 884 | 885 | // yet). | |
| 885 | - | func TypeFromName(NameVar string) []interface{} { | |
| 886 | + | func TypeFromName(NameVar string) types.GType { | |
| 886 | 887 | ||
| 887 | 888 | cret := xTypeFromName(NameVar) | |
| 888 | 889 | return cret | |
| 889 | 890 | } | |
| 890 | 891 | ||
| 891 | - | var xTypeFundamental func([]interface{}) []interface{} | |
| 892 | + | var xTypeFundamental func(types.GType) types.GType | |
| 892 | 893 | ||
| 893 | 894 | // Internal function, used to extract the fundamental type ID portion. | |
| 894 | 895 | // Use G_TYPE_FUNDAMENTAL() instead. | |
| 895 | - | func TypeFundamental(TypeIdVar []interface{}) []interface{} { | |
| 896 | + | func TypeFundamental(TypeIdVar types.GType) types.GType { | |
| 896 | 897 | ||
| 897 | 898 | cret := xTypeFundamental(TypeIdVar) | |
| 898 | 899 | return cret | |
| 899 | 900 | } | |
| 900 | 901 | ||
| 901 | - | var xTypeFundamentalNext func() []interface{} | |
| 902 | + | var xTypeFundamentalNext func() types.GType | |
| 902 | 903 | ||
| 903 | 904 | // Returns the next free fundamental type id which can be used to | |
| 904 | 905 | // register a new fundamental type with g_type_register_fundamental(). | |
| 905 | 906 | // The returned type ID represents the highest currently registered | |
| 906 | 907 | // fundamental type identifier. | |
| 907 | - | func TypeFundamentalNext() []interface{} { | |
| 908 | + | func TypeFundamentalNext() types.GType { | |
| 908 | 909 | ||
| 909 | 910 | cret := xTypeFundamentalNext() | |
| 910 | 911 | return cret | |
| 911 | 912 | } | |
| 912 | 913 | ||
| 913 | - | var xTypeGetInstanceCount func([]interface{}) int | |
| 914 | + | var xTypeGetInstanceCount func(types.GType) int | |
| 914 | 915 | ||
| 915 | 916 | // Returns the number of instances allocated of the particular type; | |
| 916 | 917 | // this is only available if GLib is built with debugging support and | |
| 917 | 918 | // the instance_count debug flag is set (by setting the GOBJECT_DEBUG | |
| 918 | 919 | // variable to include instance-count). | |
| 919 | - | func TypeGetInstanceCount(TypeVar []interface{}) int { | |
| 920 | + | func TypeGetInstanceCount(TypeVar types.GType) int { | |
| 920 | 921 | ||
| 921 | 922 | cret := xTypeGetInstanceCount(TypeVar) | |
| 922 | 923 | return cret | |
| 923 | 924 | } | |
| 924 | 925 | ||
| 925 | - | var xTypeGetPlugin func([]interface{}) uintptr | |
| 926 | + | var xTypeGetPlugin func(types.GType) uintptr | |
| 926 | 927 | ||
| 927 | 928 | // Returns the #GTypePlugin structure for @type. | |
| 928 | - | func TypeGetPlugin(TypeVar []interface{}) *TypePluginBase { | |
| 929 | + | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | |
| 929 | 930 | var cls *TypePluginBase | |
| 930 | 931 | ||
| 931 | 932 | cret := xTypeGetPlugin(TypeVar) | |
| @@ -939,7 +940,7 @@ func TypeGetPlugin(TypeVar []interface{}) *TypePluginBase { | |||
| 939 | 940 | return cls | |
| 940 | 941 | } | |
| 941 | 942 | ||
| 942 | - | var xTypeGetQdata func([]interface{}, glib.Quark) uintptr | |
| 943 | + | var xTypeGetQdata func(types.GType, glib.Quark) uintptr | |
| 943 | 944 | ||
| 944 | 945 | // Obtains data which has previously been attached to @type | |
| 945 | 946 | // with g_type_set_qdata(). | |
| @@ -947,7 +948,7 @@ var xTypeGetQdata func([]interface{}, glib.Quark) uintptr | |||
| 947 | 948 | // Note that this does not take subtyping into account; data | |
| 948 | 949 | // attached to one type with g_type_set_qdata() cannot | |
| 949 | 950 | // be retrieved from a subtype using g_type_get_qdata(). | |
| 950 | - | func TypeGetQdata(TypeVar []interface{}, QuarkVar glib.Quark) uintptr { | |
| 951 | + | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | |
| 951 | 952 | ||
| 952 | 953 | cret := xTypeGetQdata(TypeVar, QuarkVar) | |
| 953 | 954 | return cret | |
| @@ -991,26 +992,26 @@ func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | |||
| 991 | 992 | ||
| 992 | 993 | } | |
| 993 | 994 | ||
| 994 | - | var xTypeInterfaceAddPrerequisite func([]interface{}, []interface{}) | |
| 995 | + | var xTypeInterfaceAddPrerequisite func(types.GType, types.GType) | |
| 995 | 996 | ||
| 996 | 997 | // Adds @prerequisite_type to the list of prerequisites of @interface_type. | |
| 997 | 998 | // This means that any type implementing @interface_type must also implement | |
| 998 | 999 | // @prerequisite_type. Prerequisites can be thought of as an alternative to | |
| 999 | 1000 | // interface derivation (which GType doesn't support). An interface can have | |
| 1000 | 1001 | // at most one instantiatable prerequisite type. | |
| 1001 | - | func TypeInterfaceAddPrerequisite(InterfaceTypeVar []interface{}, PrerequisiteTypeVar []interface{}) { | |
| 1002 | + | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | |
| 1002 | 1003 | ||
| 1003 | 1004 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | |
| 1004 | 1005 | ||
| 1005 | 1006 | } | |
| 1006 | 1007 | ||
| 1007 | - | var xTypeInterfaceGetPlugin func([]interface{}, []interface{}) uintptr | |
| 1008 | + | var xTypeInterfaceGetPlugin func(types.GType, types.GType) uintptr | |
| 1008 | 1009 | ||
| 1009 | 1010 | // Returns the #GTypePlugin structure for the dynamic interface | |
| 1010 | 1011 | // @interface_type which has been added to @instance_type, or %NULL | |
| 1011 | 1012 | // if @interface_type has not been added to @instance_type or does | |
| 1012 | 1013 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | |
| 1013 | - | func TypeInterfaceGetPlugin(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}) *TypePluginBase { | |
| 1014 | + | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | |
| 1014 | 1015 | var cls *TypePluginBase | |
| 1015 | 1016 | ||
| 1016 | 1017 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | |
| @@ -1024,7 +1025,7 @@ func TypeInterfaceGetPlugin(InstanceTypeVar []interface{}, InterfaceTypeVar []in | |||
| 1024 | 1025 | return cls | |
| 1025 | 1026 | } | |
| 1026 | 1027 | ||
| 1027 | - | var xTypeInterfaceInstantiatablePrerequisite func([]interface{}) []interface{} | |
| 1028 | + | var xTypeInterfaceInstantiatablePrerequisite func(types.GType) types.GType | |
| 1028 | 1029 | ||
| 1029 | 1030 | // Returns the most specific instantiatable prerequisite of an | |
| 1030 | 1031 | // interface type. If the interface type has no instantiatable | |
| @@ -1032,60 +1033,60 @@ var xTypeInterfaceInstantiatablePrerequisite func([]interface{}) []interface{} | |||
| 1032 | 1033 | // | |
| 1033 | 1034 | // See g_type_interface_add_prerequisite() for more information | |
| 1034 | 1035 | // about prerequisites. | |
| 1035 | - | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar []interface{}) []interface{} { | |
| 1036 | + | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | |
| 1036 | 1037 | ||
| 1037 | 1038 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | |
| 1038 | 1039 | return cret | |
| 1039 | 1040 | } | |
| 1040 | 1041 | ||
| 1041 | - | var xTypeInterfacePeek func(*TypeClass, []interface{}) *TypeInterface | |
| 1042 | + | var xTypeInterfacePeek func(*TypeClass, types.GType) *TypeInterface | |
| 1042 | 1043 | ||
| 1043 | 1044 | // Returns the #GTypeInterface structure of an interface to which the | |
| 1044 | 1045 | // passed in class conforms. | |
| 1045 | - | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar []interface{}) *TypeInterface { | |
| 1046 | + | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | |
| 1046 | 1047 | ||
| 1047 | 1048 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | |
| 1048 | 1049 | return cret | |
| 1049 | 1050 | } | |
| 1050 | 1051 | ||
| 1051 | - | var xTypeInterfacePrerequisites func([]interface{}, uint) uintptr | |
| 1052 | + | var xTypeInterfacePrerequisites func(types.GType, uint) []types.GType | |
| 1052 | 1053 | ||
| 1053 | 1054 | // Returns the prerequisites of an interfaces type. | |
| 1054 | - | func TypeInterfacePrerequisites(InterfaceTypeVar []interface{}, NPrerequisitesVar uint) uintptr { | |
| 1055 | + | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar uint) []types.GType { | |
| 1055 | 1056 | ||
| 1056 | 1057 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | |
| 1057 | 1058 | return cret | |
| 1058 | 1059 | } | |
| 1059 | 1060 | ||
| 1060 | - | var xTypeInterfaces func([]interface{}, uint) uintptr | |
| 1061 | + | var xTypeInterfaces func(types.GType, uint) []types.GType | |
| 1061 | 1062 | ||
| 1062 | 1063 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 1063 | 1064 | // the interface types that @type conforms to. | |
| 1064 | - | func TypeInterfaces(TypeVar []interface{}, NInterfacesVar uint) uintptr { | |
| 1065 | + | func TypeInterfaces(TypeVar types.GType, NInterfacesVar uint) []types.GType { | |
| 1065 | 1066 | ||
| 1066 | 1067 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | |
| 1067 | 1068 | return cret | |
| 1068 | 1069 | } | |
| 1069 | 1070 | ||
| 1070 | - | var xTypeIsA func([]interface{}, []interface{}) bool | |
| 1071 | + | var xTypeIsA func(types.GType, types.GType) bool | |
| 1071 | 1072 | ||
| 1072 | 1073 | // If @is_a_type is a derivable type, check whether @type is a | |
| 1073 | 1074 | // descendant of @is_a_type. If @is_a_type is an interface, check | |
| 1074 | 1075 | // whether @type conforms to it. | |
| 1075 | - | func TypeIsA(TypeVar []interface{}, IsATypeVar []interface{}) bool { | |
| 1076 | + | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | |
| 1076 | 1077 | ||
| 1077 | 1078 | cret := xTypeIsA(TypeVar, IsATypeVar) | |
| 1078 | 1079 | return cret | |
| 1079 | 1080 | } | |
| 1080 | 1081 | ||
| 1081 | - | var xTypeName func([]interface{}) string | |
| 1082 | + | var xTypeName func(types.GType) string | |
| 1082 | 1083 | ||
| 1083 | 1084 | // Get the unique name that is assigned to a type ID. Note that this | |
| 1084 | 1085 | // function (like all other GType API) cannot cope with invalid type | |
| 1085 | 1086 | // IDs. %G_TYPE_INVALID may be passed to this function, as may be any | |
| 1086 | 1087 | // other validly registered type ID, but randomized type IDs should | |
| 1087 | 1088 | // not be passed in and will most likely lead to a crash. | |
| 1088 | - | func TypeName(TypeVar []interface{}) string { | |
| 1089 | + | func TypeName(TypeVar types.GType) string { | |
| 1089 | 1090 | ||
| 1090 | 1091 | cret := xTypeName(TypeVar) | |
| 1091 | 1092 | return cret | |
| @@ -1107,7 +1108,7 @@ func TypeNameFromInstance(InstanceVar *TypeInstance) string { | |||
| 1107 | 1108 | return cret | |
| 1108 | 1109 | } | |
| 1109 | 1110 | ||
| 1110 | - | var xTypeNextBase func([]interface{}, []interface{}) []interface{} | |
| 1111 | + | var xTypeNextBase func(types.GType, types.GType) types.GType | |
| 1111 | 1112 | ||
| 1112 | 1113 | // Given a @leaf_type and a @root_type which is contained in its | |
| 1113 | 1114 | // ancestry, return the type that @root_type is the immediate parent | |
| @@ -1116,32 +1117,32 @@ var xTypeNextBase func([]interface{}, []interface{}) []interface{} | |||
| 1116 | 1117 | // @leaf_type. Given a root type and a leaf type, this function can | |
| 1117 | 1118 | // be used to determine the types and order in which the leaf type is | |
| 1118 | 1119 | // descended from the root type. | |
| 1119 | - | func TypeNextBase(LeafTypeVar []interface{}, RootTypeVar []interface{}) []interface{} { | |
| 1120 | + | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | |
| 1120 | 1121 | ||
| 1121 | 1122 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | |
| 1122 | 1123 | return cret | |
| 1123 | 1124 | } | |
| 1124 | 1125 | ||
| 1125 | - | var xTypeParent func([]interface{}) []interface{} | |
| 1126 | + | var xTypeParent func(types.GType) types.GType | |
| 1126 | 1127 | ||
| 1127 | 1128 | // Return the direct parent type of the passed in type. If the passed | |
| 1128 | 1129 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | |
| 1129 | - | func TypeParent(TypeVar []interface{}) []interface{} { | |
| 1130 | + | func TypeParent(TypeVar types.GType) types.GType { | |
| 1130 | 1131 | ||
| 1131 | 1132 | cret := xTypeParent(TypeVar) | |
| 1132 | 1133 | return cret | |
| 1133 | 1134 | } | |
| 1134 | 1135 | ||
| 1135 | - | var xTypeQname func([]interface{}) glib.Quark | |
| 1136 | + | var xTypeQname func(types.GType) glib.Quark | |
| 1136 | 1137 | ||
| 1137 | 1138 | // Get the corresponding quark of the type IDs name. | |
| 1138 | - | func TypeQname(TypeVar []interface{}) glib.Quark { | |
| 1139 | + | func TypeQname(TypeVar types.GType) glib.Quark { | |
| 1139 | 1140 | ||
| 1140 | 1141 | cret := xTypeQname(TypeVar) | |
| 1141 | 1142 | return cret | |
| 1142 | 1143 | } | |
| 1143 | 1144 | ||
| 1144 | - | var xNewTypeQuery func([]interface{}, *TypeQuery) | |
| 1145 | + | var xNewTypeQuery func(types.GType, *TypeQuery) | |
| 1145 | 1146 | ||
| 1146 | 1147 | // Queries the type system for information about a specific type. | |
| 1147 | 1148 | // This function will fill in a user-provided structure to hold | |
| @@ -1149,26 +1150,26 @@ var xNewTypeQuery func([]interface{}, *TypeQuery) | |||
| 1149 | 1150 | // @type member of the #GTypeQuery is 0. All members filled into the | |
| 1150 | 1151 | // #GTypeQuery structure should be considered constant and have to be | |
| 1151 | 1152 | // left untouched. | |
| 1152 | - | func NewTypeQuery(TypeVar []interface{}, QueryVar *TypeQuery) { | |
| 1153 | + | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | |
| 1153 | 1154 | ||
| 1154 | 1155 | xNewTypeQuery(TypeVar, QueryVar) | |
| 1155 | 1156 | ||
| 1156 | 1157 | } | |
| 1157 | 1158 | ||
| 1158 | - | var xTypeRegisterDynamic func([]interface{}, string, uintptr, TypeFlags) []interface{} | |
| 1159 | + | var xTypeRegisterDynamic func(types.GType, string, uintptr, TypeFlags) types.GType | |
| 1159 | 1160 | ||
| 1160 | 1161 | // Registers @type_name as the name of a new dynamic type derived from | |
| 1161 | 1162 | // @parent_type. The type system uses the information contained in the | |
| 1162 | 1163 | // #GTypePlugin structure pointed to by @plugin to manage the type and its | |
| 1163 | 1164 | // instances (if not abstract). The value of @flags determines the nature | |
| 1164 | 1165 | // (e.g. abstract or not) of the type. | |
| 1165 | - | func TypeRegisterDynamic(ParentTypeVar []interface{}, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) []interface{} { | |
| 1166 | + | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | |
| 1166 | 1167 | ||
| 1167 | 1168 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | |
| 1168 | 1169 | return cret | |
| 1169 | 1170 | } | |
| 1170 | 1171 | ||
| 1171 | - | var xTypeRegisterFundamental func([]interface{}, string, *TypeInfo, *TypeFundamentalInfo, TypeFlags) []interface{} | |
| 1172 | + | var xTypeRegisterFundamental func(types.GType, string, *TypeInfo, *TypeFundamentalInfo, TypeFlags) types.GType | |
| 1172 | 1173 | ||
| 1173 | 1174 | // Registers @type_id as the predefined identifier and @type_name as the | |
| 1174 | 1175 | // name of a fundamental type. If @type_id is already registered, or a | |
| @@ -1177,32 +1178,32 @@ var xTypeRegisterFundamental func([]interface{}, string, *TypeInfo, *TypeFundame | |||
| 1177 | 1178 | // pointed to by @info and the #GTypeFundamentalInfo structure pointed to by | |
| 1178 | 1179 | // @finfo to manage the type and its instances. The value of @flags determines | |
| 1179 | 1180 | // additional characteristics of the fundamental type. | |
| 1180 | - | func TypeRegisterFundamental(TypeIdVar []interface{}, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) []interface{} { | |
| 1181 | + | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | |
| 1181 | 1182 | ||
| 1182 | 1183 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | |
| 1183 | 1184 | return cret | |
| 1184 | 1185 | } | |
| 1185 | 1186 | ||
| 1186 | - | var xTypeRegisterStatic func([]interface{}, string, *TypeInfo, TypeFlags) []interface{} | |
| 1187 | + | var xTypeRegisterStatic func(types.GType, string, *TypeInfo, TypeFlags) types.GType | |
| 1187 | 1188 | ||
| 1188 | 1189 | // Registers @type_name as the name of a new static type derived from | |
| 1189 | 1190 | // @parent_type. The type system uses the information contained in the | |
| 1190 | 1191 | // #GTypeInfo structure pointed to by @info to manage the type and its | |
| 1191 | 1192 | // instances (if not abstract). The value of @flags determines the nature | |
| 1192 | 1193 | // (e.g. abstract or not) of the type. | |
| 1193 | - | func TypeRegisterStatic(ParentTypeVar []interface{}, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) []interface{} { | |
| 1194 | + | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | |
| 1194 | 1195 | ||
| 1195 | 1196 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | |
| 1196 | 1197 | return cret | |
| 1197 | 1198 | } | |
| 1198 | 1199 | ||
| 1199 | - | var xTypeRegisterStaticSimple func([]interface{}, string, uint, uintptr, uint, uintptr, TypeFlags) []interface{} | |
| 1200 | + | var xTypeRegisterStaticSimple func(types.GType, string, uint, uintptr, uint, uintptr, TypeFlags) types.GType | |
| 1200 | 1201 | ||
| 1201 | 1202 | // Registers @type_name as the name of a new static type derived from | |
| 1202 | 1203 | // @parent_type. The value of @flags determines the nature (e.g. | |
| 1203 | 1204 | // abstract or not) of the type. It works by filling a #GTypeInfo | |
| 1204 | 1205 | // struct and calling g_type_register_static(). | |
| 1205 | - | func TypeRegisterStaticSimple(ParentTypeVar []interface{}, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) []interface{} { | |
| 1206 | + | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | |
| 1206 | 1207 | ||
| 1207 | 1208 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | |
| 1208 | 1209 | return cret | |
| @@ -1229,31 +1230,31 @@ func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceC | |||
| 1229 | 1230 | ||
| 1230 | 1231 | } | |
| 1231 | 1232 | ||
| 1232 | - | var xTypeSetQdata func([]interface{}, glib.Quark, uintptr) | |
| 1233 | + | var xTypeSetQdata func(types.GType, glib.Quark, uintptr) | |
| 1233 | 1234 | ||
| 1234 | 1235 | // Attaches arbitrary data to a type. | |
| 1235 | - | func TypeSetQdata(TypeVar []interface{}, QuarkVar glib.Quark, DataVar uintptr) { | |
| 1236 | + | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | |
| 1236 | 1237 | ||
| 1237 | 1238 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | |
| 1238 | 1239 | ||
| 1239 | 1240 | } | |
| 1240 | 1241 | ||
| 1241 | - | var xTypeTestFlags func([]interface{}, uint) bool | |
| 1242 | + | var xTypeTestFlags func(types.GType, uint) bool | |
| 1242 | 1243 | ||
| 1243 | - | func TypeTestFlags(TypeVar []interface{}, FlagsVar uint) bool { | |
| 1244 | + | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | |
| 1244 | 1245 | ||
| 1245 | 1246 | cret := xTypeTestFlags(TypeVar, FlagsVar) | |
| 1246 | 1247 | return cret | |
| 1247 | 1248 | } | |
| 1248 | 1249 | ||
| 1249 | - | var xTypeValueTablePeek func([]interface{}) *TypeValueTable | |
| 1250 | + | var xTypeValueTablePeek func(types.GType) *TypeValueTable | |
| 1250 | 1251 | ||
| 1251 | 1252 | // Returns the location of the #GTypeValueTable associated with @type. | |
| 1252 | 1253 | // | |
| 1253 | 1254 | // Note that this function should only be used from source code | |
| 1254 | 1255 | // that implements or has internal knowledge of the implementation of | |
| 1255 | 1256 | // @type. | |
| 1256 | - | func TypeValueTablePeek(TypeVar []interface{}) *TypeValueTable { | |
| 1257 | + | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |
| 1257 | 1258 | ||
| 1258 | 1259 | cret := xTypeValueTablePeek(TypeVar) | |
| 1259 | 1260 | return cret | |
M v4/gobject/gtypemodule.go +11 -10
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // In order to implement dynamic loading of types based on #GTypeModule, | |
| @@ -58,7 +59,7 @@ func TypeModuleNewFromInternalPtr(ptr uintptr) *TypeModule { | |||
| 58 | 59 | return cls | |
| 59 | 60 | } | |
| 60 | 61 | ||
| 61 | - | var xTypeModuleAddInterface func(uintptr, []interface{}, []interface{}, *InterfaceInfo) | |
| 62 | + | var xTypeModuleAddInterface func(uintptr, types.GType, types.GType, *InterfaceInfo) | |
| 62 | 63 | ||
| 63 | 64 | // Registers an additional interface for a type, whose interface lives | |
| 64 | 65 | // in the given type plugin. If the interface was already registered | |
| @@ -69,13 +70,13 @@ var xTypeModuleAddInterface func(uintptr, []interface{}, []interface{}, *Interfa | |||
| 69 | 70 | // | |
| 70 | 71 | // Since 2.56 if @module is %NULL this will call g_type_add_interface_static() | |
| 71 | 72 | // instead. This can be used when making a static build of the module. | |
| 72 | - | func (x *TypeModule) AddInterface(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InterfaceInfoVar *InterfaceInfo) { | |
| 73 | + | func (x *TypeModule) AddInterface(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InterfaceInfoVar *InterfaceInfo) { | |
| 73 | 74 | ||
| 74 | 75 | xTypeModuleAddInterface(x.GoPointer(), InstanceTypeVar, InterfaceTypeVar, InterfaceInfoVar) | |
| 75 | 76 | ||
| 76 | 77 | } | |
| 77 | 78 | ||
| 78 | - | var xTypeModuleRegisterEnum func(uintptr, string, *EnumValue) []interface{} | |
| 79 | + | var xTypeModuleRegisterEnum func(uintptr, string, *EnumValue) types.GType | |
| 79 | 80 | ||
| 80 | 81 | // Looks up or registers an enumeration that is implemented with a particular | |
| 81 | 82 | // type plugin. If a type with name @type_name was previously registered, | |
| @@ -87,13 +88,13 @@ var xTypeModuleRegisterEnum func(uintptr, string, *EnumValue) []interface{} | |||
| 87 | 88 | // | |
| 88 | 89 | // Since 2.56 if @module is %NULL this will call g_type_register_static() | |
| 89 | 90 | // instead. This can be used when making a static build of the module. | |
| 90 | - | func (x *TypeModule) RegisterEnum(NameVar string, ConstStaticValuesVar *EnumValue) []interface{} { | |
| 91 | + | func (x *TypeModule) RegisterEnum(NameVar string, ConstStaticValuesVar *EnumValue) types.GType { | |
| 91 | 92 | ||
| 92 | 93 | cret := xTypeModuleRegisterEnum(x.GoPointer(), NameVar, ConstStaticValuesVar) | |
| 93 | 94 | return cret | |
| 94 | 95 | } | |
| 95 | 96 | ||
| 96 | - | var xTypeModuleRegisterFlags func(uintptr, string, *FlagsValue) []interface{} | |
| 97 | + | var xTypeModuleRegisterFlags func(uintptr, string, *FlagsValue) types.GType | |
| 97 | 98 | ||
| 98 | 99 | // Looks up or registers a flags type that is implemented with a particular | |
| 99 | 100 | // type plugin. If a type with name @type_name was previously registered, | |
| @@ -105,13 +106,13 @@ var xTypeModuleRegisterFlags func(uintptr, string, *FlagsValue) []interface{} | |||
| 105 | 106 | // | |
| 106 | 107 | // Since 2.56 if @module is %NULL this will call g_type_register_static() | |
| 107 | 108 | // instead. This can be used when making a static build of the module. | |
| 108 | - | func (x *TypeModule) RegisterFlags(NameVar string, ConstStaticValuesVar *FlagsValue) []interface{} { | |
| 109 | + | func (x *TypeModule) RegisterFlags(NameVar string, ConstStaticValuesVar *FlagsValue) types.GType { | |
| 109 | 110 | ||
| 110 | 111 | cret := xTypeModuleRegisterFlags(x.GoPointer(), NameVar, ConstStaticValuesVar) | |
| 111 | 112 | return cret | |
| 112 | 113 | } | |
| 113 | 114 | ||
| 114 | - | var xTypeModuleRegisterType func(uintptr, []interface{}, string, *TypeInfo, TypeFlags) []interface{} | |
| 115 | + | var xTypeModuleRegisterType func(uintptr, types.GType, string, *TypeInfo, TypeFlags) types.GType | |
| 115 | 116 | ||
| 116 | 117 | // Looks up or registers a type that is implemented with a particular | |
| 117 | 118 | // type plugin. If a type with name @type_name was previously registered, | |
| @@ -127,7 +128,7 @@ var xTypeModuleRegisterType func(uintptr, []interface{}, string, *TypeInfo, Type | |||
| 127 | 128 | // | |
| 128 | 129 | // Since 2.56 if @module is %NULL this will call g_type_register_static() | |
| 129 | 130 | // instead. This can be used when making a static build of the module. | |
| 130 | - | func (x *TypeModule) RegisterType(ParentTypeVar []interface{}, TypeNameVar string, TypeInfoVar *TypeInfo, FlagsVar TypeFlags) []interface{} { | |
| 131 | + | func (x *TypeModule) RegisterType(ParentTypeVar types.GType, TypeNameVar string, TypeInfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | |
| 131 | 132 | ||
| 132 | 133 | cret := xTypeModuleRegisterType(x.GoPointer(), ParentTypeVar, TypeNameVar, TypeInfoVar, FlagsVar) | |
| 133 | 134 | return cret | |
| @@ -178,7 +179,7 @@ func (c *TypeModule) SetGoPointer(ptr uintptr) { | |||
| 178 | 179 | // Calls the @complete_interface_info function from the | |
| 179 | 180 | // #GTypePluginClass of @plugin. There should be no need to use this | |
| 180 | 181 | // function outside of the GObject type system itself. | |
| 181 | - | func (x *TypeModule) CompleteInterfaceInfo(InstanceTypeVar []interface{}, InterfaceTypeVar []interface{}, InfoVar *InterfaceInfo) { | |
| 182 | + | func (x *TypeModule) CompleteInterfaceInfo(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | |
| 182 | 183 | ||
| 183 | 184 | XGTypePluginCompleteInterfaceInfo(x.GoPointer(), InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 184 | 185 | ||
| @@ -187,7 +188,7 @@ func (x *TypeModule) CompleteInterfaceInfo(InstanceTypeVar []interface{}, Interf | |||
| 187 | 188 | // Calls the @complete_type_info function from the #GTypePluginClass of @plugin. | |
| 188 | 189 | // There should be no need to use this function outside of the GObject | |
| 189 | 190 | // type system itself. | |
| 190 | - | func (x *TypeModule) CompleteTypeInfo(GTypeVar []interface{}, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) { | |
| 191 | + | func (x *TypeModule) CompleteTypeInfo(GTypeVar types.GType, InfoVar *TypeInfo, ValueTableVar *TypeValueTable) { | |
| 191 | 192 | ||
| 192 | 193 | XGTypePluginCompleteTypeInfo(x.GoPointer(), GTypeVar, InfoVar, ValueTableVar) | |
| 193 | 194 | ||
M v4/gobject/gtypeplugin.go +7 -3
| @@ -1,13 +1,17 @@ | |||
| 1 | 1 | // Package gobject was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gobject | |
| 3 | 3 | ||
| 4 | - | import "unsafe" | |
| 4 | + | import ( | |
| 5 | + | "unsafe" | |
| 6 | + | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | + | ) | |
| 5 | 9 | ||
| 6 | 10 | // The type of the @complete_interface_info function of #GTypePluginClass. | |
| 7 | - | type TypePluginCompleteInterfaceInfo func(uintptr, []interface{}, []interface{}, *InterfaceInfo) | |
| 11 | + | type TypePluginCompleteInterfaceInfo func(uintptr, types.GType, types.GType, *InterfaceInfo) | |
| 8 | 12 | ||
| 9 | 13 | // The type of the @complete_type_info function of #GTypePluginClass. | |
| 10 | - | type TypePluginCompleteTypeInfo func(uintptr, []interface{}, *TypeInfo, *TypeValueTable) | |
| 14 | + | type TypePluginCompleteTypeInfo func(uintptr, types.GType, *TypeInfo, *TypeValueTable) | |
| 11 | 15 | ||
| 12 | 16 | // The type of the @unuse_plugin function of #GTypePluginClass. | |
| 13 | 17 | type TypePluginUnuse func(uintptr) | |
M v4/gobject/gvalue.go +15 -14
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The type of value transformation functions which can be registered with | |
| @@ -26,9 +27,9 @@ type ValueTransform func(*Value, *Value) | |||
| 26 | 27 | // within the 2 element @data union, and the @g_type member should | |
| 27 | 28 | // only be accessed through the G_VALUE_TYPE() macro. | |
| 28 | 29 | type Value struct { | |
| 29 | - | GType []interface{} | |
| 30 | + | GType types.GType | |
| 30 | 31 | ||
| 31 | - | Data uintptr | |
| 32 | + | Data [2]uint64 | |
| 32 | 33 | } | |
| 33 | 34 | ||
| 34 | 35 | func (x *Value) GoPointer() uintptr { | |
| @@ -186,10 +187,10 @@ func (x *Value) GetFloat() float32 { | |||
| 186 | 187 | return cret | |
| 187 | 188 | } | |
| 188 | 189 | ||
| 189 | - | var xValueGetGtype func(uintptr) []interface{} | |
| 190 | + | var xValueGetGtype func(uintptr) types.GType | |
| 190 | 191 | ||
| 191 | 192 | // Get the contents of a %G_TYPE_GTYPE #GValue. | |
| 192 | - | func (x *Value) GetGtype() []interface{} { | |
| 193 | + | func (x *Value) GetGtype() types.GType { | |
| 193 | 194 | ||
| 194 | 195 | cret := xValueGetGtype(x.GoPointer()) | |
| 195 | 196 | return cret | |
| @@ -328,10 +329,10 @@ func (x *Value) GetVariant() *glib.Variant { | |||
| 328 | 329 | return cret | |
| 329 | 330 | } | |
| 330 | 331 | ||
| 331 | - | var xValueInit func(uintptr, []interface{}) *Value | |
| 332 | + | var xValueInit func(uintptr, types.GType) *Value | |
| 332 | 333 | ||
| 333 | 334 | // Initializes @value with the default value of @type. | |
| 334 | - | func (x *Value) Init(GTypeVar []interface{}) *Value { | |
| 335 | + | func (x *Value) Init(GTypeVar types.GType) *Value { | |
| 335 | 336 | ||
| 336 | 337 | cret := xValueInit(x.GoPointer(), GTypeVar) | |
| 337 | 338 | return cret | |
| @@ -445,10 +446,10 @@ func (x *Value) SetFloat(VFloatVar float32) { | |||
| 445 | 446 | ||
| 446 | 447 | } | |
| 447 | 448 | ||
| 448 | - | var xValueSetGtype func(uintptr, []interface{}) | |
| 449 | + | var xValueSetGtype func(uintptr, types.GType) | |
| 449 | 450 | ||
| 450 | 451 | // Set the contents of a %G_TYPE_GTYPE #GValue to @v_gtype. | |
| 451 | - | func (x *Value) SetGtype(VGtypeVar []interface{}) { | |
| 452 | + | func (x *Value) SetGtype(VGtypeVar types.GType) { | |
| 452 | 453 | ||
| 453 | 454 | xValueSetGtype(x.GoPointer(), VGtypeVar) | |
| 454 | 455 | ||
| @@ -760,34 +761,34 @@ const ( | |||
| 760 | 761 | VALUE_NOCOPY_CONTENTS int = 134217728 | |
| 761 | 762 | ) | |
| 762 | 763 | ||
| 763 | - | var xValueRegisterTransformFunc func([]interface{}, []interface{}, uintptr) | |
| 764 | + | var xValueRegisterTransformFunc func(types.GType, types.GType, uintptr) | |
| 764 | 765 | ||
| 765 | 766 | // Registers a value transformation function for use in g_value_transform(). | |
| 766 | 767 | // A previously registered transformation function for @src_type and @dest_type | |
| 767 | 768 | // will be replaced. | |
| 768 | - | func ValueRegisterTransformFunc(SrcTypeVar []interface{}, DestTypeVar []interface{}, TransformFuncVar *ValueTransform) { | |
| 769 | + | func ValueRegisterTransformFunc(SrcTypeVar types.GType, DestTypeVar types.GType, TransformFuncVar *ValueTransform) { | |
| 769 | 770 | ||
| 770 | 771 | xValueRegisterTransformFunc(SrcTypeVar, DestTypeVar, glib.NewCallback(TransformFuncVar)) | |
| 771 | 772 | ||
| 772 | 773 | } | |
| 773 | 774 | ||
| 774 | - | var xValueTypeCompatible func([]interface{}, []interface{}) bool | |
| 775 | + | var xValueTypeCompatible func(types.GType, types.GType) bool | |
| 775 | 776 | ||
| 776 | 777 | // Returns whether a #GValue of type @src_type can be copied into | |
| 777 | 778 | // a #GValue of type @dest_type. | |
| 778 | - | func ValueTypeCompatible(SrcTypeVar []interface{}, DestTypeVar []interface{}) bool { | |
| 779 | + | func ValueTypeCompatible(SrcTypeVar types.GType, DestTypeVar types.GType) bool { | |
| 779 | 780 | ||
| 780 | 781 | cret := xValueTypeCompatible(SrcTypeVar, DestTypeVar) | |
| 781 | 782 | return cret | |
| 782 | 783 | } | |
| 783 | 784 | ||
| 784 | - | var xValueTypeTransformable func([]interface{}, []interface{}) bool | |
| 785 | + | var xValueTypeTransformable func(types.GType, types.GType) bool | |
| 785 | 786 | ||
| 786 | 787 | // Check whether g_value_transform() is able to transform values | |
| 787 | 788 | // of type @src_type into values of type @dest_type. Note that for | |
| 788 | 789 | // the types to be transformable, they must be compatible or a | |
| 789 | 790 | // transformation function must be registered. | |
| 790 | - | func ValueTypeTransformable(SrcTypeVar []interface{}, DestTypeVar []interface{}) bool { | |
| 791 | + | func ValueTypeTransformable(SrcTypeVar types.GType, DestTypeVar types.GType) bool { | |
| 791 | 792 | ||
| 792 | 793 | cret := xValueTypeTransformable(SrcTypeVar, DestTypeVar) | |
| 793 | 794 | return cret | |
M v4/gobject/gvaluetypes.go +5 -4
| @@ -4,21 +4,22 @@ package gobject | |||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 7 | 8 | ) | |
| 8 | 9 | ||
| 9 | - | var xGtypeGetType func() []interface{} | |
| 10 | + | var xGtypeGetType func() types.GType | |
| 10 | 11 | ||
| 11 | - | func GtypeGetType() []interface{} { | |
| 12 | + | func GtypeGetType() types.GType { | |
| 12 | 13 | ||
| 13 | 14 | cret := xGtypeGetType() | |
| 14 | 15 | return cret | |
| 15 | 16 | } | |
| 16 | 17 | ||
| 17 | - | var xPointerTypeRegisterStatic func(string) []interface{} | |
| 18 | + | var xPointerTypeRegisterStatic func(string) types.GType | |
| 18 | 19 | ||
| 19 | 20 | // Creates a new %G_TYPE_POINTER derived type id for a new | |
| 20 | 21 | // pointer type with name @name. | |
| 21 | - | func PointerTypeRegisterStatic(NameVar string) []interface{} { | |
| 22 | + | func PointerTypeRegisterStatic(NameVar string) types.GType { | |
| 22 | 23 | ||
| 23 | 24 | cret := xPointerTypeRegisterStatic(NameVar) | |
| 24 | 25 | return cret | |
M v4/graphene/graphene-box.go +6 -6
| @@ -166,10 +166,10 @@ func (x *Box) GetSize(SizeVar *Vec3) { | |||
| 166 | 166 | ||
| 167 | 167 | } | |
| 168 | 168 | ||
| 169 | - | var xBoxGetVertices func(uintptr, uintptr) | |
| 169 | + | var xBoxGetVertices func(uintptr, [8]Vec3) | |
| 170 | 170 | ||
| 171 | 171 | // Computes the vertices of the given #graphene_box_t. | |
| 172 | - | func (x *Box) GetVertices(VerticesVar uintptr) { | |
| 172 | + | func (x *Box) GetVertices(VerticesVar [8]Vec3) { | |
| 173 | 173 | ||
| 174 | 174 | xBoxGetVertices(x.GoPointer(), VerticesVar) | |
| 175 | 175 | ||
| @@ -203,14 +203,14 @@ func (x *Box) InitFromBox(SrcVar *Box) *Box { | |||
| 203 | 203 | return cret | |
| 204 | 204 | } | |
| 205 | 205 | ||
| 206 | - | var xBoxInitFromPoints func(uintptr, uint, uintptr) *Box | |
| 206 | + | var xBoxInitFromPoints func(uintptr, uint, []Point3D) *Box | |
| 207 | 207 | ||
| 208 | 208 | // Initializes the given #graphene_box_t with the given array | |
| 209 | 209 | // of vertices. | |
| 210 | 210 | // | |
| 211 | 211 | // If @n_points is 0, the returned box is initialized with | |
| 212 | 212 | // graphene_box_empty(). | |
| 213 | - | func (x *Box) InitFromPoints(NPointsVar uint, PointsVar uintptr) *Box { | |
| 213 | + | func (x *Box) InitFromPoints(NPointsVar uint, PointsVar []Point3D) *Box { | |
| 214 | 214 | ||
| 215 | 215 | cret := xBoxInitFromPoints(x.GoPointer(), NPointsVar, PointsVar) | |
| 216 | 216 | return cret | |
| @@ -226,14 +226,14 @@ func (x *Box) InitFromVec3(MinVar *Vec3, MaxVar *Vec3) *Box { | |||
| 226 | 226 | return cret | |
| 227 | 227 | } | |
| 228 | 228 | ||
| 229 | - | var xBoxInitFromVectors func(uintptr, uint, uintptr) *Box | |
| 229 | + | var xBoxInitFromVectors func(uintptr, uint, []Vec3) *Box | |
| 230 | 230 | ||
| 231 | 231 | // Initializes the given #graphene_box_t with the given array | |
| 232 | 232 | // of vertices. | |
| 233 | 233 | // | |
| 234 | 234 | // If @n_vectors is 0, the returned box is initialized with | |
| 235 | 235 | // graphene_box_empty(). | |
| 236 | - | func (x *Box) InitFromVectors(NVectorsVar uint, VectorsVar uintptr) *Box { | |
| 236 | + | func (x *Box) InitFromVectors(NVectorsVar uint, VectorsVar []Vec3) *Box { | |
| 237 | 237 | ||
| 238 | 238 | cret := xBoxInitFromVectors(x.GoPointer(), NVectorsVar, VectorsVar) | |
| 239 | 239 | return cret | |
M v4/graphene/graphene-frustum.go +3 -3
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | // The contents of the `graphene_frustum_t` are private, and should not be | |
| 14 | 14 | // modified directly. | |
| 15 | 15 | type Frustum struct { | |
| 16 | - | Planes uintptr | |
| 16 | + | Planes [6]Plane | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *Frustum) GoPointer() uintptr { | |
| @@ -59,10 +59,10 @@ func (x *Frustum) Free() { | |||
| 59 | 59 | ||
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | - | var xFrustumGetPlanes func(uintptr, uintptr) | |
| 62 | + | var xFrustumGetPlanes func(uintptr, [6]Plane) | |
| 63 | 63 | ||
| 64 | 64 | // Retrieves the planes that define the given #graphene_frustum_t. | |
| 65 | - | func (x *Frustum) GetPlanes(PlanesVar uintptr) { | |
| 65 | + | func (x *Frustum) GetPlanes(PlanesVar [6]Plane) { | |
| 66 | 66 | ||
| 67 | 67 | xFrustumGetPlanes(x.GoPointer(), PlanesVar) | |
| 68 | 68 | ||
M v4/graphene/graphene-matrix.go +4 -4
| @@ -199,11 +199,11 @@ func (x *Matrix) InitFrom2d(XxVar float64, YxVar float64, XyVar float64, YyVar f | |||
| 199 | 199 | return cret | |
| 200 | 200 | } | |
| 201 | 201 | ||
| 202 | - | var xMatrixInitFromFloat func(uintptr, uintptr) *Matrix | |
| 202 | + | var xMatrixInitFromFloat func(uintptr, [16]float32) *Matrix | |
| 203 | 203 | ||
| 204 | 204 | // Initializes a #graphene_matrix_t with the given array of floating | |
| 205 | 205 | // point values. | |
| 206 | - | func (x *Matrix) InitFromFloat(VVar uintptr) *Matrix { | |
| 206 | + | func (x *Matrix) InitFromFloat(VVar [16]float32) *Matrix { | |
| 207 | 207 | ||
| 208 | 208 | cret := xMatrixInitFromFloat(x.GoPointer(), VVar) | |
| 209 | 209 | return cret | |
| @@ -610,11 +610,11 @@ func (x *Matrix) To2d(XxVar float64, YxVar float64, XyVar float64, YyVar float64 | |||
| 610 | 610 | return cret | |
| 611 | 611 | } | |
| 612 | 612 | ||
| 613 | - | var xMatrixToFloat func(uintptr, uintptr) | |
| 613 | + | var xMatrixToFloat func(uintptr, [16]float32) | |
| 614 | 614 | ||
| 615 | 615 | // Converts a #graphene_matrix_t to an array of floating point | |
| 616 | 616 | // values. | |
| 617 | - | func (x *Matrix) ToFloat(VVar uintptr) { | |
| 617 | + | func (x *Matrix) ToFloat(VVar [16]float32) { | |
| 618 | 618 | ||
| 619 | 619 | xMatrixToFloat(x.GoPointer(), VVar) | |
| 620 | 620 | ||
M v4/graphene/graphene-quad.go +3 -3
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | // The contents of a #graphene_quad_t are private and should never be | |
| 14 | 14 | // accessed directly. | |
| 15 | 15 | type Quad struct { | |
| 16 | - | Points uintptr | |
| 16 | + | Points [4]Point | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *Quad) GoPointer() uintptr { | |
| @@ -76,10 +76,10 @@ func (x *Quad) Init(P1Var *Point, P2Var *Point, P3Var *Point, P4Var *Point) *Qua | |||
| 76 | 76 | return cret | |
| 77 | 77 | } | |
| 78 | 78 | ||
| 79 | - | var xQuadInitFromPoints func(uintptr, uintptr) *Quad | |
| 79 | + | var xQuadInitFromPoints func(uintptr, [4]Point) *Quad | |
| 80 | 80 | ||
| 81 | 81 | // Initializes a #graphene_quad_t using an array of points. | |
| 82 | - | func (x *Quad) InitFromPoints(PointsVar uintptr) *Quad { | |
| 82 | + | func (x *Quad) InitFromPoints(PointsVar [4]Point) *Quad { | |
| 83 | 83 | ||
| 84 | 84 | cret := xQuadInitFromPoints(x.GoPointer(), PointsVar) | |
| 85 | 85 | return cret | |
M v4/graphene/graphene-rect.go +2 -2
| @@ -139,10 +139,10 @@ func (x *Rect) GetTopRight(PVar *Point) { | |||
| 139 | 139 | ||
| 140 | 140 | } | |
| 141 | 141 | ||
| 142 | - | var xRectGetVertices func(uintptr, uintptr) | |
| 142 | + | var xRectGetVertices func(uintptr, [4]Vec2) | |
| 143 | 143 | ||
| 144 | 144 | // Computes the four vertices of a #graphene_rect_t. | |
| 145 | - | func (x *Rect) GetVertices(VerticesVar uintptr) { | |
| 145 | + | func (x *Rect) GetVertices(VerticesVar [4]Vec2) { | |
| 146 | 146 | ||
| 147 | 147 | xRectGetVertices(x.GoPointer(), VerticesVar) | |
| 148 | 148 | ||
M v4/graphene/graphene-sphere.go +4 -4
| @@ -105,27 +105,27 @@ func (x *Sphere) Init(CenterVar *Point3D, RadiusVar float32) *Sphere { | |||
| 105 | 105 | return cret | |
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | - | var xSphereInitFromPoints func(uintptr, uint, uintptr, *Point3D) *Sphere | |
| 108 | + | var xSphereInitFromPoints func(uintptr, uint, []Point3D, *Point3D) *Sphere | |
| 109 | 109 | ||
| 110 | 110 | // Initializes the given #graphene_sphere_t using the given array | |
| 111 | 111 | // of 3D coordinates so that the sphere includes them. | |
| 112 | 112 | // | |
| 113 | 113 | // The center of the sphere can either be specified, or will be center | |
| 114 | 114 | // of the 3D volume that encompasses all @points. | |
| 115 | - | func (x *Sphere) InitFromPoints(NPointsVar uint, PointsVar uintptr, CenterVar *Point3D) *Sphere { | |
| 115 | + | func (x *Sphere) InitFromPoints(NPointsVar uint, PointsVar []Point3D, CenterVar *Point3D) *Sphere { | |
| 116 | 116 | ||
| 117 | 117 | cret := xSphereInitFromPoints(x.GoPointer(), NPointsVar, PointsVar, CenterVar) | |
| 118 | 118 | return cret | |
| 119 | 119 | } | |
| 120 | 120 | ||
| 121 | - | var xSphereInitFromVectors func(uintptr, uint, uintptr, *Point3D) *Sphere | |
| 121 | + | var xSphereInitFromVectors func(uintptr, uint, []Vec3, *Point3D) *Sphere | |
| 122 | 122 | ||
| 123 | 123 | // Initializes the given #graphene_sphere_t using the given array | |
| 124 | 124 | // of 3D coordinates so that the sphere includes them. | |
| 125 | 125 | // | |
| 126 | 126 | // The center of the sphere can either be specified, or will be center | |
| 127 | 127 | // of the 3D volume that encompasses all @vectors. | |
| 128 | - | func (x *Sphere) InitFromVectors(NVectorsVar uint, VectorsVar uintptr, CenterVar *Point3D) *Sphere { | |
| 128 | + | func (x *Sphere) InitFromVectors(NVectorsVar uint, VectorsVar []Vec3, CenterVar *Point3D) *Sphere { | |
| 129 | 129 | ||
| 130 | 130 | cret := xSphereInitFromVectors(x.GoPointer(), NVectorsVar, VectorsVar, CenterVar) | |
| 131 | 131 | return cret | |
M v4/graphene/graphene-triangle.go +2 -2
| @@ -170,12 +170,12 @@ func (x *Triangle) GetVertices(AVar *Vec3, BVar *Vec3, CVar *Vec3) { | |||
| 170 | 170 | ||
| 171 | 171 | } | |
| 172 | 172 | ||
| 173 | - | var xTriangleInitFromFloat func(uintptr, uintptr, uintptr, uintptr) *Triangle | |
| 173 | + | var xTriangleInitFromFloat func(uintptr, [3]float32, [3]float32, [3]float32) *Triangle | |
| 174 | 174 | ||
| 175 | 175 | // Initializes a #graphene_triangle_t using the three given arrays | |
| 176 | 176 | // of floating point values, each representing the coordinates of | |
| 177 | 177 | // a point in 3D space. | |
| 178 | - | func (x *Triangle) InitFromFloat(AVar uintptr, BVar uintptr, CVar uintptr) *Triangle { | |
| 178 | + | func (x *Triangle) InitFromFloat(AVar [3]float32, BVar [3]float32, CVar [3]float32) *Triangle { | |
| 179 | 179 | ||
| 180 | 180 | cret := xTriangleInitFromFloat(x.GoPointer(), AVar, BVar, CVar) | |
| 181 | 181 | return cret | |
M v4/graphene/graphene-vec2.go +4 -4
| @@ -110,10 +110,10 @@ func (x *Vec2) Init(XVar float32, YVar float32) *Vec2 { | |||
| 110 | 110 | return cret | |
| 111 | 111 | } | |
| 112 | 112 | ||
| 113 | - | var xVec2InitFromFloat func(uintptr, uintptr) *Vec2 | |
| 113 | + | var xVec2InitFromFloat func(uintptr, [2]float32) *Vec2 | |
| 114 | 114 | ||
| 115 | 115 | // Initializes @v with the contents of the given array. | |
| 116 | - | func (x *Vec2) InitFromFloat(SrcVar uintptr) *Vec2 { | |
| 116 | + | func (x *Vec2) InitFromFloat(SrcVar [2]float32) *Vec2 { | |
| 117 | 117 | ||
| 118 | 118 | cret := xVec2InitFromFloat(x.GoPointer(), SrcVar) | |
| 119 | 119 | return cret | |
| @@ -224,10 +224,10 @@ func (x *Vec2) Subtract(BVar *Vec2, ResVar *Vec2) { | |||
| 224 | 224 | ||
| 225 | 225 | } | |
| 226 | 226 | ||
| 227 | - | var xVec2ToFloat func(uintptr, uintptr) | |
| 227 | + | var xVec2ToFloat func(uintptr, [2]float32) | |
| 228 | 228 | ||
| 229 | 229 | // Stores the components of @v into an array. | |
| 230 | - | func (x *Vec2) ToFloat(DestVar uintptr) { | |
| 230 | + | func (x *Vec2) ToFloat(DestVar [2]float32) { | |
| 231 | 231 | ||
| 232 | 232 | xVec2ToFloat(x.GoPointer(), DestVar) | |
| 233 | 233 | ||
M v4/graphene/graphene-vec3.go +4 -4
| @@ -177,10 +177,10 @@ func (x *Vec3) Init(XVar float32, YVar float32, ZVar float32) *Vec3 { | |||
| 177 | 177 | return cret | |
| 178 | 178 | } | |
| 179 | 179 | ||
| 180 | - | var xVec3InitFromFloat func(uintptr, uintptr) *Vec3 | |
| 180 | + | var xVec3InitFromFloat func(uintptr, [3]float32) *Vec3 | |
| 181 | 181 | ||
| 182 | 182 | // Initializes a #graphene_vec3_t with the values from an array. | |
| 183 | - | func (x *Vec3) InitFromFloat(SrcVar uintptr) *Vec3 { | |
| 183 | + | func (x *Vec3) InitFromFloat(SrcVar [3]float32) *Vec3 { | |
| 184 | 184 | ||
| 185 | 185 | cret := xVec3InitFromFloat(x.GoPointer(), SrcVar) | |
| 186 | 186 | return cret | |
| @@ -291,10 +291,10 @@ func (x *Vec3) Subtract(BVar *Vec3, ResVar *Vec3) { | |||
| 291 | 291 | ||
| 292 | 292 | } | |
| 293 | 293 | ||
| 294 | - | var xVec3ToFloat func(uintptr, uintptr) | |
| 294 | + | var xVec3ToFloat func(uintptr, [3]float32) | |
| 295 | 295 | ||
| 296 | 296 | // Copies the components of a #graphene_vec3_t into the given array. | |
| 297 | - | func (x *Vec3) ToFloat(DestVar uintptr) { | |
| 297 | + | func (x *Vec3) ToFloat(DestVar [3]float32) { | |
| 298 | 298 | ||
| 299 | 299 | xVec3ToFloat(x.GoPointer(), DestVar) | |
| 300 | 300 | ||
M v4/graphene/graphene-vec4.go +4 -4
| @@ -147,10 +147,10 @@ func (x *Vec4) Init(XVar float32, YVar float32, ZVar float32, WVar float32) *Vec | |||
| 147 | 147 | return cret | |
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | - | var xVec4InitFromFloat func(uintptr, uintptr) *Vec4 | |
| 150 | + | var xVec4InitFromFloat func(uintptr, [4]float32) *Vec4 | |
| 151 | 151 | ||
| 152 | 152 | // Initializes a #graphene_vec4_t with the values inside the given array. | |
| 153 | - | func (x *Vec4) InitFromFloat(SrcVar uintptr) *Vec4 { | |
| 153 | + | func (x *Vec4) InitFromFloat(SrcVar [4]float32) *Vec4 { | |
| 154 | 154 | ||
| 155 | 155 | cret := xVec4InitFromFloat(x.GoPointer(), SrcVar) | |
| 156 | 156 | return cret | |
| @@ -281,11 +281,11 @@ func (x *Vec4) Subtract(BVar *Vec4, ResVar *Vec4) { | |||
| 281 | 281 | ||
| 282 | 282 | } | |
| 283 | 283 | ||
| 284 | - | var xVec4ToFloat func(uintptr, uintptr) | |
| 284 | + | var xVec4ToFloat func(uintptr, [4]float32) | |
| 285 | 285 | ||
| 286 | 286 | // Stores the components of the given #graphene_vec4_t into an array | |
| 287 | 287 | // of floating point values. | |
| 288 | - | func (x *Vec4) ToFloat(DestVar uintptr) { | |
| 288 | + | func (x *Vec4) ToFloat(DestVar [4]float32) { | |
| 289 | 289 | ||
| 290 | 290 | xVec4ToFloat(x.GoPointer(), DestVar) | |
| 291 | 291 | ||
M v4/gsk/gskrendernodeimpl.go +24 -24
| @@ -163,13 +163,13 @@ func BorderNodeNewFromInternalPtr(ptr uintptr) *BorderNode { | |||
| 163 | 163 | return cls | |
| 164 | 164 | } | |
| 165 | 165 | ||
| 166 | - | var xNewBorderNode func(*RoundedRect, uintptr, uintptr) uintptr | |
| 166 | + | var xNewBorderNode func(*RoundedRect, [4]float32, [4]gdk.RGBA) uintptr | |
| 167 | 167 | ||
| 168 | 168 | // Creates a `GskRenderNode` that will stroke a border rectangle inside the | |
| 169 | 169 | // given @outline. | |
| 170 | 170 | // | |
| 171 | 171 | // The 4 sides of the border can have different widths and colors. | |
| 172 | - | func NewBorderNode(OutlineVar *RoundedRect, BorderWidthVar uintptr, BorderColorVar uintptr) *BorderNode { | |
| 172 | + | func NewBorderNode(OutlineVar *RoundedRect, BorderWidthVar [4]float32, BorderColorVar [4]gdk.RGBA) *BorderNode { | |
| 173 | 173 | var cls *BorderNode | |
| 174 | 174 | ||
| 175 | 175 | cret := xNewBorderNode(OutlineVar, BorderWidthVar, BorderColorVar) | |
| @@ -200,10 +200,10 @@ func (x *BorderNode) GetOutline() *RoundedRect { | |||
| 200 | 200 | return cret | |
| 201 | 201 | } | |
| 202 | 202 | ||
| 203 | - | var xBorderNodeGetWidths func(uintptr) uintptr | |
| 203 | + | var xBorderNodeGetWidths func(uintptr) [4]float32 | |
| 204 | 204 | ||
| 205 | 205 | // Retrieves the stroke widths of the border. | |
| 206 | - | func (x *BorderNode) GetWidths() uintptr { | |
| 206 | + | func (x *BorderNode) GetWidths() [4]float32 { | |
| 207 | 207 | ||
| 208 | 208 | cret := xBorderNodeGetWidths(x.GoPointer()) | |
| 209 | 209 | return cret | |
| @@ -472,14 +472,14 @@ func ConicGradientNodeNewFromInternalPtr(ptr uintptr) *ConicGradientNode { | |||
| 472 | 472 | return cls | |
| 473 | 473 | } | |
| 474 | 474 | ||
| 475 | - | var xNewConicGradientNode func(*graphene.Rect, *graphene.Point, float32, uintptr, uint) uintptr | |
| 475 | + | var xNewConicGradientNode func(*graphene.Rect, *graphene.Point, float32, []ColorStop, uint) uintptr | |
| 476 | 476 | ||
| 477 | 477 | // Creates a `GskRenderNode` that draws a conic gradient. | |
| 478 | 478 | // | |
| 479 | 479 | // The conic gradient | |
| 480 | 480 | // starts around @center in the direction of @rotation. A rotation of 0 means | |
| 481 | 481 | // that the gradient points up. Color stops are then added clockwise. | |
| 482 | - | func NewConicGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, RotationVar float32, ColorStopsVar uintptr, NColorStopsVar uint) *ConicGradientNode { | |
| 482 | + | func NewConicGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, RotationVar float32, ColorStopsVar []ColorStop, NColorStopsVar uint) *ConicGradientNode { | |
| 483 | 483 | var cls *ConicGradientNode | |
| 484 | 484 | ||
| 485 | 485 | cret := xNewConicGradientNode(BoundsVar, CenterVar, RotationVar, ColorStopsVar, NColorStopsVar) | |
| @@ -515,10 +515,10 @@ func (x *ConicGradientNode) GetCenter() *graphene.Point { | |||
| 515 | 515 | return cret | |
| 516 | 516 | } | |
| 517 | 517 | ||
| 518 | - | var xConicGradientNodeGetColorStops func(uintptr, uint) uintptr | |
| 518 | + | var xConicGradientNodeGetColorStops func(uintptr, uint) []ColorStop | |
| 519 | 519 | ||
| 520 | 520 | // Retrieves the color stops in the gradient. | |
| 521 | - | func (x *ConicGradientNode) GetColorStops(NStopsVar uint) uintptr { | |
| 521 | + | func (x *ConicGradientNode) GetColorStops(NStopsVar uint) []ColorStop { | |
| 522 | 522 | ||
| 523 | 523 | cret := xConicGradientNodeGetColorStops(x.GoPointer(), NStopsVar) | |
| 524 | 524 | return cret | |
| @@ -960,11 +960,11 @@ func LinearGradientNodeNewFromInternalPtr(ptr uintptr) *LinearGradientNode { | |||
| 960 | 960 | return cls | |
| 961 | 961 | } | |
| 962 | 962 | ||
| 963 | - | var xNewLinearGradientNode func(*graphene.Rect, *graphene.Point, *graphene.Point, uintptr, uint) uintptr | |
| 963 | + | var xNewLinearGradientNode func(*graphene.Rect, *graphene.Point, *graphene.Point, []ColorStop, uint) uintptr | |
| 964 | 964 | ||
| 965 | 965 | // Creates a `GskRenderNode` that will create a linear gradient from the given | |
| 966 | 966 | // points and color stops, and render that into the area given by @bounds. | |
| 967 | - | func NewLinearGradientNode(BoundsVar *graphene.Rect, StartVar *graphene.Point, EndVar *graphene.Point, ColorStopsVar uintptr, NColorStopsVar uint) *LinearGradientNode { | |
| 967 | + | func NewLinearGradientNode(BoundsVar *graphene.Rect, StartVar *graphene.Point, EndVar *graphene.Point, ColorStopsVar []ColorStop, NColorStopsVar uint) *LinearGradientNode { | |
| 968 | 968 | var cls *LinearGradientNode | |
| 969 | 969 | ||
| 970 | 970 | cret := xNewLinearGradientNode(BoundsVar, StartVar, EndVar, ColorStopsVar, NColorStopsVar) | |
| @@ -977,10 +977,10 @@ func NewLinearGradientNode(BoundsVar *graphene.Rect, StartVar *graphene.Point, E | |||
| 977 | 977 | return cls | |
| 978 | 978 | } | |
| 979 | 979 | ||
| 980 | - | var xLinearGradientNodeGetColorStops func(uintptr, uint) uintptr | |
| 980 | + | var xLinearGradientNodeGetColorStops func(uintptr, uint) []ColorStop | |
| 981 | 981 | ||
| 982 | 982 | // Retrieves the color stops in the gradient. | |
| 983 | - | func (x *LinearGradientNode) GetColorStops(NStopsVar uint) uintptr { | |
| 983 | + | func (x *LinearGradientNode) GetColorStops(NStopsVar uint) []ColorStop { | |
| 984 | 984 | ||
| 985 | 985 | cret := xLinearGradientNodeGetColorStops(x.GoPointer(), NStopsVar) | |
| 986 | 986 | return cret | |
| @@ -1184,14 +1184,14 @@ func RadialGradientNodeNewFromInternalPtr(ptr uintptr) *RadialGradientNode { | |||
| 1184 | 1184 | return cls | |
| 1185 | 1185 | } | |
| 1186 | 1186 | ||
| 1187 | - | var xNewRadialGradientNode func(*graphene.Rect, *graphene.Point, float32, float32, float32, float32, uintptr, uint) uintptr | |
| 1187 | + | var xNewRadialGradientNode func(*graphene.Rect, *graphene.Point, float32, float32, float32, float32, []ColorStop, uint) uintptr | |
| 1188 | 1188 | ||
| 1189 | 1189 | // Creates a `GskRenderNode` that draws a radial gradient. | |
| 1190 | 1190 | // | |
| 1191 | 1191 | // The radial gradient | |
| 1192 | 1192 | // starts around @center. The size of the gradient is dictated by @hradius | |
| 1193 | 1193 | // in horizontal orientation and by @vradius in vertial orientation. | |
| 1194 | - | func NewRadialGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, ColorStopsVar uintptr, NColorStopsVar uint) *RadialGradientNode { | |
| 1194 | + | func NewRadialGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, ColorStopsVar []ColorStop, NColorStopsVar uint) *RadialGradientNode { | |
| 1195 | 1195 | var cls *RadialGradientNode | |
| 1196 | 1196 | ||
| 1197 | 1197 | cret := xNewRadialGradientNode(BoundsVar, CenterVar, HradiusVar, VradiusVar, StartVar, EndVar, ColorStopsVar, NColorStopsVar) | |
| @@ -1213,10 +1213,10 @@ func (x *RadialGradientNode) GetCenter() *graphene.Point { | |||
| 1213 | 1213 | return cret | |
| 1214 | 1214 | } | |
| 1215 | 1215 | ||
| 1216 | - | var xRadialGradientNodeGetColorStops func(uintptr, uint) uintptr | |
| 1216 | + | var xRadialGradientNodeGetColorStops func(uintptr, uint) []ColorStop | |
| 1217 | 1217 | ||
| 1218 | 1218 | // Retrieves the color stops in the gradient. | |
| 1219 | - | func (x *RadialGradientNode) GetColorStops(NStopsVar uint) uintptr { | |
| 1219 | + | func (x *RadialGradientNode) GetColorStops(NStopsVar uint) []ColorStop { | |
| 1220 | 1220 | ||
| 1221 | 1221 | cret := xRadialGradientNodeGetColorStops(x.GoPointer(), NStopsVar) | |
| 1222 | 1222 | return cret | |
| @@ -1348,12 +1348,12 @@ func RepeatingLinearGradientNodeNewFromInternalPtr(ptr uintptr) *RepeatingLinear | |||
| 1348 | 1348 | return cls | |
| 1349 | 1349 | } | |
| 1350 | 1350 | ||
| 1351 | - | var xNewRepeatingLinearGradientNode func(*graphene.Rect, *graphene.Point, *graphene.Point, uintptr, uint) uintptr | |
| 1351 | + | var xNewRepeatingLinearGradientNode func(*graphene.Rect, *graphene.Point, *graphene.Point, []ColorStop, uint) uintptr | |
| 1352 | 1352 | ||
| 1353 | 1353 | // Creates a `GskRenderNode` that will create a repeating linear gradient | |
| 1354 | 1354 | // from the given points and color stops, and render that into the area | |
| 1355 | 1355 | // given by @bounds. | |
| 1356 | - | func NewRepeatingLinearGradientNode(BoundsVar *graphene.Rect, StartVar *graphene.Point, EndVar *graphene.Point, ColorStopsVar uintptr, NColorStopsVar uint) *RepeatingLinearGradientNode { | |
| 1356 | + | func NewRepeatingLinearGradientNode(BoundsVar *graphene.Rect, StartVar *graphene.Point, EndVar *graphene.Point, ColorStopsVar []ColorStop, NColorStopsVar uint) *RepeatingLinearGradientNode { | |
| 1357 | 1357 | var cls *RepeatingLinearGradientNode | |
| 1358 | 1358 | ||
| 1359 | 1359 | cret := xNewRepeatingLinearGradientNode(BoundsVar, StartVar, EndVar, ColorStopsVar, NColorStopsVar) | |
| @@ -1385,14 +1385,14 @@ func RepeatingRadialGradientNodeNewFromInternalPtr(ptr uintptr) *RepeatingRadial | |||
| 1385 | 1385 | return cls | |
| 1386 | 1386 | } | |
| 1387 | 1387 | ||
| 1388 | - | var xNewRepeatingRadialGradientNode func(*graphene.Rect, *graphene.Point, float32, float32, float32, float32, uintptr, uint) uintptr | |
| 1388 | + | var xNewRepeatingRadialGradientNode func(*graphene.Rect, *graphene.Point, float32, float32, float32, float32, []ColorStop, uint) uintptr | |
| 1389 | 1389 | ||
| 1390 | 1390 | // Creates a `GskRenderNode` that draws a repeating radial gradient. | |
| 1391 | 1391 | // | |
| 1392 | 1392 | // The radial gradient starts around @center. The size of the gradient | |
| 1393 | 1393 | // is dictated by @hradius in horizontal orientation and by @vradius | |
| 1394 | 1394 | // in vertial orientation. | |
| 1395 | - | func NewRepeatingRadialGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, ColorStopsVar uintptr, NColorStopsVar uint) *RepeatingRadialGradientNode { | |
| 1395 | + | func NewRepeatingRadialGradientNode(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, ColorStopsVar []ColorStop, NColorStopsVar uint) *RepeatingRadialGradientNode { | |
| 1396 | 1396 | var cls *RepeatingRadialGradientNode | |
| 1397 | 1397 | ||
| 1398 | 1398 | cret := xNewRepeatingRadialGradientNode(BoundsVar, CenterVar, HradiusVar, VradiusVar, StartVar, EndVar, ColorStopsVar, NColorStopsVar) | |
| @@ -1486,11 +1486,11 @@ func ShadowNodeNewFromInternalPtr(ptr uintptr) *ShadowNode { | |||
| 1486 | 1486 | return cls | |
| 1487 | 1487 | } | |
| 1488 | 1488 | ||
| 1489 | - | var xNewShadowNode func(uintptr, uintptr, uint) uintptr | |
| 1489 | + | var xNewShadowNode func(uintptr, []Shadow, uint) uintptr | |
| 1490 | 1490 | ||
| 1491 | 1491 | // Creates a `GskRenderNode` that will draw a @child with the given | |
| 1492 | 1492 | // @shadows below it. | |
| 1493 | - | func NewShadowNode(ChildVar *RenderNode, ShadowsVar uintptr, NShadowsVar uint) *ShadowNode { | |
| 1493 | + | func NewShadowNode(ChildVar *RenderNode, ShadowsVar []Shadow, NShadowsVar uint) *ShadowNode { | |
| 1494 | 1494 | var cls *ShadowNode | |
| 1495 | 1495 | ||
| 1496 | 1496 | cret := xNewShadowNode(ChildVar.GoPointer(), ShadowsVar, NShadowsVar) | |
| @@ -1602,10 +1602,10 @@ func (x *TextNode) GetFont() *pango.Font { | |||
| 1602 | 1602 | return cls | |
| 1603 | 1603 | } | |
| 1604 | 1604 | ||
| 1605 | - | var xTextNodeGetGlyphs func(uintptr, uint) uintptr | |
| 1605 | + | var xTextNodeGetGlyphs func(uintptr, uint) []pango.GlyphInfo | |
| 1606 | 1606 | ||
| 1607 | 1607 | // Retrieves the glyph information in the @node. | |
| 1608 | - | func (x *TextNode) GetGlyphs(NGlyphsVar uint) uintptr { | |
| 1608 | + | func (x *TextNode) GetGlyphs(NGlyphsVar uint) []pango.GlyphInfo { | |
| 1609 | 1609 | ||
| 1610 | 1610 | cret := xTextNodeGetGlyphs(x.GoPointer(), NGlyphsVar) | |
| 1611 | 1611 | return cret | |
M v4/gsk/gskroundedrect.go +1 -1
| @@ -25,7 +25,7 @@ import ( | |||
| 25 | 25 | type RoundedRect struct { | |
| 26 | 26 | Bounds uintptr | |
| 27 | 27 | ||
| 28 | - | Corner uintptr | |
| 28 | + | Corner [4]graphene.Size | |
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | 31 | func (x *RoundedRect) GoPointer() uintptr { | |
M v4/gtk/gtkaboutdialog.go +9 -9
| @@ -155,21 +155,21 @@ func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar []string | |||
| 155 | 155 | ||
| 156 | 156 | } | |
| 157 | 157 | ||
| 158 | - | var xAboutDialogGetArtists func(uintptr) uintptr | |
| 158 | + | var xAboutDialogGetArtists func(uintptr) []string | |
| 159 | 159 | ||
| 160 | 160 | // Returns the names of the artists which are displayed | |
| 161 | 161 | // in the credits page. | |
| 162 | - | func (x *AboutDialog) GetArtists() uintptr { | |
| 162 | + | func (x *AboutDialog) GetArtists() []string { | |
| 163 | 163 | ||
| 164 | 164 | cret := xAboutDialogGetArtists(x.GoPointer()) | |
| 165 | 165 | return cret | |
| 166 | 166 | } | |
| 167 | 167 | ||
| 168 | - | var xAboutDialogGetAuthors func(uintptr) uintptr | |
| 168 | + | var xAboutDialogGetAuthors func(uintptr) []string | |
| 169 | 169 | ||
| 170 | 170 | // Returns the names of the authors which are displayed | |
| 171 | 171 | // in the credits page. | |
| 172 | - | func (x *AboutDialog) GetAuthors() uintptr { | |
| 172 | + | func (x *AboutDialog) GetAuthors() []string { | |
| 173 | 173 | ||
| 174 | 174 | cret := xAboutDialogGetAuthors(x.GoPointer()) | |
| 175 | 175 | return cret | |
| @@ -193,11 +193,11 @@ func (x *AboutDialog) GetCopyright() string { | |||
| 193 | 193 | return cret | |
| 194 | 194 | } | |
| 195 | 195 | ||
| 196 | - | var xAboutDialogGetDocumenters func(uintptr) uintptr | |
| 196 | + | var xAboutDialogGetDocumenters func(uintptr) []string | |
| 197 | 197 | ||
| 198 | 198 | // Returns the name of the documenters which are displayed | |
| 199 | 199 | // in the credits page. | |
| 200 | - | func (x *AboutDialog) GetDocumenters() uintptr { | |
| 200 | + | func (x *AboutDialog) GetDocumenters() []string { | |
| 201 | 201 | ||
| 202 | 202 | cret := xAboutDialogGetDocumenters(x.GoPointer()) | |
| 203 | 203 | return cret | |
| @@ -588,7 +588,7 @@ func (x *AboutDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 588 | 588 | // property change must be communicated to assistive technologies. | |
| 589 | 589 | // | |
| 590 | 590 | // This function is meant to be used by language bindings. | |
| 591 | - | func (x *AboutDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 591 | + | func (x *AboutDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 592 | 592 | ||
| 593 | 593 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 594 | 594 | ||
| @@ -624,7 +624,7 @@ func (x *AboutDialog) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 624 | 624 | // relation change must be communicated to assistive technologies. | |
| 625 | 625 | // | |
| 626 | 626 | // This function is meant to be used by language bindings. | |
| 627 | - | func (x *AboutDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 627 | + | func (x *AboutDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 628 | 628 | ||
| 629 | 629 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 630 | 630 | ||
| @@ -657,7 +657,7 @@ func (x *AboutDialog) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 657 | 657 | // state change must be communicated to assistive technologies. | |
| 658 | 658 | // | |
| 659 | 659 | // This function is meant to be used by language bindings. | |
| 660 | - | func (x *AboutDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 660 | + | func (x *AboutDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 661 | 661 | ||
| 662 | 662 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 663 | 663 | ||
M v4/gtk/gtkaccelgroup.go +2 -2
| @@ -108,7 +108,7 @@ func AcceleratorParse(AcceleratorVar string, AcceleratorKeyVar uint, Accelerator | |||
| 108 | 108 | return cret | |
| 109 | 109 | } | |
| 110 | 110 | ||
| 111 | - | var xAcceleratorParseWithKeycode func(string, uintptr, uint, uintptr, *gdk.ModifierType) bool | |
| 111 | + | var xAcceleratorParseWithKeycode func(string, uintptr, uint, []uint, *gdk.ModifierType) bool | |
| 112 | 112 | ||
| 113 | 113 | // Parses a string representing an accelerator. | |
| 114 | 114 | // | |
| @@ -124,7 +124,7 @@ var xAcceleratorParseWithKeycode func(string, uintptr, uint, uintptr, *gdk.Modif | |||
| 124 | 124 | // | |
| 125 | 125 | // If the parse fails, @accelerator_key, @accelerator_mods and | |
| 126 | 126 | // @accelerator_codes will be set to 0 (zero). | |
| 127 | - | func AcceleratorParseWithKeycode(AcceleratorVar string, DisplayVar *gdk.Display, AcceleratorKeyVar uint, AcceleratorCodesVar uintptr, AcceleratorModsVar *gdk.ModifierType) bool { | |
| 127 | + | func AcceleratorParseWithKeycode(AcceleratorVar string, DisplayVar *gdk.Display, AcceleratorKeyVar uint, AcceleratorCodesVar []uint, AcceleratorModsVar *gdk.ModifierType) bool { | |
| 128 | 128 | ||
| 129 | 129 | cret := xAcceleratorParseWithKeycode(AcceleratorVar, DisplayVar.GoPointer(), AcceleratorKeyVar, AcceleratorCodesVar, AcceleratorModsVar) | |
| 130 | 130 | return cret | |
M v4/gtk/gtkaccessible.go +9 -9
| @@ -40,11 +40,11 @@ type Accessible interface { | |||
| 40 | 40 | ResetRelation(RelationVar AccessibleRelation) | |
| 41 | 41 | ResetState(StateVar AccessibleState) | |
| 42 | 42 | UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) | |
| 43 | - | UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) | |
| 43 | + | UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) | |
| 44 | 44 | UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) | |
| 45 | - | UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) | |
| 45 | + | UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) | |
| 46 | 46 | UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) | |
| 47 | - | UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) | |
| 47 | + | UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) | |
| 48 | 48 | } | |
| 49 | 49 | type AccessibleBase struct { | |
| 50 | 50 | Ptr uintptr | |
| @@ -116,7 +116,7 @@ func (x *AccessibleBase) UpdateProperty(FirstPropertyVar AccessibleProperty, var | |||
| 116 | 116 | // property change must be communicated to assistive technologies. | |
| 117 | 117 | // | |
| 118 | 118 | // This function is meant to be used by language bindings. | |
| 119 | - | func (x *AccessibleBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 119 | + | func (x *AccessibleBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 120 | 120 | ||
| 121 | 121 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 122 | 122 | ||
| @@ -152,7 +152,7 @@ func (x *AccessibleBase) UpdateRelation(FirstRelationVar AccessibleRelation, var | |||
| 152 | 152 | // relation change must be communicated to assistive technologies. | |
| 153 | 153 | // | |
| 154 | 154 | // This function is meant to be used by language bindings. | |
| 155 | - | func (x *AccessibleBase) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 155 | + | func (x *AccessibleBase) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 156 | 156 | ||
| 157 | 157 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 158 | 158 | ||
| @@ -185,7 +185,7 @@ func (x *AccessibleBase) UpdateState(FirstStateVar AccessibleState, varArgs ...i | |||
| 185 | 185 | // state change must be communicated to assistive technologies. | |
| 186 | 186 | // | |
| 187 | 187 | // This function is meant to be used by language bindings. | |
| 188 | - | func (x *AccessibleBase) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 188 | + | func (x *AccessibleBase) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 189 | 189 | ||
| 190 | 190 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 191 | 191 | ||
| @@ -196,11 +196,11 @@ var XGtkAccessibleResetProperty func(uintptr, AccessibleProperty) | |||
| 196 | 196 | var XGtkAccessibleResetRelation func(uintptr, AccessibleRelation) | |
| 197 | 197 | var XGtkAccessibleResetState func(uintptr, AccessibleState) | |
| 198 | 198 | var XGtkAccessibleUpdateProperty func(uintptr, AccessibleProperty, ...interface{}) | |
| 199 | - | var XGtkAccessibleUpdatePropertyValue func(uintptr, int, uintptr, uintptr) | |
| 199 | + | var XGtkAccessibleUpdatePropertyValue func(uintptr, int, []AccessibleProperty, []gobject.Value) | |
| 200 | 200 | var XGtkAccessibleUpdateRelation func(uintptr, AccessibleRelation, ...interface{}) | |
| 201 | - | var XGtkAccessibleUpdateRelationValue func(uintptr, int, uintptr, uintptr) | |
| 201 | + | var XGtkAccessibleUpdateRelationValue func(uintptr, int, []AccessibleRelation, []gobject.Value) | |
| 202 | 202 | var XGtkAccessibleUpdateState func(uintptr, AccessibleState, ...interface{}) | |
| 203 | - | var XGtkAccessibleUpdateStateValue func(uintptr, int, uintptr, uintptr) | |
| 203 | + | var XGtkAccessibleUpdateStateValue func(uintptr, int, []AccessibleState, []gobject.Value) | |
| 204 | 204 | ||
| 205 | 205 | var xAccessiblePropertyInitValue func(AccessibleProperty, *gobject.Value) | |
| 206 | 206 | ||
M v4/gtk/gtkactionbar.go +3 -3
| @@ -217,7 +217,7 @@ func (x *ActionBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 217 | 217 | // property change must be communicated to assistive technologies. | |
| 218 | 218 | // | |
| 219 | 219 | // This function is meant to be used by language bindings. | |
| 220 | - | func (x *ActionBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 220 | + | func (x *ActionBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 221 | 221 | ||
| 222 | 222 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 223 | 223 | ||
| @@ -253,7 +253,7 @@ func (x *ActionBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 253 | 253 | // relation change must be communicated to assistive technologies. | |
| 254 | 254 | // | |
| 255 | 255 | // This function is meant to be used by language bindings. | |
| 256 | - | func (x *ActionBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 256 | + | func (x *ActionBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 257 | 257 | ||
| 258 | 258 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 259 | 259 | ||
| @@ -286,7 +286,7 @@ func (x *ActionBar) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 286 | 286 | // state change must be communicated to assistive technologies. | |
| 287 | 287 | // | |
| 288 | 288 | // This function is meant to be used by language bindings. | |
| 289 | - | func (x *ActionBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 289 | + | func (x *ActionBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 290 | 290 | ||
| 291 | 291 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 292 | 292 | ||
M v4/gtk/gtkappchooserbutton.go +3 -3
| @@ -317,7 +317,7 @@ func (x *AppChooserButton) UpdateProperty(FirstPropertyVar AccessibleProperty, v | |||
| 317 | 317 | // property change must be communicated to assistive technologies. | |
| 318 | 318 | // | |
| 319 | 319 | // This function is meant to be used by language bindings. | |
| 320 | - | func (x *AppChooserButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 320 | + | func (x *AppChooserButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 321 | 321 | ||
| 322 | 322 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 323 | 323 | ||
| @@ -353,7 +353,7 @@ func (x *AppChooserButton) UpdateRelation(FirstRelationVar AccessibleRelation, v | |||
| 353 | 353 | // relation change must be communicated to assistive technologies. | |
| 354 | 354 | // | |
| 355 | 355 | // This function is meant to be used by language bindings. | |
| 356 | - | func (x *AppChooserButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 356 | + | func (x *AppChooserButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 357 | 357 | ||
| 358 | 358 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 359 | 359 | ||
| @@ -386,7 +386,7 @@ func (x *AppChooserButton) UpdateState(FirstStateVar AccessibleState, varArgs .. | |||
| 386 | 386 | // state change must be communicated to assistive technologies. | |
| 387 | 387 | // | |
| 388 | 388 | // This function is meant to be used by language bindings. | |
| 389 | - | func (x *AppChooserButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 389 | + | func (x *AppChooserButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 390 | 390 | ||
| 391 | 391 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 392 | 392 | ||
M v4/gtk/gtkappchooserdialog.go +3 -3
| @@ -173,7 +173,7 @@ func (x *AppChooserDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, v | |||
| 173 | 173 | // property change must be communicated to assistive technologies. | |
| 174 | 174 | // | |
| 175 | 175 | // This function is meant to be used by language bindings. | |
| 176 | - | func (x *AppChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 176 | + | func (x *AppChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 177 | 177 | ||
| 178 | 178 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 179 | 179 | ||
| @@ -209,7 +209,7 @@ func (x *AppChooserDialog) UpdateRelation(FirstRelationVar AccessibleRelation, v | |||
| 209 | 209 | // relation change must be communicated to assistive technologies. | |
| 210 | 210 | // | |
| 211 | 211 | // This function is meant to be used by language bindings. | |
| 212 | - | func (x *AppChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 212 | + | func (x *AppChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 213 | 213 | ||
| 214 | 214 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 215 | 215 | ||
| @@ -242,7 +242,7 @@ func (x *AppChooserDialog) UpdateState(FirstStateVar AccessibleState, varArgs .. | |||
| 242 | 242 | // state change must be communicated to assistive technologies. | |
| 243 | 243 | // | |
| 244 | 244 | // This function is meant to be used by language bindings. | |
| 245 | - | func (x *AppChooserDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 245 | + | func (x *AppChooserDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 246 | 246 | ||
| 247 | 247 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 248 | 248 | ||
M v4/gtk/gtkappchooserwidget.go +3 -3
| @@ -292,7 +292,7 @@ func (x *AppChooserWidget) UpdateProperty(FirstPropertyVar AccessibleProperty, v | |||
| 292 | 292 | // property change must be communicated to assistive technologies. | |
| 293 | 293 | // | |
| 294 | 294 | // This function is meant to be used by language bindings. | |
| 295 | - | func (x *AppChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 295 | + | func (x *AppChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 296 | 296 | ||
| 297 | 297 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 298 | 298 | ||
| @@ -328,7 +328,7 @@ func (x *AppChooserWidget) UpdateRelation(FirstRelationVar AccessibleRelation, v | |||
| 328 | 328 | // relation change must be communicated to assistive technologies. | |
| 329 | 329 | // | |
| 330 | 330 | // This function is meant to be used by language bindings. | |
| 331 | - | func (x *AppChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 331 | + | func (x *AppChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 332 | 332 | ||
| 333 | 333 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 334 | 334 | ||
| @@ -361,7 +361,7 @@ func (x *AppChooserWidget) UpdateState(FirstStateVar AccessibleState, varArgs .. | |||
| 361 | 361 | // state change must be communicated to assistive technologies. | |
| 362 | 362 | // | |
| 363 | 363 | // This function is meant to be used by language bindings. | |
| 364 | - | func (x *AppChooserWidget) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 364 | + | func (x *AppChooserWidget) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 365 | 365 | ||
| 366 | 366 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 367 | 367 | ||
M v4/gtk/gtkapplication.go +5 -5
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type ApplicationClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *ApplicationClass) GoPointer() uintptr { | |
| @@ -360,7 +360,7 @@ func (x *Application) RemoveWindow(WindowVar *Window) { | |||
| 360 | 360 | ||
| 361 | 361 | } | |
| 362 | 362 | ||
| 363 | - | var xApplicationSetAccelsForAction func(uintptr, string, uintptr) | |
| 363 | + | var xApplicationSetAccelsForAction func(uintptr, string, []string) | |
| 364 | 364 | ||
| 365 | 365 | // Sets zero or more keyboard accelerators that will trigger the | |
| 366 | 366 | // given action. | |
| @@ -373,7 +373,7 @@ var xApplicationSetAccelsForAction func(uintptr, string, uintptr) | |||
| 373 | 373 | // | |
| 374 | 374 | // For the `detailed_action_name`, see `g_action_parse_detailed_name()` and | |
| 375 | 375 | // `g_action_print_detailed_name()`. | |
| 376 | - | func (x *Application) SetAccelsForAction(DetailedActionNameVar string, AccelsVar uintptr) { | |
| 376 | + | func (x *Application) SetAccelsForAction(DetailedActionNameVar string, AccelsVar []string) { | |
| 377 | 377 | ||
| 378 | 378 | xApplicationSetAccelsForAction(x.GoPointer(), DetailedActionNameVar, AccelsVar) | |
| 379 | 379 | ||
| @@ -687,7 +687,7 @@ func (x *Application) HasAction(ActionNameVar string) bool { | |||
| 687 | 687 | // | |
| 688 | 688 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 689 | 689 | // it is no longer required. | |
| 690 | - | func (x *Application) ListActions() uintptr { | |
| 690 | + | func (x *Application) ListActions() []string { | |
| 691 | 691 | ||
| 692 | 692 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 693 | 693 | return cret | |
| @@ -781,7 +781,7 @@ func (x *Application) AddAction(ActionVar gio.Action) { | |||
| 781 | 781 | // } | |
| 782 | 782 | // | |
| 783 | 783 | // ]| | |
| 784 | - | func (x *Application) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 784 | + | func (x *Application) AddActionEntries(EntriesVar []gio.ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 785 | 785 | ||
| 786 | 786 | gio.XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 787 | 787 | ||
M v4/gtk/gtkapplicationwindow.go +6 -6
| @@ -16,7 +16,7 @@ import ( | |||
| 16 | 16 | type ApplicationWindowClass struct { | |
| 17 | 17 | ParentClass uintptr | |
| 18 | 18 | ||
| 19 | - | Padding uintptr | |
| 19 | + | Padding [8]uintptr | |
| 20 | 20 | } | |
| 21 | 21 | ||
| 22 | 22 | func (x *ApplicationWindowClass) GoPointer() uintptr { | |
| @@ -386,7 +386,7 @@ func (x *ApplicationWindow) HasAction(ActionNameVar string) bool { | |||
| 386 | 386 | // | |
| 387 | 387 | // The caller is responsible for freeing the list with g_strfreev() when | |
| 388 | 388 | // it is no longer required. | |
| 389 | - | func (x *ApplicationWindow) ListActions() uintptr { | |
| 389 | + | func (x *ApplicationWindow) ListActions() []string { | |
| 390 | 390 | ||
| 391 | 391 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 392 | 392 | return cret | |
| @@ -480,7 +480,7 @@ func (x *ApplicationWindow) AddAction(ActionVar gio.Action) { | |||
| 480 | 480 | // } | |
| 481 | 481 | // | |
| 482 | 482 | // ]| | |
| 483 | - | func (x *ApplicationWindow) AddActionEntries(EntriesVar uintptr, NEntriesVar int, UserDataVar uintptr) { | |
| 483 | + | func (x *ApplicationWindow) AddActionEntries(EntriesVar []gio.ActionEntry, NEntriesVar int, UserDataVar uintptr) { | |
| 484 | 484 | ||
| 485 | 485 | gio.XGActionMapAddActionEntries(x.GoPointer(), EntriesVar, NEntriesVar, UserDataVar) | |
| 486 | 486 | ||
| @@ -570,7 +570,7 @@ func (x *ApplicationWindow) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 570 | 570 | // property change must be communicated to assistive technologies. | |
| 571 | 571 | // | |
| 572 | 572 | // This function is meant to be used by language bindings. | |
| 573 | - | func (x *ApplicationWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 573 | + | func (x *ApplicationWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 574 | 574 | ||
| 575 | 575 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 576 | 576 | ||
| @@ -606,7 +606,7 @@ func (x *ApplicationWindow) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 606 | 606 | // relation change must be communicated to assistive technologies. | |
| 607 | 607 | // | |
| 608 | 608 | // This function is meant to be used by language bindings. | |
| 609 | - | func (x *ApplicationWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 609 | + | func (x *ApplicationWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 610 | 610 | ||
| 611 | 611 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 612 | 612 | ||
| @@ -639,7 +639,7 @@ func (x *ApplicationWindow) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 639 | 639 | // state change must be communicated to assistive technologies. | |
| 640 | 640 | // | |
| 641 | 641 | // This function is meant to be used by language bindings. | |
| 642 | - | func (x *ApplicationWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 642 | + | func (x *ApplicationWindow) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 643 | 643 | ||
| 644 | 644 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 645 | 645 | ||
M v4/gtk/gtkaspectframe.go +3 -3
| @@ -213,7 +213,7 @@ func (x *AspectFrame) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 213 | 213 | // property change must be communicated to assistive technologies. | |
| 214 | 214 | // | |
| 215 | 215 | // This function is meant to be used by language bindings. | |
| 216 | - | func (x *AspectFrame) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 216 | + | func (x *AspectFrame) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 217 | 217 | ||
| 218 | 218 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 219 | 219 | ||
| @@ -249,7 +249,7 @@ func (x *AspectFrame) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 249 | 249 | // relation change must be communicated to assistive technologies. | |
| 250 | 250 | // | |
| 251 | 251 | // This function is meant to be used by language bindings. | |
| 252 | - | func (x *AspectFrame) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 252 | + | func (x *AspectFrame) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 253 | 253 | ||
| 254 | 254 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 255 | 255 | ||
| @@ -282,7 +282,7 @@ func (x *AspectFrame) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 282 | 282 | // state change must be communicated to assistive technologies. | |
| 283 | 283 | // | |
| 284 | 284 | // This function is meant to be used by language bindings. | |
| 285 | - | func (x *AspectFrame) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 285 | + | func (x *AspectFrame) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 286 | 286 | ||
| 287 | 287 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 288 | 288 | ||
M v4/gtk/gtkassistant.go +3 -3
| @@ -580,7 +580,7 @@ func (x *Assistant) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 580 | 580 | // property change must be communicated to assistive technologies. | |
| 581 | 581 | // | |
| 582 | 582 | // This function is meant to be used by language bindings. | |
| 583 | - | func (x *Assistant) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 583 | + | func (x *Assistant) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 584 | 584 | ||
| 585 | 585 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 586 | 586 | ||
| @@ -616,7 +616,7 @@ func (x *Assistant) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 616 | 616 | // relation change must be communicated to assistive technologies. | |
| 617 | 617 | // | |
| 618 | 618 | // This function is meant to be used by language bindings. | |
| 619 | - | func (x *Assistant) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 619 | + | func (x *Assistant) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 620 | 620 | ||
| 621 | 621 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 622 | 622 | ||
| @@ -649,7 +649,7 @@ func (x *Assistant) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 649 | 649 | // state change must be communicated to assistive technologies. | |
| 650 | 650 | // | |
| 651 | 651 | // This function is meant to be used by language bindings. | |
| 652 | - | func (x *Assistant) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 652 | + | func (x *Assistant) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 653 | 653 | ||
| 654 | 654 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 655 | 655 | ||
M v4/gtk/gtkbitset.go +1 -1
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | // [func@Gtk.BitsetIter.init_first], [func@Gtk.BitsetIter.init_last] | |
| 16 | 16 | // or [func@Gtk.BitsetIter.init_at]. | |
| 17 | 17 | type BitsetIter struct { | |
| 18 | - | PrivateData uintptr | |
| 18 | + | PrivateData [10]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *BitsetIter) GoPointer() uintptr { | |
M v4/gtk/gtkbookmarklist.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type BookmarkListClass struct { | |
| @@ -147,7 +148,7 @@ func (x *BookmarkList) GetItem(PositionVar uint) uintptr { | |||
| 147 | 148 | // | |
| 148 | 149 | // The item type of a #GListModel can not change during the life of the | |
| 149 | 150 | // model. | |
| 150 | - | func (x *BookmarkList) GetItemType() []interface{} { | |
| 151 | + | func (x *BookmarkList) GetItemType() types.GType { | |
| 151 | 152 | ||
| 152 | 153 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 153 | 154 | return cret | |
M v4/gtk/gtkbox.go +4 -4
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | type BoxClass struct { | |
| 13 | 13 | ParentClass uintptr | |
| 14 | 14 | ||
| 15 | - | Padding uintptr | |
| 15 | + | Padding [8]uintptr | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func (x *BoxClass) GoPointer() uintptr { | |
| @@ -261,7 +261,7 @@ func (x *Box) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...int | |||
| 261 | 261 | // property change must be communicated to assistive technologies. | |
| 262 | 262 | // | |
| 263 | 263 | // This function is meant to be used by language bindings. | |
| 264 | - | func (x *Box) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 264 | + | func (x *Box) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 265 | 265 | ||
| 266 | 266 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 267 | 267 | ||
| @@ -297,7 +297,7 @@ func (x *Box) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...int | |||
| 297 | 297 | // relation change must be communicated to assistive technologies. | |
| 298 | 298 | // | |
| 299 | 299 | // This function is meant to be used by language bindings. | |
| 300 | - | func (x *Box) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 300 | + | func (x *Box) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 301 | 301 | ||
| 302 | 302 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 303 | 303 | ||
| @@ -330,7 +330,7 @@ func (x *Box) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) | |||
| 330 | 330 | // state change must be communicated to assistive technologies. | |
| 331 | 331 | // | |
| 332 | 332 | // This function is meant to be used by language bindings. | |
| 333 | - | func (x *Box) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 333 | + | func (x *Box) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 334 | 334 | ||
| 335 | 335 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 336 | 336 | ||
M v4/gtk/gtkbuildable.go +3 -3
| @@ -40,7 +40,7 @@ func (x *BuildableParseContext) GetElement() string { | |||
| 40 | 40 | return cret | |
| 41 | 41 | } | |
| 42 | 42 | ||
| 43 | - | var xBuildableParseContextGetElementStack func(uintptr) uintptr | |
| 43 | + | var xBuildableParseContextGetElementStack func(uintptr) []string | |
| 44 | 44 | ||
| 45 | 45 | // Retrieves the element stack from the internal state of the parser. | |
| 46 | 46 | // | |
| @@ -53,7 +53,7 @@ var xBuildableParseContextGetElementStack func(uintptr) uintptr | |||
| 53 | 53 | // end_element handlers where gtk_buildable_parse_context_get_element() | |
| 54 | 54 | // would merely return the name of the element that is being | |
| 55 | 55 | // processed. | |
| 56 | - | func (x *BuildableParseContext) GetElementStack() uintptr { | |
| 56 | + | func (x *BuildableParseContext) GetElementStack() []string { | |
| 57 | 57 | ||
| 58 | 58 | cret := xBuildableParseContextGetElementStack(x.GoPointer()) | |
| 59 | 59 | return cret | |
| @@ -131,7 +131,7 @@ func (x *BuildableParseContext) Push(ParserVar *BuildableParser, UserDataVar uin | |||
| 131 | 131 | ||
| 132 | 132 | // A sub-parser for `GtkBuildable` implementations. | |
| 133 | 133 | type BuildableParser struct { | |
| 134 | - | Padding uintptr | |
| 134 | + | Padding [4]uintptr | |
| 135 | 135 | } | |
| 136 | 136 | ||
| 137 | 137 | func (x *BuildableParser) GoPointer() uintptr { | |
M v4/gtk/gtkbuilder.go +7 -6
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type BuilderClass struct { | |
| @@ -534,14 +535,14 @@ func (x *Builder) ExposeObject(NameVar string, ObjectVar *gobject.Object) { | |||
| 534 | 535 | ||
| 535 | 536 | } | |
| 536 | 537 | ||
| 537 | - | var xBuilderExtendWithTemplate func(uintptr, uintptr, []interface{}, string, int, **glib.Error) bool | |
| 538 | + | var xBuilderExtendWithTemplate func(uintptr, uintptr, types.GType, string, int, **glib.Error) bool | |
| 538 | 539 | ||
| 539 | 540 | // Main private entry point for building composite components | |
| 540 | 541 | // from template XML. | |
| 541 | 542 | // | |
| 542 | 543 | // Most likely you do not need to call this function in applications as | |
| 543 | 544 | // templates are handled by `GtkWidget`. | |
| 544 | - | func (x *Builder) ExtendWithTemplate(ObjectVar *gobject.Object, TemplateTypeVar []interface{}, BufferVar string, LengthVar int) (bool, error) { | |
| 545 | + | func (x *Builder) ExtendWithTemplate(ObjectVar *gobject.Object, TemplateTypeVar types.GType, BufferVar string, LengthVar int) (bool, error) { | |
| 545 | 546 | var cerr *glib.Error | |
| 546 | 547 | ||
| 547 | 548 | cret := xBuilderExtendWithTemplate(x.GoPointer(), ObjectVar.GoPointer(), TemplateTypeVar, BufferVar, LengthVar, &cerr) | |
| @@ -627,14 +628,14 @@ func (x *Builder) GetTranslationDomain() string { | |||
| 627 | 628 | return cret | |
| 628 | 629 | } | |
| 629 | 630 | ||
| 630 | - | var xBuilderGetTypeFromName func(uintptr, string) []interface{} | |
| 631 | + | var xBuilderGetTypeFromName func(uintptr, string) types.GType | |
| 631 | 632 | ||
| 632 | 633 | // Looks up a type by name. | |
| 633 | 634 | // | |
| 634 | 635 | // This is using the virtual function that `GtkBuilder` has | |
| 635 | 636 | // for that purpose. This is mainly used when implementing | |
| 636 | 637 | // the `GtkBuildable` interface on a type. | |
| 637 | - | func (x *Builder) GetTypeFromName(TypeNameVar string) []interface{} { | |
| 638 | + | func (x *Builder) GetTypeFromName(TypeNameVar string) types.GType { | |
| 638 | 639 | ||
| 639 | 640 | cret := xBuilderGetTypeFromName(x.GoPointer(), TypeNameVar) | |
| 640 | 641 | return cret | |
| @@ -701,7 +702,7 @@ func (x *Builder) ValueFromString(PspecVar *gobject.ParamSpec, StringVar string, | |||
| 701 | 702 | ||
| 702 | 703 | } | |
| 703 | 704 | ||
| 704 | - | var xBuilderValueFromStringType func(uintptr, []interface{}, string, *gobject.Value, **glib.Error) bool | |
| 705 | + | var xBuilderValueFromStringType func(uintptr, types.GType, string, *gobject.Value, **glib.Error) bool | |
| 705 | 706 | ||
| 706 | 707 | // Demarshals a value from a string. | |
| 707 | 708 | // | |
| @@ -713,7 +714,7 @@ var xBuilderValueFromStringType func(uintptr, []interface{}, string, *gobject.Va | |||
| 713 | 714 | // | |
| 714 | 715 | // Upon errors %FALSE will be returned and @error will be | |
| 715 | 716 | // assigned a `GError` from the %GTK_BUILDER_ERROR domain. | |
| 716 | - | func (x *Builder) ValueFromStringType(TypeVar []interface{}, StringVar string, ValueVar *gobject.Value) (bool, error) { | |
| 717 | + | func (x *Builder) ValueFromStringType(TypeVar types.GType, StringVar string, ValueVar *gobject.Value) (bool, error) { | |
| 717 | 718 | var cerr *glib.Error | |
| 718 | 719 | ||
| 719 | 720 | cret := xBuilderValueFromStringType(x.GoPointer(), TypeVar, StringVar, ValueVar, &cerr) | |
M v4/gtk/gtkbutton.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type ButtonClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *ButtonClass) GoPointer() uintptr { | |
| @@ -379,7 +379,7 @@ func (x *Button) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ... | |||
| 379 | 379 | // property change must be communicated to assistive technologies. | |
| 380 | 380 | // | |
| 381 | 381 | // This function is meant to be used by language bindings. | |
| 382 | - | func (x *Button) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 382 | + | func (x *Button) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 383 | 383 | ||
| 384 | 384 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 385 | 385 | ||
| @@ -415,7 +415,7 @@ func (x *Button) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ... | |||
| 415 | 415 | // relation change must be communicated to assistive technologies. | |
| 416 | 416 | // | |
| 417 | 417 | // This function is meant to be used by language bindings. | |
| 418 | - | func (x *Button) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 418 | + | func (x *Button) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 419 | 419 | ||
| 420 | 420 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 421 | 421 | ||
| @@ -448,7 +448,7 @@ func (x *Button) UpdateState(FirstStateVar AccessibleState, varArgs ...interface | |||
| 448 | 448 | // state change must be communicated to assistive technologies. | |
| 449 | 449 | // | |
| 450 | 450 | // This function is meant to be used by language bindings. | |
| 451 | - | func (x *Button) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 451 | + | func (x *Button) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 452 | 452 | ||
| 453 | 453 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 454 | 454 | ||
M v4/gtk/gtkcalendar.go +3 -3
| @@ -379,7 +379,7 @@ func (x *Calendar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 379 | 379 | // property change must be communicated to assistive technologies. | |
| 380 | 380 | // | |
| 381 | 381 | // This function is meant to be used by language bindings. | |
| 382 | - | func (x *Calendar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 382 | + | func (x *Calendar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 383 | 383 | ||
| 384 | 384 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 385 | 385 | ||
| @@ -415,7 +415,7 @@ func (x *Calendar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 415 | 415 | // relation change must be communicated to assistive technologies. | |
| 416 | 416 | // | |
| 417 | 417 | // This function is meant to be used by language bindings. | |
| 418 | - | func (x *Calendar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 418 | + | func (x *Calendar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 419 | 419 | ||
| 420 | 420 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 421 | 421 | ||
| @@ -448,7 +448,7 @@ func (x *Calendar) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 448 | 448 | // state change must be communicated to assistive technologies. | |
| 449 | 449 | // | |
| 450 | 450 | // This function is meant to be used by language bindings. | |
| 451 | - | func (x *Calendar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 451 | + | func (x *Calendar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 452 | 452 | ||
| 453 | 453 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 454 | 454 | ||
M v4/gtk/gtkcellarea.go +1 -1
| @@ -23,7 +23,7 @@ type CellCallback func(uintptr, uintptr) bool | |||
| 23 | 23 | type CellAreaClass struct { | |
| 24 | 24 | ParentClass uintptr | |
| 25 | 25 | ||
| 26 | - | Padding uintptr | |
| 26 | + | Padding [8]uintptr | |
| 27 | 27 | } | |
| 28 | 28 | ||
| 29 | 29 | func (x *CellAreaClass) GoPointer() uintptr { | |
M v4/gtk/gtkcellareacontext.go +1 -1
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | type CellAreaContextClass struct { | |
| 13 | 13 | ParentClass uintptr | |
| 14 | 14 | ||
| 15 | - | Padding uintptr | |
| 15 | + | Padding [8]uintptr | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func (x *CellAreaContextClass) GoPointer() uintptr { | |
M v4/gtk/gtkcellrenderer.go +1 -1
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type CellRendererClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *CellRendererClass) GoPointer() uintptr { | |
M v4/gtk/gtkcellrenderertext.go +1 -1
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type CellRendererTextClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *CellRendererTextClass) GoPointer() uintptr { | |
M v4/gtk/gtkcellview.go +3 -3
| @@ -298,7 +298,7 @@ func (x *CellView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 298 | 298 | // property change must be communicated to assistive technologies. | |
| 299 | 299 | // | |
| 300 | 300 | // This function is meant to be used by language bindings. | |
| 301 | - | func (x *CellView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 301 | + | func (x *CellView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 302 | 302 | ||
| 303 | 303 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 304 | 304 | ||
| @@ -334,7 +334,7 @@ func (x *CellView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 334 | 334 | // relation change must be communicated to assistive technologies. | |
| 335 | 335 | // | |
| 336 | 336 | // This function is meant to be used by language bindings. | |
| 337 | - | func (x *CellView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 337 | + | func (x *CellView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 338 | 338 | ||
| 339 | 339 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 340 | 340 | ||
| @@ -367,7 +367,7 @@ func (x *CellView) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 367 | 367 | // state change must be communicated to assistive technologies. | |
| 368 | 368 | // | |
| 369 | 369 | // This function is meant to be used by language bindings. | |
| 370 | - | func (x *CellView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 370 | + | func (x *CellView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 371 | 371 | ||
| 372 | 372 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 373 | 373 | ||
M v4/gtk/gtkcenterbox.go +3 -3
| @@ -249,7 +249,7 @@ func (x *CenterBox) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 249 | 249 | // property change must be communicated to assistive technologies. | |
| 250 | 250 | // | |
| 251 | 251 | // This function is meant to be used by language bindings. | |
| 252 | - | func (x *CenterBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 252 | + | func (x *CenterBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 253 | 253 | ||
| 254 | 254 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 255 | 255 | ||
| @@ -285,7 +285,7 @@ func (x *CenterBox) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 285 | 285 | // relation change must be communicated to assistive technologies. | |
| 286 | 286 | // | |
| 287 | 287 | // This function is meant to be used by language bindings. | |
| 288 | - | func (x *CenterBox) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 288 | + | func (x *CenterBox) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 289 | 289 | ||
| 290 | 290 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 291 | 291 | ||
| @@ -318,7 +318,7 @@ func (x *CenterBox) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 318 | 318 | // state change must be communicated to assistive technologies. | |
| 319 | 319 | // | |
| 320 | 320 | // This function is meant to be used by language bindings. | |
| 321 | - | func (x *CenterBox) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 321 | + | func (x *CenterBox) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 322 | 322 | ||
| 323 | 323 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 324 | 324 | ||
M v4/gtk/gtkcheckbutton.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type CheckButtonClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [7]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *CheckButtonClass) GoPointer() uintptr { | |
| @@ -384,7 +384,7 @@ func (x *CheckButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 384 | 384 | // property change must be communicated to assistive technologies. | |
| 385 | 385 | // | |
| 386 | 386 | // This function is meant to be used by language bindings. | |
| 387 | - | func (x *CheckButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 387 | + | func (x *CheckButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 388 | 388 | ||
| 389 | 389 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 390 | 390 | ||
| @@ -420,7 +420,7 @@ func (x *CheckButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 420 | 420 | // relation change must be communicated to assistive technologies. | |
| 421 | 421 | // | |
| 422 | 422 | // This function is meant to be used by language bindings. | |
| 423 | - | func (x *CheckButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 423 | + | func (x *CheckButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 424 | 424 | ||
| 425 | 425 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 426 | 426 | ||
| @@ -453,7 +453,7 @@ func (x *CheckButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 453 | 453 | // state change must be communicated to assistive technologies. | |
| 454 | 454 | // | |
| 455 | 455 | // This function is meant to be used by language bindings. | |
| 456 | - | func (x *CheckButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 456 | + | func (x *CheckButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 457 | 457 | ||
| 458 | 458 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 459 | 459 | ||
M v4/gtk/gtkcolorbutton.go +4 -4
| @@ -233,7 +233,7 @@ func (x *ColorButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 233 | 233 | // property change must be communicated to assistive technologies. | |
| 234 | 234 | // | |
| 235 | 235 | // This function is meant to be used by language bindings. | |
| 236 | - | func (x *ColorButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 236 | + | func (x *ColorButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 237 | 237 | ||
| 238 | 238 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 239 | 239 | ||
| @@ -269,7 +269,7 @@ func (x *ColorButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 269 | 269 | // relation change must be communicated to assistive technologies. | |
| 270 | 270 | // | |
| 271 | 271 | // This function is meant to be used by language bindings. | |
| 272 | - | func (x *ColorButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 272 | + | func (x *ColorButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 273 | 273 | ||
| 274 | 274 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 275 | 275 | ||
| @@ -302,7 +302,7 @@ func (x *ColorButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 302 | 302 | // state change must be communicated to assistive technologies. | |
| 303 | 303 | // | |
| 304 | 304 | // This function is meant to be used by language bindings. | |
| 305 | - | func (x *ColorButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 305 | + | func (x *ColorButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 306 | 306 | ||
| 307 | 307 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 308 | 308 | ||
| @@ -335,7 +335,7 @@ func (x *ColorButton) GetBuildableId() string { | |||
| 335 | 335 | // of removing the default color palette from the color chooser. | |
| 336 | 336 | // | |
| 337 | 337 | // If @colors is %NULL, removes all previously added palettes. | |
| 338 | - | func (x *ColorButton) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar uintptr) { | |
| 338 | + | func (x *ColorButton) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar []gdk.RGBA) { | |
| 339 | 339 | ||
| 340 | 340 | XGtkColorChooserAddPalette(x.GoPointer(), OrientationVar, ColorsPerLineVar, NColorsVar, ColorsVar) | |
| 341 | 341 | ||
M v4/gtk/gtkcolorchooser.go +4 -4
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | type ColorChooserInterface struct { | |
| 13 | 13 | BaseInterface uintptr | |
| 14 | 14 | ||
| 15 | - | Padding uintptr | |
| 15 | + | Padding [12]uintptr | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func (x *ColorChooserInterface) GoPointer() uintptr { | |
| @@ -30,7 +30,7 @@ func (x *ColorChooserInterface) GoPointer() uintptr { | |||
| 30 | 30 | type ColorChooser interface { | |
| 31 | 31 | GoPointer() uintptr | |
| 32 | 32 | SetGoPointer(uintptr) | |
| 33 | - | AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar uintptr) | |
| 33 | + | AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar []gdk.RGBA) | |
| 34 | 34 | GetRgba(ColorVar *gdk.RGBA) | |
| 35 | 35 | GetUseAlpha() bool | |
| 36 | 36 | SetRgba(ColorVar *gdk.RGBA) | |
| @@ -65,7 +65,7 @@ func (x *ColorChooserBase) SetGoPointer(ptr uintptr) { | |||
| 65 | 65 | // of removing the default color palette from the color chooser. | |
| 66 | 66 | // | |
| 67 | 67 | // If @colors is %NULL, removes all previously added palettes. | |
| 68 | - | func (x *ColorChooserBase) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar uintptr) { | |
| 68 | + | func (x *ColorChooserBase) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar []gdk.RGBA) { | |
| 69 | 69 | ||
| 70 | 70 | XGtkColorChooserAddPalette(x.GoPointer(), OrientationVar, ColorsPerLineVar, NColorsVar, ColorsVar) | |
| 71 | 71 | ||
| @@ -99,7 +99,7 @@ func (x *ColorChooserBase) SetUseAlpha(UseAlphaVar bool) { | |||
| 99 | 99 | ||
| 100 | 100 | } | |
| 101 | 101 | ||
| 102 | - | var XGtkColorChooserAddPalette func(uintptr, Orientation, int, int, uintptr) | |
| 102 | + | var XGtkColorChooserAddPalette func(uintptr, Orientation, int, int, []gdk.RGBA) | |
| 103 | 103 | var XGtkColorChooserGetRgba func(uintptr, *gdk.RGBA) | |
| 104 | 104 | var XGtkColorChooserGetUseAlpha func(uintptr) bool | |
| 105 | 105 | var XGtkColorChooserSetRgba func(uintptr, *gdk.RGBA) | |
M v4/gtk/gtkcolorchooserdialog.go +4 -4
| @@ -114,7 +114,7 @@ func (x *ColorChooserDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 114 | 114 | // property change must be communicated to assistive technologies. | |
| 115 | 115 | // | |
| 116 | 116 | // This function is meant to be used by language bindings. | |
| 117 | - | func (x *ColorChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 117 | + | func (x *ColorChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 118 | 118 | ||
| 119 | 119 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 120 | 120 | ||
| @@ -150,7 +150,7 @@ func (x *ColorChooserDialog) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 150 | 150 | // relation change must be communicated to assistive technologies. | |
| 151 | 151 | // | |
| 152 | 152 | // This function is meant to be used by language bindings. | |
| 153 | - | func (x *ColorChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 153 | + | func (x *ColorChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 154 | 154 | ||
| 155 | 155 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 156 | 156 | ||
| @@ -183,7 +183,7 @@ func (x *ColorChooserDialog) UpdateState(FirstStateVar AccessibleState, varArgs | |||
| 183 | 183 | // state change must be communicated to assistive technologies. | |
| 184 | 184 | // | |
| 185 | 185 | // This function is meant to be used by language bindings. | |
| 186 | - | func (x *ColorChooserDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 186 | + | func (x *ColorChooserDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 187 | 187 | ||
| 188 | 188 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 189 | 189 | ||
| @@ -216,7 +216,7 @@ func (x *ColorChooserDialog) GetBuildableId() string { | |||
| 216 | 216 | // of removing the default color palette from the color chooser. | |
| 217 | 217 | // | |
| 218 | 218 | // If @colors is %NULL, removes all previously added palettes. | |
| 219 | - | func (x *ColorChooserDialog) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar uintptr) { | |
| 219 | + | func (x *ColorChooserDialog) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar []gdk.RGBA) { | |
| 220 | 220 | ||
| 221 | 221 | XGtkColorChooserAddPalette(x.GoPointer(), OrientationVar, ColorsPerLineVar, NColorsVar, ColorsVar) | |
| 222 | 222 | ||
M v4/gtk/gtkcolorchooserwidget.go +4 -4
| @@ -125,7 +125,7 @@ func (x *ColorChooserWidget) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 125 | 125 | // property change must be communicated to assistive technologies. | |
| 126 | 126 | // | |
| 127 | 127 | // This function is meant to be used by language bindings. | |
| 128 | - | func (x *ColorChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 128 | + | func (x *ColorChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 129 | 129 | ||
| 130 | 130 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 131 | 131 | ||
| @@ -161,7 +161,7 @@ func (x *ColorChooserWidget) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 161 | 161 | // relation change must be communicated to assistive technologies. | |
| 162 | 162 | // | |
| 163 | 163 | // This function is meant to be used by language bindings. | |
| 164 | - | func (x *ColorChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 164 | + | func (x *ColorChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 165 | 165 | ||
| 166 | 166 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 167 | 167 | ||
| @@ -194,7 +194,7 @@ func (x *ColorChooserWidget) UpdateState(FirstStateVar AccessibleState, varArgs | |||
| 194 | 194 | // state change must be communicated to assistive technologies. | |
| 195 | 195 | // | |
| 196 | 196 | // This function is meant to be used by language bindings. | |
| 197 | - | func (x *ColorChooserWidget) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 197 | + | func (x *ColorChooserWidget) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 198 | 198 | ||
| 199 | 199 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 200 | 200 | ||
| @@ -227,7 +227,7 @@ func (x *ColorChooserWidget) GetBuildableId() string { | |||
| 227 | 227 | // of removing the default color palette from the color chooser. | |
| 228 | 228 | // | |
| 229 | 229 | // If @colors is %NULL, removes all previously added palettes. | |
| 230 | - | func (x *ColorChooserWidget) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar uintptr) { | |
| 230 | + | func (x *ColorChooserWidget) AddPalette(OrientationVar Orientation, ColorsPerLineVar int, NColorsVar int, ColorsVar []gdk.RGBA) { | |
| 231 | 231 | ||
| 232 | 232 | XGtkColorChooserAddPalette(x.GoPointer(), OrientationVar, ColorsPerLineVar, NColorsVar, ColorsVar) | |
| 233 | 233 | ||
M v4/gtk/gtkcolumnview.go +3 -3
| @@ -433,7 +433,7 @@ func (x *ColumnView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 433 | 433 | // property change must be communicated to assistive technologies. | |
| 434 | 434 | // | |
| 435 | 435 | // This function is meant to be used by language bindings. | |
| 436 | - | func (x *ColumnView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 436 | + | func (x *ColumnView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 437 | 437 | ||
| 438 | 438 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 439 | 439 | ||
| @@ -469,7 +469,7 @@ func (x *ColumnView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 469 | 469 | // relation change must be communicated to assistive technologies. | |
| 470 | 470 | // | |
| 471 | 471 | // This function is meant to be used by language bindings. | |
| 472 | - | func (x *ColumnView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 472 | + | func (x *ColumnView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 473 | 473 | ||
| 474 | 474 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 475 | 475 | ||
| @@ -502,7 +502,7 @@ func (x *ColumnView) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 502 | 502 | // state change must be communicated to assistive technologies. | |
| 503 | 503 | // | |
| 504 | 504 | // This function is meant to be used by language bindings. | |
| 505 | - | func (x *ColumnView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 505 | + | func (x *ColumnView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 506 | 506 | ||
| 507 | 507 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 508 | 508 | ||
M v4/gtk/gtkcombobox.go +4 -4
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type ComboBoxClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [7]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *ComboBoxClass) GoPointer() uintptr { | |
| @@ -707,7 +707,7 @@ func (x *ComboBox) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 707 | 707 | // property change must be communicated to assistive technologies. | |
| 708 | 708 | // | |
| 709 | 709 | // This function is meant to be used by language bindings. | |
| 710 | - | func (x *ComboBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 710 | + | func (x *ComboBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 711 | 711 | ||
| 712 | 712 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 713 | 713 | ||
| @@ -743,7 +743,7 @@ func (x *ComboBox) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 743 | 743 | // relation change must be communicated to assistive technologies. | |
| 744 | 744 | // | |
| 745 | 745 | // This function is meant to be used by language bindings. | |
| 746 | - | func (x *ComboBox) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 746 | + | func (x *ComboBox) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 747 | 747 | ||
| 748 | 748 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 749 | 749 | ||
| @@ -776,7 +776,7 @@ func (x *ComboBox) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 776 | 776 | // state change must be communicated to assistive technologies. | |
| 777 | 777 | // | |
| 778 | 778 | // This function is meant to be used by language bindings. | |
| 779 | - | func (x *ComboBox) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 779 | + | func (x *ComboBox) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 780 | 780 | ||
| 781 | 781 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 782 | 782 | ||
M v4/gtk/gtkcomboboxtext.go +3 -3
| @@ -290,7 +290,7 @@ func (x *ComboBoxText) UpdateProperty(FirstPropertyVar AccessibleProperty, varAr | |||
| 290 | 290 | // property change must be communicated to assistive technologies. | |
| 291 | 291 | // | |
| 292 | 292 | // This function is meant to be used by language bindings. | |
| 293 | - | func (x *ComboBoxText) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 293 | + | func (x *ComboBoxText) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 294 | 294 | ||
| 295 | 295 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 296 | 296 | ||
| @@ -326,7 +326,7 @@ func (x *ComboBoxText) UpdateRelation(FirstRelationVar AccessibleRelation, varAr | |||
| 326 | 326 | // relation change must be communicated to assistive technologies. | |
| 327 | 327 | // | |
| 328 | 328 | // This function is meant to be used by language bindings. | |
| 329 | - | func (x *ComboBoxText) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 329 | + | func (x *ComboBoxText) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 330 | 330 | ||
| 331 | 331 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 332 | 332 | ||
| @@ -359,7 +359,7 @@ func (x *ComboBoxText) UpdateState(FirstStateVar AccessibleState, varArgs ...int | |||
| 359 | 359 | // state change must be communicated to assistive technologies. | |
| 360 | 360 | // | |
| 361 | 361 | // This function is meant to be used by language bindings. | |
| 362 | - | func (x *ComboBoxText) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 362 | + | func (x *ComboBoxText) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 363 | 363 | ||
| 364 | 364 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 365 | 365 | ||
M v4/gtk/gtkconstraintlayout.go +4 -4
| @@ -250,20 +250,20 @@ func (x *ConstraintLayout) AddConstraint(ConstraintVar *Constraint) { | |||
| 250 | 250 | ||
| 251 | 251 | } | |
| 252 | 252 | ||
| 253 | - | var xConstraintLayoutAddConstraintsFromDescription func(uintptr, uintptr, uint, int, int, **glib.Error, string, ...interface{}) *glib.List | |
| 253 | + | var xConstraintLayoutAddConstraintsFromDescription func(uintptr, []string, uint, int, int, **glib.Error, string, ...interface{}) *glib.List | |
| 254 | 254 | ||
| 255 | 255 | // Creates a list of constraints from a VFL description. | |
| 256 | 256 | // | |
| 257 | 257 | // This function is a convenience wrapper around | |
| 258 | 258 | // [method@Gtk.ConstraintLayout.add_constraints_from_descriptionv], using | |
| 259 | 259 | // variadic arguments to populate the view/target map. | |
| 260 | - | func (x *ConstraintLayout) AddConstraintsFromDescription(LinesVar uintptr, NLinesVar uint, HspacingVar int, VspacingVar int, ErrorVar **glib.Error, FirstViewVar string, varArgs ...interface{}) *glib.List { | |
| 260 | + | func (x *ConstraintLayout) AddConstraintsFromDescription(LinesVar []string, NLinesVar uint, HspacingVar int, VspacingVar int, ErrorVar **glib.Error, FirstViewVar string, varArgs ...interface{}) *glib.List { | |
| 261 | 261 | ||
| 262 | 262 | cret := xConstraintLayoutAddConstraintsFromDescription(x.GoPointer(), LinesVar, NLinesVar, HspacingVar, VspacingVar, ErrorVar, FirstViewVar, varArgs...) | |
| 263 | 263 | return cret | |
| 264 | 264 | } | |
| 265 | 265 | ||
| 266 | - | var xConstraintLayoutAddConstraintsFromDescriptionv func(uintptr, uintptr, uint, int, int, *glib.HashTable, **glib.Error) *glib.List | |
| 266 | + | var xConstraintLayoutAddConstraintsFromDescriptionv func(uintptr, []string, uint, int, int, *glib.HashTable, **glib.Error) *glib.List | |
| 267 | 267 | ||
| 268 | 268 | // Creates a list of constraints from a VFL description. | |
| 269 | 269 | // | |
| @@ -346,7 +346,7 @@ var xConstraintLayoutAddConstraintsFromDescriptionv func(uintptr, uintptr, uint, | |||
| 346 | 346 | // [button1(==button2.height)] | |
| 347 | 347 | // | |
| 348 | 348 | // ``` | |
| 349 | - | func (x *ConstraintLayout) AddConstraintsFromDescriptionv(LinesVar uintptr, NLinesVar uint, HspacingVar int, VspacingVar int, ViewsVar *glib.HashTable) (*glib.List, error) { | |
| 349 | + | func (x *ConstraintLayout) AddConstraintsFromDescriptionv(LinesVar []string, NLinesVar uint, HspacingVar int, VspacingVar int, ViewsVar *glib.HashTable) (*glib.List, error) { | |
| 350 | 350 | var cerr *glib.Error | |
| 351 | 351 | ||
| 352 | 352 | cret := xConstraintLayoutAddConstraintsFromDescriptionv(x.GoPointer(), LinesVar, NLinesVar, HspacingVar, VspacingVar, ViewsVar, &cerr) | |
M v4/gtk/gtkdialog.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type DialogClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [8]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *DialogClass) GoPointer() uintptr { | |
| @@ -543,7 +543,7 @@ func (x *Dialog) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ... | |||
| 543 | 543 | // property change must be communicated to assistive technologies. | |
| 544 | 544 | // | |
| 545 | 545 | // This function is meant to be used by language bindings. | |
| 546 | - | func (x *Dialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 546 | + | func (x *Dialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 547 | 547 | ||
| 548 | 548 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 549 | 549 | ||
| @@ -579,7 +579,7 @@ func (x *Dialog) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ... | |||
| 579 | 579 | // relation change must be communicated to assistive technologies. | |
| 580 | 580 | // | |
| 581 | 581 | // This function is meant to be used by language bindings. | |
| 582 | - | func (x *Dialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 582 | + | func (x *Dialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 583 | 583 | ||
| 584 | 584 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 585 | 585 | ||
| @@ -612,7 +612,7 @@ func (x *Dialog) UpdateState(FirstStateVar AccessibleState, varArgs ...interface | |||
| 612 | 612 | // state change must be communicated to assistive technologies. | |
| 613 | 613 | // | |
| 614 | 614 | // This function is meant to be used by language bindings. | |
| 615 | - | func (x *Dialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 615 | + | func (x *Dialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 616 | 616 | ||
| 617 | 617 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 618 | 618 | ||
M v4/gtk/gtkdirectorylist.go +2 -1
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | type DirectoryListClass struct { | |
| @@ -234,7 +235,7 @@ func (x *DirectoryList) GetItem(PositionVar uint) uintptr { | |||
| 234 | 235 | // | |
| 235 | 236 | // The item type of a #GListModel can not change during the life of the | |
| 236 | 237 | // model. | |
| 237 | - | func (x *DirectoryList) GetItemType() []interface{} { | |
| 238 | + | func (x *DirectoryList) GetItemType() types.GType { | |
| 238 | 239 | ||
| 239 | 240 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 240 | 241 | return cret | |
M v4/gtk/gtkdragicon.go +3 -3
| @@ -132,7 +132,7 @@ func (x *DragIcon) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 132 | 132 | // property change must be communicated to assistive technologies. | |
| 133 | 133 | // | |
| 134 | 134 | // This function is meant to be used by language bindings. | |
| 135 | - | func (x *DragIcon) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 135 | + | func (x *DragIcon) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 136 | 136 | ||
| 137 | 137 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 138 | 138 | ||
| @@ -168,7 +168,7 @@ func (x *DragIcon) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 168 | 168 | // relation change must be communicated to assistive technologies. | |
| 169 | 169 | // | |
| 170 | 170 | // This function is meant to be used by language bindings. | |
| 171 | - | func (x *DragIcon) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 171 | + | func (x *DragIcon) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 172 | 172 | ||
| 173 | 173 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 174 | 174 | ||
| @@ -201,7 +201,7 @@ func (x *DragIcon) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 201 | 201 | // state change must be communicated to assistive technologies. | |
| 202 | 202 | // | |
| 203 | 203 | // This function is meant to be used by language bindings. | |
| 204 | - | func (x *DragIcon) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 204 | + | func (x *DragIcon) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 205 | 205 | ||
| 206 | 206 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 207 | 207 | ||
M v4/gtk/gtkdrawingarea.go +4 -4
| @@ -20,7 +20,7 @@ type DrawingAreaDrawFunc func(uintptr, *cairo.Context, int, int, uintptr) | |||
| 20 | 20 | type DrawingAreaClass struct { | |
| 21 | 21 | ParentClass uintptr | |
| 22 | 22 | ||
| 23 | - | Padding uintptr | |
| 23 | + | Padding [8]uintptr | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | func (x *DrawingAreaClass) GoPointer() uintptr { | |
| @@ -301,7 +301,7 @@ func (x *DrawingArea) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 301 | 301 | // property change must be communicated to assistive technologies. | |
| 302 | 302 | // | |
| 303 | 303 | // This function is meant to be used by language bindings. | |
| 304 | - | func (x *DrawingArea) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 304 | + | func (x *DrawingArea) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 305 | 305 | ||
| 306 | 306 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 307 | 307 | ||
| @@ -337,7 +337,7 @@ func (x *DrawingArea) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 337 | 337 | // relation change must be communicated to assistive technologies. | |
| 338 | 338 | // | |
| 339 | 339 | // This function is meant to be used by language bindings. | |
| 340 | - | func (x *DrawingArea) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 340 | + | func (x *DrawingArea) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 341 | 341 | ||
| 342 | 342 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 343 | 343 | ||
| @@ -370,7 +370,7 @@ func (x *DrawingArea) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 370 | 370 | // state change must be communicated to assistive technologies. | |
| 371 | 371 | // | |
| 372 | 372 | // This function is meant to be used by language bindings. | |
| 373 | - | func (x *DrawingArea) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 373 | + | func (x *DrawingArea) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 374 | 374 | ||
| 375 | 375 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 376 | 376 | ||
M v4/gtk/gtkdropdown.go +5 -5
| @@ -93,11 +93,11 @@ func NewDropDown(ModelVar gio.ListModel, ExpressionVar *Expression) *DropDown { | |||
| 93 | 93 | return cls | |
| 94 | 94 | } | |
| 95 | 95 | ||
| 96 | - | var xNewDropDownFromStrings func(uintptr) uintptr | |
| 96 | + | var xNewDropDownFromStrings func([]string) uintptr | |
| 97 | 97 | ||
| 98 | 98 | // Creates a new `GtkDropDown` that is populated with | |
| 99 | 99 | // the strings. | |
| 100 | - | func NewDropDownFromStrings(StringsVar uintptr) *DropDown { | |
| 100 | + | func NewDropDownFromStrings(StringsVar []string) *DropDown { | |
| 101 | 101 | var cls *DropDown | |
| 102 | 102 | ||
| 103 | 103 | cret := xNewDropDownFromStrings(StringsVar) | |
| @@ -388,7 +388,7 @@ func (x *DropDown) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 388 | 388 | // property change must be communicated to assistive technologies. | |
| 389 | 389 | // | |
| 390 | 390 | // This function is meant to be used by language bindings. | |
| 391 | - | func (x *DropDown) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 391 | + | func (x *DropDown) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 392 | 392 | ||
| 393 | 393 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 394 | 394 | ||
| @@ -424,7 +424,7 @@ func (x *DropDown) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 424 | 424 | // relation change must be communicated to assistive technologies. | |
| 425 | 425 | // | |
| 426 | 426 | // This function is meant to be used by language bindings. | |
| 427 | - | func (x *DropDown) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 427 | + | func (x *DropDown) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 428 | 428 | ||
| 429 | 429 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 430 | 430 | ||
| @@ -457,7 +457,7 @@ func (x *DropDown) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 457 | 457 | // state change must be communicated to assistive technologies. | |
| 458 | 458 | // | |
| 459 | 459 | // This function is meant to be used by language bindings. | |
| 460 | - | func (x *DropDown) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 460 | + | func (x *DropDown) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 461 | 461 | ||
| 462 | 462 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 463 | 463 | ||
M v4/gtk/gtkdroptarget.go +7 -6
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | type DropTargetClass struct { | |
| @@ -103,14 +104,14 @@ func DropTargetNewFromInternalPtr(ptr uintptr) *DropTarget { | |||
| 103 | 104 | return cls | |
| 104 | 105 | } | |
| 105 | 106 | ||
| 106 | - | var xNewDropTarget func([]interface{}, gdk.DragAction) uintptr | |
| 107 | + | var xNewDropTarget func(types.GType, gdk.DragAction) uintptr | |
| 107 | 108 | ||
| 108 | 109 | // Creates a new `GtkDropTarget` object. | |
| 109 | 110 | // | |
| 110 | 111 | // If the drop target should support more than 1 type, pass | |
| 111 | 112 | // %G_TYPE_INVALID for @type and then call | |
| 112 | 113 | // [method@Gtk.DropTarget.set_gtypes]. | |
| 113 | - | func NewDropTarget(TypeVar []interface{}, ActionsVar gdk.DragAction) *DropTarget { | |
| 114 | + | func NewDropTarget(TypeVar types.GType, ActionsVar gdk.DragAction) *DropTarget { | |
| 114 | 115 | var cls *DropTarget | |
| 115 | 116 | ||
| 116 | 117 | cret := xNewDropTarget(TypeVar, ActionsVar) | |
| @@ -181,12 +182,12 @@ func (x *DropTarget) GetFormats() *gdk.ContentFormats { | |||
| 181 | 182 | return cret | |
| 182 | 183 | } | |
| 183 | 184 | ||
| 184 | - | var xDropTargetGetGtypes func(uintptr, uint) uintptr | |
| 185 | + | var xDropTargetGetGtypes func(uintptr, uint) []types.GType | |
| 185 | 186 | ||
| 186 | 187 | // Gets the list of supported `GType`s that can be dropped on the target. | |
| 187 | 188 | // | |
| 188 | 189 | // If no types have been set, `NULL` will be returned. | |
| 189 | - | func (x *DropTarget) GetGtypes(NTypesVar uint) uintptr { | |
| 190 | + | func (x *DropTarget) GetGtypes(NTypesVar uint) []types.GType { | |
| 190 | 191 | ||
| 191 | 192 | cret := xDropTargetGetGtypes(x.GoPointer(), NTypesVar) | |
| 192 | 193 | return cret | |
| @@ -235,10 +236,10 @@ func (x *DropTarget) SetActions(ActionsVar gdk.DragAction) { | |||
| 235 | 236 | ||
| 236 | 237 | } | |
| 237 | 238 | ||
| 238 | - | var xDropTargetSetGtypes func(uintptr, uintptr, uint) | |
| 239 | + | var xDropTargetSetGtypes func(uintptr, []types.GType, uint) | |
| 239 | 240 | ||
| 240 | 241 | // Sets the supported `GTypes` for this drop target. | |
| 241 | - | func (x *DropTarget) SetGtypes(TypesVar uintptr, NTypesVar uint) { | |
| 242 | + | func (x *DropTarget) SetGtypes(TypesVar []types.GType, NTypesVar uint) { | |
| 242 | 243 | ||
| 243 | 244 | xDropTargetSetGtypes(x.GoPointer(), TypesVar, NTypesVar) | |
| 244 | 245 | ||
M v4/gtk/gtkeditablelabel.go +3 -3
| @@ -172,7 +172,7 @@ func (x *EditableLabel) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 172 | 172 | // property change must be communicated to assistive technologies. | |
| 173 | 173 | // | |
| 174 | 174 | // This function is meant to be used by language bindings. | |
| 175 | - | func (x *EditableLabel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 175 | + | func (x *EditableLabel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 176 | 176 | ||
| 177 | 177 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 178 | 178 | ||
| @@ -208,7 +208,7 @@ func (x *EditableLabel) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 208 | 208 | // relation change must be communicated to assistive technologies. | |
| 209 | 209 | // | |
| 210 | 210 | // This function is meant to be used by language bindings. | |
| 211 | - | func (x *EditableLabel) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 211 | + | func (x *EditableLabel) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 212 | 212 | ||
| 213 | 213 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 214 | 214 | ||
| @@ -241,7 +241,7 @@ func (x *EditableLabel) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 241 | 241 | // state change must be communicated to assistive technologies. | |
| 242 | 242 | // | |
| 243 | 243 | // This function is meant to be used by language bindings. | |
| 244 | - | func (x *EditableLabel) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 244 | + | func (x *EditableLabel) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 245 | 245 | ||
| 246 | 246 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 247 | 247 | ||
M v4/gtk/gtkemojichooser.go +3 -3
| @@ -162,7 +162,7 @@ func (x *EmojiChooser) UpdateProperty(FirstPropertyVar AccessibleProperty, varAr | |||
| 162 | 162 | // property change must be communicated to assistive technologies. | |
| 163 | 163 | // | |
| 164 | 164 | // This function is meant to be used by language bindings. | |
| 165 | - | func (x *EmojiChooser) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 165 | + | func (x *EmojiChooser) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 166 | 166 | ||
| 167 | 167 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 168 | 168 | ||
| @@ -198,7 +198,7 @@ func (x *EmojiChooser) UpdateRelation(FirstRelationVar AccessibleRelation, varAr | |||
| 198 | 198 | // relation change must be communicated to assistive technologies. | |
| 199 | 199 | // | |
| 200 | 200 | // This function is meant to be used by language bindings. | |
| 201 | - | func (x *EmojiChooser) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 201 | + | func (x *EmojiChooser) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 202 | 202 | ||
| 203 | 203 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 204 | 204 | ||
| @@ -231,7 +231,7 @@ func (x *EmojiChooser) UpdateState(FirstStateVar AccessibleState, varArgs ...int | |||
| 231 | 231 | // state change must be communicated to assistive technologies. | |
| 232 | 232 | // | |
| 233 | 233 | // This function is meant to be used by language bindings. | |
| 234 | - | func (x *EmojiChooser) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 234 | + | func (x *EmojiChooser) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 235 | 235 | ||
| 236 | 236 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 237 | 237 | ||
M v4/gtk/gtkentry.go +4 -4
| @@ -21,7 +21,7 @@ import ( | |||
| 21 | 21 | type EntryClass struct { | |
| 22 | 22 | ParentClass uintptr | |
| 23 | 23 | ||
| 24 | - | Padding uintptr | |
| 24 | + | Padding [8]uintptr | |
| 25 | 25 | } | |
| 26 | 26 | ||
| 27 | 27 | func (x *EntryClass) GoPointer() uintptr { | |
| @@ -1035,7 +1035,7 @@ func (x *Entry) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 1035 | 1035 | // property change must be communicated to assistive technologies. | |
| 1036 | 1036 | // | |
| 1037 | 1037 | // This function is meant to be used by language bindings. | |
| 1038 | - | func (x *Entry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1038 | + | func (x *Entry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1039 | 1039 | ||
| 1040 | 1040 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1041 | 1041 | ||
| @@ -1071,7 +1071,7 @@ func (x *Entry) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 1071 | 1071 | // relation change must be communicated to assistive technologies. | |
| 1072 | 1072 | // | |
| 1073 | 1073 | // This function is meant to be used by language bindings. | |
| 1074 | - | func (x *Entry) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1074 | + | func (x *Entry) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1075 | 1075 | ||
| 1076 | 1076 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1077 | 1077 | ||
| @@ -1104,7 +1104,7 @@ func (x *Entry) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 1104 | 1104 | // state change must be communicated to assistive technologies. | |
| 1105 | 1105 | // | |
| 1106 | 1106 | // This function is meant to be used by language bindings. | |
| 1107 | - | func (x *Entry) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1107 | + | func (x *Entry) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1108 | 1108 | ||
| 1109 | 1109 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1110 | 1110 | ||
M v4/gtk/gtkexpander.go +3 -3
| @@ -406,7 +406,7 @@ func (x *Expander) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 406 | 406 | // property change must be communicated to assistive technologies. | |
| 407 | 407 | // | |
| 408 | 408 | // This function is meant to be used by language bindings. | |
| 409 | - | func (x *Expander) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 409 | + | func (x *Expander) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 410 | 410 | ||
| 411 | 411 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 412 | 412 | ||
| @@ -442,7 +442,7 @@ func (x *Expander) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 442 | 442 | // relation change must be communicated to assistive technologies. | |
| 443 | 443 | // | |
| 444 | 444 | // This function is meant to be used by language bindings. | |
| 445 | - | func (x *Expander) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 445 | + | func (x *Expander) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 446 | 446 | ||
| 447 | 447 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 448 | 448 | ||
| @@ -475,7 +475,7 @@ func (x *Expander) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 475 | 475 | // state change must be communicated to assistive technologies. | |
| 476 | 476 | // | |
| 477 | 477 | // This function is meant to be used by language bindings. | |
| 478 | - | func (x *Expander) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 478 | + | func (x *Expander) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 479 | 479 | ||
| 480 | 480 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 481 | 481 | ||
M v4/gtk/gtkexpression.go +11 -10
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Callback called by gtk_expression_watch() when the | |
| @@ -156,14 +157,14 @@ func CClosureExpressionNewFromInternalPtr(ptr uintptr) *CClosureExpression { | |||
| 156 | 157 | return cls | |
| 157 | 158 | } | |
| 158 | 159 | ||
| 159 | - | var xNewCClosureExpression func([]interface{}, uintptr, uint, uintptr, uintptr, uintptr, uintptr) uintptr | |
| 160 | + | var xNewCClosureExpression func(types.GType, uintptr, uint, uintptr, uintptr, uintptr, uintptr) uintptr | |
| 160 | 161 | ||
| 161 | 162 | // Creates a `GtkExpression` that calls `callback_func` when it is evaluated. | |
| 162 | 163 | // | |
| 163 | 164 | // This function is a variant of [ctor@Gtk.ClosureExpression.new] that | |
| 164 | 165 | // creates a `GClosure` by calling g_cclosure_new() with the given | |
| 165 | 166 | // `callback_func`, `user_data` and `user_destroy`. | |
| 166 | - | func NewCClosureExpression(ValueTypeVar []interface{}, MarshalVar *gobject.ClosureMarshal, NParamsVar uint, ParamsVar uintptr, CallbackFuncVar *gobject.Callback, UserDataVar uintptr, UserDestroyVar *gobject.ClosureNotify) *CClosureExpression { | |
| 167 | + | func NewCClosureExpression(ValueTypeVar types.GType, MarshalVar *gobject.ClosureMarshal, NParamsVar uint, ParamsVar uintptr, CallbackFuncVar *gobject.Callback, UserDataVar uintptr, UserDestroyVar *gobject.ClosureNotify) *CClosureExpression { | |
| 167 | 168 | var cls *CClosureExpression | |
| 168 | 169 | ||
| 169 | 170 | cret := xNewCClosureExpression(ValueTypeVar, glib.NewCallback(MarshalVar), NParamsVar, ParamsVar, glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| @@ -196,13 +197,13 @@ func ClosureExpressionNewFromInternalPtr(ptr uintptr) *ClosureExpression { | |||
| 196 | 197 | return cls | |
| 197 | 198 | } | |
| 198 | 199 | ||
| 199 | - | var xNewClosureExpression func([]interface{}, *gobject.Closure, uint, uintptr) uintptr | |
| 200 | + | var xNewClosureExpression func(types.GType, *gobject.Closure, uint, uintptr) uintptr | |
| 200 | 201 | ||
| 201 | 202 | // Creates a `GtkExpression` that calls `closure` when it is evaluated. | |
| 202 | 203 | // | |
| 203 | 204 | // `closure` is called with the `this` object and the results of evaluating | |
| 204 | 205 | // the `params` expressions. | |
| 205 | - | func NewClosureExpression(ValueTypeVar []interface{}, ClosureVar *gobject.Closure, NParamsVar uint, ParamsVar uintptr) *ClosureExpression { | |
| 206 | + | func NewClosureExpression(ValueTypeVar types.GType, ClosureVar *gobject.Closure, NParamsVar uint, ParamsVar uintptr) *ClosureExpression { | |
| 206 | 207 | var cls *ClosureExpression | |
| 207 | 208 | ||
| 208 | 209 | cret := xNewClosureExpression(ValueTypeVar, ClosureVar, NParamsVar, ParamsVar) | |
| @@ -234,11 +235,11 @@ func ConstantExpressionNewFromInternalPtr(ptr uintptr) *ConstantExpression { | |||
| 234 | 235 | return cls | |
| 235 | 236 | } | |
| 236 | 237 | ||
| 237 | - | var xNewConstantExpression func([]interface{}, ...interface{}) uintptr | |
| 238 | + | var xNewConstantExpression func(types.GType, ...interface{}) uintptr | |
| 238 | 239 | ||
| 239 | 240 | // Creates a `GtkExpression` that evaluates to the | |
| 240 | 241 | // object given by the arguments. | |
| 241 | - | func NewConstantExpression(ValueTypeVar []interface{}, varArgs ...interface{}) *ConstantExpression { | |
| 242 | + | func NewConstantExpression(ValueTypeVar types.GType, varArgs ...interface{}) *ConstantExpression { | |
| 242 | 243 | var cls *ConstantExpression | |
| 243 | 244 | ||
| 244 | 245 | cret := xNewConstantExpression(ValueTypeVar, varArgs...) | |
| @@ -473,13 +474,13 @@ func (x *Expression) Evaluate(ThisVar *gobject.Object, ValueVar *gobject.Value) | |||
| 473 | 474 | return cret | |
| 474 | 475 | } | |
| 475 | 476 | ||
| 476 | - | var xExpressionGetValueType func(uintptr) []interface{} | |
| 477 | + | var xExpressionGetValueType func(uintptr) types.GType | |
| 477 | 478 | ||
| 478 | 479 | // Gets the `GType` that this expression evaluates to. | |
| 479 | 480 | // | |
| 480 | 481 | // This type is constant and will not change over the lifetime | |
| 481 | 482 | // of this expression. | |
| 482 | - | func (x *Expression) GetValueType() []interface{} { | |
| 483 | + | func (x *Expression) GetValueType() types.GType { | |
| 483 | 484 | ||
| 484 | 485 | cret := xExpressionGetValueType(x.GoPointer()) | |
| 485 | 486 | return cret | |
| @@ -640,7 +641,7 @@ func PropertyExpressionNewFromInternalPtr(ptr uintptr) *PropertyExpression { | |||
| 640 | 641 | return cls | |
| 641 | 642 | } | |
| 642 | 643 | ||
| 643 | - | var xNewPropertyExpression func([]interface{}, uintptr, string) uintptr | |
| 644 | + | var xNewPropertyExpression func(types.GType, uintptr, string) uintptr | |
| 644 | 645 | ||
| 645 | 646 | // Creates an expression that looks up a property. | |
| 646 | 647 | // | |
| @@ -652,7 +653,7 @@ var xNewPropertyExpression func([]interface{}, uintptr, string) uintptr | |||
| 652 | 653 | // evaluation will fail. | |
| 653 | 654 | // | |
| 654 | 655 | // The given `this_type` must have a property with `property_name`. | |
| 655 | - | func NewPropertyExpression(ThisTypeVar []interface{}, ExpressionVar *Expression, PropertyNameVar string) *PropertyExpression { | |
| 656 | + | func NewPropertyExpression(ThisTypeVar types.GType, ExpressionVar *Expression, PropertyNameVar string) *PropertyExpression { | |
| 656 | 657 | var cls *PropertyExpression | |
| 657 | 658 | ||
| 658 | 659 | cret := xNewPropertyExpression(ThisTypeVar, ExpressionVar.GoPointer(), PropertyNameVar) | |
M v4/gtk/gtkfilechooserdialog.go +3 -3
| @@ -281,7 +281,7 @@ func (x *FileChooserDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 281 | 281 | // property change must be communicated to assistive technologies. | |
| 282 | 282 | // | |
| 283 | 283 | // This function is meant to be used by language bindings. | |
| 284 | - | func (x *FileChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 284 | + | func (x *FileChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 285 | 285 | ||
| 286 | 286 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 287 | 287 | ||
| @@ -317,7 +317,7 @@ func (x *FileChooserDialog) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 317 | 317 | // relation change must be communicated to assistive technologies. | |
| 318 | 318 | // | |
| 319 | 319 | // This function is meant to be used by language bindings. | |
| 320 | - | func (x *FileChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 320 | + | func (x *FileChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 321 | 321 | ||
| 322 | 322 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 323 | 323 | ||
| @@ -350,7 +350,7 @@ func (x *FileChooserDialog) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 350 | 350 | // state change must be communicated to assistive technologies. | |
| 351 | 351 | // | |
| 352 | 352 | // This function is meant to be used by language bindings. | |
| 353 | - | func (x *FileChooserDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 353 | + | func (x *FileChooserDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 354 | 354 | ||
| 355 | 355 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 356 | 356 | ||
M v4/gtk/gtkfilechooserwidget.go +3 -3
| @@ -453,7 +453,7 @@ func (x *FileChooserWidget) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 453 | 453 | // property change must be communicated to assistive technologies. | |
| 454 | 454 | // | |
| 455 | 455 | // This function is meant to be used by language bindings. | |
| 456 | - | func (x *FileChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 456 | + | func (x *FileChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 457 | 457 | ||
| 458 | 458 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 459 | 459 | ||
| @@ -489,7 +489,7 @@ func (x *FileChooserWidget) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 489 | 489 | // relation change must be communicated to assistive technologies. | |
| 490 | 490 | // | |
| 491 | 491 | // This function is meant to be used by language bindings. | |
| 492 | - | func (x *FileChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 492 | + | func (x *FileChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 493 | 493 | ||
| 494 | 494 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 495 | 495 | ||
| @@ -522,7 +522,7 @@ func (x *FileChooserWidget) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 522 | 522 | // state change must be communicated to assistive technologies. | |
| 523 | 523 | // | |
| 524 | 524 | // This function is meant to be used by language bindings. | |
| 525 | - | func (x *FileChooserWidget) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 525 | + | func (x *FileChooserWidget) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 526 | 526 | ||
| 527 | 527 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 528 | 528 | ||
M v4/gtk/gtkfilterlistmodel.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FilterListModelClass struct { | |
| @@ -201,7 +202,7 @@ func (x *FilterListModel) GetItem(PositionVar uint) uintptr { | |||
| 201 | 202 | // | |
| 202 | 203 | // The item type of a #GListModel can not change during the life of the | |
| 203 | 204 | // model. | |
| 204 | - | func (x *FilterListModel) GetItemType() []interface{} { | |
| 205 | + | func (x *FilterListModel) GetItemType() types.GType { | |
| 205 | 206 | ||
| 206 | 207 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 207 | 208 | return cret | |
M v4/gtk/gtkfixed.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type FixedClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *FixedClass) GoPointer() uintptr { | |
| @@ -213,7 +213,7 @@ func (x *Fixed) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 213 | 213 | // property change must be communicated to assistive technologies. | |
| 214 | 214 | // | |
| 215 | 215 | // This function is meant to be used by language bindings. | |
| 216 | - | func (x *Fixed) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 216 | + | func (x *Fixed) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 217 | 217 | ||
| 218 | 218 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 219 | 219 | ||
| @@ -249,7 +249,7 @@ func (x *Fixed) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 249 | 249 | // relation change must be communicated to assistive technologies. | |
| 250 | 250 | // | |
| 251 | 251 | // This function is meant to be used by language bindings. | |
| 252 | - | func (x *Fixed) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 252 | + | func (x *Fixed) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 253 | 253 | ||
| 254 | 254 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 255 | 255 | ||
| @@ -282,7 +282,7 @@ func (x *Fixed) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 282 | 282 | // state change must be communicated to assistive technologies. | |
| 283 | 283 | // | |
| 284 | 284 | // This function is meant to be used by language bindings. | |
| 285 | - | func (x *Fixed) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 285 | + | func (x *Fixed) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 286 | 286 | ||
| 287 | 287 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 288 | 288 | ||
M v4/gtk/gtkflattenlistmodel.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FlattenListModelClass struct { | |
| @@ -123,7 +124,7 @@ func (x *FlattenListModel) GetItem(PositionVar uint) uintptr { | |||
| 123 | 124 | // | |
| 124 | 125 | // The item type of a #GListModel can not change during the life of the | |
| 125 | 126 | // model. | |
| 126 | - | func (x *FlattenListModel) GetItemType() []interface{} { | |
| 127 | + | func (x *FlattenListModel) GetItemType() types.GType { | |
| 127 | 128 | ||
| 128 | 129 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 129 | 130 | return cret | |
M v4/gtk/gtkflowbox.go +7 -7
| @@ -34,7 +34,7 @@ type FlowBoxSortFunc func(uintptr, uintptr, uintptr) int | |||
| 34 | 34 | type FlowBoxChildClass struct { | |
| 35 | 35 | ParentClass uintptr | |
| 36 | 36 | ||
| 37 | - | Padding uintptr | |
| 37 | + | Padding [8]uintptr | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | 40 | func (x *FlowBoxChildClass) GoPointer() uintptr { | |
| @@ -766,7 +766,7 @@ func (x *FlowBox) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 766 | 766 | // property change must be communicated to assistive technologies. | |
| 767 | 767 | // | |
| 768 | 768 | // This function is meant to be used by language bindings. | |
| 769 | - | func (x *FlowBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 769 | + | func (x *FlowBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 770 | 770 | ||
| 771 | 771 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 772 | 772 | ||
| @@ -802,7 +802,7 @@ func (x *FlowBox) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 802 | 802 | // relation change must be communicated to assistive technologies. | |
| 803 | 803 | // | |
| 804 | 804 | // This function is meant to be used by language bindings. | |
| 805 | - | func (x *FlowBox) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 805 | + | func (x *FlowBox) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 806 | 806 | ||
| 807 | 807 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 808 | 808 | ||
| @@ -835,7 +835,7 @@ func (x *FlowBox) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 835 | 835 | // state change must be communicated to assistive technologies. | |
| 836 | 836 | // | |
| 837 | 837 | // This function is meant to be used by language bindings. | |
| 838 | - | func (x *FlowBox) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 838 | + | func (x *FlowBox) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 839 | 839 | ||
| 840 | 840 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 841 | 841 | ||
| @@ -1061,7 +1061,7 @@ func (x *FlowBoxChild) UpdateProperty(FirstPropertyVar AccessibleProperty, varAr | |||
| 1061 | 1061 | // property change must be communicated to assistive technologies. | |
| 1062 | 1062 | // | |
| 1063 | 1063 | // This function is meant to be used by language bindings. | |
| 1064 | - | func (x *FlowBoxChild) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1064 | + | func (x *FlowBoxChild) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1065 | 1065 | ||
| 1066 | 1066 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1067 | 1067 | ||
| @@ -1097,7 +1097,7 @@ func (x *FlowBoxChild) UpdateRelation(FirstRelationVar AccessibleRelation, varAr | |||
| 1097 | 1097 | // relation change must be communicated to assistive technologies. | |
| 1098 | 1098 | // | |
| 1099 | 1099 | // This function is meant to be used by language bindings. | |
| 1100 | - | func (x *FlowBoxChild) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1100 | + | func (x *FlowBoxChild) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1101 | 1101 | ||
| 1102 | 1102 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1103 | 1103 | ||
| @@ -1130,7 +1130,7 @@ func (x *FlowBoxChild) UpdateState(FirstStateVar AccessibleState, varArgs ...int | |||
| 1130 | 1130 | // state change must be communicated to assistive technologies. | |
| 1131 | 1131 | // | |
| 1132 | 1132 | // This function is meant to be used by language bindings. | |
| 1133 | - | func (x *FlowBoxChild) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1133 | + | func (x *FlowBoxChild) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1134 | 1134 | ||
| 1135 | 1135 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1136 | 1136 | ||
M v4/gtk/gtkfontbutton.go +3 -3
| @@ -264,7 +264,7 @@ func (x *FontButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 264 | 264 | // property change must be communicated to assistive technologies. | |
| 265 | 265 | // | |
| 266 | 266 | // This function is meant to be used by language bindings. | |
| 267 | - | func (x *FontButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 267 | + | func (x *FontButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 268 | 268 | ||
| 269 | 269 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 270 | 270 | ||
| @@ -300,7 +300,7 @@ func (x *FontButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 300 | 300 | // relation change must be communicated to assistive technologies. | |
| 301 | 301 | // | |
| 302 | 302 | // This function is meant to be used by language bindings. | |
| 303 | - | func (x *FontButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 303 | + | func (x *FontButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 304 | 304 | ||
| 305 | 305 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 306 | 306 | ||
| @@ -333,7 +333,7 @@ func (x *FontButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 333 | 333 | // state change must be communicated to assistive technologies. | |
| 334 | 334 | // | |
| 335 | 335 | // This function is meant to be used by language bindings. | |
| 336 | - | func (x *FontButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 336 | + | func (x *FontButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 337 | 337 | ||
| 338 | 338 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 339 | 339 | ||
M v4/gtk/gtkfontchooser.go +1 -1
| @@ -20,7 +20,7 @@ type FontFilterFunc func(uintptr, uintptr, uintptr) bool | |||
| 20 | 20 | type FontChooserIface struct { | |
| 21 | 21 | BaseIface uintptr | |
| 22 | 22 | ||
| 23 | - | Padding uintptr | |
| 23 | + | Padding [10]uintptr | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | func (x *FontChooserIface) GoPointer() uintptr { | |
M v4/gtk/gtkfontchooserdialog.go +3 -3
| @@ -118,7 +118,7 @@ func (x *FontChooserDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 118 | 118 | // property change must be communicated to assistive technologies. | |
| 119 | 119 | // | |
| 120 | 120 | // This function is meant to be used by language bindings. | |
| 121 | - | func (x *FontChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 121 | + | func (x *FontChooserDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 122 | 122 | ||
| 123 | 123 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 124 | 124 | ||
| @@ -154,7 +154,7 @@ func (x *FontChooserDialog) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 154 | 154 | // relation change must be communicated to assistive technologies. | |
| 155 | 155 | // | |
| 156 | 156 | // This function is meant to be used by language bindings. | |
| 157 | - | func (x *FontChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 157 | + | func (x *FontChooserDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 158 | 158 | ||
| 159 | 159 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 160 | 160 | ||
| @@ -187,7 +187,7 @@ func (x *FontChooserDialog) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 187 | 187 | // state change must be communicated to assistive technologies. | |
| 188 | 188 | // | |
| 189 | 189 | // This function is meant to be used by language bindings. | |
| 190 | - | func (x *FontChooserDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 190 | + | func (x *FontChooserDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 191 | 191 | ||
| 192 | 192 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 193 | 193 | ||
M v4/gtk/gtkfontchooserwidget.go +3 -3
| @@ -119,7 +119,7 @@ func (x *FontChooserWidget) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 119 | 119 | // property change must be communicated to assistive technologies. | |
| 120 | 120 | // | |
| 121 | 121 | // This function is meant to be used by language bindings. | |
| 122 | - | func (x *FontChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 122 | + | func (x *FontChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 123 | 123 | ||
| 124 | 124 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 125 | 125 | ||
| @@ -155,7 +155,7 @@ func (x *FontChooserWidget) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 155 | 155 | // relation change must be communicated to assistive technologies. | |
| 156 | 156 | // | |
| 157 | 157 | // This function is meant to be used by language bindings. | |
| 158 | - | func (x *FontChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 158 | + | func (x *FontChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 159 | 159 | ||
| 160 | 160 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 161 | 161 | ||
| @@ -188,7 +188,7 @@ func (x *FontChooserWidget) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 188 | 188 | // state change must be communicated to assistive technologies. | |
| 189 | 189 | // | |
| 190 | 190 | // This function is meant to be used by language bindings. | |
| 191 | - | func (x *FontChooserWidget) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 191 | + | func (x *FontChooserWidget) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 192 | 192 | ||
| 193 | 193 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 194 | 194 | ||
M v4/gtk/gtkframe.go +4 -4
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | type FrameClass struct { | |
| 13 | 13 | ParentClass uintptr | |
| 14 | 14 | ||
| 15 | - | Padding uintptr | |
| 15 | + | Padding [8]uintptr | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func (x *FrameClass) GoPointer() uintptr { | |
| @@ -255,7 +255,7 @@ func (x *Frame) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 255 | 255 | // property change must be communicated to assistive technologies. | |
| 256 | 256 | // | |
| 257 | 257 | // This function is meant to be used by language bindings. | |
| 258 | - | func (x *Frame) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 258 | + | func (x *Frame) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 259 | 259 | ||
| 260 | 260 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 261 | 261 | ||
| @@ -291,7 +291,7 @@ func (x *Frame) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 291 | 291 | // relation change must be communicated to assistive technologies. | |
| 292 | 292 | // | |
| 293 | 293 | // This function is meant to be used by language bindings. | |
| 294 | - | func (x *Frame) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 294 | + | func (x *Frame) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 295 | 295 | ||
| 296 | 296 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 297 | 297 | ||
| @@ -324,7 +324,7 @@ func (x *Frame) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 324 | 324 | // state change must be communicated to assistive technologies. | |
| 325 | 325 | // | |
| 326 | 326 | // This function is meant to be used by language bindings. | |
| 327 | - | func (x *Frame) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 327 | + | func (x *Frame) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 328 | 328 | ||
| 329 | 329 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 330 | 330 | ||
M v4/gtk/gtkgesturestylus.go +2 -2
| @@ -48,7 +48,7 @@ func NewGestureStylus() *GestureStylus { | |||
| 48 | 48 | return cls | |
| 49 | 49 | } | |
| 50 | 50 | ||
| 51 | - | var xGestureStylusGetAxes func(uintptr, uintptr, uintptr) bool | |
| 51 | + | var xGestureStylusGetAxes func(uintptr, []gdk.AxisUse, []float64) bool | |
| 52 | 52 | ||
| 53 | 53 | // Returns the current values for the requested @axes. | |
| 54 | 54 | // | |
| @@ -56,7 +56,7 @@ var xGestureStylusGetAxes func(uintptr, uintptr, uintptr) bool | |||
| 56 | 56 | // [signal@Gtk.GestureStylus::down], [signal@Gtk.GestureStylus::motion], | |
| 57 | 57 | // [signal@Gtk.GestureStylus::up] or [signal@Gtk.GestureStylus::proximity] | |
| 58 | 58 | // signals. | |
| 59 | - | func (x *GestureStylus) GetAxes(AxesVar uintptr, ValuesVar uintptr) bool { | |
| 59 | + | func (x *GestureStylus) GetAxes(AxesVar []gdk.AxisUse, ValuesVar []float64) bool { | |
| 60 | 60 | ||
| 61 | 61 | cret := xGestureStylusGetAxes(x.GoPointer(), AxesVar, ValuesVar) | |
| 62 | 62 | return cret | |
M v4/gtk/gtkglarea.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type GLAreaClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Padding uintptr | |
| 18 | + | Padding [8]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *GLAreaClass) GoPointer() uintptr { | |
| @@ -509,7 +509,7 @@ func (x *GLArea) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ... | |||
| 509 | 509 | // property change must be communicated to assistive technologies. | |
| 510 | 510 | // | |
| 511 | 511 | // This function is meant to be used by language bindings. | |
| 512 | - | func (x *GLArea) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 512 | + | func (x *GLArea) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 513 | 513 | ||
| 514 | 514 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 515 | 515 | ||
| @@ -545,7 +545,7 @@ func (x *GLArea) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ... | |||
| 545 | 545 | // relation change must be communicated to assistive technologies. | |
| 546 | 546 | // | |
| 547 | 547 | // This function is meant to be used by language bindings. | |
| 548 | - | func (x *GLArea) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 548 | + | func (x *GLArea) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 549 | 549 | ||
| 550 | 550 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 551 | 551 | ||
| @@ -578,7 +578,7 @@ func (x *GLArea) UpdateState(FirstStateVar AccessibleState, varArgs ...interface | |||
| 578 | 578 | // state change must be communicated to assistive technologies. | |
| 579 | 579 | // | |
| 580 | 580 | // This function is meant to be used by language bindings. | |
| 581 | - | func (x *GLArea) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 581 | + | func (x *GLArea) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 582 | 582 | ||
| 583 | 583 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 584 | 584 | ||
M v4/gtk/gtkgrid.go +4 -4
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | type GridClass struct { | |
| 13 | 13 | ParentClass uintptr | |
| 14 | 14 | ||
| 15 | - | Padding uintptr | |
| 15 | + | Padding [8]uintptr | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func (x *GridClass) GoPointer() uintptr { | |
| @@ -450,7 +450,7 @@ func (x *Grid) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...in | |||
| 450 | 450 | // property change must be communicated to assistive technologies. | |
| 451 | 451 | // | |
| 452 | 452 | // This function is meant to be used by language bindings. | |
| 453 | - | func (x *Grid) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 453 | + | func (x *Grid) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 454 | 454 | ||
| 455 | 455 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 456 | 456 | ||
| @@ -486,7 +486,7 @@ func (x *Grid) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...in | |||
| 486 | 486 | // relation change must be communicated to assistive technologies. | |
| 487 | 487 | // | |
| 488 | 488 | // This function is meant to be used by language bindings. | |
| 489 | - | func (x *Grid) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 489 | + | func (x *Grid) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 490 | 490 | ||
| 491 | 491 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 492 | 492 | ||
| @@ -519,7 +519,7 @@ func (x *Grid) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{} | |||
| 519 | 519 | // state change must be communicated to assistive technologies. | |
| 520 | 520 | // | |
| 521 | 521 | // This function is meant to be used by language bindings. | |
| 522 | - | func (x *Grid) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 522 | + | func (x *Grid) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 523 | 523 | ||
| 524 | 524 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 525 | 525 | ||
M v4/gtk/gtkgridview.go +3 -3
| @@ -318,7 +318,7 @@ func (x *GridView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 318 | 318 | // property change must be communicated to assistive technologies. | |
| 319 | 319 | // | |
| 320 | 320 | // This function is meant to be used by language bindings. | |
| 321 | - | func (x *GridView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 321 | + | func (x *GridView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 322 | 322 | ||
| 323 | 323 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 324 | 324 | ||
| @@ -354,7 +354,7 @@ func (x *GridView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 354 | 354 | // relation change must be communicated to assistive technologies. | |
| 355 | 355 | // | |
| 356 | 356 | // This function is meant to be used by language bindings. | |
| 357 | - | func (x *GridView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 357 | + | func (x *GridView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 358 | 358 | ||
| 359 | 359 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 360 | 360 | ||
| @@ -387,7 +387,7 @@ func (x *GridView) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 387 | 387 | // state change must be communicated to assistive technologies. | |
| 388 | 388 | // | |
| 389 | 389 | // This function is meant to be used by language bindings. | |
| 390 | - | func (x *GridView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 390 | + | func (x *GridView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 391 | 391 | ||
| 392 | 392 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 393 | 393 | ||
M v4/gtk/gtkheaderbar.go +3 -3
| @@ -301,7 +301,7 @@ func (x *HeaderBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 301 | 301 | // property change must be communicated to assistive technologies. | |
| 302 | 302 | // | |
| 303 | 303 | // This function is meant to be used by language bindings. | |
| 304 | - | func (x *HeaderBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 304 | + | func (x *HeaderBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 305 | 305 | ||
| 306 | 306 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 307 | 307 | ||
| @@ -337,7 +337,7 @@ func (x *HeaderBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 337 | 337 | // relation change must be communicated to assistive technologies. | |
| 338 | 338 | // | |
| 339 | 339 | // This function is meant to be used by language bindings. | |
| 340 | - | func (x *HeaderBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 340 | + | func (x *HeaderBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 341 | 341 | ||
| 342 | 342 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 343 | 343 | ||
| @@ -370,7 +370,7 @@ func (x *HeaderBar) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 370 | 370 | // state change must be communicated to assistive technologies. | |
| 371 | 371 | // | |
| 372 | 372 | // This function is meant to be used by language bindings. | |
| 373 | - | func (x *HeaderBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 373 | + | func (x *HeaderBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 374 | 374 | ||
| 375 | 375 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 376 | 376 | ||
M v4/gtk/gtkicontheme.go +7 -7
| @@ -276,7 +276,7 @@ func (x *IconPaintable) Snapshot(SnapshotVar *gdk.Snapshot, WidthVar float64, He | |||
| 276 | 276 | // | |
| 277 | 277 | // If less than 4 colors are provided, GTK will pad the array with default | |
| 278 | 278 | // colors. | |
| 279 | - | func (x *IconPaintable) SnapshotSymbolic(SnapshotVar *gdk.Snapshot, WidthVar float64, HeightVar float64, ColorsVar uintptr, NColorsVar uint) { | |
| 279 | + | func (x *IconPaintable) SnapshotSymbolic(SnapshotVar *gdk.Snapshot, WidthVar float64, HeightVar float64, ColorsVar []gdk.RGBA, NColorsVar uint) { | |
| 280 | 280 | ||
| 281 | 281 | XGtkSymbolicPaintableSnapshotSymbolic(x.GoPointer(), SnapshotVar.GoPointer(), WidthVar, HeightVar, ColorsVar, NColorsVar) | |
| 282 | 282 | ||
| @@ -400,14 +400,14 @@ func (x *IconTheme) GetIconNames() []string { | |||
| 400 | 400 | return cret | |
| 401 | 401 | } | |
| 402 | 402 | ||
| 403 | - | var xIconThemeGetIconSizes func(uintptr, string) uintptr | |
| 403 | + | var xIconThemeGetIconSizes func(uintptr, string) []int | |
| 404 | 404 | ||
| 405 | 405 | // Returns an array of integers describing the sizes at which | |
| 406 | 406 | // the icon is available without scaling. | |
| 407 | 407 | // | |
| 408 | 408 | // A size of -1 means that the icon is available in a scalable | |
| 409 | 409 | // format. The array is zero-terminated. | |
| 410 | - | func (x *IconTheme) GetIconSizes(IconNameVar string) uintptr { | |
| 410 | + | func (x *IconTheme) GetIconSizes(IconNameVar string) []int { | |
| 411 | 411 | ||
| 412 | 412 | cret := xIconThemeGetIconSizes(x.GoPointer(), IconNameVar) | |
| 413 | 413 | return cret | |
| @@ -516,7 +516,7 @@ func (x *IconTheme) LookupIcon(IconNameVar string, FallbacksVar []string, SizeVa | |||
| 516 | 516 | return cls | |
| 517 | 517 | } | |
| 518 | 518 | ||
| 519 | - | var xIconThemeSetResourcePath func(uintptr, uintptr) | |
| 519 | + | var xIconThemeSetResourcePath func(uintptr, []string) | |
| 520 | 520 | ||
| 521 | 521 | // Sets the resource paths that will be looked at when | |
| 522 | 522 | // looking for icons, similar to search paths. | |
| @@ -529,13 +529,13 @@ var xIconThemeSetResourcePath func(uintptr, uintptr) | |||
| 529 | 529 | // Icons that are directly placed in the resource path instead | |
| 530 | 530 | // of a subdirectory are also considered as ultimate fallback, | |
| 531 | 531 | // but they are treated like unthemed icons. | |
| 532 | - | func (x *IconTheme) SetResourcePath(PathVar uintptr) { | |
| 532 | + | func (x *IconTheme) SetResourcePath(PathVar []string) { | |
| 533 | 533 | ||
| 534 | 534 | xIconThemeSetResourcePath(x.GoPointer(), PathVar) | |
| 535 | 535 | ||
| 536 | 536 | } | |
| 537 | 537 | ||
| 538 | - | var xIconThemeSetSearchPath func(uintptr, uintptr) | |
| 538 | + | var xIconThemeSetSearchPath func(uintptr, []string) | |
| 539 | 539 | ||
| 540 | 540 | // Sets the search path for the icon theme object. | |
| 541 | 541 | // | |
| @@ -552,7 +552,7 @@ var xIconThemeSetSearchPath func(uintptr, uintptr) | |||
| 552 | 552 | // (This is legacy feature, and new icons should be put | |
| 553 | 553 | // into the fallback icon theme, which is called hicolor, | |
| 554 | 554 | // rather than directly on the icon path.) | |
| 555 | - | func (x *IconTheme) SetSearchPath(PathVar uintptr) { | |
| 555 | + | func (x *IconTheme) SetSearchPath(PathVar []string) { | |
| 556 | 556 | ||
| 557 | 557 | xIconThemeSetSearchPath(x.GoPointer(), PathVar) | |
| 558 | 558 | ||
M v4/gtk/gtkiconview.go +3 -3
| @@ -1077,7 +1077,7 @@ func (x *IconView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 1077 | 1077 | // property change must be communicated to assistive technologies. | |
| 1078 | 1078 | // | |
| 1079 | 1079 | // This function is meant to be used by language bindings. | |
| 1080 | - | func (x *IconView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1080 | + | func (x *IconView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1081 | 1081 | ||
| 1082 | 1082 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1083 | 1083 | ||
| @@ -1113,7 +1113,7 @@ func (x *IconView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 1113 | 1113 | // relation change must be communicated to assistive technologies. | |
| 1114 | 1114 | // | |
| 1115 | 1115 | // This function is meant to be used by language bindings. | |
| 1116 | - | func (x *IconView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1116 | + | func (x *IconView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1117 | 1117 | ||
| 1118 | 1118 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1119 | 1119 | ||
| @@ -1146,7 +1146,7 @@ func (x *IconView) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 1146 | 1146 | // state change must be communicated to assistive technologies. | |
| 1147 | 1147 | // | |
| 1148 | 1148 | // This function is meant to be used by language bindings. | |
| 1149 | - | func (x *IconView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1149 | + | func (x *IconView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1150 | 1150 | ||
| 1151 | 1151 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1152 | 1152 | ||
M v4/gtk/gtkimage.go +3 -3
| @@ -505,7 +505,7 @@ func (x *Image) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 505 | 505 | // property change must be communicated to assistive technologies. | |
| 506 | 506 | // | |
| 507 | 507 | // This function is meant to be used by language bindings. | |
| 508 | - | func (x *Image) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 508 | + | func (x *Image) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 509 | 509 | ||
| 510 | 510 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 511 | 511 | ||
| @@ -541,7 +541,7 @@ func (x *Image) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 541 | 541 | // relation change must be communicated to assistive technologies. | |
| 542 | 542 | // | |
| 543 | 543 | // This function is meant to be used by language bindings. | |
| 544 | - | func (x *Image) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 544 | + | func (x *Image) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 545 | 545 | ||
| 546 | 546 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 547 | 547 | ||
| @@ -574,7 +574,7 @@ func (x *Image) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 574 | 574 | // state change must be communicated to assistive technologies. | |
| 575 | 575 | // | |
| 576 | 576 | // This function is meant to be used by language bindings. | |
| 577 | - | func (x *Image) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 577 | + | func (x *Image) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 578 | 578 | ||
| 579 | 579 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 580 | 580 | ||
M v4/gtk/gtkimcontextsimple.go +2 -2
| @@ -99,7 +99,7 @@ func (x *IMContextSimple) AddComposeFile(ComposeFileVar string) { | |||
| 99 | 99 | ||
| 100 | 100 | } | |
| 101 | 101 | ||
| 102 | - | var xIMContextSimpleAddTable func(uintptr, uintptr, int, int) | |
| 102 | + | var xIMContextSimpleAddTable func(uintptr, []uint16, int, int) | |
| 103 | 103 | ||
| 104 | 104 | // Adds an additional table to search to the input context. | |
| 105 | 105 | // Each row of the table consists of @max_seq_len key symbols | |
| @@ -110,7 +110,7 @@ var xIMContextSimpleAddTable func(uintptr, uintptr, int, int) | |||
| 110 | 110 | // The table must be sorted in dictionary order on the | |
| 111 | 111 | // numeric value of the key symbol fields. (Values beyond | |
| 112 | 112 | // the length of the sequence should be zero.) | |
| 113 | - | func (x *IMContextSimple) AddTable(DataVar uintptr, MaxSeqLenVar int, NSeqsVar int) { | |
| 113 | + | func (x *IMContextSimple) AddTable(DataVar []uint16, MaxSeqLenVar int, NSeqsVar int) { | |
| 114 | 114 | ||
| 115 | 115 | xIMContextSimpleAddTable(x.GoPointer(), DataVar, MaxSeqLenVar, NSeqsVar) | |
| 116 | 116 | ||
M v4/gtk/gtkinfobar.go +3 -3
| @@ -435,7 +435,7 @@ func (x *InfoBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 435 | 435 | // property change must be communicated to assistive technologies. | |
| 436 | 436 | // | |
| 437 | 437 | // This function is meant to be used by language bindings. | |
| 438 | - | func (x *InfoBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 438 | + | func (x *InfoBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 439 | 439 | ||
| 440 | 440 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 441 | 441 | ||
| @@ -471,7 +471,7 @@ func (x *InfoBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 471 | 471 | // relation change must be communicated to assistive technologies. | |
| 472 | 472 | // | |
| 473 | 473 | // This function is meant to be used by language bindings. | |
| 474 | - | func (x *InfoBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 474 | + | func (x *InfoBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 475 | 475 | ||
| 476 | 476 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 477 | 477 | ||
| @@ -504,7 +504,7 @@ func (x *InfoBar) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 504 | 504 | // state change must be communicated to assistive technologies. | |
| 505 | 505 | // | |
| 506 | 506 | // This function is meant to be used by language bindings. | |
| 507 | - | func (x *InfoBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 507 | + | func (x *InfoBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 508 | 508 | ||
| 509 | 509 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 510 | 510 | ||
M v4/gtk/gtkinscription.go +3 -3
| @@ -358,7 +358,7 @@ func (x *Inscription) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 358 | 358 | // property change must be communicated to assistive technologies. | |
| 359 | 359 | // | |
| 360 | 360 | // This function is meant to be used by language bindings. | |
| 361 | - | func (x *Inscription) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 361 | + | func (x *Inscription) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 362 | 362 | ||
| 363 | 363 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 364 | 364 | ||
| @@ -394,7 +394,7 @@ func (x *Inscription) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 394 | 394 | // relation change must be communicated to assistive technologies. | |
| 395 | 395 | // | |
| 396 | 396 | // This function is meant to be used by language bindings. | |
| 397 | - | func (x *Inscription) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 397 | + | func (x *Inscription) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 398 | 398 | ||
| 399 | 399 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 400 | 400 | ||
| @@ -427,7 +427,7 @@ func (x *Inscription) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 427 | 427 | // state change must be communicated to assistive technologies. | |
| 428 | 428 | // | |
| 429 | 429 | // This function is meant to be used by language bindings. | |
| 430 | - | func (x *Inscription) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 430 | + | func (x *Inscription) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 431 | 431 | ||
| 432 | 432 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 433 | 433 | ||
M v4/gtk/gtklabel.go +3 -3
| @@ -1088,7 +1088,7 @@ func (x *Label) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 1088 | 1088 | // property change must be communicated to assistive technologies. | |
| 1089 | 1089 | // | |
| 1090 | 1090 | // This function is meant to be used by language bindings. | |
| 1091 | - | func (x *Label) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1091 | + | func (x *Label) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1092 | 1092 | ||
| 1093 | 1093 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1094 | 1094 | ||
| @@ -1124,7 +1124,7 @@ func (x *Label) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 1124 | 1124 | // relation change must be communicated to assistive technologies. | |
| 1125 | 1125 | // | |
| 1126 | 1126 | // This function is meant to be used by language bindings. | |
| 1127 | - | func (x *Label) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1127 | + | func (x *Label) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1128 | 1128 | ||
| 1129 | 1129 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1130 | 1130 | ||
| @@ -1157,7 +1157,7 @@ func (x *Label) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 1157 | 1157 | // state change must be communicated to assistive technologies. | |
| 1158 | 1158 | // | |
| 1159 | 1159 | // This function is meant to be used by language bindings. | |
| 1160 | - | func (x *Label) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1160 | + | func (x *Label) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1161 | 1161 | ||
| 1162 | 1162 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1163 | 1163 | ||
M v4/gtk/gtklayoutmanager.go +3 -2
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The `GtkLayoutManagerClass` structure contains only private data, and | |
| @@ -15,9 +16,9 @@ import ( | |||
| 15 | 16 | type LayoutManagerClass struct { | |
| 16 | 17 | ParentClass uintptr | |
| 17 | 18 | ||
| 18 | - | LayoutChildType []interface{} | |
| 19 | + | LayoutChildType types.GType | |
| 19 | 20 | ||
| 20 | - | Padding uintptr | |
| 21 | + | Padding [16]uintptr | |
| 21 | 22 | } | |
| 22 | 23 | ||
| 23 | 24 | func (x *LayoutManagerClass) GoPointer() uintptr { | |
M v4/gtk/gtklevelbar.go +3 -3
| @@ -391,7 +391,7 @@ func (x *LevelBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 391 | 391 | // property change must be communicated to assistive technologies. | |
| 392 | 392 | // | |
| 393 | 393 | // This function is meant to be used by language bindings. | |
| 394 | - | func (x *LevelBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 394 | + | func (x *LevelBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 395 | 395 | ||
| 396 | 396 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 397 | 397 | ||
| @@ -427,7 +427,7 @@ func (x *LevelBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 427 | 427 | // relation change must be communicated to assistive technologies. | |
| 428 | 428 | // | |
| 429 | 429 | // This function is meant to be used by language bindings. | |
| 430 | - | func (x *LevelBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 430 | + | func (x *LevelBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 431 | 431 | ||
| 432 | 432 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 433 | 433 | ||
| @@ -460,7 +460,7 @@ func (x *LevelBar) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 460 | 460 | // state change must be communicated to assistive technologies. | |
| 461 | 461 | // | |
| 462 | 462 | // This function is meant to be used by language bindings. | |
| 463 | - | func (x *LevelBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 463 | + | func (x *LevelBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 464 | 464 | ||
| 465 | 465 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 466 | 466 | ||
M v4/gtk/gtklinkbutton.go +3 -3
| @@ -218,7 +218,7 @@ func (x *LinkButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 218 | 218 | // property change must be communicated to assistive technologies. | |
| 219 | 219 | // | |
| 220 | 220 | // This function is meant to be used by language bindings. | |
| 221 | - | func (x *LinkButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 221 | + | func (x *LinkButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 222 | 222 | ||
| 223 | 223 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 224 | 224 | ||
| @@ -254,7 +254,7 @@ func (x *LinkButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 254 | 254 | // relation change must be communicated to assistive technologies. | |
| 255 | 255 | // | |
| 256 | 256 | // This function is meant to be used by language bindings. | |
| 257 | - | func (x *LinkButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 257 | + | func (x *LinkButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 258 | 258 | ||
| 259 | 259 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 260 | 260 | ||
| @@ -287,7 +287,7 @@ func (x *LinkButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 287 | 287 | // state change must be communicated to assistive technologies. | |
| 288 | 288 | // | |
| 289 | 289 | // This function is meant to be used by language bindings. | |
| 290 | - | func (x *LinkButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 290 | + | func (x *LinkButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 291 | 291 | ||
| 292 | 292 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 293 | 293 | ||
M v4/gtk/gtklistbase.go +3 -3
| @@ -91,7 +91,7 @@ func (x *ListBase) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 91 | 91 | // property change must be communicated to assistive technologies. | |
| 92 | 92 | // | |
| 93 | 93 | // This function is meant to be used by language bindings. | |
| 94 | - | func (x *ListBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 94 | + | func (x *ListBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 95 | 95 | ||
| 96 | 96 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 97 | 97 | ||
| @@ -127,7 +127,7 @@ func (x *ListBase) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 127 | 127 | // relation change must be communicated to assistive technologies. | |
| 128 | 128 | // | |
| 129 | 129 | // This function is meant to be used by language bindings. | |
| 130 | - | func (x *ListBase) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 130 | + | func (x *ListBase) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 131 | 131 | ||
| 132 | 132 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 133 | 133 | ||
| @@ -160,7 +160,7 @@ func (x *ListBase) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 160 | 160 | // state change must be communicated to assistive technologies. | |
| 161 | 161 | // | |
| 162 | 162 | // This function is meant to be used by language bindings. | |
| 163 | - | func (x *ListBase) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 163 | + | func (x *ListBase) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 164 | 164 | ||
| 165 | 165 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 166 | 166 | ||
M v4/gtk/gtklistbox.go +7 -7
| @@ -40,7 +40,7 @@ type ListBoxUpdateHeaderFunc func(uintptr, uintptr, uintptr) | |||
| 40 | 40 | type ListBoxRowClass struct { | |
| 41 | 41 | ParentClass uintptr | |
| 42 | 42 | ||
| 43 | - | Padding uintptr | |
| 43 | + | Padding [8]uintptr | |
| 44 | 44 | } | |
| 45 | 45 | ||
| 46 | 46 | func (x *ListBoxRowClass) GoPointer() uintptr { | |
| @@ -793,7 +793,7 @@ func (x *ListBox) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 793 | 793 | // property change must be communicated to assistive technologies. | |
| 794 | 794 | // | |
| 795 | 795 | // This function is meant to be used by language bindings. | |
| 796 | - | func (x *ListBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 796 | + | func (x *ListBox) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 797 | 797 | ||
| 798 | 798 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 799 | 799 | ||
| @@ -829,7 +829,7 @@ func (x *ListBox) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 829 | 829 | // relation change must be communicated to assistive technologies. | |
| 830 | 830 | // | |
| 831 | 831 | // This function is meant to be used by language bindings. | |
| 832 | - | func (x *ListBox) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 832 | + | func (x *ListBox) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 833 | 833 | ||
| 834 | 834 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 835 | 835 | ||
| @@ -862,7 +862,7 @@ func (x *ListBox) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 862 | 862 | // state change must be communicated to assistive technologies. | |
| 863 | 863 | // | |
| 864 | 864 | // This function is meant to be used by language bindings. | |
| 865 | - | func (x *ListBox) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 865 | + | func (x *ListBox) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 866 | 866 | ||
| 867 | 867 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 868 | 868 | ||
| @@ -1139,7 +1139,7 @@ func (x *ListBoxRow) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 1139 | 1139 | // property change must be communicated to assistive technologies. | |
| 1140 | 1140 | // | |
| 1141 | 1141 | // This function is meant to be used by language bindings. | |
| 1142 | - | func (x *ListBoxRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 1142 | + | func (x *ListBoxRow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 1143 | 1143 | ||
| 1144 | 1144 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 1145 | 1145 | ||
| @@ -1175,7 +1175,7 @@ func (x *ListBoxRow) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 1175 | 1175 | // relation change must be communicated to assistive technologies. | |
| 1176 | 1176 | // | |
| 1177 | 1177 | // This function is meant to be used by language bindings. | |
| 1178 | - | func (x *ListBoxRow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 1178 | + | func (x *ListBoxRow) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 1179 | 1179 | ||
| 1180 | 1180 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1181 | 1181 | ||
| @@ -1208,7 +1208,7 @@ func (x *ListBoxRow) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 1208 | 1208 | // state change must be communicated to assistive technologies. | |
| 1209 | 1209 | // | |
| 1210 | 1210 | // This function is meant to be used by language bindings. | |
| 1211 | - | func (x *ListBoxRow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1211 | + | func (x *ListBoxRow) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1212 | 1212 | ||
| 1213 | 1213 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1214 | 1214 | ||
M v4/gtk/gtkliststore.go +14 -13
| @@ -9,12 +9,13 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | type ListStoreClass struct { | |
| 15 | 16 | ParentClass uintptr | |
| 16 | 17 | ||
| 17 | - | Padding uintptr | |
| 18 | + | Padding [8]uintptr | |
| 18 | 19 | } | |
| 19 | 20 | ||
| 20 | 21 | func (x *ListStoreClass) GoPointer() uintptr { | |
| @@ -203,10 +204,10 @@ func NewListStore(NColumnsVar int, varArgs ...interface{}) *ListStore { | |||
| 203 | 204 | return cls | |
| 204 | 205 | } | |
| 205 | 206 | ||
| 206 | - | var xNewListStorev func(int, uintptr) uintptr | |
| 207 | + | var xNewListStorev func(int, []types.GType) uintptr | |
| 207 | 208 | ||
| 208 | 209 | // Non-vararg creation function. Used primarily by language bindings. | |
| 209 | - | func NewListStorev(NColumnsVar int, TypesVar uintptr) *ListStore { | |
| 210 | + | func NewListStorev(NColumnsVar int, TypesVar []types.GType) *ListStore { | |
| 210 | 211 | var cls *ListStore | |
| 211 | 212 | ||
| 212 | 213 | cret := xNewListStorev(NColumnsVar, TypesVar) | |
| @@ -318,14 +319,14 @@ func (x *ListStore) InsertWithValues(IterVar *TreeIter, PositionVar int, varArgs | |||
| 318 | 319 | ||
| 319 | 320 | } | |
| 320 | 321 | ||
| 321 | - | var xListStoreInsertWithValuesv func(uintptr, *TreeIter, int, uintptr, uintptr, int) | |
| 322 | + | var xListStoreInsertWithValuesv func(uintptr, *TreeIter, int, []int, []gobject.Value, int) | |
| 322 | 323 | ||
| 323 | 324 | // A variant of gtk_list_store_insert_with_values() which | |
| 324 | 325 | // takes the columns and values as two arrays, instead of | |
| 325 | 326 | // varargs. | |
| 326 | 327 | // | |
| 327 | 328 | // This function is mainly intended for language-bindings. | |
| 328 | - | func (x *ListStore) InsertWithValuesv(IterVar *TreeIter, PositionVar int, ColumnsVar uintptr, ValuesVar uintptr, NValuesVar int) { | |
| 329 | + | func (x *ListStore) InsertWithValuesv(IterVar *TreeIter, PositionVar int, ColumnsVar []int, ValuesVar []gobject.Value, NValuesVar int) { | |
| 329 | 330 | ||
| 330 | 331 | xListStoreInsertWithValuesv(x.GoPointer(), IterVar, PositionVar, ColumnsVar, ValuesVar, NValuesVar) | |
| 331 | 332 | ||
| @@ -387,11 +388,11 @@ func (x *ListStore) Remove(IterVar *TreeIter) bool { | |||
| 387 | 388 | return cret | |
| 388 | 389 | } | |
| 389 | 390 | ||
| 390 | - | var xListStoreReorder func(uintptr, uintptr) | |
| 391 | + | var xListStoreReorder func(uintptr, []int) | |
| 391 | 392 | ||
| 392 | 393 | // Reorders @store to follow the order indicated by @new_order. Note that | |
| 393 | 394 | // this function only works with unsorted stores. | |
| 394 | - | func (x *ListStore) Reorder(NewOrderVar uintptr) { | |
| 395 | + | func (x *ListStore) Reorder(NewOrderVar []int) { | |
| 395 | 396 | ||
| 396 | 397 | xListStoreReorder(x.GoPointer(), NewOrderVar) | |
| 397 | 398 | ||
| @@ -414,13 +415,13 @@ func (x *ListStore) Set(IterVar *TreeIter, varArgs ...interface{}) { | |||
| 414 | 415 | ||
| 415 | 416 | } | |
| 416 | 417 | ||
| 417 | - | var xListStoreSetColumnTypes func(uintptr, int, uintptr) | |
| 418 | + | var xListStoreSetColumnTypes func(uintptr, int, []types.GType) | |
| 418 | 419 | ||
| 419 | 420 | // This function is meant primarily for `GObject`s that inherit from `GtkListStore`, | |
| 420 | 421 | // and should only be used when constructing a new `GtkListStore`. It will not | |
| 421 | 422 | // function after a row has been added, or a method on the `GtkTreeModel` | |
| 422 | 423 | // interface is called. | |
| 423 | - | func (x *ListStore) SetColumnTypes(NColumnsVar int, TypesVar uintptr) { | |
| 424 | + | func (x *ListStore) SetColumnTypes(NColumnsVar int, TypesVar []types.GType) { | |
| 424 | 425 | ||
| 425 | 426 | xListStoreSetColumnTypes(x.GoPointer(), NColumnsVar, TypesVar) | |
| 426 | 427 | ||
| @@ -447,14 +448,14 @@ func (x *ListStore) SetValue(IterVar *TreeIter, ColumnVar int, ValueVar *gobject | |||
| 447 | 448 | ||
| 448 | 449 | } | |
| 449 | 450 | ||
| 450 | - | var xListStoreSetValuesv func(uintptr, *TreeIter, uintptr, uintptr, int) | |
| 451 | + | var xListStoreSetValuesv func(uintptr, *TreeIter, []int, []gobject.Value, int) | |
| 451 | 452 | ||
| 452 | 453 | // A variant of gtk_list_store_set_valist() which | |
| 453 | 454 | // takes the columns and values as two arrays, instead of | |
| 454 | 455 | // varargs. This function is mainly intended for | |
| 455 | 456 | // language-bindings and in case the number of columns to | |
| 456 | 457 | // change is not known until run-time. | |
| 457 | - | func (x *ListStore) SetValuesv(IterVar *TreeIter, ColumnsVar uintptr, ValuesVar uintptr, NValuesVar int) { | |
| 458 | + | func (x *ListStore) SetValuesv(IterVar *TreeIter, ColumnsVar []int, ValuesVar []gobject.Value, NValuesVar int) { | |
| 458 | 459 | ||
| 459 | 460 | xListStoreSetValuesv(x.GoPointer(), IterVar, ColumnsVar, ValuesVar, NValuesVar) | |
| 460 | 461 | ||
| @@ -592,7 +593,7 @@ func (x *ListStore) Get(IterVar *TreeIter, varArgs ...interface{}) { | |||
| 592 | 593 | } | |
| 593 | 594 | ||
| 594 | 595 | // Returns the type of the column. | |
| 595 | - | func (x *ListStore) GetColumnType(IndexVar int) []interface{} { | |
| 596 | + | func (x *ListStore) GetColumnType(IndexVar int) types.GType { | |
| 596 | 597 | ||
| 597 | 598 | cret := XGtkTreeModelGetColumnType(x.GoPointer(), IndexVar) | |
| 598 | 599 | return cret | |
| @@ -852,7 +853,7 @@ func (x *ListStore) RowsReordered(PathVar *TreePath, IterVar *TreeIter, NewOrder | |||
| 852 | 853 | // | |
| 853 | 854 | // This should be called by models when their rows have been | |
| 854 | 855 | // reordered. | |
| 855 | - | func (x *ListStore) RowsReorderedWithLength(PathVar *TreePath, IterVar *TreeIter, NewOrderVar uintptr, LengthVar int) { | |
| 856 | + | func (x *ListStore) RowsReorderedWithLength(PathVar *TreePath, IterVar *TreeIter, NewOrderVar []int, LengthVar int) { | |
| 856 | 857 | ||
| 857 | 858 | XGtkTreeModelRowsReorderedWithLength(x.GoPointer(), PathVar, IterVar, NewOrderVar, LengthVar) | |
| 858 | 859 | ||
M v4/gtk/gtklistview.go +3 -3
| @@ -361,7 +361,7 @@ func (x *ListView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 361 | 361 | // property change must be communicated to assistive technologies. | |
| 362 | 362 | // | |
| 363 | 363 | // This function is meant to be used by language bindings. | |
| 364 | - | func (x *ListView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 364 | + | func (x *ListView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 365 | 365 | ||
| 366 | 366 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 367 | 367 | ||
| @@ -397,7 +397,7 @@ func (x *ListView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 397 | 397 | // relation change must be communicated to assistive technologies. | |
| 398 | 398 | // | |
| 399 | 399 | // This function is meant to be used by language bindings. | |
| 400 | - | func (x *ListView) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 400 | + | func (x *ListView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 401 | 401 | ||
| 402 | 402 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 403 | 403 | ||
| @@ -430,7 +430,7 @@ func (x *ListView) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 430 | 430 | // state change must be communicated to assistive technologies. | |
| 431 | 431 | // | |
| 432 | 432 | // This function is meant to be used by language bindings. | |
| 433 | - | func (x *ListView) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 433 | + | func (x *ListView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 434 | 434 | ||
| 435 | 435 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 436 | 436 | ||
M v4/gtk/gtklockbutton.go +3 -3
| @@ -165,7 +165,7 @@ func (x *LockButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 165 | 165 | // property change must be communicated to assistive technologies. | |
| 166 | 166 | // | |
| 167 | 167 | // This function is meant to be used by language bindings. | |
| 168 | - | func (x *LockButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 168 | + | func (x *LockButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 169 | 169 | ||
| 170 | 170 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 171 | 171 | ||
| @@ -201,7 +201,7 @@ func (x *LockButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 201 | 201 | // relation change must be communicated to assistive technologies. | |
| 202 | 202 | // | |
| 203 | 203 | // This function is meant to be used by language bindings. | |
| 204 | - | func (x *LockButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 204 | + | func (x *LockButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 205 | 205 | ||
| 206 | 206 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 207 | 207 | ||
| @@ -234,7 +234,7 @@ func (x *LockButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 234 | 234 | // state change must be communicated to assistive technologies. | |
| 235 | 235 | // | |
| 236 | 236 | // This function is meant to be used by language bindings. | |
| 237 | - | func (x *LockButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 237 | + | func (x *LockButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 238 | 238 | ||
| 239 | 239 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 240 | 240 | ||
M v4/gtk/gtkmaplistmodel.go +2 -1
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | // User function that is called to map an @item of the original model to | |
| @@ -173,7 +174,7 @@ func (x *MapListModel) GetItem(PositionVar uint) uintptr { | |||
| 173 | 174 | // | |
| 174 | 175 | // The item type of a #GListModel can not change during the life of the | |
| 175 | 176 | // model. | |
| 176 | - | func (x *MapListModel) GetItemType() []interface{} { | |
| 177 | + | func (x *MapListModel) GetItemType() types.GType { | |
| 177 | 178 | ||
| 178 | 179 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 179 | 180 | return cret | |
M v4/gtk/gtkmediacontrols.go +3 -3
| @@ -141,7 +141,7 @@ func (x *MediaControls) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 141 | 141 | // property change must be communicated to assistive technologies. | |
| 142 | 142 | // | |
| 143 | 143 | // This function is meant to be used by language bindings. | |
| 144 | - | func (x *MediaControls) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 144 | + | func (x *MediaControls) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 145 | 145 | ||
| 146 | 146 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 147 | 147 | ||
| @@ -177,7 +177,7 @@ func (x *MediaControls) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 177 | 177 | // relation change must be communicated to assistive technologies. | |
| 178 | 178 | // | |
| 179 | 179 | // This function is meant to be used by language bindings. | |
| 180 | - | func (x *MediaControls) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 180 | + | func (x *MediaControls) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 181 | 181 | ||
| 182 | 182 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 183 | 183 | ||
| @@ -210,7 +210,7 @@ func (x *MediaControls) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 210 | 210 | // state change must be communicated to assistive technologies. | |
| 211 | 211 | // | |
| 212 | 212 | // This function is meant to be used by language bindings. | |
| 213 | - | func (x *MediaControls) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 213 | + | func (x *MediaControls) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 214 | 214 | ||
| 215 | 215 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 216 | 216 | ||
M v4/gtk/gtkmenubutton.go +3 -3
| @@ -495,7 +495,7 @@ func (x *MenuButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 495 | 495 | // property change must be communicated to assistive technologies. | |
| 496 | 496 | // | |
| 497 | 497 | // This function is meant to be used by language bindings. | |
| 498 | - | func (x *MenuButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 498 | + | func (x *MenuButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 499 | 499 | ||
| 500 | 500 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 501 | 501 | ||
| @@ -531,7 +531,7 @@ func (x *MenuButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 531 | 531 | // relation change must be communicated to assistive technologies. | |
| 532 | 532 | // | |
| 533 | 533 | // This function is meant to be used by language bindings. | |
| 534 | - | func (x *MenuButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 534 | + | func (x *MenuButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 535 | 535 | ||
| 536 | 536 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 537 | 537 | ||
| @@ -564,7 +564,7 @@ func (x *MenuButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 564 | 564 | // state change must be communicated to assistive technologies. | |
| 565 | 565 | // | |
| 566 | 566 | // This function is meant to be used by language bindings. | |
| 567 | - | func (x *MenuButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 567 | + | func (x *MenuButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 568 | 568 | ||
| 569 | 569 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 570 | 570 | ||
M v4/gtk/gtkmessagedialog.go +3 -3
| @@ -320,7 +320,7 @@ func (x *MessageDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 320 | 320 | // property change must be communicated to assistive technologies. | |
| 321 | 321 | // | |
| 322 | 322 | // This function is meant to be used by language bindings. | |
| 323 | - | func (x *MessageDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 323 | + | func (x *MessageDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 324 | 324 | ||
| 325 | 325 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 326 | 326 | ||
| @@ -356,7 +356,7 @@ func (x *MessageDialog) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 356 | 356 | // relation change must be communicated to assistive technologies. | |
| 357 | 357 | // | |
| 358 | 358 | // This function is meant to be used by language bindings. | |
| 359 | - | func (x *MessageDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 359 | + | func (x *MessageDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 360 | 360 | ||
| 361 | 361 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 362 | 362 | ||
| @@ -389,7 +389,7 @@ func (x *MessageDialog) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 389 | 389 | // state change must be communicated to assistive technologies. | |
| 390 | 390 | // | |
| 391 | 391 | // This function is meant to be used by language bindings. | |
| 392 | - | func (x *MessageDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 392 | + | func (x *MessageDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 393 | 393 | ||
| 394 | 394 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 395 | 395 | ||
M v4/gtk/gtkmultifilter.go +4 -3
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type AnyFilterClass struct { | |
| @@ -97,7 +98,7 @@ func (x *AnyFilter) GetItem(PositionVar uint) uintptr { | |||
| 97 | 98 | // | |
| 98 | 99 | // The item type of a #GListModel can not change during the life of the | |
| 99 | 100 | // model. | |
| 100 | - | func (x *AnyFilter) GetItemType() []interface{} { | |
| 101 | + | func (x *AnyFilter) GetItemType() types.GType { | |
| 101 | 102 | ||
| 102 | 103 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 103 | 104 | return cret | |
| @@ -241,7 +242,7 @@ func (x *EveryFilter) GetItem(PositionVar uint) uintptr { | |||
| 241 | 242 | // | |
| 242 | 243 | // The item type of a #GListModel can not change during the life of the | |
| 243 | 244 | // model. | |
| 244 | - | func (x *EveryFilter) GetItemType() []interface{} { | |
| 245 | + | func (x *EveryFilter) GetItemType() types.GType { | |
| 245 | 246 | ||
| 246 | 247 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 247 | 248 | return cret | |
| @@ -383,7 +384,7 @@ func (x *MultiFilter) GetItem(PositionVar uint) uintptr { | |||
| 383 | 384 | // | |
| 384 | 385 | // The item type of a #GListModel can not change during the life of the | |
| 385 | 386 | // model. | |
| 386 | - | func (x *MultiFilter) GetItemType() []interface{} { | |
| 387 | + | func (x *MultiFilter) GetItemType() types.GType { | |
| 387 | 388 | ||
| 388 | 389 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 389 | 390 | return cret | |
M v4/gtk/gtkmultiselection.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MultiSelectionClass struct { | |
| @@ -105,7 +106,7 @@ func (x *MultiSelection) GetItem(PositionVar uint) uintptr { | |||
| 105 | 106 | // | |
| 106 | 107 | // The item type of a #GListModel can not change during the life of the | |
| 107 | 108 | // model. | |
| 108 | - | func (x *MultiSelection) GetItemType() []interface{} { | |
| 109 | + | func (x *MultiSelection) GetItemType() types.GType { | |
| 109 | 110 | ||
| 110 | 111 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 111 | 112 | return cret | |
M v4/gtk/gtkmultisorter.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MultiSorterClass struct { | |
| @@ -109,7 +110,7 @@ func (x *MultiSorter) GetItem(PositionVar uint) uintptr { | |||
| 109 | 110 | // | |
| 110 | 111 | // The item type of a #GListModel can not change during the life of the | |
| 111 | 112 | // model. | |
| 112 | - | func (x *MultiSorter) GetItemType() []interface{} { | |
| 113 | + | func (x *MultiSorter) GetItemType() types.GType { | |
| 113 | 114 | ||
| 114 | 115 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 115 | 116 | return cret | |
M v4/gtk/gtknoselection.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type NoSelectionClass struct { | |
| @@ -108,7 +109,7 @@ func (x *NoSelection) GetItem(PositionVar uint) uintptr { | |||
| 108 | 109 | // | |
| 109 | 110 | // The item type of a #GListModel can not change during the life of the | |
| 110 | 111 | // model. | |
| 111 | - | func (x *NoSelection) GetItemType() []interface{} { | |
| 112 | + | func (x *NoSelection) GetItemType() types.GType { | |
| 112 | 113 | ||
| 113 | 114 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 114 | 115 | return cret | |
M v4/gtk/gtknotebook.go +3 -3
| @@ -959,7 +959,7 @@ func (x *Notebook) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 959 | 959 | // property change must be communicated to assistive technologies. | |
| 960 | 960 | // | |
| 961 | 961 | // This function is meant to be used by language bindings. | |
| 962 | - | func (x *Notebook) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 962 | + | func (x *Notebook) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 963 | 963 | ||
| 964 | 964 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 965 | 965 | ||
| @@ -995,7 +995,7 @@ func (x *Notebook) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 995 | 995 | // relation change must be communicated to assistive technologies. | |
| 996 | 996 | // | |
| 997 | 997 | // This function is meant to be used by language bindings. | |
| 998 | - | func (x *Notebook) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 998 | + | func (x *Notebook) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 999 | 999 | ||
| 1000 | 1000 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 1001 | 1001 | ||
| @@ -1028,7 +1028,7 @@ func (x *Notebook) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 1028 | 1028 | // state change must be communicated to assistive technologies. | |
| 1029 | 1029 | // | |
| 1030 | 1030 | // This function is meant to be used by language bindings. | |
| 1031 | - | func (x *Notebook) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 1031 | + | func (x *Notebook) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 1032 | 1032 | ||
| 1033 | 1033 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 1034 | 1034 | ||
M v4/gtk/gtkoverlay.go +3 -3
| @@ -260,7 +260,7 @@ func (x *Overlay) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 260 | 260 | // property change must be communicated to assistive technologies. | |
| 261 | 261 | // | |
| 262 | 262 | // This function is meant to be used by language bindings. | |
| 263 | - | func (x *Overlay) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 263 | + | func (x *Overlay) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 264 | 264 | ||
| 265 | 265 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 266 | 266 | ||
| @@ -296,7 +296,7 @@ func (x *Overlay) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 296 | 296 | // relation change must be communicated to assistive technologies. | |
| 297 | 297 | // | |
| 298 | 298 | // This function is meant to be used by language bindings. | |
| 299 | - | func (x *Overlay) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 299 | + | func (x *Overlay) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 300 | 300 | ||
| 301 | 301 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 302 | 302 | ||
| @@ -329,7 +329,7 @@ func (x *Overlay) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 329 | 329 | // state change must be communicated to assistive technologies. | |
| 330 | 330 | // | |
| 331 | 331 | // This function is meant to be used by language bindings. | |
| 332 | - | func (x *Overlay) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 332 | + | func (x *Overlay) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 333 | 333 | ||
| 334 | 334 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 335 | 335 | ||
M v4/gtk/gtkpadcontroller.go +2 -2
| @@ -151,13 +151,13 @@ func (x *PadController) SetAction(TypeVar PadActionType, IndexVar int, ModeVar i | |||
| 151 | 151 | ||
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | - | var xPadControllerSetActionEntries func(uintptr, uintptr, int) | |
| 154 | + | var xPadControllerSetActionEntries func(uintptr, []PadActionEntry, int) | |
| 155 | 155 | ||
| 156 | 156 | // A convenience function to add a group of action entries on | |
| 157 | 157 | // @controller. | |
| 158 | 158 | // | |
| 159 | 159 | // See [struct@Gtk.PadActionEntry] and [method@Gtk.PadController.set_action]. | |
| 160 | - | func (x *PadController) SetActionEntries(EntriesVar uintptr, NEntriesVar int) { | |
| 160 | + | func (x *PadController) SetActionEntries(EntriesVar []PadActionEntry, NEntriesVar int) { | |
| 161 | 161 | ||
| 162 | 162 | xPadControllerSetActionEntries(x.GoPointer(), EntriesVar, NEntriesVar) | |
| 163 | 163 | ||
M v4/gtk/gtkpagesetupunixdialog.go +3 -3
| @@ -164,7 +164,7 @@ func (x *PageSetupUnixDialog) UpdateProperty(FirstPropertyVar AccessibleProperty | |||
| 164 | 164 | // property change must be communicated to assistive technologies. | |
| 165 | 165 | // | |
| 166 | 166 | // This function is meant to be used by language bindings. | |
| 167 | - | func (x *PageSetupUnixDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 167 | + | func (x *PageSetupUnixDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 168 | 168 | ||
| 169 | 169 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 170 | 170 | ||
| @@ -200,7 +200,7 @@ func (x *PageSetupUnixDialog) UpdateRelation(FirstRelationVar AccessibleRelation | |||
| 200 | 200 | // relation change must be communicated to assistive technologies. | |
| 201 | 201 | // | |
| 202 | 202 | // This function is meant to be used by language bindings. | |
| 203 | - | func (x *PageSetupUnixDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 203 | + | func (x *PageSetupUnixDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 204 | 204 | ||
| 205 | 205 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 206 | 206 | ||
| @@ -233,7 +233,7 @@ func (x *PageSetupUnixDialog) UpdateState(FirstStateVar AccessibleState, varArgs | |||
| 233 | 233 | // state change must be communicated to assistive technologies. | |
| 234 | 234 | // | |
| 235 | 235 | // This function is meant to be used by language bindings. | |
| 236 | - | func (x *PageSetupUnixDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 236 | + | func (x *PageSetupUnixDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 237 | 237 | ||
| 238 | 238 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 239 | 239 | ||
M v4/gtk/gtkpaned.go +3 -3
| @@ -484,7 +484,7 @@ func (x *Paned) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 484 | 484 | // property change must be communicated to assistive technologies. | |
| 485 | 485 | // | |
| 486 | 486 | // This function is meant to be used by language bindings. | |
| 487 | - | func (x *Paned) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 487 | + | func (x *Paned) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 488 | 488 | ||
| 489 | 489 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 490 | 490 | ||
| @@ -520,7 +520,7 @@ func (x *Paned) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 520 | 520 | // relation change must be communicated to assistive technologies. | |
| 521 | 521 | // | |
| 522 | 522 | // This function is meant to be used by language bindings. | |
| 523 | - | func (x *Paned) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 523 | + | func (x *Paned) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 524 | 524 | ||
| 525 | 525 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 526 | 526 | ||
| @@ -553,7 +553,7 @@ func (x *Paned) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 553 | 553 | // state change must be communicated to assistive technologies. | |
| 554 | 554 | // | |
| 555 | 555 | // This function is meant to be used by language bindings. | |
| 556 | - | func (x *Paned) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 556 | + | func (x *Paned) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 557 | 557 | ||
| 558 | 558 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 559 | 559 | ||
M v4/gtk/gtkpasswordentry.go +3 -3
| @@ -216,7 +216,7 @@ func (x *PasswordEntry) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 216 | 216 | // property change must be communicated to assistive technologies. | |
| 217 | 217 | // | |
| 218 | 218 | // This function is meant to be used by language bindings. | |
| 219 | - | func (x *PasswordEntry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 219 | + | func (x *PasswordEntry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 220 | 220 | ||
| 221 | 221 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 222 | 222 | ||
| @@ -252,7 +252,7 @@ func (x *PasswordEntry) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 252 | 252 | // relation change must be communicated to assistive technologies. | |
| 253 | 253 | // | |
| 254 | 254 | // This function is meant to be used by language bindings. | |
| 255 | - | func (x *PasswordEntry) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 255 | + | func (x *PasswordEntry) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 256 | 256 | ||
| 257 | 257 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 258 | 258 | ||
| @@ -285,7 +285,7 @@ func (x *PasswordEntry) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 285 | 285 | // state change must be communicated to assistive technologies. | |
| 286 | 286 | // | |
| 287 | 287 | // This function is meant to be used by language bindings. | |
| 288 | - | func (x *PasswordEntry) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 288 | + | func (x *PasswordEntry) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 289 | 289 | ||
| 290 | 290 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 291 | 291 | ||
M v4/gtk/gtkpicture.go +3 -3
| @@ -462,7 +462,7 @@ func (x *Picture) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 462 | 462 | // property change must be communicated to assistive technologies. | |
| 463 | 463 | // | |
| 464 | 464 | // This function is meant to be used by language bindings. | |
| 465 | - | func (x *Picture) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 465 | + | func (x *Picture) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 466 | 466 | ||
| 467 | 467 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 468 | 468 | ||
| @@ -498,7 +498,7 @@ func (x *Picture) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 498 | 498 | // relation change must be communicated to assistive technologies. | |
| 499 | 499 | // | |
| 500 | 500 | // This function is meant to be used by language bindings. | |
| 501 | - | func (x *Picture) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 501 | + | func (x *Picture) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 502 | 502 | ||
| 503 | 503 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 504 | 504 | ||
| @@ -531,7 +531,7 @@ func (x *Picture) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 531 | 531 | // state change must be communicated to assistive technologies. | |
| 532 | 532 | // | |
| 533 | 533 | // This function is meant to be used by language bindings. | |
| 534 | - | func (x *Picture) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 534 | + | func (x *Picture) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 535 | 535 | ||
| 536 | 536 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 537 | 537 | ||
M v4/gtk/gtkpopover.go +4 -4
| @@ -15,7 +15,7 @@ import ( | |||
| 15 | 15 | type PopoverClass struct { | |
| 16 | 16 | ParentClass uintptr | |
| 17 | 17 | ||
| 18 | - | Reserved uintptr | |
| 18 | + | Reserved [8]uintptr | |
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func (x *PopoverClass) GoPointer() uintptr { | |
| @@ -466,7 +466,7 @@ func (x *Popover) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 466 | 466 | // property change must be communicated to assistive technologies. | |
| 467 | 467 | // | |
| 468 | 468 | // This function is meant to be used by language bindings. | |
| 469 | - | func (x *Popover) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 469 | + | func (x *Popover) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 470 | 470 | ||
| 471 | 471 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 472 | 472 | ||
| @@ -502,7 +502,7 @@ func (x *Popover) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 502 | 502 | // relation change must be communicated to assistive technologies. | |
| 503 | 503 | // | |
| 504 | 504 | // This function is meant to be used by language bindings. | |
| 505 | - | func (x *Popover) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 505 | + | func (x *Popover) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 506 | 506 | ||
| 507 | 507 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 508 | 508 | ||
| @@ -535,7 +535,7 @@ func (x *Popover) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 535 | 535 | // state change must be communicated to assistive technologies. | |
| 536 | 536 | // | |
| 537 | 537 | // This function is meant to be used by language bindings. | |
| 538 | - | func (x *Popover) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 538 | + | func (x *Popover) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 539 | 539 | ||
| 540 | 540 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 541 | 541 | ||
M v4/gtk/gtkpopovermenu.go +3 -3
| @@ -310,7 +310,7 @@ func (x *PopoverMenu) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 310 | 310 | // property change must be communicated to assistive technologies. | |
| 311 | 311 | // | |
| 312 | 312 | // This function is meant to be used by language bindings. | |
| 313 | - | func (x *PopoverMenu) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 313 | + | func (x *PopoverMenu) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 314 | 314 | ||
| 315 | 315 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 316 | 316 | ||
| @@ -346,7 +346,7 @@ func (x *PopoverMenu) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 346 | 346 | // relation change must be communicated to assistive technologies. | |
| 347 | 347 | // | |
| 348 | 348 | // This function is meant to be used by language bindings. | |
| 349 | - | func (x *PopoverMenu) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 349 | + | func (x *PopoverMenu) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 350 | 350 | ||
| 351 | 351 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 352 | 352 | ||
| @@ -379,7 +379,7 @@ func (x *PopoverMenu) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 379 | 379 | // state change must be communicated to assistive technologies. | |
| 380 | 380 | // | |
| 381 | 381 | // This function is meant to be used by language bindings. | |
| 382 | - | func (x *PopoverMenu) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 382 | + | func (x *PopoverMenu) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 383 | 383 | ||
| 384 | 384 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 385 | 385 | ||
M v4/gtk/gtkpopovermenubar.go +3 -3
| @@ -181,7 +181,7 @@ func (x *PopoverMenuBar) UpdateProperty(FirstPropertyVar AccessibleProperty, var | |||
| 181 | 181 | // property change must be communicated to assistive technologies. | |
| 182 | 182 | // | |
| 183 | 183 | // This function is meant to be used by language bindings. | |
| 184 | - | func (x *PopoverMenuBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 184 | + | func (x *PopoverMenuBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 185 | 185 | ||
| 186 | 186 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 187 | 187 | ||
| @@ -217,7 +217,7 @@ func (x *PopoverMenuBar) UpdateRelation(FirstRelationVar AccessibleRelation, var | |||
| 217 | 217 | // relation change must be communicated to assistive technologies. | |
| 218 | 218 | // | |
| 219 | 219 | // This function is meant to be used by language bindings. | |
| 220 | - | func (x *PopoverMenuBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 220 | + | func (x *PopoverMenuBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 221 | 221 | ||
| 222 | 222 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 223 | 223 | ||
| @@ -250,7 +250,7 @@ func (x *PopoverMenuBar) UpdateState(FirstStateVar AccessibleState, varArgs ...i | |||
| 250 | 250 | // state change must be communicated to assistive technologies. | |
| 251 | 251 | // | |
| 252 | 252 | // This function is meant to be used by language bindings. | |
| 253 | - | func (x *PopoverMenuBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 253 | + | func (x *PopoverMenuBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 254 | 254 | ||
| 255 | 255 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 256 | 256 | ||
M v4/gtk/gtkprintjob.go +4 -4
| @@ -88,10 +88,10 @@ func (x *PrintJob) GetNumCopies() int { | |||
| 88 | 88 | return cret | |
| 89 | 89 | } | |
| 90 | 90 | ||
| 91 | - | var xPrintJobGetPageRanges func(uintptr, int) uintptr | |
| 91 | + | var xPrintJobGetPageRanges func(uintptr, int) []PageRange | |
| 92 | 92 | ||
| 93 | 93 | // Gets the page ranges for this job. | |
| 94 | - | func (x *PrintJob) GetPageRanges(NRangesVar int) uintptr { | |
| 94 | + | func (x *PrintJob) GetPageRanges(NRangesVar int) []PageRange { | |
| 95 | 95 | ||
| 96 | 96 | cret := xPrintJobGetPageRanges(x.GoPointer(), NRangesVar) | |
| 97 | 97 | return cret | |
| @@ -265,10 +265,10 @@ func (x *PrintJob) SetNumCopies(NumCopiesVar int) { | |||
| 265 | 265 | ||
| 266 | 266 | } | |
| 267 | 267 | ||
| 268 | - | var xPrintJobSetPageRanges func(uintptr, uintptr, int) | |
| 268 | + | var xPrintJobSetPageRanges func(uintptr, []PageRange, int) | |
| 269 | 269 | ||
| 270 | 270 | // Sets the page ranges for this job. | |
| 271 | - | func (x *PrintJob) SetPageRanges(RangesVar uintptr, NRangesVar int) { | |
| 271 | + | func (x *PrintJob) SetPageRanges(RangesVar []PageRange, NRangesVar int) { | |
| 272 | 272 | ||
| 273 | 273 | xPrintJobSetPageRanges(x.GoPointer(), RangesVar, NRangesVar) | |
| 274 | 274 | ||
M v4/gtk/gtkprintoperation.go +1 -1
| @@ -20,7 +20,7 @@ type PageSetupDoneFunc func(uintptr, uintptr) | |||
| 20 | 20 | type PrintOperationClass struct { | |
| 21 | 21 | ParentClass uintptr | |
| 22 | 22 | ||
| 23 | - | Padding uintptr | |
| 23 | + | Padding [8]uintptr | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | func (x *PrintOperationClass) GoPointer() uintptr { | |
M v4/gtk/gtkprintsettings.go +4 -4
| @@ -408,10 +408,10 @@ func (x *PrintSettings) GetOutputBin() string { | |||
| 408 | 408 | return cret | |
| 409 | 409 | } | |
| 410 | 410 | ||
| 411 | - | var xPrintSettingsGetPageRanges func(uintptr, int) uintptr | |
| 411 | + | var xPrintSettingsGetPageRanges func(uintptr, int) []PageRange | |
| 412 | 412 | ||
| 413 | 413 | // Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | |
| 414 | - | func (x *PrintSettings) GetPageRanges(NumRangesVar int) uintptr { | |
| 414 | + | func (x *PrintSettings) GetPageRanges(NumRangesVar int) []PageRange { | |
| 415 | 415 | ||
| 416 | 416 | cret := xPrintSettingsGetPageRanges(x.GoPointer(), NumRangesVar) | |
| 417 | 417 | return cret | |
| @@ -738,10 +738,10 @@ func (x *PrintSettings) SetOutputBin(OutputBinVar string) { | |||
| 738 | 738 | ||
| 739 | 739 | } | |
| 740 | 740 | ||
| 741 | - | var xPrintSettingsSetPageRanges func(uintptr, uintptr, int) | |
| 741 | + | var xPrintSettingsSetPageRanges func(uintptr, []PageRange, int) | |
| 742 | 742 | ||
| 743 | 743 | // Sets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES. | |
| 744 | - | func (x *PrintSettings) SetPageRanges(PageRangesVar uintptr, NumRangesVar int) { | |
| 744 | + | func (x *PrintSettings) SetPageRanges(PageRangesVar []PageRange, NumRangesVar int) { | |
| 745 | 745 | ||
| 746 | 746 | xPrintSettingsSetPageRanges(x.GoPointer(), PageRangesVar, NumRangesVar) | |
| 747 | 747 | ||
M v4/gtk/gtkprintunixdialog.go +3 -3
| @@ -353,7 +353,7 @@ func (x *PrintUnixDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, va | |||
| 353 | 353 | // property change must be communicated to assistive technologies. | |
| 354 | 354 | // | |
| 355 | 355 | // This function is meant to be used by language bindings. | |
| 356 | - | func (x *PrintUnixDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 356 | + | func (x *PrintUnixDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 357 | 357 | ||
| 358 | 358 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 359 | 359 | ||
| @@ -389,7 +389,7 @@ func (x *PrintUnixDialog) UpdateRelation(FirstRelationVar AccessibleRelation, va | |||
| 389 | 389 | // relation change must be communicated to assistive technologies. | |
| 390 | 390 | // | |
| 391 | 391 | // This function is meant to be used by language bindings. | |
| 392 | - | func (x *PrintUnixDialog) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 392 | + | func (x *PrintUnixDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 393 | 393 | ||
| 394 | 394 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 395 | 395 | ||
| @@ -422,7 +422,7 @@ func (x *PrintUnixDialog) UpdateState(FirstStateVar AccessibleState, varArgs ... | |||
| 422 | 422 | // state change must be communicated to assistive technologies. | |
| 423 | 423 | // | |
| 424 | 424 | // This function is meant to be used by language bindings. | |
| 425 | - | func (x *PrintUnixDialog) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 425 | + | func (x *PrintUnixDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 426 | 426 | ||
| 427 | 427 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 428 | 428 | ||
M v4/gtk/gtkprogressbar.go +3 -3
| @@ -311,7 +311,7 @@ func (x *ProgressBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 311 | 311 | // property change must be communicated to assistive technologies. | |
| 312 | 312 | // | |
| 313 | 313 | // This function is meant to be used by language bindings. | |
| 314 | - | func (x *ProgressBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 314 | + | func (x *ProgressBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 315 | 315 | ||
| 316 | 316 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 317 | 317 | ||
| @@ -347,7 +347,7 @@ func (x *ProgressBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 347 | 347 | // relation change must be communicated to assistive technologies. | |
| 348 | 348 | // | |
| 349 | 349 | // This function is meant to be used by language bindings. | |
| 350 | - | func (x *ProgressBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 350 | + | func (x *ProgressBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 351 | 351 | ||
| 352 | 352 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 353 | 353 | ||
| @@ -380,7 +380,7 @@ func (x *ProgressBar) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 380 | 380 | // state change must be communicated to assistive technologies. | |
| 381 | 381 | // | |
| 382 | 382 | // This function is meant to be used by language bindings. | |
| 383 | - | func (x *ProgressBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 383 | + | func (x *ProgressBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 384 | 384 | ||
| 385 | 385 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 386 | 386 | ||
M v4/gtk/gtkrange.go +4 -4
| @@ -14,7 +14,7 @@ import ( | |||
| 14 | 14 | type RangeClass struct { | |
| 15 | 15 | ParentClass uintptr | |
| 16 | 16 | ||
| 17 | - | Padding uintptr | |
| 17 | + | Padding [8]uintptr | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func (x *RangeClass) GoPointer() uintptr { | |
| @@ -479,7 +479,7 @@ func (x *Range) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 479 | 479 | // property change must be communicated to assistive technologies. | |
| 480 | 480 | // | |
| 481 | 481 | // This function is meant to be used by language bindings. | |
| 482 | - | func (x *Range) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 482 | + | func (x *Range) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 483 | 483 | ||
| 484 | 484 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 485 | 485 | ||
| @@ -515,7 +515,7 @@ func (x *Range) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 515 | 515 | // relation change must be communicated to assistive technologies. | |
| 516 | 516 | // | |
| 517 | 517 | // This function is meant to be used by language bindings. | |
| 518 | - | func (x *Range) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 518 | + | func (x *Range) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 519 | 519 | ||
| 520 | 520 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 521 | 521 | ||
| @@ -548,7 +548,7 @@ func (x *Range) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 548 | 548 | // state change must be communicated to assistive technologies. | |
| 549 | 549 | // | |
| 550 | 550 | // This function is meant to be used by language bindings. | |
| 551 | - | func (x *Range) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 551 | + | func (x *Range) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 552 | 552 | ||
| 553 | 553 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 554 | 554 | ||
M v4/gtk/gtkrevealer.go +3 -3
| @@ -254,7 +254,7 @@ func (x *Revealer) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs . | |||
| 254 | 254 | // property change must be communicated to assistive technologies. | |
| 255 | 255 | // | |
| 256 | 256 | // This function is meant to be used by language bindings. | |
| 257 | - | func (x *Revealer) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 257 | + | func (x *Revealer) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 258 | 258 | ||
| 259 | 259 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 260 | 260 | ||
| @@ -290,7 +290,7 @@ func (x *Revealer) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs . | |||
| 290 | 290 | // relation change must be communicated to assistive technologies. | |
| 291 | 291 | // | |
| 292 | 292 | // This function is meant to be used by language bindings. | |
| 293 | - | func (x *Revealer) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 293 | + | func (x *Revealer) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 294 | 294 | ||
| 295 | 295 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 296 | 296 | ||
| @@ -323,7 +323,7 @@ func (x *Revealer) UpdateState(FirstStateVar AccessibleState, varArgs ...interfa | |||
| 323 | 323 | // state change must be communicated to assistive technologies. | |
| 324 | 324 | // | |
| 325 | 325 | // This function is meant to be used by language bindings. | |
| 326 | - | func (x *Revealer) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 326 | + | func (x *Revealer) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 327 | 327 | ||
| 328 | 328 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 329 | 329 | ||
M v4/gtk/gtkscale.go +4 -4
| @@ -16,7 +16,7 @@ type ScaleFormatValueFunc func(uintptr, float64, uintptr) string | |||
| 16 | 16 | type ScaleClass struct { | |
| 17 | 17 | ParentClass uintptr | |
| 18 | 18 | ||
| 19 | - | Padding uintptr | |
| 19 | + | Padding [8]uintptr | |
| 20 | 20 | } | |
| 21 | 21 | ||
| 22 | 22 | func (x *ScaleClass) GoPointer() uintptr { | |
| @@ -392,7 +392,7 @@ func (x *Scale) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 392 | 392 | // property change must be communicated to assistive technologies. | |
| 393 | 393 | // | |
| 394 | 394 | // This function is meant to be used by language bindings. | |
| 395 | - | func (x *Scale) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 395 | + | func (x *Scale) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 396 | 396 | ||
| 397 | 397 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 398 | 398 | ||
| @@ -428,7 +428,7 @@ func (x *Scale) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 428 | 428 | // relation change must be communicated to assistive technologies. | |
| 429 | 429 | // | |
| 430 | 430 | // This function is meant to be used by language bindings. | |
| 431 | - | func (x *Scale) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 431 | + | func (x *Scale) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 432 | 432 | ||
| 433 | 433 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 434 | 434 | ||
| @@ -461,7 +461,7 @@ func (x *Scale) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 461 | 461 | // state change must be communicated to assistive technologies. | |
| 462 | 462 | // | |
| 463 | 463 | // This function is meant to be used by language bindings. | |
| 464 | - | func (x *Scale) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 464 | + | func (x *Scale) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 465 | 465 | ||
| 466 | 466 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 467 | 467 | ||
M v4/gtk/gtkscalebutton.go +4 -4
| @@ -13,7 +13,7 @@ import ( | |||
| 13 | 13 | type ScaleButtonClass struct { | |
| 14 | 14 | ParentClass uintptr | |
| 15 | 15 | ||
| 16 | - | Padding uintptr | |
| 16 | + | Padding [8]uintptr | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func (x *ScaleButtonClass) GoPointer() uintptr { | |
| @@ -310,7 +310,7 @@ func (x *ScaleButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 310 | 310 | // property change must be communicated to assistive technologies. | |
| 311 | 311 | // | |
| 312 | 312 | // This function is meant to be used by language bindings. | |
| 313 | - | func (x *ScaleButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 313 | + | func (x *ScaleButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 314 | 314 | ||
| 315 | 315 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 316 | 316 | ||
| @@ -346,7 +346,7 @@ func (x *ScaleButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 346 | 346 | // relation change must be communicated to assistive technologies. | |
| 347 | 347 | // | |
| 348 | 348 | // This function is meant to be used by language bindings. | |
| 349 | - | func (x *ScaleButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 349 | + | func (x *ScaleButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 350 | 350 | ||
| 351 | 351 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 352 | 352 | ||
| @@ -379,7 +379,7 @@ func (x *ScaleButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 379 | 379 | // state change must be communicated to assistive technologies. | |
| 380 | 380 | // | |
| 381 | 381 | // This function is meant to be used by language bindings. | |
| 382 | - | func (x *ScaleButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 382 | + | func (x *ScaleButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 383 | 383 | ||
| 384 | 384 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 385 | 385 | ||
M v4/gtk/gtkscrollbar.go +3 -3
| @@ -170,7 +170,7 @@ func (x *Scrollbar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 170 | 170 | // property change must be communicated to assistive technologies. | |
| 171 | 171 | // | |
| 172 | 172 | // This function is meant to be used by language bindings. | |
| 173 | - | func (x *Scrollbar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 173 | + | func (x *Scrollbar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 174 | 174 | ||
| 175 | 175 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 176 | 176 | ||
| @@ -206,7 +206,7 @@ func (x *Scrollbar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 206 | 206 | // relation change must be communicated to assistive technologies. | |
| 207 | 207 | // | |
| 208 | 208 | // This function is meant to be used by language bindings. | |
| 209 | - | func (x *Scrollbar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 209 | + | func (x *Scrollbar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 210 | 210 | ||
| 211 | 211 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 212 | 212 | ||
| @@ -239,7 +239,7 @@ func (x *Scrollbar) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 239 | 239 | // state change must be communicated to assistive technologies. | |
| 240 | 240 | // | |
| 241 | 241 | // This function is meant to be used by language bindings. | |
| 242 | - | func (x *Scrollbar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 242 | + | func (x *Scrollbar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 243 | 243 | ||
| 244 | 244 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 245 | 245 | ||
M v4/gtk/gtkscrolledwindow.go +3 -3
| @@ -717,7 +717,7 @@ func (x *ScrolledWindow) UpdateProperty(FirstPropertyVar AccessibleProperty, var | |||
| 717 | 717 | // property change must be communicated to assistive technologies. | |
| 718 | 718 | // | |
| 719 | 719 | // This function is meant to be used by language bindings. | |
| 720 | - | func (x *ScrolledWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 720 | + | func (x *ScrolledWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 721 | 721 | ||
| 722 | 722 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 723 | 723 | ||
| @@ -753,7 +753,7 @@ func (x *ScrolledWindow) UpdateRelation(FirstRelationVar AccessibleRelation, var | |||
| 753 | 753 | // relation change must be communicated to assistive technologies. | |
| 754 | 754 | // | |
| 755 | 755 | // This function is meant to be used by language bindings. | |
| 756 | - | func (x *ScrolledWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 756 | + | func (x *ScrolledWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 757 | 757 | ||
| 758 | 758 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 759 | 759 | ||
| @@ -786,7 +786,7 @@ func (x *ScrolledWindow) UpdateState(FirstStateVar AccessibleState, varArgs ...i | |||
| 786 | 786 | // state change must be communicated to assistive technologies. | |
| 787 | 787 | // | |
| 788 | 788 | // This function is meant to be used by language bindings. | |
| 789 | - | func (x *ScrolledWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 789 | + | func (x *ScrolledWindow) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 790 | 790 | ||
| 791 | 791 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 792 | 792 | ||
M v4/gtk/gtksearchbar.go +3 -3
| @@ -266,7 +266,7 @@ func (x *SearchBar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 266 | 266 | // property change must be communicated to assistive technologies. | |
| 267 | 267 | // | |
| 268 | 268 | // This function is meant to be used by language bindings. | |
| 269 | - | func (x *SearchBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 269 | + | func (x *SearchBar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 270 | 270 | ||
| 271 | 271 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 272 | 272 | ||
| @@ -302,7 +302,7 @@ func (x *SearchBar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 302 | 302 | // relation change must be communicated to assistive technologies. | |
| 303 | 303 | // | |
| 304 | 304 | // This function is meant to be used by language bindings. | |
| 305 | - | func (x *SearchBar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 305 | + | func (x *SearchBar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 306 | 306 | ||
| 307 | 307 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 308 | 308 | ||
| @@ -335,7 +335,7 @@ func (x *SearchBar) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 335 | 335 | // state change must be communicated to assistive technologies. | |
| 336 | 336 | // | |
| 337 | 337 | // This function is meant to be used by language bindings. | |
| 338 | - | func (x *SearchBar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 338 | + | func (x *SearchBar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 339 | 339 | ||
| 340 | 340 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 341 | 341 | ||
M v4/gtk/gtksearchentry.go +3 -3
| @@ -356,7 +356,7 @@ func (x *SearchEntry) UpdateProperty(FirstPropertyVar AccessibleProperty, varArg | |||
| 356 | 356 | // property change must be communicated to assistive technologies. | |
| 357 | 357 | // | |
| 358 | 358 | // This function is meant to be used by language bindings. | |
| 359 | - | func (x *SearchEntry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 359 | + | func (x *SearchEntry) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 360 | 360 | ||
| 361 | 361 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 362 | 362 | ||
| @@ -392,7 +392,7 @@ func (x *SearchEntry) UpdateRelation(FirstRelationVar AccessibleRelation, varArg | |||
| 392 | 392 | // relation change must be communicated to assistive technologies. | |
| 393 | 393 | // | |
| 394 | 394 | // This function is meant to be used by language bindings. | |
| 395 | - | func (x *SearchEntry) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 395 | + | func (x *SearchEntry) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 396 | 396 | ||
| 397 | 397 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 398 | 398 | ||
| @@ -425,7 +425,7 @@ func (x *SearchEntry) UpdateState(FirstStateVar AccessibleState, varArgs ...inte | |||
| 425 | 425 | // state change must be communicated to assistive technologies. | |
| 426 | 426 | // | |
| 427 | 427 | // This function is meant to be used by language bindings. | |
| 428 | - | func (x *SearchEntry) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 428 | + | func (x *SearchEntry) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 429 | 429 | ||
| 430 | 430 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 431 | 431 | ||
M v4/gtk/gtkselectionfiltermodel.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SelectionFilterModelClass struct { | |
| @@ -109,7 +110,7 @@ func (x *SelectionFilterModel) GetItem(PositionVar uint) uintptr { | |||
| 109 | 110 | // | |
| 110 | 111 | // The item type of a #GListModel can not change during the life of the | |
| 111 | 112 | // model. | |
| 112 | - | func (x *SelectionFilterModel) GetItemType() []interface{} { | |
| 113 | + | func (x *SelectionFilterModel) GetItemType() types.GType { | |
| 113 | 114 | ||
| 114 | 115 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 115 | 116 | return cret | |
M v4/gtk/gtkseparator.go +3 -3
| @@ -116,7 +116,7 @@ func (x *Separator) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 116 | 116 | // property change must be communicated to assistive technologies. | |
| 117 | 117 | // | |
| 118 | 118 | // This function is meant to be used by language bindings. | |
| 119 | - | func (x *Separator) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 119 | + | func (x *Separator) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 120 | 120 | ||
| 121 | 121 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 122 | 122 | ||
| @@ -152,7 +152,7 @@ func (x *Separator) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 152 | 152 | // relation change must be communicated to assistive technologies. | |
| 153 | 153 | // | |
| 154 | 154 | // This function is meant to be used by language bindings. | |
| 155 | - | func (x *Separator) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 155 | + | func (x *Separator) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 156 | 156 | ||
| 157 | 157 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 158 | 158 | ||
| @@ -185,7 +185,7 @@ func (x *Separator) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 185 | 185 | // state change must be communicated to assistive technologies. | |
| 186 | 186 | // | |
| 187 | 187 | // This function is meant to be used by language bindings. | |
| 188 | - | func (x *Separator) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 188 | + | func (x *Separator) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 189 | 189 | ||
| 190 | 190 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 191 | 191 | ||
M v4/gtk/gtkshortcutcontroller.go +2 -1
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | type ShortcutControllerClass struct { | |
| @@ -220,7 +221,7 @@ func (x *ShortcutController) GetItem(PositionVar uint) uintptr { | |||
| 220 | 221 | // | |
| 221 | 222 | // The item type of a #GListModel can not change during the life of the | |
| 222 | 223 | // model. | |
| 223 | - | func (x *ShortcutController) GetItemType() []interface{} { | |
| 224 | + | func (x *ShortcutController) GetItemType() types.GType { | |
| 224 | 225 | ||
| 225 | 226 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 226 | 227 | return cret | |
M v4/gtk/gtkshortcutlabel.go +3 -3
| @@ -148,7 +148,7 @@ func (x *ShortcutLabel) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 148 | 148 | // property change must be communicated to assistive technologies. | |
| 149 | 149 | // | |
| 150 | 150 | // This function is meant to be used by language bindings. | |
| 151 | - | func (x *ShortcutLabel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 151 | + | func (x *ShortcutLabel) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 152 | 152 | ||
| 153 | 153 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 154 | 154 | ||
| @@ -184,7 +184,7 @@ func (x *ShortcutLabel) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 184 | 184 | // relation change must be communicated to assistive technologies. | |
| 185 | 185 | // | |
| 186 | 186 | // This function is meant to be used by language bindings. | |
| 187 | - | func (x *ShortcutLabel) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 187 | + | func (x *ShortcutLabel) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 188 | 188 | ||
| 189 | 189 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 190 | 190 | ||
| @@ -217,7 +217,7 @@ func (x *ShortcutLabel) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 217 | 217 | // state change must be communicated to assistive technologies. | |
| 218 | 218 | // | |
| 219 | 219 | // This function is meant to be used by language bindings. | |
| 220 | - | func (x *ShortcutLabel) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 220 | + | func (x *ShortcutLabel) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 221 | 221 | ||
| 222 | 222 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 223 | 223 | ||
M v4/gtk/gtkshortcutsgroup.go +8 -4
| @@ -1,7 +1,11 @@ | |||
| 1 | 1 | // Package gtk was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gtk | |
| 3 | 3 | ||
| 4 | - | import "unsafe" | |
| 4 | + | import ( | |
| 5 | + | "unsafe" | |
| 6 | + | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | + | ) | |
| 5 | 9 | ||
| 6 | 10 | type ShortcutsGroupClass struct { | |
| 7 | 11 | } | |
| @@ -94,7 +98,7 @@ func (x *ShortcutsGroup) UpdateProperty(FirstPropertyVar AccessibleProperty, var | |||
| 94 | 98 | // property change must be communicated to assistive technologies. | |
| 95 | 99 | // | |
| 96 | 100 | // This function is meant to be used by language bindings. | |
| 97 | - | func (x *ShortcutsGroup) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 101 | + | func (x *ShortcutsGroup) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 98 | 102 | ||
| 99 | 103 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 100 | 104 | ||
| @@ -130,7 +134,7 @@ func (x *ShortcutsGroup) UpdateRelation(FirstRelationVar AccessibleRelation, var | |||
| 130 | 134 | // relation change must be communicated to assistive technologies. | |
| 131 | 135 | // | |
| 132 | 136 | // This function is meant to be used by language bindings. | |
| 133 | - | func (x *ShortcutsGroup) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 137 | + | func (x *ShortcutsGroup) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 134 | 138 | ||
| 135 | 139 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 136 | 140 | ||
| @@ -163,7 +167,7 @@ func (x *ShortcutsGroup) UpdateState(FirstStateVar AccessibleState, varArgs ...i | |||
| 163 | 167 | // state change must be communicated to assistive technologies. | |
| 164 | 168 | // | |
| 165 | 169 | // This function is meant to be used by language bindings. | |
| 166 | - | func (x *ShortcutsGroup) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 170 | + | func (x *ShortcutsGroup) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 167 | 171 | ||
| 168 | 172 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 169 | 173 | ||
M v4/gtk/gtkshortcutssection.go +3 -3
| @@ -124,7 +124,7 @@ func (x *ShortcutsSection) UpdateProperty(FirstPropertyVar AccessibleProperty, v | |||
| 124 | 124 | // property change must be communicated to assistive technologies. | |
| 125 | 125 | // | |
| 126 | 126 | // This function is meant to be used by language bindings. | |
| 127 | - | func (x *ShortcutsSection) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 127 | + | func (x *ShortcutsSection) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 128 | 128 | ||
| 129 | 129 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 130 | 130 | ||
| @@ -160,7 +160,7 @@ func (x *ShortcutsSection) UpdateRelation(FirstRelationVar AccessibleRelation, v | |||
| 160 | 160 | // relation change must be communicated to assistive technologies. | |
| 161 | 161 | // | |
| 162 | 162 | // This function is meant to be used by language bindings. | |
| 163 | - | func (x *ShortcutsSection) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 163 | + | func (x *ShortcutsSection) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 164 | 164 | ||
| 165 | 165 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 166 | 166 | ||
| @@ -193,7 +193,7 @@ func (x *ShortcutsSection) UpdateState(FirstStateVar AccessibleState, varArgs .. | |||
| 193 | 193 | // state change must be communicated to assistive technologies. | |
| 194 | 194 | // | |
| 195 | 195 | // This function is meant to be used by language bindings. | |
| 196 | - | func (x *ShortcutsSection) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 196 | + | func (x *ShortcutsSection) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 197 | 197 | ||
| 198 | 198 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 199 | 199 | ||
M v4/gtk/gtkshortcutsshortcut.go +8 -4
| @@ -1,7 +1,11 @@ | |||
| 1 | 1 | // Package gtk was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gtk | |
| 3 | 3 | ||
| 4 | - | import "unsafe" | |
| 4 | + | import ( | |
| 5 | + | "unsafe" | |
| 6 | + | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | + | ) | |
| 5 | 9 | ||
| 6 | 10 | type ShortcutsShortcutClass struct { | |
| 7 | 11 | } | |
| @@ -121,7 +125,7 @@ func (x *ShortcutsShortcut) UpdateProperty(FirstPropertyVar AccessibleProperty, | |||
| 121 | 125 | // property change must be communicated to assistive technologies. | |
| 122 | 126 | // | |
| 123 | 127 | // This function is meant to be used by language bindings. | |
| 124 | - | func (x *ShortcutsShortcut) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 128 | + | func (x *ShortcutsShortcut) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 125 | 129 | ||
| 126 | 130 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 127 | 131 | ||
| @@ -157,7 +161,7 @@ func (x *ShortcutsShortcut) UpdateRelation(FirstRelationVar AccessibleRelation, | |||
| 157 | 161 | // relation change must be communicated to assistive technologies. | |
| 158 | 162 | // | |
| 159 | 163 | // This function is meant to be used by language bindings. | |
| 160 | - | func (x *ShortcutsShortcut) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 164 | + | func (x *ShortcutsShortcut) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 161 | 165 | ||
| 162 | 166 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 163 | 167 | ||
| @@ -190,7 +194,7 @@ func (x *ShortcutsShortcut) UpdateState(FirstStateVar AccessibleState, varArgs . | |||
| 190 | 194 | // state change must be communicated to assistive technologies. | |
| 191 | 195 | // | |
| 192 | 196 | // This function is meant to be used by language bindings. | |
| 193 | - | func (x *ShortcutsShortcut) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 197 | + | func (x *ShortcutsShortcut) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 194 | 198 | ||
| 195 | 199 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 196 | 200 | ||
M v4/gtk/gtkshortcutswindow.go +3 -3
| @@ -176,7 +176,7 @@ func (x *ShortcutsWindow) UpdateProperty(FirstPropertyVar AccessibleProperty, va | |||
| 176 | 176 | // property change must be communicated to assistive technologies. | |
| 177 | 177 | // | |
| 178 | 178 | // This function is meant to be used by language bindings. | |
| 179 | - | func (x *ShortcutsWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 179 | + | func (x *ShortcutsWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 180 | 180 | ||
| 181 | 181 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 182 | 182 | ||
| @@ -212,7 +212,7 @@ func (x *ShortcutsWindow) UpdateRelation(FirstRelationVar AccessibleRelation, va | |||
| 212 | 212 | // relation change must be communicated to assistive technologies. | |
| 213 | 213 | // | |
| 214 | 214 | // This function is meant to be used by language bindings. | |
| 215 | - | func (x *ShortcutsWindow) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 215 | + | func (x *ShortcutsWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 216 | 216 | ||
| 217 | 217 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 218 | 218 | ||
| @@ -245,7 +245,7 @@ func (x *ShortcutsWindow) UpdateState(FirstStateVar AccessibleState, varArgs ... | |||
| 245 | 245 | // state change must be communicated to assistive technologies. | |
| 246 | 246 | // | |
| 247 | 247 | // This function is meant to be used by language bindings. | |
| 248 | - | func (x *ShortcutsWindow) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 248 | + | func (x *ShortcutsWindow) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 249 | 249 | ||
| 250 | 250 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 251 | 251 | ||
M v4/gtk/gtksingleselection.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SingleSelectionClass struct { | |
| @@ -203,7 +204,7 @@ func (x *SingleSelection) GetItem(PositionVar uint) uintptr { | |||
| 203 | 204 | // | |
| 204 | 205 | // The item type of a #GListModel can not change during the life of the | |
| 205 | 206 | // model. | |
| 206 | - | func (x *SingleSelection) GetItemType() []interface{} { | |
| 207 | + | func (x *SingleSelection) GetItemType() types.GType { | |
| 207 | 208 | ||
| 208 | 209 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 209 | 210 | return cret | |
M v4/gtk/gtksizerequest.go +2 -2
| @@ -23,7 +23,7 @@ func (x *RequestedSize) GoPointer() uintptr { | |||
| 23 | 23 | return uintptr(unsafe.Pointer(x)) | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | - | var xDistributeNaturalAllocation func(int, uint, uintptr) int | |
| 26 | + | var xDistributeNaturalAllocation func(int, uint, []RequestedSize) int | |
| 27 | 27 | ||
| 28 | 28 | // Distributes @extra_space to child @sizes by bringing smaller | |
| 29 | 29 | // children up to natural size first. | |
| @@ -31,7 +31,7 @@ var xDistributeNaturalAllocation func(int, uint, uintptr) int | |||
| 31 | 31 | // The remaining space will be added to the @minimum_size member of the | |
| 32 | 32 | // `GtkRequestedSize` struct. If all sizes reach their natural size then | |
| 33 | 33 | // the remaining space is returned. | |
| 34 | - | func DistributeNaturalAllocation(ExtraSpaceVar int, NRequestedSizesVar uint, SizesVar uintptr) int { | |
| 34 | + | func DistributeNaturalAllocation(ExtraSpaceVar int, NRequestedSizesVar uint, SizesVar []RequestedSize) int { | |
| 35 | 35 | ||
| 36 | 36 | cret := xDistributeNaturalAllocation(ExtraSpaceVar, NRequestedSizesVar, SizesVar) | |
| 37 | 37 | return cret | |
M v4/gtk/gtkslicelistmodel.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SliceListModelClass struct { | |
| @@ -154,7 +155,7 @@ func (x *SliceListModel) GetItem(PositionVar uint) uintptr { | |||
| 154 | 155 | // | |
| 155 | 156 | // The item type of a #GListModel can not change during the life of the | |
| 156 | 157 | // model. | |
| 157 | - | func (x *SliceListModel) GetItemType() []interface{} { | |
| 158 | + | func (x *SliceListModel) GetItemType() types.GType { | |
| 158 | 159 | ||
| 159 | 160 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 160 | 161 | return cret | |
M v4/gtk/gtksnapshot.go +14 -14
| @@ -59,12 +59,12 @@ func NewSnapshot() *Snapshot { | |||
| 59 | 59 | return cls | |
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | - | var xSnapshotAppendBorder func(uintptr, *gsk.RoundedRect, uintptr, uintptr) | |
| 62 | + | var xSnapshotAppendBorder func(uintptr, *gsk.RoundedRect, [4]float32, [4]gdk.RGBA) | |
| 63 | 63 | ||
| 64 | 64 | // Appends a stroked border rectangle inside the given @outline. | |
| 65 | 65 | // | |
| 66 | 66 | // The four sides of the border can have different widths and colors. | |
| 67 | - | func (x *Snapshot) AppendBorder(OutlineVar *gsk.RoundedRect, BorderWidthVar uintptr, BorderColorVar uintptr) { | |
| 67 | + | func (x *Snapshot) AppendBorder(OutlineVar *gsk.RoundedRect, BorderWidthVar [4]float32, BorderColorVar [4]gdk.RGBA) { | |
| 68 | 68 | ||
| 69 | 69 | xSnapshotAppendBorder(x.GoPointer(), OutlineVar, BorderWidthVar, BorderColorVar) | |
| 70 | 70 | ||
| @@ -94,10 +94,10 @@ func (x *Snapshot) AppendColor(ColorVar *gdk.RGBA, BoundsVar *graphene.Rect) { | |||
| 94 | 94 | ||
| 95 | 95 | } | |
| 96 | 96 | ||
| 97 | - | var xSnapshotAppendConicGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, uintptr, uint) | |
| 97 | + | var xSnapshotAppendConicGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, []gsk.ColorStop, uint) | |
| 98 | 98 | ||
| 99 | 99 | // Appends a conic gradient node with the given stops to @snapshot. | |
| 100 | - | func (x *Snapshot) AppendConicGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, RotationVar float32, StopsVar uintptr, NStopsVar uint) { | |
| 100 | + | func (x *Snapshot) AppendConicGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, RotationVar float32, StopsVar []gsk.ColorStop, NStopsVar uint) { | |
| 101 | 101 | ||
| 102 | 102 | xSnapshotAppendConicGradient(x.GoPointer(), BoundsVar, CenterVar, RotationVar, StopsVar, NStopsVar) | |
| 103 | 103 | ||
| @@ -120,10 +120,10 @@ func (x *Snapshot) AppendLayout(LayoutVar *pango.Layout, ColorVar *gdk.RGBA) { | |||
| 120 | 120 | ||
| 121 | 121 | } | |
| 122 | 122 | ||
| 123 | - | var xSnapshotAppendLinearGradient func(uintptr, *graphene.Rect, *graphene.Point, *graphene.Point, uintptr, uint) | |
| 123 | + | var xSnapshotAppendLinearGradient func(uintptr, *graphene.Rect, *graphene.Point, *graphene.Point, []gsk.ColorStop, uint) | |
| 124 | 124 | ||
| 125 | 125 | // Appends a linear gradient node with the given stops to @snapshot. | |
| 126 | - | func (x *Snapshot) AppendLinearGradient(BoundsVar *graphene.Rect, StartPointVar *graphene.Point, EndPointVar *graphene.Point, StopsVar uintptr, NStopsVar uint) { | |
| 126 | + | func (x *Snapshot) AppendLinearGradient(BoundsVar *graphene.Rect, StartPointVar *graphene.Point, EndPointVar *graphene.Point, StopsVar []gsk.ColorStop, NStopsVar uint) { | |
| 127 | 127 | ||
| 128 | 128 | xSnapshotAppendLinearGradient(x.GoPointer(), BoundsVar, StartPointVar, EndPointVar, StopsVar, NStopsVar) | |
| 129 | 129 | ||
| @@ -151,28 +151,28 @@ func (x *Snapshot) AppendOutsetShadow(OutlineVar *gsk.RoundedRect, ColorVar *gdk | |||
| 151 | 151 | ||
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | - | var xSnapshotAppendRadialGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, float32, float32, float32, uintptr, uint) | |
| 154 | + | var xSnapshotAppendRadialGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, float32, float32, float32, []gsk.ColorStop, uint) | |
| 155 | 155 | ||
| 156 | 156 | // Appends a radial gradient node with the given stops to @snapshot. | |
| 157 | - | func (x *Snapshot) AppendRadialGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, StopsVar uintptr, NStopsVar uint) { | |
| 157 | + | func (x *Snapshot) AppendRadialGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, StopsVar []gsk.ColorStop, NStopsVar uint) { | |
| 158 | 158 | ||
| 159 | 159 | xSnapshotAppendRadialGradient(x.GoPointer(), BoundsVar, CenterVar, HradiusVar, VradiusVar, StartVar, EndVar, StopsVar, NStopsVar) | |
| 160 | 160 | ||
| 161 | 161 | } | |
| 162 | 162 | ||
| 163 | - | var xSnapshotAppendRepeatingLinearGradient func(uintptr, *graphene.Rect, *graphene.Point, *graphene.Point, uintptr, uint) | |
| 163 | + | var xSnapshotAppendRepeatingLinearGradient func(uintptr, *graphene.Rect, *graphene.Point, *graphene.Point, []gsk.ColorStop, uint) | |
| 164 | 164 | ||
| 165 | 165 | // Appends a repeating linear gradient node with the given stops to @snapshot. | |
| 166 | - | func (x *Snapshot) AppendRepeatingLinearGradient(BoundsVar *graphene.Rect, StartPointVar *graphene.Point, EndPointVar *graphene.Point, StopsVar uintptr, NStopsVar uint) { | |
| 166 | + | func (x *Snapshot) AppendRepeatingLinearGradient(BoundsVar *graphene.Rect, StartPointVar *graphene.Point, EndPointVar *graphene.Point, StopsVar []gsk.ColorStop, NStopsVar uint) { | |
| 167 | 167 | ||
| 168 | 168 | xSnapshotAppendRepeatingLinearGradient(x.GoPointer(), BoundsVar, StartPointVar, EndPointVar, StopsVar, NStopsVar) | |
| 169 | 169 | ||
| 170 | 170 | } | |
| 171 | 171 | ||
| 172 | - | var xSnapshotAppendRepeatingRadialGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, float32, float32, float32, uintptr, uint) | |
| 172 | + | var xSnapshotAppendRepeatingRadialGradient func(uintptr, *graphene.Rect, *graphene.Point, float32, float32, float32, float32, []gsk.ColorStop, uint) | |
| 173 | 173 | ||
| 174 | 174 | // Appends a repeating radial gradient node with the given stops to @snapshot. | |
| 175 | - | func (x *Snapshot) AppendRepeatingRadialGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, StopsVar uintptr, NStopsVar uint) { | |
| 175 | + | func (x *Snapshot) AppendRepeatingRadialGradient(BoundsVar *graphene.Rect, CenterVar *graphene.Point, HradiusVar float32, VradiusVar float32, StartVar float32, EndVar float32, StopsVar []gsk.ColorStop, NStopsVar uint) { | |
| 176 | 176 | ||
| 177 | 177 | xSnapshotAppendRepeatingRadialGradient(x.GoPointer(), BoundsVar, CenterVar, HradiusVar, VradiusVar, StartVar, EndVar, StopsVar, NStopsVar) | |
| 178 | 178 | ||
| @@ -414,12 +414,12 @@ func (x *Snapshot) PushRoundedClip(BoundsVar *gsk.RoundedRect) { | |||
| 414 | 414 | ||
| 415 | 415 | } | |
| 416 | 416 | ||
| 417 | - | var xSnapshotPushShadow func(uintptr, uintptr, uint) | |
| 417 | + | var xSnapshotPushShadow func(uintptr, []gsk.Shadow, uint) | |
| 418 | 418 | ||
| 419 | 419 | // Applies a shadow to an image. | |
| 420 | 420 | // | |
| 421 | 421 | // The image is recorded until the next call to [method@Gtk.Snapshot.pop]. | |
| 422 | - | func (x *Snapshot) PushShadow(ShadowVar uintptr, NShadowsVar uint) { | |
| 422 | + | func (x *Snapshot) PushShadow(ShadowVar []gsk.Shadow, NShadowsVar uint) { | |
| 423 | 423 | ||
| 424 | 424 | xSnapshotPushShadow(x.GoPointer(), ShadowVar, NShadowsVar) | |
| 425 | 425 | ||
M v4/gtk/gtksortlistmodel.go +2 -1
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SortListModelClass struct { | |
| @@ -208,7 +209,7 @@ func (x *SortListModel) GetItem(PositionVar uint) uintptr { | |||
| 208 | 209 | // | |
| 209 | 210 | // The item type of a #GListModel can not change during the life of the | |
| 210 | 211 | // model. | |
| 211 | - | func (x *SortListModel) GetItemType() []interface{} { | |
| 212 | + | func (x *SortListModel) GetItemType() types.GType { | |
| 212 | 213 | ||
| 213 | 214 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 214 | 215 | return cret | |
M v4/gtk/gtkspinbutton.go +3 -3
| @@ -693,7 +693,7 @@ func (x *SpinButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 693 | 693 | // property change must be communicated to assistive technologies. | |
| 694 | 694 | // | |
| 695 | 695 | // This function is meant to be used by language bindings. | |
| 696 | - | func (x *SpinButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 696 | + | func (x *SpinButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 697 | 697 | ||
| 698 | 698 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 699 | 699 | ||
| @@ -729,7 +729,7 @@ func (x *SpinButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 729 | 729 | // relation change must be communicated to assistive technologies. | |
| 730 | 730 | // | |
| 731 | 731 | // This function is meant to be used by language bindings. | |
| 732 | - | func (x *SpinButton) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 732 | + | func (x *SpinButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 733 | 733 | ||
| 734 | 734 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 735 | 735 | ||
| @@ -762,7 +762,7 @@ func (x *SpinButton) UpdateState(FirstStateVar AccessibleState, varArgs ...inter | |||
| 762 | 762 | // state change must be communicated to assistive technologies. | |
| 763 | 763 | // | |
| 764 | 764 | // This function is meant to be used by language bindings. | |
| 765 | - | func (x *SpinButton) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 765 | + | func (x *SpinButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 766 | 766 | ||
| 767 | 767 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 768 | 768 | ||
M v4/gtk/gtkspinner.go +3 -3
| @@ -151,7 +151,7 @@ func (x *Spinner) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs .. | |||
| 151 | 151 | // property change must be communicated to assistive technologies. | |
| 152 | 152 | // | |
| 153 | 153 | // This function is meant to be used by language bindings. | |
| 154 | - | func (x *Spinner) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 154 | + | func (x *Spinner) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 155 | 155 | ||
| 156 | 156 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 157 | 157 | ||
| @@ -187,7 +187,7 @@ func (x *Spinner) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs .. | |||
| 187 | 187 | // relation change must be communicated to assistive technologies. | |
| 188 | 188 | // | |
| 189 | 189 | // This function is meant to be used by language bindings. | |
| 190 | - | func (x *Spinner) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 190 | + | func (x *Spinner) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 191 | 191 | ||
| 192 | 192 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 193 | 193 | ||
| @@ -220,7 +220,7 @@ func (x *Spinner) UpdateState(FirstStateVar AccessibleState, varArgs ...interfac | |||
| 220 | 220 | // state change must be communicated to assistive technologies. | |
| 221 | 221 | // | |
| 222 | 222 | // This function is meant to be used by language bindings. | |
| 223 | - | func (x *Spinner) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 223 | + | func (x *Spinner) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 224 | 224 | ||
| 225 | 225 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 226 | 226 | ||
M v4/gtk/gtkstack.go +6 -6
| @@ -528,7 +528,7 @@ func (x *Stack) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...i | |||
| 528 | 528 | // property change must be communicated to assistive technologies. | |
| 529 | 529 | // | |
| 530 | 530 | // This function is meant to be used by language bindings. | |
| 531 | - | func (x *Stack) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 531 | + | func (x *Stack) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 532 | 532 | ||
| 533 | 533 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 534 | 534 | ||
| @@ -564,7 +564,7 @@ func (x *Stack) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...i | |||
| 564 | 564 | // relation change must be communicated to assistive technologies. | |
| 565 | 565 | // | |
| 566 | 566 | // This function is meant to be used by language bindings. | |
| 567 | - | func (x *Stack) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 567 | + | func (x *Stack) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 568 | 568 | ||
| 569 | 569 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 570 | 570 | ||
| @@ -597,7 +597,7 @@ func (x *Stack) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{ | |||
| 597 | 597 | // state change must be communicated to assistive technologies. | |
| 598 | 598 | // | |
| 599 | 599 | // This function is meant to be used by language bindings. | |
| 600 | - | func (x *Stack) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 600 | + | func (x *Stack) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 601 | 601 | ||
| 602 | 602 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 603 | 603 | ||
| @@ -818,7 +818,7 @@ func (x *StackPage) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 818 | 818 | // property change must be communicated to assistive technologies. | |
| 819 | 819 | // | |
| 820 | 820 | // This function is meant to be used by language bindings. | |
| 821 | - | func (x *StackPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 821 | + | func (x *StackPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 822 | 822 | ||
| 823 | 823 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 824 | 824 | ||
| @@ -854,7 +854,7 @@ func (x *StackPage) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 854 | 854 | // relation change must be communicated to assistive technologies. | |
| 855 | 855 | // | |
| 856 | 856 | // This function is meant to be used by language bindings. | |
| 857 | - | func (x *StackPage) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 857 | + | func (x *StackPage) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 858 | 858 | ||
| 859 | 859 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 860 | 860 | ||
| @@ -887,7 +887,7 @@ func (x *StackPage) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 887 | 887 | // state change must be communicated to assistive technologies. | |
| 888 | 888 | // | |
| 889 | 889 | // This function is meant to be used by language bindings. | |
| 890 | - | func (x *StackPage) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 890 | + | func (x *StackPage) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 891 | 891 | ||
| 892 | 892 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 893 | 893 | ||
M v4/gtk/gtkstacksidebar.go +3 -3
| @@ -144,7 +144,7 @@ func (x *StackSidebar) UpdateProperty(FirstPropertyVar AccessibleProperty, varAr | |||
| 144 | 144 | // property change must be communicated to assistive technologies. | |
| 145 | 145 | // | |
| 146 | 146 | // This function is meant to be used by language bindings. | |
| 147 | - | func (x *StackSidebar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 147 | + | func (x *StackSidebar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 148 | 148 | ||
| 149 | 149 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 150 | 150 | ||
| @@ -180,7 +180,7 @@ func (x *StackSidebar) UpdateRelation(FirstRelationVar AccessibleRelation, varAr | |||
| 180 | 180 | // relation change must be communicated to assistive technologies. | |
| 181 | 181 | // | |
| 182 | 182 | // This function is meant to be used by language bindings. | |
| 183 | - | func (x *StackSidebar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 183 | + | func (x *StackSidebar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 184 | 184 | ||
| 185 | 185 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 186 | 186 | ||
| @@ -213,7 +213,7 @@ func (x *StackSidebar) UpdateState(FirstStateVar AccessibleState, varArgs ...int | |||
| 213 | 213 | // state change must be communicated to assistive technologies. | |
| 214 | 214 | // | |
| 215 | 215 | // This function is meant to be used by language bindings. | |
| 216 | - | func (x *StackSidebar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 216 | + | func (x *StackSidebar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 217 | 217 | ||
| 218 | 218 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 219 | 219 | ||
M v4/gtk/gtkstackswitcher.go +3 -3
| @@ -159,7 +159,7 @@ func (x *StackSwitcher) UpdateProperty(FirstPropertyVar AccessibleProperty, varA | |||
| 159 | 159 | // property change must be communicated to assistive technologies. | |
| 160 | 160 | // | |
| 161 | 161 | // This function is meant to be used by language bindings. | |
| 162 | - | func (x *StackSwitcher) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 162 | + | func (x *StackSwitcher) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 163 | 163 | ||
| 164 | 164 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 165 | 165 | ||
| @@ -195,7 +195,7 @@ func (x *StackSwitcher) UpdateRelation(FirstRelationVar AccessibleRelation, varA | |||
| 195 | 195 | // relation change must be communicated to assistive technologies. | |
| 196 | 196 | // | |
| 197 | 197 | // This function is meant to be used by language bindings. | |
| 198 | - | func (x *StackSwitcher) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 198 | + | func (x *StackSwitcher) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 199 | 199 | ||
| 200 | 200 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 201 | 201 | ||
| @@ -228,7 +228,7 @@ func (x *StackSwitcher) UpdateState(FirstStateVar AccessibleState, varArgs ...in | |||
| 228 | 228 | // state change must be communicated to assistive technologies. | |
| 229 | 229 | // | |
| 230 | 230 | // This function is meant to be used by language bindings. | |
| 231 | - | func (x *StackSwitcher) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 231 | + | func (x *StackSwitcher) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 232 | 232 | ||
| 233 | 233 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 234 | 234 | ||
M v4/gtk/gtkstatusbar.go +3 -3
| @@ -234,7 +234,7 @@ func (x *Statusbar) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs | |||
| 234 | 234 | // property change must be communicated to assistive technologies. | |
| 235 | 235 | // | |
| 236 | 236 | // This function is meant to be used by language bindings. | |
| 237 | - | func (x *Statusbar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar uintptr, ValuesVar uintptr) { | |
| 237 | + | func (x *Statusbar) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) { | |
| 238 | 238 | ||
| 239 | 239 | XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) | |
| 240 | 240 | ||
| @@ -270,7 +270,7 @@ func (x *Statusbar) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs | |||
| 270 | 270 | // relation change must be communicated to assistive technologies. | |
| 271 | 271 | // | |
| 272 | 272 | // This function is meant to be used by language bindings. | |
| 273 | - | func (x *Statusbar) UpdateRelationValue(NRelationsVar int, RelationsVar uintptr, ValuesVar uintptr) { | |
| 273 | + | func (x *Statusbar) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) { | |
| 274 | 274 | ||
| 275 | 275 | XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) | |
| 276 | 276 | ||
| @@ -303,7 +303,7 @@ func (x *Statusbar) UpdateState(FirstStateVar AccessibleState, varArgs ...interf | |||
| 303 | 303 | // state change must be communicated to assistive technologies. | |
| 304 | 304 | // | |
| 305 | 305 | // This function is meant to be used by language bindings. | |
| 306 | - | func (x *Statusbar) UpdateStateValue(NStatesVar int, StatesVar uintptr, ValuesVar uintptr) { | |
| 306 | + | func (x *Statusbar) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) { | |
| 307 | 307 | ||
| 308 | 308 | XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) | |
| 309 | 309 | ||
M v4/gtk/gtkstringlist.go +6 -5 collapsed to keep the page light
M v4/gtk/gtkswitch.go +3 -3 collapsed to keep the page light
M v4/gtk/gtksymbolicpaintable.go +3 -3 collapsed to keep the page light
M v4/gtk/gtktestutils.go +5 -4 collapsed to keep the page light
M v4/gtk/gtktext.go +3 -3 collapsed to keep the page light
M v4/gtk/gtktextmark.go +1 -1 collapsed to keep the page light
M v4/gtk/gtktexttag.go +1 -1 collapsed to keep the page light
M v4/gtk/gtktextview.go +4 -4 collapsed to keep the page light
M v4/gtk/gtktogglebutton.go +4 -4 collapsed to keep the page light
M v4/gtk/gtktreeexpander.go +3 -3 collapsed to keep the page light
M v4/gtk/gtktreelistmodel.go +2 -1 collapsed to keep the page light
M v4/gtk/gtktreemodel.go +13 -12 collapsed to keep the page light
M v4/gtk/gtktreemodelfilter.go +6 -5 collapsed to keep the page light
M v4/gtk/gtktreemodelsort.go +4 -3 collapsed to keep the page light
M v4/gtk/gtktreestore.go +14 -13 collapsed to keep the page light
M v4/gtk/gtktreeview.go +4 -4 collapsed to keep the page light
M v4/gtk/gtkvideo.go +3 -3 collapsed to keep the page light
M v4/gtk/gtkviewport.go +3 -3 collapsed to keep the page light
M v4/gtk/gtkvolumebutton.go +3 -3 collapsed to keep the page light
M v4/gtk/gtkwidget.go +17 -16 collapsed to keep the page light
M v4/gtk/gtkwindow.go +4 -4 collapsed to keep the page light
M v4/gtk/gtkwindowcontrols.go +3 -3 collapsed to keep the page light
M v4/gtk/gtkwindowhandle.go +3 -3 collapsed to keep the page light
M v4/pango/pango-break.go +8 -8 collapsed to keep the page light
M v4/pango/pango-coverage.go +4 -4 collapsed to keep the page light
M v4/pango/pango-font.go +6 -6 collapsed to keep the page light
M v4/pango/pango-glyph-item.go +4 -4
| @@ -74,7 +74,7 @@ func (x *GlyphItem) Free() { | |||
| 74 | 74 | ||
| 75 | 75 | } | |
| 76 | 76 | ||
| 77 | - | var xGlyphItemGetLogicalWidths func(uintptr, string, uintptr) | |
| 77 | + | var xGlyphItemGetLogicalWidths func(uintptr, string, []int) | |
| 78 | 78 | ||
| 79 | 79 | // Given a `PangoGlyphItem` and the corresponding text, determine the | |
| 80 | 80 | // width corresponding to each character. | |
| @@ -83,17 +83,17 @@ var xGlyphItemGetLogicalWidths func(uintptr, string, uintptr) | |||
| 83 | 83 | // entire cluster is divided equally among the characters. | |
| 84 | 84 | // | |
| 85 | 85 | // See also [method@Pango.GlyphString.get_logical_widths]. | |
| 86 | - | func (x *GlyphItem) GetLogicalWidths(TextVar string, LogicalWidthsVar uintptr) { | |
| 86 | + | func (x *GlyphItem) GetLogicalWidths(TextVar string, LogicalWidthsVar []int) { | |
| 87 | 87 | ||
| 88 | 88 | xGlyphItemGetLogicalWidths(x.GoPointer(), TextVar, LogicalWidthsVar) | |
| 89 | 89 | ||
| 90 | 90 | } | |
| 91 | 91 | ||
| 92 | - | var xGlyphItemLetterSpace func(uintptr, string, uintptr, int) | |
| 92 | + | var xGlyphItemLetterSpace func(uintptr, string, []LogAttr, int) | |
| 93 | 93 | ||
| 94 | 94 | // Adds spacing between the graphemes of @glyph_item to | |
| 95 | 95 | // give the effect of typographic letter spacing. | |
| 96 | - | func (x *GlyphItem) LetterSpace(TextVar string, LogAttrsVar uintptr, LetterSpacingVar int) { | |
| 96 | + | func (x *GlyphItem) LetterSpace(TextVar string, LogAttrsVar []LogAttr, LetterSpacingVar int) { | |
| 97 | 97 | ||
| 98 | 98 | xGlyphItemLetterSpace(x.GoPointer(), TextVar, LogAttrsVar, LetterSpacingVar) | |
| 99 | 99 | ||