fix(gen): use g_strdup for nullable string params
- commit
- abab6805579007db4a36551ae109ba1233699241
- author
- brice · · 2026-02-07 17:08 UTC
- parent
- c591276
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
664 files · +1014 -8197
M internal/core/core.go +30 -0
| @@ -231,6 +231,8 @@ func GoString(c uintptr) string { | |||
| 231 | 231 | var ( | |
| 232 | 232 | xGStrdup func(string) uintptr | |
| 233 | 233 | gstrdupOnce sync.Once | |
| 234 | + | xGFree func(uintptr) | |
| 235 | + | gfreeOnce sync.Once | |
| 234 | 236 | ) | |
| 235 | 237 | ||
| 236 | 238 | // GStrdup allocates a C-owned copy of a Go string using g_strdup. | |
| @@ -260,6 +262,34 @@ func GStrdupNullable(s *string) uintptr { | |||
| 260 | 262 | return GStrdup(*s) | |
| 261 | 263 | } | |
| 262 | 264 | ||
| 265 | + | // GFree frees memory allocated by GLib allocation APIs (for example g_strdup). | |
| 266 | + | // Passing 0 is a no-op. | |
| 267 | + | func GFree(ptr uintptr) { | |
| 268 | + | if ptr == 0 { | |
| 269 | + | return | |
| 270 | + | } | |
| 271 | + | gfreeOnce.Do(func() { | |
| 272 | + | var libs []uintptr | |
| 273 | + | for _, libPath := range GetPaths("GLIB") { | |
| 274 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 275 | + | if err != nil { | |
| 276 | + | continue | |
| 277 | + | } | |
| 278 | + | libs = append(libs, lib) | |
| 279 | + | } | |
| 280 | + | PuregoSafeRegister(&xGFree, libs, "g_free") | |
| 281 | + | }) | |
| 282 | + | xGFree(ptr) | |
| 283 | + | } | |
| 284 | + | ||
| 285 | + | // GFreeNullable frees a nullable GLib-allocated pointer. | |
| 286 | + | func GFreeNullable(ptr uintptr) { | |
| 287 | + | if ptr == 0 { | |
| 288 | + | return | |
| 289 | + | } | |
| 290 | + | GFree(ptr) | |
| 291 | + | } | |
| 292 | + | ||
| 263 | 293 | // NullableStringToPtr converts a nullable Go string to a uintptr suitable for C calls. | |
| 264 | 294 | // Returns both the pointer and the backing byte slice. The caller MUST call | |
| 265 | 295 | // runtime.KeepAlive(bytes) after the C call completes to prevent GC from collecting | |
M internal/gir/types/template.go +6 -6
| @@ -39,8 +39,7 @@ type CallbackParam struct { | |||
| 39 | 39 | } | |
| 40 | 40 | ||
| 41 | 41 | // NullableStringParam holds metadata for nullable string parameters that need | |
| 42 | - | // runtime.KeepAlive to prevent GC from collecting the backing memory before | |
| 43 | - | // the C function returns. | |
| 42 | + | // temporary C-owned string allocation with g_strdup/g_free. | |
| 44 | 43 | type NullableStringParam struct { | |
| 45 | 44 | // Name is the parameter name (e.g., "DataDirectoryVar") | |
| 46 | 45 | Name string | |
| @@ -57,7 +56,7 @@ type funcArgsTemplate struct { | |||
| 57 | 56 | // Callbacks tracks callback parameters for proper closure generation | |
| 58 | 57 | Callbacks []CallbackParam | |
| 59 | 58 | ||
| 60 | - | // NullableStrings tracks nullable string parameters that need runtime.KeepAlive | |
| 59 | + | // NullableStrings tracks nullable string parameters that need temporary C strings | |
| 61 | 60 | NullableStrings []NullableStringParam | |
| 62 | 61 | ||
| 63 | 62 | // UsesNullableHelper indicates nullable string handling that needs core import. | |
| @@ -180,13 +179,14 @@ func (f *funcArgsTemplate) AddAPI(t string, n string, k Kind, ns string, nullabl | |||
| 180 | 179 | } | |
| 181 | 180 | } else if ctx == ArgsFromGoToC && nullable && isStringType(t) { | |
| 182 | 181 | // Nullable strings differ based on direction. For Go->C we need a *string API type | |
| 183 | - | // and pass a pointer (or nil) to C. For C->Go we keep the string as-is. | |
| 184 | - | // We track these parameters for runtime.KeepAlive to prevent GC issues. | |
| 182 | + | // and pass a nullable C pointer to C. For C->Go we keep the string as-is. | |
| 183 | + | // We track these parameters so templates can allocate/free a temporary | |
| 184 | + | // C-owned copy via g_strdup/g_free around each call. | |
| 185 | 185 | f.UsesNullableHelper = true | |
| 186 | 186 | t = "*string" | |
| 187 | 187 | c = fmt.Sprintf("%sPtr", n) | |
| 188 | 188 | cRef = c | |
| 189 | - | // Track this parameter for keepalive generation | |
| 189 | + | // Track this parameter for temp C allocation/free generation | |
| 190 | 190 | f.NullableStrings = append(f.NullableStrings, NullableStringParam{Name: n}) | |
| 191 | 191 | } | |
| 192 | 192 | ||
M pkg/core/core.go +2 -0
| @@ -9,6 +9,8 @@ var ( | |||
| 9 | 9 | GoString = core.GoString | |
| 10 | 10 | GStrdup = core.GStrdup | |
| 11 | 11 | GStrdupNullable = core.GStrdupNullable | |
| 12 | + | GFree = core.GFree | |
| 13 | + | GFreeNullable = core.GFreeNullable | |
| 12 | 14 | NullableStringToPtr = core.NullableStringToPtr | |
| 13 | 15 | PtrToNullableString = core.PtrToNullableString | |
| 14 | 16 | SetPackageName = core.SetPackageName | |
M templates/go +16 -35
| @@ -29,9 +29,6 @@ import ( | |||
| 29 | 29 | {{- if $HasDetailedSignals}} | |
| 30 | 30 | "fmt" | |
| 31 | 31 | {{- end}} | |
| 32 | - | {{- if $NeedsCore}} | |
| 33 | - | "runtime" | |
| 34 | - | {{- end}} | |
| 35 | 32 | {{- if .Records}} | |
| 36 | 33 | "structs" | |
| 37 | 34 | {{- end}} | |
| @@ -97,12 +94,10 @@ func {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 97 | 94 | } | |
| 98 | 95 | {{end}} | |
| 99 | 96 | {{range .Args.NullableStrings}} | |
| 100 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 97 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 98 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 101 | 99 | {{end}} | |
| 102 | 100 | {{if .Ret.Value}}cret :={{end}}x{{.Name}}({{convd .Args.API.CallWithRefs}}) | |
| 103 | - | {{range .Args.NullableStrings}} | |
| 104 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 105 | - | {{end}} | |
| 106 | 101 | {{.Ret.Fmt $NotGObject}} | |
| 107 | 102 | } | |
| 108 | 103 | {{end}} | |
| @@ -131,12 +126,10 @@ func (x *{{$outer.Name}}) {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 131 | 126 | } | |
| 132 | 127 | {{end}} | |
| 133 | 128 | {{range .Args.NullableStrings}} | |
| 134 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 129 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 130 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 135 | 131 | {{end}} | |
| 136 | 132 | {{if .Ret.Value}}cret :={{end}}x{{$outer.Name}}{{.Name}}(x.GoPointer() {{convcd .Args.API.CallWithRefs}}) | |
| 137 | - | {{range .Args.NullableStrings}} | |
| 138 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 139 | - | {{end}} | |
| 140 | 133 | {{.Ret.Fmt $NotGObject}} | |
| 141 | 134 | } | |
| 142 | 135 | {{end}} | |
| @@ -218,12 +211,10 @@ func (x *{{.Name}}Base) SetGoPointer(ptr uintptr) { | |||
| 218 | 211 | func (x *{{$outer.Name}}Base) {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |
| 219 | 212 | {{.Ret.Preamble $NotGLib}} | |
| 220 | 213 | {{range .Args.NullableStrings}} | |
| 221 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 214 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 215 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 222 | 216 | {{end}} | |
| 223 | 217 | {{if .Ret.Value}}cret := {{end}}{{.Namespace}}X{{.FullName}}(x.GoPointer() {{convcd .Args.API.Call}}) | |
| 224 | - | {{range .Args.NullableStrings}} | |
| 225 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 226 | - | {{end}} | |
| 227 | 218 | {{.Ret.Fmt $NotGObject}} | |
| 228 | 219 | } | |
| 229 | 220 | {{end}} | |
| @@ -320,12 +311,10 @@ func {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 320 | 311 | } | |
| 321 | 312 | {{end}} | |
| 322 | 313 | {{range .Args.NullableStrings}} | |
| 323 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 314 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 315 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 324 | 316 | {{end}} | |
| 325 | 317 | {{if .Ret.Value}}cret := {{end}}x{{.Name}}({{convd .Args.API.CallWithRefs}}) | |
| 326 | - | {{range .Args.NullableStrings}} | |
| 327 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 328 | - | {{end}} | |
| 329 | 318 | {{.Ret.Fmt $NotGObject}} | |
| 330 | 319 | } | |
| 331 | 320 | {{end}} | |
| @@ -377,12 +366,10 @@ func {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 377 | 366 | } | |
| 378 | 367 | {{end}} | |
| 379 | 368 | {{range .Args.NullableStrings}} | |
| 380 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 369 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 370 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 381 | 371 | {{end}} | |
| 382 | 372 | {{if .Ret.Value}}cret :={{end}}x{{.Name}}({{convd .Args.API.CallWithRefs}}) | |
| 383 | - | {{range .Args.NullableStrings}} | |
| 384 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 385 | - | {{end}} | |
| 386 | 373 | {{.Ret.Fmt $NotGObject}} | |
| 387 | 374 | } | |
| 388 | 375 | {{end}} | |
| @@ -411,12 +398,10 @@ func (x *{{$outer.Name}}) {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 411 | 398 | } | |
| 412 | 399 | {{end}} | |
| 413 | 400 | {{range .Args.NullableStrings}} | |
| 414 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 401 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 402 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 415 | 403 | {{end}} | |
| 416 | 404 | {{if .Ret.Value}}cret :={{end}}x{{$outer.Name}}{{.Name}}(x.GoPointer() {{convcd .Args.API.CallWithRefs}}) | |
| 417 | - | {{range .Args.NullableStrings}} | |
| 418 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 419 | - | {{end}} | |
| 420 | 405 | {{.Ret.Fmt $NotGObject}} | |
| 421 | 406 | } | |
| 422 | 407 | {{end}} | |
| @@ -524,12 +509,10 @@ func (x *{{$outer.Name}}) Connect{{.Name}}WithDetail(detail string, cb *func({{$ | |||
| 524 | 509 | func (x *{{$outer.Name}}) {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |
| 525 | 510 | {{.Ret.Preamble $NotGLib}} | |
| 526 | 511 | {{range .Args.NullableStrings}} | |
| 527 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 512 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 513 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 528 | 514 | {{end}} | |
| 529 | 515 | {{if .Ret.Value}}cret := {{end}} {{.Namespace}}X{{.FullName}}(x.GoPointer() {{convcd .Args.API.Call}}) | |
| 530 | - | {{range .Args.NullableStrings}} | |
| 531 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 532 | - | {{end}} | |
| 533 | 516 | {{.Ret.Fmt $NotGObject}} | |
| 534 | 517 | } | |
| 535 | 518 | {{end}} | |
| @@ -558,12 +541,10 @@ func {{.Name}}({{conv .Args.API.Full}}) {{.Ret.Return}} { | |||
| 558 | 541 | } | |
| 559 | 542 | {{end}} | |
| 560 | 543 | {{range .Args.NullableStrings}} | |
| 561 | - | {{.Name}}Ptr, {{.Name}}Bytes := core.NullableStringToPtr({{.Name}}) | |
| 544 | + | {{.Name}}Ptr := core.GStrdupNullable({{.Name}}) | |
| 545 | + | defer core.GFreeNullable({{.Name}}Ptr) | |
| 562 | 546 | {{end}} | |
| 563 | 547 | {{if .Ret.Value}}cret := {{end}}x{{.Name}}({{convd .Args.API.CallWithRefs}}) | |
| 564 | - | {{range .Args.NullableStrings}} | |
| 565 | - | runtime.KeepAlive({{.Name}}Bytes) | |
| 566 | - | {{end}} | |
| 567 | 548 | {{.Ret.Fmt $NotGObject}} | |
| 568 | 549 | } | |
| 569 | 550 | {{end}} | |
M v4/adw/adw-about-dialog.go +12 -43
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -41,12 +40,11 @@ var xShowAboutDialogFromAppdata func(uintptr, string, uintptr, string, ...interf | |||
| 41 | 40 | // See [ctor@AboutDialog.new_from_appdata] for details. | |
| 42 | 41 | func ShowAboutDialogFromAppdata(ParentVar *gtk.Widget, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 43 | 42 | ||
| 44 | - | ReleaseNotesVersionVarPtr, ReleaseNotesVersionVarBytes := core.NullableStringToPtr(ReleaseNotesVersionVar) | |
| 43 | + | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 44 | + | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 45 | 45 | ||
| 46 | 46 | xShowAboutDialogFromAppdata(ParentVar.GoPointer(), ResourcePathVar, ReleaseNotesVersionVarPtr, FirstPropertyNameVar, varArgs...) | |
| 47 | 47 | ||
| 48 | - | runtime.KeepAlive(ReleaseNotesVersionVarBytes) | |
| 49 | - | ||
| 50 | 48 | } | |
| 51 | 49 | ||
| 52 | 50 | // A dialog showing information about the application. | |
| @@ -284,12 +282,11 @@ var xNewAboutDialogFromAppdata func(string, uintptr) uintptr | |||
| 284 | 282 | func NewAboutDialogFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutDialog { | |
| 285 | 283 | var cls *AboutDialog | |
| 286 | 284 | ||
| 287 | - | ReleaseNotesVersionVarPtr, ReleaseNotesVersionVarBytes := core.NullableStringToPtr(ReleaseNotesVersionVar) | |
| 285 | + | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 286 | + | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 288 | 287 | ||
| 289 | 288 | cret := xNewAboutDialogFromAppdata(ResourcePathVar, ReleaseNotesVersionVarPtr) | |
| 290 | 289 | ||
| 291 | - | runtime.KeepAlive(ReleaseNotesVersionVarBytes) | |
| 292 | - | ||
| 293 | 290 | if cret == 0 { | |
| 294 | 291 | return nil | |
| 295 | 292 | } | |
| @@ -320,12 +317,11 @@ var xAboutDialogAddAcknowledgementSection func(uintptr, uintptr, []string) | |||
| 320 | 317 | // * [method@AboutDialog.add_credit_section] | |
| 321 | 318 | func (x *AboutDialog) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | |
| 322 | 319 | ||
| 323 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 320 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 321 | + | defer core.GFreeNullable(NameVarPtr) | |
| 324 | 322 | ||
| 325 | 323 | xAboutDialogAddAcknowledgementSection(x.GoPointer(), NameVarPtr, PeopleVar) | |
| 326 | 324 | ||
| 327 | - | runtime.KeepAlive(NameVarBytes) | |
| 328 | - | ||
| 329 | 325 | } | |
| 330 | 326 | ||
| 331 | 327 | var xAboutDialogAddCreditSection func(uintptr, uintptr, []string) | |
| @@ -347,12 +343,11 @@ var xAboutDialogAddCreditSection func(uintptr, uintptr, []string) | |||
| 347 | 343 | // * [method@AboutDialog.add_acknowledgement_section] | |
| 348 | 344 | func (x *AboutDialog) AddCreditSection(NameVar *string, PeopleVar []string) { | |
| 349 | 345 | ||
| 350 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 346 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 347 | + | defer core.GFreeNullable(NameVarPtr) | |
| 351 | 348 | ||
| 352 | 349 | xAboutDialogAddCreditSection(x.GoPointer(), NameVarPtr, PeopleVar) | |
| 353 | 350 | ||
| 354 | - | runtime.KeepAlive(NameVarBytes) | |
| 355 | - | ||
| 356 | 351 | } | |
| 357 | 352 | ||
| 358 | 353 | var xAboutDialogAddLegalSection func(uintptr, string, uintptr, gtk.License, uintptr) | |
| @@ -404,16 +399,14 @@ var xAboutDialogAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||
| 404 | 399 | // ``` | |
| 405 | 400 | func (x *AboutDialog) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | |
| 406 | 401 | ||
| 407 | - | CopyrightVarPtr, CopyrightVarBytes := core.NullableStringToPtr(CopyrightVar) | |
| 402 | + | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | |
| 403 | + | defer core.GFreeNullable(CopyrightVarPtr) | |
| 408 | 404 | ||
| 409 | - | LicenseVarPtr, LicenseVarBytes := core.NullableStringToPtr(LicenseVar) | |
| 405 | + | LicenseVarPtr := core.GStrdupNullable(LicenseVar) | |
| 406 | + | defer core.GFreeNullable(LicenseVarPtr) | |
| 410 | 407 | ||
| 411 | 408 | xAboutDialogAddLegalSection(x.GoPointer(), TitleVar, CopyrightVarPtr, LicenseTypeVar, LicenseVarPtr) | |
| 412 | 409 | ||
| 413 | - | runtime.KeepAlive(CopyrightVarBytes) | |
| 414 | - | ||
| 415 | - | runtime.KeepAlive(LicenseVarBytes) | |
| 416 | - | ||
| 417 | 410 | } | |
| 418 | 411 | ||
| 419 | 412 | var xAboutDialogAddLink func(uintptr, string, string) | |
| @@ -464,7 +457,6 @@ var xAboutDialogGetApplicationIcon func(uintptr) string | |||
| 464 | 457 | func (x *AboutDialog) GetApplicationIcon() string { | |
| 465 | 458 | ||
| 466 | 459 | cret := xAboutDialogGetApplicationIcon(x.GoPointer()) | |
| 467 | - | ||
| 468 | 460 | return cret | |
| 469 | 461 | } | |
| 470 | 462 | ||
| @@ -474,7 +466,6 @@ var xAboutDialogGetApplicationName func(uintptr) string | |||
| 474 | 466 | func (x *AboutDialog) GetApplicationName() string { | |
| 475 | 467 | ||
| 476 | 468 | cret := xAboutDialogGetApplicationName(x.GoPointer()) | |
| 477 | - | ||
| 478 | 469 | return cret | |
| 479 | 470 | } | |
| 480 | 471 | ||
| @@ -484,7 +475,6 @@ var xAboutDialogGetArtists func(uintptr) []string | |||
| 484 | 475 | func (x *AboutDialog) GetArtists() []string { | |
| 485 | 476 | ||
| 486 | 477 | cret := xAboutDialogGetArtists(x.GoPointer()) | |
| 487 | - | ||
| 488 | 478 | return cret | |
| 489 | 479 | } | |
| 490 | 480 | ||
| @@ -494,7 +484,6 @@ var xAboutDialogGetComments func(uintptr) string | |||
| 494 | 484 | func (x *AboutDialog) GetComments() string { | |
| 495 | 485 | ||
| 496 | 486 | cret := xAboutDialogGetComments(x.GoPointer()) | |
| 497 | - | ||
| 498 | 487 | return cret | |
| 499 | 488 | } | |
| 500 | 489 | ||
| @@ -504,7 +493,6 @@ var xAboutDialogGetCopyright func(uintptr) string | |||
| 504 | 493 | func (x *AboutDialog) GetCopyright() string { | |
| 505 | 494 | ||
| 506 | 495 | cret := xAboutDialogGetCopyright(x.GoPointer()) | |
| 507 | - | ||
| 508 | 496 | return cret | |
| 509 | 497 | } | |
| 510 | 498 | ||
| @@ -514,7 +502,6 @@ var xAboutDialogGetDebugInfo func(uintptr) string | |||
| 514 | 502 | func (x *AboutDialog) GetDebugInfo() string { | |
| 515 | 503 | ||
| 516 | 504 | cret := xAboutDialogGetDebugInfo(x.GoPointer()) | |
| 517 | - | ||
| 518 | 505 | return cret | |
| 519 | 506 | } | |
| 520 | 507 | ||
| @@ -524,7 +511,6 @@ var xAboutDialogGetDebugInfoFilename func(uintptr) string | |||
| 524 | 511 | func (x *AboutDialog) GetDebugInfoFilename() string { | |
| 525 | 512 | ||
| 526 | 513 | cret := xAboutDialogGetDebugInfoFilename(x.GoPointer()) | |
| 527 | - | ||
| 528 | 514 | return cret | |
| 529 | 515 | } | |
| 530 | 516 | ||
| @@ -534,7 +520,6 @@ var xAboutDialogGetDesigners func(uintptr) []string | |||
| 534 | 520 | func (x *AboutDialog) GetDesigners() []string { | |
| 535 | 521 | ||
| 536 | 522 | cret := xAboutDialogGetDesigners(x.GoPointer()) | |
| 537 | - | ||
| 538 | 523 | return cret | |
| 539 | 524 | } | |
| 540 | 525 | ||
| @@ -544,7 +529,6 @@ var xAboutDialogGetDeveloperName func(uintptr) string | |||
| 544 | 529 | func (x *AboutDialog) GetDeveloperName() string { | |
| 545 | 530 | ||
| 546 | 531 | cret := xAboutDialogGetDeveloperName(x.GoPointer()) | |
| 547 | - | ||
| 548 | 532 | return cret | |
| 549 | 533 | } | |
| 550 | 534 | ||
| @@ -554,7 +538,6 @@ var xAboutDialogGetDevelopers func(uintptr) []string | |||
| 554 | 538 | func (x *AboutDialog) GetDevelopers() []string { | |
| 555 | 539 | ||
| 556 | 540 | cret := xAboutDialogGetDevelopers(x.GoPointer()) | |
| 557 | - | ||
| 558 | 541 | return cret | |
| 559 | 542 | } | |
| 560 | 543 | ||
| @@ -564,7 +547,6 @@ var xAboutDialogGetDocumenters func(uintptr) []string | |||
| 564 | 547 | func (x *AboutDialog) GetDocumenters() []string { | |
| 565 | 548 | ||
| 566 | 549 | cret := xAboutDialogGetDocumenters(x.GoPointer()) | |
| 567 | - | ||
| 568 | 550 | return cret | |
| 569 | 551 | } | |
| 570 | 552 | ||
| @@ -574,7 +556,6 @@ var xAboutDialogGetIssueUrl func(uintptr) string | |||
| 574 | 556 | func (x *AboutDialog) GetIssueUrl() string { | |
| 575 | 557 | ||
| 576 | 558 | cret := xAboutDialogGetIssueUrl(x.GoPointer()) | |
| 577 | - | ||
| 578 | 559 | return cret | |
| 579 | 560 | } | |
| 580 | 561 | ||
| @@ -584,7 +565,6 @@ var xAboutDialogGetLicense func(uintptr) string | |||
| 584 | 565 | func (x *AboutDialog) GetLicense() string { | |
| 585 | 566 | ||
| 586 | 567 | cret := xAboutDialogGetLicense(x.GoPointer()) | |
| 587 | - | ||
| 588 | 568 | return cret | |
| 589 | 569 | } | |
| 590 | 570 | ||
| @@ -594,7 +574,6 @@ var xAboutDialogGetLicenseType func(uintptr) gtk.License | |||
| 594 | 574 | func (x *AboutDialog) GetLicenseType() gtk.License { | |
| 595 | 575 | ||
| 596 | 576 | cret := xAboutDialogGetLicenseType(x.GoPointer()) | |
| 597 | - | ||
| 598 | 577 | return cret | |
| 599 | 578 | } | |
| 600 | 579 | ||
| @@ -604,7 +583,6 @@ var xAboutDialogGetReleaseNotes func(uintptr) string | |||
| 604 | 583 | func (x *AboutDialog) GetReleaseNotes() string { | |
| 605 | 584 | ||
| 606 | 585 | cret := xAboutDialogGetReleaseNotes(x.GoPointer()) | |
| 607 | - | ||
| 608 | 586 | return cret | |
| 609 | 587 | } | |
| 610 | 588 | ||
| @@ -614,7 +592,6 @@ var xAboutDialogGetReleaseNotesVersion func(uintptr) string | |||
| 614 | 592 | func (x *AboutDialog) GetReleaseNotesVersion() string { | |
| 615 | 593 | ||
| 616 | 594 | cret := xAboutDialogGetReleaseNotesVersion(x.GoPointer()) | |
| 617 | - | ||
| 618 | 595 | return cret | |
| 619 | 596 | } | |
| 620 | 597 | ||
| @@ -624,7 +601,6 @@ var xAboutDialogGetSupportUrl func(uintptr) string | |||
| 624 | 601 | func (x *AboutDialog) GetSupportUrl() string { | |
| 625 | 602 | ||
| 626 | 603 | cret := xAboutDialogGetSupportUrl(x.GoPointer()) | |
| 627 | - | ||
| 628 | 604 | return cret | |
| 629 | 605 | } | |
| 630 | 606 | ||
| @@ -634,7 +610,6 @@ var xAboutDialogGetTranslatorCredits func(uintptr) string | |||
| 634 | 610 | func (x *AboutDialog) GetTranslatorCredits() string { | |
| 635 | 611 | ||
| 636 | 612 | cret := xAboutDialogGetTranslatorCredits(x.GoPointer()) | |
| 637 | - | ||
| 638 | 613 | return cret | |
| 639 | 614 | } | |
| 640 | 615 | ||
| @@ -644,7 +619,6 @@ var xAboutDialogGetVersion func(uintptr) string | |||
| 644 | 619 | func (x *AboutDialog) GetVersion() string { | |
| 645 | 620 | ||
| 646 | 621 | cret := xAboutDialogGetVersion(x.GoPointer()) | |
| 647 | - | ||
| 648 | 622 | return cret | |
| 649 | 623 | } | |
| 650 | 624 | ||
| @@ -654,7 +628,6 @@ var xAboutDialogGetWebsite func(uintptr) string | |||
| 654 | 628 | func (x *AboutDialog) GetWebsite() string { | |
| 655 | 629 | ||
| 656 | 630 | cret := xAboutDialogGetWebsite(x.GoPointer()) | |
| 657 | - | ||
| 658 | 631 | return cret | |
| 659 | 632 | } | |
| 660 | 633 | ||
| @@ -1779,7 +1752,6 @@ func (x *AboutDialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 1779 | 1752 | func (x *AboutDialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 1780 | 1753 | ||
| 1781 | 1754 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 1782 | - | ||
| 1783 | 1755 | return cret | |
| 1784 | 1756 | } | |
| 1785 | 1757 | ||
| @@ -1805,7 +1777,6 @@ func (x *AboutDialog) GetAtContext() *gtk.ATContext { | |||
| 1805 | 1777 | func (x *AboutDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 1806 | 1778 | ||
| 1807 | 1779 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 1808 | - | ||
| 1809 | 1780 | return cret | |
| 1810 | 1781 | } | |
| 1811 | 1782 | ||
| @@ -1845,7 +1816,6 @@ func (x *AboutDialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 1845 | 1816 | func (x *AboutDialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 1846 | 1817 | ||
| 1847 | 1818 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 1848 | - | ||
| 1849 | 1819 | return cret | |
| 1850 | 1820 | } | |
| 1851 | 1821 | ||
| @@ -2022,7 +1992,6 @@ func (x *AboutDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 2022 | 1992 | func (x *AboutDialog) GetBuildableId() string { | |
| 2023 | 1993 | ||
| 2024 | 1994 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 2025 | - | ||
| 2026 | 1995 | return cret | |
| 2027 | 1996 | } | |
| 2028 | 1997 | ||
M v4/adw/adw-about-window.go +12 -43
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -43,12 +42,11 @@ var xShowAboutWindowFromAppdata func(uintptr, string, uintptr, string, ...interf | |||
| 43 | 42 | // See [ctor@AboutWindow.new_from_appdata] for details. | |
| 44 | 43 | func ShowAboutWindowFromAppdata(ParentVar *gtk.Window, ResourcePathVar string, ReleaseNotesVersionVar *string, FirstPropertyNameVar string, varArgs ...interface{}) { | |
| 45 | 44 | ||
| 46 | - | ReleaseNotesVersionVarPtr, ReleaseNotesVersionVarBytes := core.NullableStringToPtr(ReleaseNotesVersionVar) | |
| 45 | + | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 46 | + | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 47 | 47 | ||
| 48 | 48 | xShowAboutWindowFromAppdata(ParentVar.GoPointer(), ResourcePathVar, ReleaseNotesVersionVarPtr, FirstPropertyNameVar, varArgs...) | |
| 49 | 49 | ||
| 50 | - | runtime.KeepAlive(ReleaseNotesVersionVarBytes) | |
| 51 | - | ||
| 52 | 50 | } | |
| 53 | 51 | ||
| 54 | 52 | // A window showing information about the application. | |
| @@ -281,12 +279,11 @@ var xNewAboutWindowFromAppdata func(string, uintptr) uintptr | |||
| 281 | 279 | func NewAboutWindowFromAppdata(ResourcePathVar string, ReleaseNotesVersionVar *string) *AboutWindow { | |
| 282 | 280 | var cls *AboutWindow | |
| 283 | 281 | ||
| 284 | - | ReleaseNotesVersionVarPtr, ReleaseNotesVersionVarBytes := core.NullableStringToPtr(ReleaseNotesVersionVar) | |
| 282 | + | ReleaseNotesVersionVarPtr := core.GStrdupNullable(ReleaseNotesVersionVar) | |
| 283 | + | defer core.GFreeNullable(ReleaseNotesVersionVarPtr) | |
| 285 | 284 | ||
| 286 | 285 | cret := xNewAboutWindowFromAppdata(ResourcePathVar, ReleaseNotesVersionVarPtr) | |
| 287 | 286 | ||
| 288 | - | runtime.KeepAlive(ReleaseNotesVersionVarBytes) | |
| 289 | - | ||
| 290 | 287 | if cret == 0 { | |
| 291 | 288 | return nil | |
| 292 | 289 | } | |
| @@ -317,12 +314,11 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, uintptr, []string) | |||
| 317 | 314 | // * [method@AboutWindow.add_credit_section] | |
| 318 | 315 | func (x *AboutWindow) AddAcknowledgementSection(NameVar *string, PeopleVar []string) { | |
| 319 | 316 | ||
| 320 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 317 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 318 | + | defer core.GFreeNullable(NameVarPtr) | |
| 321 | 319 | ||
| 322 | 320 | xAboutWindowAddAcknowledgementSection(x.GoPointer(), NameVarPtr, PeopleVar) | |
| 323 | 321 | ||
| 324 | - | runtime.KeepAlive(NameVarBytes) | |
| 325 | - | ||
| 326 | 322 | } | |
| 327 | 323 | ||
| 328 | 324 | var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |
| @@ -344,12 +340,11 @@ var xAboutWindowAddCreditSection func(uintptr, uintptr, []string) | |||
| 344 | 340 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 345 | 341 | func (x *AboutWindow) AddCreditSection(NameVar *string, PeopleVar []string) { | |
| 346 | 342 | ||
| 347 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 343 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 344 | + | defer core.GFreeNullable(NameVarPtr) | |
| 348 | 345 | ||
| 349 | 346 | xAboutWindowAddCreditSection(x.GoPointer(), NameVarPtr, PeopleVar) | |
| 350 | 347 | ||
| 351 | - | runtime.KeepAlive(NameVarBytes) | |
| 352 | - | ||
| 353 | 348 | } | |
| 354 | 349 | ||
| 355 | 350 | var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uintptr) | |
| @@ -401,16 +396,14 @@ var xAboutWindowAddLegalSection func(uintptr, string, uintptr, gtk.License, uint | |||
| 401 | 396 | // ``` | |
| 402 | 397 | func (x *AboutWindow) AddLegalSection(TitleVar string, CopyrightVar *string, LicenseTypeVar gtk.License, LicenseVar *string) { | |
| 403 | 398 | ||
| 404 | - | CopyrightVarPtr, CopyrightVarBytes := core.NullableStringToPtr(CopyrightVar) | |
| 399 | + | CopyrightVarPtr := core.GStrdupNullable(CopyrightVar) | |
| 400 | + | defer core.GFreeNullable(CopyrightVarPtr) | |
| 405 | 401 | ||
| 406 | - | LicenseVarPtr, LicenseVarBytes := core.NullableStringToPtr(LicenseVar) | |
| 402 | + | LicenseVarPtr := core.GStrdupNullable(LicenseVar) | |
| 403 | + | defer core.GFreeNullable(LicenseVarPtr) | |
| 407 | 404 | ||
| 408 | 405 | xAboutWindowAddLegalSection(x.GoPointer(), TitleVar, CopyrightVarPtr, LicenseTypeVar, LicenseVarPtr) | |
| 409 | 406 | ||
| 410 | - | runtime.KeepAlive(CopyrightVarBytes) | |
| 411 | - | ||
| 412 | - | runtime.KeepAlive(LicenseVarBytes) | |
| 413 | - | ||
| 414 | 407 | } | |
| 415 | 408 | ||
| 416 | 409 | var xAboutWindowAddLink func(uintptr, string, string) | |
| @@ -434,7 +427,6 @@ var xAboutWindowGetApplicationIcon func(uintptr) string | |||
| 434 | 427 | func (x *AboutWindow) GetApplicationIcon() string { | |
| 435 | 428 | ||
| 436 | 429 | cret := xAboutWindowGetApplicationIcon(x.GoPointer()) | |
| 437 | - | ||
| 438 | 430 | return cret | |
| 439 | 431 | } | |
| 440 | 432 | ||
| @@ -444,7 +436,6 @@ var xAboutWindowGetApplicationName func(uintptr) string | |||
| 444 | 436 | func (x *AboutWindow) GetApplicationName() string { | |
| 445 | 437 | ||
| 446 | 438 | cret := xAboutWindowGetApplicationName(x.GoPointer()) | |
| 447 | - | ||
| 448 | 439 | return cret | |
| 449 | 440 | } | |
| 450 | 441 | ||
| @@ -454,7 +445,6 @@ var xAboutWindowGetArtists func(uintptr) []string | |||
| 454 | 445 | func (x *AboutWindow) GetArtists() []string { | |
| 455 | 446 | ||
| 456 | 447 | cret := xAboutWindowGetArtists(x.GoPointer()) | |
| 457 | - | ||
| 458 | 448 | return cret | |
| 459 | 449 | } | |
| 460 | 450 | ||
| @@ -464,7 +454,6 @@ var xAboutWindowGetComments func(uintptr) string | |||
| 464 | 454 | func (x *AboutWindow) GetComments() string { | |
| 465 | 455 | ||
| 466 | 456 | cret := xAboutWindowGetComments(x.GoPointer()) | |
| 467 | - | ||
| 468 | 457 | return cret | |
| 469 | 458 | } | |
| 470 | 459 | ||
| @@ -474,7 +463,6 @@ var xAboutWindowGetCopyright func(uintptr) string | |||
| 474 | 463 | func (x *AboutWindow) GetCopyright() string { | |
| 475 | 464 | ||
| 476 | 465 | cret := xAboutWindowGetCopyright(x.GoPointer()) | |
| 477 | - | ||
| 478 | 466 | return cret | |
| 479 | 467 | } | |
| 480 | 468 | ||
| @@ -484,7 +472,6 @@ var xAboutWindowGetDebugInfo func(uintptr) string | |||
| 484 | 472 | func (x *AboutWindow) GetDebugInfo() string { | |
| 485 | 473 | ||
| 486 | 474 | cret := xAboutWindowGetDebugInfo(x.GoPointer()) | |
| 487 | - | ||
| 488 | 475 | return cret | |
| 489 | 476 | } | |
| 490 | 477 | ||
| @@ -494,7 +481,6 @@ var xAboutWindowGetDebugInfoFilename func(uintptr) string | |||
| 494 | 481 | func (x *AboutWindow) GetDebugInfoFilename() string { | |
| 495 | 482 | ||
| 496 | 483 | cret := xAboutWindowGetDebugInfoFilename(x.GoPointer()) | |
| 497 | - | ||
| 498 | 484 | return cret | |
| 499 | 485 | } | |
| 500 | 486 | ||
| @@ -504,7 +490,6 @@ var xAboutWindowGetDesigners func(uintptr) []string | |||
| 504 | 490 | func (x *AboutWindow) GetDesigners() []string { | |
| 505 | 491 | ||
| 506 | 492 | cret := xAboutWindowGetDesigners(x.GoPointer()) | |
| 507 | - | ||
| 508 | 493 | return cret | |
| 509 | 494 | } | |
| 510 | 495 | ||
| @@ -514,7 +499,6 @@ var xAboutWindowGetDeveloperName func(uintptr) string | |||
| 514 | 499 | func (x *AboutWindow) GetDeveloperName() string { | |
| 515 | 500 | ||
| 516 | 501 | cret := xAboutWindowGetDeveloperName(x.GoPointer()) | |
| 517 | - | ||
| 518 | 502 | return cret | |
| 519 | 503 | } | |
| 520 | 504 | ||
| @@ -524,7 +508,6 @@ var xAboutWindowGetDevelopers func(uintptr) []string | |||
| 524 | 508 | func (x *AboutWindow) GetDevelopers() []string { | |
| 525 | 509 | ||
| 526 | 510 | cret := xAboutWindowGetDevelopers(x.GoPointer()) | |
| 527 | - | ||
| 528 | 511 | return cret | |
| 529 | 512 | } | |
| 530 | 513 | ||
| @@ -534,7 +517,6 @@ var xAboutWindowGetDocumenters func(uintptr) []string | |||
| 534 | 517 | func (x *AboutWindow) GetDocumenters() []string { | |
| 535 | 518 | ||
| 536 | 519 | cret := xAboutWindowGetDocumenters(x.GoPointer()) | |
| 537 | - | ||
| 538 | 520 | return cret | |
| 539 | 521 | } | |
| 540 | 522 | ||
| @@ -544,7 +526,6 @@ var xAboutWindowGetIssueUrl func(uintptr) string | |||
| 544 | 526 | func (x *AboutWindow) GetIssueUrl() string { | |
| 545 | 527 | ||
| 546 | 528 | cret := xAboutWindowGetIssueUrl(x.GoPointer()) | |
| 547 | - | ||
| 548 | 529 | return cret | |
| 549 | 530 | } | |
| 550 | 531 | ||
| @@ -554,7 +535,6 @@ var xAboutWindowGetLicense func(uintptr) string | |||
| 554 | 535 | func (x *AboutWindow) GetLicense() string { | |
| 555 | 536 | ||
| 556 | 537 | cret := xAboutWindowGetLicense(x.GoPointer()) | |
| 557 | - | ||
| 558 | 538 | return cret | |
| 559 | 539 | } | |
| 560 | 540 | ||
| @@ -564,7 +544,6 @@ var xAboutWindowGetLicenseType func(uintptr) gtk.License | |||
| 564 | 544 | func (x *AboutWindow) GetLicenseType() gtk.License { | |
| 565 | 545 | ||
| 566 | 546 | cret := xAboutWindowGetLicenseType(x.GoPointer()) | |
| 567 | - | ||
| 568 | 547 | return cret | |
| 569 | 548 | } | |
| 570 | 549 | ||
| @@ -574,7 +553,6 @@ var xAboutWindowGetReleaseNotes func(uintptr) string | |||
| 574 | 553 | func (x *AboutWindow) GetReleaseNotes() string { | |
| 575 | 554 | ||
| 576 | 555 | cret := xAboutWindowGetReleaseNotes(x.GoPointer()) | |
| 577 | - | ||
| 578 | 556 | return cret | |
| 579 | 557 | } | |
| 580 | 558 | ||
| @@ -584,7 +562,6 @@ var xAboutWindowGetReleaseNotesVersion func(uintptr) string | |||
| 584 | 562 | func (x *AboutWindow) GetReleaseNotesVersion() string { | |
| 585 | 563 | ||
| 586 | 564 | cret := xAboutWindowGetReleaseNotesVersion(x.GoPointer()) | |
| 587 | - | ||
| 588 | 565 | return cret | |
| 589 | 566 | } | |
| 590 | 567 | ||
| @@ -594,7 +571,6 @@ var xAboutWindowGetSupportUrl func(uintptr) string | |||
| 594 | 571 | func (x *AboutWindow) GetSupportUrl() string { | |
| 595 | 572 | ||
| 596 | 573 | cret := xAboutWindowGetSupportUrl(x.GoPointer()) | |
| 597 | - | ||
| 598 | 574 | return cret | |
| 599 | 575 | } | |
| 600 | 576 | ||
| @@ -604,7 +580,6 @@ var xAboutWindowGetTranslatorCredits func(uintptr) string | |||
| 604 | 580 | func (x *AboutWindow) GetTranslatorCredits() string { | |
| 605 | 581 | ||
| 606 | 582 | cret := xAboutWindowGetTranslatorCredits(x.GoPointer()) | |
| 607 | - | ||
| 608 | 583 | return cret | |
| 609 | 584 | } | |
| 610 | 585 | ||
| @@ -614,7 +589,6 @@ var xAboutWindowGetVersion func(uintptr) string | |||
| 614 | 589 | func (x *AboutWindow) GetVersion() string { | |
| 615 | 590 | ||
| 616 | 591 | cret := xAboutWindowGetVersion(x.GoPointer()) | |
| 617 | - | ||
| 618 | 592 | return cret | |
| 619 | 593 | } | |
| 620 | 594 | ||
| @@ -624,7 +598,6 @@ var xAboutWindowGetWebsite func(uintptr) string | |||
| 624 | 598 | func (x *AboutWindow) GetWebsite() string { | |
| 625 | 599 | ||
| 626 | 600 | cret := xAboutWindowGetWebsite(x.GoPointer()) | |
| 627 | - | ||
| 628 | 601 | return cret | |
| 629 | 602 | } | |
| 630 | 603 | ||
| @@ -1749,7 +1722,6 @@ func (x *AboutWindow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 1749 | 1722 | func (x *AboutWindow) GetAccessibleRole() gtk.AccessibleRole { | |
| 1750 | 1723 | ||
| 1751 | 1724 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 1752 | - | ||
| 1753 | 1725 | return cret | |
| 1754 | 1726 | } | |
| 1755 | 1727 | ||
| @@ -1775,7 +1747,6 @@ func (x *AboutWindow) GetAtContext() *gtk.ATContext { | |||
| 1775 | 1747 | func (x *AboutWindow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 1776 | 1748 | ||
| 1777 | 1749 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 1778 | - | ||
| 1779 | 1750 | return cret | |
| 1780 | 1751 | } | |
| 1781 | 1752 | ||
| @@ -1815,7 +1786,6 @@ func (x *AboutWindow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 1815 | 1786 | func (x *AboutWindow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 1816 | 1787 | ||
| 1817 | 1788 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 1818 | - | ||
| 1819 | 1789 | return cret | |
| 1820 | 1790 | } | |
| 1821 | 1791 | ||
| @@ -1992,7 +1962,6 @@ func (x *AboutWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 1992 | 1962 | func (x *AboutWindow) GetBuildableId() string { | |
| 1993 | 1963 | ||
| 1994 | 1964 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1995 | - | ||
| 1996 | 1965 | return cret | |
| 1997 | 1966 | } | |
| 1998 | 1967 | ||
M v4/adw/adw-action-row.go +4 -18
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -188,7 +187,6 @@ var xActionRowGetIconName func(uintptr) string | |||
| 188 | 187 | func (x *ActionRow) GetIconName() string { | |
| 189 | 188 | ||
| 190 | 189 | cret := xActionRowGetIconName(x.GoPointer()) | |
| 191 | - | ||
| 192 | 190 | return cret | |
| 193 | 191 | } | |
| 194 | 192 | ||
| @@ -198,7 +196,6 @@ var xActionRowGetSubtitle func(uintptr) string | |||
| 198 | 196 | func (x *ActionRow) GetSubtitle() string { | |
| 199 | 197 | ||
| 200 | 198 | cret := xActionRowGetSubtitle(x.GoPointer()) | |
| 201 | - | ||
| 202 | 199 | return cret | |
| 203 | 200 | } | |
| 204 | 201 | ||
| @@ -209,7 +206,6 @@ var xActionRowGetSubtitleLines func(uintptr) int | |||
| 209 | 206 | func (x *ActionRow) GetSubtitleLines() int { | |
| 210 | 207 | ||
| 211 | 208 | cret := xActionRowGetSubtitleLines(x.GoPointer()) | |
| 212 | - | ||
| 213 | 209 | return cret | |
| 214 | 210 | } | |
| 215 | 211 | ||
| @@ -219,7 +215,6 @@ var xActionRowGetSubtitleSelectable func(uintptr) bool | |||
| 219 | 215 | func (x *ActionRow) GetSubtitleSelectable() bool { | |
| 220 | 216 | ||
| 221 | 217 | cret := xActionRowGetSubtitleSelectable(x.GoPointer()) | |
| 222 | - | ||
| 223 | 218 | return cret | |
| 224 | 219 | } | |
| 225 | 220 | ||
| @@ -230,7 +225,6 @@ var xActionRowGetTitleLines func(uintptr) int | |||
| 230 | 225 | func (x *ActionRow) GetTitleLines() int { | |
| 231 | 226 | ||
| 232 | 227 | cret := xActionRowGetTitleLines(x.GoPointer()) | |
| 233 | - | ||
| 234 | 228 | return cret | |
| 235 | 229 | } | |
| 236 | 230 | ||
| @@ -264,12 +258,11 @@ var xActionRowSetIconName func(uintptr, uintptr) | |||
| 264 | 258 | // Sets the icon name for @self. | |
| 265 | 259 | func (x *ActionRow) SetIconName(IconNameVar *string) { | |
| 266 | 260 | ||
| 267 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 261 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 262 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 268 | 263 | ||
| 269 | 264 | xActionRowSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 270 | 265 | ||
| 271 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 272 | - | ||
| 273 | 266 | } | |
| 274 | 267 | ||
| 275 | 268 | var xActionRowSetSubtitle func(uintptr, string) | |
| @@ -494,7 +487,6 @@ func (x *ActionRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 494 | 487 | func (x *ActionRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 495 | 488 | ||
| 496 | 489 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 497 | - | ||
| 498 | 490 | return cret | |
| 499 | 491 | } | |
| 500 | 492 | ||
| @@ -520,7 +512,6 @@ func (x *ActionRow) GetAtContext() *gtk.ATContext { | |||
| 520 | 512 | func (x *ActionRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 521 | 513 | ||
| 522 | 514 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 523 | - | ||
| 524 | 515 | return cret | |
| 525 | 516 | } | |
| 526 | 517 | ||
| @@ -560,7 +551,6 @@ func (x *ActionRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 560 | 551 | func (x *ActionRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 561 | 552 | ||
| 562 | 553 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 563 | - | ||
| 564 | 554 | return cret | |
| 565 | 555 | } | |
| 566 | 556 | ||
| @@ -734,7 +724,6 @@ func (x *ActionRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 734 | 724 | func (x *ActionRow) GetActionName() string { | |
| 735 | 725 | ||
| 736 | 726 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 737 | - | ||
| 738 | 727 | return cret | |
| 739 | 728 | } | |
| 740 | 729 | ||
| @@ -742,7 +731,6 @@ func (x *ActionRow) GetActionName() string { | |||
| 742 | 731 | func (x *ActionRow) GetActionTargetValue() *glib.Variant { | |
| 743 | 732 | ||
| 744 | 733 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 745 | - | ||
| 746 | 734 | return cret | |
| 747 | 735 | } | |
| 748 | 736 | ||
| @@ -761,12 +749,11 @@ func (x *ActionRow) GetActionTargetValue() *glib.Variant { | |||
| 761 | 749 | // associated with the window. | |
| 762 | 750 | func (x *ActionRow) SetActionName(ActionNameVar *string) { | |
| 763 | 751 | ||
| 764 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 752 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 753 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 765 | 754 | ||
| 766 | 755 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 767 | 756 | ||
| 768 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 769 | - | ||
| 770 | 757 | } | |
| 771 | 758 | ||
| 772 | 759 | // Sets the target of an actionable widget. | |
| @@ -826,7 +813,6 @@ func (x *ActionRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 826 | 813 | func (x *ActionRow) GetBuildableId() string { | |
| 827 | 814 | ||
| 828 | 815 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 829 | - | ||
| 830 | 816 | return cret | |
| 831 | 817 | } | |
| 832 | 818 | ||
M v4/adw/adw-alert-dialog.go +8 -29
| @@ -3,7 +3,6 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "fmt" | |
| 6 | - | "runtime" | |
| 7 | 6 | "structs" | |
| 8 | 7 | "unsafe" | |
| 9 | 8 | ||
| @@ -255,16 +254,14 @@ var xNewAlertDialog func(uintptr, uintptr) uintptr | |||
| 255 | 254 | func NewAlertDialog(HeadingVar *string, BodyVar *string) *AlertDialog { | |
| 256 | 255 | var cls *AlertDialog | |
| 257 | 256 | ||
| 258 | - | HeadingVarPtr, HeadingVarBytes := core.NullableStringToPtr(HeadingVar) | |
| 257 | + | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 258 | + | defer core.GFreeNullable(HeadingVarPtr) | |
| 259 | 259 | ||
| 260 | - | BodyVarPtr, BodyVarBytes := core.NullableStringToPtr(BodyVar) | |
| 260 | + | BodyVarPtr := core.GStrdupNullable(BodyVar) | |
| 261 | + | defer core.GFreeNullable(BodyVarPtr) | |
| 261 | 262 | ||
| 262 | 263 | cret := xNewAlertDialog(HeadingVarPtr, BodyVarPtr) | |
| 263 | 264 | ||
| 264 | - | runtime.KeepAlive(HeadingVarBytes) | |
| 265 | - | ||
| 266 | - | runtime.KeepAlive(BodyVarBytes) | |
| 267 | - | ||
| 268 | 265 | if cret == 0 { | |
| 269 | 266 | return nil | |
| 270 | 267 | } | |
| @@ -356,7 +353,6 @@ var xAlertDialogChooseFinish func(uintptr, uintptr) string | |||
| 356 | 353 | func (x *AlertDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | |
| 357 | 354 | ||
| 358 | 355 | cret := xAlertDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | |
| 359 | - | ||
| 360 | 356 | return cret | |
| 361 | 357 | } | |
| 362 | 358 | ||
| @@ -422,7 +418,6 @@ var xAlertDialogGetBody func(uintptr) string | |||
| 422 | 418 | func (x *AlertDialog) GetBody() string { | |
| 423 | 419 | ||
| 424 | 420 | cret := xAlertDialogGetBody(x.GoPointer()) | |
| 425 | - | ||
| 426 | 421 | return cret | |
| 427 | 422 | } | |
| 428 | 423 | ||
| @@ -432,7 +427,6 @@ var xAlertDialogGetBodyUseMarkup func(uintptr) bool | |||
| 432 | 427 | func (x *AlertDialog) GetBodyUseMarkup() bool { | |
| 433 | 428 | ||
| 434 | 429 | cret := xAlertDialogGetBodyUseMarkup(x.GoPointer()) | |
| 435 | - | ||
| 436 | 430 | return cret | |
| 437 | 431 | } | |
| 438 | 432 | ||
| @@ -442,7 +436,6 @@ var xAlertDialogGetCloseResponse func(uintptr) string | |||
| 442 | 436 | func (x *AlertDialog) GetCloseResponse() string { | |
| 443 | 437 | ||
| 444 | 438 | cret := xAlertDialogGetCloseResponse(x.GoPointer()) | |
| 445 | - | ||
| 446 | 439 | return cret | |
| 447 | 440 | } | |
| 448 | 441 | ||
| @@ -452,7 +445,6 @@ var xAlertDialogGetDefaultResponse func(uintptr) string | |||
| 452 | 445 | func (x *AlertDialog) GetDefaultResponse() string { | |
| 453 | 446 | ||
| 454 | 447 | cret := xAlertDialogGetDefaultResponse(x.GoPointer()) | |
| 455 | - | ||
| 456 | 448 | return cret | |
| 457 | 449 | } | |
| 458 | 450 | ||
| @@ -479,7 +471,6 @@ var xAlertDialogGetHeading func(uintptr) string | |||
| 479 | 471 | func (x *AlertDialog) GetHeading() string { | |
| 480 | 472 | ||
| 481 | 473 | cret := xAlertDialogGetHeading(x.GoPointer()) | |
| 482 | - | ||
| 483 | 474 | return cret | |
| 484 | 475 | } | |
| 485 | 476 | ||
| @@ -489,7 +480,6 @@ var xAlertDialogGetHeadingUseMarkup func(uintptr) bool | |||
| 489 | 480 | func (x *AlertDialog) GetHeadingUseMarkup() bool { | |
| 490 | 481 | ||
| 491 | 482 | cret := xAlertDialogGetHeadingUseMarkup(x.GoPointer()) | |
| 492 | - | ||
| 493 | 483 | return cret | |
| 494 | 484 | } | |
| 495 | 485 | ||
| @@ -499,7 +489,6 @@ var xAlertDialogGetPreferWideLayout func(uintptr) bool | |||
| 499 | 489 | func (x *AlertDialog) GetPreferWideLayout() bool { | |
| 500 | 490 | ||
| 501 | 491 | cret := xAlertDialogGetPreferWideLayout(x.GoPointer()) | |
| 502 | - | ||
| 503 | 492 | return cret | |
| 504 | 493 | } | |
| 505 | 494 | ||
| @@ -511,7 +500,6 @@ var xAlertDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||
| 511 | 500 | func (x *AlertDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | |
| 512 | 501 | ||
| 513 | 502 | cret := xAlertDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | |
| 514 | - | ||
| 515 | 503 | return cret | |
| 516 | 504 | } | |
| 517 | 505 | ||
| @@ -523,7 +511,6 @@ var xAlertDialogGetResponseEnabled func(uintptr, string) bool | |||
| 523 | 511 | func (x *AlertDialog) GetResponseEnabled(ResponseVar string) bool { | |
| 524 | 512 | ||
| 525 | 513 | cret := xAlertDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | |
| 526 | - | ||
| 527 | 514 | return cret | |
| 528 | 515 | } | |
| 529 | 516 | ||
| @@ -535,7 +522,6 @@ var xAlertDialogGetResponseLabel func(uintptr, string) string | |||
| 535 | 522 | func (x *AlertDialog) GetResponseLabel(ResponseVar string) string { | |
| 536 | 523 | ||
| 537 | 524 | cret := xAlertDialogGetResponseLabel(x.GoPointer(), ResponseVar) | |
| 538 | - | ||
| 539 | 525 | return cret | |
| 540 | 526 | } | |
| 541 | 527 | ||
| @@ -545,7 +531,6 @@ var xAlertDialogHasResponse func(uintptr, string) bool | |||
| 545 | 531 | func (x *AlertDialog) HasResponse(ResponseVar string) bool { | |
| 546 | 532 | ||
| 547 | 533 | cret := xAlertDialogHasResponse(x.GoPointer(), ResponseVar) | |
| 548 | - | ||
| 549 | 534 | return cret | |
| 550 | 535 | } | |
| 551 | 536 | ||
| @@ -607,12 +592,11 @@ var xAlertDialogSetDefaultResponse func(uintptr, uintptr) | |||
| 607 | 592 | // See [property@Dialog:default-widget]. | |
| 608 | 593 | func (x *AlertDialog) SetDefaultResponse(ResponseVar *string) { | |
| 609 | 594 | ||
| 610 | - | ResponseVarPtr, ResponseVarBytes := core.NullableStringToPtr(ResponseVar) | |
| 595 | + | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | |
| 596 | + | defer core.GFreeNullable(ResponseVarPtr) | |
| 611 | 597 | ||
| 612 | 598 | xAlertDialogSetDefaultResponse(x.GoPointer(), ResponseVarPtr) | |
| 613 | 599 | ||
| 614 | - | runtime.KeepAlive(ResponseVarBytes) | |
| 615 | - | ||
| 616 | 600 | } | |
| 617 | 601 | ||
| 618 | 602 | var xAlertDialogSetExtraChild func(uintptr, uintptr) | |
| @@ -631,12 +615,11 @@ var xAlertDialogSetHeading func(uintptr, uintptr) | |||
| 631 | 615 | // Sets the heading of @self. | |
| 632 | 616 | func (x *AlertDialog) SetHeading(HeadingVar *string) { | |
| 633 | 617 | ||
| 634 | - | HeadingVarPtr, HeadingVarBytes := core.NullableStringToPtr(HeadingVar) | |
| 618 | + | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 619 | + | defer core.GFreeNullable(HeadingVarPtr) | |
| 635 | 620 | ||
| 636 | 621 | xAlertDialogSetHeading(x.GoPointer(), HeadingVarPtr) | |
| 637 | 622 | ||
| 638 | - | runtime.KeepAlive(HeadingVarBytes) | |
| 639 | - | ||
| 640 | 623 | } | |
| 641 | 624 | ||
| 642 | 625 | var xAlertDialogSetHeadingUseMarkup func(uintptr, bool) | |
| @@ -985,7 +968,6 @@ func (x *AlertDialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 985 | 968 | func (x *AlertDialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 986 | 969 | ||
| 987 | 970 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 988 | - | ||
| 989 | 971 | return cret | |
| 990 | 972 | } | |
| 991 | 973 | ||
| @@ -1011,7 +993,6 @@ func (x *AlertDialog) GetAtContext() *gtk.ATContext { | |||
| 1011 | 993 | func (x *AlertDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 1012 | 994 | ||
| 1013 | 995 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 1014 | - | ||
| 1015 | 996 | return cret | |
| 1016 | 997 | } | |
| 1017 | 998 | ||
| @@ -1051,7 +1032,6 @@ func (x *AlertDialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 1051 | 1032 | func (x *AlertDialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 1052 | 1033 | ||
| 1053 | 1034 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 1054 | - | ||
| 1055 | 1035 | return cret | |
| 1056 | 1036 | } | |
| 1057 | 1037 | ||
| @@ -1228,7 +1208,6 @@ func (x *AlertDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 1228 | 1208 | func (x *AlertDialog) GetBuildableId() string { | |
| 1229 | 1209 | ||
| 1230 | 1210 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1231 | - | ||
| 1232 | 1211 | return cret | |
| 1233 | 1212 | } | |
| 1234 | 1213 | ||
M v4/adw/adw-animation-util.go +0 -2
| @@ -16,7 +16,6 @@ var xGetEnableAnimations func(uintptr) bool | |||
| 16 | 16 | func GetEnableAnimations(WidgetVar *gtk.Widget) bool { | |
| 17 | 17 | ||
| 18 | 18 | cret := xGetEnableAnimations(WidgetVar.GoPointer()) | |
| 19 | - | ||
| 20 | 19 | return cret | |
| 21 | 20 | } | |
| 22 | 21 | ||
| @@ -26,7 +25,6 @@ var xLerp func(float64, float64, float64) float64 | |||
| 26 | 25 | func Lerp(AVar float64, BVar float64, TVar float64) float64 { | |
| 27 | 26 | ||
| 28 | 27 | cret := xLerp(AVar, BVar, TVar) | |
| 29 | - | ||
| 30 | 28 | return cret | |
| 31 | 29 | } | |
| 32 | 30 | ||
M v4/adw/adw-animation.go +0 -3
| @@ -124,7 +124,6 @@ var xAnimationGetFollowEnableAnimationsSetting func(uintptr) bool | |||
| 124 | 124 | func (x *Animation) GetFollowEnableAnimationsSetting() bool { | |
| 125 | 125 | ||
| 126 | 126 | cret := xAnimationGetFollowEnableAnimationsSetting(x.GoPointer()) | |
| 127 | - | ||
| 128 | 127 | return cret | |
| 129 | 128 | } | |
| 130 | 129 | ||
| @@ -137,7 +136,6 @@ var xAnimationGetState func(uintptr) AnimationState | |||
| 137 | 136 | func (x *Animation) GetState() AnimationState { | |
| 138 | 137 | ||
| 139 | 138 | cret := xAnimationGetState(x.GoPointer()) | |
| 140 | - | ||
| 141 | 139 | return cret | |
| 142 | 140 | } | |
| 143 | 141 | ||
| @@ -164,7 +162,6 @@ var xAnimationGetValue func(uintptr) float64 | |||
| 164 | 162 | func (x *Animation) GetValue() float64 { | |
| 165 | 163 | ||
| 166 | 164 | cret := xAnimationGetValue(x.GoPointer()) | |
| 167 | - | ||
| 168 | 165 | return cret | |
| 169 | 166 | } | |
| 170 | 167 | ||
M v4/adw/adw-application-window.go +0 -13
| @@ -111,7 +111,6 @@ var xApplicationWindowGetAdaptivePreview func(uintptr) bool | |||
| 111 | 111 | func (x *ApplicationWindow) GetAdaptivePreview() bool { | |
| 112 | 112 | ||
| 113 | 113 | cret := xApplicationWindowGetAdaptivePreview(x.GoPointer()) | |
| 114 | - | ||
| 115 | 114 | return cret | |
| 116 | 115 | } | |
| 117 | 116 | ||
| @@ -357,7 +356,6 @@ func (x *ApplicationWindow) ChangeActionState(ActionNameVar string, ValueVar *gl | |||
| 357 | 356 | func (x *ApplicationWindow) GetActionEnabled(ActionNameVar string) bool { | |
| 358 | 357 | ||
| 359 | 358 | cret := gio.XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 360 | - | ||
| 361 | 359 | return cret | |
| 362 | 360 | } | |
| 363 | 361 | ||
| @@ -377,7 +375,6 @@ func (x *ApplicationWindow) GetActionEnabled(ActionNameVar string) bool { | |||
| 377 | 375 | func (x *ApplicationWindow) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 378 | 376 | ||
| 379 | 377 | cret := gio.XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 380 | - | ||
| 381 | 378 | return cret | |
| 382 | 379 | } | |
| 383 | 380 | ||
| @@ -392,7 +389,6 @@ func (x *ApplicationWindow) GetActionParameterType(ActionNameVar string) *glib.V | |||
| 392 | 389 | func (x *ApplicationWindow) GetActionState(ActionNameVar string) *glib.Variant { | |
| 393 | 390 | ||
| 394 | 391 | cret := gio.XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 395 | - | ||
| 396 | 392 | return cret | |
| 397 | 393 | } | |
| 398 | 394 | ||
| @@ -417,7 +413,6 @@ func (x *ApplicationWindow) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 417 | 413 | func (x *ApplicationWindow) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 418 | 414 | ||
| 419 | 415 | cret := gio.XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 420 | - | ||
| 421 | 416 | return cret | |
| 422 | 417 | } | |
| 423 | 418 | ||
| @@ -440,7 +435,6 @@ func (x *ApplicationWindow) GetActionStateHint(ActionNameVar string) *glib.Varia | |||
| 440 | 435 | func (x *ApplicationWindow) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 441 | 436 | ||
| 442 | 437 | cret := gio.XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 443 | - | ||
| 444 | 438 | return cret | |
| 445 | 439 | } | |
| 446 | 440 | ||
| @@ -448,7 +442,6 @@ func (x *ApplicationWindow) GetActionStateType(ActionNameVar string) *glib.Varia | |||
| 448 | 442 | func (x *ApplicationWindow) HasAction(ActionNameVar string) bool { | |
| 449 | 443 | ||
| 450 | 444 | cret := gio.XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 451 | - | ||
| 452 | 445 | return cret | |
| 453 | 446 | } | |
| 454 | 447 | ||
| @@ -459,7 +452,6 @@ func (x *ApplicationWindow) HasAction(ActionNameVar string) bool { | |||
| 459 | 452 | func (x *ApplicationWindow) ListActions() []string { | |
| 460 | 453 | ||
| 461 | 454 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 462 | - | ||
| 463 | 455 | return cret | |
| 464 | 456 | } | |
| 465 | 457 | ||
| @@ -493,7 +485,6 @@ func (x *ApplicationWindow) ListActions() []string { | |||
| 493 | 485 | func (x *ApplicationWindow) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 494 | 486 | ||
| 495 | 487 | cret := gio.XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 496 | - | ||
| 497 | 488 | return cret | |
| 498 | 489 | } | |
| 499 | 490 | ||
| @@ -650,7 +641,6 @@ func (x *ApplicationWindow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 650 | 641 | func (x *ApplicationWindow) GetAccessibleRole() gtk.AccessibleRole { | |
| 651 | 642 | ||
| 652 | 643 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 653 | - | ||
| 654 | 644 | return cret | |
| 655 | 645 | } | |
| 656 | 646 | ||
| @@ -676,7 +666,6 @@ func (x *ApplicationWindow) GetAtContext() *gtk.ATContext { | |||
| 676 | 666 | func (x *ApplicationWindow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 677 | 667 | ||
| 678 | 668 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 679 | - | ||
| 680 | 669 | return cret | |
| 681 | 670 | } | |
| 682 | 671 | ||
| @@ -716,7 +705,6 @@ func (x *ApplicationWindow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 716 | 705 | func (x *ApplicationWindow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 717 | 706 | ||
| 718 | 707 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 719 | - | ||
| 720 | 708 | return cret | |
| 721 | 709 | } | |
| 722 | 710 | ||
| @@ -893,7 +881,6 @@ func (x *ApplicationWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acc | |||
| 893 | 881 | func (x *ApplicationWindow) GetBuildableId() string { | |
| 894 | 882 | ||
| 895 | 883 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 896 | - | ||
| 897 | 884 | return cret | |
| 898 | 885 | } | |
| 899 | 886 | ||
M v4/adw/adw-application.go +2 -12
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -99,12 +98,11 @@ var xNewApplication func(uintptr, gio.ApplicationFlags) uintptr | |||
| 99 | 98 | func NewApplication(ApplicationIdVar *string, FlagsVar gio.ApplicationFlags) *Application { | |
| 100 | 99 | var cls *Application | |
| 101 | 100 | ||
| 102 | - | ApplicationIdVarPtr, ApplicationIdVarBytes := core.NullableStringToPtr(ApplicationIdVar) | |
| 101 | + | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | |
| 102 | + | defer core.GFreeNullable(ApplicationIdVarPtr) | |
| 103 | 103 | ||
| 104 | 104 | cret := xNewApplication(ApplicationIdVarPtr, FlagsVar) | |
| 105 | 105 | ||
| 106 | - | runtime.KeepAlive(ApplicationIdVarBytes) | |
| 107 | - | ||
| 108 | 106 | if cret == 0 { | |
| 109 | 107 | return nil | |
| 110 | 108 | } | |
| @@ -243,7 +241,6 @@ func (x *Application) ChangeActionState(ActionNameVar string, ValueVar *glib.Var | |||
| 243 | 241 | func (x *Application) GetActionEnabled(ActionNameVar string) bool { | |
| 244 | 242 | ||
| 245 | 243 | cret := gio.XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 246 | - | ||
| 247 | 244 | return cret | |
| 248 | 245 | } | |
| 249 | 246 | ||
| @@ -263,7 +260,6 @@ func (x *Application) GetActionEnabled(ActionNameVar string) bool { | |||
| 263 | 260 | func (x *Application) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 264 | 261 | ||
| 265 | 262 | cret := gio.XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 266 | - | ||
| 267 | 263 | return cret | |
| 268 | 264 | } | |
| 269 | 265 | ||
| @@ -278,7 +274,6 @@ func (x *Application) GetActionParameterType(ActionNameVar string) *glib.Variant | |||
| 278 | 274 | func (x *Application) GetActionState(ActionNameVar string) *glib.Variant { | |
| 279 | 275 | ||
| 280 | 276 | cret := gio.XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 281 | - | ||
| 282 | 277 | return cret | |
| 283 | 278 | } | |
| 284 | 279 | ||
| @@ -303,7 +298,6 @@ func (x *Application) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 303 | 298 | func (x *Application) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 304 | 299 | ||
| 305 | 300 | cret := gio.XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 306 | - | ||
| 307 | 301 | return cret | |
| 308 | 302 | } | |
| 309 | 303 | ||
| @@ -326,7 +320,6 @@ func (x *Application) GetActionStateHint(ActionNameVar string) *glib.Variant { | |||
| 326 | 320 | func (x *Application) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 327 | 321 | ||
| 328 | 322 | cret := gio.XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 329 | - | ||
| 330 | 323 | return cret | |
| 331 | 324 | } | |
| 332 | 325 | ||
| @@ -334,7 +327,6 @@ func (x *Application) GetActionStateType(ActionNameVar string) *glib.VariantType | |||
| 334 | 327 | func (x *Application) HasAction(ActionNameVar string) bool { | |
| 335 | 328 | ||
| 336 | 329 | cret := gio.XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 337 | - | ||
| 338 | 330 | return cret | |
| 339 | 331 | } | |
| 340 | 332 | ||
| @@ -345,7 +337,6 @@ func (x *Application) HasAction(ActionNameVar string) bool { | |||
| 345 | 337 | func (x *Application) ListActions() []string { | |
| 346 | 338 | ||
| 347 | 339 | cret := gio.XGActionGroupListActions(x.GoPointer()) | |
| 348 | - | ||
| 349 | 340 | return cret | |
| 350 | 341 | } | |
| 351 | 342 | ||
| @@ -379,7 +370,6 @@ func (x *Application) ListActions() []string { | |||
| 379 | 370 | func (x *Application) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 380 | 371 | ||
| 381 | 372 | cret := gio.XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 382 | - | ||
| 383 | 373 | return cret | |
| 384 | 374 | } | |
| 385 | 375 | ||
M v4/adw/adw-avatar.go +6 -18
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -75,12 +74,11 @@ var xNewAvatar func(int, uintptr, bool) uintptr | |||
| 75 | 74 | func NewAvatar(SizeVar int, TextVar *string, ShowInitialsVar bool) *Avatar { | |
| 76 | 75 | var cls *Avatar | |
| 77 | 76 | ||
| 78 | - | TextVarPtr, TextVarBytes := core.NullableStringToPtr(TextVar) | |
| 77 | + | TextVarPtr := core.GStrdupNullable(TextVar) | |
| 78 | + | defer core.GFreeNullable(TextVarPtr) | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewAvatar(SizeVar, TextVarPtr, ShowInitialsVar) | |
| 81 | 81 | ||
| 82 | - | runtime.KeepAlive(TextVarBytes) | |
| 83 | - | ||
| 84 | 82 | if cret == 0 { | |
| 85 | 83 | return nil | |
| 86 | 84 | } | |
| @@ -131,7 +129,6 @@ var xAvatarGetIconName func(uintptr) string | |||
| 131 | 129 | func (x *Avatar) GetIconName() string { | |
| 132 | 130 | ||
| 133 | 131 | cret := xAvatarGetIconName(x.GoPointer()) | |
| 134 | - | ||
| 135 | 132 | return cret | |
| 136 | 133 | } | |
| 137 | 134 | ||
| @@ -141,7 +138,6 @@ var xAvatarGetShowInitials func(uintptr) bool | |||
| 141 | 138 | func (x *Avatar) GetShowInitials() bool { | |
| 142 | 139 | ||
| 143 | 140 | cret := xAvatarGetShowInitials(x.GoPointer()) | |
| 144 | - | ||
| 145 | 141 | return cret | |
| 146 | 142 | } | |
| 147 | 143 | ||
| @@ -151,7 +147,6 @@ var xAvatarGetSize func(uintptr) int | |||
| 151 | 147 | func (x *Avatar) GetSize() int { | |
| 152 | 148 | ||
| 153 | 149 | cret := xAvatarGetSize(x.GoPointer()) | |
| 154 | - | ||
| 155 | 150 | return cret | |
| 156 | 151 | } | |
| 157 | 152 | ||
| @@ -161,7 +156,6 @@ var xAvatarGetText func(uintptr) string | |||
| 161 | 156 | func (x *Avatar) GetText() string { | |
| 162 | 157 | ||
| 163 | 158 | cret := xAvatarGetText(x.GoPointer()) | |
| 164 | - | ||
| 165 | 159 | return cret | |
| 166 | 160 | } | |
| 167 | 161 | ||
| @@ -183,12 +177,11 @@ var xAvatarSetIconName func(uintptr, uintptr) | |||
| 183 | 177 | // If no name is set, `avatar-default-symbolic` will be used. | |
| 184 | 178 | func (x *Avatar) SetIconName(IconNameVar *string) { | |
| 185 | 179 | ||
| 186 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 180 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 181 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 187 | 182 | ||
| 188 | 183 | xAvatarSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 189 | 184 | ||
| 190 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 191 | - | ||
| 192 | 185 | } | |
| 193 | 186 | ||
| 194 | 187 | var xAvatarSetShowInitials func(uintptr, bool) | |
| @@ -219,12 +212,11 @@ var xAvatarSetText func(uintptr, uintptr) | |||
| 219 | 212 | // `FALSE`. | |
| 220 | 213 | func (x *Avatar) SetText(TextVar *string) { | |
| 221 | 214 | ||
| 222 | - | TextVarPtr, TextVarBytes := core.NullableStringToPtr(TextVar) | |
| 215 | + | TextVarPtr := core.GStrdupNullable(TextVar) | |
| 216 | + | defer core.GFreeNullable(TextVarPtr) | |
| 223 | 217 | ||
| 224 | 218 | xAvatarSetText(x.GoPointer(), TextVarPtr) | |
| 225 | 219 | ||
| 226 | - | runtime.KeepAlive(TextVarBytes) | |
| 227 | - | ||
| 228 | 220 | } | |
| 229 | 221 | ||
| 230 | 222 | func (c *Avatar) GoPointer() uintptr { | |
| @@ -355,7 +347,6 @@ func (x *Avatar) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 355 | 347 | func (x *Avatar) GetAccessibleRole() gtk.AccessibleRole { | |
| 356 | 348 | ||
| 357 | 349 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 358 | - | ||
| 359 | 350 | return cret | |
| 360 | 351 | } | |
| 361 | 352 | ||
| @@ -381,7 +372,6 @@ func (x *Avatar) GetAtContext() *gtk.ATContext { | |||
| 381 | 372 | func (x *Avatar) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 382 | 373 | ||
| 383 | 374 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 384 | - | ||
| 385 | 375 | return cret | |
| 386 | 376 | } | |
| 387 | 377 | ||
| @@ -421,7 +411,6 @@ func (x *Avatar) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 421 | 411 | func (x *Avatar) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 422 | 412 | ||
| 423 | 413 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 424 | - | ||
| 425 | 414 | return cret | |
| 426 | 415 | } | |
| 427 | 416 | ||
| @@ -598,7 +587,6 @@ func (x *Avatar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleStat | |||
| 598 | 587 | func (x *Avatar) GetBuildableId() string { | |
| 599 | 588 | ||
| 600 | 589 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 601 | - | ||
| 602 | 590 | return cret | |
| 603 | 591 | } | |
| 604 | 592 | ||
M v4/adw/adw-banner.go +4 -18
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -116,7 +115,6 @@ var xBannerGetButtonLabel func(uintptr) string | |||
| 116 | 115 | func (x *Banner) GetButtonLabel() string { | |
| 117 | 116 | ||
| 118 | 117 | cret := xBannerGetButtonLabel(x.GoPointer()) | |
| 119 | - | ||
| 120 | 118 | return cret | |
| 121 | 119 | } | |
| 122 | 120 | ||
| @@ -126,7 +124,6 @@ var xBannerGetButtonStyle func(uintptr) BannerButtonStyle | |||
| 126 | 124 | func (x *Banner) GetButtonStyle() BannerButtonStyle { | |
| 127 | 125 | ||
| 128 | 126 | cret := xBannerGetButtonStyle(x.GoPointer()) | |
| 129 | - | ||
| 130 | 127 | return cret | |
| 131 | 128 | } | |
| 132 | 129 | ||
| @@ -136,7 +133,6 @@ var xBannerGetRevealed func(uintptr) bool | |||
| 136 | 133 | func (x *Banner) GetRevealed() bool { | |
| 137 | 134 | ||
| 138 | 135 | cret := xBannerGetRevealed(x.GoPointer()) | |
| 139 | - | ||
| 140 | 136 | return cret | |
| 141 | 137 | } | |
| 142 | 138 | ||
| @@ -146,7 +142,6 @@ var xBannerGetTitle func(uintptr) string | |||
| 146 | 142 | func (x *Banner) GetTitle() string { | |
| 147 | 143 | ||
| 148 | 144 | cret := xBannerGetTitle(x.GoPointer()) | |
| 149 | - | ||
| 150 | 145 | return cret | |
| 151 | 146 | } | |
| 152 | 147 | ||
| @@ -156,7 +151,6 @@ var xBannerGetUseMarkup func(uintptr) bool | |||
| 156 | 151 | func (x *Banner) GetUseMarkup() bool { | |
| 157 | 152 | ||
| 158 | 153 | cret := xBannerGetUseMarkup(x.GoPointer()) | |
| 159 | - | ||
| 160 | 154 | return cret | |
| 161 | 155 | } | |
| 162 | 156 | ||
| @@ -170,12 +164,11 @@ var xBannerSetButtonLabel func(uintptr, uintptr) | |||
| 170 | 164 | // [signal@Banner::button-clicked] signal. | |
| 171 | 165 | func (x *Banner) SetButtonLabel(LabelVar *string) { | |
| 172 | 166 | ||
| 173 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 167 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 168 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 174 | 169 | ||
| 175 | 170 | xBannerSetButtonLabel(x.GoPointer(), LabelVarPtr) | |
| 176 | 171 | ||
| 177 | - | runtime.KeepAlive(LabelVarBytes) | |
| 178 | - | ||
| 179 | 172 | } | |
| 180 | 173 | ||
| 181 | 174 | var xBannerSetButtonStyle func(uintptr, BannerButtonStyle) | |
| @@ -386,7 +379,6 @@ func (x *Banner) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 386 | 379 | func (x *Banner) GetAccessibleRole() gtk.AccessibleRole { | |
| 387 | 380 | ||
| 388 | 381 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 389 | - | ||
| 390 | 382 | return cret | |
| 391 | 383 | } | |
| 392 | 384 | ||
| @@ -412,7 +404,6 @@ func (x *Banner) GetAtContext() *gtk.ATContext { | |||
| 412 | 404 | func (x *Banner) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 413 | 405 | ||
| 414 | 406 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 415 | - | ||
| 416 | 407 | return cret | |
| 417 | 408 | } | |
| 418 | 409 | ||
| @@ -452,7 +443,6 @@ func (x *Banner) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 452 | 443 | func (x *Banner) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 453 | 444 | ||
| 454 | 445 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 455 | - | ||
| 456 | 446 | return cret | |
| 457 | 447 | } | |
| 458 | 448 | ||
| @@ -626,7 +616,6 @@ func (x *Banner) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleStat | |||
| 626 | 616 | func (x *Banner) GetActionName() string { | |
| 627 | 617 | ||
| 628 | 618 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 629 | - | ||
| 630 | 619 | return cret | |
| 631 | 620 | } | |
| 632 | 621 | ||
| @@ -634,7 +623,6 @@ func (x *Banner) GetActionName() string { | |||
| 634 | 623 | func (x *Banner) GetActionTargetValue() *glib.Variant { | |
| 635 | 624 | ||
| 636 | 625 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 637 | - | ||
| 638 | 626 | return cret | |
| 639 | 627 | } | |
| 640 | 628 | ||
| @@ -653,12 +641,11 @@ func (x *Banner) GetActionTargetValue() *glib.Variant { | |||
| 653 | 641 | // associated with the window. | |
| 654 | 642 | func (x *Banner) SetActionName(ActionNameVar *string) { | |
| 655 | 643 | ||
| 656 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 644 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 645 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 657 | 646 | ||
| 658 | 647 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 659 | 648 | ||
| 660 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 661 | - | ||
| 662 | 649 | } | |
| 663 | 650 | ||
| 664 | 651 | // Sets the target of an actionable widget. | |
| @@ -718,7 +705,6 @@ func (x *Banner) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 718 | 705 | func (x *Banner) GetBuildableId() string { | |
| 719 | 706 | ||
| 720 | 707 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 721 | - | ||
| 722 | 708 | return cret | |
| 723 | 709 | } | |
| 724 | 710 | ||
M v4/adw/adw-bin.go +0 -4
| @@ -141,7 +141,6 @@ func (x *Bin) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 141 | 141 | func (x *Bin) GetAccessibleRole() gtk.AccessibleRole { | |
| 142 | 142 | ||
| 143 | 143 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 144 | - | ||
| 145 | 144 | return cret | |
| 146 | 145 | } | |
| 147 | 146 | ||
| @@ -167,7 +166,6 @@ func (x *Bin) GetAtContext() *gtk.ATContext { | |||
| 167 | 166 | func (x *Bin) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 168 | 167 | ||
| 169 | 168 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 170 | - | ||
| 171 | 169 | return cret | |
| 172 | 170 | } | |
| 173 | 171 | ||
| @@ -207,7 +205,6 @@ func (x *Bin) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 207 | 205 | func (x *Bin) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 208 | 206 | ||
| 209 | 207 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 210 | - | ||
| 211 | 208 | return cret | |
| 212 | 209 | } | |
| 213 | 210 | ||
| @@ -384,7 +381,6 @@ func (x *Bin) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, | |||
| 384 | 381 | func (x *Bin) GetBuildableId() string { | |
| 385 | 382 | ||
| 386 | 383 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 387 | - | ||
| 388 | 384 | return cret | |
| 389 | 385 | } | |
| 390 | 386 | ||
M v4/adw/adw-bottom-sheet.go +0 -18
| @@ -137,7 +137,6 @@ var xBottomSheetGetAlign func(uintptr) float32 | |||
| 137 | 137 | func (x *BottomSheet) GetAlign() float32 { | |
| 138 | 138 | ||
| 139 | 139 | cret := xBottomSheetGetAlign(x.GoPointer()) | |
| 140 | - | ||
| 141 | 140 | return cret | |
| 142 | 141 | } | |
| 143 | 142 | ||
| @@ -167,7 +166,6 @@ var xBottomSheetGetBottomBarHeight func(uintptr) int | |||
| 167 | 166 | func (x *BottomSheet) GetBottomBarHeight() int { | |
| 168 | 167 | ||
| 169 | 168 | cret := xBottomSheetGetBottomBarHeight(x.GoPointer()) | |
| 170 | - | ||
| 171 | 169 | return cret | |
| 172 | 170 | } | |
| 173 | 171 | ||
| @@ -177,7 +175,6 @@ var xBottomSheetGetCanClose func(uintptr) bool | |||
| 177 | 175 | func (x *BottomSheet) GetCanClose() bool { | |
| 178 | 176 | ||
| 179 | 177 | cret := xBottomSheetGetCanClose(x.GoPointer()) | |
| 180 | - | ||
| 181 | 178 | return cret | |
| 182 | 179 | } | |
| 183 | 180 | ||
| @@ -187,7 +184,6 @@ var xBottomSheetGetCanOpen func(uintptr) bool | |||
| 187 | 184 | func (x *BottomSheet) GetCanOpen() bool { | |
| 188 | 185 | ||
| 189 | 186 | cret := xBottomSheetGetCanOpen(x.GoPointer()) | |
| 190 | - | ||
| 191 | 187 | return cret | |
| 192 | 188 | } | |
| 193 | 189 | ||
| @@ -214,7 +210,6 @@ var xBottomSheetGetFullWidth func(uintptr) bool | |||
| 214 | 210 | func (x *BottomSheet) GetFullWidth() bool { | |
| 215 | 211 | ||
| 216 | 212 | cret := xBottomSheetGetFullWidth(x.GoPointer()) | |
| 217 | - | ||
| 218 | 213 | return cret | |
| 219 | 214 | } | |
| 220 | 215 | ||
| @@ -224,7 +219,6 @@ var xBottomSheetGetModal func(uintptr) bool | |||
| 224 | 219 | func (x *BottomSheet) GetModal() bool { | |
| 225 | 220 | ||
| 226 | 221 | cret := xBottomSheetGetModal(x.GoPointer()) | |
| 227 | - | ||
| 228 | 222 | return cret | |
| 229 | 223 | } | |
| 230 | 224 | ||
| @@ -234,7 +228,6 @@ var xBottomSheetGetOpen func(uintptr) bool | |||
| 234 | 228 | func (x *BottomSheet) GetOpen() bool { | |
| 235 | 229 | ||
| 236 | 230 | cret := xBottomSheetGetOpen(x.GoPointer()) | |
| 237 | - | ||
| 238 | 231 | return cret | |
| 239 | 232 | } | |
| 240 | 233 | ||
| @@ -244,7 +237,6 @@ var xBottomSheetGetRevealBottomBar func(uintptr) bool | |||
| 244 | 237 | func (x *BottomSheet) GetRevealBottomBar() bool { | |
| 245 | 238 | ||
| 246 | 239 | cret := xBottomSheetGetRevealBottomBar(x.GoPointer()) | |
| 247 | - | ||
| 248 | 240 | return cret | |
| 249 | 241 | } | |
| 250 | 242 | ||
| @@ -273,7 +265,6 @@ var xBottomSheetGetSheetHeight func(uintptr) int | |||
| 273 | 265 | func (x *BottomSheet) GetSheetHeight() int { | |
| 274 | 266 | ||
| 275 | 267 | cret := xBottomSheetGetSheetHeight(x.GoPointer()) | |
| 276 | - | ||
| 277 | 268 | return cret | |
| 278 | 269 | } | |
| 279 | 270 | ||
| @@ -283,7 +274,6 @@ var xBottomSheetGetShowDragHandle func(uintptr) bool | |||
| 283 | 274 | func (x *BottomSheet) GetShowDragHandle() bool { | |
| 284 | 275 | ||
| 285 | 276 | cret := xBottomSheetGetShowDragHandle(x.GoPointer()) | |
| 286 | - | ||
| 287 | 277 | return cret | |
| 288 | 278 | } | |
| 289 | 279 | ||
| @@ -704,7 +694,6 @@ func (x *BottomSheet) ConnectCloseAttempt(cb *func(BottomSheet)) uint { | |||
| 704 | 694 | func (x *BottomSheet) GetCancelProgress() float64 { | |
| 705 | 695 | ||
| 706 | 696 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 707 | - | ||
| 708 | 697 | return cret | |
| 709 | 698 | } | |
| 710 | 699 | ||
| @@ -714,7 +703,6 @@ func (x *BottomSheet) GetCancelProgress() float64 { | |||
| 714 | 703 | func (x *BottomSheet) GetDistance() float64 { | |
| 715 | 704 | ||
| 716 | 705 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 717 | - | ||
| 718 | 706 | return cret | |
| 719 | 707 | } | |
| 720 | 708 | ||
| @@ -722,7 +710,6 @@ func (x *BottomSheet) GetDistance() float64 { | |||
| 722 | 710 | func (x *BottomSheet) GetProgress() float64 { | |
| 723 | 711 | ||
| 724 | 712 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 725 | - | ||
| 726 | 713 | return cret | |
| 727 | 714 | } | |
| 728 | 715 | ||
| @@ -733,7 +720,6 @@ func (x *BottomSheet) GetProgress() float64 { | |||
| 733 | 720 | func (x *BottomSheet) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 734 | 721 | ||
| 735 | 722 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 736 | - | ||
| 737 | 723 | return cret | |
| 738 | 724 | } | |
| 739 | 725 | ||
| @@ -787,7 +773,6 @@ func (x *BottomSheet) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 787 | 773 | func (x *BottomSheet) GetAccessibleRole() gtk.AccessibleRole { | |
| 788 | 774 | ||
| 789 | 775 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 790 | - | ||
| 791 | 776 | return cret | |
| 792 | 777 | } | |
| 793 | 778 | ||
| @@ -813,7 +798,6 @@ func (x *BottomSheet) GetAtContext() *gtk.ATContext { | |||
| 813 | 798 | func (x *BottomSheet) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 814 | 799 | ||
| 815 | 800 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 816 | - | ||
| 817 | 801 | return cret | |
| 818 | 802 | } | |
| 819 | 803 | ||
| @@ -853,7 +837,6 @@ func (x *BottomSheet) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 853 | 837 | func (x *BottomSheet) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 854 | 838 | ||
| 855 | 839 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 856 | - | ||
| 857 | 840 | return cret | |
| 858 | 841 | } | |
| 859 | 842 | ||
| @@ -1030,7 +1013,6 @@ func (x *BottomSheet) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 1030 | 1013 | func (x *BottomSheet) GetBuildableId() string { | |
| 1031 | 1014 | ||
| 1032 | 1015 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1033 | - | ||
| 1034 | 1016 | return cret | |
| 1035 | 1017 | } | |
| 1036 | 1018 | ||
M v4/adw/adw-breakpoint-bin.go +0 -4
| @@ -281,7 +281,6 @@ func (x *BreakpointBin) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 281 | 281 | func (x *BreakpointBin) GetAccessibleRole() gtk.AccessibleRole { | |
| 282 | 282 | ||
| 283 | 283 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 284 | - | ||
| 285 | 284 | return cret | |
| 286 | 285 | } | |
| 287 | 286 | ||
| @@ -307,7 +306,6 @@ func (x *BreakpointBin) GetAtContext() *gtk.ATContext { | |||
| 307 | 306 | func (x *BreakpointBin) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 308 | 307 | ||
| 309 | 308 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 310 | - | ||
| 311 | 309 | return cret | |
| 312 | 310 | } | |
| 313 | 311 | ||
| @@ -347,7 +345,6 @@ func (x *BreakpointBin) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 347 | 345 | func (x *BreakpointBin) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 348 | 346 | ||
| 349 | 347 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 350 | - | ||
| 351 | 348 | return cret | |
| 352 | 349 | } | |
| 353 | 350 | ||
| @@ -524,7 +521,6 @@ func (x *BreakpointBin) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessi | |||
| 524 | 521 | func (x *BreakpointBin) GetBuildableId() string { | |
| 525 | 522 | ||
| 526 | 523 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 527 | - | ||
| 528 | 524 | return cret | |
| 529 | 525 | } | |
| 530 | 526 | ||
M v4/adw/adw-breakpoint.go +0 -9
| @@ -45,7 +45,6 @@ var xNewBreakpointConditionAnd func(*BreakpointCondition, *BreakpointCondition) | |||
| 45 | 45 | func NewBreakpointConditionAnd(Condition1Var *BreakpointCondition, Condition2Var *BreakpointCondition) *BreakpointCondition { | |
| 46 | 46 | ||
| 47 | 47 | cret := xNewBreakpointConditionAnd(Condition1Var, Condition2Var) | |
| 48 | - | ||
| 49 | 48 | return cret | |
| 50 | 49 | } | |
| 51 | 50 | ||
| @@ -55,7 +54,6 @@ var xNewBreakpointConditionLength func(BreakpointConditionLengthType, float64, L | |||
| 55 | 54 | func NewBreakpointConditionLength(TypeVar BreakpointConditionLengthType, ValueVar float64, UnitVar LengthUnit) *BreakpointCondition { | |
| 56 | 55 | ||
| 57 | 56 | cret := xNewBreakpointConditionLength(TypeVar, ValueVar, UnitVar) | |
| 58 | - | ||
| 59 | 57 | return cret | |
| 60 | 58 | } | |
| 61 | 59 | ||
| @@ -66,7 +64,6 @@ var xNewBreakpointConditionOr func(*BreakpointCondition, *BreakpointCondition) * | |||
| 66 | 64 | func NewBreakpointConditionOr(Condition1Var *BreakpointCondition, Condition2Var *BreakpointCondition) *BreakpointCondition { | |
| 67 | 65 | ||
| 68 | 66 | cret := xNewBreakpointConditionOr(Condition1Var, Condition2Var) | |
| 69 | - | ||
| 70 | 67 | return cret | |
| 71 | 68 | } | |
| 72 | 69 | ||
| @@ -78,7 +75,6 @@ var xNewBreakpointConditionRatio func(BreakpointConditionRatioType, int, int) *B | |||
| 78 | 75 | func NewBreakpointConditionRatio(TypeVar BreakpointConditionRatioType, WidthVar int, HeightVar int) *BreakpointCondition { | |
| 79 | 76 | ||
| 80 | 77 | cret := xNewBreakpointConditionRatio(TypeVar, WidthVar, HeightVar) | |
| 81 | - | ||
| 82 | 78 | return cret | |
| 83 | 79 | } | |
| 84 | 80 | ||
| @@ -88,7 +84,6 @@ var xBreakpointConditionCopy func(uintptr) *BreakpointCondition | |||
| 88 | 84 | func (x *BreakpointCondition) Copy() *BreakpointCondition { | |
| 89 | 85 | ||
| 90 | 86 | cret := xBreakpointConditionCopy(x.GoPointer()) | |
| 91 | - | ||
| 92 | 87 | return cret | |
| 93 | 88 | } | |
| 94 | 89 | ||
| @@ -109,7 +104,6 @@ var xBreakpointConditionToString func(uintptr) string | |||
| 109 | 104 | func (x *BreakpointCondition) ToString() string { | |
| 110 | 105 | ||
| 111 | 106 | cret := xBreakpointConditionToString(x.GoPointer()) | |
| 112 | - | ||
| 113 | 107 | return cret | |
| 114 | 108 | } | |
| 115 | 109 | ||
| @@ -225,7 +219,6 @@ var xBreakpointConditionParse func(string) *BreakpointCondition | |||
| 225 | 219 | func BreakpointConditionParse(StrVar string) *BreakpointCondition { | |
| 226 | 220 | ||
| 227 | 221 | cret := xBreakpointConditionParse(StrVar) | |
| 228 | - | ||
| 229 | 222 | return cret | |
| 230 | 223 | } | |
| 231 | 224 | ||
| @@ -415,7 +408,6 @@ var xBreakpointGetCondition func(uintptr) *BreakpointCondition | |||
| 415 | 408 | func (x *Breakpoint) GetCondition() *BreakpointCondition { | |
| 416 | 409 | ||
| 417 | 410 | cret := xBreakpointGetCondition(x.GoPointer()) | |
| 418 | - | ||
| 419 | 411 | return cret | |
| 420 | 412 | } | |
| 421 | 413 | ||
| @@ -515,7 +507,6 @@ func (x *Breakpoint) ConnectUnapply(cb *func(Breakpoint)) uint { | |||
| 515 | 507 | func (x *Breakpoint) GetBuildableId() string { | |
| 516 | 508 | ||
| 517 | 509 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 518 | - | ||
| 519 | 510 | return cret | |
| 520 | 511 | } | |
| 521 | 512 | ||
M v4/adw/adw-button-content.go +0 -8
| @@ -114,7 +114,6 @@ var xButtonContentGetCanShrink func(uintptr) bool | |||
| 114 | 114 | func (x *ButtonContent) GetCanShrink() bool { | |
| 115 | 115 | ||
| 116 | 116 | cret := xButtonContentGetCanShrink(x.GoPointer()) | |
| 117 | - | ||
| 118 | 117 | return cret | |
| 119 | 118 | } | |
| 120 | 119 | ||
| @@ -124,7 +123,6 @@ var xButtonContentGetIconName func(uintptr) string | |||
| 124 | 123 | func (x *ButtonContent) GetIconName() string { | |
| 125 | 124 | ||
| 126 | 125 | cret := xButtonContentGetIconName(x.GoPointer()) | |
| 127 | - | ||
| 128 | 126 | return cret | |
| 129 | 127 | } | |
| 130 | 128 | ||
| @@ -134,7 +132,6 @@ var xButtonContentGetLabel func(uintptr) string | |||
| 134 | 132 | func (x *ButtonContent) GetLabel() string { | |
| 135 | 133 | ||
| 136 | 134 | cret := xButtonContentGetLabel(x.GoPointer()) | |
| 137 | - | ||
| 138 | 135 | return cret | |
| 139 | 136 | } | |
| 140 | 137 | ||
| @@ -144,7 +141,6 @@ var xButtonContentGetUseUnderline func(uintptr) bool | |||
| 144 | 141 | func (x *ButtonContent) GetUseUnderline() bool { | |
| 145 | 142 | ||
| 146 | 143 | cret := xButtonContentGetUseUnderline(x.GoPointer()) | |
| 147 | - | ||
| 148 | 144 | return cret | |
| 149 | 145 | } | |
| 150 | 146 | ||
| @@ -328,7 +324,6 @@ func (x *ButtonContent) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 328 | 324 | func (x *ButtonContent) GetAccessibleRole() gtk.AccessibleRole { | |
| 329 | 325 | ||
| 330 | 326 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 331 | - | ||
| 332 | 327 | return cret | |
| 333 | 328 | } | |
| 334 | 329 | ||
| @@ -354,7 +349,6 @@ func (x *ButtonContent) GetAtContext() *gtk.ATContext { | |||
| 354 | 349 | func (x *ButtonContent) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 355 | 350 | ||
| 356 | 351 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 357 | - | ||
| 358 | 352 | return cret | |
| 359 | 353 | } | |
| 360 | 354 | ||
| @@ -394,7 +388,6 @@ func (x *ButtonContent) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 394 | 388 | func (x *ButtonContent) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 395 | 389 | ||
| 396 | 390 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 397 | - | ||
| 398 | 391 | return cret | |
| 399 | 392 | } | |
| 400 | 393 | ||
| @@ -571,7 +564,6 @@ func (x *ButtonContent) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessi | |||
| 571 | 564 | func (x *ButtonContent) GetBuildableId() string { | |
| 572 | 565 | ||
| 573 | 566 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 574 | - | ||
| 575 | 567 | return cret | |
| 576 | 568 | } | |
| 577 | 569 | ||
M v4/adw/adw-button-row.go +6 -18
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -113,7 +112,6 @@ var xButtonRowGetEndIconName func(uintptr) string | |||
| 113 | 112 | func (x *ButtonRow) GetEndIconName() string { | |
| 114 | 113 | ||
| 115 | 114 | cret := xButtonRowGetEndIconName(x.GoPointer()) | |
| 116 | - | ||
| 117 | 115 | return cret | |
| 118 | 116 | } | |
| 119 | 117 | ||
| @@ -123,7 +121,6 @@ var xButtonRowGetStartIconName func(uintptr) string | |||
| 123 | 121 | func (x *ButtonRow) GetStartIconName() string { | |
| 124 | 122 | ||
| 125 | 123 | cret := xButtonRowGetStartIconName(x.GoPointer()) | |
| 126 | - | ||
| 127 | 124 | return cret | |
| 128 | 125 | } | |
| 129 | 126 | ||
| @@ -132,12 +129,11 @@ var xButtonRowSetEndIconName func(uintptr, uintptr) | |||
| 132 | 129 | // Sets the end icon name for @self. | |
| 133 | 130 | func (x *ButtonRow) SetEndIconName(IconNameVar *string) { | |
| 134 | 131 | ||
| 135 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 132 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 133 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 136 | 134 | ||
| 137 | 135 | xButtonRowSetEndIconName(x.GoPointer(), IconNameVarPtr) | |
| 138 | 136 | ||
| 139 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 140 | - | ||
| 141 | 137 | } | |
| 142 | 138 | ||
| 143 | 139 | var xButtonRowSetStartIconName func(uintptr, uintptr) | |
| @@ -145,12 +141,11 @@ var xButtonRowSetStartIconName func(uintptr, uintptr) | |||
| 145 | 141 | // Sets the start icon name for @self. | |
| 146 | 142 | func (x *ButtonRow) SetStartIconName(IconNameVar *string) { | |
| 147 | 143 | ||
| 148 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 144 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 145 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 149 | 146 | ||
| 150 | 147 | xButtonRowSetStartIconName(x.GoPointer(), IconNameVarPtr) | |
| 151 | 148 | ||
| 152 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 153 | - | ||
| 154 | 149 | } | |
| 155 | 150 | ||
| 156 | 151 | func (c *ButtonRow) GoPointer() uintptr { | |
| @@ -257,7 +252,6 @@ func (x *ButtonRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 257 | 252 | func (x *ButtonRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 258 | 253 | ||
| 259 | 254 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 260 | - | ||
| 261 | 255 | return cret | |
| 262 | 256 | } | |
| 263 | 257 | ||
| @@ -283,7 +277,6 @@ func (x *ButtonRow) GetAtContext() *gtk.ATContext { | |||
| 283 | 277 | func (x *ButtonRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 284 | 278 | ||
| 285 | 279 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 286 | - | ||
| 287 | 280 | return cret | |
| 288 | 281 | } | |
| 289 | 282 | ||
| @@ -323,7 +316,6 @@ func (x *ButtonRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 323 | 316 | func (x *ButtonRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 324 | 317 | ||
| 325 | 318 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 326 | - | ||
| 327 | 319 | return cret | |
| 328 | 320 | } | |
| 329 | 321 | ||
| @@ -497,7 +489,6 @@ func (x *ButtonRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 497 | 489 | func (x *ButtonRow) GetActionName() string { | |
| 498 | 490 | ||
| 499 | 491 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 500 | - | ||
| 501 | 492 | return cret | |
| 502 | 493 | } | |
| 503 | 494 | ||
| @@ -505,7 +496,6 @@ func (x *ButtonRow) GetActionName() string { | |||
| 505 | 496 | func (x *ButtonRow) GetActionTargetValue() *glib.Variant { | |
| 506 | 497 | ||
| 507 | 498 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 508 | - | ||
| 509 | 499 | return cret | |
| 510 | 500 | } | |
| 511 | 501 | ||
| @@ -524,12 +514,11 @@ func (x *ButtonRow) GetActionTargetValue() *glib.Variant { | |||
| 524 | 514 | // associated with the window. | |
| 525 | 515 | func (x *ButtonRow) SetActionName(ActionNameVar *string) { | |
| 526 | 516 | ||
| 527 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 517 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 518 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 528 | 519 | ||
| 529 | 520 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 530 | 521 | ||
| 531 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 532 | - | ||
| 533 | 522 | } | |
| 534 | 523 | ||
| 535 | 524 | // Sets the target of an actionable widget. | |
| @@ -589,7 +578,6 @@ func (x *ButtonRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 589 | 578 | func (x *ButtonRow) GetBuildableId() string { | |
| 590 | 579 | ||
| 591 | 580 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 592 | - | ||
| 593 | 581 | return cret | |
| 594 | 582 | } | |
| 595 | 583 | ||
M v4/adw/adw-carousel-indicator-dots.go +0 -5
| @@ -147,7 +147,6 @@ func (x *CarouselIndicatorDots) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 147 | 147 | func (x *CarouselIndicatorDots) GetAccessibleRole() gtk.AccessibleRole { | |
| 148 | 148 | ||
| 149 | 149 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 150 | - | ||
| 151 | 150 | return cret | |
| 152 | 151 | } | |
| 153 | 152 | ||
| @@ -173,7 +172,6 @@ func (x *CarouselIndicatorDots) GetAtContext() *gtk.ATContext { | |||
| 173 | 172 | func (x *CarouselIndicatorDots) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 174 | 173 | ||
| 175 | 174 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 176 | - | ||
| 177 | 175 | return cret | |
| 178 | 176 | } | |
| 179 | 177 | ||
| @@ -213,7 +211,6 @@ func (x *CarouselIndicatorDots) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 213 | 211 | func (x *CarouselIndicatorDots) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 214 | 212 | ||
| 215 | 213 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 216 | - | ||
| 217 | 214 | return cret | |
| 218 | 215 | } | |
| 219 | 216 | ||
| @@ -390,7 +387,6 @@ func (x *CarouselIndicatorDots) UpdateStateValue(NStatesVar int, StatesVar []gtk | |||
| 390 | 387 | func (x *CarouselIndicatorDots) GetBuildableId() string { | |
| 391 | 388 | ||
| 392 | 389 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 393 | - | ||
| 394 | 390 | return cret | |
| 395 | 391 | } | |
| 396 | 392 | ||
| @@ -398,7 +394,6 @@ func (x *CarouselIndicatorDots) GetBuildableId() string { | |||
| 398 | 394 | func (x *CarouselIndicatorDots) GetOrientation() gtk.Orientation { | |
| 399 | 395 | ||
| 400 | 396 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 401 | - | ||
| 402 | 397 | return cret | |
| 403 | 398 | } | |
| 404 | 399 | ||
M v4/adw/adw-carousel-indicator-lines.go +0 -5
| @@ -146,7 +146,6 @@ func (x *CarouselIndicatorLines) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 146 | 146 | func (x *CarouselIndicatorLines) GetAccessibleRole() gtk.AccessibleRole { | |
| 147 | 147 | ||
| 148 | 148 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 149 | - | ||
| 150 | 149 | return cret | |
| 151 | 150 | } | |
| 152 | 151 | ||
| @@ -172,7 +171,6 @@ func (x *CarouselIndicatorLines) GetAtContext() *gtk.ATContext { | |||
| 172 | 171 | func (x *CarouselIndicatorLines) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 173 | 172 | ||
| 174 | 173 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 175 | - | ||
| 176 | 174 | return cret | |
| 177 | 175 | } | |
| 178 | 176 | ||
| @@ -212,7 +210,6 @@ func (x *CarouselIndicatorLines) GetNextAccessibleSibling() *gtk.AccessibleBase | |||
| 212 | 210 | func (x *CarouselIndicatorLines) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 213 | 211 | ||
| 214 | 212 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 215 | - | ||
| 216 | 213 | return cret | |
| 217 | 214 | } | |
| 218 | 215 | ||
| @@ -389,7 +386,6 @@ func (x *CarouselIndicatorLines) UpdateStateValue(NStatesVar int, StatesVar []gt | |||
| 389 | 386 | func (x *CarouselIndicatorLines) GetBuildableId() string { | |
| 390 | 387 | ||
| 391 | 388 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 392 | - | ||
| 393 | 389 | return cret | |
| 394 | 390 | } | |
| 395 | 391 | ||
| @@ -397,7 +393,6 @@ func (x *CarouselIndicatorLines) GetBuildableId() string { | |||
| 397 | 393 | func (x *CarouselIndicatorLines) GetOrientation() gtk.Orientation { | |
| 398 | 394 | ||
| 399 | 395 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 400 | - | ||
| 401 | 396 | return cret | |
| 402 | 397 | } | |
| 403 | 398 | ||
M v4/adw/adw-carousel.go +0 -18
| @@ -90,7 +90,6 @@ var xCarouselGetAllowLongSwipes func(uintptr) bool | |||
| 90 | 90 | func (x *Carousel) GetAllowLongSwipes() bool { | |
| 91 | 91 | ||
| 92 | 92 | cret := xCarouselGetAllowLongSwipes(x.GoPointer()) | |
| 93 | - | ||
| 94 | 93 | return cret | |
| 95 | 94 | } | |
| 96 | 95 | ||
| @@ -100,7 +99,6 @@ var xCarouselGetAllowMouseDrag func(uintptr) bool | |||
| 100 | 99 | func (x *Carousel) GetAllowMouseDrag() bool { | |
| 101 | 100 | ||
| 102 | 101 | cret := xCarouselGetAllowMouseDrag(x.GoPointer()) | |
| 103 | - | ||
| 104 | 102 | return cret | |
| 105 | 103 | } | |
| 106 | 104 | ||
| @@ -110,7 +108,6 @@ var xCarouselGetAllowScrollWheel func(uintptr) bool | |||
| 110 | 108 | func (x *Carousel) GetAllowScrollWheel() bool { | |
| 111 | 109 | ||
| 112 | 110 | cret := xCarouselGetAllowScrollWheel(x.GoPointer()) | |
| 113 | - | ||
| 114 | 111 | return cret | |
| 115 | 112 | } | |
| 116 | 113 | ||
| @@ -120,7 +117,6 @@ var xCarouselGetInteractive func(uintptr) bool | |||
| 120 | 117 | func (x *Carousel) GetInteractive() bool { | |
| 121 | 118 | ||
| 122 | 119 | cret := xCarouselGetInteractive(x.GoPointer()) | |
| 123 | - | ||
| 124 | 120 | return cret | |
| 125 | 121 | } | |
| 126 | 122 | ||
| @@ -130,7 +126,6 @@ var xCarouselGetNPages func(uintptr) uint | |||
| 130 | 126 | func (x *Carousel) GetNPages() uint { | |
| 131 | 127 | ||
| 132 | 128 | cret := xCarouselGetNPages(x.GoPointer()) | |
| 133 | - | ||
| 134 | 129 | return cret | |
| 135 | 130 | } | |
| 136 | 131 | ||
| @@ -159,7 +154,6 @@ var xCarouselGetPosition func(uintptr) float64 | |||
| 159 | 154 | func (x *Carousel) GetPosition() float64 { | |
| 160 | 155 | ||
| 161 | 156 | cret := xCarouselGetPosition(x.GoPointer()) | |
| 162 | - | ||
| 163 | 157 | return cret | |
| 164 | 158 | } | |
| 165 | 159 | ||
| @@ -169,7 +163,6 @@ var xCarouselGetRevealDuration func(uintptr) uint | |||
| 169 | 163 | func (x *Carousel) GetRevealDuration() uint { | |
| 170 | 164 | ||
| 171 | 165 | cret := xCarouselGetRevealDuration(x.GoPointer()) | |
| 172 | - | ||
| 173 | 166 | return cret | |
| 174 | 167 | } | |
| 175 | 168 | ||
| @@ -179,7 +172,6 @@ var xCarouselGetScrollParams func(uintptr) *SpringParams | |||
| 179 | 172 | func (x *Carousel) GetScrollParams() *SpringParams { | |
| 180 | 173 | ||
| 181 | 174 | cret := xCarouselGetScrollParams(x.GoPointer()) | |
| 182 | - | ||
| 183 | 175 | return cret | |
| 184 | 176 | } | |
| 185 | 177 | ||
| @@ -189,7 +181,6 @@ var xCarouselGetSpacing func(uintptr) uint | |||
| 189 | 181 | func (x *Carousel) GetSpacing() uint { | |
| 190 | 182 | ||
| 191 | 183 | cret := xCarouselGetSpacing(x.GoPointer()) | |
| 192 | - | ||
| 193 | 184 | return cret | |
| 194 | 185 | } | |
| 195 | 186 | ||
| @@ -544,7 +535,6 @@ func (x *Carousel) ConnectPageChanged(cb *func(Carousel, uint)) uint { | |||
| 544 | 535 | func (x *Carousel) GetCancelProgress() float64 { | |
| 545 | 536 | ||
| 546 | 537 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 547 | - | ||
| 548 | 538 | return cret | |
| 549 | 539 | } | |
| 550 | 540 | ||
| @@ -554,7 +544,6 @@ func (x *Carousel) GetCancelProgress() float64 { | |||
| 554 | 544 | func (x *Carousel) GetDistance() float64 { | |
| 555 | 545 | ||
| 556 | 546 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 557 | - | ||
| 558 | 547 | return cret | |
| 559 | 548 | } | |
| 560 | 549 | ||
| @@ -562,7 +551,6 @@ func (x *Carousel) GetDistance() float64 { | |||
| 562 | 551 | func (x *Carousel) GetProgress() float64 { | |
| 563 | 552 | ||
| 564 | 553 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 565 | - | ||
| 566 | 554 | return cret | |
| 567 | 555 | } | |
| 568 | 556 | ||
| @@ -573,7 +561,6 @@ func (x *Carousel) GetProgress() float64 { | |||
| 573 | 561 | func (x *Carousel) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 574 | 562 | ||
| 575 | 563 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 576 | - | ||
| 577 | 564 | return cret | |
| 578 | 565 | } | |
| 579 | 566 | ||
| @@ -627,7 +614,6 @@ func (x *Carousel) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 627 | 614 | func (x *Carousel) GetAccessibleRole() gtk.AccessibleRole { | |
| 628 | 615 | ||
| 629 | 616 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 630 | - | ||
| 631 | 617 | return cret | |
| 632 | 618 | } | |
| 633 | 619 | ||
| @@ -653,7 +639,6 @@ func (x *Carousel) GetAtContext() *gtk.ATContext { | |||
| 653 | 639 | func (x *Carousel) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 654 | 640 | ||
| 655 | 641 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 656 | - | ||
| 657 | 642 | return cret | |
| 658 | 643 | } | |
| 659 | 644 | ||
| @@ -693,7 +678,6 @@ func (x *Carousel) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 693 | 678 | func (x *Carousel) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 694 | 679 | ||
| 695 | 680 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 696 | - | ||
| 697 | 681 | return cret | |
| 698 | 682 | } | |
| 699 | 683 | ||
| @@ -870,7 +854,6 @@ func (x *Carousel) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSt | |||
| 870 | 854 | func (x *Carousel) GetBuildableId() string { | |
| 871 | 855 | ||
| 872 | 856 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 873 | - | ||
| 874 | 857 | return cret | |
| 875 | 858 | } | |
| 876 | 859 | ||
| @@ -878,7 +861,6 @@ func (x *Carousel) GetBuildableId() string { | |||
| 878 | 861 | func (x *Carousel) GetOrientation() gtk.Orientation { | |
| 879 | 862 | ||
| 880 | 863 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 881 | - | ||
| 882 | 864 | return cret | |
| 883 | 865 | } | |
| 884 | 866 | ||
M v4/adw/adw-clamp-layout.go +0 -4
| @@ -87,7 +87,6 @@ var xClampLayoutGetMaximumSize func(uintptr) int | |||
| 87 | 87 | func (x *ClampLayout) GetMaximumSize() int { | |
| 88 | 88 | ||
| 89 | 89 | cret := xClampLayoutGetMaximumSize(x.GoPointer()) | |
| 90 | - | ||
| 91 | 90 | return cret | |
| 92 | 91 | } | |
| 93 | 92 | ||
| @@ -97,7 +96,6 @@ var xClampLayoutGetTighteningThreshold func(uintptr) int | |||
| 97 | 96 | func (x *ClampLayout) GetTighteningThreshold() int { | |
| 98 | 97 | ||
| 99 | 98 | cret := xClampLayoutGetTighteningThreshold(x.GoPointer()) | |
| 100 | - | ||
| 101 | 99 | return cret | |
| 102 | 100 | } | |
| 103 | 101 | ||
| @@ -107,7 +105,6 @@ var xClampLayoutGetUnit func(uintptr) LengthUnit | |||
| 107 | 105 | func (x *ClampLayout) GetUnit() LengthUnit { | |
| 108 | 106 | ||
| 109 | 107 | cret := xClampLayoutGetUnit(x.GoPointer()) | |
| 110 | - | ||
| 111 | 108 | return cret | |
| 112 | 109 | } | |
| 113 | 110 | ||
| @@ -236,7 +233,6 @@ func (x *ClampLayout) GetPropertyTighteningThreshold() int { | |||
| 236 | 233 | func (x *ClampLayout) GetOrientation() gtk.Orientation { | |
| 237 | 234 | ||
| 238 | 235 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 239 | - | ||
| 240 | 236 | return cret | |
| 241 | 237 | } | |
| 242 | 238 | ||
M v4/adw/adw-clamp-scrollable.go +0 -11
| @@ -87,7 +87,6 @@ var xClampScrollableGetMaximumSize func(uintptr) int | |||
| 87 | 87 | func (x *ClampScrollable) GetMaximumSize() int { | |
| 88 | 88 | ||
| 89 | 89 | cret := xClampScrollableGetMaximumSize(x.GoPointer()) | |
| 90 | - | ||
| 91 | 90 | return cret | |
| 92 | 91 | } | |
| 93 | 92 | ||
| @@ -97,7 +96,6 @@ var xClampScrollableGetTighteningThreshold func(uintptr) int | |||
| 97 | 96 | func (x *ClampScrollable) GetTighteningThreshold() int { | |
| 98 | 97 | ||
| 99 | 98 | cret := xClampScrollableGetTighteningThreshold(x.GoPointer()) | |
| 100 | - | ||
| 101 | 99 | return cret | |
| 102 | 100 | } | |
| 103 | 101 | ||
| @@ -107,7 +105,6 @@ var xClampScrollableGetUnit func(uintptr) LengthUnit | |||
| 107 | 105 | func (x *ClampScrollable) GetUnit() LengthUnit { | |
| 108 | 106 | ||
| 109 | 107 | cret := xClampScrollableGetUnit(x.GoPointer()) | |
| 110 | - | ||
| 111 | 108 | return cret | |
| 112 | 109 | } | |
| 113 | 110 | ||
| @@ -274,7 +271,6 @@ func (x *ClampScrollable) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 274 | 271 | func (x *ClampScrollable) GetAccessibleRole() gtk.AccessibleRole { | |
| 275 | 272 | ||
| 276 | 273 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 277 | - | ||
| 278 | 274 | return cret | |
| 279 | 275 | } | |
| 280 | 276 | ||
| @@ -300,7 +296,6 @@ func (x *ClampScrollable) GetAtContext() *gtk.ATContext { | |||
| 300 | 296 | func (x *ClampScrollable) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 301 | 297 | ||
| 302 | 298 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 303 | - | ||
| 304 | 299 | return cret | |
| 305 | 300 | } | |
| 306 | 301 | ||
| @@ -340,7 +335,6 @@ func (x *ClampScrollable) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 340 | 335 | func (x *ClampScrollable) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 341 | 336 | ||
| 342 | 337 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 343 | - | ||
| 344 | 338 | return cret | |
| 345 | 339 | } | |
| 346 | 340 | ||
| @@ -517,7 +511,6 @@ func (x *ClampScrollable) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acces | |||
| 517 | 511 | func (x *ClampScrollable) GetBuildableId() string { | |
| 518 | 512 | ||
| 519 | 513 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 520 | - | ||
| 521 | 514 | return cret | |
| 522 | 515 | } | |
| 523 | 516 | ||
| @@ -525,7 +518,6 @@ func (x *ClampScrollable) GetBuildableId() string { | |||
| 525 | 518 | func (x *ClampScrollable) GetOrientation() gtk.Orientation { | |
| 526 | 519 | ||
| 527 | 520 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 528 | - | ||
| 529 | 521 | return cret | |
| 530 | 522 | } | |
| 531 | 523 | ||
| @@ -545,7 +537,6 @@ func (x *ClampScrollable) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 545 | 537 | func (x *ClampScrollable) GetBorder(BorderVar *gtk.Border) bool { | |
| 546 | 538 | ||
| 547 | 539 | cret := gtk.XGtkScrollableGetBorder(x.GoPointer(), BorderVar) | |
| 548 | - | ||
| 549 | 540 | return cret | |
| 550 | 541 | } | |
| 551 | 542 | ||
| @@ -568,7 +559,6 @@ func (x *ClampScrollable) GetHadjustment() *gtk.Adjustment { | |||
| 568 | 559 | func (x *ClampScrollable) GetHscrollPolicy() gtk.ScrollablePolicy { | |
| 569 | 560 | ||
| 570 | 561 | cret := gtk.XGtkScrollableGetHscrollPolicy(x.GoPointer()) | |
| 571 | - | ||
| 572 | 562 | return cret | |
| 573 | 563 | } | |
| 574 | 564 | ||
| @@ -591,7 +581,6 @@ func (x *ClampScrollable) GetVadjustment() *gtk.Adjustment { | |||
| 591 | 581 | func (x *ClampScrollable) GetVscrollPolicy() gtk.ScrollablePolicy { | |
| 592 | 582 | ||
| 593 | 583 | cret := gtk.XGtkScrollableGetVscrollPolicy(x.GoPointer()) | |
| 594 | - | ||
| 595 | 584 | return cret | |
| 596 | 585 | } | |
| 597 | 586 | ||
M v4/adw/adw-clamp.go +0 -8
| @@ -109,7 +109,6 @@ var xClampGetMaximumSize func(uintptr) int | |||
| 109 | 109 | func (x *Clamp) GetMaximumSize() int { | |
| 110 | 110 | ||
| 111 | 111 | cret := xClampGetMaximumSize(x.GoPointer()) | |
| 112 | - | ||
| 113 | 112 | return cret | |
| 114 | 113 | } | |
| 115 | 114 | ||
| @@ -119,7 +118,6 @@ var xClampGetTighteningThreshold func(uintptr) int | |||
| 119 | 118 | func (x *Clamp) GetTighteningThreshold() int { | |
| 120 | 119 | ||
| 121 | 120 | cret := xClampGetTighteningThreshold(x.GoPointer()) | |
| 122 | - | ||
| 123 | 121 | return cret | |
| 124 | 122 | } | |
| 125 | 123 | ||
| @@ -129,7 +127,6 @@ var xClampGetUnit func(uintptr) LengthUnit | |||
| 129 | 127 | func (x *Clamp) GetUnit() LengthUnit { | |
| 130 | 128 | ||
| 131 | 129 | cret := xClampGetUnit(x.GoPointer()) | |
| 132 | - | ||
| 133 | 130 | return cret | |
| 134 | 131 | } | |
| 135 | 132 | ||
| @@ -296,7 +293,6 @@ func (x *Clamp) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 296 | 293 | func (x *Clamp) GetAccessibleRole() gtk.AccessibleRole { | |
| 297 | 294 | ||
| 298 | 295 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 299 | - | ||
| 300 | 296 | return cret | |
| 301 | 297 | } | |
| 302 | 298 | ||
| @@ -322,7 +318,6 @@ func (x *Clamp) GetAtContext() *gtk.ATContext { | |||
| 322 | 318 | func (x *Clamp) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 323 | 319 | ||
| 324 | 320 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 325 | - | ||
| 326 | 321 | return cret | |
| 327 | 322 | } | |
| 328 | 323 | ||
| @@ -362,7 +357,6 @@ func (x *Clamp) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 362 | 357 | func (x *Clamp) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 363 | 358 | ||
| 364 | 359 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 365 | - | ||
| 366 | 360 | return cret | |
| 367 | 361 | } | |
| 368 | 362 | ||
| @@ -539,7 +533,6 @@ func (x *Clamp) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState | |||
| 539 | 533 | func (x *Clamp) GetBuildableId() string { | |
| 540 | 534 | ||
| 541 | 535 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 542 | - | ||
| 543 | 536 | return cret | |
| 544 | 537 | } | |
| 545 | 538 | ||
| @@ -547,7 +540,6 @@ func (x *Clamp) GetBuildableId() string { | |||
| 547 | 540 | func (x *Clamp) GetOrientation() gtk.Orientation { | |
| 548 | 541 | ||
| 549 | 542 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 550 | - | ||
| 551 | 543 | return cret | |
| 552 | 544 | } | |
| 553 | 545 | ||
M v4/adw/adw-combo-row.go +2 -14
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -122,7 +121,6 @@ var xComboRowGetEnableSearch func(uintptr) bool | |||
| 122 | 121 | func (x *ComboRow) GetEnableSearch() bool { | |
| 123 | 122 | ||
| 124 | 123 | cret := xComboRowGetEnableSearch(x.GoPointer()) | |
| 125 | - | ||
| 126 | 124 | return cret | |
| 127 | 125 | } | |
| 128 | 126 | ||
| @@ -217,7 +215,6 @@ var xComboRowGetSearchMatchMode func(uintptr) gtk.StringFilterMatchMode | |||
| 217 | 215 | func (x *ComboRow) GetSearchMatchMode() gtk.StringFilterMatchMode { | |
| 218 | 216 | ||
| 219 | 217 | cret := xComboRowGetSearchMatchMode(x.GoPointer()) | |
| 220 | - | ||
| 221 | 218 | return cret | |
| 222 | 219 | } | |
| 223 | 220 | ||
| @@ -227,7 +224,6 @@ var xComboRowGetSelected func(uintptr) uint | |||
| 227 | 224 | func (x *ComboRow) GetSelected() uint { | |
| 228 | 225 | ||
| 229 | 226 | cret := xComboRowGetSelected(x.GoPointer()) | |
| 230 | - | ||
| 231 | 227 | return cret | |
| 232 | 228 | } | |
| 233 | 229 | ||
| @@ -254,7 +250,6 @@ var xComboRowGetUseSubtitle func(uintptr) bool | |||
| 254 | 250 | func (x *ComboRow) GetUseSubtitle() bool { | |
| 255 | 251 | ||
| 256 | 252 | cret := xComboRowGetUseSubtitle(x.GoPointer()) | |
| 257 | - | ||
| 258 | 253 | return cret | |
| 259 | 254 | } | |
| 260 | 255 | ||
| @@ -492,7 +487,6 @@ func (x *ComboRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 492 | 487 | func (x *ComboRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 493 | 488 | ||
| 494 | 489 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 495 | - | ||
| 496 | 490 | return cret | |
| 497 | 491 | } | |
| 498 | 492 | ||
| @@ -518,7 +512,6 @@ func (x *ComboRow) GetAtContext() *gtk.ATContext { | |||
| 518 | 512 | func (x *ComboRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 519 | 513 | ||
| 520 | 514 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 521 | - | ||
| 522 | 515 | return cret | |
| 523 | 516 | } | |
| 524 | 517 | ||
| @@ -558,7 +551,6 @@ func (x *ComboRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 558 | 551 | func (x *ComboRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 559 | 552 | ||
| 560 | 553 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 561 | - | ||
| 562 | 554 | return cret | |
| 563 | 555 | } | |
| 564 | 556 | ||
| @@ -732,7 +724,6 @@ func (x *ComboRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSt | |||
| 732 | 724 | func (x *ComboRow) GetActionName() string { | |
| 733 | 725 | ||
| 734 | 726 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 735 | - | ||
| 736 | 727 | return cret | |
| 737 | 728 | } | |
| 738 | 729 | ||
| @@ -740,7 +731,6 @@ func (x *ComboRow) GetActionName() string { | |||
| 740 | 731 | func (x *ComboRow) GetActionTargetValue() *glib.Variant { | |
| 741 | 732 | ||
| 742 | 733 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 743 | - | ||
| 744 | 734 | return cret | |
| 745 | 735 | } | |
| 746 | 736 | ||
| @@ -759,12 +749,11 @@ func (x *ComboRow) GetActionTargetValue() *glib.Variant { | |||
| 759 | 749 | // associated with the window. | |
| 760 | 750 | func (x *ComboRow) SetActionName(ActionNameVar *string) { | |
| 761 | 751 | ||
| 762 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 752 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 753 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 763 | 754 | ||
| 764 | 755 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 765 | 756 | ||
| 766 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 767 | - | ||
| 768 | 757 | } | |
| 769 | 758 | ||
| 770 | 759 | // Sets the target of an actionable widget. | |
| @@ -824,7 +813,6 @@ func (x *ComboRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 824 | 813 | func (x *ComboRow) GetBuildableId() string { | |
| 825 | 814 | ||
| 826 | 815 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 827 | - | ||
| 828 | 816 | return cret | |
| 829 | 817 | } | |
| 830 | 818 | ||
M v4/adw/adw-dialog.go +0 -11
| @@ -213,7 +213,6 @@ var xDialogClose func(uintptr) bool | |||
| 213 | 213 | func (x *Dialog) Close() bool { | |
| 214 | 214 | ||
| 215 | 215 | cret := xDialogClose(x.GoPointer()) | |
| 216 | - | ||
| 217 | 216 | return cret | |
| 218 | 217 | } | |
| 219 | 218 | ||
| @@ -235,7 +234,6 @@ var xDialogGetCanClose func(uintptr) bool | |||
| 235 | 234 | func (x *Dialog) GetCanClose() bool { | |
| 236 | 235 | ||
| 237 | 236 | cret := xDialogGetCanClose(x.GoPointer()) | |
| 238 | - | ||
| 239 | 237 | return cret | |
| 240 | 238 | } | |
| 241 | 239 | ||
| @@ -262,7 +260,6 @@ var xDialogGetContentHeight func(uintptr) int | |||
| 262 | 260 | func (x *Dialog) GetContentHeight() int { | |
| 263 | 261 | ||
| 264 | 262 | cret := xDialogGetContentHeight(x.GoPointer()) | |
| 265 | - | ||
| 266 | 263 | return cret | |
| 267 | 264 | } | |
| 268 | 265 | ||
| @@ -272,7 +269,6 @@ var xDialogGetContentWidth func(uintptr) int | |||
| 272 | 269 | func (x *Dialog) GetContentWidth() int { | |
| 273 | 270 | ||
| 274 | 271 | cret := xDialogGetContentWidth(x.GoPointer()) | |
| 275 | - | ||
| 276 | 272 | return cret | |
| 277 | 273 | } | |
| 278 | 274 | ||
| @@ -333,7 +329,6 @@ var xDialogGetFollowsContentSize func(uintptr) bool | |||
| 333 | 329 | func (x *Dialog) GetFollowsContentSize() bool { | |
| 334 | 330 | ||
| 335 | 331 | cret := xDialogGetFollowsContentSize(x.GoPointer()) | |
| 336 | - | ||
| 337 | 332 | return cret | |
| 338 | 333 | } | |
| 339 | 334 | ||
| @@ -343,7 +338,6 @@ var xDialogGetPresentationMode func(uintptr) DialogPresentationMode | |||
| 343 | 338 | func (x *Dialog) GetPresentationMode() DialogPresentationMode { | |
| 344 | 339 | ||
| 345 | 340 | cret := xDialogGetPresentationMode(x.GoPointer()) | |
| 346 | - | ||
| 347 | 341 | return cret | |
| 348 | 342 | } | |
| 349 | 343 | ||
| @@ -353,7 +347,6 @@ var xDialogGetTitle func(uintptr) string | |||
| 353 | 347 | func (x *Dialog) GetTitle() string { | |
| 354 | 348 | ||
| 355 | 349 | cret := xDialogGetTitle(x.GoPointer()) | |
| 356 | - | ||
| 357 | 350 | return cret | |
| 358 | 351 | } | |
| 359 | 352 | ||
| @@ -709,7 +702,6 @@ func (x *Dialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 709 | 702 | func (x *Dialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 710 | 703 | ||
| 711 | 704 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 712 | - | ||
| 713 | 705 | return cret | |
| 714 | 706 | } | |
| 715 | 707 | ||
| @@ -735,7 +727,6 @@ func (x *Dialog) GetAtContext() *gtk.ATContext { | |||
| 735 | 727 | func (x *Dialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 736 | 728 | ||
| 737 | 729 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 738 | - | ||
| 739 | 730 | return cret | |
| 740 | 731 | } | |
| 741 | 732 | ||
| @@ -775,7 +766,6 @@ func (x *Dialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 775 | 766 | func (x *Dialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 776 | 767 | ||
| 777 | 768 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 778 | - | ||
| 779 | 769 | return cret | |
| 780 | 770 | } | |
| 781 | 771 | ||
| @@ -952,7 +942,6 @@ func (x *Dialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleStat | |||
| 952 | 942 | func (x *Dialog) GetBuildableId() string { | |
| 953 | 943 | ||
| 954 | 944 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 955 | - | ||
| 956 | 945 | return cret | |
| 957 | 946 | } | |
| 958 | 947 | ||
M v4/adw/adw-easing.go +0 -1
| @@ -125,7 +125,6 @@ var xEasingEase func(Easing, float64) float64 | |||
| 125 | 125 | func EasingEase(SelfVar Easing, ValueVar float64) float64 { | |
| 126 | 126 | ||
| 127 | 127 | cret := xEasingEase(SelfVar, ValueVar) | |
| 128 | - | ||
| 129 | 128 | return cret | |
| 130 | 129 | } | |
| 131 | 130 | ||
M v4/adw/adw-entry-row.go +2 -29
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -118,7 +117,6 @@ var xEntryRowGetActivatesDefault func(uintptr) bool | |||
| 118 | 117 | func (x *EntryRow) GetActivatesDefault() bool { | |
| 119 | 118 | ||
| 120 | 119 | cret := xEntryRowGetActivatesDefault(x.GoPointer()) | |
| 121 | - | ||
| 122 | 120 | return cret | |
| 123 | 121 | } | |
| 124 | 122 | ||
| @@ -128,7 +126,6 @@ var xEntryRowGetAttributes func(uintptr) *pango.AttrList | |||
| 128 | 126 | func (x *EntryRow) GetAttributes() *pango.AttrList { | |
| 129 | 127 | ||
| 130 | 128 | cret := xEntryRowGetAttributes(x.GoPointer()) | |
| 131 | - | ||
| 132 | 129 | return cret | |
| 133 | 130 | } | |
| 134 | 131 | ||
| @@ -138,7 +135,6 @@ var xEntryRowGetEnableEmojiCompletion func(uintptr) bool | |||
| 138 | 135 | func (x *EntryRow) GetEnableEmojiCompletion() bool { | |
| 139 | 136 | ||
| 140 | 137 | cret := xEntryRowGetEnableEmojiCompletion(x.GoPointer()) | |
| 141 | - | ||
| 142 | 138 | return cret | |
| 143 | 139 | } | |
| 144 | 140 | ||
| @@ -148,7 +144,6 @@ var xEntryRowGetInputHints func(uintptr) gtk.InputHints | |||
| 148 | 144 | func (x *EntryRow) GetInputHints() gtk.InputHints { | |
| 149 | 145 | ||
| 150 | 146 | cret := xEntryRowGetInputHints(x.GoPointer()) | |
| 151 | - | ||
| 152 | 147 | return cret | |
| 153 | 148 | } | |
| 154 | 149 | ||
| @@ -158,7 +153,6 @@ var xEntryRowGetInputPurpose func(uintptr) gtk.InputPurpose | |||
| 158 | 153 | func (x *EntryRow) GetInputPurpose() gtk.InputPurpose { | |
| 159 | 154 | ||
| 160 | 155 | cret := xEntryRowGetInputPurpose(x.GoPointer()) | |
| 161 | - | ||
| 162 | 156 | return cret | |
| 163 | 157 | } | |
| 164 | 158 | ||
| @@ -168,7 +162,6 @@ var xEntryRowGetMaxLength func(uintptr) int | |||
| 168 | 162 | func (x *EntryRow) GetMaxLength() int { | |
| 169 | 163 | ||
| 170 | 164 | cret := xEntryRowGetMaxLength(x.GoPointer()) | |
| 171 | - | ||
| 172 | 165 | return cret | |
| 173 | 166 | } | |
| 174 | 167 | ||
| @@ -178,7 +171,6 @@ var xEntryRowGetShowApplyButton func(uintptr) bool | |||
| 178 | 171 | func (x *EntryRow) GetShowApplyButton() bool { | |
| 179 | 172 | ||
| 180 | 173 | cret := xEntryRowGetShowApplyButton(x.GoPointer()) | |
| 181 | - | ||
| 182 | 174 | return cret | |
| 183 | 175 | } | |
| 184 | 176 | ||
| @@ -188,7 +180,6 @@ var xEntryRowGetTextLength func(uintptr) uint | |||
| 188 | 180 | func (x *EntryRow) GetTextLength() uint { | |
| 189 | 181 | ||
| 190 | 182 | cret := xEntryRowGetTextLength(x.GoPointer()) | |
| 191 | - | ||
| 192 | 183 | return cret | |
| 193 | 184 | } | |
| 194 | 185 | ||
| @@ -200,7 +191,6 @@ var xEntryRowGrabFocusWithoutSelecting func(uintptr) bool | |||
| 200 | 191 | func (x *EntryRow) GrabFocusWithoutSelecting() bool { | |
| 201 | 192 | ||
| 202 | 193 | cret := xEntryRowGrabFocusWithoutSelecting(x.GoPointer()) | |
| 203 | - | ||
| 204 | 194 | return cret | |
| 205 | 195 | } | |
| 206 | 196 | ||
| @@ -510,7 +500,6 @@ func (x *EntryRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 510 | 500 | func (x *EntryRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 511 | 501 | ||
| 512 | 502 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 513 | - | ||
| 514 | 503 | return cret | |
| 515 | 504 | } | |
| 516 | 505 | ||
| @@ -536,7 +525,6 @@ func (x *EntryRow) GetAtContext() *gtk.ATContext { | |||
| 536 | 525 | func (x *EntryRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 537 | 526 | ||
| 538 | 527 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 539 | - | ||
| 540 | 528 | return cret | |
| 541 | 529 | } | |
| 542 | 530 | ||
| @@ -576,7 +564,6 @@ func (x *EntryRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 576 | 564 | func (x *EntryRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 577 | 565 | ||
| 578 | 566 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 579 | - | ||
| 580 | 567 | return cret | |
| 581 | 568 | } | |
| 582 | 569 | ||
| @@ -750,7 +737,6 @@ func (x *EntryRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSt | |||
| 750 | 737 | func (x *EntryRow) GetActionName() string { | |
| 751 | 738 | ||
| 752 | 739 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 753 | - | ||
| 754 | 740 | return cret | |
| 755 | 741 | } | |
| 756 | 742 | ||
| @@ -758,7 +744,6 @@ func (x *EntryRow) GetActionName() string { | |||
| 758 | 744 | func (x *EntryRow) GetActionTargetValue() *glib.Variant { | |
| 759 | 745 | ||
| 760 | 746 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 761 | - | ||
| 762 | 747 | return cret | |
| 763 | 748 | } | |
| 764 | 749 | ||
| @@ -777,12 +762,11 @@ func (x *EntryRow) GetActionTargetValue() *glib.Variant { | |||
| 777 | 762 | // associated with the window. | |
| 778 | 763 | func (x *EntryRow) SetActionName(ActionNameVar *string) { | |
| 779 | 764 | ||
| 780 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 765 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 766 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 781 | 767 | ||
| 782 | 768 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 783 | 769 | ||
| 784 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 785 | - | ||
| 786 | 770 | } | |
| 787 | 771 | ||
| 788 | 772 | // Sets the target of an actionable widget. | |
| @@ -842,7 +826,6 @@ func (x *EntryRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 842 | 826 | func (x *EntryRow) GetBuildableId() string { | |
| 843 | 827 | ||
| 844 | 828 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 845 | - | ||
| 846 | 829 | return cret | |
| 847 | 830 | } | |
| 848 | 831 | ||
| @@ -885,7 +868,6 @@ func (x *EntryRow) GetBuildableId() string { | |||
| 885 | 868 | func (x *EntryRow) DelegateGetAccessiblePlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 886 | 869 | ||
| 887 | 870 | cret := gtk.XGtkEditableDelegateGetAccessiblePlatformState(x.GoPointer(), StateVar) | |
| 888 | - | ||
| 889 | 871 | return cret | |
| 890 | 872 | } | |
| 891 | 873 | ||
| @@ -926,7 +908,6 @@ func (x *EntryRow) FinishDelegate() { | |||
| 926 | 908 | func (x *EntryRow) GetAlignment() float32 { | |
| 927 | 909 | ||
| 928 | 910 | cret := gtk.XGtkEditableGetAlignment(x.GoPointer()) | |
| 929 | - | ||
| 930 | 911 | return cret | |
| 931 | 912 | } | |
| 932 | 913 | ||
| @@ -941,7 +922,6 @@ func (x *EntryRow) GetAlignment() float32 { | |||
| 941 | 922 | func (x *EntryRow) GetChars(StartPosVar int, EndPosVar int) string { | |
| 942 | 923 | ||
| 943 | 924 | cret := gtk.XGtkEditableGetChars(x.GoPointer(), StartPosVar, EndPosVar) | |
| 944 | - | ||
| 945 | 925 | return cret | |
| 946 | 926 | } | |
| 947 | 927 | ||
| @@ -967,7 +947,6 @@ func (x *EntryRow) GetDelegate() *gtk.EditableBase { | |||
| 967 | 947 | func (x *EntryRow) GetEditable() bool { | |
| 968 | 948 | ||
| 969 | 949 | cret := gtk.XGtkEditableGetEditable(x.GoPointer()) | |
| 970 | - | ||
| 971 | 950 | return cret | |
| 972 | 951 | } | |
| 973 | 952 | ||
| @@ -975,7 +954,6 @@ func (x *EntryRow) GetEditable() bool { | |||
| 975 | 954 | func (x *EntryRow) GetEnableUndo() bool { | |
| 976 | 955 | ||
| 977 | 956 | cret := gtk.XGtkEditableGetEnableUndo(x.GoPointer()) | |
| 978 | - | ||
| 979 | 957 | return cret | |
| 980 | 958 | } | |
| 981 | 959 | ||
| @@ -983,7 +961,6 @@ func (x *EntryRow) GetEnableUndo() bool { | |||
| 983 | 961 | func (x *EntryRow) GetMaxWidthChars() int { | |
| 984 | 962 | ||
| 985 | 963 | cret := gtk.XGtkEditableGetMaxWidthChars(x.GoPointer()) | |
| 986 | - | ||
| 987 | 964 | return cret | |
| 988 | 965 | } | |
| 989 | 966 | ||
| @@ -994,7 +971,6 @@ func (x *EntryRow) GetMaxWidthChars() int { | |||
| 994 | 971 | func (x *EntryRow) GetPosition() int { | |
| 995 | 972 | ||
| 996 | 973 | cret := gtk.XGtkEditableGetPosition(x.GoPointer()) | |
| 997 | - | ||
| 998 | 974 | return cret | |
| 999 | 975 | } | |
| 1000 | 976 | ||
| @@ -1008,7 +984,6 @@ func (x *EntryRow) GetPosition() int { | |||
| 1008 | 984 | func (x *EntryRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) bool { | |
| 1009 | 985 | ||
| 1010 | 986 | cret := gtk.XGtkEditableGetSelectionBounds(x.GoPointer(), StartPosVar, EndPosVar) | |
| 1011 | - | ||
| 1012 | 987 | return cret | |
| 1013 | 988 | } | |
| 1014 | 989 | ||
| @@ -1018,7 +993,6 @@ func (x *EntryRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) bool { | |||
| 1018 | 993 | func (x *EntryRow) GetText() string { | |
| 1019 | 994 | ||
| 1020 | 995 | cret := gtk.XGtkEditableGetText(x.GoPointer()) | |
| 1021 | - | ||
| 1022 | 996 | return cret | |
| 1023 | 997 | } | |
| 1024 | 998 | ||
| @@ -1027,7 +1001,6 @@ func (x *EntryRow) GetText() string { | |||
| 1027 | 1001 | func (x *EntryRow) GetWidthChars() int { | |
| 1028 | 1002 | ||
| 1029 | 1003 | cret := gtk.XGtkEditableGetWidthChars(x.GoPointer()) | |
| 1030 | - | ||
| 1031 | 1004 | return cret | |
| 1032 | 1005 | } | |
| 1033 | 1006 | ||
M v4/adw/adw-enum-list-model.go +0 -8
| @@ -55,7 +55,6 @@ var xEnumListItemGetName func(uintptr) string | |||
| 55 | 55 | func (x *EnumListItem) GetName() string { | |
| 56 | 56 | ||
| 57 | 57 | cret := xEnumListItemGetName(x.GoPointer()) | |
| 58 | - | ||
| 59 | 58 | return cret | |
| 60 | 59 | } | |
| 61 | 60 | ||
| @@ -65,7 +64,6 @@ var xEnumListItemGetNick func(uintptr) string | |||
| 65 | 64 | func (x *EnumListItem) GetNick() string { | |
| 66 | 65 | ||
| 67 | 66 | cret := xEnumListItemGetNick(x.GoPointer()) | |
| 68 | - | ||
| 69 | 67 | return cret | |
| 70 | 68 | } | |
| 71 | 69 | ||
| @@ -75,7 +73,6 @@ var xEnumListItemGetValue func(uintptr) int | |||
| 75 | 73 | func (x *EnumListItem) GetValue() int { | |
| 76 | 74 | ||
| 77 | 75 | cret := xEnumListItemGetValue(x.GoPointer()) | |
| 78 | - | ||
| 79 | 76 | return cret | |
| 80 | 77 | } | |
| 81 | 78 | ||
| @@ -157,7 +154,6 @@ var xEnumListModelFindPosition func(uintptr, int) uint | |||
| 157 | 154 | func (x *EnumListModel) FindPosition(ValueVar int) uint { | |
| 158 | 155 | ||
| 159 | 156 | cret := xEnumListModelFindPosition(x.GoPointer(), ValueVar) | |
| 160 | - | ||
| 161 | 157 | return cret | |
| 162 | 158 | } | |
| 163 | 159 | ||
| @@ -167,7 +163,6 @@ var xEnumListModelGetEnumType func(uintptr) types.GType | |||
| 167 | 163 | func (x *EnumListModel) GetEnumType() types.GType { | |
| 168 | 164 | ||
| 169 | 165 | cret := xEnumListModelGetEnumType(x.GoPointer()) | |
| 170 | - | ||
| 171 | 166 | return cret | |
| 172 | 167 | } | |
| 173 | 168 | ||
| @@ -194,7 +189,6 @@ func (c *EnumListModel) SetGoPointer(ptr uintptr) { | |||
| 194 | 189 | func (x *EnumListModel) GetItem(PositionVar uint) uintptr { | |
| 195 | 190 | ||
| 196 | 191 | cret := gio.XGListModelGetItem(x.GoPointer(), PositionVar) | |
| 197 | - | ||
| 198 | 192 | return cret | |
| 199 | 193 | } | |
| 200 | 194 | ||
| @@ -209,7 +203,6 @@ func (x *EnumListModel) GetItem(PositionVar uint) uintptr { | |||
| 209 | 203 | func (x *EnumListModel) GetItemType() types.GType { | |
| 210 | 204 | ||
| 211 | 205 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 212 | - | ||
| 213 | 206 | return cret | |
| 214 | 207 | } | |
| 215 | 208 | ||
| @@ -221,7 +214,6 @@ func (x *EnumListModel) GetItemType() types.GType { | |||
| 221 | 214 | func (x *EnumListModel) GetNItems() uint { | |
| 222 | 215 | ||
| 223 | 216 | cret := gio.XGListModelGetNItems(x.GoPointer()) | |
| 224 | - | ||
| 225 | 217 | return cret | |
| 226 | 218 | } | |
| 227 | 219 | ||
M v4/adw/adw-expander-row.go +4 -20
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -142,7 +141,6 @@ var xExpanderRowGetEnableExpansion func(uintptr) bool | |||
| 142 | 141 | func (x *ExpanderRow) GetEnableExpansion() bool { | |
| 143 | 142 | ||
| 144 | 143 | cret := xExpanderRowGetEnableExpansion(x.GoPointer()) | |
| 145 | - | ||
| 146 | 144 | return cret | |
| 147 | 145 | } | |
| 148 | 146 | ||
| @@ -152,7 +150,6 @@ var xExpanderRowGetExpanded func(uintptr) bool | |||
| 152 | 150 | func (x *ExpanderRow) GetExpanded() bool { | |
| 153 | 151 | ||
| 154 | 152 | cret := xExpanderRowGetExpanded(x.GoPointer()) | |
| 155 | - | ||
| 156 | 153 | return cret | |
| 157 | 154 | } | |
| 158 | 155 | ||
| @@ -162,7 +159,6 @@ var xExpanderRowGetIconName func(uintptr) string | |||
| 162 | 159 | func (x *ExpanderRow) GetIconName() string { | |
| 163 | 160 | ||
| 164 | 161 | cret := xExpanderRowGetIconName(x.GoPointer()) | |
| 165 | - | ||
| 166 | 162 | return cret | |
| 167 | 163 | } | |
| 168 | 164 | ||
| @@ -172,7 +168,6 @@ var xExpanderRowGetShowEnableSwitch func(uintptr) bool | |||
| 172 | 168 | func (x *ExpanderRow) GetShowEnableSwitch() bool { | |
| 173 | 169 | ||
| 174 | 170 | cret := xExpanderRowGetShowEnableSwitch(x.GoPointer()) | |
| 175 | - | ||
| 176 | 171 | return cret | |
| 177 | 172 | } | |
| 178 | 173 | ||
| @@ -182,7 +177,6 @@ var xExpanderRowGetSubtitle func(uintptr) string | |||
| 182 | 177 | func (x *ExpanderRow) GetSubtitle() string { | |
| 183 | 178 | ||
| 184 | 179 | cret := xExpanderRowGetSubtitle(x.GoPointer()) | |
| 185 | - | ||
| 186 | 180 | return cret | |
| 187 | 181 | } | |
| 188 | 182 | ||
| @@ -193,7 +187,6 @@ var xExpanderRowGetSubtitleLines func(uintptr) int | |||
| 193 | 187 | func (x *ExpanderRow) GetSubtitleLines() int { | |
| 194 | 188 | ||
| 195 | 189 | cret := xExpanderRowGetSubtitleLines(x.GoPointer()) | |
| 196 | - | ||
| 197 | 190 | return cret | |
| 198 | 191 | } | |
| 199 | 192 | ||
| @@ -204,7 +197,6 @@ var xExpanderRowGetTitleLines func(uintptr) int | |||
| 204 | 197 | func (x *ExpanderRow) GetTitleLines() int { | |
| 205 | 198 | ||
| 206 | 199 | cret := xExpanderRowGetTitleLines(x.GoPointer()) | |
| 207 | - | ||
| 208 | 200 | return cret | |
| 209 | 201 | } | |
| 210 | 202 | ||
| @@ -240,12 +232,11 @@ var xExpanderRowSetIconName func(uintptr, uintptr) | |||
| 240 | 232 | // Sets the icon name for @self. | |
| 241 | 233 | func (x *ExpanderRow) SetIconName(IconNameVar *string) { | |
| 242 | 234 | ||
| 243 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 235 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 236 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 244 | 237 | ||
| 245 | 238 | xExpanderRowSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 246 | 239 | ||
| 247 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 248 | - | ||
| 249 | 240 | } | |
| 250 | 241 | ||
| 251 | 242 | var xExpanderRowSetShowEnableSwitch func(uintptr, bool) | |
| @@ -474,7 +465,6 @@ func (x *ExpanderRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 474 | 465 | func (x *ExpanderRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 475 | 466 | ||
| 476 | 467 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 477 | - | ||
| 478 | 468 | return cret | |
| 479 | 469 | } | |
| 480 | 470 | ||
| @@ -500,7 +490,6 @@ func (x *ExpanderRow) GetAtContext() *gtk.ATContext { | |||
| 500 | 490 | func (x *ExpanderRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 501 | 491 | ||
| 502 | 492 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 503 | - | ||
| 504 | 493 | return cret | |
| 505 | 494 | } | |
| 506 | 495 | ||
| @@ -540,7 +529,6 @@ func (x *ExpanderRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 540 | 529 | func (x *ExpanderRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 541 | 530 | ||
| 542 | 531 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 543 | - | ||
| 544 | 532 | return cret | |
| 545 | 533 | } | |
| 546 | 534 | ||
| @@ -714,7 +702,6 @@ func (x *ExpanderRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 714 | 702 | func (x *ExpanderRow) GetActionName() string { | |
| 715 | 703 | ||
| 716 | 704 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 717 | - | ||
| 718 | 705 | return cret | |
| 719 | 706 | } | |
| 720 | 707 | ||
| @@ -722,7 +709,6 @@ func (x *ExpanderRow) GetActionName() string { | |||
| 722 | 709 | func (x *ExpanderRow) GetActionTargetValue() *glib.Variant { | |
| 723 | 710 | ||
| 724 | 711 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 725 | - | ||
| 726 | 712 | return cret | |
| 727 | 713 | } | |
| 728 | 714 | ||
| @@ -741,12 +727,11 @@ func (x *ExpanderRow) GetActionTargetValue() *glib.Variant { | |||
| 741 | 727 | // associated with the window. | |
| 742 | 728 | func (x *ExpanderRow) SetActionName(ActionNameVar *string) { | |
| 743 | 729 | ||
| 744 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 730 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 731 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 745 | 732 | ||
| 746 | 733 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 747 | 734 | ||
| 748 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 749 | - | ||
| 750 | 735 | } | |
| 751 | 736 | ||
| 752 | 737 | // Sets the target of an actionable widget. | |
| @@ -806,7 +791,6 @@ func (x *ExpanderRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 806 | 791 | func (x *ExpanderRow) GetBuildableId() string { | |
| 807 | 792 | ||
| 808 | 793 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 809 | - | ||
| 810 | 794 | return cret | |
| 811 | 795 | } | |
| 812 | 796 | ||
M v4/adw/adw-flap.go +0 -22
| @@ -205,7 +205,6 @@ var xFlapGetFlapPosition func(uintptr) gtk.PackType | |||
| 205 | 205 | func (x *Flap) GetFlapPosition() gtk.PackType { | |
| 206 | 206 | ||
| 207 | 207 | cret := xFlapGetFlapPosition(x.GoPointer()) | |
| 208 | - | ||
| 209 | 208 | return cret | |
| 210 | 209 | } | |
| 211 | 210 | ||
| @@ -215,7 +214,6 @@ var xFlapGetFoldDuration func(uintptr) uint | |||
| 215 | 214 | func (x *Flap) GetFoldDuration() uint { | |
| 216 | 215 | ||
| 217 | 216 | cret := xFlapGetFoldDuration(x.GoPointer()) | |
| 218 | - | ||
| 219 | 217 | return cret | |
| 220 | 218 | } | |
| 221 | 219 | ||
| @@ -225,7 +223,6 @@ var xFlapGetFoldPolicy func(uintptr) FlapFoldPolicy | |||
| 225 | 223 | func (x *Flap) GetFoldPolicy() FlapFoldPolicy { | |
| 226 | 224 | ||
| 227 | 225 | cret := xFlapGetFoldPolicy(x.GoPointer()) | |
| 228 | - | ||
| 229 | 226 | return cret | |
| 230 | 227 | } | |
| 231 | 228 | ||
| @@ -235,7 +232,6 @@ var xFlapGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||
| 235 | 232 | func (x *Flap) GetFoldThresholdPolicy() FoldThresholdPolicy { | |
| 236 | 233 | ||
| 237 | 234 | cret := xFlapGetFoldThresholdPolicy(x.GoPointer()) | |
| 238 | - | ||
| 239 | 235 | return cret | |
| 240 | 236 | } | |
| 241 | 237 | ||
| @@ -247,7 +243,6 @@ var xFlapGetFolded func(uintptr) bool | |||
| 247 | 243 | func (x *Flap) GetFolded() bool { | |
| 248 | 244 | ||
| 249 | 245 | cret := xFlapGetFolded(x.GoPointer()) | |
| 250 | - | ||
| 251 | 246 | return cret | |
| 252 | 247 | } | |
| 253 | 248 | ||
| @@ -257,7 +252,6 @@ var xFlapGetLocked func(uintptr) bool | |||
| 257 | 252 | func (x *Flap) GetLocked() bool { | |
| 258 | 253 | ||
| 259 | 254 | cret := xFlapGetLocked(x.GoPointer()) | |
| 260 | - | ||
| 261 | 255 | return cret | |
| 262 | 256 | } | |
| 263 | 257 | ||
| @@ -267,7 +261,6 @@ var xFlapGetModal func(uintptr) bool | |||
| 267 | 261 | func (x *Flap) GetModal() bool { | |
| 268 | 262 | ||
| 269 | 263 | cret := xFlapGetModal(x.GoPointer()) | |
| 270 | - | ||
| 271 | 264 | return cret | |
| 272 | 265 | } | |
| 273 | 266 | ||
| @@ -277,7 +270,6 @@ var xFlapGetRevealFlap func(uintptr) bool | |||
| 277 | 270 | func (x *Flap) GetRevealFlap() bool { | |
| 278 | 271 | ||
| 279 | 272 | cret := xFlapGetRevealFlap(x.GoPointer()) | |
| 280 | - | ||
| 281 | 273 | return cret | |
| 282 | 274 | } | |
| 283 | 275 | ||
| @@ -287,7 +279,6 @@ var xFlapGetRevealParams func(uintptr) *SpringParams | |||
| 287 | 279 | func (x *Flap) GetRevealParams() *SpringParams { | |
| 288 | 280 | ||
| 289 | 281 | cret := xFlapGetRevealParams(x.GoPointer()) | |
| 290 | - | ||
| 291 | 282 | return cret | |
| 292 | 283 | } | |
| 293 | 284 | ||
| @@ -301,7 +292,6 @@ var xFlapGetRevealProgress func(uintptr) float64 | |||
| 301 | 292 | func (x *Flap) GetRevealProgress() float64 { | |
| 302 | 293 | ||
| 303 | 294 | cret := xFlapGetRevealProgress(x.GoPointer()) | |
| 304 | - | ||
| 305 | 295 | return cret | |
| 306 | 296 | } | |
| 307 | 297 | ||
| @@ -328,7 +318,6 @@ var xFlapGetSwipeToClose func(uintptr) bool | |||
| 328 | 318 | func (x *Flap) GetSwipeToClose() bool { | |
| 329 | 319 | ||
| 330 | 320 | cret := xFlapGetSwipeToClose(x.GoPointer()) | |
| 331 | - | ||
| 332 | 321 | return cret | |
| 333 | 322 | } | |
| 334 | 323 | ||
| @@ -338,7 +327,6 @@ var xFlapGetSwipeToOpen func(uintptr) bool | |||
| 338 | 327 | func (x *Flap) GetSwipeToOpen() bool { | |
| 339 | 328 | ||
| 340 | 329 | cret := xFlapGetSwipeToOpen(x.GoPointer()) | |
| 341 | - | ||
| 342 | 330 | return cret | |
| 343 | 331 | } | |
| 344 | 332 | ||
| @@ -348,7 +336,6 @@ var xFlapGetTransitionType func(uintptr) FlapTransitionType | |||
| 348 | 336 | func (x *Flap) GetTransitionType() FlapTransitionType { | |
| 349 | 337 | ||
| 350 | 338 | cret := xFlapGetTransitionType(x.GoPointer()) | |
| 351 | - | ||
| 352 | 339 | return cret | |
| 353 | 340 | } | |
| 354 | 341 | ||
| @@ -717,7 +704,6 @@ func (x *Flap) GetPropertySwipeToOpen() bool { | |||
| 717 | 704 | func (x *Flap) GetCancelProgress() float64 { | |
| 718 | 705 | ||
| 719 | 706 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 720 | - | ||
| 721 | 707 | return cret | |
| 722 | 708 | } | |
| 723 | 709 | ||
| @@ -727,7 +713,6 @@ func (x *Flap) GetCancelProgress() float64 { | |||
| 727 | 713 | func (x *Flap) GetDistance() float64 { | |
| 728 | 714 | ||
| 729 | 715 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 730 | - | ||
| 731 | 716 | return cret | |
| 732 | 717 | } | |
| 733 | 718 | ||
| @@ -735,7 +720,6 @@ func (x *Flap) GetDistance() float64 { | |||
| 735 | 720 | func (x *Flap) GetProgress() float64 { | |
| 736 | 721 | ||
| 737 | 722 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 738 | - | ||
| 739 | 723 | return cret | |
| 740 | 724 | } | |
| 741 | 725 | ||
| @@ -746,7 +730,6 @@ func (x *Flap) GetProgress() float64 { | |||
| 746 | 730 | func (x *Flap) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 747 | 731 | ||
| 748 | 732 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 749 | - | ||
| 750 | 733 | return cret | |
| 751 | 734 | } | |
| 752 | 735 | ||
| @@ -800,7 +783,6 @@ func (x *Flap) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 800 | 783 | func (x *Flap) GetAccessibleRole() gtk.AccessibleRole { | |
| 801 | 784 | ||
| 802 | 785 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 803 | - | ||
| 804 | 786 | return cret | |
| 805 | 787 | } | |
| 806 | 788 | ||
| @@ -826,7 +808,6 @@ func (x *Flap) GetAtContext() *gtk.ATContext { | |||
| 826 | 808 | func (x *Flap) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 827 | 809 | ||
| 828 | 810 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 829 | - | ||
| 830 | 811 | return cret | |
| 831 | 812 | } | |
| 832 | 813 | ||
| @@ -866,7 +847,6 @@ func (x *Flap) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 866 | 847 | func (x *Flap) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 867 | 848 | ||
| 868 | 849 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 869 | - | ||
| 870 | 850 | return cret | |
| 871 | 851 | } | |
| 872 | 852 | ||
| @@ -1043,7 +1023,6 @@ func (x *Flap) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, | |||
| 1043 | 1023 | func (x *Flap) GetBuildableId() string { | |
| 1044 | 1024 | ||
| 1045 | 1025 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1046 | - | ||
| 1047 | 1026 | return cret | |
| 1048 | 1027 | } | |
| 1049 | 1028 | ||
| @@ -1051,7 +1030,6 @@ func (x *Flap) GetBuildableId() string { | |||
| 1051 | 1030 | func (x *Flap) GetOrientation() gtk.Orientation { | |
| 1052 | 1031 | ||
| 1053 | 1032 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 1054 | - | ||
| 1055 | 1033 | return cret | |
| 1056 | 1034 | } | |
| 1057 | 1035 | ||
M v4/adw/adw-header-bar.go +2 -14
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -177,7 +176,6 @@ var xHeaderBarGetCenteringPolicy func(uintptr) CenteringPolicy | |||
| 177 | 176 | func (x *HeaderBar) GetCenteringPolicy() CenteringPolicy { | |
| 178 | 177 | ||
| 179 | 178 | cret := xHeaderBarGetCenteringPolicy(x.GoPointer()) | |
| 180 | - | ||
| 181 | 179 | return cret | |
| 182 | 180 | } | |
| 183 | 181 | ||
| @@ -187,7 +185,6 @@ var xHeaderBarGetDecorationLayout func(uintptr) string | |||
| 187 | 185 | func (x *HeaderBar) GetDecorationLayout() string { | |
| 188 | 186 | ||
| 189 | 187 | cret := xHeaderBarGetDecorationLayout(x.GoPointer()) | |
| 190 | - | ||
| 191 | 188 | return cret | |
| 192 | 189 | } | |
| 193 | 190 | ||
| @@ -197,7 +194,6 @@ var xHeaderBarGetShowBackButton func(uintptr) bool | |||
| 197 | 194 | func (x *HeaderBar) GetShowBackButton() bool { | |
| 198 | 195 | ||
| 199 | 196 | cret := xHeaderBarGetShowBackButton(x.GoPointer()) | |
| 200 | - | ||
| 201 | 197 | return cret | |
| 202 | 198 | } | |
| 203 | 199 | ||
| @@ -207,7 +203,6 @@ var xHeaderBarGetShowEndTitleButtons func(uintptr) bool | |||
| 207 | 203 | func (x *HeaderBar) GetShowEndTitleButtons() bool { | |
| 208 | 204 | ||
| 209 | 205 | cret := xHeaderBarGetShowEndTitleButtons(x.GoPointer()) | |
| 210 | - | ||
| 211 | 206 | return cret | |
| 212 | 207 | } | |
| 213 | 208 | ||
| @@ -217,7 +212,6 @@ var xHeaderBarGetShowStartTitleButtons func(uintptr) bool | |||
| 217 | 212 | func (x *HeaderBar) GetShowStartTitleButtons() bool { | |
| 218 | 213 | ||
| 219 | 214 | cret := xHeaderBarGetShowStartTitleButtons(x.GoPointer()) | |
| 220 | - | ||
| 221 | 215 | return cret | |
| 222 | 216 | } | |
| 223 | 217 | ||
| @@ -227,7 +221,6 @@ var xHeaderBarGetShowTitle func(uintptr) bool | |||
| 227 | 221 | func (x *HeaderBar) GetShowTitle() bool { | |
| 228 | 222 | ||
| 229 | 223 | cret := xHeaderBarGetShowTitle(x.GoPointer()) | |
| 230 | - | ||
| 231 | 224 | return cret | |
| 232 | 225 | } | |
| 233 | 226 | ||
| @@ -303,12 +296,11 @@ var xHeaderBarSetDecorationLayout func(uintptr, uintptr) | |||
| 303 | 296 | // and minimize, maximize and close buttons at the end. | |
| 304 | 297 | func (x *HeaderBar) SetDecorationLayout(LayoutVar *string) { | |
| 305 | 298 | ||
| 306 | - | LayoutVarPtr, LayoutVarBytes := core.NullableStringToPtr(LayoutVar) | |
| 299 | + | LayoutVarPtr := core.GStrdupNullable(LayoutVar) | |
| 300 | + | defer core.GFreeNullable(LayoutVarPtr) | |
| 307 | 301 | ||
| 308 | 302 | xHeaderBarSetDecorationLayout(x.GoPointer(), LayoutVarPtr) | |
| 309 | 303 | ||
| 310 | - | runtime.KeepAlive(LayoutVarBytes) | |
| 311 | - | ||
| 312 | 304 | } | |
| 313 | 305 | ||
| 314 | 306 | var xHeaderBarSetShowBackButton func(uintptr, bool) | |
| @@ -575,7 +567,6 @@ func (x *HeaderBar) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 575 | 567 | func (x *HeaderBar) GetAccessibleRole() gtk.AccessibleRole { | |
| 576 | 568 | ||
| 577 | 569 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 578 | - | ||
| 579 | 570 | return cret | |
| 580 | 571 | } | |
| 581 | 572 | ||
| @@ -601,7 +592,6 @@ func (x *HeaderBar) GetAtContext() *gtk.ATContext { | |||
| 601 | 592 | func (x *HeaderBar) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 602 | 593 | ||
| 603 | 594 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 604 | - | ||
| 605 | 595 | return cret | |
| 606 | 596 | } | |
| 607 | 597 | ||
| @@ -641,7 +631,6 @@ func (x *HeaderBar) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 641 | 631 | func (x *HeaderBar) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 642 | 632 | ||
| 643 | 633 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 644 | - | ||
| 645 | 634 | return cret | |
| 646 | 635 | } | |
| 647 | 636 | ||
| @@ -818,7 +807,6 @@ func (x *HeaderBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 818 | 807 | func (x *HeaderBar) GetBuildableId() string { | |
| 819 | 808 | ||
| 820 | 809 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 821 | - | ||
| 822 | 810 | return cret | |
| 823 | 811 | } | |
| 824 | 812 | ||
M v4/adw/adw-inline-view-switcher.go +0 -8
| @@ -131,7 +131,6 @@ var xInlineViewSwitcherGetCanShrink func(uintptr) bool | |||
| 131 | 131 | func (x *InlineViewSwitcher) GetCanShrink() bool { | |
| 132 | 132 | ||
| 133 | 133 | cret := xInlineViewSwitcherGetCanShrink(x.GoPointer()) | |
| 134 | - | ||
| 135 | 134 | return cret | |
| 136 | 135 | } | |
| 137 | 136 | ||
| @@ -141,7 +140,6 @@ var xInlineViewSwitcherGetDisplayMode func(uintptr) InlineViewSwitcherDisplayMod | |||
| 141 | 140 | func (x *InlineViewSwitcher) GetDisplayMode() InlineViewSwitcherDisplayMode { | |
| 142 | 141 | ||
| 143 | 142 | cret := xInlineViewSwitcherGetDisplayMode(x.GoPointer()) | |
| 144 | - | ||
| 145 | 143 | return cret | |
| 146 | 144 | } | |
| 147 | 145 | ||
| @@ -151,7 +149,6 @@ var xInlineViewSwitcherGetHomogeneous func(uintptr) bool | |||
| 151 | 149 | func (x *InlineViewSwitcher) GetHomogeneous() bool { | |
| 152 | 150 | ||
| 153 | 151 | cret := xInlineViewSwitcherGetHomogeneous(x.GoPointer()) | |
| 154 | - | ||
| 155 | 152 | return cret | |
| 156 | 153 | } | |
| 157 | 154 | ||
| @@ -310,7 +307,6 @@ func (x *InlineViewSwitcher) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 310 | 307 | func (x *InlineViewSwitcher) GetAccessibleRole() gtk.AccessibleRole { | |
| 311 | 308 | ||
| 312 | 309 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 313 | - | ||
| 314 | 310 | return cret | |
| 315 | 311 | } | |
| 316 | 312 | ||
| @@ -336,7 +332,6 @@ func (x *InlineViewSwitcher) GetAtContext() *gtk.ATContext { | |||
| 336 | 332 | func (x *InlineViewSwitcher) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 337 | 333 | ||
| 338 | 334 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 339 | - | ||
| 340 | 335 | return cret | |
| 341 | 336 | } | |
| 342 | 337 | ||
| @@ -376,7 +371,6 @@ func (x *InlineViewSwitcher) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 376 | 371 | func (x *InlineViewSwitcher) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 377 | 372 | ||
| 378 | 373 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 379 | - | ||
| 380 | 374 | return cret | |
| 381 | 375 | } | |
| 382 | 376 | ||
| @@ -553,7 +547,6 @@ func (x *InlineViewSwitcher) UpdateStateValue(NStatesVar int, StatesVar []gtk.Ac | |||
| 553 | 547 | func (x *InlineViewSwitcher) GetBuildableId() string { | |
| 554 | 548 | ||
| 555 | 549 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 556 | - | ||
| 557 | 550 | return cret | |
| 558 | 551 | } | |
| 559 | 552 | ||
| @@ -561,7 +554,6 @@ func (x *InlineViewSwitcher) GetBuildableId() string { | |||
| 561 | 554 | func (x *InlineViewSwitcher) GetOrientation() gtk.Orientation { | |
| 562 | 555 | ||
| 563 | 556 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 564 | - | ||
| 565 | 557 | return cret | |
| 566 | 558 | } | |
| 567 | 559 | ||
M v4/adw/adw-layout-slot.go +0 -5
| @@ -67,7 +67,6 @@ var xLayoutSlotGetSlotId func(uintptr) string | |||
| 67 | 67 | func (x *LayoutSlot) GetSlotId() string { | |
| 68 | 68 | ||
| 69 | 69 | cret := xLayoutSlotGetSlotId(x.GoPointer()) | |
| 70 | - | ||
| 71 | 70 | return cret | |
| 72 | 71 | } | |
| 73 | 72 | ||
| @@ -138,7 +137,6 @@ func (x *LayoutSlot) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 138 | 137 | func (x *LayoutSlot) GetAccessibleRole() gtk.AccessibleRole { | |
| 139 | 138 | ||
| 140 | 139 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 141 | - | ||
| 142 | 140 | return cret | |
| 143 | 141 | } | |
| 144 | 142 | ||
| @@ -164,7 +162,6 @@ func (x *LayoutSlot) GetAtContext() *gtk.ATContext { | |||
| 164 | 162 | func (x *LayoutSlot) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 165 | 163 | ||
| 166 | 164 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 167 | - | ||
| 168 | 165 | return cret | |
| 169 | 166 | } | |
| 170 | 167 | ||
| @@ -204,7 +201,6 @@ func (x *LayoutSlot) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 204 | 201 | func (x *LayoutSlot) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 205 | 202 | ||
| 206 | 203 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 207 | - | ||
| 208 | 204 | return cret | |
| 209 | 205 | } | |
| 210 | 206 | ||
| @@ -381,7 +377,6 @@ func (x *LayoutSlot) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessible | |||
| 381 | 377 | func (x *LayoutSlot) GetBuildableId() string { | |
| 382 | 378 | ||
| 383 | 379 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 384 | - | ||
| 385 | 380 | return cret | |
| 386 | 381 | } | |
| 387 | 382 | ||
M v4/adw/adw-layout.go +2 -6
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -79,7 +78,6 @@ var xLayoutGetName func(uintptr) string | |||
| 79 | 78 | func (x *Layout) GetName() string { | |
| 80 | 79 | ||
| 81 | 80 | cret := xLayoutGetName(x.GoPointer()) | |
| 82 | - | ||
| 83 | 81 | return cret | |
| 84 | 82 | } | |
| 85 | 83 | ||
| @@ -88,12 +86,11 @@ var xLayoutSetName func(uintptr, uintptr) | |||
| 88 | 86 | // Sets the name of the layout. | |
| 89 | 87 | func (x *Layout) SetName(NameVar *string) { | |
| 90 | 88 | ||
| 91 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 89 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 90 | + | defer core.GFreeNullable(NameVarPtr) | |
| 92 | 91 | ||
| 93 | 92 | xLayoutSetName(x.GoPointer(), NameVarPtr) | |
| 94 | 93 | ||
| 95 | - | runtime.KeepAlive(NameVarBytes) | |
| 96 | - | ||
| 97 | 94 | } | |
| 98 | 95 | ||
| 99 | 96 | func (c *Layout) GoPointer() uintptr { | |
| @@ -131,7 +128,6 @@ func (x *Layout) GetPropertyName() string { | |||
| 131 | 128 | func (x *Layout) GetBuildableId() string { | |
| 132 | 129 | ||
| 133 | 130 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 134 | - | ||
| 135 | 131 | return cret | |
| 136 | 132 | } | |
| 137 | 133 | ||
M v4/adw/adw-leaflet.go +2 -27
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -170,7 +169,6 @@ var xLeafletGetCanNavigateBack func(uintptr) bool | |||
| 170 | 169 | func (x *Leaflet) GetCanNavigateBack() bool { | |
| 171 | 170 | ||
| 172 | 171 | cret := xLeafletGetCanNavigateBack(x.GoPointer()) | |
| 173 | - | ||
| 174 | 172 | return cret | |
| 175 | 173 | } | |
| 176 | 174 | ||
| @@ -180,7 +178,6 @@ var xLeafletGetCanNavigateForward func(uintptr) bool | |||
| 180 | 178 | func (x *Leaflet) GetCanNavigateForward() bool { | |
| 181 | 179 | ||
| 182 | 180 | cret := xLeafletGetCanNavigateForward(x.GoPointer()) | |
| 183 | - | ||
| 184 | 181 | return cret | |
| 185 | 182 | } | |
| 186 | 183 | ||
| @@ -190,7 +187,6 @@ var xLeafletGetCanUnfold func(uintptr) bool | |||
| 190 | 187 | func (x *Leaflet) GetCanUnfold() bool { | |
| 191 | 188 | ||
| 192 | 189 | cret := xLeafletGetCanUnfold(x.GoPointer()) | |
| 193 | - | ||
| 194 | 190 | return cret | |
| 195 | 191 | } | |
| 196 | 192 | ||
| @@ -221,7 +217,6 @@ var xLeafletGetChildTransitionParams func(uintptr) *SpringParams | |||
| 221 | 217 | func (x *Leaflet) GetChildTransitionParams() *SpringParams { | |
| 222 | 218 | ||
| 223 | 219 | cret := xLeafletGetChildTransitionParams(x.GoPointer()) | |
| 224 | - | ||
| 225 | 220 | return cret | |
| 226 | 221 | } | |
| 227 | 222 | ||
| @@ -231,7 +226,6 @@ var xLeafletGetChildTransitionRunning func(uintptr) bool | |||
| 231 | 226 | func (x *Leaflet) GetChildTransitionRunning() bool { | |
| 232 | 227 | ||
| 233 | 228 | cret := xLeafletGetChildTransitionRunning(x.GoPointer()) | |
| 234 | - | ||
| 235 | 229 | return cret | |
| 236 | 230 | } | |
| 237 | 231 | ||
| @@ -241,7 +235,6 @@ var xLeafletGetFoldThresholdPolicy func(uintptr) FoldThresholdPolicy | |||
| 241 | 235 | func (x *Leaflet) GetFoldThresholdPolicy() FoldThresholdPolicy { | |
| 242 | 236 | ||
| 243 | 237 | cret := xLeafletGetFoldThresholdPolicy(x.GoPointer()) | |
| 244 | - | ||
| 245 | 238 | return cret | |
| 246 | 239 | } | |
| 247 | 240 | ||
| @@ -255,7 +248,6 @@ var xLeafletGetFolded func(uintptr) bool | |||
| 255 | 248 | func (x *Leaflet) GetFolded() bool { | |
| 256 | 249 | ||
| 257 | 250 | cret := xLeafletGetFolded(x.GoPointer()) | |
| 258 | - | ||
| 259 | 251 | return cret | |
| 260 | 252 | } | |
| 261 | 253 | ||
| @@ -265,7 +257,6 @@ var xLeafletGetHomogeneous func(uintptr) bool | |||
| 265 | 257 | func (x *Leaflet) GetHomogeneous() bool { | |
| 266 | 258 | ||
| 267 | 259 | cret := xLeafletGetHomogeneous(x.GoPointer()) | |
| 268 | - | ||
| 269 | 260 | return cret | |
| 270 | 261 | } | |
| 271 | 262 | ||
| @@ -275,7 +266,6 @@ var xLeafletGetModeTransitionDuration func(uintptr) uint | |||
| 275 | 266 | func (x *Leaflet) GetModeTransitionDuration() uint { | |
| 276 | 267 | ||
| 277 | 268 | cret := xLeafletGetModeTransitionDuration(x.GoPointer()) | |
| 278 | - | ||
| 279 | 269 | return cret | |
| 280 | 270 | } | |
| 281 | 271 | ||
| @@ -322,7 +312,6 @@ var xLeafletGetTransitionType func(uintptr) LeafletTransitionType | |||
| 322 | 312 | func (x *Leaflet) GetTransitionType() LeafletTransitionType { | |
| 323 | 313 | ||
| 324 | 314 | cret := xLeafletGetTransitionType(x.GoPointer()) | |
| 325 | - | ||
| 326 | 315 | return cret | |
| 327 | 316 | } | |
| 328 | 317 | ||
| @@ -349,7 +338,6 @@ var xLeafletGetVisibleChildName func(uintptr) string | |||
| 349 | 338 | func (x *Leaflet) GetVisibleChildName() string { | |
| 350 | 339 | ||
| 351 | 340 | cret := xLeafletGetVisibleChildName(x.GoPointer()) | |
| 352 | - | ||
| 353 | 341 | return cret | |
| 354 | 342 | } | |
| 355 | 343 | ||
| @@ -384,7 +372,6 @@ var xLeafletNavigate func(uintptr, NavigationDirection) bool | |||
| 384 | 372 | func (x *Leaflet) Navigate(DirectionVar NavigationDirection) bool { | |
| 385 | 373 | ||
| 386 | 374 | cret := xLeafletNavigate(x.GoPointer(), DirectionVar) | |
| 387 | - | ||
| 388 | 375 | return cret | |
| 389 | 376 | } | |
| 390 | 377 | ||
| @@ -814,7 +801,6 @@ func (x *Leaflet) GetPropertyVisibleChildName() string { | |||
| 814 | 801 | func (x *Leaflet) GetCancelProgress() float64 { | |
| 815 | 802 | ||
| 816 | 803 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 817 | - | ||
| 818 | 804 | return cret | |
| 819 | 805 | } | |
| 820 | 806 | ||
| @@ -824,7 +810,6 @@ func (x *Leaflet) GetCancelProgress() float64 { | |||
| 824 | 810 | func (x *Leaflet) GetDistance() float64 { | |
| 825 | 811 | ||
| 826 | 812 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 827 | - | ||
| 828 | 813 | return cret | |
| 829 | 814 | } | |
| 830 | 815 | ||
| @@ -832,7 +817,6 @@ func (x *Leaflet) GetDistance() float64 { | |||
| 832 | 817 | func (x *Leaflet) GetProgress() float64 { | |
| 833 | 818 | ||
| 834 | 819 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 835 | - | ||
| 836 | 820 | return cret | |
| 837 | 821 | } | |
| 838 | 822 | ||
| @@ -843,7 +827,6 @@ func (x *Leaflet) GetProgress() float64 { | |||
| 843 | 827 | func (x *Leaflet) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 844 | 828 | ||
| 845 | 829 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 846 | - | ||
| 847 | 830 | return cret | |
| 848 | 831 | } | |
| 849 | 832 | ||
| @@ -897,7 +880,6 @@ func (x *Leaflet) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 897 | 880 | func (x *Leaflet) GetAccessibleRole() gtk.AccessibleRole { | |
| 898 | 881 | ||
| 899 | 882 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 900 | - | ||
| 901 | 883 | return cret | |
| 902 | 884 | } | |
| 903 | 885 | ||
| @@ -923,7 +905,6 @@ func (x *Leaflet) GetAtContext() *gtk.ATContext { | |||
| 923 | 905 | func (x *Leaflet) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 924 | 906 | ||
| 925 | 907 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 926 | - | ||
| 927 | 908 | return cret | |
| 928 | 909 | } | |
| 929 | 910 | ||
| @@ -963,7 +944,6 @@ func (x *Leaflet) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 963 | 944 | func (x *Leaflet) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 964 | 945 | ||
| 965 | 946 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 966 | - | ||
| 967 | 947 | return cret | |
| 968 | 948 | } | |
| 969 | 949 | ||
| @@ -1140,7 +1120,6 @@ func (x *Leaflet) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSta | |||
| 1140 | 1120 | func (x *Leaflet) GetBuildableId() string { | |
| 1141 | 1121 | ||
| 1142 | 1122 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1143 | - | ||
| 1144 | 1123 | return cret | |
| 1145 | 1124 | } | |
| 1146 | 1125 | ||
| @@ -1148,7 +1127,6 @@ func (x *Leaflet) GetBuildableId() string { | |||
| 1148 | 1127 | func (x *Leaflet) GetOrientation() gtk.Orientation { | |
| 1149 | 1128 | ||
| 1150 | 1129 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 1151 | - | ||
| 1152 | 1130 | return cret | |
| 1153 | 1131 | } | |
| 1154 | 1132 | ||
| @@ -1199,7 +1177,6 @@ var xLeafletPageGetName func(uintptr) string | |||
| 1199 | 1177 | func (x *LeafletPage) GetName() string { | |
| 1200 | 1178 | ||
| 1201 | 1179 | cret := xLeafletPageGetName(x.GoPointer()) | |
| 1202 | - | ||
| 1203 | 1180 | return cret | |
| 1204 | 1181 | } | |
| 1205 | 1182 | ||
| @@ -1209,7 +1186,6 @@ var xLeafletPageGetNavigatable func(uintptr) bool | |||
| 1209 | 1186 | func (x *LeafletPage) GetNavigatable() bool { | |
| 1210 | 1187 | ||
| 1211 | 1188 | cret := xLeafletPageGetNavigatable(x.GoPointer()) | |
| 1212 | - | ||
| 1213 | 1189 | return cret | |
| 1214 | 1190 | } | |
| 1215 | 1191 | ||
| @@ -1218,12 +1194,11 @@ var xLeafletPageSetName func(uintptr, uintptr) | |||
| 1218 | 1194 | // Sets the name of the @self. | |
| 1219 | 1195 | func (x *LeafletPage) SetName(NameVar *string) { | |
| 1220 | 1196 | ||
| 1221 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 1197 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1198 | + | defer core.GFreeNullable(NameVarPtr) | |
| 1222 | 1199 | ||
| 1223 | 1200 | xLeafletPageSetName(x.GoPointer(), NameVarPtr) | |
| 1224 | 1201 | ||
| 1225 | - | runtime.KeepAlive(NameVarBytes) | |
| 1226 | - | ||
| 1227 | 1202 | } | |
| 1228 | 1203 | ||
| 1229 | 1204 | var xLeafletPageSetNavigatable func(uintptr, bool) | |
M v4/adw/adw-length-unit.go +0 -2
| @@ -41,7 +41,6 @@ var xLengthUnitFromPx func(LengthUnit, float64, uintptr) float64 | |||
| 41 | 41 | func LengthUnitFromPx(UnitVar LengthUnit, ValueVar float64, SettingsVar *gtk.Settings) float64 { | |
| 42 | 42 | ||
| 43 | 43 | cret := xLengthUnitFromPx(UnitVar, ValueVar, SettingsVar.GoPointer()) | |
| 44 | - | ||
| 45 | 44 | return cret | |
| 46 | 45 | } | |
| 47 | 46 | ||
| @@ -51,7 +50,6 @@ var xLengthUnitToPx func(LengthUnit, float64, uintptr) float64 | |||
| 51 | 50 | func LengthUnitToPx(UnitVar LengthUnit, ValueVar float64, SettingsVar *gtk.Settings) float64 { | |
| 52 | 51 | ||
| 53 | 52 | cret := xLengthUnitToPx(UnitVar, ValueVar, SettingsVar.GoPointer()) | |
| 54 | - | ||
| 55 | 53 | return cret | |
| 56 | 54 | } | |
| 57 | 55 | ||
M v4/adw/adw-main.go +0 -1
| @@ -32,7 +32,6 @@ var xIsInitialized func() bool | |||
| 32 | 32 | func IsInitialized() bool { | |
| 33 | 33 | ||
| 34 | 34 | cret := xIsInitialized() | |
| 35 | - | ||
| 36 | 35 | return cret | |
| 37 | 36 | } | |
| 38 | 37 | ||
M v4/adw/adw-message-dialog.go +8 -28
| @@ -3,7 +3,6 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "fmt" | |
| 6 | - | "runtime" | |
| 7 | 6 | "structs" | |
| 8 | 7 | "unsafe" | |
| 9 | 8 | ||
| @@ -231,16 +230,14 @@ var xNewMessageDialog func(uintptr, uintptr, uintptr) uintptr | |||
| 231 | 230 | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar *string, BodyVar *string) *MessageDialog { | |
| 232 | 231 | var cls *MessageDialog | |
| 233 | 232 | ||
| 234 | - | HeadingVarPtr, HeadingVarBytes := core.NullableStringToPtr(HeadingVar) | |
| 233 | + | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 234 | + | defer core.GFreeNullable(HeadingVarPtr) | |
| 235 | 235 | ||
| 236 | - | BodyVarPtr, BodyVarBytes := core.NullableStringToPtr(BodyVar) | |
| 236 | + | BodyVarPtr := core.GStrdupNullable(BodyVar) | |
| 237 | + | defer core.GFreeNullable(BodyVarPtr) | |
| 237 | 238 | ||
| 238 | 239 | cret := xNewMessageDialog(ParentVar.GoPointer(), HeadingVarPtr, BodyVarPtr) | |
| 239 | 240 | ||
| 240 | - | runtime.KeepAlive(HeadingVarBytes) | |
| 241 | - | ||
| 242 | - | runtime.KeepAlive(BodyVarBytes) | |
| 243 | - | ||
| 244 | 241 | if cret == 0 { | |
| 245 | 242 | return nil | |
| 246 | 243 | } | |
| @@ -329,7 +326,6 @@ var xMessageDialogChooseFinish func(uintptr, uintptr) string | |||
| 329 | 326 | func (x *MessageDialog) ChooseFinish(ResultVar gio.AsyncResult) string { | |
| 330 | 327 | ||
| 331 | 328 | cret := xMessageDialogChooseFinish(x.GoPointer(), ResultVar.GoPointer()) | |
| 332 | - | ||
| 333 | 329 | return cret | |
| 334 | 330 | } | |
| 335 | 331 | ||
| @@ -395,7 +391,6 @@ var xMessageDialogGetBody func(uintptr) string | |||
| 395 | 391 | func (x *MessageDialog) GetBody() string { | |
| 396 | 392 | ||
| 397 | 393 | cret := xMessageDialogGetBody(x.GoPointer()) | |
| 398 | - | ||
| 399 | 394 | return cret | |
| 400 | 395 | } | |
| 401 | 396 | ||
| @@ -405,7 +400,6 @@ var xMessageDialogGetBodyUseMarkup func(uintptr) bool | |||
| 405 | 400 | func (x *MessageDialog) GetBodyUseMarkup() bool { | |
| 406 | 401 | ||
| 407 | 402 | cret := xMessageDialogGetBodyUseMarkup(x.GoPointer()) | |
| 408 | - | ||
| 409 | 403 | return cret | |
| 410 | 404 | } | |
| 411 | 405 | ||
| @@ -415,7 +409,6 @@ var xMessageDialogGetCloseResponse func(uintptr) string | |||
| 415 | 409 | func (x *MessageDialog) GetCloseResponse() string { | |
| 416 | 410 | ||
| 417 | 411 | cret := xMessageDialogGetCloseResponse(x.GoPointer()) | |
| 418 | - | ||
| 419 | 412 | return cret | |
| 420 | 413 | } | |
| 421 | 414 | ||
| @@ -425,7 +418,6 @@ var xMessageDialogGetDefaultResponse func(uintptr) string | |||
| 425 | 418 | func (x *MessageDialog) GetDefaultResponse() string { | |
| 426 | 419 | ||
| 427 | 420 | cret := xMessageDialogGetDefaultResponse(x.GoPointer()) | |
| 428 | - | ||
| 429 | 421 | return cret | |
| 430 | 422 | } | |
| 431 | 423 | ||
| @@ -452,7 +444,6 @@ var xMessageDialogGetHeading func(uintptr) string | |||
| 452 | 444 | func (x *MessageDialog) GetHeading() string { | |
| 453 | 445 | ||
| 454 | 446 | cret := xMessageDialogGetHeading(x.GoPointer()) | |
| 455 | - | ||
| 456 | 447 | return cret | |
| 457 | 448 | } | |
| 458 | 449 | ||
| @@ -462,7 +453,6 @@ var xMessageDialogGetHeadingUseMarkup func(uintptr) bool | |||
| 462 | 453 | func (x *MessageDialog) GetHeadingUseMarkup() bool { | |
| 463 | 454 | ||
| 464 | 455 | cret := xMessageDialogGetHeadingUseMarkup(x.GoPointer()) | |
| 465 | - | ||
| 466 | 456 | return cret | |
| 467 | 457 | } | |
| 468 | 458 | ||
| @@ -474,7 +464,6 @@ var xMessageDialogGetResponseAppearance func(uintptr, string) ResponseAppearance | |||
| 474 | 464 | func (x *MessageDialog) GetResponseAppearance(ResponseVar string) ResponseAppearance { | |
| 475 | 465 | ||
| 476 | 466 | cret := xMessageDialogGetResponseAppearance(x.GoPointer(), ResponseVar) | |
| 477 | - | ||
| 478 | 467 | return cret | |
| 479 | 468 | } | |
| 480 | 469 | ||
| @@ -486,7 +475,6 @@ var xMessageDialogGetResponseEnabled func(uintptr, string) bool | |||
| 486 | 475 | func (x *MessageDialog) GetResponseEnabled(ResponseVar string) bool { | |
| 487 | 476 | ||
| 488 | 477 | cret := xMessageDialogGetResponseEnabled(x.GoPointer(), ResponseVar) | |
| 489 | - | ||
| 490 | 478 | return cret | |
| 491 | 479 | } | |
| 492 | 480 | ||
| @@ -498,7 +486,6 @@ var xMessageDialogGetResponseLabel func(uintptr, string) string | |||
| 498 | 486 | func (x *MessageDialog) GetResponseLabel(ResponseVar string) string { | |
| 499 | 487 | ||
| 500 | 488 | cret := xMessageDialogGetResponseLabel(x.GoPointer(), ResponseVar) | |
| 501 | - | ||
| 502 | 489 | return cret | |
| 503 | 490 | } | |
| 504 | 491 | ||
| @@ -508,7 +495,6 @@ var xMessageDialogHasResponse func(uintptr, string) bool | |||
| 508 | 495 | func (x *MessageDialog) HasResponse(ResponseVar string) bool { | |
| 509 | 496 | ||
| 510 | 497 | cret := xMessageDialogHasResponse(x.GoPointer(), ResponseVar) | |
| 511 | - | ||
| 512 | 498 | return cret | |
| 513 | 499 | } | |
| 514 | 500 | ||
| @@ -581,12 +567,11 @@ var xMessageDialogSetDefaultResponse func(uintptr, uintptr) | |||
| 581 | 567 | // See [property@Gtk.Window:default-widget]. | |
| 582 | 568 | func (x *MessageDialog) SetDefaultResponse(ResponseVar *string) { | |
| 583 | 569 | ||
| 584 | - | ResponseVarPtr, ResponseVarBytes := core.NullableStringToPtr(ResponseVar) | |
| 570 | + | ResponseVarPtr := core.GStrdupNullable(ResponseVar) | |
| 571 | + | defer core.GFreeNullable(ResponseVarPtr) | |
| 585 | 572 | ||
| 586 | 573 | xMessageDialogSetDefaultResponse(x.GoPointer(), ResponseVarPtr) | |
| 587 | 574 | ||
| 588 | - | runtime.KeepAlive(ResponseVarBytes) | |
| 589 | - | ||
| 590 | 575 | } | |
| 591 | 576 | ||
| 592 | 577 | var xMessageDialogSetExtraChild func(uintptr, uintptr) | |
| @@ -605,12 +590,11 @@ var xMessageDialogSetHeading func(uintptr, uintptr) | |||
| 605 | 590 | // Sets the heading of @self. | |
| 606 | 591 | func (x *MessageDialog) SetHeading(HeadingVar *string) { | |
| 607 | 592 | ||
| 608 | - | HeadingVarPtr, HeadingVarBytes := core.NullableStringToPtr(HeadingVar) | |
| 593 | + | HeadingVarPtr := core.GStrdupNullable(HeadingVar) | |
| 594 | + | defer core.GFreeNullable(HeadingVarPtr) | |
| 609 | 595 | ||
| 610 | 596 | xMessageDialogSetHeading(x.GoPointer(), HeadingVarPtr) | |
| 611 | 597 | ||
| 612 | - | runtime.KeepAlive(HeadingVarBytes) | |
| 613 | - | ||
| 614 | 598 | } | |
| 615 | 599 | ||
| 616 | 600 | var xMessageDialogSetHeadingUseMarkup func(uintptr, bool) | |
| @@ -924,7 +908,6 @@ func (x *MessageDialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 924 | 908 | func (x *MessageDialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 925 | 909 | ||
| 926 | 910 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 927 | - | ||
| 928 | 911 | return cret | |
| 929 | 912 | } | |
| 930 | 913 | ||
| @@ -950,7 +933,6 @@ func (x *MessageDialog) GetAtContext() *gtk.ATContext { | |||
| 950 | 933 | func (x *MessageDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 951 | 934 | ||
| 952 | 935 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 953 | - | ||
| 954 | 936 | return cret | |
| 955 | 937 | } | |
| 956 | 938 | ||
| @@ -990,7 +972,6 @@ func (x *MessageDialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 990 | 972 | func (x *MessageDialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 991 | 973 | ||
| 992 | 974 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 993 | - | ||
| 994 | 975 | return cret | |
| 995 | 976 | } | |
| 996 | 977 | ||
| @@ -1167,7 +1148,6 @@ func (x *MessageDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessi | |||
| 1167 | 1148 | func (x *MessageDialog) GetBuildableId() string { | |
| 1168 | 1149 | ||
| 1169 | 1150 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1170 | - | ||
| 1171 | 1151 | return cret | |
| 1172 | 1152 | } | |
| 1173 | 1153 | ||
M v4/adw/adw-multi-layout-view.go +0 -5
| @@ -205,7 +205,6 @@ var xMultiLayoutViewGetLayoutName func(uintptr) string | |||
| 205 | 205 | func (x *MultiLayoutView) GetLayoutName() string { | |
| 206 | 206 | ||
| 207 | 207 | cret := xMultiLayoutViewGetLayoutName(x.GoPointer()) | |
| 208 | - | ||
| 209 | 208 | return cret | |
| 210 | 209 | } | |
| 211 | 210 | ||
| @@ -316,7 +315,6 @@ func (x *MultiLayoutView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 316 | 315 | func (x *MultiLayoutView) GetAccessibleRole() gtk.AccessibleRole { | |
| 317 | 316 | ||
| 318 | 317 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 319 | - | ||
| 320 | 318 | return cret | |
| 321 | 319 | } | |
| 322 | 320 | ||
| @@ -342,7 +340,6 @@ func (x *MultiLayoutView) GetAtContext() *gtk.ATContext { | |||
| 342 | 340 | func (x *MultiLayoutView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 343 | 341 | ||
| 344 | 342 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 345 | - | ||
| 346 | 343 | return cret | |
| 347 | 344 | } | |
| 348 | 345 | ||
| @@ -382,7 +379,6 @@ func (x *MultiLayoutView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 382 | 379 | func (x *MultiLayoutView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 383 | 380 | ||
| 384 | 381 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 385 | - | ||
| 386 | 382 | return cret | |
| 387 | 383 | } | |
| 388 | 384 | ||
| @@ -559,7 +555,6 @@ func (x *MultiLayoutView) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acces | |||
| 559 | 555 | func (x *MultiLayoutView) GetBuildableId() string { | |
| 560 | 556 | ||
| 561 | 557 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 562 | - | ||
| 563 | 558 | return cret | |
| 564 | 559 | } | |
| 565 | 560 | ||
M v4/adw/adw-navigation-split-view.go +0 -11
| @@ -205,7 +205,6 @@ var xNavigationSplitViewGetCollapsed func(uintptr) bool | |||
| 205 | 205 | func (x *NavigationSplitView) GetCollapsed() bool { | |
| 206 | 206 | ||
| 207 | 207 | cret := xNavigationSplitViewGetCollapsed(x.GoPointer()) | |
| 208 | - | ||
| 209 | 208 | return cret | |
| 210 | 209 | } | |
| 211 | 210 | ||
| @@ -232,7 +231,6 @@ var xNavigationSplitViewGetMaxSidebarWidth func(uintptr) float64 | |||
| 232 | 231 | func (x *NavigationSplitView) GetMaxSidebarWidth() float64 { | |
| 233 | 232 | ||
| 234 | 233 | cret := xNavigationSplitViewGetMaxSidebarWidth(x.GoPointer()) | |
| 235 | - | ||
| 236 | 234 | return cret | |
| 237 | 235 | } | |
| 238 | 236 | ||
| @@ -242,7 +240,6 @@ var xNavigationSplitViewGetMinSidebarWidth func(uintptr) float64 | |||
| 242 | 240 | func (x *NavigationSplitView) GetMinSidebarWidth() float64 { | |
| 243 | 241 | ||
| 244 | 242 | cret := xNavigationSplitViewGetMinSidebarWidth(x.GoPointer()) | |
| 245 | - | ||
| 246 | 243 | return cret | |
| 247 | 244 | } | |
| 248 | 245 | ||
| @@ -252,7 +249,6 @@ var xNavigationSplitViewGetShowContent func(uintptr) bool | |||
| 252 | 249 | func (x *NavigationSplitView) GetShowContent() bool { | |
| 253 | 250 | ||
| 254 | 251 | cret := xNavigationSplitViewGetShowContent(x.GoPointer()) | |
| 255 | - | ||
| 256 | 252 | return cret | |
| 257 | 253 | } | |
| 258 | 254 | ||
| @@ -279,7 +275,6 @@ var xNavigationSplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||
| 279 | 275 | func (x *NavigationSplitView) GetSidebarPosition() gtk.PackType { | |
| 280 | 276 | ||
| 281 | 277 | cret := xNavigationSplitViewGetSidebarPosition(x.GoPointer()) | |
| 282 | - | ||
| 283 | 278 | return cret | |
| 284 | 279 | } | |
| 285 | 280 | ||
| @@ -289,7 +284,6 @@ var xNavigationSplitViewGetSidebarWidthFraction func(uintptr) float64 | |||
| 289 | 284 | func (x *NavigationSplitView) GetSidebarWidthFraction() float64 { | |
| 290 | 285 | ||
| 291 | 286 | cret := xNavigationSplitViewGetSidebarWidthFraction(x.GoPointer()) | |
| 292 | - | ||
| 293 | 287 | return cret | |
| 294 | 288 | } | |
| 295 | 289 | ||
| @@ -299,7 +293,6 @@ var xNavigationSplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||
| 299 | 293 | func (x *NavigationSplitView) GetSidebarWidthUnit() LengthUnit { | |
| 300 | 294 | ||
| 301 | 295 | cret := xNavigationSplitViewGetSidebarWidthUnit(x.GoPointer()) | |
| 302 | - | ||
| 303 | 296 | return cret | |
| 304 | 297 | } | |
| 305 | 298 | ||
| @@ -619,7 +612,6 @@ func (x *NavigationSplitView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 619 | 612 | func (x *NavigationSplitView) GetAccessibleRole() gtk.AccessibleRole { | |
| 620 | 613 | ||
| 621 | 614 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 622 | - | ||
| 623 | 615 | return cret | |
| 624 | 616 | } | |
| 625 | 617 | ||
| @@ -645,7 +637,6 @@ func (x *NavigationSplitView) GetAtContext() *gtk.ATContext { | |||
| 645 | 637 | func (x *NavigationSplitView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 646 | 638 | ||
| 647 | 639 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 648 | - | ||
| 649 | 640 | return cret | |
| 650 | 641 | } | |
| 651 | 642 | ||
| @@ -685,7 +676,6 @@ func (x *NavigationSplitView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 685 | 676 | func (x *NavigationSplitView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 686 | 677 | ||
| 687 | 678 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 688 | - | ||
| 689 | 679 | return cret | |
| 690 | 680 | } | |
| 691 | 681 | ||
| @@ -862,7 +852,6 @@ func (x *NavigationSplitView) UpdateStateValue(NStatesVar int, StatesVar []gtk.A | |||
| 862 | 852 | func (x *NavigationSplitView) GetBuildableId() string { | |
| 863 | 853 | ||
| 864 | 854 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 865 | - | ||
| 866 | 855 | return cret | |
| 867 | 856 | } | |
| 868 | 857 | ||
M v4/adw/adw-navigation-view.go +2 -27
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -220,7 +219,6 @@ var xNavigationPageGetCanPop func(uintptr) bool | |||
| 220 | 219 | func (x *NavigationPage) GetCanPop() bool { | |
| 221 | 220 | ||
| 222 | 221 | cret := xNavigationPageGetCanPop(x.GoPointer()) | |
| 223 | - | ||
| 224 | 222 | return cret | |
| 225 | 223 | } | |
| 226 | 224 | ||
| @@ -247,7 +245,6 @@ var xNavigationPageGetTag func(uintptr) string | |||
| 247 | 245 | func (x *NavigationPage) GetTag() string { | |
| 248 | 246 | ||
| 249 | 247 | cret := xNavigationPageGetTag(x.GoPointer()) | |
| 250 | - | ||
| 251 | 248 | return cret | |
| 252 | 249 | } | |
| 253 | 250 | ||
| @@ -257,7 +254,6 @@ var xNavigationPageGetTitle func(uintptr) string | |||
| 257 | 254 | func (x *NavigationPage) GetTitle() string { | |
| 258 | 255 | ||
| 259 | 256 | cret := xNavigationPageGetTitle(x.GoPointer()) | |
| 260 | - | ||
| 261 | 257 | return cret | |
| 262 | 258 | } | |
| 263 | 259 | ||
| @@ -302,12 +298,11 @@ var xNavigationPageSetTag func(uintptr, uintptr) | |||
| 302 | 298 | // The tag also must be set to use the `navigation.push` action. | |
| 303 | 299 | func (x *NavigationPage) SetTag(TagVar *string) { | |
| 304 | 300 | ||
| 305 | - | TagVarPtr, TagVarBytes := core.NullableStringToPtr(TagVar) | |
| 301 | + | TagVarPtr := core.GStrdupNullable(TagVar) | |
| 302 | + | defer core.GFreeNullable(TagVarPtr) | |
| 306 | 303 | ||
| 307 | 304 | xNavigationPageSetTag(x.GoPointer(), TagVarPtr) | |
| 308 | 305 | ||
| 309 | - | runtime.KeepAlive(TagVarBytes) | |
| 310 | - | ||
| 311 | 306 | } | |
| 312 | 307 | ||
| 313 | 308 | var xNavigationPageSetTitle func(uintptr, string) | |
| @@ -573,7 +568,6 @@ func (x *NavigationPage) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 573 | 568 | func (x *NavigationPage) GetAccessibleRole() gtk.AccessibleRole { | |
| 574 | 569 | ||
| 575 | 570 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 576 | - | ||
| 577 | 571 | return cret | |
| 578 | 572 | } | |
| 579 | 573 | ||
| @@ -599,7 +593,6 @@ func (x *NavigationPage) GetAtContext() *gtk.ATContext { | |||
| 599 | 593 | func (x *NavigationPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 600 | 594 | ||
| 601 | 595 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 602 | - | ||
| 603 | 596 | return cret | |
| 604 | 597 | } | |
| 605 | 598 | ||
| @@ -639,7 +632,6 @@ func (x *NavigationPage) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 639 | 632 | func (x *NavigationPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 640 | 633 | ||
| 641 | 634 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 642 | - | ||
| 643 | 635 | return cret | |
| 644 | 636 | } | |
| 645 | 637 | ||
| @@ -816,7 +808,6 @@ func (x *NavigationPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.Access | |||
| 816 | 808 | func (x *NavigationPage) GetBuildableId() string { | |
| 817 | 809 | ||
| 818 | 810 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 819 | - | ||
| 820 | 811 | return cret | |
| 821 | 812 | } | |
| 822 | 813 | ||
| @@ -1058,7 +1049,6 @@ var xNavigationViewGetAnimateTransitions func(uintptr) bool | |||
| 1058 | 1049 | func (x *NavigationView) GetAnimateTransitions() bool { | |
| 1059 | 1050 | ||
| 1060 | 1051 | cret := xNavigationViewGetAnimateTransitions(x.GoPointer()) | |
| 1061 | - | ||
| 1062 | 1052 | return cret | |
| 1063 | 1053 | } | |
| 1064 | 1054 | ||
| @@ -1068,7 +1058,6 @@ var xNavigationViewGetHhomogeneous func(uintptr) bool | |||
| 1068 | 1058 | func (x *NavigationView) GetHhomogeneous() bool { | |
| 1069 | 1059 | ||
| 1070 | 1060 | cret := xNavigationViewGetHhomogeneous(x.GoPointer()) | |
| 1071 | - | ||
| 1072 | 1061 | return cret | |
| 1073 | 1062 | } | |
| 1074 | 1063 | ||
| @@ -1098,7 +1087,6 @@ var xNavigationViewGetPopOnEscape func(uintptr) bool | |||
| 1098 | 1087 | func (x *NavigationView) GetPopOnEscape() bool { | |
| 1099 | 1088 | ||
| 1100 | 1089 | cret := xNavigationViewGetPopOnEscape(x.GoPointer()) | |
| 1101 | - | ||
| 1102 | 1090 | return cret | |
| 1103 | 1091 | } | |
| 1104 | 1092 | ||
| @@ -1130,7 +1118,6 @@ var xNavigationViewGetVhomogeneous func(uintptr) bool | |||
| 1130 | 1118 | func (x *NavigationView) GetVhomogeneous() bool { | |
| 1131 | 1119 | ||
| 1132 | 1120 | cret := xNavigationViewGetVhomogeneous(x.GoPointer()) | |
| 1133 | - | ||
| 1134 | 1121 | return cret | |
| 1135 | 1122 | } | |
| 1136 | 1123 | ||
| @@ -1157,7 +1144,6 @@ var xNavigationViewGetVisiblePageTag func(uintptr) string | |||
| 1157 | 1144 | func (x *NavigationView) GetVisiblePageTag() string { | |
| 1158 | 1145 | ||
| 1159 | 1146 | cret := xNavigationViewGetVisiblePageTag(x.GoPointer()) | |
| 1160 | - | ||
| 1161 | 1147 | return cret | |
| 1162 | 1148 | } | |
| 1163 | 1149 | ||
| @@ -1177,7 +1163,6 @@ var xNavigationViewPop func(uintptr) bool | |||
| 1177 | 1163 | func (x *NavigationView) Pop() bool { | |
| 1178 | 1164 | ||
| 1179 | 1165 | cret := xNavigationViewPop(x.GoPointer()) | |
| 1180 | - | ||
| 1181 | 1166 | return cret | |
| 1182 | 1167 | } | |
| 1183 | 1168 | ||
| @@ -1197,7 +1182,6 @@ var xNavigationViewPopToPage func(uintptr, uintptr) bool | |||
| 1197 | 1182 | func (x *NavigationView) PopToPage(PageVar *NavigationPage) bool { | |
| 1198 | 1183 | ||
| 1199 | 1184 | cret := xNavigationViewPopToPage(x.GoPointer(), PageVar.GoPointer()) | |
| 1200 | - | ||
| 1201 | 1185 | return cret | |
| 1202 | 1186 | } | |
| 1203 | 1187 | ||
| @@ -1216,7 +1200,6 @@ var xNavigationViewPopToTag func(uintptr, string) bool | |||
| 1216 | 1200 | func (x *NavigationView) PopToTag(TagVar string) bool { | |
| 1217 | 1201 | ||
| 1218 | 1202 | cret := xNavigationViewPopToTag(x.GoPointer(), TagVar) | |
| 1219 | - | ||
| 1220 | 1203 | return cret | |
| 1221 | 1204 | } | |
| 1222 | 1205 | ||
| @@ -1606,7 +1589,6 @@ func (x *NavigationView) ConnectReplaced(cb *func(NavigationView)) uint { | |||
| 1606 | 1589 | func (x *NavigationView) GetCancelProgress() float64 { | |
| 1607 | 1590 | ||
| 1608 | 1591 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 1609 | - | ||
| 1610 | 1592 | return cret | |
| 1611 | 1593 | } | |
| 1612 | 1594 | ||
| @@ -1616,7 +1598,6 @@ func (x *NavigationView) GetCancelProgress() float64 { | |||
| 1616 | 1598 | func (x *NavigationView) GetDistance() float64 { | |
| 1617 | 1599 | ||
| 1618 | 1600 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 1619 | - | ||
| 1620 | 1601 | return cret | |
| 1621 | 1602 | } | |
| 1622 | 1603 | ||
| @@ -1624,7 +1605,6 @@ func (x *NavigationView) GetDistance() float64 { | |||
| 1624 | 1605 | func (x *NavigationView) GetProgress() float64 { | |
| 1625 | 1606 | ||
| 1626 | 1607 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 1627 | - | ||
| 1628 | 1608 | return cret | |
| 1629 | 1609 | } | |
| 1630 | 1610 | ||
| @@ -1635,7 +1615,6 @@ func (x *NavigationView) GetProgress() float64 { | |||
| 1635 | 1615 | func (x *NavigationView) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 1636 | 1616 | ||
| 1637 | 1617 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 1638 | - | ||
| 1639 | 1618 | return cret | |
| 1640 | 1619 | } | |
| 1641 | 1620 | ||
| @@ -1689,7 +1668,6 @@ func (x *NavigationView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 1689 | 1668 | func (x *NavigationView) GetAccessibleRole() gtk.AccessibleRole { | |
| 1690 | 1669 | ||
| 1691 | 1670 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 1692 | - | ||
| 1693 | 1671 | return cret | |
| 1694 | 1672 | } | |
| 1695 | 1673 | ||
| @@ -1715,7 +1693,6 @@ func (x *NavigationView) GetAtContext() *gtk.ATContext { | |||
| 1715 | 1693 | func (x *NavigationView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 1716 | 1694 | ||
| 1717 | 1695 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 1718 | - | ||
| 1719 | 1696 | return cret | |
| 1720 | 1697 | } | |
| 1721 | 1698 | ||
| @@ -1755,7 +1732,6 @@ func (x *NavigationView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 1755 | 1732 | func (x *NavigationView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 1756 | 1733 | ||
| 1757 | 1734 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 1758 | - | ||
| 1759 | 1735 | return cret | |
| 1760 | 1736 | } | |
| 1761 | 1737 | ||
| @@ -1932,7 +1908,6 @@ func (x *NavigationView) UpdateStateValue(NStatesVar int, StatesVar []gtk.Access | |||
| 1932 | 1908 | func (x *NavigationView) GetBuildableId() string { | |
| 1933 | 1909 | ||
| 1934 | 1910 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1935 | - | ||
| 1936 | 1911 | return cret | |
| 1937 | 1912 | } | |
| 1938 | 1913 | ||
M v4/adw/adw-overlay-split-view.go +0 -18
| @@ -203,7 +203,6 @@ var xOverlaySplitViewGetCollapsed func(uintptr) bool | |||
| 203 | 203 | func (x *OverlaySplitView) GetCollapsed() bool { | |
| 204 | 204 | ||
| 205 | 205 | cret := xOverlaySplitViewGetCollapsed(x.GoPointer()) | |
| 206 | - | ||
| 207 | 206 | return cret | |
| 208 | 207 | } | |
| 209 | 208 | ||
| @@ -230,7 +229,6 @@ var xOverlaySplitViewGetEnableHideGesture func(uintptr) bool | |||
| 230 | 229 | func (x *OverlaySplitView) GetEnableHideGesture() bool { | |
| 231 | 230 | ||
| 232 | 231 | cret := xOverlaySplitViewGetEnableHideGesture(x.GoPointer()) | |
| 233 | - | ||
| 234 | 232 | return cret | |
| 235 | 233 | } | |
| 236 | 234 | ||
| @@ -240,7 +238,6 @@ var xOverlaySplitViewGetEnableShowGesture func(uintptr) bool | |||
| 240 | 238 | func (x *OverlaySplitView) GetEnableShowGesture() bool { | |
| 241 | 239 | ||
| 242 | 240 | cret := xOverlaySplitViewGetEnableShowGesture(x.GoPointer()) | |
| 243 | - | ||
| 244 | 241 | return cret | |
| 245 | 242 | } | |
| 246 | 243 | ||
| @@ -250,7 +247,6 @@ var xOverlaySplitViewGetMaxSidebarWidth func(uintptr) float64 | |||
| 250 | 247 | func (x *OverlaySplitView) GetMaxSidebarWidth() float64 { | |
| 251 | 248 | ||
| 252 | 249 | cret := xOverlaySplitViewGetMaxSidebarWidth(x.GoPointer()) | |
| 253 | - | ||
| 254 | 250 | return cret | |
| 255 | 251 | } | |
| 256 | 252 | ||
| @@ -260,7 +256,6 @@ var xOverlaySplitViewGetMinSidebarWidth func(uintptr) float64 | |||
| 260 | 256 | func (x *OverlaySplitView) GetMinSidebarWidth() float64 { | |
| 261 | 257 | ||
| 262 | 258 | cret := xOverlaySplitViewGetMinSidebarWidth(x.GoPointer()) | |
| 263 | - | ||
| 264 | 259 | return cret | |
| 265 | 260 | } | |
| 266 | 261 | ||
| @@ -270,7 +265,6 @@ var xOverlaySplitViewGetPinSidebar func(uintptr) bool | |||
| 270 | 265 | func (x *OverlaySplitView) GetPinSidebar() bool { | |
| 271 | 266 | ||
| 272 | 267 | cret := xOverlaySplitViewGetPinSidebar(x.GoPointer()) | |
| 273 | - | ||
| 274 | 268 | return cret | |
| 275 | 269 | } | |
| 276 | 270 | ||
| @@ -280,7 +274,6 @@ var xOverlaySplitViewGetShowSidebar func(uintptr) bool | |||
| 280 | 274 | func (x *OverlaySplitView) GetShowSidebar() bool { | |
| 281 | 275 | ||
| 282 | 276 | cret := xOverlaySplitViewGetShowSidebar(x.GoPointer()) | |
| 283 | - | ||
| 284 | 277 | return cret | |
| 285 | 278 | } | |
| 286 | 279 | ||
| @@ -307,7 +300,6 @@ var xOverlaySplitViewGetSidebarPosition func(uintptr) gtk.PackType | |||
| 307 | 300 | func (x *OverlaySplitView) GetSidebarPosition() gtk.PackType { | |
| 308 | 301 | ||
| 309 | 302 | cret := xOverlaySplitViewGetSidebarPosition(x.GoPointer()) | |
| 310 | - | ||
| 311 | 303 | return cret | |
| 312 | 304 | } | |
| 313 | 305 | ||
| @@ -317,7 +309,6 @@ var xOverlaySplitViewGetSidebarWidthFraction func(uintptr) float64 | |||
| 317 | 309 | func (x *OverlaySplitView) GetSidebarWidthFraction() float64 { | |
| 318 | 310 | ||
| 319 | 311 | cret := xOverlaySplitViewGetSidebarWidthFraction(x.GoPointer()) | |
| 320 | - | ||
| 321 | 312 | return cret | |
| 322 | 313 | } | |
| 323 | 314 | ||
| @@ -327,7 +318,6 @@ var xOverlaySplitViewGetSidebarWidthUnit func(uintptr) LengthUnit | |||
| 327 | 318 | func (x *OverlaySplitView) GetSidebarWidthUnit() LengthUnit { | |
| 328 | 319 | ||
| 329 | 320 | cret := xOverlaySplitViewGetSidebarWidthUnit(x.GoPointer()) | |
| 330 | - | ||
| 331 | 321 | return cret | |
| 332 | 322 | } | |
| 333 | 323 | ||
| @@ -684,7 +674,6 @@ func (x *OverlaySplitView) GetPropertySidebarWidthFraction() float64 { | |||
| 684 | 674 | func (x *OverlaySplitView) GetCancelProgress() float64 { | |
| 685 | 675 | ||
| 686 | 676 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 687 | - | ||
| 688 | 677 | return cret | |
| 689 | 678 | } | |
| 690 | 679 | ||
| @@ -694,7 +683,6 @@ func (x *OverlaySplitView) GetCancelProgress() float64 { | |||
| 694 | 683 | func (x *OverlaySplitView) GetDistance() float64 { | |
| 695 | 684 | ||
| 696 | 685 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 697 | - | ||
| 698 | 686 | return cret | |
| 699 | 687 | } | |
| 700 | 688 | ||
| @@ -702,7 +690,6 @@ func (x *OverlaySplitView) GetDistance() float64 { | |||
| 702 | 690 | func (x *OverlaySplitView) GetProgress() float64 { | |
| 703 | 691 | ||
| 704 | 692 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 705 | - | ||
| 706 | 693 | return cret | |
| 707 | 694 | } | |
| 708 | 695 | ||
| @@ -713,7 +700,6 @@ func (x *OverlaySplitView) GetProgress() float64 { | |||
| 713 | 700 | func (x *OverlaySplitView) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 714 | 701 | ||
| 715 | 702 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 716 | - | ||
| 717 | 703 | return cret | |
| 718 | 704 | } | |
| 719 | 705 | ||
| @@ -767,7 +753,6 @@ func (x *OverlaySplitView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 767 | 753 | func (x *OverlaySplitView) GetAccessibleRole() gtk.AccessibleRole { | |
| 768 | 754 | ||
| 769 | 755 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 770 | - | ||
| 771 | 756 | return cret | |
| 772 | 757 | } | |
| 773 | 758 | ||
| @@ -793,7 +778,6 @@ func (x *OverlaySplitView) GetAtContext() *gtk.ATContext { | |||
| 793 | 778 | func (x *OverlaySplitView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 794 | 779 | ||
| 795 | 780 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 796 | - | ||
| 797 | 781 | return cret | |
| 798 | 782 | } | |
| 799 | 783 | ||
| @@ -833,7 +817,6 @@ func (x *OverlaySplitView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 833 | 817 | func (x *OverlaySplitView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 834 | 818 | ||
| 835 | 819 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 836 | - | ||
| 837 | 820 | return cret | |
| 838 | 821 | } | |
| 839 | 822 | ||
| @@ -1010,7 +993,6 @@ func (x *OverlaySplitView) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acce | |||
| 1010 | 993 | func (x *OverlaySplitView) GetBuildableId() string { | |
| 1011 | 994 | ||
| 1012 | 995 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1013 | - | ||
| 1014 | 996 | return cret | |
| 1015 | 997 | } | |
| 1016 | 998 | ||
M v4/adw/adw-password-entry-row.go +2 -20
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -124,7 +123,6 @@ func (x *PasswordEntryRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 124 | 123 | func (x *PasswordEntryRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 125 | 124 | ||
| 126 | 125 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 127 | - | ||
| 128 | 126 | return cret | |
| 129 | 127 | } | |
| 130 | 128 | ||
| @@ -150,7 +148,6 @@ func (x *PasswordEntryRow) GetAtContext() *gtk.ATContext { | |||
| 150 | 148 | func (x *PasswordEntryRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 151 | 149 | ||
| 152 | 150 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 153 | - | ||
| 154 | 151 | return cret | |
| 155 | 152 | } | |
| 156 | 153 | ||
| @@ -190,7 +187,6 @@ func (x *PasswordEntryRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 190 | 187 | func (x *PasswordEntryRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 191 | 188 | ||
| 192 | 189 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 193 | - | ||
| 194 | 190 | return cret | |
| 195 | 191 | } | |
| 196 | 192 | ||
| @@ -364,7 +360,6 @@ func (x *PasswordEntryRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acce | |||
| 364 | 360 | func (x *PasswordEntryRow) GetActionName() string { | |
| 365 | 361 | ||
| 366 | 362 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 367 | - | ||
| 368 | 363 | return cret | |
| 369 | 364 | } | |
| 370 | 365 | ||
| @@ -372,7 +367,6 @@ func (x *PasswordEntryRow) GetActionName() string { | |||
| 372 | 367 | func (x *PasswordEntryRow) GetActionTargetValue() *glib.Variant { | |
| 373 | 368 | ||
| 374 | 369 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 375 | - | ||
| 376 | 370 | return cret | |
| 377 | 371 | } | |
| 378 | 372 | ||
| @@ -391,12 +385,11 @@ func (x *PasswordEntryRow) GetActionTargetValue() *glib.Variant { | |||
| 391 | 385 | // associated with the window. | |
| 392 | 386 | func (x *PasswordEntryRow) SetActionName(ActionNameVar *string) { | |
| 393 | 387 | ||
| 394 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 388 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 389 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 395 | 390 | ||
| 396 | 391 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 397 | 392 | ||
| 398 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 399 | - | ||
| 400 | 393 | } | |
| 401 | 394 | ||
| 402 | 395 | // Sets the target of an actionable widget. | |
| @@ -456,7 +449,6 @@ func (x *PasswordEntryRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 456 | 449 | func (x *PasswordEntryRow) GetBuildableId() string { | |
| 457 | 450 | ||
| 458 | 451 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 459 | - | ||
| 460 | 452 | return cret | |
| 461 | 453 | } | |
| 462 | 454 | ||
| @@ -499,7 +491,6 @@ func (x *PasswordEntryRow) GetBuildableId() string { | |||
| 499 | 491 | func (x *PasswordEntryRow) DelegateGetAccessiblePlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 500 | 492 | ||
| 501 | 493 | cret := gtk.XGtkEditableDelegateGetAccessiblePlatformState(x.GoPointer(), StateVar) | |
| 502 | - | ||
| 503 | 494 | return cret | |
| 504 | 495 | } | |
| 505 | 496 | ||
| @@ -540,7 +531,6 @@ func (x *PasswordEntryRow) FinishDelegate() { | |||
| 540 | 531 | func (x *PasswordEntryRow) GetAlignment() float32 { | |
| 541 | 532 | ||
| 542 | 533 | cret := gtk.XGtkEditableGetAlignment(x.GoPointer()) | |
| 543 | - | ||
| 544 | 534 | return cret | |
| 545 | 535 | } | |
| 546 | 536 | ||
| @@ -555,7 +545,6 @@ func (x *PasswordEntryRow) GetAlignment() float32 { | |||
| 555 | 545 | func (x *PasswordEntryRow) GetChars(StartPosVar int, EndPosVar int) string { | |
| 556 | 546 | ||
| 557 | 547 | cret := gtk.XGtkEditableGetChars(x.GoPointer(), StartPosVar, EndPosVar) | |
| 558 | - | ||
| 559 | 548 | return cret | |
| 560 | 549 | } | |
| 561 | 550 | ||
| @@ -581,7 +570,6 @@ func (x *PasswordEntryRow) GetDelegate() *gtk.EditableBase { | |||
| 581 | 570 | func (x *PasswordEntryRow) GetEditable() bool { | |
| 582 | 571 | ||
| 583 | 572 | cret := gtk.XGtkEditableGetEditable(x.GoPointer()) | |
| 584 | - | ||
| 585 | 573 | return cret | |
| 586 | 574 | } | |
| 587 | 575 | ||
| @@ -589,7 +577,6 @@ func (x *PasswordEntryRow) GetEditable() bool { | |||
| 589 | 577 | func (x *PasswordEntryRow) GetEnableUndo() bool { | |
| 590 | 578 | ||
| 591 | 579 | cret := gtk.XGtkEditableGetEnableUndo(x.GoPointer()) | |
| 592 | - | ||
| 593 | 580 | return cret | |
| 594 | 581 | } | |
| 595 | 582 | ||
| @@ -597,7 +584,6 @@ func (x *PasswordEntryRow) GetEnableUndo() bool { | |||
| 597 | 584 | func (x *PasswordEntryRow) GetMaxWidthChars() int { | |
| 598 | 585 | ||
| 599 | 586 | cret := gtk.XGtkEditableGetMaxWidthChars(x.GoPointer()) | |
| 600 | - | ||
| 601 | 587 | return cret | |
| 602 | 588 | } | |
| 603 | 589 | ||
| @@ -608,7 +594,6 @@ func (x *PasswordEntryRow) GetMaxWidthChars() int { | |||
| 608 | 594 | func (x *PasswordEntryRow) GetPosition() int { | |
| 609 | 595 | ||
| 610 | 596 | cret := gtk.XGtkEditableGetPosition(x.GoPointer()) | |
| 611 | - | ||
| 612 | 597 | return cret | |
| 613 | 598 | } | |
| 614 | 599 | ||
| @@ -622,7 +607,6 @@ func (x *PasswordEntryRow) GetPosition() int { | |||
| 622 | 607 | func (x *PasswordEntryRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) bool { | |
| 623 | 608 | ||
| 624 | 609 | cret := gtk.XGtkEditableGetSelectionBounds(x.GoPointer(), StartPosVar, EndPosVar) | |
| 625 | - | ||
| 626 | 610 | return cret | |
| 627 | 611 | } | |
| 628 | 612 | ||
| @@ -632,7 +616,6 @@ func (x *PasswordEntryRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) | |||
| 632 | 616 | func (x *PasswordEntryRow) GetText() string { | |
| 633 | 617 | ||
| 634 | 618 | cret := gtk.XGtkEditableGetText(x.GoPointer()) | |
| 635 | - | ||
| 636 | 619 | return cret | |
| 637 | 620 | } | |
| 638 | 621 | ||
| @@ -641,7 +624,6 @@ func (x *PasswordEntryRow) GetText() string { | |||
| 641 | 624 | func (x *PasswordEntryRow) GetWidthChars() int { | |
| 642 | 625 | ||
| 643 | 626 | cret := gtk.XGtkEditableGetWidthChars(x.GoPointer()) | |
| 644 | - | ||
| 645 | 627 | return cret | |
| 646 | 628 | } | |
| 647 | 629 | ||
M v4/adw/adw-preferences-dialog.go +0 -7
| @@ -105,7 +105,6 @@ var xPreferencesDialogGetSearchEnabled func(uintptr) bool | |||
| 105 | 105 | func (x *PreferencesDialog) GetSearchEnabled() bool { | |
| 106 | 106 | ||
| 107 | 107 | cret := xPreferencesDialogGetSearchEnabled(x.GoPointer()) | |
| 108 | - | ||
| 109 | 108 | return cret | |
| 110 | 109 | } | |
| 111 | 110 | ||
| @@ -132,7 +131,6 @@ var xPreferencesDialogGetVisiblePageName func(uintptr) string | |||
| 132 | 131 | func (x *PreferencesDialog) GetVisiblePageName() string { | |
| 133 | 132 | ||
| 134 | 133 | cret := xPreferencesDialogGetVisiblePageName(x.GoPointer()) | |
| 135 | - | ||
| 136 | 134 | return cret | |
| 137 | 135 | } | |
| 138 | 136 | ||
| @@ -142,7 +140,6 @@ var xPreferencesDialogPopSubpage func(uintptr) bool | |||
| 142 | 140 | func (x *PreferencesDialog) PopSubpage() bool { | |
| 143 | 141 | ||
| 144 | 142 | cret := xPreferencesDialogPopSubpage(x.GoPointer()) | |
| 145 | - | ||
| 146 | 143 | return cret | |
| 147 | 144 | } | |
| 148 | 145 | ||
| @@ -279,7 +276,6 @@ func (x *PreferencesDialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 279 | 276 | func (x *PreferencesDialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 280 | 277 | ||
| 281 | 278 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 282 | - | ||
| 283 | 279 | return cret | |
| 284 | 280 | } | |
| 285 | 281 | ||
| @@ -305,7 +301,6 @@ func (x *PreferencesDialog) GetAtContext() *gtk.ATContext { | |||
| 305 | 301 | func (x *PreferencesDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 306 | 302 | ||
| 307 | 303 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 308 | - | ||
| 309 | 304 | return cret | |
| 310 | 305 | } | |
| 311 | 306 | ||
| @@ -345,7 +340,6 @@ func (x *PreferencesDialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 345 | 340 | func (x *PreferencesDialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 346 | 341 | ||
| 347 | 342 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 348 | - | ||
| 349 | 343 | return cret | |
| 350 | 344 | } | |
| 351 | 345 | ||
| @@ -522,7 +516,6 @@ func (x *PreferencesDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acc | |||
| 522 | 516 | func (x *PreferencesDialog) GetBuildableId() string { | |
| 523 | 517 | ||
| 524 | 518 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 525 | - | ||
| 526 | 519 | return cret | |
| 527 | 520 | } | |
| 528 | 521 | ||
M v4/adw/adw-preferences-group.go +2 -11
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -154,7 +153,6 @@ var xPreferencesGroupGetDescription func(uintptr) string | |||
| 154 | 153 | func (x *PreferencesGroup) GetDescription() string { | |
| 155 | 154 | ||
| 156 | 155 | cret := xPreferencesGroupGetDescription(x.GoPointer()) | |
| 157 | - | ||
| 158 | 156 | return cret | |
| 159 | 157 | } | |
| 160 | 158 | ||
| @@ -200,7 +198,6 @@ var xPreferencesGroupGetSeparateRows func(uintptr) bool | |||
| 200 | 198 | func (x *PreferencesGroup) GetSeparateRows() bool { | |
| 201 | 199 | ||
| 202 | 200 | cret := xPreferencesGroupGetSeparateRows(x.GoPointer()) | |
| 203 | - | ||
| 204 | 201 | return cret | |
| 205 | 202 | } | |
| 206 | 203 | ||
| @@ -210,7 +207,6 @@ var xPreferencesGroupGetTitle func(uintptr) string | |||
| 210 | 207 | func (x *PreferencesGroup) GetTitle() string { | |
| 211 | 208 | ||
| 212 | 209 | cret := xPreferencesGroupGetTitle(x.GoPointer()) | |
| 213 | - | ||
| 214 | 210 | return cret | |
| 215 | 211 | } | |
| 216 | 212 | ||
| @@ -228,12 +224,11 @@ var xPreferencesGroupSetDescription func(uintptr, uintptr) | |||
| 228 | 224 | // Sets the description for @self. | |
| 229 | 225 | func (x *PreferencesGroup) SetDescription(DescriptionVar *string) { | |
| 230 | 226 | ||
| 231 | - | DescriptionVarPtr, DescriptionVarBytes := core.NullableStringToPtr(DescriptionVar) | |
| 227 | + | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 228 | + | defer core.GFreeNullable(DescriptionVarPtr) | |
| 232 | 229 | ||
| 233 | 230 | xPreferencesGroupSetDescription(x.GoPointer(), DescriptionVarPtr) | |
| 234 | 231 | ||
| 235 | - | runtime.KeepAlive(DescriptionVarBytes) | |
| 236 | - | ||
| 237 | 232 | } | |
| 238 | 233 | ||
| 239 | 234 | var xPreferencesGroupSetHeaderSuffix func(uintptr, uintptr) | |
| @@ -376,7 +371,6 @@ func (x *PreferencesGroup) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 376 | 371 | func (x *PreferencesGroup) GetAccessibleRole() gtk.AccessibleRole { | |
| 377 | 372 | ||
| 378 | 373 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 379 | - | ||
| 380 | 374 | return cret | |
| 381 | 375 | } | |
| 382 | 376 | ||
| @@ -402,7 +396,6 @@ func (x *PreferencesGroup) GetAtContext() *gtk.ATContext { | |||
| 402 | 396 | func (x *PreferencesGroup) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 403 | 397 | ||
| 404 | 398 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 405 | - | ||
| 406 | 399 | return cret | |
| 407 | 400 | } | |
| 408 | 401 | ||
| @@ -442,7 +435,6 @@ func (x *PreferencesGroup) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 442 | 435 | func (x *PreferencesGroup) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 443 | 436 | ||
| 444 | 437 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 445 | - | ||
| 446 | 438 | return cret | |
| 447 | 439 | } | |
| 448 | 440 | ||
| @@ -619,7 +611,6 @@ func (x *PreferencesGroup) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acce | |||
| 619 | 611 | func (x *PreferencesGroup) GetBuildableId() string { | |
| 620 | 612 | ||
| 621 | 613 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 622 | - | ||
| 623 | 614 | return cret | |
| 624 | 615 | } | |
| 625 | 616 | ||
M v4/adw/adw-preferences-page.go +4 -17
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -109,7 +108,6 @@ var xPreferencesPageGetDescription func(uintptr) string | |||
| 109 | 108 | func (x *PreferencesPage) GetDescription() string { | |
| 110 | 109 | ||
| 111 | 110 | cret := xPreferencesPageGetDescription(x.GoPointer()) | |
| 112 | - | ||
| 113 | 111 | return cret | |
| 114 | 112 | } | |
| 115 | 113 | ||
| @@ -119,7 +117,6 @@ var xPreferencesPageGetDescriptionCentered func(uintptr) bool | |||
| 119 | 117 | func (x *PreferencesPage) GetDescriptionCentered() bool { | |
| 120 | 118 | ||
| 121 | 119 | cret := xPreferencesPageGetDescriptionCentered(x.GoPointer()) | |
| 122 | - | ||
| 123 | 120 | return cret | |
| 124 | 121 | } | |
| 125 | 122 | ||
| @@ -148,7 +145,6 @@ var xPreferencesPageGetIconName func(uintptr) string | |||
| 148 | 145 | func (x *PreferencesPage) GetIconName() string { | |
| 149 | 146 | ||
| 150 | 147 | cret := xPreferencesPageGetIconName(x.GoPointer()) | |
| 151 | - | ||
| 152 | 148 | return cret | |
| 153 | 149 | } | |
| 154 | 150 | ||
| @@ -158,7 +154,6 @@ var xPreferencesPageGetName func(uintptr) string | |||
| 158 | 154 | func (x *PreferencesPage) GetName() string { | |
| 159 | 155 | ||
| 160 | 156 | cret := xPreferencesPageGetName(x.GoPointer()) | |
| 161 | - | ||
| 162 | 157 | return cret | |
| 163 | 158 | } | |
| 164 | 159 | ||
| @@ -168,7 +163,6 @@ var xPreferencesPageGetTitle func(uintptr) string | |||
| 168 | 163 | func (x *PreferencesPage) GetTitle() string { | |
| 169 | 164 | ||
| 170 | 165 | cret := xPreferencesPageGetTitle(x.GoPointer()) | |
| 171 | - | ||
| 172 | 166 | return cret | |
| 173 | 167 | } | |
| 174 | 168 | ||
| @@ -178,7 +172,6 @@ var xPreferencesPageGetUseUnderline func(uintptr) bool | |||
| 178 | 172 | func (x *PreferencesPage) GetUseUnderline() bool { | |
| 179 | 173 | ||
| 180 | 174 | cret := xPreferencesPageGetUseUnderline(x.GoPointer()) | |
| 181 | - | ||
| 182 | 175 | return cret | |
| 183 | 176 | } | |
| 184 | 177 | ||
| @@ -246,12 +239,11 @@ var xPreferencesPageSetIconName func(uintptr, uintptr) | |||
| 246 | 239 | // Sets the icon name for @self. | |
| 247 | 240 | func (x *PreferencesPage) SetIconName(IconNameVar *string) { | |
| 248 | 241 | ||
| 249 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 242 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 243 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 250 | 244 | ||
| 251 | 245 | xPreferencesPageSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 252 | 246 | ||
| 253 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 254 | - | ||
| 255 | 247 | } | |
| 256 | 248 | ||
| 257 | 249 | var xPreferencesPageSetName func(uintptr, uintptr) | |
| @@ -259,12 +251,11 @@ var xPreferencesPageSetName func(uintptr, uintptr) | |||
| 259 | 251 | // Sets the name of @self. | |
| 260 | 252 | func (x *PreferencesPage) SetName(NameVar *string) { | |
| 261 | 253 | ||
| 262 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 254 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 255 | + | defer core.GFreeNullable(NameVarPtr) | |
| 263 | 256 | ||
| 264 | 257 | xPreferencesPageSetName(x.GoPointer(), NameVarPtr) | |
| 265 | 258 | ||
| 266 | - | runtime.KeepAlive(NameVarBytes) | |
| 267 | - | ||
| 268 | 259 | } | |
| 269 | 260 | ||
| 270 | 261 | var xPreferencesPageSetTitle func(uintptr, string) | |
| @@ -433,7 +424,6 @@ func (x *PreferencesPage) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 433 | 424 | func (x *PreferencesPage) GetAccessibleRole() gtk.AccessibleRole { | |
| 434 | 425 | ||
| 435 | 426 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 436 | - | ||
| 437 | 427 | return cret | |
| 438 | 428 | } | |
| 439 | 429 | ||
| @@ -459,7 +449,6 @@ func (x *PreferencesPage) GetAtContext() *gtk.ATContext { | |||
| 459 | 449 | func (x *PreferencesPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 460 | 450 | ||
| 461 | 451 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 462 | - | ||
| 463 | 452 | return cret | |
| 464 | 453 | } | |
| 465 | 454 | ||
| @@ -499,7 +488,6 @@ func (x *PreferencesPage) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 499 | 488 | func (x *PreferencesPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 500 | 489 | ||
| 501 | 490 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 502 | - | ||
| 503 | 491 | return cret | |
| 504 | 492 | } | |
| 505 | 493 | ||
| @@ -676,7 +664,6 @@ func (x *PreferencesPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acces | |||
| 676 | 664 | func (x *PreferencesPage) GetBuildableId() string { | |
| 677 | 665 | ||
| 678 | 666 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 679 | - | ||
| 680 | 667 | return cret | |
| 681 | 668 | } | |
| 682 | 669 | ||
M v4/adw/adw-preferences-row.go +2 -14
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -74,7 +73,6 @@ var xPreferencesRowGetTitle func(uintptr) string | |||
| 74 | 73 | func (x *PreferencesRow) GetTitle() string { | |
| 75 | 74 | ||
| 76 | 75 | cret := xPreferencesRowGetTitle(x.GoPointer()) | |
| 77 | - | ||
| 78 | 76 | return cret | |
| 79 | 77 | } | |
| 80 | 78 | ||
| @@ -84,7 +82,6 @@ var xPreferencesRowGetTitleSelectable func(uintptr) bool | |||
| 84 | 82 | func (x *PreferencesRow) GetTitleSelectable() bool { | |
| 85 | 83 | ||
| 86 | 84 | cret := xPreferencesRowGetTitleSelectable(x.GoPointer()) | |
| 87 | - | ||
| 88 | 85 | return cret | |
| 89 | 86 | } | |
| 90 | 87 | ||
| @@ -94,7 +91,6 @@ var xPreferencesRowGetUseMarkup func(uintptr) bool | |||
| 94 | 91 | func (x *PreferencesRow) GetUseMarkup() bool { | |
| 95 | 92 | ||
| 96 | 93 | cret := xPreferencesRowGetUseMarkup(x.GoPointer()) | |
| 97 | - | ||
| 98 | 94 | return cret | |
| 99 | 95 | } | |
| 100 | 96 | ||
| @@ -104,7 +100,6 @@ var xPreferencesRowGetUseUnderline func(uintptr) bool | |||
| 104 | 100 | func (x *PreferencesRow) GetUseUnderline() bool { | |
| 105 | 101 | ||
| 106 | 102 | cret := xPreferencesRowGetUseUnderline(x.GoPointer()) | |
| 107 | - | ||
| 108 | 103 | return cret | |
| 109 | 104 | } | |
| 110 | 105 | ||
| @@ -285,7 +280,6 @@ func (x *PreferencesRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 285 | 280 | func (x *PreferencesRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 286 | 281 | ||
| 287 | 282 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 288 | - | ||
| 289 | 283 | return cret | |
| 290 | 284 | } | |
| 291 | 285 | ||
| @@ -311,7 +305,6 @@ func (x *PreferencesRow) GetAtContext() *gtk.ATContext { | |||
| 311 | 305 | func (x *PreferencesRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 312 | 306 | ||
| 313 | 307 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 314 | - | ||
| 315 | 308 | return cret | |
| 316 | 309 | } | |
| 317 | 310 | ||
| @@ -351,7 +344,6 @@ func (x *PreferencesRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 351 | 344 | func (x *PreferencesRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 352 | 345 | ||
| 353 | 346 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 354 | - | ||
| 355 | 347 | return cret | |
| 356 | 348 | } | |
| 357 | 349 | ||
| @@ -525,7 +517,6 @@ func (x *PreferencesRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Access | |||
| 525 | 517 | func (x *PreferencesRow) GetActionName() string { | |
| 526 | 518 | ||
| 527 | 519 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 528 | - | ||
| 529 | 520 | return cret | |
| 530 | 521 | } | |
| 531 | 522 | ||
| @@ -533,7 +524,6 @@ func (x *PreferencesRow) GetActionName() string { | |||
| 533 | 524 | func (x *PreferencesRow) GetActionTargetValue() *glib.Variant { | |
| 534 | 525 | ||
| 535 | 526 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 536 | - | ||
| 537 | 527 | return cret | |
| 538 | 528 | } | |
| 539 | 529 | ||
| @@ -552,12 +542,11 @@ func (x *PreferencesRow) GetActionTargetValue() *glib.Variant { | |||
| 552 | 542 | // associated with the window. | |
| 553 | 543 | func (x *PreferencesRow) SetActionName(ActionNameVar *string) { | |
| 554 | 544 | ||
| 555 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 545 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 546 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 556 | 547 | ||
| 557 | 548 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 558 | 549 | ||
| 559 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 560 | - | ||
| 561 | 550 | } | |
| 562 | 551 | ||
| 563 | 552 | // Sets the target of an actionable widget. | |
| @@ -617,7 +606,6 @@ func (x *PreferencesRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 617 | 606 | func (x *PreferencesRow) GetBuildableId() string { | |
| 618 | 607 | ||
| 619 | 608 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 620 | - | ||
| 621 | 609 | return cret | |
| 622 | 610 | } | |
| 623 | 611 | ||
M v4/adw/adw-preferences-window.go +0 -8
| @@ -112,7 +112,6 @@ var xPreferencesWindowGetCanNavigateBack func(uintptr) bool | |||
| 112 | 112 | func (x *PreferencesWindow) GetCanNavigateBack() bool { | |
| 113 | 113 | ||
| 114 | 114 | cret := xPreferencesWindowGetCanNavigateBack(x.GoPointer()) | |
| 115 | - | ||
| 116 | 115 | return cret | |
| 117 | 116 | } | |
| 118 | 117 | ||
| @@ -122,7 +121,6 @@ var xPreferencesWindowGetSearchEnabled func(uintptr) bool | |||
| 122 | 121 | func (x *PreferencesWindow) GetSearchEnabled() bool { | |
| 123 | 122 | ||
| 124 | 123 | cret := xPreferencesWindowGetSearchEnabled(x.GoPointer()) | |
| 125 | - | ||
| 126 | 124 | return cret | |
| 127 | 125 | } | |
| 128 | 126 | ||
| @@ -149,7 +147,6 @@ var xPreferencesWindowGetVisiblePageName func(uintptr) string | |||
| 149 | 147 | func (x *PreferencesWindow) GetVisiblePageName() string { | |
| 150 | 148 | ||
| 151 | 149 | cret := xPreferencesWindowGetVisiblePageName(x.GoPointer()) | |
| 152 | - | ||
| 153 | 150 | return cret | |
| 154 | 151 | } | |
| 155 | 152 | ||
| @@ -159,7 +156,6 @@ var xPreferencesWindowPopSubpage func(uintptr) bool | |||
| 159 | 156 | func (x *PreferencesWindow) PopSubpage() bool { | |
| 160 | 157 | ||
| 161 | 158 | cret := xPreferencesWindowPopSubpage(x.GoPointer()) | |
| 162 | - | ||
| 163 | 159 | return cret | |
| 164 | 160 | } | |
| 165 | 161 | ||
| @@ -375,7 +371,6 @@ func (x *PreferencesWindow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 375 | 371 | func (x *PreferencesWindow) GetAccessibleRole() gtk.AccessibleRole { | |
| 376 | 372 | ||
| 377 | 373 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 378 | - | ||
| 379 | 374 | return cret | |
| 380 | 375 | } | |
| 381 | 376 | ||
| @@ -401,7 +396,6 @@ func (x *PreferencesWindow) GetAtContext() *gtk.ATContext { | |||
| 401 | 396 | func (x *PreferencesWindow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 402 | 397 | ||
| 403 | 398 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 404 | - | ||
| 405 | 399 | return cret | |
| 406 | 400 | } | |
| 407 | 401 | ||
| @@ -441,7 +435,6 @@ func (x *PreferencesWindow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 441 | 435 | func (x *PreferencesWindow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 442 | 436 | ||
| 443 | 437 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 444 | - | ||
| 445 | 438 | return cret | |
| 446 | 439 | } | |
| 447 | 440 | ||
| @@ -618,7 +611,6 @@ func (x *PreferencesWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acc | |||
| 618 | 611 | func (x *PreferencesWindow) GetBuildableId() string { | |
| 619 | 612 | ||
| 620 | 613 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 621 | - | ||
| 622 | 614 | return cret | |
| 623 | 615 | } | |
| 624 | 616 | ||
M v4/adw/adw-shortcut-label.go +0 -6
| @@ -128,7 +128,6 @@ var xShortcutLabelGetAccelerator func(uintptr) string | |||
| 128 | 128 | func (x *ShortcutLabel) GetAccelerator() string { | |
| 129 | 129 | ||
| 130 | 130 | cret := xShortcutLabelGetAccelerator(x.GoPointer()) | |
| 131 | - | ||
| 132 | 131 | return cret | |
| 133 | 132 | } | |
| 134 | 133 | ||
| @@ -138,7 +137,6 @@ var xShortcutLabelGetDisabledText func(uintptr) string | |||
| 138 | 137 | func (x *ShortcutLabel) GetDisabledText() string { | |
| 139 | 138 | ||
| 140 | 139 | cret := xShortcutLabelGetDisabledText(x.GoPointer()) | |
| 141 | - | ||
| 142 | 140 | return cret | |
| 143 | 141 | } | |
| 144 | 142 | ||
| @@ -240,7 +238,6 @@ func (x *ShortcutLabel) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 240 | 238 | func (x *ShortcutLabel) GetAccessibleRole() gtk.AccessibleRole { | |
| 241 | 239 | ||
| 242 | 240 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 243 | - | ||
| 244 | 241 | return cret | |
| 245 | 242 | } | |
| 246 | 243 | ||
| @@ -266,7 +263,6 @@ func (x *ShortcutLabel) GetAtContext() *gtk.ATContext { | |||
| 266 | 263 | func (x *ShortcutLabel) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 267 | 264 | ||
| 268 | 265 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 269 | - | ||
| 270 | 266 | return cret | |
| 271 | 267 | } | |
| 272 | 268 | ||
| @@ -306,7 +302,6 @@ func (x *ShortcutLabel) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 306 | 302 | func (x *ShortcutLabel) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 307 | 303 | ||
| 308 | 304 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 309 | - | ||
| 310 | 305 | return cret | |
| 311 | 306 | } | |
| 312 | 307 | ||
| @@ -483,7 +478,6 @@ func (x *ShortcutLabel) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessi | |||
| 483 | 478 | func (x *ShortcutLabel) GetBuildableId() string { | |
| 484 | 479 | ||
| 485 | 480 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 486 | - | ||
| 487 | 481 | return cret | |
| 488 | 482 | } | |
| 489 | 483 | ||
M v4/adw/adw-shortcuts-dialog.go +0 -4
| @@ -201,7 +201,6 @@ func (x *ShortcutsDialog) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 201 | 201 | func (x *ShortcutsDialog) GetAccessibleRole() gtk.AccessibleRole { | |
| 202 | 202 | ||
| 203 | 203 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 204 | - | ||
| 205 | 204 | return cret | |
| 206 | 205 | } | |
| 207 | 206 | ||
| @@ -227,7 +226,6 @@ func (x *ShortcutsDialog) GetAtContext() *gtk.ATContext { | |||
| 227 | 226 | func (x *ShortcutsDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 228 | 227 | ||
| 229 | 228 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 230 | - | ||
| 231 | 229 | return cret | |
| 232 | 230 | } | |
| 233 | 231 | ||
| @@ -267,7 +265,6 @@ func (x *ShortcutsDialog) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 267 | 265 | func (x *ShortcutsDialog) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 268 | 266 | ||
| 269 | 267 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 270 | - | ||
| 271 | 268 | return cret | |
| 272 | 269 | } | |
| 273 | 270 | ||
| @@ -444,7 +441,6 @@ func (x *ShortcutsDialog) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acces | |||
| 444 | 441 | func (x *ShortcutsDialog) GetBuildableId() string { | |
| 445 | 442 | ||
| 446 | 443 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 447 | - | ||
| 448 | 444 | return cret | |
| 449 | 445 | } | |
| 450 | 446 | ||
M v4/adw/adw-shortcuts-item.go +0 -5
| @@ -92,7 +92,6 @@ var xShortcutsItemGetAccelerator func(uintptr) string | |||
| 92 | 92 | func (x *ShortcutsItem) GetAccelerator() string { | |
| 93 | 93 | ||
| 94 | 94 | cret := xShortcutsItemGetAccelerator(x.GoPointer()) | |
| 95 | - | ||
| 96 | 95 | return cret | |
| 97 | 96 | } | |
| 98 | 97 | ||
| @@ -102,7 +101,6 @@ var xShortcutsItemGetActionName func(uintptr) string | |||
| 102 | 101 | func (x *ShortcutsItem) GetActionName() string { | |
| 103 | 102 | ||
| 104 | 103 | cret := xShortcutsItemGetActionName(x.GoPointer()) | |
| 105 | - | ||
| 106 | 104 | return cret | |
| 107 | 105 | } | |
| 108 | 106 | ||
| @@ -112,7 +110,6 @@ var xShortcutsItemGetDirection func(uintptr) gtk.TextDirection | |||
| 112 | 110 | func (x *ShortcutsItem) GetDirection() gtk.TextDirection { | |
| 113 | 111 | ||
| 114 | 112 | cret := xShortcutsItemGetDirection(x.GoPointer()) | |
| 115 | - | ||
| 116 | 113 | return cret | |
| 117 | 114 | } | |
| 118 | 115 | ||
| @@ -122,7 +119,6 @@ var xShortcutsItemGetSubtitle func(uintptr) string | |||
| 122 | 119 | func (x *ShortcutsItem) GetSubtitle() string { | |
| 123 | 120 | ||
| 124 | 121 | cret := xShortcutsItemGetSubtitle(x.GoPointer()) | |
| 125 | - | ||
| 126 | 122 | return cret | |
| 127 | 123 | } | |
| 128 | 124 | ||
| @@ -132,7 +128,6 @@ var xShortcutsItemGetTitle func(uintptr) string | |||
| 132 | 128 | func (x *ShortcutsItem) GetTitle() string { | |
| 133 | 129 | ||
| 134 | 130 | cret := xShortcutsItemGetTitle(x.GoPointer()) | |
| 135 | - | ||
| 136 | 131 | return cret | |
| 137 | 132 | } | |
| 138 | 133 | ||
M v4/adw/adw-shortcuts-section.go +4 -12
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -57,12 +56,11 @@ var xNewShortcutsSection func(uintptr) uintptr | |||
| 57 | 56 | func NewShortcutsSection(TitleVar *string) *ShortcutsSection { | |
| 58 | 57 | var cls *ShortcutsSection | |
| 59 | 58 | ||
| 60 | - | TitleVarPtr, TitleVarBytes := core.NullableStringToPtr(TitleVar) | |
| 59 | + | TitleVarPtr := core.GStrdupNullable(TitleVar) | |
| 60 | + | defer core.GFreeNullable(TitleVarPtr) | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewShortcutsSection(TitleVarPtr) | |
| 63 | 63 | ||
| 64 | - | runtime.KeepAlive(TitleVarBytes) | |
| 65 | - | ||
| 66 | 64 | if cret == 0 { | |
| 67 | 65 | return nil | |
| 68 | 66 | } | |
| @@ -86,7 +84,6 @@ var xShortcutsSectionGetTitle func(uintptr) string | |||
| 86 | 84 | func (x *ShortcutsSection) GetTitle() string { | |
| 87 | 85 | ||
| 88 | 86 | cret := xShortcutsSectionGetTitle(x.GoPointer()) | |
| 89 | - | ||
| 90 | 87 | return cret | |
| 91 | 88 | } | |
| 92 | 89 | ||
| @@ -95,12 +92,11 @@ var xShortcutsSectionSetTitle func(uintptr, uintptr) | |||
| 95 | 92 | // Sets the title of @self. | |
| 96 | 93 | func (x *ShortcutsSection) SetTitle(TitleVar *string) { | |
| 97 | 94 | ||
| 98 | - | TitleVarPtr, TitleVarBytes := core.NullableStringToPtr(TitleVar) | |
| 95 | + | TitleVarPtr := core.GStrdupNullable(TitleVar) | |
| 96 | + | defer core.GFreeNullable(TitleVarPtr) | |
| 99 | 97 | ||
| 100 | 98 | xShortcutsSectionSetTitle(x.GoPointer(), TitleVarPtr) | |
| 101 | 99 | ||
| 102 | - | runtime.KeepAlive(TitleVarBytes) | |
| 103 | - | ||
| 104 | 100 | } | |
| 105 | 101 | ||
| 106 | 102 | func (c *ShortcutsSection) GoPointer() uintptr { | |
| @@ -143,7 +139,6 @@ func (x *ShortcutsSection) GetPropertyTitle() string { | |||
| 143 | 139 | func (x *ShortcutsSection) GetItem(PositionVar uint) uintptr { | |
| 144 | 140 | ||
| 145 | 141 | cret := gio.XGListModelGetItem(x.GoPointer(), PositionVar) | |
| 146 | - | ||
| 147 | 142 | return cret | |
| 148 | 143 | } | |
| 149 | 144 | ||
| @@ -158,7 +153,6 @@ func (x *ShortcutsSection) GetItem(PositionVar uint) uintptr { | |||
| 158 | 153 | func (x *ShortcutsSection) GetItemType() types.GType { | |
| 159 | 154 | ||
| 160 | 155 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 161 | - | ||
| 162 | 156 | return cret | |
| 163 | 157 | } | |
| 164 | 158 | ||
| @@ -170,7 +164,6 @@ func (x *ShortcutsSection) GetItemType() types.GType { | |||
| 170 | 164 | func (x *ShortcutsSection) GetNItems() uint { | |
| 171 | 165 | ||
| 172 | 166 | cret := gio.XGListModelGetNItems(x.GoPointer()) | |
| 173 | - | ||
| 174 | 167 | return cret | |
| 175 | 168 | } | |
| 176 | 169 | ||
| @@ -232,7 +225,6 @@ func (x *ShortcutsSection) ItemsChanged(PositionVar uint, RemovedVar uint, Added | |||
| 232 | 225 | func (x *ShortcutsSection) GetBuildableId() string { | |
| 233 | 226 | ||
| 234 | 227 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 235 | - | ||
| 236 | 228 | return cret | |
| 237 | 229 | } | |
| 238 | 230 | ||
M v4/adw/adw-spin-row.go +2 -27
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -159,7 +158,6 @@ var xSpinRowGetClimbRate func(uintptr) float64 | |||
| 159 | 158 | func (x *SpinRow) GetClimbRate() float64 { | |
| 160 | 159 | ||
| 161 | 160 | cret := xSpinRowGetClimbRate(x.GoPointer()) | |
| 162 | - | ||
| 163 | 161 | return cret | |
| 164 | 162 | } | |
| 165 | 163 | ||
| @@ -169,7 +167,6 @@ var xSpinRowGetDigits func(uintptr) uint | |||
| 169 | 167 | func (x *SpinRow) GetDigits() uint { | |
| 170 | 168 | ||
| 171 | 169 | cret := xSpinRowGetDigits(x.GoPointer()) | |
| 172 | - | ||
| 173 | 170 | return cret | |
| 174 | 171 | } | |
| 175 | 172 | ||
| @@ -179,7 +176,6 @@ var xSpinRowGetNumeric func(uintptr) bool | |||
| 179 | 176 | func (x *SpinRow) GetNumeric() bool { | |
| 180 | 177 | ||
| 181 | 178 | cret := xSpinRowGetNumeric(x.GoPointer()) | |
| 182 | - | ||
| 183 | 179 | return cret | |
| 184 | 180 | } | |
| 185 | 181 | ||
| @@ -189,7 +185,6 @@ var xSpinRowGetSnapToTicks func(uintptr) bool | |||
| 189 | 185 | func (x *SpinRow) GetSnapToTicks() bool { | |
| 190 | 186 | ||
| 191 | 187 | cret := xSpinRowGetSnapToTicks(x.GoPointer()) | |
| 192 | - | ||
| 193 | 188 | return cret | |
| 194 | 189 | } | |
| 195 | 190 | ||
| @@ -199,7 +194,6 @@ var xSpinRowGetUpdatePolicy func(uintptr) gtk.SpinButtonUpdatePolicy | |||
| 199 | 194 | func (x *SpinRow) GetUpdatePolicy() gtk.SpinButtonUpdatePolicy { | |
| 200 | 195 | ||
| 201 | 196 | cret := xSpinRowGetUpdatePolicy(x.GoPointer()) | |
| 202 | - | ||
| 203 | 197 | return cret | |
| 204 | 198 | } | |
| 205 | 199 | ||
| @@ -209,7 +203,6 @@ var xSpinRowGetValue func(uintptr) float64 | |||
| 209 | 203 | func (x *SpinRow) GetValue() float64 { | |
| 210 | 204 | ||
| 211 | 205 | cret := xSpinRowGetValue(x.GoPointer()) | |
| 212 | - | ||
| 213 | 206 | return cret | |
| 214 | 207 | } | |
| 215 | 208 | ||
| @@ -219,7 +212,6 @@ var xSpinRowGetWrap func(uintptr) bool | |||
| 219 | 212 | func (x *SpinRow) GetWrap() bool { | |
| 220 | 213 | ||
| 221 | 214 | cret := xSpinRowGetWrap(x.GoPointer()) | |
| 222 | - | ||
| 223 | 215 | return cret | |
| 224 | 216 | } | |
| 225 | 217 | ||
| @@ -549,7 +541,6 @@ func (x *SpinRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 549 | 541 | func (x *SpinRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 550 | 542 | ||
| 551 | 543 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 552 | - | ||
| 553 | 544 | return cret | |
| 554 | 545 | } | |
| 555 | 546 | ||
| @@ -575,7 +566,6 @@ func (x *SpinRow) GetAtContext() *gtk.ATContext { | |||
| 575 | 566 | func (x *SpinRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 576 | 567 | ||
| 577 | 568 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 578 | - | ||
| 579 | 569 | return cret | |
| 580 | 570 | } | |
| 581 | 571 | ||
| @@ -615,7 +605,6 @@ func (x *SpinRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 615 | 605 | func (x *SpinRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 616 | 606 | ||
| 617 | 607 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 618 | - | ||
| 619 | 608 | return cret | |
| 620 | 609 | } | |
| 621 | 610 | ||
| @@ -789,7 +778,6 @@ func (x *SpinRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSta | |||
| 789 | 778 | func (x *SpinRow) GetActionName() string { | |
| 790 | 779 | ||
| 791 | 780 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 792 | - | ||
| 793 | 781 | return cret | |
| 794 | 782 | } | |
| 795 | 783 | ||
| @@ -797,7 +785,6 @@ func (x *SpinRow) GetActionName() string { | |||
| 797 | 785 | func (x *SpinRow) GetActionTargetValue() *glib.Variant { | |
| 798 | 786 | ||
| 799 | 787 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 800 | - | ||
| 801 | 788 | return cret | |
| 802 | 789 | } | |
| 803 | 790 | ||
| @@ -816,12 +803,11 @@ func (x *SpinRow) GetActionTargetValue() *glib.Variant { | |||
| 816 | 803 | // associated with the window. | |
| 817 | 804 | func (x *SpinRow) SetActionName(ActionNameVar *string) { | |
| 818 | 805 | ||
| 819 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 806 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 807 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 820 | 808 | ||
| 821 | 809 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 822 | 810 | ||
| 823 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 824 | - | ||
| 825 | 811 | } | |
| 826 | 812 | ||
| 827 | 813 | // Sets the target of an actionable widget. | |
| @@ -881,7 +867,6 @@ func (x *SpinRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 881 | 867 | func (x *SpinRow) GetBuildableId() string { | |
| 882 | 868 | ||
| 883 | 869 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 884 | - | ||
| 885 | 870 | return cret | |
| 886 | 871 | } | |
| 887 | 872 | ||
| @@ -924,7 +909,6 @@ func (x *SpinRow) GetBuildableId() string { | |||
| 924 | 909 | func (x *SpinRow) DelegateGetAccessiblePlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 925 | 910 | ||
| 926 | 911 | cret := gtk.XGtkEditableDelegateGetAccessiblePlatformState(x.GoPointer(), StateVar) | |
| 927 | - | ||
| 928 | 912 | return cret | |
| 929 | 913 | } | |
| 930 | 914 | ||
| @@ -965,7 +949,6 @@ func (x *SpinRow) FinishDelegate() { | |||
| 965 | 949 | func (x *SpinRow) GetAlignment() float32 { | |
| 966 | 950 | ||
| 967 | 951 | cret := gtk.XGtkEditableGetAlignment(x.GoPointer()) | |
| 968 | - | ||
| 969 | 952 | return cret | |
| 970 | 953 | } | |
| 971 | 954 | ||
| @@ -980,7 +963,6 @@ func (x *SpinRow) GetAlignment() float32 { | |||
| 980 | 963 | func (x *SpinRow) GetChars(StartPosVar int, EndPosVar int) string { | |
| 981 | 964 | ||
| 982 | 965 | cret := gtk.XGtkEditableGetChars(x.GoPointer(), StartPosVar, EndPosVar) | |
| 983 | - | ||
| 984 | 966 | return cret | |
| 985 | 967 | } | |
| 986 | 968 | ||
| @@ -1006,7 +988,6 @@ func (x *SpinRow) GetDelegate() *gtk.EditableBase { | |||
| 1006 | 988 | func (x *SpinRow) GetEditable() bool { | |
| 1007 | 989 | ||
| 1008 | 990 | cret := gtk.XGtkEditableGetEditable(x.GoPointer()) | |
| 1009 | - | ||
| 1010 | 991 | return cret | |
| 1011 | 992 | } | |
| 1012 | 993 | ||
| @@ -1014,7 +995,6 @@ func (x *SpinRow) GetEditable() bool { | |||
| 1014 | 995 | func (x *SpinRow) GetEnableUndo() bool { | |
| 1015 | 996 | ||
| 1016 | 997 | cret := gtk.XGtkEditableGetEnableUndo(x.GoPointer()) | |
| 1017 | - | ||
| 1018 | 998 | return cret | |
| 1019 | 999 | } | |
| 1020 | 1000 | ||
| @@ -1022,7 +1002,6 @@ func (x *SpinRow) GetEnableUndo() bool { | |||
| 1022 | 1002 | func (x *SpinRow) GetMaxWidthChars() int { | |
| 1023 | 1003 | ||
| 1024 | 1004 | cret := gtk.XGtkEditableGetMaxWidthChars(x.GoPointer()) | |
| 1025 | - | ||
| 1026 | 1005 | return cret | |
| 1027 | 1006 | } | |
| 1028 | 1007 | ||
| @@ -1033,7 +1012,6 @@ func (x *SpinRow) GetMaxWidthChars() int { | |||
| 1033 | 1012 | func (x *SpinRow) GetPosition() int { | |
| 1034 | 1013 | ||
| 1035 | 1014 | cret := gtk.XGtkEditableGetPosition(x.GoPointer()) | |
| 1036 | - | ||
| 1037 | 1015 | return cret | |
| 1038 | 1016 | } | |
| 1039 | 1017 | ||
| @@ -1047,7 +1025,6 @@ func (x *SpinRow) GetPosition() int { | |||
| 1047 | 1025 | func (x *SpinRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) bool { | |
| 1048 | 1026 | ||
| 1049 | 1027 | cret := gtk.XGtkEditableGetSelectionBounds(x.GoPointer(), StartPosVar, EndPosVar) | |
| 1050 | - | ||
| 1051 | 1028 | return cret | |
| 1052 | 1029 | } | |
| 1053 | 1030 | ||
| @@ -1057,7 +1034,6 @@ func (x *SpinRow) GetSelectionBounds(StartPosVar *int, EndPosVar *int) bool { | |||
| 1057 | 1034 | func (x *SpinRow) GetText() string { | |
| 1058 | 1035 | ||
| 1059 | 1036 | cret := gtk.XGtkEditableGetText(x.GoPointer()) | |
| 1060 | - | ||
| 1061 | 1037 | return cret | |
| 1062 | 1038 | } | |
| 1063 | 1039 | ||
| @@ -1066,7 +1042,6 @@ func (x *SpinRow) GetText() string { | |||
| 1066 | 1042 | func (x *SpinRow) GetWidthChars() int { | |
| 1067 | 1043 | ||
| 1068 | 1044 | cret := gtk.XGtkEditableGetWidthChars(x.GoPointer()) | |
| 1069 | - | ||
| 1070 | 1045 | return cret | |
| 1071 | 1046 | } | |
| 1072 | 1047 | ||
M v4/adw/adw-spinner-paintable.go +0 -4
| @@ -168,7 +168,6 @@ func (x *SpinnerPaintable) GetCurrentImage() *gdk.PaintableBase { | |||
| 168 | 168 | func (x *SpinnerPaintable) GetFlags() gdk.PaintableFlags { | |
| 169 | 169 | ||
| 170 | 170 | cret := gdk.XGdkPaintableGetFlags(x.GoPointer()) | |
| 171 | - | ||
| 172 | 171 | return cret | |
| 173 | 172 | } | |
| 174 | 173 | ||
| @@ -192,7 +191,6 @@ func (x *SpinnerPaintable) GetFlags() gdk.PaintableFlags { | |||
| 192 | 191 | func (x *SpinnerPaintable) GetIntrinsicAspectRatio() float64 { | |
| 193 | 192 | ||
| 194 | 193 | cret := gdk.XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 195 | - | ||
| 196 | 194 | return cret | |
| 197 | 195 | } | |
| 198 | 196 | ||
| @@ -209,7 +207,6 @@ func (x *SpinnerPaintable) GetIntrinsicAspectRatio() float64 { | |||
| 209 | 207 | func (x *SpinnerPaintable) GetIntrinsicHeight() int { | |
| 210 | 208 | ||
| 211 | 209 | cret := gdk.XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 212 | - | ||
| 213 | 210 | return cret | |
| 214 | 211 | } | |
| 215 | 212 | ||
| @@ -226,7 +223,6 @@ func (x *SpinnerPaintable) GetIntrinsicHeight() int { | |||
| 226 | 223 | func (x *SpinnerPaintable) GetIntrinsicWidth() int { | |
| 227 | 224 | ||
| 228 | 225 | cret := gdk.XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 229 | - | ||
| 230 | 226 | return cret | |
| 231 | 227 | } | |
| 232 | 228 | ||
M v4/adw/adw-spinner.go +0 -4
| @@ -141,7 +141,6 @@ func (x *Spinner) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 141 | 141 | func (x *Spinner) GetAccessibleRole() gtk.AccessibleRole { | |
| 142 | 142 | ||
| 143 | 143 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 144 | - | ||
| 145 | 144 | return cret | |
| 146 | 145 | } | |
| 147 | 146 | ||
| @@ -167,7 +166,6 @@ func (x *Spinner) GetAtContext() *gtk.ATContext { | |||
| 167 | 166 | func (x *Spinner) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 168 | 167 | ||
| 169 | 168 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 170 | - | ||
| 171 | 169 | return cret | |
| 172 | 170 | } | |
| 173 | 171 | ||
| @@ -207,7 +205,6 @@ func (x *Spinner) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 207 | 205 | func (x *Spinner) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 208 | 206 | ||
| 209 | 207 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 210 | - | ||
| 211 | 208 | return cret | |
| 212 | 209 | } | |
| 213 | 210 | ||
| @@ -384,7 +381,6 @@ func (x *Spinner) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSta | |||
| 384 | 381 | func (x *Spinner) GetBuildableId() string { | |
| 385 | 382 | ||
| 386 | 383 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 387 | - | ||
| 388 | 384 | return cret | |
| 389 | 385 | } | |
| 390 | 386 | ||
M v4/adw/adw-split-button.go +2 -16
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -115,7 +114,6 @@ var xSplitButtonGetCanShrink func(uintptr) bool | |||
| 115 | 114 | func (x *SplitButton) GetCanShrink() bool { | |
| 116 | 115 | ||
| 117 | 116 | cret := xSplitButtonGetCanShrink(x.GoPointer()) | |
| 118 | - | ||
| 119 | 117 | return cret | |
| 120 | 118 | } | |
| 121 | 119 | ||
| @@ -142,7 +140,6 @@ var xSplitButtonGetDirection func(uintptr) gtk.ArrowType | |||
| 142 | 140 | func (x *SplitButton) GetDirection() gtk.ArrowType { | |
| 143 | 141 | ||
| 144 | 142 | cret := xSplitButtonGetDirection(x.GoPointer()) | |
| 145 | - | ||
| 146 | 143 | return cret | |
| 147 | 144 | } | |
| 148 | 145 | ||
| @@ -152,7 +149,6 @@ var xSplitButtonGetDropdownTooltip func(uintptr) string | |||
| 152 | 149 | func (x *SplitButton) GetDropdownTooltip() string { | |
| 153 | 150 | ||
| 154 | 151 | cret := xSplitButtonGetDropdownTooltip(x.GoPointer()) | |
| 155 | - | ||
| 156 | 152 | return cret | |
| 157 | 153 | } | |
| 158 | 154 | ||
| @@ -162,7 +158,6 @@ var xSplitButtonGetIconName func(uintptr) string | |||
| 162 | 158 | func (x *SplitButton) GetIconName() string { | |
| 163 | 159 | ||
| 164 | 160 | cret := xSplitButtonGetIconName(x.GoPointer()) | |
| 165 | - | ||
| 166 | 161 | return cret | |
| 167 | 162 | } | |
| 168 | 163 | ||
| @@ -172,7 +167,6 @@ var xSplitButtonGetLabel func(uintptr) string | |||
| 172 | 167 | func (x *SplitButton) GetLabel() string { | |
| 173 | 168 | ||
| 174 | 169 | cret := xSplitButtonGetLabel(x.GoPointer()) | |
| 175 | - | ||
| 176 | 170 | return cret | |
| 177 | 171 | } | |
| 178 | 172 | ||
| @@ -216,7 +210,6 @@ var xSplitButtonGetUseUnderline func(uintptr) bool | |||
| 216 | 210 | func (x *SplitButton) GetUseUnderline() bool { | |
| 217 | 211 | ||
| 218 | 212 | cret := xSplitButtonGetUseUnderline(x.GoPointer()) | |
| 219 | - | ||
| 220 | 213 | return cret | |
| 221 | 214 | } | |
| 222 | 215 | ||
| @@ -570,7 +563,6 @@ func (x *SplitButton) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 570 | 563 | func (x *SplitButton) GetAccessibleRole() gtk.AccessibleRole { | |
| 571 | 564 | ||
| 572 | 565 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 573 | - | ||
| 574 | 566 | return cret | |
| 575 | 567 | } | |
| 576 | 568 | ||
| @@ -596,7 +588,6 @@ func (x *SplitButton) GetAtContext() *gtk.ATContext { | |||
| 596 | 588 | func (x *SplitButton) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 597 | 589 | ||
| 598 | 590 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 599 | - | ||
| 600 | 591 | return cret | |
| 601 | 592 | } | |
| 602 | 593 | ||
| @@ -636,7 +627,6 @@ func (x *SplitButton) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 636 | 627 | func (x *SplitButton) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 637 | 628 | ||
| 638 | 629 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 639 | - | ||
| 640 | 630 | return cret | |
| 641 | 631 | } | |
| 642 | 632 | ||
| @@ -810,7 +800,6 @@ func (x *SplitButton) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 810 | 800 | func (x *SplitButton) GetActionName() string { | |
| 811 | 801 | ||
| 812 | 802 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 813 | - | ||
| 814 | 803 | return cret | |
| 815 | 804 | } | |
| 816 | 805 | ||
| @@ -818,7 +807,6 @@ func (x *SplitButton) GetActionName() string { | |||
| 818 | 807 | func (x *SplitButton) GetActionTargetValue() *glib.Variant { | |
| 819 | 808 | ||
| 820 | 809 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 821 | - | ||
| 822 | 810 | return cret | |
| 823 | 811 | } | |
| 824 | 812 | ||
| @@ -837,12 +825,11 @@ func (x *SplitButton) GetActionTargetValue() *glib.Variant { | |||
| 837 | 825 | // associated with the window. | |
| 838 | 826 | func (x *SplitButton) SetActionName(ActionNameVar *string) { | |
| 839 | 827 | ||
| 840 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 828 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 829 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 841 | 830 | ||
| 842 | 831 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 843 | 832 | ||
| 844 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 845 | - | ||
| 846 | 833 | } | |
| 847 | 834 | ||
| 848 | 835 | // Sets the target of an actionable widget. | |
| @@ -902,7 +889,6 @@ func (x *SplitButton) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 902 | 889 | func (x *SplitButton) GetBuildableId() string { | |
| 903 | 890 | ||
| 904 | 891 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 905 | - | ||
| 906 | 892 | return cret | |
| 907 | 893 | } | |
| 908 | 894 | ||
M v4/adw/adw-spring-animation.go +0 -10
| @@ -98,7 +98,6 @@ var xSpringAnimationCalculateValue func(uintptr, uint) float64 | |||
| 98 | 98 | func (x *SpringAnimation) CalculateValue(TimeVar uint) float64 { | |
| 99 | 99 | ||
| 100 | 100 | cret := xSpringAnimationCalculateValue(x.GoPointer(), TimeVar) | |
| 101 | - | ||
| 102 | 101 | return cret | |
| 103 | 102 | } | |
| 104 | 103 | ||
| @@ -113,7 +112,6 @@ var xSpringAnimationCalculateVelocity func(uintptr, uint) float64 | |||
| 113 | 112 | func (x *SpringAnimation) CalculateVelocity(TimeVar uint) float64 { | |
| 114 | 113 | ||
| 115 | 114 | cret := xSpringAnimationCalculateVelocity(x.GoPointer(), TimeVar) | |
| 116 | - | ||
| 117 | 115 | return cret | |
| 118 | 116 | } | |
| 119 | 117 | ||
| @@ -123,7 +121,6 @@ var xSpringAnimationGetClamp func(uintptr) bool | |||
| 123 | 121 | func (x *SpringAnimation) GetClamp() bool { | |
| 124 | 122 | ||
| 125 | 123 | cret := xSpringAnimationGetClamp(x.GoPointer()) | |
| 126 | - | ||
| 127 | 124 | return cret | |
| 128 | 125 | } | |
| 129 | 126 | ||
| @@ -133,7 +130,6 @@ var xSpringAnimationGetEpsilon func(uintptr) float64 | |||
| 133 | 130 | func (x *SpringAnimation) GetEpsilon() float64 { | |
| 134 | 131 | ||
| 135 | 132 | cret := xSpringAnimationGetEpsilon(x.GoPointer()) | |
| 136 | - | ||
| 137 | 133 | return cret | |
| 138 | 134 | } | |
| 139 | 135 | ||
| @@ -145,7 +141,6 @@ var xSpringAnimationGetEstimatedDuration func(uintptr) uint | |||
| 145 | 141 | func (x *SpringAnimation) GetEstimatedDuration() uint { | |
| 146 | 142 | ||
| 147 | 143 | cret := xSpringAnimationGetEstimatedDuration(x.GoPointer()) | |
| 148 | - | ||
| 149 | 144 | return cret | |
| 150 | 145 | } | |
| 151 | 146 | ||
| @@ -155,7 +150,6 @@ var xSpringAnimationGetInitialVelocity func(uintptr) float64 | |||
| 155 | 150 | func (x *SpringAnimation) GetInitialVelocity() float64 { | |
| 156 | 151 | ||
| 157 | 152 | cret := xSpringAnimationGetInitialVelocity(x.GoPointer()) | |
| 158 | - | ||
| 159 | 153 | return cret | |
| 160 | 154 | } | |
| 161 | 155 | ||
| @@ -165,7 +159,6 @@ var xSpringAnimationGetSpringParams func(uintptr) *SpringParams | |||
| 165 | 159 | func (x *SpringAnimation) GetSpringParams() *SpringParams { | |
| 166 | 160 | ||
| 167 | 161 | cret := xSpringAnimationGetSpringParams(x.GoPointer()) | |
| 168 | - | ||
| 169 | 162 | return cret | |
| 170 | 163 | } | |
| 171 | 164 | ||
| @@ -175,7 +168,6 @@ var xSpringAnimationGetValueFrom func(uintptr) float64 | |||
| 175 | 168 | func (x *SpringAnimation) GetValueFrom() float64 { | |
| 176 | 169 | ||
| 177 | 170 | cret := xSpringAnimationGetValueFrom(x.GoPointer()) | |
| 178 | - | ||
| 179 | 171 | return cret | |
| 180 | 172 | } | |
| 181 | 173 | ||
| @@ -185,7 +177,6 @@ var xSpringAnimationGetValueTo func(uintptr) float64 | |||
| 185 | 177 | func (x *SpringAnimation) GetValueTo() float64 { | |
| 186 | 178 | ||
| 187 | 179 | cret := xSpringAnimationGetValueTo(x.GoPointer()) | |
| 188 | - | ||
| 189 | 180 | return cret | |
| 190 | 181 | } | |
| 191 | 182 | ||
| @@ -195,7 +186,6 @@ var xSpringAnimationGetVelocity func(uintptr) float64 | |||
| 195 | 186 | func (x *SpringAnimation) GetVelocity() float64 { | |
| 196 | 187 | ||
| 197 | 188 | cret := xSpringAnimationGetVelocity(x.GoPointer()) | |
| 198 | - | ||
| 199 | 189 | return cret | |
| 200 | 190 | } | |
| 201 | 191 | ||
M v4/adw/adw-spring-params.go +0 -7
| @@ -74,7 +74,6 @@ var xNewSpringParams func(float64, float64, float64) *SpringParams | |||
| 74 | 74 | func NewSpringParams(DampingRatioVar float64, MassVar float64, StiffnessVar float64) *SpringParams { | |
| 75 | 75 | ||
| 76 | 76 | cret := xNewSpringParams(DampingRatioVar, MassVar, StiffnessVar) | |
| 77 | - | ||
| 78 | 77 | return cret | |
| 79 | 78 | } | |
| 80 | 79 | ||
| @@ -87,7 +86,6 @@ var xNewSpringParamsFull func(float64, float64, float64) *SpringParams | |||
| 87 | 86 | func NewSpringParamsFull(DampingVar float64, MassVar float64, StiffnessVar float64) *SpringParams { | |
| 88 | 87 | ||
| 89 | 88 | cret := xNewSpringParamsFull(DampingVar, MassVar, StiffnessVar) | |
| 90 | - | ||
| 91 | 89 | return cret | |
| 92 | 90 | } | |
| 93 | 91 | ||
| @@ -97,7 +95,6 @@ var xSpringParamsGetDamping func(uintptr) float64 | |||
| 97 | 95 | func (x *SpringParams) GetDamping() float64 { | |
| 98 | 96 | ||
| 99 | 97 | cret := xSpringParamsGetDamping(x.GoPointer()) | |
| 100 | - | ||
| 101 | 98 | return cret | |
| 102 | 99 | } | |
| 103 | 100 | ||
| @@ -107,7 +104,6 @@ var xSpringParamsGetDampingRatio func(uintptr) float64 | |||
| 107 | 104 | func (x *SpringParams) GetDampingRatio() float64 { | |
| 108 | 105 | ||
| 109 | 106 | cret := xSpringParamsGetDampingRatio(x.GoPointer()) | |
| 110 | - | ||
| 111 | 107 | return cret | |
| 112 | 108 | } | |
| 113 | 109 | ||
| @@ -117,7 +113,6 @@ var xSpringParamsGetMass func(uintptr) float64 | |||
| 117 | 113 | func (x *SpringParams) GetMass() float64 { | |
| 118 | 114 | ||
| 119 | 115 | cret := xSpringParamsGetMass(x.GoPointer()) | |
| 120 | - | ||
| 121 | 116 | return cret | |
| 122 | 117 | } | |
| 123 | 118 | ||
| @@ -127,7 +122,6 @@ var xSpringParamsGetStiffness func(uintptr) float64 | |||
| 127 | 122 | func (x *SpringParams) GetStiffness() float64 { | |
| 128 | 123 | ||
| 129 | 124 | cret := xSpringParamsGetStiffness(x.GoPointer()) | |
| 130 | - | ||
| 131 | 125 | return cret | |
| 132 | 126 | } | |
| 133 | 127 | ||
| @@ -137,7 +131,6 @@ var xSpringParamsRef func(uintptr) *SpringParams | |||
| 137 | 131 | func (x *SpringParams) Ref() *SpringParams { | |
| 138 | 132 | ||
| 139 | 133 | cret := xSpringParamsRef(x.GoPointer()) | |
| 140 | - | ||
| 141 | 134 | return cret | |
| 142 | 135 | } | |
| 143 | 136 | ||
M v4/adw/adw-squeezer.go +0 -15
| @@ -131,7 +131,6 @@ var xSqueezerGetAllowNone func(uintptr) bool | |||
| 131 | 131 | func (x *Squeezer) GetAllowNone() bool { | |
| 132 | 132 | ||
| 133 | 133 | cret := xSqueezerGetAllowNone(x.GoPointer()) | |
| 134 | - | ||
| 135 | 134 | return cret | |
| 136 | 135 | } | |
| 137 | 136 | ||
| @@ -141,7 +140,6 @@ var xSqueezerGetHomogeneous func(uintptr) bool | |||
| 141 | 140 | func (x *Squeezer) GetHomogeneous() bool { | |
| 142 | 141 | ||
| 143 | 142 | cret := xSqueezerGetHomogeneous(x.GoPointer()) | |
| 144 | - | ||
| 145 | 143 | return cret | |
| 146 | 144 | } | |
| 147 | 145 | ||
| @@ -151,7 +149,6 @@ var xSqueezerGetInterpolateSize func(uintptr) bool | |||
| 151 | 149 | func (x *Squeezer) GetInterpolateSize() bool { | |
| 152 | 150 | ||
| 153 | 151 | cret := xSqueezerGetInterpolateSize(x.GoPointer()) | |
| 154 | - | ||
| 155 | 152 | return cret | |
| 156 | 153 | } | |
| 157 | 154 | ||
| @@ -197,7 +194,6 @@ var xSqueezerGetSwitchThresholdPolicy func(uintptr) FoldThresholdPolicy | |||
| 197 | 194 | func (x *Squeezer) GetSwitchThresholdPolicy() FoldThresholdPolicy { | |
| 198 | 195 | ||
| 199 | 196 | cret := xSqueezerGetSwitchThresholdPolicy(x.GoPointer()) | |
| 200 | - | ||
| 201 | 197 | return cret | |
| 202 | 198 | } | |
| 203 | 199 | ||
| @@ -207,7 +203,6 @@ var xSqueezerGetTransitionDuration func(uintptr) uint | |||
| 207 | 203 | func (x *Squeezer) GetTransitionDuration() uint { | |
| 208 | 204 | ||
| 209 | 205 | cret := xSqueezerGetTransitionDuration(x.GoPointer()) | |
| 210 | - | ||
| 211 | 206 | return cret | |
| 212 | 207 | } | |
| 213 | 208 | ||
| @@ -221,7 +216,6 @@ var xSqueezerGetTransitionRunning func(uintptr) bool | |||
| 221 | 216 | func (x *Squeezer) GetTransitionRunning() bool { | |
| 222 | 217 | ||
| 223 | 218 | cret := xSqueezerGetTransitionRunning(x.GoPointer()) | |
| 224 | - | ||
| 225 | 219 | return cret | |
| 226 | 220 | } | |
| 227 | 221 | ||
| @@ -231,7 +225,6 @@ var xSqueezerGetTransitionType func(uintptr) SqueezerTransitionType | |||
| 231 | 225 | func (x *Squeezer) GetTransitionType() SqueezerTransitionType { | |
| 232 | 226 | ||
| 233 | 227 | cret := xSqueezerGetTransitionType(x.GoPointer()) | |
| 234 | - | ||
| 235 | 228 | return cret | |
| 236 | 229 | } | |
| 237 | 230 | ||
| @@ -258,7 +251,6 @@ var xSqueezerGetXalign func(uintptr) float32 | |||
| 258 | 251 | func (x *Squeezer) GetXalign() float32 { | |
| 259 | 252 | ||
| 260 | 253 | cret := xSqueezerGetXalign(x.GoPointer()) | |
| 261 | - | ||
| 262 | 254 | return cret | |
| 263 | 255 | } | |
| 264 | 256 | ||
| @@ -268,7 +260,6 @@ var xSqueezerGetYalign func(uintptr) float32 | |||
| 268 | 260 | func (x *Squeezer) GetYalign() float32 { | |
| 269 | 261 | ||
| 270 | 262 | cret := xSqueezerGetYalign(x.GoPointer()) | |
| 271 | - | ||
| 272 | 263 | return cret | |
| 273 | 264 | } | |
| 274 | 265 | ||
| @@ -597,7 +588,6 @@ func (x *Squeezer) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 597 | 588 | func (x *Squeezer) GetAccessibleRole() gtk.AccessibleRole { | |
| 598 | 589 | ||
| 599 | 590 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 600 | - | ||
| 601 | 591 | return cret | |
| 602 | 592 | } | |
| 603 | 593 | ||
| @@ -623,7 +613,6 @@ func (x *Squeezer) GetAtContext() *gtk.ATContext { | |||
| 623 | 613 | func (x *Squeezer) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 624 | 614 | ||
| 625 | 615 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 626 | - | ||
| 627 | 616 | return cret | |
| 628 | 617 | } | |
| 629 | 618 | ||
| @@ -663,7 +652,6 @@ func (x *Squeezer) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 663 | 652 | func (x *Squeezer) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 664 | 653 | ||
| 665 | 654 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 666 | - | ||
| 667 | 655 | return cret | |
| 668 | 656 | } | |
| 669 | 657 | ||
| @@ -840,7 +828,6 @@ func (x *Squeezer) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSt | |||
| 840 | 828 | func (x *Squeezer) GetBuildableId() string { | |
| 841 | 829 | ||
| 842 | 830 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 843 | - | ||
| 844 | 831 | return cret | |
| 845 | 832 | } | |
| 846 | 833 | ||
| @@ -848,7 +835,6 @@ func (x *Squeezer) GetBuildableId() string { | |||
| 848 | 835 | func (x *Squeezer) GetOrientation() gtk.Orientation { | |
| 849 | 836 | ||
| 850 | 837 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 851 | - | ||
| 852 | 838 | return cret | |
| 853 | 839 | } | |
| 854 | 840 | ||
| @@ -899,7 +885,6 @@ var xSqueezerPageGetEnabled func(uintptr) bool | |||
| 899 | 885 | func (x *SqueezerPage) GetEnabled() bool { | |
| 900 | 886 | ||
| 901 | 887 | cret := xSqueezerPageGetEnabled(x.GoPointer()) | |
| 902 | - | ||
| 903 | 888 | return cret | |
| 904 | 889 | } | |
| 905 | 890 | ||
M v4/adw/adw-status-page.go +4 -14
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -113,7 +112,6 @@ var xStatusPageGetDescription func(uintptr) string | |||
| 113 | 112 | func (x *StatusPage) GetDescription() string { | |
| 114 | 113 | ||
| 115 | 114 | cret := xStatusPageGetDescription(x.GoPointer()) | |
| 116 | - | ||
| 117 | 115 | return cret | |
| 118 | 116 | } | |
| 119 | 117 | ||
| @@ -123,7 +121,6 @@ var xStatusPageGetIconName func(uintptr) string | |||
| 123 | 121 | func (x *StatusPage) GetIconName() string { | |
| 124 | 122 | ||
| 125 | 123 | cret := xStatusPageGetIconName(x.GoPointer()) | |
| 126 | - | ||
| 127 | 124 | return cret | |
| 128 | 125 | } | |
| 129 | 126 | ||
| @@ -150,7 +147,6 @@ var xStatusPageGetTitle func(uintptr) string | |||
| 150 | 147 | func (x *StatusPage) GetTitle() string { | |
| 151 | 148 | ||
| 152 | 149 | cret := xStatusPageGetTitle(x.GoPointer()) | |
| 153 | - | ||
| 154 | 150 | return cret | |
| 155 | 151 | } | |
| 156 | 152 | ||
| @@ -170,12 +166,11 @@ var xStatusPageSetDescription func(uintptr, uintptr) | |||
| 170 | 166 | // The description is displayed below the title. It is parsed as Pango markup. | |
| 171 | 167 | func (x *StatusPage) SetDescription(DescriptionVar *string) { | |
| 172 | 168 | ||
| 173 | - | DescriptionVarPtr, DescriptionVarBytes := core.NullableStringToPtr(DescriptionVar) | |
| 169 | + | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 170 | + | defer core.GFreeNullable(DescriptionVarPtr) | |
| 174 | 171 | ||
| 175 | 172 | xStatusPageSetDescription(x.GoPointer(), DescriptionVarPtr) | |
| 176 | 173 | ||
| 177 | - | runtime.KeepAlive(DescriptionVarBytes) | |
| 178 | - | ||
| 179 | 174 | } | |
| 180 | 175 | ||
| 181 | 176 | var xStatusPageSetIconName func(uintptr, uintptr) | |
| @@ -185,12 +180,11 @@ var xStatusPageSetIconName func(uintptr, uintptr) | |||
| 185 | 180 | // Changing this will set [property@StatusPage:paintable] to `NULL`. | |
| 186 | 181 | func (x *StatusPage) SetIconName(IconNameVar *string) { | |
| 187 | 182 | ||
| 188 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 183 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 184 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 189 | 185 | ||
| 190 | 186 | xStatusPageSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 191 | 187 | ||
| 192 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 193 | - | ||
| 194 | 188 | } | |
| 195 | 189 | ||
| 196 | 190 | var xStatusPageSetPaintable func(uintptr, uintptr) | |
| @@ -320,7 +314,6 @@ func (x *StatusPage) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 320 | 314 | func (x *StatusPage) GetAccessibleRole() gtk.AccessibleRole { | |
| 321 | 315 | ||
| 322 | 316 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 323 | - | ||
| 324 | 317 | return cret | |
| 325 | 318 | } | |
| 326 | 319 | ||
| @@ -346,7 +339,6 @@ func (x *StatusPage) GetAtContext() *gtk.ATContext { | |||
| 346 | 339 | func (x *StatusPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 347 | 340 | ||
| 348 | 341 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 349 | - | ||
| 350 | 342 | return cret | |
| 351 | 343 | } | |
| 352 | 344 | ||
| @@ -386,7 +378,6 @@ func (x *StatusPage) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 386 | 378 | func (x *StatusPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 387 | 379 | ||
| 388 | 380 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 389 | - | ||
| 390 | 381 | return cret | |
| 391 | 382 | } | |
| 392 | 383 | ||
| @@ -563,7 +554,6 @@ func (x *StatusPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessible | |||
| 563 | 554 | func (x *StatusPage) GetBuildableId() string { | |
| 564 | 555 | ||
| 565 | 556 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 566 | - | ||
| 567 | 557 | return cret | |
| 568 | 558 | } | |
| 569 | 559 | ||
M v4/adw/adw-style-manager.go +0 -9
| @@ -83,7 +83,6 @@ var xStyleManagerGetAccentColor func(uintptr) AccentColor | |||
| 83 | 83 | func (x *StyleManager) GetAccentColor() AccentColor { | |
| 84 | 84 | ||
| 85 | 85 | cret := xStyleManagerGetAccentColor(x.GoPointer()) | |
| 86 | - | ||
| 87 | 86 | return cret | |
| 88 | 87 | } | |
| 89 | 88 | ||
| @@ -98,7 +97,6 @@ var xStyleManagerGetAccentColorRgba func(uintptr) *gdk.RGBA | |||
| 98 | 97 | func (x *StyleManager) GetAccentColorRgba() *gdk.RGBA { | |
| 99 | 98 | ||
| 100 | 99 | cret := xStyleManagerGetAccentColorRgba(x.GoPointer()) | |
| 101 | - | ||
| 102 | 100 | return cret | |
| 103 | 101 | } | |
| 104 | 102 | ||
| @@ -108,7 +106,6 @@ var xStyleManagerGetColorScheme func(uintptr) ColorScheme | |||
| 108 | 106 | func (x *StyleManager) GetColorScheme() ColorScheme { | |
| 109 | 107 | ||
| 110 | 108 | cret := xStyleManagerGetColorScheme(x.GoPointer()) | |
| 111 | - | ||
| 112 | 109 | return cret | |
| 113 | 110 | } | |
| 114 | 111 | ||
| @@ -121,7 +118,6 @@ var xStyleManagerGetDark func(uintptr) bool | |||
| 121 | 118 | func (x *StyleManager) GetDark() bool { | |
| 122 | 119 | ||
| 123 | 120 | cret := xStyleManagerGetDark(x.GoPointer()) | |
| 124 | - | ||
| 125 | 121 | return cret | |
| 126 | 122 | } | |
| 127 | 123 | ||
| @@ -156,7 +152,6 @@ var xStyleManagerGetDocumentFontName func(uintptr) string | |||
| 156 | 152 | func (x *StyleManager) GetDocumentFontName() string { | |
| 157 | 153 | ||
| 158 | 154 | cret := xStyleManagerGetDocumentFontName(x.GoPointer()) | |
| 159 | - | ||
| 160 | 155 | return cret | |
| 161 | 156 | } | |
| 162 | 157 | ||
| @@ -168,7 +163,6 @@ var xStyleManagerGetHighContrast func(uintptr) bool | |||
| 168 | 163 | func (x *StyleManager) GetHighContrast() bool { | |
| 169 | 164 | ||
| 170 | 165 | cret := xStyleManagerGetHighContrast(x.GoPointer()) | |
| 171 | - | ||
| 172 | 166 | return cret | |
| 173 | 167 | } | |
| 174 | 168 | ||
| @@ -183,7 +177,6 @@ var xStyleManagerGetMonospaceFontName func(uintptr) string | |||
| 183 | 177 | func (x *StyleManager) GetMonospaceFontName() string { | |
| 184 | 178 | ||
| 185 | 179 | cret := xStyleManagerGetMonospaceFontName(x.GoPointer()) | |
| 186 | - | ||
| 187 | 180 | return cret | |
| 188 | 181 | } | |
| 189 | 182 | ||
| @@ -199,7 +192,6 @@ var xStyleManagerGetSystemSupportsAccentColors func(uintptr) bool | |||
| 199 | 192 | func (x *StyleManager) GetSystemSupportsAccentColors() bool { | |
| 200 | 193 | ||
| 201 | 194 | cret := xStyleManagerGetSystemSupportsAccentColors(x.GoPointer()) | |
| 202 | - | ||
| 203 | 195 | return cret | |
| 204 | 196 | } | |
| 205 | 197 | ||
| @@ -213,7 +205,6 @@ var xStyleManagerGetSystemSupportsColorSchemes func(uintptr) bool | |||
| 213 | 205 | func (x *StyleManager) GetSystemSupportsColorSchemes() bool { | |
| 214 | 206 | ||
| 215 | 207 | cret := xStyleManagerGetSystemSupportsColorSchemes(x.GoPointer()) | |
| 216 | - | ||
| 217 | 208 | return cret | |
| 218 | 209 | } | |
| 219 | 210 | ||
M v4/adw/adw-swipe-tracker.go +0 -8
| @@ -72,7 +72,6 @@ var xSwipeTrackerGetAllowLongSwipes func(uintptr) bool | |||
| 72 | 72 | func (x *SwipeTracker) GetAllowLongSwipes() bool { | |
| 73 | 73 | ||
| 74 | 74 | cret := xSwipeTrackerGetAllowLongSwipes(x.GoPointer()) | |
| 75 | - | ||
| 76 | 75 | return cret | |
| 77 | 76 | } | |
| 78 | 77 | ||
| @@ -82,7 +81,6 @@ var xSwipeTrackerGetAllowMouseDrag func(uintptr) bool | |||
| 82 | 81 | func (x *SwipeTracker) GetAllowMouseDrag() bool { | |
| 83 | 82 | ||
| 84 | 83 | cret := xSwipeTrackerGetAllowMouseDrag(x.GoPointer()) | |
| 85 | - | ||
| 86 | 84 | return cret | |
| 87 | 85 | } | |
| 88 | 86 | ||
| @@ -92,7 +90,6 @@ var xSwipeTrackerGetAllowWindowHandle func(uintptr) bool | |||
| 92 | 90 | func (x *SwipeTracker) GetAllowWindowHandle() bool { | |
| 93 | 91 | ||
| 94 | 92 | cret := xSwipeTrackerGetAllowWindowHandle(x.GoPointer()) | |
| 95 | - | ||
| 96 | 93 | return cret | |
| 97 | 94 | } | |
| 98 | 95 | ||
| @@ -102,7 +99,6 @@ var xSwipeTrackerGetEnabled func(uintptr) bool | |||
| 102 | 99 | func (x *SwipeTracker) GetEnabled() bool { | |
| 103 | 100 | ||
| 104 | 101 | cret := xSwipeTrackerGetEnabled(x.GoPointer()) | |
| 105 | - | ||
| 106 | 102 | return cret | |
| 107 | 103 | } | |
| 108 | 104 | ||
| @@ -112,7 +108,6 @@ var xSwipeTrackerGetLowerOvershoot func(uintptr) bool | |||
| 112 | 108 | func (x *SwipeTracker) GetLowerOvershoot() bool { | |
| 113 | 109 | ||
| 114 | 110 | cret := xSwipeTrackerGetLowerOvershoot(x.GoPointer()) | |
| 115 | - | ||
| 116 | 111 | return cret | |
| 117 | 112 | } | |
| 118 | 113 | ||
| @@ -122,7 +117,6 @@ var xSwipeTrackerGetReversed func(uintptr) bool | |||
| 122 | 117 | func (x *SwipeTracker) GetReversed() bool { | |
| 123 | 118 | ||
| 124 | 119 | cret := xSwipeTrackerGetReversed(x.GoPointer()) | |
| 125 | - | ||
| 126 | 120 | return cret | |
| 127 | 121 | } | |
| 128 | 122 | ||
| @@ -149,7 +143,6 @@ var xSwipeTrackerGetUpperOvershoot func(uintptr) bool | |||
| 149 | 143 | func (x *SwipeTracker) GetUpperOvershoot() bool { | |
| 150 | 144 | ||
| 151 | 145 | cret := xSwipeTrackerGetUpperOvershoot(x.GoPointer()) | |
| 152 | - | ||
| 153 | 146 | return cret | |
| 154 | 147 | } | |
| 155 | 148 | ||
| @@ -500,7 +493,6 @@ func (x *SwipeTracker) ConnectUpdateSwipe(cb *func(SwipeTracker, float64)) uint | |||
| 500 | 493 | func (x *SwipeTracker) GetOrientation() gtk.Orientation { | |
| 501 | 494 | ||
| 502 | 495 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 503 | - | ||
| 504 | 496 | return cret | |
| 505 | 497 | } | |
| 506 | 498 | ||
M v4/adw/adw-swipeable.go +0 -4
| @@ -199,7 +199,6 @@ func (x *SwipeableBase) SetGoPointer(ptr uintptr) { | |||
| 199 | 199 | func (x *SwipeableBase) GetCancelProgress() float64 { | |
| 200 | 200 | ||
| 201 | 201 | cret := XAdwSwipeableGetCancelProgress(x.GoPointer()) | |
| 202 | - | ||
| 203 | 202 | return cret | |
| 204 | 203 | } | |
| 205 | 204 | ||
| @@ -209,7 +208,6 @@ func (x *SwipeableBase) GetCancelProgress() float64 { | |||
| 209 | 208 | func (x *SwipeableBase) GetDistance() float64 { | |
| 210 | 209 | ||
| 211 | 210 | cret := XAdwSwipeableGetDistance(x.GoPointer()) | |
| 212 | - | ||
| 213 | 211 | return cret | |
| 214 | 212 | } | |
| 215 | 213 | ||
| @@ -217,7 +215,6 @@ func (x *SwipeableBase) GetDistance() float64 { | |||
| 217 | 215 | func (x *SwipeableBase) GetProgress() float64 { | |
| 218 | 216 | ||
| 219 | 217 | cret := XAdwSwipeableGetProgress(x.GoPointer()) | |
| 220 | - | ||
| 221 | 218 | return cret | |
| 222 | 219 | } | |
| 223 | 220 | ||
| @@ -228,7 +225,6 @@ func (x *SwipeableBase) GetProgress() float64 { | |||
| 228 | 225 | func (x *SwipeableBase) GetSnapPoints(NSnapPointsVar *int) uintptr { | |
| 229 | 226 | ||
| 230 | 227 | cret := XAdwSwipeableGetSnapPoints(x.GoPointer(), NSnapPointsVar) | |
| 231 | - | ||
| 232 | 228 | return cret | |
| 233 | 229 | } | |
| 234 | 230 | ||
M v4/adw/adw-switch-row.go +2 -11
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -97,7 +96,6 @@ var xSwitchRowGetActive func(uintptr) bool | |||
| 97 | 96 | func (x *SwitchRow) GetActive() bool { | |
| 98 | 97 | ||
| 99 | 98 | cret := xSwitchRowGetActive(x.GoPointer()) | |
| 100 | - | ||
| 101 | 99 | return cret | |
| 102 | 100 | } | |
| 103 | 101 | ||
| @@ -173,7 +171,6 @@ func (x *SwitchRow) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 173 | 171 | func (x *SwitchRow) GetAccessibleRole() gtk.AccessibleRole { | |
| 174 | 172 | ||
| 175 | 173 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 176 | - | ||
| 177 | 174 | return cret | |
| 178 | 175 | } | |
| 179 | 176 | ||
| @@ -199,7 +196,6 @@ func (x *SwitchRow) GetAtContext() *gtk.ATContext { | |||
| 199 | 196 | func (x *SwitchRow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 200 | 197 | ||
| 201 | 198 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 202 | - | ||
| 203 | 199 | return cret | |
| 204 | 200 | } | |
| 205 | 201 | ||
| @@ -239,7 +235,6 @@ func (x *SwitchRow) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 239 | 235 | func (x *SwitchRow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 240 | 236 | ||
| 241 | 237 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 242 | - | ||
| 243 | 238 | return cret | |
| 244 | 239 | } | |
| 245 | 240 | ||
| @@ -413,7 +408,6 @@ func (x *SwitchRow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 413 | 408 | func (x *SwitchRow) GetActionName() string { | |
| 414 | 409 | ||
| 415 | 410 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 416 | - | ||
| 417 | 411 | return cret | |
| 418 | 412 | } | |
| 419 | 413 | ||
| @@ -421,7 +415,6 @@ func (x *SwitchRow) GetActionName() string { | |||
| 421 | 415 | func (x *SwitchRow) GetActionTargetValue() *glib.Variant { | |
| 422 | 416 | ||
| 423 | 417 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 424 | - | ||
| 425 | 418 | return cret | |
| 426 | 419 | } | |
| 427 | 420 | ||
| @@ -440,12 +433,11 @@ func (x *SwitchRow) GetActionTargetValue() *glib.Variant { | |||
| 440 | 433 | // associated with the window. | |
| 441 | 434 | func (x *SwitchRow) SetActionName(ActionNameVar *string) { | |
| 442 | 435 | ||
| 443 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 436 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 437 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 444 | 438 | ||
| 445 | 439 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 446 | 440 | ||
| 447 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 448 | - | ||
| 449 | 441 | } | |
| 450 | 442 | ||
| 451 | 443 | // Sets the target of an actionable widget. | |
| @@ -505,7 +497,6 @@ func (x *SwitchRow) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 505 | 497 | func (x *SwitchRow) GetBuildableId() string { | |
| 506 | 498 | ||
| 507 | 499 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 508 | - | ||
| 509 | 500 | return cret | |
| 510 | 501 | } | |
| 511 | 502 | ||
M v4/adw/adw-tab-bar.go +0 -11
| @@ -99,7 +99,6 @@ var xTabBarGetAutohide func(uintptr) bool | |||
| 99 | 99 | func (x *TabBar) GetAutohide() bool { | |
| 100 | 100 | ||
| 101 | 101 | cret := xTabBarGetAutohide(x.GoPointer()) | |
| 102 | - | ||
| 103 | 102 | return cret | |
| 104 | 103 | } | |
| 105 | 104 | ||
| @@ -126,7 +125,6 @@ var xTabBarGetExpandTabs func(uintptr) bool | |||
| 126 | 125 | func (x *TabBar) GetExpandTabs() bool { | |
| 127 | 126 | ||
| 128 | 127 | cret := xTabBarGetExpandTabs(x.GoPointer()) | |
| 129 | - | ||
| 130 | 128 | return cret | |
| 131 | 129 | } | |
| 132 | 130 | ||
| @@ -136,7 +134,6 @@ var xTabBarGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||
| 136 | 134 | func (x *TabBar) GetExtraDragPreferredAction() gdk.DragAction { | |
| 137 | 135 | ||
| 138 | 136 | cret := xTabBarGetExtraDragPreferredAction(x.GoPointer()) | |
| 139 | - | ||
| 140 | 137 | return cret | |
| 141 | 138 | } | |
| 142 | 139 | ||
| @@ -146,7 +143,6 @@ var xTabBarGetExtraDragPreload func(uintptr) bool | |||
| 146 | 143 | func (x *TabBar) GetExtraDragPreload() bool { | |
| 147 | 144 | ||
| 148 | 145 | cret := xTabBarGetExtraDragPreload(x.GoPointer()) | |
| 149 | - | ||
| 150 | 146 | return cret | |
| 151 | 147 | } | |
| 152 | 148 | ||
| @@ -156,7 +152,6 @@ var xTabBarGetInverted func(uintptr) bool | |||
| 156 | 152 | func (x *TabBar) GetInverted() bool { | |
| 157 | 153 | ||
| 158 | 154 | cret := xTabBarGetInverted(x.GoPointer()) | |
| 159 | - | ||
| 160 | 155 | return cret | |
| 161 | 156 | } | |
| 162 | 157 | ||
| @@ -168,7 +163,6 @@ var xTabBarGetIsOverflowing func(uintptr) bool | |||
| 168 | 163 | func (x *TabBar) GetIsOverflowing() bool { | |
| 169 | 164 | ||
| 170 | 165 | cret := xTabBarGetIsOverflowing(x.GoPointer()) | |
| 171 | - | ||
| 172 | 166 | return cret | |
| 173 | 167 | } | |
| 174 | 168 | ||
| @@ -197,7 +191,6 @@ var xTabBarGetTabsRevealed func(uintptr) bool | |||
| 197 | 191 | func (x *TabBar) GetTabsRevealed() bool { | |
| 198 | 192 | ||
| 199 | 193 | cret := xTabBarGetTabsRevealed(x.GoPointer()) | |
| 200 | - | ||
| 201 | 194 | return cret | |
| 202 | 195 | } | |
| 203 | 196 | ||
| @@ -534,7 +527,6 @@ func (x *TabBar) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 534 | 527 | func (x *TabBar) GetAccessibleRole() gtk.AccessibleRole { | |
| 535 | 528 | ||
| 536 | 529 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 537 | - | ||
| 538 | 530 | return cret | |
| 539 | 531 | } | |
| 540 | 532 | ||
| @@ -560,7 +552,6 @@ func (x *TabBar) GetAtContext() *gtk.ATContext { | |||
| 560 | 552 | func (x *TabBar) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 561 | 553 | ||
| 562 | 554 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 563 | - | ||
| 564 | 555 | return cret | |
| 565 | 556 | } | |
| 566 | 557 | ||
| @@ -600,7 +591,6 @@ func (x *TabBar) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 600 | 591 | func (x *TabBar) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 601 | 592 | ||
| 602 | 593 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 603 | - | ||
| 604 | 594 | return cret | |
| 605 | 595 | } | |
| 606 | 596 | ||
| @@ -777,7 +767,6 @@ func (x *TabBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleStat | |||
| 777 | 767 | func (x *TabBar) GetBuildableId() string { | |
| 778 | 768 | ||
| 779 | 769 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 780 | - | ||
| 781 | 770 | return cret | |
| 782 | 771 | } | |
| 783 | 772 | ||
M v4/adw/adw-tab-button.go +2 -10
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -212,7 +211,6 @@ func (x *TabButton) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 212 | 211 | func (x *TabButton) GetAccessibleRole() gtk.AccessibleRole { | |
| 213 | 212 | ||
| 214 | 213 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 215 | - | ||
| 216 | 214 | return cret | |
| 217 | 215 | } | |
| 218 | 216 | ||
| @@ -238,7 +236,6 @@ func (x *TabButton) GetAtContext() *gtk.ATContext { | |||
| 238 | 236 | func (x *TabButton) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 239 | 237 | ||
| 240 | 238 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 241 | - | ||
| 242 | 239 | return cret | |
| 243 | 240 | } | |
| 244 | 241 | ||
| @@ -278,7 +275,6 @@ func (x *TabButton) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 278 | 275 | func (x *TabButton) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 279 | 276 | ||
| 280 | 277 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 281 | - | ||
| 282 | 278 | return cret | |
| 283 | 279 | } | |
| 284 | 280 | ||
| @@ -452,7 +448,6 @@ func (x *TabButton) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 452 | 448 | func (x *TabButton) GetActionName() string { | |
| 453 | 449 | ||
| 454 | 450 | cret := gtk.XGtkActionableGetActionName(x.GoPointer()) | |
| 455 | - | ||
| 456 | 451 | return cret | |
| 457 | 452 | } | |
| 458 | 453 | ||
| @@ -460,7 +455,6 @@ func (x *TabButton) GetActionName() string { | |||
| 460 | 455 | func (x *TabButton) GetActionTargetValue() *glib.Variant { | |
| 461 | 456 | ||
| 462 | 457 | cret := gtk.XGtkActionableGetActionTargetValue(x.GoPointer()) | |
| 463 | - | ||
| 464 | 458 | return cret | |
| 465 | 459 | } | |
| 466 | 460 | ||
| @@ -479,12 +473,11 @@ func (x *TabButton) GetActionTargetValue() *glib.Variant { | |||
| 479 | 473 | // associated with the window. | |
| 480 | 474 | func (x *TabButton) SetActionName(ActionNameVar *string) { | |
| 481 | 475 | ||
| 482 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 476 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 477 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 483 | 478 | ||
| 484 | 479 | gtk.XGtkActionableSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 485 | 480 | ||
| 486 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 487 | - | ||
| 488 | 481 | } | |
| 489 | 482 | ||
| 490 | 483 | // Sets the target of an actionable widget. | |
| @@ -544,7 +537,6 @@ func (x *TabButton) SetDetailedActionName(DetailedActionNameVar string) { | |||
| 544 | 537 | func (x *TabButton) GetBuildableId() string { | |
| 545 | 538 | ||
| 546 | 539 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 547 | - | ||
| 548 | 540 | return cret | |
| 549 | 541 | } | |
| 550 | 542 | ||
M v4/adw/adw-tab-overview.go +0 -13
| @@ -139,7 +139,6 @@ var xTabOverviewGetEnableNewTab func(uintptr) bool | |||
| 139 | 139 | func (x *TabOverview) GetEnableNewTab() bool { | |
| 140 | 140 | ||
| 141 | 141 | cret := xTabOverviewGetEnableNewTab(x.GoPointer()) | |
| 142 | - | ||
| 143 | 142 | return cret | |
| 144 | 143 | } | |
| 145 | 144 | ||
| @@ -149,7 +148,6 @@ var xTabOverviewGetEnableSearch func(uintptr) bool | |||
| 149 | 148 | func (x *TabOverview) GetEnableSearch() bool { | |
| 150 | 149 | ||
| 151 | 150 | cret := xTabOverviewGetEnableSearch(x.GoPointer()) | |
| 152 | - | ||
| 153 | 151 | return cret | |
| 154 | 152 | } | |
| 155 | 153 | ||
| @@ -159,7 +157,6 @@ var xTabOverviewGetExtraDragPreferredAction func(uintptr) gdk.DragAction | |||
| 159 | 157 | func (x *TabOverview) GetExtraDragPreferredAction() gdk.DragAction { | |
| 160 | 158 | ||
| 161 | 159 | cret := xTabOverviewGetExtraDragPreferredAction(x.GoPointer()) | |
| 162 | - | ||
| 163 | 160 | return cret | |
| 164 | 161 | } | |
| 165 | 162 | ||
| @@ -169,7 +166,6 @@ var xTabOverviewGetExtraDragPreload func(uintptr) bool | |||
| 169 | 166 | func (x *TabOverview) GetExtraDragPreload() bool { | |
| 170 | 167 | ||
| 171 | 168 | cret := xTabOverviewGetExtraDragPreload(x.GoPointer()) | |
| 172 | - | ||
| 173 | 169 | return cret | |
| 174 | 170 | } | |
| 175 | 171 | ||
| @@ -179,7 +175,6 @@ var xTabOverviewGetInverted func(uintptr) bool | |||
| 179 | 175 | func (x *TabOverview) GetInverted() bool { | |
| 180 | 176 | ||
| 181 | 177 | cret := xTabOverviewGetInverted(x.GoPointer()) | |
| 182 | - | ||
| 183 | 178 | return cret | |
| 184 | 179 | } | |
| 185 | 180 | ||
| @@ -189,7 +184,6 @@ var xTabOverviewGetOpen func(uintptr) bool | |||
| 189 | 184 | func (x *TabOverview) GetOpen() bool { | |
| 190 | 185 | ||
| 191 | 186 | cret := xTabOverviewGetOpen(x.GoPointer()) | |
| 192 | - | ||
| 193 | 187 | return cret | |
| 194 | 188 | } | |
| 195 | 189 | ||
| @@ -201,7 +195,6 @@ var xTabOverviewGetSearchActive func(uintptr) bool | |||
| 201 | 195 | func (x *TabOverview) GetSearchActive() bool { | |
| 202 | 196 | ||
| 203 | 197 | cret := xTabOverviewGetSearchActive(x.GoPointer()) | |
| 204 | - | ||
| 205 | 198 | return cret | |
| 206 | 199 | } | |
| 207 | 200 | ||
| @@ -228,7 +221,6 @@ var xTabOverviewGetShowEndTitleButtons func(uintptr) bool | |||
| 228 | 221 | func (x *TabOverview) GetShowEndTitleButtons() bool { | |
| 229 | 222 | ||
| 230 | 223 | cret := xTabOverviewGetShowEndTitleButtons(x.GoPointer()) | |
| 231 | - | ||
| 232 | 224 | return cret | |
| 233 | 225 | } | |
| 234 | 226 | ||
| @@ -238,7 +230,6 @@ var xTabOverviewGetShowStartTitleButtons func(uintptr) bool | |||
| 238 | 230 | func (x *TabOverview) GetShowStartTitleButtons() bool { | |
| 239 | 231 | ||
| 240 | 232 | cret := xTabOverviewGetShowStartTitleButtons(x.GoPointer()) | |
| 241 | - | ||
| 242 | 233 | return cret | |
| 243 | 234 | } | |
| 244 | 235 | ||
| @@ -700,7 +691,6 @@ func (x *TabOverview) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 700 | 691 | func (x *TabOverview) GetAccessibleRole() gtk.AccessibleRole { | |
| 701 | 692 | ||
| 702 | 693 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 703 | - | ||
| 704 | 694 | return cret | |
| 705 | 695 | } | |
| 706 | 696 | ||
| @@ -726,7 +716,6 @@ func (x *TabOverview) GetAtContext() *gtk.ATContext { | |||
| 726 | 716 | func (x *TabOverview) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 727 | 717 | ||
| 728 | 718 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 729 | - | ||
| 730 | 719 | return cret | |
| 731 | 720 | } | |
| 732 | 721 | ||
| @@ -766,7 +755,6 @@ func (x *TabOverview) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 766 | 755 | func (x *TabOverview) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 767 | 756 | ||
| 768 | 757 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 769 | - | ||
| 770 | 758 | return cret | |
| 771 | 759 | } | |
| 772 | 760 | ||
| @@ -943,7 +931,6 @@ func (x *TabOverview) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 943 | 931 | func (x *TabOverview) GetBuildableId() string { | |
| 944 | 932 | ||
| 945 | 933 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 946 | - | ||
| 947 | 934 | return cret | |
| 948 | 935 | } | |
| 949 | 936 | ||
M v4/adw/adw-tab-view.go +0 -31
| @@ -143,7 +143,6 @@ var xTabPageGetIndicatorActivatable func(uintptr) bool | |||
| 143 | 143 | func (x *TabPage) GetIndicatorActivatable() bool { | |
| 144 | 144 | ||
| 145 | 145 | cret := xTabPageGetIndicatorActivatable(x.GoPointer()) | |
| 146 | - | ||
| 147 | 146 | return cret | |
| 148 | 147 | } | |
| 149 | 148 | ||
| @@ -170,7 +169,6 @@ var xTabPageGetIndicatorTooltip func(uintptr) string | |||
| 170 | 169 | func (x *TabPage) GetIndicatorTooltip() string { | |
| 171 | 170 | ||
| 172 | 171 | cret := xTabPageGetIndicatorTooltip(x.GoPointer()) | |
| 173 | - | ||
| 174 | 172 | return cret | |
| 175 | 173 | } | |
| 176 | 174 | ||
| @@ -180,7 +178,6 @@ var xTabPageGetKeyword func(uintptr) string | |||
| 180 | 178 | func (x *TabPage) GetKeyword() string { | |
| 181 | 179 | ||
| 182 | 180 | cret := xTabPageGetKeyword(x.GoPointer()) | |
| 183 | - | ||
| 184 | 181 | return cret | |
| 185 | 182 | } | |
| 186 | 183 | ||
| @@ -190,7 +187,6 @@ var xTabPageGetLiveThumbnail func(uintptr) bool | |||
| 190 | 187 | func (x *TabPage) GetLiveThumbnail() bool { | |
| 191 | 188 | ||
| 192 | 189 | cret := xTabPageGetLiveThumbnail(x.GoPointer()) | |
| 193 | - | ||
| 194 | 190 | return cret | |
| 195 | 191 | } | |
| 196 | 192 | ||
| @@ -200,7 +196,6 @@ var xTabPageGetLoading func(uintptr) bool | |||
| 200 | 196 | func (x *TabPage) GetLoading() bool { | |
| 201 | 197 | ||
| 202 | 198 | cret := xTabPageGetLoading(x.GoPointer()) | |
| 203 | - | ||
| 204 | 199 | return cret | |
| 205 | 200 | } | |
| 206 | 201 | ||
| @@ -210,7 +205,6 @@ var xTabPageGetNeedsAttention func(uintptr) bool | |||
| 210 | 205 | func (x *TabPage) GetNeedsAttention() bool { | |
| 211 | 206 | ||
| 212 | 207 | cret := xTabPageGetNeedsAttention(x.GoPointer()) | |
| 213 | - | ||
| 214 | 208 | return cret | |
| 215 | 209 | } | |
| 216 | 210 | ||
| @@ -241,7 +235,6 @@ var xTabPageGetPinned func(uintptr) bool | |||
| 241 | 235 | func (x *TabPage) GetPinned() bool { | |
| 242 | 236 | ||
| 243 | 237 | cret := xTabPageGetPinned(x.GoPointer()) | |
| 244 | - | ||
| 245 | 238 | return cret | |
| 246 | 239 | } | |
| 247 | 240 | ||
| @@ -251,7 +244,6 @@ var xTabPageGetSelected func(uintptr) bool | |||
| 251 | 244 | func (x *TabPage) GetSelected() bool { | |
| 252 | 245 | ||
| 253 | 246 | cret := xTabPageGetSelected(x.GoPointer()) | |
| 254 | - | ||
| 255 | 247 | return cret | |
| 256 | 248 | } | |
| 257 | 249 | ||
| @@ -261,7 +253,6 @@ var xTabPageGetThumbnailXalign func(uintptr) float32 | |||
| 261 | 253 | func (x *TabPage) GetThumbnailXalign() float32 { | |
| 262 | 254 | ||
| 263 | 255 | cret := xTabPageGetThumbnailXalign(x.GoPointer()) | |
| 264 | - | ||
| 265 | 256 | return cret | |
| 266 | 257 | } | |
| 267 | 258 | ||
| @@ -271,7 +262,6 @@ var xTabPageGetThumbnailYalign func(uintptr) float32 | |||
| 271 | 262 | func (x *TabPage) GetThumbnailYalign() float32 { | |
| 272 | 263 | ||
| 273 | 264 | cret := xTabPageGetThumbnailYalign(x.GoPointer()) | |
| 274 | - | ||
| 275 | 265 | return cret | |
| 276 | 266 | } | |
| 277 | 267 | ||
| @@ -281,7 +271,6 @@ var xTabPageGetTitle func(uintptr) string | |||
| 281 | 271 | func (x *TabPage) GetTitle() string { | |
| 282 | 272 | ||
| 283 | 273 | cret := xTabPageGetTitle(x.GoPointer()) | |
| 284 | - | ||
| 285 | 274 | return cret | |
| 286 | 275 | } | |
| 287 | 276 | ||
| @@ -291,7 +280,6 @@ var xTabPageGetTooltip func(uintptr) string | |||
| 291 | 280 | func (x *TabPage) GetTooltip() string { | |
| 292 | 281 | ||
| 293 | 282 | cret := xTabPageGetTooltip(x.GoPointer()) | |
| 294 | - | ||
| 295 | 283 | return cret | |
| 296 | 284 | } | |
| 297 | 285 | ||
| @@ -879,7 +867,6 @@ func (x *TabPage) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 879 | 867 | func (x *TabPage) GetAccessibleRole() gtk.AccessibleRole { | |
| 880 | 868 | ||
| 881 | 869 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 882 | - | ||
| 883 | 870 | return cret | |
| 884 | 871 | } | |
| 885 | 872 | ||
| @@ -905,7 +892,6 @@ func (x *TabPage) GetAtContext() *gtk.ATContext { | |||
| 905 | 892 | func (x *TabPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 906 | 893 | ||
| 907 | 894 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 908 | - | ||
| 909 | 895 | return cret | |
| 910 | 896 | } | |
| 911 | 897 | ||
| @@ -945,7 +931,6 @@ func (x *TabPage) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 945 | 931 | func (x *TabPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 946 | 932 | ||
| 947 | 933 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 948 | - | ||
| 949 | 934 | return cret | |
| 950 | 935 | } | |
| 951 | 936 | ||
| @@ -1361,7 +1346,6 @@ var xTabViewGetIsTransferringPage func(uintptr) bool | |||
| 1361 | 1346 | func (x *TabView) GetIsTransferringPage() bool { | |
| 1362 | 1347 | ||
| 1363 | 1348 | cret := xTabViewGetIsTransferringPage(x.GoPointer()) | |
| 1364 | - | ||
| 1365 | 1349 | return cret | |
| 1366 | 1350 | } | |
| 1367 | 1351 | ||
| @@ -1388,7 +1372,6 @@ var xTabViewGetNPages func(uintptr) int | |||
| 1388 | 1372 | func (x *TabView) GetNPages() int { | |
| 1389 | 1373 | ||
| 1390 | 1374 | cret := xTabViewGetNPages(x.GoPointer()) | |
| 1391 | - | ||
| 1392 | 1375 | return cret | |
| 1393 | 1376 | } | |
| 1394 | 1377 | ||
| @@ -1400,7 +1383,6 @@ var xTabViewGetNPinnedPages func(uintptr) int | |||
| 1400 | 1383 | func (x *TabView) GetNPinnedPages() int { | |
| 1401 | 1384 | ||
| 1402 | 1385 | cret := xTabViewGetNPinnedPages(x.GoPointer()) | |
| 1403 | - | ||
| 1404 | 1386 | return cret | |
| 1405 | 1387 | } | |
| 1406 | 1388 | ||
| @@ -1444,7 +1426,6 @@ var xTabViewGetPagePosition func(uintptr, uintptr) int | |||
| 1444 | 1426 | func (x *TabView) GetPagePosition(PageVar *TabPage) int { | |
| 1445 | 1427 | ||
| 1446 | 1428 | cret := xTabViewGetPagePosition(x.GoPointer(), PageVar.GoPointer()) | |
| 1447 | - | ||
| 1448 | 1429 | return cret | |
| 1449 | 1430 | } | |
| 1450 | 1431 | ||
| @@ -1491,7 +1472,6 @@ var xTabViewGetShortcuts func(uintptr) TabViewShortcuts | |||
| 1491 | 1472 | func (x *TabView) GetShortcuts() TabViewShortcuts { | |
| 1492 | 1473 | ||
| 1493 | 1474 | cret := xTabViewGetShortcuts(x.GoPointer()) | |
| 1494 | - | ||
| 1495 | 1475 | return cret | |
| 1496 | 1476 | } | |
| 1497 | 1477 | ||
| @@ -1598,7 +1578,6 @@ var xTabViewReorderBackward func(uintptr, uintptr) bool | |||
| 1598 | 1578 | func (x *TabView) ReorderBackward(PageVar *TabPage) bool { | |
| 1599 | 1579 | ||
| 1600 | 1580 | cret := xTabViewReorderBackward(x.GoPointer(), PageVar.GoPointer()) | |
| 1601 | - | ||
| 1602 | 1581 | return cret | |
| 1603 | 1582 | } | |
| 1604 | 1583 | ||
| @@ -1608,7 +1587,6 @@ var xTabViewReorderFirst func(uintptr, uintptr) bool | |||
| 1608 | 1587 | func (x *TabView) ReorderFirst(PageVar *TabPage) bool { | |
| 1609 | 1588 | ||
| 1610 | 1589 | cret := xTabViewReorderFirst(x.GoPointer(), PageVar.GoPointer()) | |
| 1611 | - | ||
| 1612 | 1590 | return cret | |
| 1613 | 1591 | } | |
| 1614 | 1592 | ||
| @@ -1618,7 +1596,6 @@ var xTabViewReorderForward func(uintptr, uintptr) bool | |||
| 1618 | 1596 | func (x *TabView) ReorderForward(PageVar *TabPage) bool { | |
| 1619 | 1597 | ||
| 1620 | 1598 | cret := xTabViewReorderForward(x.GoPointer(), PageVar.GoPointer()) | |
| 1621 | - | ||
| 1622 | 1599 | return cret | |
| 1623 | 1600 | } | |
| 1624 | 1601 | ||
| @@ -1628,7 +1605,6 @@ var xTabViewReorderLast func(uintptr, uintptr) bool | |||
| 1628 | 1605 | func (x *TabView) ReorderLast(PageVar *TabPage) bool { | |
| 1629 | 1606 | ||
| 1630 | 1607 | cret := xTabViewReorderLast(x.GoPointer(), PageVar.GoPointer()) | |
| 1631 | - | ||
| 1632 | 1608 | return cret | |
| 1633 | 1609 | } | |
| 1634 | 1610 | ||
| @@ -1641,7 +1617,6 @@ var xTabViewReorderPage func(uintptr, uintptr, int) bool | |||
| 1641 | 1617 | func (x *TabView) ReorderPage(PageVar *TabPage, PositionVar int) bool { | |
| 1642 | 1618 | ||
| 1643 | 1619 | cret := xTabViewReorderPage(x.GoPointer(), PageVar.GoPointer(), PositionVar) | |
| 1644 | - | ||
| 1645 | 1620 | return cret | |
| 1646 | 1621 | } | |
| 1647 | 1622 | ||
| @@ -1653,7 +1628,6 @@ var xTabViewSelectNextPage func(uintptr) bool | |||
| 1653 | 1628 | func (x *TabView) SelectNextPage() bool { | |
| 1654 | 1629 | ||
| 1655 | 1630 | cret := xTabViewSelectNextPage(x.GoPointer()) | |
| 1656 | - | ||
| 1657 | 1631 | return cret | |
| 1658 | 1632 | } | |
| 1659 | 1633 | ||
| @@ -1665,7 +1639,6 @@ var xTabViewSelectPreviousPage func(uintptr) bool | |||
| 1665 | 1639 | func (x *TabView) SelectPreviousPage() bool { | |
| 1666 | 1640 | ||
| 1667 | 1641 | cret := xTabViewSelectPreviousPage(x.GoPointer()) | |
| 1668 | - | ||
| 1669 | 1642 | return cret | |
| 1670 | 1643 | } | |
| 1671 | 1644 | ||
| @@ -2079,7 +2052,6 @@ func (x *TabView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 2079 | 2052 | func (x *TabView) GetAccessibleRole() gtk.AccessibleRole { | |
| 2080 | 2053 | ||
| 2081 | 2054 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 2082 | - | ||
| 2083 | 2055 | return cret | |
| 2084 | 2056 | } | |
| 2085 | 2057 | ||
| @@ -2105,7 +2077,6 @@ func (x *TabView) GetAtContext() *gtk.ATContext { | |||
| 2105 | 2077 | func (x *TabView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 2106 | 2078 | ||
| 2107 | 2079 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 2108 | - | ||
| 2109 | 2080 | return cret | |
| 2110 | 2081 | } | |
| 2111 | 2082 | ||
| @@ -2145,7 +2116,6 @@ func (x *TabView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 2145 | 2116 | func (x *TabView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 2146 | 2117 | ||
| 2147 | 2118 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 2148 | - | ||
| 2149 | 2119 | return cret | |
| 2150 | 2120 | } | |
| 2151 | 2121 | ||
| @@ -2322,7 +2292,6 @@ func (x *TabView) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSta | |||
| 2322 | 2292 | func (x *TabView) GetBuildableId() string { | |
| 2323 | 2293 | ||
| 2324 | 2294 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 2325 | - | ||
| 2326 | 2295 | return cret | |
| 2327 | 2296 | } | |
| 2328 | 2297 | ||
M v4/adw/adw-timed-animation.go +0 -7
| @@ -76,7 +76,6 @@ var xTimedAnimationGetAlternate func(uintptr) bool | |||
| 76 | 76 | func (x *TimedAnimation) GetAlternate() bool { | |
| 77 | 77 | ||
| 78 | 78 | cret := xTimedAnimationGetAlternate(x.GoPointer()) | |
| 79 | - | ||
| 80 | 79 | return cret | |
| 81 | 80 | } | |
| 82 | 81 | ||
| @@ -86,7 +85,6 @@ var xTimedAnimationGetDuration func(uintptr) uint | |||
| 86 | 85 | func (x *TimedAnimation) GetDuration() uint { | |
| 87 | 86 | ||
| 88 | 87 | cret := xTimedAnimationGetDuration(x.GoPointer()) | |
| 89 | - | ||
| 90 | 88 | return cret | |
| 91 | 89 | } | |
| 92 | 90 | ||
| @@ -96,7 +94,6 @@ var xTimedAnimationGetEasing func(uintptr) Easing | |||
| 96 | 94 | func (x *TimedAnimation) GetEasing() Easing { | |
| 97 | 95 | ||
| 98 | 96 | cret := xTimedAnimationGetEasing(x.GoPointer()) | |
| 99 | - | ||
| 100 | 97 | return cret | |
| 101 | 98 | } | |
| 102 | 99 | ||
| @@ -106,7 +103,6 @@ var xTimedAnimationGetRepeatCount func(uintptr) uint | |||
| 106 | 103 | func (x *TimedAnimation) GetRepeatCount() uint { | |
| 107 | 104 | ||
| 108 | 105 | cret := xTimedAnimationGetRepeatCount(x.GoPointer()) | |
| 109 | - | ||
| 110 | 106 | return cret | |
| 111 | 107 | } | |
| 112 | 108 | ||
| @@ -116,7 +112,6 @@ var xTimedAnimationGetReverse func(uintptr) bool | |||
| 116 | 112 | func (x *TimedAnimation) GetReverse() bool { | |
| 117 | 113 | ||
| 118 | 114 | cret := xTimedAnimationGetReverse(x.GoPointer()) | |
| 119 | - | ||
| 120 | 115 | return cret | |
| 121 | 116 | } | |
| 122 | 117 | ||
| @@ -126,7 +121,6 @@ var xTimedAnimationGetValueFrom func(uintptr) float64 | |||
| 126 | 121 | func (x *TimedAnimation) GetValueFrom() float64 { | |
| 127 | 122 | ||
| 128 | 123 | cret := xTimedAnimationGetValueFrom(x.GoPointer()) | |
| 129 | - | ||
| 130 | 124 | return cret | |
| 131 | 125 | } | |
| 132 | 126 | ||
| @@ -136,7 +130,6 @@ var xTimedAnimationGetValueTo func(uintptr) float64 | |||
| 136 | 130 | func (x *TimedAnimation) GetValueTo() float64 { | |
| 137 | 131 | ||
| 138 | 132 | cret := xTimedAnimationGetValueTo(x.GoPointer()) | |
| 139 | - | ||
| 140 | 133 | return cret | |
| 141 | 134 | } | |
| 142 | 135 | ||
M v4/adw/adw-toast-overlay.go +0 -4
| @@ -202,7 +202,6 @@ func (x *ToastOverlay) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 202 | 202 | func (x *ToastOverlay) GetAccessibleRole() gtk.AccessibleRole { | |
| 203 | 203 | ||
| 204 | 204 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 205 | - | ||
| 206 | 205 | return cret | |
| 207 | 206 | } | |
| 208 | 207 | ||
| @@ -228,7 +227,6 @@ func (x *ToastOverlay) GetAtContext() *gtk.ATContext { | |||
| 228 | 227 | func (x *ToastOverlay) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 229 | 228 | ||
| 230 | 229 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 231 | - | ||
| 232 | 230 | return cret | |
| 233 | 231 | } | |
| 234 | 232 | ||
| @@ -268,7 +266,6 @@ func (x *ToastOverlay) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 268 | 266 | func (x *ToastOverlay) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 269 | 267 | ||
| 270 | 268 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 271 | - | ||
| 272 | 269 | return cret | |
| 273 | 270 | } | |
| 274 | 271 | ||
| @@ -445,7 +442,6 @@ func (x *ToastOverlay) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessib | |||
| 445 | 442 | func (x *ToastOverlay) GetBuildableId() string { | |
| 446 | 443 | ||
| 447 | 444 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 448 | - | ||
| 449 | 445 | return cret | |
| 450 | 446 | } | |
| 451 | 447 | ||
M v4/adw/adw-toast.go +8 -20
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -251,7 +250,6 @@ var xToastGetActionName func(uintptr) string | |||
| 251 | 250 | func (x *Toast) GetActionName() string { | |
| 252 | 251 | ||
| 253 | 252 | cret := xToastGetActionName(x.GoPointer()) | |
| 254 | - | ||
| 255 | 253 | return cret | |
| 256 | 254 | } | |
| 257 | 255 | ||
| @@ -261,7 +259,6 @@ var xToastGetActionTargetValue func(uintptr) *glib.Variant | |||
| 261 | 259 | func (x *Toast) GetActionTargetValue() *glib.Variant { | |
| 262 | 260 | ||
| 263 | 261 | cret := xToastGetActionTargetValue(x.GoPointer()) | |
| 264 | - | ||
| 265 | 262 | return cret | |
| 266 | 263 | } | |
| 267 | 264 | ||
| @@ -271,7 +268,6 @@ var xToastGetButtonLabel func(uintptr) string | |||
| 271 | 268 | func (x *Toast) GetButtonLabel() string { | |
| 272 | 269 | ||
| 273 | 270 | cret := xToastGetButtonLabel(x.GoPointer()) | |
| 274 | - | ||
| 275 | 271 | return cret | |
| 276 | 272 | } | |
| 277 | 273 | ||
| @@ -298,7 +294,6 @@ var xToastGetPriority func(uintptr) ToastPriority | |||
| 298 | 294 | func (x *Toast) GetPriority() ToastPriority { | |
| 299 | 295 | ||
| 300 | 296 | cret := xToastGetPriority(x.GoPointer()) | |
| 301 | - | ||
| 302 | 297 | return cret | |
| 303 | 298 | } | |
| 304 | 299 | ||
| @@ -308,7 +303,6 @@ var xToastGetTimeout func(uintptr) uint | |||
| 308 | 303 | func (x *Toast) GetTimeout() uint { | |
| 309 | 304 | ||
| 310 | 305 | cret := xToastGetTimeout(x.GoPointer()) | |
| 311 | - | ||
| 312 | 306 | return cret | |
| 313 | 307 | } | |
| 314 | 308 | ||
| @@ -321,7 +315,6 @@ var xToastGetTitle func(uintptr) string | |||
| 321 | 315 | func (x *Toast) GetTitle() string { | |
| 322 | 316 | ||
| 323 | 317 | cret := xToastGetTitle(x.GoPointer()) | |
| 324 | - | ||
| 325 | 318 | return cret | |
| 326 | 319 | } | |
| 327 | 320 | ||
| @@ -331,7 +324,6 @@ var xToastGetUseMarkup func(uintptr) bool | |||
| 331 | 324 | func (x *Toast) GetUseMarkup() bool { | |
| 332 | 325 | ||
| 333 | 326 | cret := xToastGetUseMarkup(x.GoPointer()) | |
| 334 | - | ||
| 335 | 327 | return cret | |
| 336 | 328 | } | |
| 337 | 329 | ||
| @@ -344,12 +336,11 @@ var xToastSetActionName func(uintptr, uintptr) | |||
| 344 | 336 | // See [property@Toast:action-target]. | |
| 345 | 337 | func (x *Toast) SetActionName(ActionNameVar *string) { | |
| 346 | 338 | ||
| 347 | - | ActionNameVarPtr, ActionNameVarBytes := core.NullableStringToPtr(ActionNameVar) | |
| 339 | + | ActionNameVarPtr := core.GStrdupNullable(ActionNameVar) | |
| 340 | + | defer core.GFreeNullable(ActionNameVarPtr) | |
| 348 | 341 | ||
| 349 | 342 | xToastSetActionName(x.GoPointer(), ActionNameVarPtr) | |
| 350 | 343 | ||
| 351 | - | runtime.KeepAlive(ActionNameVarBytes) | |
| 352 | - | ||
| 353 | 344 | } | |
| 354 | 345 | ||
| 355 | 346 | var xToastSetActionTarget func(uintptr, uintptr, ...interface{}) | |
| @@ -365,12 +356,11 @@ var xToastSetActionTarget func(uintptr, uintptr, ...interface{}) | |||
| 365 | 356 | // [method@Toast.set_detailed_action_name]. | |
| 366 | 357 | func (x *Toast) SetActionTarget(FormatStringVar *string, varArgs ...interface{}) { | |
| 367 | 358 | ||
| 368 | - | FormatStringVarPtr, FormatStringVarBytes := core.NullableStringToPtr(FormatStringVar) | |
| 359 | + | FormatStringVarPtr := core.GStrdupNullable(FormatStringVar) | |
| 360 | + | defer core.GFreeNullable(FormatStringVarPtr) | |
| 369 | 361 | ||
| 370 | 362 | xToastSetActionTarget(x.GoPointer(), FormatStringVarPtr, varArgs...) | |
| 371 | 363 | ||
| 372 | - | runtime.KeepAlive(FormatStringVarBytes) | |
| 373 | - | ||
| 374 | 364 | } | |
| 375 | 365 | ||
| 376 | 366 | var xToastSetActionTargetValue func(uintptr, *glib.Variant) | |
| @@ -396,12 +386,11 @@ var xToastSetButtonLabel func(uintptr, uintptr) | |||
| 396 | 386 | // See [property@Toast:action-name]. | |
| 397 | 387 | func (x *Toast) SetButtonLabel(ButtonLabelVar *string) { | |
| 398 | 388 | ||
| 399 | - | ButtonLabelVarPtr, ButtonLabelVarBytes := core.NullableStringToPtr(ButtonLabelVar) | |
| 389 | + | ButtonLabelVarPtr := core.GStrdupNullable(ButtonLabelVar) | |
| 390 | + | defer core.GFreeNullable(ButtonLabelVarPtr) | |
| 400 | 391 | ||
| 401 | 392 | xToastSetButtonLabel(x.GoPointer(), ButtonLabelVarPtr) | |
| 402 | 393 | ||
| 403 | - | runtime.KeepAlive(ButtonLabelVarBytes) | |
| 404 | - | ||
| 405 | 394 | } | |
| 406 | 395 | ||
| 407 | 396 | var xToastSetCustomTitle func(uintptr, uintptr) | |
| @@ -426,12 +415,11 @@ var xToastSetDetailedActionName func(uintptr, uintptr) | |||
| 426 | 415 | // [func@Gio.Action.parse_detailed_name]. | |
| 427 | 416 | func (x *Toast) SetDetailedActionName(DetailedActionNameVar *string) { | |
| 428 | 417 | ||
| 429 | - | DetailedActionNameVarPtr, DetailedActionNameVarBytes := core.NullableStringToPtr(DetailedActionNameVar) | |
| 418 | + | DetailedActionNameVarPtr := core.GStrdupNullable(DetailedActionNameVar) | |
| 419 | + | defer core.GFreeNullable(DetailedActionNameVarPtr) | |
| 430 | 420 | ||
| 431 | 421 | xToastSetDetailedActionName(x.GoPointer(), DetailedActionNameVarPtr) | |
| 432 | 422 | ||
| 433 | - | runtime.KeepAlive(DetailedActionNameVarBytes) | |
| 434 | - | ||
| 435 | 423 | } | |
| 436 | 424 | ||
| 437 | 425 | var xToastSetPriority func(uintptr, ToastPriority) | |
M v4/adw/adw-toggle-group.go +8 -30
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -93,7 +92,6 @@ var xToggleGetEnabled func(uintptr) bool | |||
| 93 | 92 | func (x *Toggle) GetEnabled() bool { | |
| 94 | 93 | ||
| 95 | 94 | cret := xToggleGetEnabled(x.GoPointer()) | |
| 96 | - | ||
| 97 | 95 | return cret | |
| 98 | 96 | } | |
| 99 | 97 | ||
| @@ -103,7 +101,6 @@ var xToggleGetIconName func(uintptr) string | |||
| 103 | 101 | func (x *Toggle) GetIconName() string { | |
| 104 | 102 | ||
| 105 | 103 | cret := xToggleGetIconName(x.GoPointer()) | |
| 106 | - | ||
| 107 | 104 | return cret | |
| 108 | 105 | } | |
| 109 | 106 | ||
| @@ -113,7 +110,6 @@ var xToggleGetIndex func(uintptr) uint | |||
| 113 | 110 | func (x *Toggle) GetIndex() uint { | |
| 114 | 111 | ||
| 115 | 112 | cret := xToggleGetIndex(x.GoPointer()) | |
| 116 | - | ||
| 117 | 113 | return cret | |
| 118 | 114 | } | |
| 119 | 115 | ||
| @@ -123,7 +119,6 @@ var xToggleGetLabel func(uintptr) string | |||
| 123 | 119 | func (x *Toggle) GetLabel() string { | |
| 124 | 120 | ||
| 125 | 121 | cret := xToggleGetLabel(x.GoPointer()) | |
| 126 | - | ||
| 127 | 122 | return cret | |
| 128 | 123 | } | |
| 129 | 124 | ||
| @@ -133,7 +128,6 @@ var xToggleGetName func(uintptr) string | |||
| 133 | 128 | func (x *Toggle) GetName() string { | |
| 134 | 129 | ||
| 135 | 130 | cret := xToggleGetName(x.GoPointer()) | |
| 136 | - | ||
| 137 | 131 | return cret | |
| 138 | 132 | } | |
| 139 | 133 | ||
| @@ -143,7 +137,6 @@ var xToggleGetTooltip func(uintptr) string | |||
| 143 | 137 | func (x *Toggle) GetTooltip() string { | |
| 144 | 138 | ||
| 145 | 139 | cret := xToggleGetTooltip(x.GoPointer()) | |
| 146 | - | ||
| 147 | 140 | return cret | |
| 148 | 141 | } | |
| 149 | 142 | ||
| @@ -153,7 +146,6 @@ var xToggleGetUseUnderline func(uintptr) bool | |||
| 153 | 146 | func (x *Toggle) GetUseUnderline() bool { | |
| 154 | 147 | ||
| 155 | 148 | cret := xToggleGetUseUnderline(x.GoPointer()) | |
| 156 | - | ||
| 157 | 149 | return cret | |
| 158 | 150 | } | |
| 159 | 151 | ||
| @@ -188,12 +180,11 @@ var xToggleSetIconName func(uintptr, uintptr) | |||
| 188 | 180 | // [property@Toggle:child] is set. | |
| 189 | 181 | func (x *Toggle) SetIconName(IconNameVar *string) { | |
| 190 | 182 | ||
| 191 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 183 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 184 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 192 | 185 | ||
| 193 | 186 | xToggleSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 194 | 187 | ||
| 195 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 196 | - | ||
| 197 | 188 | } | |
| 198 | 189 | ||
| 199 | 190 | var xToggleSetLabel func(uintptr, uintptr) | |
| @@ -205,12 +196,11 @@ var xToggleSetLabel func(uintptr, uintptr) | |||
| 205 | 196 | // reader. | |
| 206 | 197 | func (x *Toggle) SetLabel(LabelVar *string) { | |
| 207 | 198 | ||
| 208 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 199 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 200 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 209 | 201 | ||
| 210 | 202 | xToggleSetLabel(x.GoPointer(), LabelVarPtr) | |
| 211 | 203 | ||
| 212 | - | runtime.KeepAlive(LabelVarBytes) | |
| 213 | - | ||
| 214 | 204 | } | |
| 215 | 205 | ||
| 216 | 206 | var xToggleSetName func(uintptr, uintptr) | |
| @@ -222,12 +212,11 @@ var xToggleSetName func(uintptr, uintptr) | |||
| 222 | 212 | // See [property@ToggleGroup:active-name]. | |
| 223 | 213 | func (x *Toggle) SetName(NameVar *string) { | |
| 224 | 214 | ||
| 225 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 215 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 216 | + | defer core.GFreeNullable(NameVarPtr) | |
| 226 | 217 | ||
| 227 | 218 | xToggleSetName(x.GoPointer(), NameVarPtr) | |
| 228 | 219 | ||
| 229 | - | runtime.KeepAlive(NameVarBytes) | |
| 230 | - | ||
| 231 | 220 | } | |
| 232 | 221 | ||
| 233 | 222 | var xToggleSetTooltip func(uintptr, string) | |
| @@ -551,7 +540,6 @@ var xToggleGroupGetActive func(uintptr) uint | |||
| 551 | 540 | func (x *ToggleGroup) GetActive() uint { | |
| 552 | 541 | ||
| 553 | 542 | cret := xToggleGroupGetActive(x.GoPointer()) | |
| 554 | - | ||
| 555 | 543 | return cret | |
| 556 | 544 | } | |
| 557 | 545 | ||
| @@ -565,7 +553,6 @@ var xToggleGroupGetActiveName func(uintptr) string | |||
| 565 | 553 | func (x *ToggleGroup) GetActiveName() string { | |
| 566 | 554 | ||
| 567 | 555 | cret := xToggleGroupGetActiveName(x.GoPointer()) | |
| 568 | - | ||
| 569 | 556 | return cret | |
| 570 | 557 | } | |
| 571 | 558 | ||
| @@ -576,7 +563,6 @@ var xToggleGroupGetCanShrink func(uintptr) bool | |||
| 576 | 563 | func (x *ToggleGroup) GetCanShrink() bool { | |
| 577 | 564 | ||
| 578 | 565 | cret := xToggleGroupGetCanShrink(x.GoPointer()) | |
| 579 | - | ||
| 580 | 566 | return cret | |
| 581 | 567 | } | |
| 582 | 568 | ||
| @@ -586,7 +572,6 @@ var xToggleGroupGetHomogeneous func(uintptr) bool | |||
| 586 | 572 | func (x *ToggleGroup) GetHomogeneous() bool { | |
| 587 | 573 | ||
| 588 | 574 | cret := xToggleGroupGetHomogeneous(x.GoPointer()) | |
| 589 | - | ||
| 590 | 575 | return cret | |
| 591 | 576 | } | |
| 592 | 577 | ||
| @@ -596,7 +581,6 @@ var xToggleGroupGetNToggles func(uintptr) uint | |||
| 596 | 581 | func (x *ToggleGroup) GetNToggles() uint { | |
| 597 | 582 | ||
| 598 | 583 | cret := xToggleGroupGetNToggles(x.GoPointer()) | |
| 599 | - | ||
| 600 | 584 | return cret | |
| 601 | 585 | } | |
| 602 | 586 | ||
| @@ -693,12 +677,11 @@ var xToggleGroupSetActiveName func(uintptr, uintptr) | |||
| 693 | 677 | // If @name is `NULL`, unset the current active toggle instead. | |
| 694 | 678 | func (x *ToggleGroup) SetActiveName(NameVar *string) { | |
| 695 | 679 | ||
| 696 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 680 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 681 | + | defer core.GFreeNullable(NameVarPtr) | |
| 697 | 682 | ||
| 698 | 683 | xToggleGroupSetActiveName(x.GoPointer(), NameVarPtr) | |
| 699 | 684 | ||
| 700 | - | runtime.KeepAlive(NameVarBytes) | |
| 701 | - | ||
| 702 | 685 | } | |
| 703 | 686 | ||
| 704 | 687 | var xToggleGroupSetCanShrink func(uintptr, bool) | |
| @@ -876,7 +859,6 @@ func (x *ToggleGroup) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 876 | 859 | func (x *ToggleGroup) GetAccessibleRole() gtk.AccessibleRole { | |
| 877 | 860 | ||
| 878 | 861 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 879 | - | ||
| 880 | 862 | return cret | |
| 881 | 863 | } | |
| 882 | 864 | ||
| @@ -902,7 +884,6 @@ func (x *ToggleGroup) GetAtContext() *gtk.ATContext { | |||
| 902 | 884 | func (x *ToggleGroup) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 903 | 885 | ||
| 904 | 886 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 905 | - | ||
| 906 | 887 | return cret | |
| 907 | 888 | } | |
| 908 | 889 | ||
| @@ -942,7 +923,6 @@ func (x *ToggleGroup) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 942 | 923 | func (x *ToggleGroup) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 943 | 924 | ||
| 944 | 925 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 945 | - | ||
| 946 | 926 | return cret | |
| 947 | 927 | } | |
| 948 | 928 | ||
| @@ -1119,7 +1099,6 @@ func (x *ToggleGroup) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 1119 | 1099 | func (x *ToggleGroup) GetBuildableId() string { | |
| 1120 | 1100 | ||
| 1121 | 1101 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 1122 | - | ||
| 1123 | 1102 | return cret | |
| 1124 | 1103 | } | |
| 1125 | 1104 | ||
| @@ -1127,7 +1106,6 @@ func (x *ToggleGroup) GetBuildableId() string { | |||
| 1127 | 1106 | func (x *ToggleGroup) GetOrientation() gtk.Orientation { | |
| 1128 | 1107 | ||
| 1129 | 1108 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 1130 | - | ||
| 1131 | 1109 | return cret | |
| 1132 | 1110 | } | |
| 1133 | 1111 | ||
M v4/adw/adw-toolbar-view.go +0 -12
| @@ -262,7 +262,6 @@ var xToolbarViewGetBottomBarHeight func(uintptr) int | |||
| 262 | 262 | func (x *ToolbarView) GetBottomBarHeight() int { | |
| 263 | 263 | ||
| 264 | 264 | cret := xToolbarViewGetBottomBarHeight(x.GoPointer()) | |
| 265 | - | ||
| 266 | 265 | return cret | |
| 267 | 266 | } | |
| 268 | 267 | ||
| @@ -272,7 +271,6 @@ var xToolbarViewGetBottomBarStyle func(uintptr) ToolbarStyle | |||
| 272 | 271 | func (x *ToolbarView) GetBottomBarStyle() ToolbarStyle { | |
| 273 | 272 | ||
| 274 | 273 | cret := xToolbarViewGetBottomBarStyle(x.GoPointer()) | |
| 275 | - | ||
| 276 | 274 | return cret | |
| 277 | 275 | } | |
| 278 | 276 | ||
| @@ -299,7 +297,6 @@ var xToolbarViewGetExtendContentToBottomEdge func(uintptr) bool | |||
| 299 | 297 | func (x *ToolbarView) GetExtendContentToBottomEdge() bool { | |
| 300 | 298 | ||
| 301 | 299 | cret := xToolbarViewGetExtendContentToBottomEdge(x.GoPointer()) | |
| 302 | - | ||
| 303 | 300 | return cret | |
| 304 | 301 | } | |
| 305 | 302 | ||
| @@ -309,7 +306,6 @@ var xToolbarViewGetExtendContentToTopEdge func(uintptr) bool | |||
| 309 | 306 | func (x *ToolbarView) GetExtendContentToTopEdge() bool { | |
| 310 | 307 | ||
| 311 | 308 | cret := xToolbarViewGetExtendContentToTopEdge(x.GoPointer()) | |
| 312 | - | ||
| 313 | 309 | return cret | |
| 314 | 310 | } | |
| 315 | 311 | ||
| @@ -319,7 +315,6 @@ var xToolbarViewGetRevealBottomBars func(uintptr) bool | |||
| 319 | 315 | func (x *ToolbarView) GetRevealBottomBars() bool { | |
| 320 | 316 | ||
| 321 | 317 | cret := xToolbarViewGetRevealBottomBars(x.GoPointer()) | |
| 322 | - | ||
| 323 | 318 | return cret | |
| 324 | 319 | } | |
| 325 | 320 | ||
| @@ -329,7 +324,6 @@ var xToolbarViewGetRevealTopBars func(uintptr) bool | |||
| 329 | 324 | func (x *ToolbarView) GetRevealTopBars() bool { | |
| 330 | 325 | ||
| 331 | 326 | cret := xToolbarViewGetRevealTopBars(x.GoPointer()) | |
| 332 | - | ||
| 333 | 327 | return cret | |
| 334 | 328 | } | |
| 335 | 329 | ||
| @@ -344,7 +338,6 @@ var xToolbarViewGetTopBarHeight func(uintptr) int | |||
| 344 | 338 | func (x *ToolbarView) GetTopBarHeight() int { | |
| 345 | 339 | ||
| 346 | 340 | cret := xToolbarViewGetTopBarHeight(x.GoPointer()) | |
| 347 | - | ||
| 348 | 341 | return cret | |
| 349 | 342 | } | |
| 350 | 343 | ||
| @@ -354,7 +347,6 @@ var xToolbarViewGetTopBarStyle func(uintptr) ToolbarStyle | |||
| 354 | 347 | func (x *ToolbarView) GetTopBarStyle() ToolbarStyle { | |
| 355 | 348 | ||
| 356 | 349 | cret := xToolbarViewGetTopBarStyle(x.GoPointer()) | |
| 357 | - | ||
| 358 | 350 | return cret | |
| 359 | 351 | } | |
| 360 | 352 | ||
| @@ -696,7 +688,6 @@ func (x *ToolbarView) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 696 | 688 | func (x *ToolbarView) GetAccessibleRole() gtk.AccessibleRole { | |
| 697 | 689 | ||
| 698 | 690 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 699 | - | ||
| 700 | 691 | return cret | |
| 701 | 692 | } | |
| 702 | 693 | ||
| @@ -722,7 +713,6 @@ func (x *ToolbarView) GetAtContext() *gtk.ATContext { | |||
| 722 | 713 | func (x *ToolbarView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 723 | 714 | ||
| 724 | 715 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 725 | - | ||
| 726 | 716 | return cret | |
| 727 | 717 | } | |
| 728 | 718 | ||
| @@ -762,7 +752,6 @@ func (x *ToolbarView) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 762 | 752 | func (x *ToolbarView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 763 | 753 | ||
| 764 | 754 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 765 | - | ||
| 766 | 755 | return cret | |
| 767 | 756 | } | |
| 768 | 757 | ||
| @@ -939,7 +928,6 @@ func (x *ToolbarView) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 939 | 928 | func (x *ToolbarView) GetBuildableId() string { | |
| 940 | 929 | ||
| 941 | 930 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 942 | - | ||
| 943 | 931 | return cret | |
| 944 | 932 | } | |
| 945 | 933 | ||
M v4/adw/adw-version.go +0 -3
| @@ -31,7 +31,6 @@ var xGetMajorVersion func() uint | |||
| 31 | 31 | func GetMajorVersion() uint { | |
| 32 | 32 | ||
| 33 | 33 | cret := xGetMajorVersion() | |
| 34 | - | ||
| 35 | 34 | return cret | |
| 36 | 35 | } | |
| 37 | 36 | ||
| @@ -48,7 +47,6 @@ var xGetMicroVersion func() uint | |||
| 48 | 47 | func GetMicroVersion() uint { | |
| 49 | 48 | ||
| 50 | 49 | cret := xGetMicroVersion() | |
| 51 | - | ||
| 52 | 50 | return cret | |
| 53 | 51 | } | |
| 54 | 52 | ||
| @@ -65,7 +63,6 @@ var xGetMinorVersion func() uint | |||
| 65 | 63 | func GetMinorVersion() uint { | |
| 66 | 64 | ||
| 67 | 65 | cret := xGetMinorVersion() | |
| 68 | - | ||
| 69 | 66 | return cret | |
| 70 | 67 | } | |
| 71 | 68 | ||
M v4/adw/adw-view-stack.go +12 -52
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -160,12 +159,11 @@ var xViewStackAddNamed func(uintptr, uintptr, uintptr) uintptr | |||
| 160 | 159 | func (x *ViewStack) AddNamed(ChildVar *gtk.Widget, NameVar *string) *ViewStackPage { | |
| 161 | 160 | var cls *ViewStackPage | |
| 162 | 161 | ||
| 163 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 162 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 163 | + | defer core.GFreeNullable(NameVarPtr) | |
| 164 | 164 | ||
| 165 | 165 | cret := xViewStackAddNamed(x.GoPointer(), ChildVar.GoPointer(), NameVarPtr) | |
| 166 | 166 | ||
| 167 | - | runtime.KeepAlive(NameVarBytes) | |
| 168 | - | ||
| 169 | 167 | if cret == 0 { | |
| 170 | 168 | return nil | |
| 171 | 169 | } | |
| @@ -184,12 +182,11 @@ var xViewStackAddTitled func(uintptr, uintptr, uintptr, string) uintptr | |||
| 184 | 182 | func (x *ViewStack) AddTitled(ChildVar *gtk.Widget, NameVar *string, TitleVar string) *ViewStackPage { | |
| 185 | 183 | var cls *ViewStackPage | |
| 186 | 184 | ||
| 187 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 185 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 186 | + | defer core.GFreeNullable(NameVarPtr) | |
| 188 | 187 | ||
| 189 | 188 | cret := xViewStackAddTitled(x.GoPointer(), ChildVar.GoPointer(), NameVarPtr, TitleVar) | |
| 190 | 189 | ||
| 191 | - | runtime.KeepAlive(NameVarBytes) | |
| 192 | - | ||
| 193 | 190 | if cret == 0 { | |
| 194 | 191 | return nil | |
| 195 | 192 | } | |
| @@ -208,12 +205,11 @@ var xViewStackAddTitledWithIcon func(uintptr, uintptr, uintptr, string, string) | |||
| 208 | 205 | func (x *ViewStack) AddTitledWithIcon(ChildVar *gtk.Widget, NameVar *string, TitleVar string, IconNameVar string) *ViewStackPage { | |
| 209 | 206 | var cls *ViewStackPage | |
| 210 | 207 | ||
| 211 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 208 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 209 | + | defer core.GFreeNullable(NameVarPtr) | |
| 212 | 210 | ||
| 213 | 211 | cret := xViewStackAddTitledWithIcon(x.GoPointer(), ChildVar.GoPointer(), NameVarPtr, TitleVar, IconNameVar) | |
| 214 | 212 | ||
| 215 | - | runtime.KeepAlive(NameVarBytes) | |
| 216 | - | ||
| 217 | 213 | if cret == 0 { | |
| 218 | 214 | return nil | |
| 219 | 215 | } | |
| @@ -250,7 +246,6 @@ var xViewStackGetEnableTransitions func(uintptr) bool | |||
| 250 | 246 | func (x *ViewStack) GetEnableTransitions() bool { | |
| 251 | 247 | ||
| 252 | 248 | cret := xViewStackGetEnableTransitions(x.GoPointer()) | |
| 253 | - | ||
| 254 | 249 | return cret | |
| 255 | 250 | } | |
| 256 | 251 | ||
| @@ -260,7 +255,6 @@ var xViewStackGetHhomogeneous func(uintptr) bool | |||
| 260 | 255 | func (x *ViewStack) GetHhomogeneous() bool { | |
| 261 | 256 | ||
| 262 | 257 | cret := xViewStackGetHhomogeneous(x.GoPointer()) | |
| 263 | - | ||
| 264 | 258 | return cret | |
| 265 | 259 | } | |
| 266 | 260 | ||
| @@ -307,7 +301,6 @@ var xViewStackGetTransitionDuration func(uintptr) uint | |||
| 307 | 301 | func (x *ViewStack) GetTransitionDuration() uint { | |
| 308 | 302 | ||
| 309 | 303 | cret := xViewStackGetTransitionDuration(x.GoPointer()) | |
| 310 | - | ||
| 311 | 304 | return cret | |
| 312 | 305 | } | |
| 313 | 306 | ||
| @@ -321,7 +314,6 @@ var xViewStackGetTransitionRunning func(uintptr) bool | |||
| 321 | 314 | func (x *ViewStack) GetTransitionRunning() bool { | |
| 322 | 315 | ||
| 323 | 316 | cret := xViewStackGetTransitionRunning(x.GoPointer()) | |
| 324 | - | ||
| 325 | 317 | return cret | |
| 326 | 318 | } | |
| 327 | 319 | ||
| @@ -331,7 +323,6 @@ var xViewStackGetVhomogeneous func(uintptr) bool | |||
| 331 | 323 | func (x *ViewStack) GetVhomogeneous() bool { | |
| 332 | 324 | ||
| 333 | 325 | cret := xViewStackGetVhomogeneous(x.GoPointer()) | |
| 334 | - | ||
| 335 | 326 | return cret | |
| 336 | 327 | } | |
| 337 | 328 | ||
| @@ -358,7 +349,6 @@ var xViewStackGetVisibleChildName func(uintptr) string | |||
| 358 | 349 | func (x *ViewStack) GetVisibleChildName() string { | |
| 359 | 350 | ||
| 360 | 351 | cret := xViewStackGetVisibleChildName(x.GoPointer()) | |
| 361 | - | ||
| 362 | 352 | return cret | |
| 363 | 353 | } | |
| 364 | 354 | ||
| @@ -624,7 +614,6 @@ func (x *ViewStack) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 624 | 614 | func (x *ViewStack) GetAccessibleRole() gtk.AccessibleRole { | |
| 625 | 615 | ||
| 626 | 616 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 627 | - | ||
| 628 | 617 | return cret | |
| 629 | 618 | } | |
| 630 | 619 | ||
| @@ -650,7 +639,6 @@ func (x *ViewStack) GetAtContext() *gtk.ATContext { | |||
| 650 | 639 | func (x *ViewStack) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 651 | 640 | ||
| 652 | 641 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 653 | - | ||
| 654 | 642 | return cret | |
| 655 | 643 | } | |
| 656 | 644 | ||
| @@ -690,7 +678,6 @@ func (x *ViewStack) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 690 | 678 | func (x *ViewStack) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 691 | 679 | ||
| 692 | 680 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 693 | - | ||
| 694 | 681 | return cret | |
| 695 | 682 | } | |
| 696 | 683 | ||
| @@ -867,7 +854,6 @@ func (x *ViewStack) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleS | |||
| 867 | 854 | func (x *ViewStack) GetBuildableId() string { | |
| 868 | 855 | ||
| 869 | 856 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 870 | - | ||
| 871 | 857 | return cret | |
| 872 | 858 | } | |
| 873 | 859 | ||
| @@ -894,7 +880,6 @@ var xViewStackPageGetBadgeNumber func(uintptr) uint | |||
| 894 | 880 | func (x *ViewStackPage) GetBadgeNumber() uint { | |
| 895 | 881 | ||
| 896 | 882 | cret := xViewStackPageGetBadgeNumber(x.GoPointer()) | |
| 897 | - | ||
| 898 | 883 | return cret | |
| 899 | 884 | } | |
| 900 | 885 | ||
| @@ -921,7 +906,6 @@ var xViewStackPageGetIconName func(uintptr) string | |||
| 921 | 906 | func (x *ViewStackPage) GetIconName() string { | |
| 922 | 907 | ||
| 923 | 908 | cret := xViewStackPageGetIconName(x.GoPointer()) | |
| 924 | - | ||
| 925 | 909 | return cret | |
| 926 | 910 | } | |
| 927 | 911 | ||
| @@ -931,7 +915,6 @@ var xViewStackPageGetName func(uintptr) string | |||
| 931 | 915 | func (x *ViewStackPage) GetName() string { | |
| 932 | 916 | ||
| 933 | 917 | cret := xViewStackPageGetName(x.GoPointer()) | |
| 934 | - | ||
| 935 | 918 | return cret | |
| 936 | 919 | } | |
| 937 | 920 | ||
| @@ -941,7 +924,6 @@ var xViewStackPageGetNeedsAttention func(uintptr) bool | |||
| 941 | 924 | func (x *ViewStackPage) GetNeedsAttention() bool { | |
| 942 | 925 | ||
| 943 | 926 | cret := xViewStackPageGetNeedsAttention(x.GoPointer()) | |
| 944 | - | ||
| 945 | 927 | return cret | |
| 946 | 928 | } | |
| 947 | 929 | ||
| @@ -951,7 +933,6 @@ var xViewStackPageGetTitle func(uintptr) string | |||
| 951 | 933 | func (x *ViewStackPage) GetTitle() string { | |
| 952 | 934 | ||
| 953 | 935 | cret := xViewStackPageGetTitle(x.GoPointer()) | |
| 954 | - | ||
| 955 | 936 | return cret | |
| 956 | 937 | } | |
| 957 | 938 | ||
| @@ -961,7 +942,6 @@ var xViewStackPageGetUseUnderline func(uintptr) bool | |||
| 961 | 942 | func (x *ViewStackPage) GetUseUnderline() bool { | |
| 962 | 943 | ||
| 963 | 944 | cret := xViewStackPageGetUseUnderline(x.GoPointer()) | |
| 964 | - | ||
| 965 | 945 | return cret | |
| 966 | 946 | } | |
| 967 | 947 | ||
| @@ -974,7 +954,6 @@ var xViewStackPageGetVisible func(uintptr) bool | |||
| 974 | 954 | func (x *ViewStackPage) GetVisible() bool { | |
| 975 | 955 | ||
| 976 | 956 | cret := xViewStackPageGetVisible(x.GoPointer()) | |
| 977 | - | ||
| 978 | 957 | return cret | |
| 979 | 958 | } | |
| 980 | 959 | ||
| @@ -997,12 +976,11 @@ var xViewStackPageSetIconName func(uintptr, uintptr) | |||
| 997 | 976 | // Sets the icon name of the page. | |
| 998 | 977 | func (x *ViewStackPage) SetIconName(IconNameVar *string) { | |
| 999 | 978 | ||
| 1000 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 979 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 980 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 1001 | 981 | ||
| 1002 | 982 | xViewStackPageSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 1003 | 983 | ||
| 1004 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 1005 | - | ||
| 1006 | 984 | } | |
| 1007 | 985 | ||
| 1008 | 986 | var xViewStackPageSetName func(uintptr, uintptr) | |
| @@ -1010,12 +988,11 @@ var xViewStackPageSetName func(uintptr, uintptr) | |||
| 1010 | 988 | // Sets the name of the page. | |
| 1011 | 989 | func (x *ViewStackPage) SetName(NameVar *string) { | |
| 1012 | 990 | ||
| 1013 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 991 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 992 | + | defer core.GFreeNullable(NameVarPtr) | |
| 1014 | 993 | ||
| 1015 | 994 | xViewStackPageSetName(x.GoPointer(), NameVarPtr) | |
| 1016 | 995 | ||
| 1017 | - | runtime.KeepAlive(NameVarBytes) | |
| 1018 | - | ||
| 1019 | 996 | } | |
| 1020 | 997 | ||
| 1021 | 998 | var xViewStackPageSetNeedsAttention func(uintptr, bool) | |
| @@ -1034,12 +1011,11 @@ var xViewStackPageSetTitle func(uintptr, uintptr) | |||
| 1034 | 1011 | // Sets the page title. | |
| 1035 | 1012 | func (x *ViewStackPage) SetTitle(TitleVar *string) { | |
| 1036 | 1013 | ||
| 1037 | - | TitleVarPtr, TitleVarBytes := core.NullableStringToPtr(TitleVar) | |
| 1014 | + | TitleVarPtr := core.GStrdupNullable(TitleVar) | |
| 1015 | + | defer core.GFreeNullable(TitleVarPtr) | |
| 1038 | 1016 | ||
| 1039 | 1017 | xViewStackPageSetTitle(x.GoPointer(), TitleVarPtr) | |
| 1040 | 1018 | ||
| 1041 | - | runtime.KeepAlive(TitleVarBytes) | |
| 1042 | - | ||
| 1043 | 1019 | } | |
| 1044 | 1020 | ||
| 1045 | 1021 | var xViewStackPageSetUseUnderline func(uintptr, bool) | |
| @@ -1248,7 +1224,6 @@ func (x *ViewStackPage) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 1248 | 1224 | func (x *ViewStackPage) GetAccessibleRole() gtk.AccessibleRole { | |
| 1249 | 1225 | ||
| 1250 | 1226 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 1251 | - | ||
| 1252 | 1227 | return cret | |
| 1253 | 1228 | } | |
| 1254 | 1229 | ||
| @@ -1274,7 +1249,6 @@ func (x *ViewStackPage) GetAtContext() *gtk.ATContext { | |||
| 1274 | 1249 | func (x *ViewStackPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 1275 | 1250 | ||
| 1276 | 1251 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 1277 | - | ||
| 1278 | 1252 | return cret | |
| 1279 | 1253 | } | |
| 1280 | 1254 | ||
| @@ -1314,7 +1288,6 @@ func (x *ViewStackPage) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 1314 | 1288 | func (x *ViewStackPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 1315 | 1289 | ||
| 1316 | 1290 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 1317 | - | ||
| 1318 | 1291 | return cret | |
| 1319 | 1292 | } | |
| 1320 | 1293 | ||
| @@ -1558,7 +1531,6 @@ func (c *ViewStackPages) SetGoPointer(ptr uintptr) { | |||
| 1558 | 1531 | func (x *ViewStackPages) GetItem(PositionVar uint) uintptr { | |
| 1559 | 1532 | ||
| 1560 | 1533 | cret := gio.XGListModelGetItem(x.GoPointer(), PositionVar) | |
| 1561 | - | ||
| 1562 | 1534 | return cret | |
| 1563 | 1535 | } | |
| 1564 | 1536 | ||
| @@ -1573,7 +1545,6 @@ func (x *ViewStackPages) GetItem(PositionVar uint) uintptr { | |||
| 1573 | 1545 | func (x *ViewStackPages) GetItemType() types.GType { | |
| 1574 | 1546 | ||
| 1575 | 1547 | cret := gio.XGListModelGetItemType(x.GoPointer()) | |
| 1576 | - | ||
| 1577 | 1548 | return cret | |
| 1578 | 1549 | } | |
| 1579 | 1550 | ||
| @@ -1585,7 +1556,6 @@ func (x *ViewStackPages) GetItemType() types.GType { | |||
| 1585 | 1556 | func (x *ViewStackPages) GetNItems() uint { | |
| 1586 | 1557 | ||
| 1587 | 1558 | cret := gio.XGListModelGetNItems(x.GoPointer()) | |
| 1588 | - | ||
| 1589 | 1559 | return cret | |
| 1590 | 1560 | } | |
| 1591 | 1561 | ||
| @@ -1648,7 +1618,6 @@ func (x *ViewStackPages) ItemsChanged(PositionVar uint, RemovedVar uint, AddedVa | |||
| 1648 | 1618 | func (x *ViewStackPages) GetSelection() *gtk.Bitset { | |
| 1649 | 1619 | ||
| 1650 | 1620 | cret := gtk.XGtkSelectionModelGetSelection(x.GoPointer()) | |
| 1651 | - | ||
| 1652 | 1621 | return cret | |
| 1653 | 1622 | } | |
| 1654 | 1623 | ||
| @@ -1662,7 +1631,6 @@ func (x *ViewStackPages) GetSelection() *gtk.Bitset { | |||
| 1662 | 1631 | func (x *ViewStackPages) GetSelectionInRange(PositionVar uint, NItemsVar uint) *gtk.Bitset { | |
| 1663 | 1632 | ||
| 1664 | 1633 | cret := gtk.XGtkSelectionModelGetSelectionInRange(x.GoPointer(), PositionVar, NItemsVar) | |
| 1665 | - | ||
| 1666 | 1634 | return cret | |
| 1667 | 1635 | } | |
| 1668 | 1636 | ||
| @@ -1670,7 +1638,6 @@ func (x *ViewStackPages) GetSelectionInRange(PositionVar uint, NItemsVar uint) * | |||
| 1670 | 1638 | func (x *ViewStackPages) IsSelected(PositionVar uint) bool { | |
| 1671 | 1639 | ||
| 1672 | 1640 | cret := gtk.XGtkSelectionModelIsSelected(x.GoPointer(), PositionVar) | |
| 1673 | - | ||
| 1674 | 1641 | return cret | |
| 1675 | 1642 | } | |
| 1676 | 1643 | ||
| @@ -1678,7 +1645,6 @@ func (x *ViewStackPages) IsSelected(PositionVar uint) bool { | |||
| 1678 | 1645 | func (x *ViewStackPages) SelectAll() bool { | |
| 1679 | 1646 | ||
| 1680 | 1647 | cret := gtk.XGtkSelectionModelSelectAll(x.GoPointer()) | |
| 1681 | - | ||
| 1682 | 1648 | return cret | |
| 1683 | 1649 | } | |
| 1684 | 1650 | ||
| @@ -1686,7 +1652,6 @@ func (x *ViewStackPages) SelectAll() bool { | |||
| 1686 | 1652 | func (x *ViewStackPages) SelectItem(PositionVar uint, UnselectRestVar bool) bool { | |
| 1687 | 1653 | ||
| 1688 | 1654 | cret := gtk.XGtkSelectionModelSelectItem(x.GoPointer(), PositionVar, UnselectRestVar) | |
| 1689 | - | ||
| 1690 | 1655 | return cret | |
| 1691 | 1656 | } | |
| 1692 | 1657 | ||
| @@ -1694,7 +1659,6 @@ func (x *ViewStackPages) SelectItem(PositionVar uint, UnselectRestVar bool) bool | |||
| 1694 | 1659 | func (x *ViewStackPages) SelectRange(PositionVar uint, NItemsVar uint, UnselectRestVar bool) bool { | |
| 1695 | 1660 | ||
| 1696 | 1661 | cret := gtk.XGtkSelectionModelSelectRange(x.GoPointer(), PositionVar, NItemsVar, UnselectRestVar) | |
| 1697 | - | ||
| 1698 | 1662 | return cret | |
| 1699 | 1663 | } | |
| 1700 | 1664 | ||
| @@ -1747,7 +1711,6 @@ func (x *ViewStackPages) SelectionChanged(PositionVar uint, NItemsVar uint) { | |||
| 1747 | 1711 | func (x *ViewStackPages) SetSelection(SelectedVar *gtk.Bitset, MaskVar *gtk.Bitset) bool { | |
| 1748 | 1712 | ||
| 1749 | 1713 | cret := gtk.XGtkSelectionModelSetSelection(x.GoPointer(), SelectedVar, MaskVar) | |
| 1750 | - | ||
| 1751 | 1714 | return cret | |
| 1752 | 1715 | } | |
| 1753 | 1716 | ||
| @@ -1755,7 +1718,6 @@ func (x *ViewStackPages) SetSelection(SelectedVar *gtk.Bitset, MaskVar *gtk.Bits | |||
| 1755 | 1718 | func (x *ViewStackPages) UnselectAll() bool { | |
| 1756 | 1719 | ||
| 1757 | 1720 | cret := gtk.XGtkSelectionModelUnselectAll(x.GoPointer()) | |
| 1758 | - | ||
| 1759 | 1721 | return cret | |
| 1760 | 1722 | } | |
| 1761 | 1723 | ||
| @@ -1763,7 +1725,6 @@ func (x *ViewStackPages) UnselectAll() bool { | |||
| 1763 | 1725 | func (x *ViewStackPages) UnselectItem(PositionVar uint) bool { | |
| 1764 | 1726 | ||
| 1765 | 1727 | cret := gtk.XGtkSelectionModelUnselectItem(x.GoPointer(), PositionVar) | |
| 1766 | - | ||
| 1767 | 1728 | return cret | |
| 1768 | 1729 | } | |
| 1769 | 1730 | ||
| @@ -1771,7 +1732,6 @@ func (x *ViewStackPages) UnselectItem(PositionVar uint) bool { | |||
| 1771 | 1732 | func (x *ViewStackPages) UnselectRange(PositionVar uint, NItemsVar uint) bool { | |
| 1772 | 1733 | ||
| 1773 | 1734 | cret := gtk.XGtkSelectionModelUnselectRange(x.GoPointer(), PositionVar, NItemsVar) | |
| 1774 | - | ||
| 1775 | 1735 | return cret | |
| 1776 | 1736 | } | |
| 1777 | 1737 | ||
M v4/adw/adw-view-switcher-bar.go +0 -5
| @@ -124,7 +124,6 @@ var xViewSwitcherBarGetReveal func(uintptr) bool | |||
| 124 | 124 | func (x *ViewSwitcherBar) GetReveal() bool { | |
| 125 | 125 | ||
| 126 | 126 | cret := xViewSwitcherBarGetReveal(x.GoPointer()) | |
| 127 | - | ||
| 128 | 127 | return cret | |
| 129 | 128 | } | |
| 130 | 129 | ||
| @@ -226,7 +225,6 @@ func (x *ViewSwitcherBar) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 226 | 225 | func (x *ViewSwitcherBar) GetAccessibleRole() gtk.AccessibleRole { | |
| 227 | 226 | ||
| 228 | 227 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 229 | - | ||
| 230 | 228 | return cret | |
| 231 | 229 | } | |
| 232 | 230 | ||
| @@ -252,7 +250,6 @@ func (x *ViewSwitcherBar) GetAtContext() *gtk.ATContext { | |||
| 252 | 250 | func (x *ViewSwitcherBar) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 253 | 251 | ||
| 254 | 252 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 255 | - | ||
| 256 | 253 | return cret | |
| 257 | 254 | } | |
| 258 | 255 | ||
| @@ -292,7 +289,6 @@ func (x *ViewSwitcherBar) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 292 | 289 | func (x *ViewSwitcherBar) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 293 | 290 | ||
| 294 | 291 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 295 | - | ||
| 296 | 292 | return cret | |
| 297 | 293 | } | |
| 298 | 294 | ||
| @@ -469,7 +465,6 @@ func (x *ViewSwitcherBar) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acces | |||
| 469 | 465 | func (x *ViewSwitcherBar) GetBuildableId() string { | |
| 470 | 466 | ||
| 471 | 467 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 472 | - | ||
| 473 | 468 | return cret | |
| 474 | 469 | } | |
| 475 | 470 | ||
M v4/adw/adw-view-switcher-title.go +0 -8
| @@ -141,7 +141,6 @@ var xViewSwitcherTitleGetSubtitle func(uintptr) string | |||
| 141 | 141 | func (x *ViewSwitcherTitle) GetSubtitle() string { | |
| 142 | 142 | ||
| 143 | 143 | cret := xViewSwitcherTitleGetSubtitle(x.GoPointer()) | |
| 144 | - | ||
| 145 | 144 | return cret | |
| 146 | 145 | } | |
| 147 | 146 | ||
| @@ -151,7 +150,6 @@ var xViewSwitcherTitleGetTitle func(uintptr) string | |||
| 151 | 150 | func (x *ViewSwitcherTitle) GetTitle() string { | |
| 152 | 151 | ||
| 153 | 152 | cret := xViewSwitcherTitleGetTitle(x.GoPointer()) | |
| 154 | - | ||
| 155 | 153 | return cret | |
| 156 | 154 | } | |
| 157 | 155 | ||
| @@ -164,7 +162,6 @@ var xViewSwitcherTitleGetTitleVisible func(uintptr) bool | |||
| 164 | 162 | func (x *ViewSwitcherTitle) GetTitleVisible() bool { | |
| 165 | 163 | ||
| 166 | 164 | cret := xViewSwitcherTitleGetTitleVisible(x.GoPointer()) | |
| 167 | - | ||
| 168 | 165 | return cret | |
| 169 | 166 | } | |
| 170 | 167 | ||
| @@ -174,7 +171,6 @@ var xViewSwitcherTitleGetViewSwitcherEnabled func(uintptr) bool | |||
| 174 | 171 | func (x *ViewSwitcherTitle) GetViewSwitcherEnabled() bool { | |
| 175 | 172 | ||
| 176 | 173 | cret := xViewSwitcherTitleGetViewSwitcherEnabled(x.GoPointer()) | |
| 177 | - | ||
| 178 | 174 | return cret | |
| 179 | 175 | } | |
| 180 | 176 | ||
| @@ -358,7 +354,6 @@ func (x *ViewSwitcherTitle) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 358 | 354 | func (x *ViewSwitcherTitle) GetAccessibleRole() gtk.AccessibleRole { | |
| 359 | 355 | ||
| 360 | 356 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 361 | - | ||
| 362 | 357 | return cret | |
| 363 | 358 | } | |
| 364 | 359 | ||
| @@ -384,7 +379,6 @@ func (x *ViewSwitcherTitle) GetAtContext() *gtk.ATContext { | |||
| 384 | 379 | func (x *ViewSwitcherTitle) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 385 | 380 | ||
| 386 | 381 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 387 | - | ||
| 388 | 382 | return cret | |
| 389 | 383 | } | |
| 390 | 384 | ||
| @@ -424,7 +418,6 @@ func (x *ViewSwitcherTitle) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 424 | 418 | func (x *ViewSwitcherTitle) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 425 | 419 | ||
| 426 | 420 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 427 | - | ||
| 428 | 421 | return cret | |
| 429 | 422 | } | |
| 430 | 423 | ||
| @@ -601,7 +594,6 @@ func (x *ViewSwitcherTitle) UpdateStateValue(NStatesVar int, StatesVar []gtk.Acc | |||
| 601 | 594 | func (x *ViewSwitcherTitle) GetBuildableId() string { | |
| 602 | 595 | ||
| 603 | 596 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 604 | - | ||
| 605 | 597 | return cret | |
| 606 | 598 | } | |
| 607 | 599 | ||
M v4/adw/adw-view-switcher.go +0 -5
| @@ -150,7 +150,6 @@ var xViewSwitcherGetPolicy func(uintptr) ViewSwitcherPolicy | |||
| 150 | 150 | func (x *ViewSwitcher) GetPolicy() ViewSwitcherPolicy { | |
| 151 | 151 | ||
| 152 | 152 | cret := xViewSwitcherGetPolicy(x.GoPointer()) | |
| 153 | - | ||
| 154 | 153 | return cret | |
| 155 | 154 | } | |
| 156 | 155 | ||
| @@ -235,7 +234,6 @@ func (x *ViewSwitcher) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 235 | 234 | func (x *ViewSwitcher) GetAccessibleRole() gtk.AccessibleRole { | |
| 236 | 235 | ||
| 237 | 236 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 238 | - | ||
| 239 | 237 | return cret | |
| 240 | 238 | } | |
| 241 | 239 | ||
| @@ -261,7 +259,6 @@ func (x *ViewSwitcher) GetAtContext() *gtk.ATContext { | |||
| 261 | 259 | func (x *ViewSwitcher) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 262 | 260 | ||
| 263 | 261 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 264 | - | ||
| 265 | 262 | return cret | |
| 266 | 263 | } | |
| 267 | 264 | ||
| @@ -301,7 +298,6 @@ func (x *ViewSwitcher) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 301 | 298 | func (x *ViewSwitcher) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 302 | 299 | ||
| 303 | 300 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 304 | - | ||
| 305 | 301 | return cret | |
| 306 | 302 | } | |
| 307 | 303 | ||
| @@ -478,7 +474,6 @@ func (x *ViewSwitcher) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessib | |||
| 478 | 474 | func (x *ViewSwitcher) GetBuildableId() string { | |
| 479 | 475 | ||
| 480 | 476 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 481 | - | ||
| 482 | 477 | return cret | |
| 483 | 478 | } | |
| 484 | 479 | ||
M v4/adw/adw-window-title.go +0 -6
| @@ -76,7 +76,6 @@ var xWindowTitleGetSubtitle func(uintptr) string | |||
| 76 | 76 | func (x *WindowTitle) GetSubtitle() string { | |
| 77 | 77 | ||
| 78 | 78 | cret := xWindowTitleGetSubtitle(x.GoPointer()) | |
| 79 | - | ||
| 80 | 79 | return cret | |
| 81 | 80 | } | |
| 82 | 81 | ||
| @@ -86,7 +85,6 @@ var xWindowTitleGetTitle func(uintptr) string | |||
| 86 | 85 | func (x *WindowTitle) GetTitle() string { | |
| 87 | 86 | ||
| 88 | 87 | cret := xWindowTitleGetTitle(x.GoPointer()) | |
| 89 | - | ||
| 90 | 88 | return cret | |
| 91 | 89 | } | |
| 92 | 90 | ||
| @@ -203,7 +201,6 @@ func (x *WindowTitle) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 203 | 201 | func (x *WindowTitle) GetAccessibleRole() gtk.AccessibleRole { | |
| 204 | 202 | ||
| 205 | 203 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 206 | - | ||
| 207 | 204 | return cret | |
| 208 | 205 | } | |
| 209 | 206 | ||
| @@ -229,7 +226,6 @@ func (x *WindowTitle) GetAtContext() *gtk.ATContext { | |||
| 229 | 226 | func (x *WindowTitle) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 230 | 227 | ||
| 231 | 228 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 232 | - | ||
| 233 | 229 | return cret | |
| 234 | 230 | } | |
| 235 | 231 | ||
| @@ -269,7 +265,6 @@ func (x *WindowTitle) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 269 | 265 | func (x *WindowTitle) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 270 | 266 | ||
| 271 | 267 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 272 | - | ||
| 273 | 268 | return cret | |
| 274 | 269 | } | |
| 275 | 270 | ||
| @@ -446,7 +441,6 @@ func (x *WindowTitle) UpdateStateValue(NStatesVar int, StatesVar []gtk.Accessibl | |||
| 446 | 441 | func (x *WindowTitle) GetBuildableId() string { | |
| 447 | 442 | ||
| 448 | 443 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 449 | - | ||
| 450 | 444 | return cret | |
| 451 | 445 | } | |
| 452 | 446 | ||
M v4/adw/adw-window.go +0 -5
| @@ -160,7 +160,6 @@ var xWindowGetAdaptivePreview func(uintptr) bool | |||
| 160 | 160 | func (x *Window) GetAdaptivePreview() bool { | |
| 161 | 161 | ||
| 162 | 162 | cret := xWindowGetAdaptivePreview(x.GoPointer()) | |
| 163 | - | ||
| 164 | 163 | return cret | |
| 165 | 164 | } | |
| 166 | 165 | ||
| @@ -342,7 +341,6 @@ func (x *Window) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 342 | 341 | func (x *Window) GetAccessibleRole() gtk.AccessibleRole { | |
| 343 | 342 | ||
| 344 | 343 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 345 | - | ||
| 346 | 344 | return cret | |
| 347 | 345 | } | |
| 348 | 346 | ||
| @@ -368,7 +366,6 @@ func (x *Window) GetAtContext() *gtk.ATContext { | |||
| 368 | 366 | func (x *Window) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 369 | 367 | ||
| 370 | 368 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 371 | - | ||
| 372 | 369 | return cret | |
| 373 | 370 | } | |
| 374 | 371 | ||
| @@ -408,7 +405,6 @@ func (x *Window) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 408 | 405 | func (x *Window) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 409 | 406 | ||
| 410 | 407 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 411 | - | ||
| 412 | 408 | return cret | |
| 413 | 409 | } | |
| 414 | 410 | ||
| @@ -585,7 +581,6 @@ func (x *Window) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleStat | |||
| 585 | 581 | func (x *Window) GetBuildableId() string { | |
| 586 | 582 | ||
| 587 | 583 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 588 | - | ||
| 589 | 584 | return cret | |
| 590 | 585 | } | |
| 591 | 586 | ||
M v4/adw/adw-wrap-box.go +0 -18
| @@ -130,7 +130,6 @@ var xWrapBoxGetAlign func(uintptr) float32 | |||
| 130 | 130 | func (x *WrapBox) GetAlign() float32 { | |
| 131 | 131 | ||
| 132 | 132 | cret := xWrapBoxGetAlign(x.GoPointer()) | |
| 133 | - | ||
| 134 | 133 | return cret | |
| 135 | 134 | } | |
| 136 | 135 | ||
| @@ -140,7 +139,6 @@ var xWrapBoxGetChildSpacing func(uintptr) int | |||
| 140 | 139 | func (x *WrapBox) GetChildSpacing() int { | |
| 141 | 140 | ||
| 142 | 141 | cret := xWrapBoxGetChildSpacing(x.GoPointer()) | |
| 143 | - | ||
| 144 | 142 | return cret | |
| 145 | 143 | } | |
| 146 | 144 | ||
| @@ -150,7 +148,6 @@ var xWrapBoxGetChildSpacingUnit func(uintptr) LengthUnit | |||
| 150 | 148 | func (x *WrapBox) GetChildSpacingUnit() LengthUnit { | |
| 151 | 149 | ||
| 152 | 150 | cret := xWrapBoxGetChildSpacingUnit(x.GoPointer()) | |
| 153 | - | ||
| 154 | 151 | return cret | |
| 155 | 152 | } | |
| 156 | 153 | ||
| @@ -160,7 +157,6 @@ var xWrapBoxGetJustify func(uintptr) JustifyMode | |||
| 160 | 157 | func (x *WrapBox) GetJustify() JustifyMode { | |
| 161 | 158 | ||
| 162 | 159 | cret := xWrapBoxGetJustify(x.GoPointer()) | |
| 163 | - | ||
| 164 | 160 | return cret | |
| 165 | 161 | } | |
| 166 | 162 | ||
| @@ -170,7 +166,6 @@ var xWrapBoxGetJustifyLastLine func(uintptr) bool | |||
| 170 | 166 | func (x *WrapBox) GetJustifyLastLine() bool { | |
| 171 | 167 | ||
| 172 | 168 | cret := xWrapBoxGetJustifyLastLine(x.GoPointer()) | |
| 173 | - | ||
| 174 | 169 | return cret | |
| 175 | 170 | } | |
| 176 | 171 | ||
| @@ -180,7 +175,6 @@ var xWrapBoxGetLineHomogeneous func(uintptr) bool | |||
| 180 | 175 | func (x *WrapBox) GetLineHomogeneous() bool { | |
| 181 | 176 | ||
| 182 | 177 | cret := xWrapBoxGetLineHomogeneous(x.GoPointer()) | |
| 183 | - | ||
| 184 | 178 | return cret | |
| 185 | 179 | } | |
| 186 | 180 | ||
| @@ -192,7 +186,6 @@ var xWrapBoxGetLineSpacing func(uintptr) int | |||
| 192 | 186 | func (x *WrapBox) GetLineSpacing() int { | |
| 193 | 187 | ||
| 194 | 188 | cret := xWrapBoxGetLineSpacing(x.GoPointer()) | |
| 195 | - | ||
| 196 | 189 | return cret | |
| 197 | 190 | } | |
| 198 | 191 | ||
| @@ -202,7 +195,6 @@ var xWrapBoxGetLineSpacingUnit func(uintptr) LengthUnit | |||
| 202 | 195 | func (x *WrapBox) GetLineSpacingUnit() LengthUnit { | |
| 203 | 196 | ||
| 204 | 197 | cret := xWrapBoxGetLineSpacingUnit(x.GoPointer()) | |
| 205 | - | ||
| 206 | 198 | return cret | |
| 207 | 199 | } | |
| 208 | 200 | ||
| @@ -212,7 +204,6 @@ var xWrapBoxGetNaturalLineLength func(uintptr) int | |||
| 212 | 204 | func (x *WrapBox) GetNaturalLineLength() int { | |
| 213 | 205 | ||
| 214 | 206 | cret := xWrapBoxGetNaturalLineLength(x.GoPointer()) | |
| 215 | - | ||
| 216 | 207 | return cret | |
| 217 | 208 | } | |
| 218 | 209 | ||
| @@ -222,7 +213,6 @@ var xWrapBoxGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||
| 222 | 213 | func (x *WrapBox) GetNaturalLineLengthUnit() LengthUnit { | |
| 223 | 214 | ||
| 224 | 215 | cret := xWrapBoxGetNaturalLineLengthUnit(x.GoPointer()) | |
| 225 | - | ||
| 226 | 216 | return cret | |
| 227 | 217 | } | |
| 228 | 218 | ||
| @@ -232,7 +222,6 @@ var xWrapBoxGetPackDirection func(uintptr) PackDirection | |||
| 232 | 222 | func (x *WrapBox) GetPackDirection() PackDirection { | |
| 233 | 223 | ||
| 234 | 224 | cret := xWrapBoxGetPackDirection(x.GoPointer()) | |
| 235 | - | ||
| 236 | 225 | return cret | |
| 237 | 226 | } | |
| 238 | 227 | ||
| @@ -242,7 +231,6 @@ var xWrapBoxGetWrapPolicy func(uintptr) WrapPolicy | |||
| 242 | 231 | func (x *WrapBox) GetWrapPolicy() WrapPolicy { | |
| 243 | 232 | ||
| 244 | 233 | cret := xWrapBoxGetWrapPolicy(x.GoPointer()) | |
| 245 | - | ||
| 246 | 234 | return cret | |
| 247 | 235 | } | |
| 248 | 236 | ||
| @@ -252,7 +240,6 @@ var xWrapBoxGetWrapReverse func(uintptr) bool | |||
| 252 | 240 | func (x *WrapBox) GetWrapReverse() bool { | |
| 253 | 241 | ||
| 254 | 242 | cret := xWrapBoxGetWrapReverse(x.GoPointer()) | |
| 255 | - | ||
| 256 | 243 | return cret | |
| 257 | 244 | } | |
| 258 | 245 | ||
| @@ -693,7 +680,6 @@ func (x *WrapBox) GetAccessibleParent() *gtk.AccessibleBase { | |||
| 693 | 680 | func (x *WrapBox) GetAccessibleRole() gtk.AccessibleRole { | |
| 694 | 681 | ||
| 695 | 682 | cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) | |
| 696 | - | ||
| 697 | 683 | return cret | |
| 698 | 684 | } | |
| 699 | 685 | ||
| @@ -719,7 +705,6 @@ func (x *WrapBox) GetAtContext() *gtk.ATContext { | |||
| 719 | 705 | func (x *WrapBox) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { | |
| 720 | 706 | ||
| 721 | 707 | cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) | |
| 722 | - | ||
| 723 | 708 | return cret | |
| 724 | 709 | } | |
| 725 | 710 | ||
| @@ -759,7 +744,6 @@ func (x *WrapBox) GetNextAccessibleSibling() *gtk.AccessibleBase { | |||
| 759 | 744 | func (x *WrapBox) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { | |
| 760 | 745 | ||
| 761 | 746 | cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) | |
| 762 | - | ||
| 763 | 747 | return cret | |
| 764 | 748 | } | |
| 765 | 749 | ||
| @@ -936,7 +920,6 @@ func (x *WrapBox) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleSta | |||
| 936 | 920 | func (x *WrapBox) GetBuildableId() string { | |
| 937 | 921 | ||
| 938 | 922 | cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) | |
| 939 | - | ||
| 940 | 923 | return cret | |
| 941 | 924 | } | |
| 942 | 925 | ||
| @@ -944,7 +927,6 @@ func (x *WrapBox) GetBuildableId() string { | |||
| 944 | 927 | func (x *WrapBox) GetOrientation() gtk.Orientation { | |
| 945 | 928 | ||
| 946 | 929 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 947 | - | ||
| 948 | 930 | return cret | |
| 949 | 931 | } | |
| 950 | 932 | ||
M v4/adw/adw-wrap-layout.go +0 -14
| @@ -181,7 +181,6 @@ var xWrapLayoutGetAlign func(uintptr) float32 | |||
| 181 | 181 | func (x *WrapLayout) GetAlign() float32 { | |
| 182 | 182 | ||
| 183 | 183 | cret := xWrapLayoutGetAlign(x.GoPointer()) | |
| 184 | - | ||
| 185 | 184 | return cret | |
| 186 | 185 | } | |
| 187 | 186 | ||
| @@ -191,7 +190,6 @@ var xWrapLayoutGetChildSpacing func(uintptr) int | |||
| 191 | 190 | func (x *WrapLayout) GetChildSpacing() int { | |
| 192 | 191 | ||
| 193 | 192 | cret := xWrapLayoutGetChildSpacing(x.GoPointer()) | |
| 194 | - | ||
| 195 | 193 | return cret | |
| 196 | 194 | } | |
| 197 | 195 | ||
| @@ -201,7 +199,6 @@ var xWrapLayoutGetChildSpacingUnit func(uintptr) LengthUnit | |||
| 201 | 199 | func (x *WrapLayout) GetChildSpacingUnit() LengthUnit { | |
| 202 | 200 | ||
| 203 | 201 | cret := xWrapLayoutGetChildSpacingUnit(x.GoPointer()) | |
| 204 | - | ||
| 205 | 202 | return cret | |
| 206 | 203 | } | |
| 207 | 204 | ||
| @@ -211,7 +208,6 @@ var xWrapLayoutGetJustify func(uintptr) JustifyMode | |||
| 211 | 208 | func (x *WrapLayout) GetJustify() JustifyMode { | |
| 212 | 209 | ||
| 213 | 210 | cret := xWrapLayoutGetJustify(x.GoPointer()) | |
| 214 | - | ||
| 215 | 211 | return cret | |
| 216 | 212 | } | |
| 217 | 213 | ||
| @@ -221,7 +217,6 @@ var xWrapLayoutGetJustifyLastLine func(uintptr) bool | |||
| 221 | 217 | func (x *WrapLayout) GetJustifyLastLine() bool { | |
| 222 | 218 | ||
| 223 | 219 | cret := xWrapLayoutGetJustifyLastLine(x.GoPointer()) | |
| 224 | - | ||
| 225 | 220 | return cret | |
| 226 | 221 | } | |
| 227 | 222 | ||
| @@ -231,7 +226,6 @@ var xWrapLayoutGetLineHomogeneous func(uintptr) bool | |||
| 231 | 226 | func (x *WrapLayout) GetLineHomogeneous() bool { | |
| 232 | 227 | ||
| 233 | 228 | cret := xWrapLayoutGetLineHomogeneous(x.GoPointer()) | |
| 234 | - | ||
| 235 | 229 | return cret | |
| 236 | 230 | } | |
| 237 | 231 | ||
| @@ -241,7 +235,6 @@ var xWrapLayoutGetLineSpacing func(uintptr) int | |||
| 241 | 235 | func (x *WrapLayout) GetLineSpacing() int { | |
| 242 | 236 | ||
| 243 | 237 | cret := xWrapLayoutGetLineSpacing(x.GoPointer()) | |
| 244 | - | ||
| 245 | 238 | return cret | |
| 246 | 239 | } | |
| 247 | 240 | ||
| @@ -251,7 +244,6 @@ var xWrapLayoutGetLineSpacingUnit func(uintptr) LengthUnit | |||
| 251 | 244 | func (x *WrapLayout) GetLineSpacingUnit() LengthUnit { | |
| 252 | 245 | ||
| 253 | 246 | cret := xWrapLayoutGetLineSpacingUnit(x.GoPointer()) | |
| 254 | - | ||
| 255 | 247 | return cret | |
| 256 | 248 | } | |
| 257 | 249 | ||
| @@ -261,7 +253,6 @@ var xWrapLayoutGetNaturalLineLength func(uintptr) int | |||
| 261 | 253 | func (x *WrapLayout) GetNaturalLineLength() int { | |
| 262 | 254 | ||
| 263 | 255 | cret := xWrapLayoutGetNaturalLineLength(x.GoPointer()) | |
| 264 | - | ||
| 265 | 256 | return cret | |
| 266 | 257 | } | |
| 267 | 258 | ||
| @@ -271,7 +262,6 @@ var xWrapLayoutGetNaturalLineLengthUnit func(uintptr) LengthUnit | |||
| 271 | 262 | func (x *WrapLayout) GetNaturalLineLengthUnit() LengthUnit { | |
| 272 | 263 | ||
| 273 | 264 | cret := xWrapLayoutGetNaturalLineLengthUnit(x.GoPointer()) | |
| 274 | - | ||
| 275 | 265 | return cret | |
| 276 | 266 | } | |
| 277 | 267 | ||
| @@ -281,7 +271,6 @@ var xWrapLayoutGetPackDirection func(uintptr) PackDirection | |||
| 281 | 271 | func (x *WrapLayout) GetPackDirection() PackDirection { | |
| 282 | 272 | ||
| 283 | 273 | cret := xWrapLayoutGetPackDirection(x.GoPointer()) | |
| 284 | - | ||
| 285 | 274 | return cret | |
| 286 | 275 | } | |
| 287 | 276 | ||
| @@ -291,7 +280,6 @@ var xWrapLayoutGetWrapPolicy func(uintptr) WrapPolicy | |||
| 291 | 280 | func (x *WrapLayout) GetWrapPolicy() WrapPolicy { | |
| 292 | 281 | ||
| 293 | 282 | cret := xWrapLayoutGetWrapPolicy(x.GoPointer()) | |
| 294 | - | ||
| 295 | 283 | return cret | |
| 296 | 284 | } | |
| 297 | 285 | ||
| @@ -301,7 +289,6 @@ var xWrapLayoutGetWrapReverse func(uintptr) bool | |||
| 301 | 289 | func (x *WrapLayout) GetWrapReverse() bool { | |
| 302 | 290 | ||
| 303 | 291 | cret := xWrapLayoutGetWrapReverse(x.GoPointer()) | |
| 304 | - | ||
| 305 | 292 | return cret | |
| 306 | 293 | } | |
| 307 | 294 | ||
| @@ -661,7 +648,6 @@ func (x *WrapLayout) GetPropertyWrapReverse() bool { | |||
| 661 | 648 | func (x *WrapLayout) GetOrientation() gtk.Orientation { | |
| 662 | 649 | ||
| 663 | 650 | cret := gtk.XGtkOrientableGetOrientation(x.GoPointer()) | |
| 664 | - | ||
| 665 | 651 | return cret | |
| 666 | 652 | } | |
| 667 | 653 | ||
M v4/gdk/gdkapplaunchcontext.go +2 -5
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gdk | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| @@ -113,12 +111,11 @@ var xAppLaunchContextSetIconName func(uintptr, uintptr) | |||
| 113 | 111 | // for the launched application itself. | |
| 114 | 112 | func (x *AppLaunchContext) SetIconName(IconNameVar *string) { | |
| 115 | 113 | ||
| 116 | - | IconNameVarPtr, IconNameVarBytes := core.NullableStringToPtr(IconNameVar) | |
| 114 | + | IconNameVarPtr := core.GStrdupNullable(IconNameVar) | |
| 115 | + | defer core.GFreeNullable(IconNameVarPtr) | |
| 117 | 116 | ||
| 118 | 117 | xAppLaunchContextSetIconName(x.GoPointer(), IconNameVarPtr) | |
| 119 | 118 | ||
| 120 | - | runtime.KeepAlive(IconNameVarBytes) | |
| 121 | - | ||
| 122 | 119 | } | |
| 123 | 120 | ||
| 124 | 121 | var xAppLaunchContextSetTimestamp func(uintptr, uint32) | |
M v4/gdk/gdkcairo.go +0 -1
| @@ -62,7 +62,6 @@ var xCairoRegionCreateFromSurface func(*cairo.Surface) *cairo.Region | |||
| 62 | 62 | func CairoRegionCreateFromSurface(SurfaceVar *cairo.Surface) *cairo.Region { | |
| 63 | 63 | ||
| 64 | 64 | cret := xCairoRegionCreateFromSurface(SurfaceVar) | |
| 65 | - | ||
| 66 | 65 | return cret | |
| 67 | 66 | } | |
| 68 | 67 | ||
M v4/gdk/gdkcairocontext.go +0 -1
| @@ -42,7 +42,6 @@ var xCairoContextCairoCreate func(uintptr) *cairo.Context | |||
| 42 | 42 | func (x *CairoContext) CairoCreate() *cairo.Context { | |
| 43 | 43 | ||
| 44 | 44 | cret := xCairoContextCairoCreate(x.GoPointer()) | |
| 45 | - | ||
| 46 | 45 | return cret | |
| 47 | 46 | } | |
| 48 | 47 | ||
M v4/gdk/gdkcicpparams.go +0 -5
| @@ -107,7 +107,6 @@ func (x *CicpParams) BuildColorState() (*ColorState, error) { | |||
| 107 | 107 | var cerr *glib.Error | |
| 108 | 108 | ||
| 109 | 109 | cret := xCicpParamsBuildColorState(x.GoPointer()) | |
| 110 | - | ||
| 111 | 110 | if cerr == nil { | |
| 112 | 111 | return cret, nil | |
| 113 | 112 | } | |
| @@ -122,7 +121,6 @@ var xCicpParamsGetColorPrimaries func(uintptr) uint | |||
| 122 | 121 | func (x *CicpParams) GetColorPrimaries() uint { | |
| 123 | 122 | ||
| 124 | 123 | cret := xCicpParamsGetColorPrimaries(x.GoPointer()) | |
| 125 | - | ||
| 126 | 124 | return cret | |
| 127 | 125 | } | |
| 128 | 126 | ||
| @@ -132,7 +130,6 @@ var xCicpParamsGetMatrixCoefficients func(uintptr) uint | |||
| 132 | 130 | func (x *CicpParams) GetMatrixCoefficients() uint { | |
| 133 | 131 | ||
| 134 | 132 | cret := xCicpParamsGetMatrixCoefficients(x.GoPointer()) | |
| 135 | - | ||
| 136 | 133 | return cret | |
| 137 | 134 | } | |
| 138 | 135 | ||
| @@ -142,7 +139,6 @@ var xCicpParamsGetRange func(uintptr) CicpRange | |||
| 142 | 139 | func (x *CicpParams) GetRange() CicpRange { | |
| 143 | 140 | ||
| 144 | 141 | cret := xCicpParamsGetRange(x.GoPointer()) | |
| 145 | - | ||
| 146 | 142 | return cret | |
| 147 | 143 | } | |
| 148 | 144 | ||
| @@ -152,7 +148,6 @@ var xCicpParamsGetTransferFunction func(uintptr) uint | |||
| 152 | 148 | func (x *CicpParams) GetTransferFunction() uint { | |
| 153 | 149 | ||
| 154 | 150 | cret := xCicpParamsGetTransferFunction(x.GoPointer()) | |
| 155 | - | ||
| 156 | 151 | return cret | |
| 157 | 152 | } | |
| 158 | 153 | ||
M v4/gdk/gdkclipboard.go +0 -6
| @@ -87,7 +87,6 @@ var xClipboardGetFormats func(uintptr) *ContentFormats | |||
| 87 | 87 | func (x *Clipboard) GetFormats() *ContentFormats { | |
| 88 | 88 | ||
| 89 | 89 | cret := xClipboardGetFormats(x.GoPointer()) | |
| 90 | - | ||
| 91 | 90 | return cret | |
| 92 | 91 | } | |
| 93 | 92 | ||
| @@ -103,7 +102,6 @@ var xClipboardIsLocal func(uintptr) bool | |||
| 103 | 102 | func (x *Clipboard) IsLocal() bool { | |
| 104 | 103 | ||
| 105 | 104 | cret := xClipboardIsLocal(x.GoPointer()) | |
| 106 | - | ||
| 107 | 105 | return cret | |
| 108 | 106 | } | |
| 109 | 107 | ||
| @@ -195,7 +193,6 @@ func (x *Clipboard) ReadTextFinish(ResultVar gio.AsyncResult) (string, error) { | |||
| 195 | 193 | var cerr *glib.Error | |
| 196 | 194 | ||
| 197 | 195 | cret := xClipboardReadTextFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 198 | - | ||
| 199 | 196 | if cerr == nil { | |
| 200 | 197 | return cret, nil | |
| 201 | 198 | } | |
| @@ -292,7 +289,6 @@ func (x *Clipboard) ReadValueFinish(ResultVar gio.AsyncResult) (*gobject.Value, | |||
| 292 | 289 | var cerr *glib.Error | |
| 293 | 290 | ||
| 294 | 291 | cret := xClipboardReadValueFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 295 | - | ||
| 296 | 292 | if cerr == nil { | |
| 297 | 293 | return cret, nil | |
| 298 | 294 | } | |
| @@ -336,7 +332,6 @@ var xClipboardSetContent func(uintptr, uintptr) bool | |||
| 336 | 332 | func (x *Clipboard) SetContent(ProviderVar *ContentProvider) bool { | |
| 337 | 333 | ||
| 338 | 334 | cret := xClipboardSetContent(x.GoPointer(), ProviderVar.GoPointer()) | |
| 339 | - | ||
| 340 | 335 | return cret | |
| 341 | 336 | } | |
| 342 | 337 | ||
| @@ -420,7 +415,6 @@ func (x *Clipboard) StoreFinish(ResultVar gio.AsyncResult) (bool, error) { | |||
| 420 | 415 | var cerr *glib.Error | |
| 421 | 416 | ||
| 422 | 417 | cret := xClipboardStoreFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 423 | - | ||
| 424 | 418 | if cerr == nil { | |
| 425 | 419 | return cret, nil | |
| 426 | 420 | } | |
M v4/gdk/gdkcolorstate.go +0 -6
| @@ -14,7 +14,6 @@ var xColorStateGetOklab func() *ColorState | |||
| 14 | 14 | func ColorStateGetOklab() *ColorState { | |
| 15 | 15 | ||
| 16 | 16 | cret := xColorStateGetOklab() | |
| 17 | - | ||
| 18 | 17 | return cret | |
| 19 | 18 | } | |
| 20 | 19 | ||
| @@ -27,7 +26,6 @@ var xColorStateGetOklch func() *ColorState | |||
| 27 | 26 | func ColorStateGetOklch() *ColorState { | |
| 28 | 27 | ||
| 29 | 28 | cret := xColorStateGetOklch() | |
| 30 | - | ||
| 31 | 29 | return cret | |
| 32 | 30 | } | |
| 33 | 31 | ||
| @@ -45,7 +43,6 @@ var xColorStateGetRec2100Linear func() *ColorState | |||
| 45 | 43 | func ColorStateGetRec2100Linear() *ColorState { | |
| 46 | 44 | ||
| 47 | 45 | cret := xColorStateGetRec2100Linear() | |
| 48 | - | ||
| 49 | 46 | return cret | |
| 50 | 47 | } | |
| 51 | 48 | ||
| @@ -63,7 +60,6 @@ var xColorStateGetRec2100Pq func() *ColorState | |||
| 63 | 60 | func ColorStateGetRec2100Pq() *ColorState { | |
| 64 | 61 | ||
| 65 | 62 | cret := xColorStateGetRec2100Pq() | |
| 66 | - | ||
| 67 | 63 | return cret | |
| 68 | 64 | } | |
| 69 | 65 | ||
| @@ -81,7 +77,6 @@ var xColorStateGetSrgb func() *ColorState | |||
| 81 | 77 | func ColorStateGetSrgb() *ColorState { | |
| 82 | 78 | ||
| 83 | 79 | cret := xColorStateGetSrgb() | |
| 84 | - | ||
| 85 | 80 | return cret | |
| 86 | 81 | } | |
| 87 | 82 | ||
| @@ -98,7 +93,6 @@ var xColorStateGetSrgbLinear func() *ColorState | |||
| 98 | 93 | func ColorStateGetSrgbLinear() *ColorState { | |
| 99 | 94 | ||
| 100 | 95 | cret := xColorStateGetSrgbLinear() | |
| 101 | - | ||
| 102 | 96 | return cret | |
| 103 | 97 | } | |
| 104 | 98 | ||
M v4/gdk/gdkcontentdeserializer.go +0 -9
| @@ -53,7 +53,6 @@ func ContentDeserializeFinish(ResultVar gio.AsyncResult, ValueVar *gobject.Value | |||
| 53 | 53 | var cerr *glib.Error | |
| 54 | 54 | ||
| 55 | 55 | cret := xContentDeserializeFinish(ResultVar.GoPointer(), ValueVar, &cerr) | |
| 56 | - | ||
| 57 | 56 | if cerr == nil { | |
| 58 | 57 | return cret, nil | |
| 59 | 58 | } | |
| @@ -155,7 +154,6 @@ var xContentDeserializerGetGtype func(uintptr) types.GType | |||
| 155 | 154 | func (x *ContentDeserializer) GetGtype() types.GType { | |
| 156 | 155 | ||
| 157 | 156 | cret := xContentDeserializerGetGtype(x.GoPointer()) | |
| 158 | - | ||
| 159 | 157 | return cret | |
| 160 | 158 | } | |
| 161 | 159 | ||
| @@ -184,7 +182,6 @@ var xContentDeserializerGetMimeType func(uintptr) string | |||
| 184 | 182 | func (x *ContentDeserializer) GetMimeType() string { | |
| 185 | 183 | ||
| 186 | 184 | cret := xContentDeserializerGetMimeType(x.GoPointer()) | |
| 187 | - | ||
| 188 | 185 | return cret | |
| 189 | 186 | } | |
| 190 | 187 | ||
| @@ -196,7 +193,6 @@ var xContentDeserializerGetPriority func(uintptr) int | |||
| 196 | 193 | func (x *ContentDeserializer) GetPriority() int { | |
| 197 | 194 | ||
| 198 | 195 | cret := xContentDeserializerGetPriority(x.GoPointer()) | |
| 199 | - | ||
| 200 | 196 | return cret | |
| 201 | 197 | } | |
| 202 | 198 | ||
| @@ -208,7 +204,6 @@ var xContentDeserializerGetTaskData func(uintptr) uintptr | |||
| 208 | 204 | func (x *ContentDeserializer) GetTaskData() uintptr { | |
| 209 | 205 | ||
| 210 | 206 | cret := xContentDeserializerGetTaskData(x.GoPointer()) | |
| 211 | - | ||
| 212 | 207 | return cret | |
| 213 | 208 | } | |
| 214 | 209 | ||
| @@ -218,7 +213,6 @@ var xContentDeserializerGetUserData func(uintptr) uintptr | |||
| 218 | 213 | func (x *ContentDeserializer) GetUserData() uintptr { | |
| 219 | 214 | ||
| 220 | 215 | cret := xContentDeserializerGetUserData(x.GoPointer()) | |
| 221 | - | ||
| 222 | 216 | return cret | |
| 223 | 217 | } | |
| 224 | 218 | ||
| @@ -228,7 +222,6 @@ var xContentDeserializerGetValue func(uintptr) *gobject.Value | |||
| 228 | 222 | func (x *ContentDeserializer) GetValue() *gobject.Value { | |
| 229 | 223 | ||
| 230 | 224 | cret := xContentDeserializerGetValue(x.GoPointer()) | |
| 231 | - | ||
| 232 | 225 | return cret | |
| 233 | 226 | } | |
| 234 | 227 | ||
| @@ -306,7 +299,6 @@ func (x *ContentDeserializer) GetSourceObject() *gobject.Object { | |||
| 306 | 299 | func (x *ContentDeserializer) IsTagged(SourceTagVar uintptr) bool { | |
| 307 | 300 | ||
| 308 | 301 | cret := gio.XGAsyncResultIsTagged(x.GoPointer(), SourceTagVar) | |
| 309 | - | ||
| 310 | 302 | return cret | |
| 311 | 303 | } | |
| 312 | 304 | ||
| @@ -324,7 +316,6 @@ func (x *ContentDeserializer) LegacyPropagateError() (bool, error) { | |||
| 324 | 316 | var cerr *glib.Error | |
| 325 | 317 | ||
| 326 | 318 | cret := gio.XGAsyncResultLegacyPropagateError(x.GoPointer()) | |
| 327 | - | ||
| 328 | 319 | if cerr == nil { | |
| 329 | 320 | return cret, nil | |
| 330 | 321 | } | |
M v4/gdk/gdkcontentformats.go +0 -9
| @@ -35,7 +35,6 @@ var xNewContentFormatsBuilder func() *ContentFormatsBuilder | |||
| 35 | 35 | func NewContentFormatsBuilder() *ContentFormatsBuilder { | |
| 36 | 36 | ||
| 37 | 37 | cret := xNewContentFormatsBuilder() | |
| 38 | - | ||
| 39 | 38 | return cret | |
| 40 | 39 | } | |
| 41 | 40 | ||
| @@ -74,7 +73,6 @@ var xContentFormatsBuilderFreeToFormats func(uintptr) *ContentFormats | |||
| 74 | 73 | func (x *ContentFormatsBuilder) FreeToFormats() *ContentFormats { | |
| 75 | 74 | ||
| 76 | 75 | cret := xContentFormatsBuilderFreeToFormats(x.GoPointer()) | |
| 77 | - | ||
| 78 | 76 | return cret | |
| 79 | 77 | } | |
| 80 | 78 | ||
| @@ -87,7 +85,6 @@ var xContentFormatsBuilderRef func(uintptr) *ContentFormatsBuilder | |||
| 87 | 85 | func (x *ContentFormatsBuilder) Ref() *ContentFormatsBuilder { | |
| 88 | 86 | ||
| 89 | 87 | cret := xContentFormatsBuilderRef(x.GoPointer()) | |
| 90 | - | ||
| 91 | 88 | return cret | |
| 92 | 89 | } | |
| 93 | 90 | ||
| @@ -103,7 +100,6 @@ var xContentFormatsBuilderToFormats func(uintptr) *ContentFormats | |||
| 103 | 100 | func (x *ContentFormatsBuilder) ToFormats() *ContentFormats { | |
| 104 | 101 | ||
| 105 | 102 | cret := xContentFormatsBuilderToFormats(x.GoPointer()) | |
| 106 | - | ||
| 107 | 103 | return cret | |
| 108 | 104 | } | |
| 109 | 105 | ||
| @@ -139,7 +135,6 @@ var xNewFileListFromArray func(uintptr, uint) *FileList | |||
| 139 | 135 | func NewFileListFromArray(FilesVar uintptr, NFilesVar uint) *FileList { | |
| 140 | 136 | ||
| 141 | 137 | cret := xNewFileListFromArray(FilesVar, NFilesVar) | |
| 142 | - | ||
| 143 | 138 | return cret | |
| 144 | 139 | } | |
| 145 | 140 | ||
| @@ -152,7 +147,6 @@ var xNewFileListFromList func(*glib.SList) *FileList | |||
| 152 | 147 | func NewFileListFromList(FilesVar *glib.SList) *FileList { | |
| 153 | 148 | ||
| 154 | 149 | cret := xNewFileListFromList(FilesVar) | |
| 155 | - | ||
| 156 | 150 | return cret | |
| 157 | 151 | } | |
| 158 | 152 | ||
| @@ -164,7 +158,6 @@ var xFileListGetFiles func(uintptr) *glib.SList | |||
| 164 | 158 | func (x *FileList) GetFiles() *glib.SList { | |
| 165 | 159 | ||
| 166 | 160 | cret := xFileListGetFiles(x.GoPointer()) | |
| 167 | - | ||
| 168 | 161 | return cret | |
| 169 | 162 | } | |
| 170 | 163 | ||
| @@ -181,7 +174,6 @@ var xContentFormatsParse func(string) *ContentFormats | |||
| 181 | 174 | func ContentFormatsParse(StringVar string) *ContentFormats { | |
| 182 | 175 | ||
| 183 | 176 | cret := xContentFormatsParse(StringVar) | |
| 184 | - | ||
| 185 | 177 | return cret | |
| 186 | 178 | } | |
| 187 | 179 | ||
| @@ -194,7 +186,6 @@ var xInternMimeType func(string) string | |||
| 194 | 186 | func InternMimeType(StringVar string) string { | |
| 195 | 187 | ||
| 196 | 188 | cret := xInternMimeType(StringVar) | |
| 197 | - | ||
| 198 | 189 | return cret | |
| 199 | 190 | } | |
| 200 | 191 | ||
M v4/gdk/gdkcontentprovider.go +0 -4
| @@ -360,7 +360,6 @@ func (x *ContentProvider) GetValue(ValueVar *gobject.Value) (bool, error) { | |||
| 360 | 360 | var cerr *glib.Error | |
| 361 | 361 | ||
| 362 | 362 | cret := xContentProviderGetValue(x.GoPointer(), ValueVar, &cerr) | |
| 363 | - | ||
| 364 | 363 | if cerr == nil { | |
| 365 | 364 | return cret, nil | |
| 366 | 365 | } | |
| @@ -374,7 +373,6 @@ var xContentProviderRefFormats func(uintptr) *ContentFormats | |||
| 374 | 373 | func (x *ContentProvider) RefFormats() *ContentFormats { | |
| 375 | 374 | ||
| 376 | 375 | cret := xContentProviderRefFormats(x.GoPointer()) | |
| 377 | - | ||
| 378 | 376 | return cret | |
| 379 | 377 | } | |
| 380 | 378 | ||
| @@ -389,7 +387,6 @@ var xContentProviderRefStorableFormats func(uintptr) *ContentFormats | |||
| 389 | 387 | func (x *ContentProvider) RefStorableFormats() *ContentFormats { | |
| 390 | 388 | ||
| 391 | 389 | cret := xContentProviderRefStorableFormats(x.GoPointer()) | |
| 392 | - | ||
| 393 | 390 | return cret | |
| 394 | 391 | } | |
| 395 | 392 | ||
| @@ -433,7 +430,6 @@ func (x *ContentProvider) WriteMimeTypeFinish(ResultVar gio.AsyncResult) (bool, | |||
| 433 | 430 | var cerr *glib.Error | |
| 434 | 431 | ||
| 435 | 432 | cret := xContentProviderWriteMimeTypeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 436 | - | ||
| 437 | 433 | if cerr == nil { | |
| 438 | 434 | return cret, nil | |
| 439 | 435 | } | |
M v4/gdk/gdkcontentserializer.go +0 -9
| @@ -96,7 +96,6 @@ func ContentSerializeFinish(ResultVar gio.AsyncResult) (bool, error) { | |||
| 96 | 96 | var cerr *glib.Error | |
| 97 | 97 | ||
| 98 | 98 | cret := xContentSerializeFinish(ResultVar.GoPointer(), &cerr) | |
| 99 | - | ||
| 100 | 99 | if cerr == nil { | |
| 101 | 100 | return cret, nil | |
| 102 | 101 | } | |
| @@ -156,7 +155,6 @@ var xContentSerializerGetGtype func(uintptr) types.GType | |||
| 156 | 155 | func (x *ContentSerializer) GetGtype() types.GType { | |
| 157 | 156 | ||
| 158 | 157 | cret := xContentSerializerGetGtype(x.GoPointer()) | |
| 159 | - | ||
| 160 | 158 | return cret | |
| 161 | 159 | } | |
| 162 | 160 | ||
| @@ -166,7 +164,6 @@ var xContentSerializerGetMimeType func(uintptr) string | |||
| 166 | 164 | func (x *ContentSerializer) GetMimeType() string { | |
| 167 | 165 | ||
| 168 | 166 | cret := xContentSerializerGetMimeType(x.GoPointer()) | |
| 169 | - | ||
| 170 | 167 | return cret | |
| 171 | 168 | } | |
| 172 | 169 | ||
| @@ -197,7 +194,6 @@ var xContentSerializerGetPriority func(uintptr) int | |||
| 197 | 194 | func (x *ContentSerializer) GetPriority() int { | |
| 198 | 195 | ||
| 199 | 196 | cret := xContentSerializerGetPriority(x.GoPointer()) | |
| 200 | - | ||
| 201 | 197 | return cret | |
| 202 | 198 | } | |
| 203 | 199 | ||
| @@ -209,7 +205,6 @@ var xContentSerializerGetTaskData func(uintptr) uintptr | |||
| 209 | 205 | func (x *ContentSerializer) GetTaskData() uintptr { | |
| 210 | 206 | ||
| 211 | 207 | cret := xContentSerializerGetTaskData(x.GoPointer()) | |
| 212 | - | ||
| 213 | 208 | return cret | |
| 214 | 209 | } | |
| 215 | 210 | ||
| @@ -219,7 +214,6 @@ var xContentSerializerGetUserData func(uintptr) uintptr | |||
| 219 | 214 | func (x *ContentSerializer) GetUserData() uintptr { | |
| 220 | 215 | ||
| 221 | 216 | cret := xContentSerializerGetUserData(x.GoPointer()) | |
| 222 | - | ||
| 223 | 217 | return cret | |
| 224 | 218 | } | |
| 225 | 219 | ||
| @@ -229,7 +223,6 @@ var xContentSerializerGetValue func(uintptr) *gobject.Value | |||
| 229 | 223 | func (x *ContentSerializer) GetValue() *gobject.Value { | |
| 230 | 224 | ||
| 231 | 225 | cret := xContentSerializerGetValue(x.GoPointer()) | |
| 232 | - | ||
| 233 | 226 | return cret | |
| 234 | 227 | } | |
| 235 | 228 | ||
| @@ -307,7 +300,6 @@ func (x *ContentSerializer) GetSourceObject() *gobject.Object { | |||
| 307 | 300 | func (x *ContentSerializer) IsTagged(SourceTagVar uintptr) bool { | |
| 308 | 301 | ||
| 309 | 302 | cret := gio.XGAsyncResultIsTagged(x.GoPointer(), SourceTagVar) | |
| 310 | - | ||
| 311 | 303 | return cret | |
| 312 | 304 | } | |
| 313 | 305 | ||
| @@ -325,7 +317,6 @@ func (x *ContentSerializer) LegacyPropagateError() (bool, error) { | |||
| 325 | 317 | var cerr *glib.Error | |
| 326 | 318 | ||
| 327 | 319 | cret := gio.XGAsyncResultLegacyPropagateError(x.GoPointer()) | |
| 328 | - | ||
| 329 | 320 | if cerr == nil { | |
| 330 | 321 | return cret, nil | |
| 331 | 322 | } | |
M v4/gdk/gdkcursor.go +0 -3
| @@ -235,7 +235,6 @@ var xCursorGetHotspotX func(uintptr) int | |||
| 235 | 235 | func (x *Cursor) GetHotspotX() int { | |
| 236 | 236 | ||
| 237 | 237 | cret := xCursorGetHotspotX(x.GoPointer()) | |
| 238 | - | ||
| 239 | 238 | return cret | |
| 240 | 239 | } | |
| 241 | 240 | ||
| @@ -251,7 +250,6 @@ var xCursorGetHotspotY func(uintptr) int | |||
| 251 | 250 | func (x *Cursor) GetHotspotY() int { | |
| 252 | 251 | ||
| 253 | 252 | cret := xCursorGetHotspotY(x.GoPointer()) | |
| 254 | - | ||
| 255 | 253 | return cret | |
| 256 | 254 | } | |
| 257 | 255 | ||
| @@ -263,7 +261,6 @@ var xCursorGetName func(uintptr) string | |||
| 263 | 261 | func (x *Cursor) GetName() string { | |
| 264 | 262 | ||
| 265 | 263 | cret := xCursorGetName(x.GoPointer()) | |
| 266 | - | ||
| 267 | 264 | return cret | |
| 268 | 265 | } | |
| 269 | 266 | ||
M v4/gdk/gdkdevice.go +0 -15
| @@ -95,7 +95,6 @@ var xDeviceGetActiveLayoutIndex func(uintptr) int | |||
| 95 | 95 | func (x *Device) GetActiveLayoutIndex() int { | |
| 96 | 96 | ||
| 97 | 97 | cret := xDeviceGetActiveLayoutIndex(x.GoPointer()) | |
| 98 | - | ||
| 99 | 98 | return cret | |
| 100 | 99 | } | |
| 101 | 100 | ||
| @@ -107,7 +106,6 @@ var xDeviceGetCapsLockState func(uintptr) bool | |||
| 107 | 106 | func (x *Device) GetCapsLockState() bool { | |
| 108 | 107 | ||
| 109 | 108 | cret := xDeviceGetCapsLockState(x.GoPointer()) | |
| 110 | - | ||
| 111 | 109 | return cret | |
| 112 | 110 | } | |
| 113 | 111 | ||
| @@ -139,7 +137,6 @@ var xDeviceGetDirection func(uintptr) pango.Direction | |||
| 139 | 137 | func (x *Device) GetDirection() pango.Direction { | |
| 140 | 138 | ||
| 141 | 139 | cret := xDeviceGetDirection(x.GoPointer()) | |
| 142 | - | ||
| 143 | 140 | return cret | |
| 144 | 141 | } | |
| 145 | 142 | ||
| @@ -169,7 +166,6 @@ var xDeviceGetHasCursor func(uintptr) bool | |||
| 169 | 166 | func (x *Device) GetHasCursor() bool { | |
| 170 | 167 | ||
| 171 | 168 | cret := xDeviceGetHasCursor(x.GoPointer()) | |
| 172 | - | ||
| 173 | 169 | return cret | |
| 174 | 170 | } | |
| 175 | 171 | ||
| @@ -181,7 +177,6 @@ var xDeviceGetLayoutNames func(uintptr) []string | |||
| 181 | 177 | func (x *Device) GetLayoutNames() []string { | |
| 182 | 178 | ||
| 183 | 179 | cret := xDeviceGetLayoutNames(x.GoPointer()) | |
| 184 | - | ||
| 185 | 180 | return cret | |
| 186 | 181 | } | |
| 187 | 182 | ||
| @@ -193,7 +188,6 @@ var xDeviceGetModifierState func(uintptr) ModifierType | |||
| 193 | 188 | func (x *Device) GetModifierState() ModifierType { | |
| 194 | 189 | ||
| 195 | 190 | cret := xDeviceGetModifierState(x.GoPointer()) | |
| 196 | - | ||
| 197 | 191 | return cret | |
| 198 | 192 | } | |
| 199 | 193 | ||
| @@ -203,7 +197,6 @@ var xDeviceGetName func(uintptr) string | |||
| 203 | 197 | func (x *Device) GetName() string { | |
| 204 | 198 | ||
| 205 | 199 | cret := xDeviceGetName(x.GoPointer()) | |
| 206 | - | ||
| 207 | 200 | return cret | |
| 208 | 201 | } | |
| 209 | 202 | ||
| @@ -215,7 +208,6 @@ var xDeviceGetNumLockState func(uintptr) bool | |||
| 215 | 208 | func (x *Device) GetNumLockState() bool { | |
| 216 | 209 | ||
| 217 | 210 | cret := xDeviceGetNumLockState(x.GoPointer()) | |
| 218 | - | ||
| 219 | 211 | return cret | |
| 220 | 212 | } | |
| 221 | 213 | ||
| @@ -225,7 +217,6 @@ var xDeviceGetNumTouches func(uintptr) uint | |||
| 225 | 217 | func (x *Device) GetNumTouches() uint { | |
| 226 | 218 | ||
| 227 | 219 | cret := xDeviceGetNumTouches(x.GoPointer()) | |
| 228 | - | ||
| 229 | 220 | return cret | |
| 230 | 221 | } | |
| 231 | 222 | ||
| @@ -238,7 +229,6 @@ var xDeviceGetProductId func(uintptr) string | |||
| 238 | 229 | func (x *Device) GetProductId() string { | |
| 239 | 230 | ||
| 240 | 231 | cret := xDeviceGetProductId(x.GoPointer()) | |
| 241 | - | ||
| 242 | 232 | return cret | |
| 243 | 233 | } | |
| 244 | 234 | ||
| @@ -250,7 +240,6 @@ var xDeviceGetScrollLockState func(uintptr) bool | |||
| 250 | 240 | func (x *Device) GetScrollLockState() bool { | |
| 251 | 241 | ||
| 252 | 242 | cret := xDeviceGetScrollLockState(x.GoPointer()) | |
| 253 | - | ||
| 254 | 243 | return cret | |
| 255 | 244 | } | |
| 256 | 245 | ||
| @@ -277,7 +266,6 @@ var xDeviceGetSource func(uintptr) InputSource | |||
| 277 | 266 | func (x *Device) GetSource() InputSource { | |
| 278 | 267 | ||
| 279 | 268 | cret := xDeviceGetSource(x.GoPointer()) | |
| 280 | - | ||
| 281 | 269 | return cret | |
| 282 | 270 | } | |
| 283 | 271 | ||
| @@ -313,7 +301,6 @@ var xDeviceGetTimestamp func(uintptr) uint32 | |||
| 313 | 301 | func (x *Device) GetTimestamp() uint32 { | |
| 314 | 302 | ||
| 315 | 303 | cret := xDeviceGetTimestamp(x.GoPointer()) | |
| 316 | - | ||
| 317 | 304 | return cret | |
| 318 | 305 | } | |
| 319 | 306 | ||
| @@ -351,7 +338,6 @@ var xDeviceGetVendorId func(uintptr) string | |||
| 351 | 338 | func (x *Device) GetVendorId() string { | |
| 352 | 339 | ||
| 353 | 340 | cret := xDeviceGetVendorId(x.GoPointer()) | |
| 354 | - | ||
| 355 | 341 | return cret | |
| 356 | 342 | } | |
| 357 | 343 | ||
| @@ -364,7 +350,6 @@ var xDeviceHasBidiLayouts func(uintptr) bool | |||
| 364 | 350 | func (x *Device) HasBidiLayouts() bool { | |
| 365 | 351 | ||
| 366 | 352 | cret := xDeviceHasBidiLayouts(x.GoPointer()) | |
| 367 | - | ||
| 368 | 353 | return cret | |
| 369 | 354 | } | |
| 370 | 355 | ||
M v4/gdk/gdkdevicepad.go +0 -4
| @@ -70,7 +70,6 @@ func (x *DevicePadBase) SetGoPointer(ptr uintptr) { | |||
| 70 | 70 | func (x *DevicePadBase) GetFeatureGroup(FeatureVar DevicePadFeature, FeatureIdxVar int) int { | |
| 71 | 71 | ||
| 72 | 72 | cret := XGdkDevicePadGetFeatureGroup(x.GoPointer(), FeatureVar, FeatureIdxVar) | |
| 73 | - | ||
| 74 | 73 | return cret | |
| 75 | 74 | } | |
| 76 | 75 | ||
| @@ -78,7 +77,6 @@ func (x *DevicePadBase) GetFeatureGroup(FeatureVar DevicePadFeature, FeatureIdxV | |||
| 78 | 77 | func (x *DevicePadBase) GetGroupNModes(GroupIdxVar int) int { | |
| 79 | 78 | ||
| 80 | 79 | cret := XGdkDevicePadGetGroupNModes(x.GoPointer(), GroupIdxVar) | |
| 81 | - | ||
| 82 | 80 | return cret | |
| 83 | 81 | } | |
| 84 | 82 | ||
| @@ -86,7 +84,6 @@ func (x *DevicePadBase) GetGroupNModes(GroupIdxVar int) int { | |||
| 86 | 84 | func (x *DevicePadBase) GetNFeatures(FeatureVar DevicePadFeature) int { | |
| 87 | 85 | ||
| 88 | 86 | cret := XGdkDevicePadGetNFeatures(x.GoPointer(), FeatureVar) | |
| 89 | - | ||
| 90 | 87 | return cret | |
| 91 | 88 | } | |
| 92 | 89 | ||
| @@ -98,7 +95,6 @@ func (x *DevicePadBase) GetNFeatures(FeatureVar DevicePadFeature) int { | |||
| 98 | 95 | func (x *DevicePadBase) GetNGroups() int { | |
| 99 | 96 | ||
| 100 | 97 | cret := XGdkDevicePadGetNGroups(x.GoPointer()) | |
| 101 | - | ||
| 102 | 98 | return cret | |
| 103 | 99 | } | |
| 104 | 100 | ||
M v4/gdk/gdkdevicetool.go +0 -4
| @@ -61,7 +61,6 @@ var xDeviceToolGetAxes func(uintptr) AxisFlags | |||
| 61 | 61 | func (x *DeviceTool) GetAxes() AxisFlags { | |
| 62 | 62 | ||
| 63 | 63 | cret := xDeviceToolGetAxes(x.GoPointer()) | |
| 64 | - | ||
| 65 | 64 | return cret | |
| 66 | 65 | } | |
| 67 | 66 | ||
| @@ -81,7 +80,6 @@ var xDeviceToolGetHardwareId func(uintptr) uint64 | |||
| 81 | 80 | func (x *DeviceTool) GetHardwareId() uint64 { | |
| 82 | 81 | ||
| 83 | 82 | cret := xDeviceToolGetHardwareId(x.GoPointer()) | |
| 84 | - | ||
| 85 | 83 | return cret | |
| 86 | 84 | } | |
| 87 | 85 | ||
| @@ -94,7 +92,6 @@ var xDeviceToolGetSerial func(uintptr) uint64 | |||
| 94 | 92 | func (x *DeviceTool) GetSerial() uint64 { | |
| 95 | 93 | ||
| 96 | 94 | cret := xDeviceToolGetSerial(x.GoPointer()) | |
| 97 | - | ||
| 98 | 95 | return cret | |
| 99 | 96 | } | |
| 100 | 97 | ||
| @@ -104,7 +101,6 @@ var xDeviceToolGetToolType func(uintptr) DeviceToolType | |||
| 104 | 101 | func (x *DeviceTool) GetToolType() DeviceToolType { | |
| 105 | 102 | ||
| 106 | 103 | cret := xDeviceToolGetToolType(x.GoPointer()) | |
| 107 | - | ||
| 108 | 104 | return cret | |
| 109 | 105 | } | |
| 110 | 106 | ||
M v4/gdk/gdkdisplay.go +2 -19
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gdk | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "unsafe" | |
| 7 | 6 | ||
| 8 | 7 | "github.com/jwijenbergh/purego" | |
| @@ -98,7 +97,6 @@ var xDisplayDeviceIsGrabbed func(uintptr, uintptr) bool | |||
| 98 | 97 | func (x *Display) DeviceIsGrabbed(DeviceVar *Device) bool { | |
| 99 | 98 | ||
| 100 | 99 | cret := xDisplayDeviceIsGrabbed(x.GoPointer(), DeviceVar.GoPointer()) | |
| 101 | - | ||
| 102 | 100 | return cret | |
| 103 | 101 | } | |
| 104 | 102 | ||
| @@ -190,7 +188,6 @@ var xDisplayGetDmabufFormats func(uintptr) *DmabufFormats | |||
| 190 | 188 | func (x *Display) GetDmabufFormats() *DmabufFormats { | |
| 191 | 189 | ||
| 192 | 190 | cret := xDisplayGetDmabufFormats(x.GoPointer()) | |
| 193 | - | ||
| 194 | 191 | return cret | |
| 195 | 192 | } | |
| 196 | 193 | ||
| @@ -241,7 +238,6 @@ var xDisplayGetName func(uintptr) string | |||
| 241 | 238 | func (x *Display) GetName() string { | |
| 242 | 239 | ||
| 243 | 240 | cret := xDisplayGetName(x.GoPointer()) | |
| 244 | - | ||
| 245 | 241 | return cret | |
| 246 | 242 | } | |
| 247 | 243 | ||
| @@ -272,7 +268,6 @@ var xDisplayGetSetting func(uintptr, string, *gobject.Value) bool | |||
| 272 | 268 | func (x *Display) GetSetting(NameVar string, ValueVar *gobject.Value) bool { | |
| 273 | 269 | ||
| 274 | 270 | cret := xDisplayGetSetting(x.GoPointer(), NameVar, ValueVar) | |
| 275 | - | ||
| 276 | 271 | return cret | |
| 277 | 272 | } | |
| 278 | 273 | ||
| @@ -283,7 +278,6 @@ var xDisplayGetStartupNotificationId func(uintptr) string | |||
| 283 | 278 | func (x *Display) GetStartupNotificationId() string { | |
| 284 | 279 | ||
| 285 | 280 | cret := xDisplayGetStartupNotificationId(x.GoPointer()) | |
| 286 | - | ||
| 287 | 281 | return cret | |
| 288 | 282 | } | |
| 289 | 283 | ||
| @@ -293,7 +287,6 @@ var xDisplayIsClosed func(uintptr) bool | |||
| 293 | 287 | func (x *Display) IsClosed() bool { | |
| 294 | 288 | ||
| 295 | 289 | cret := xDisplayIsClosed(x.GoPointer()) | |
| 296 | - | ||
| 297 | 290 | return cret | |
| 298 | 291 | } | |
| 299 | 292 | ||
| @@ -312,7 +305,6 @@ var xDisplayIsComposited func(uintptr) bool | |||
| 312 | 305 | func (x *Display) IsComposited() bool { | |
| 313 | 306 | ||
| 314 | 307 | cret := xDisplayIsComposited(x.GoPointer()) | |
| 315 | - | ||
| 316 | 308 | return cret | |
| 317 | 309 | } | |
| 318 | 310 | ||
| @@ -332,7 +324,6 @@ var xDisplayIsRgba func(uintptr) bool | |||
| 332 | 324 | func (x *Display) IsRgba() bool { | |
| 333 | 325 | ||
| 334 | 326 | cret := xDisplayIsRgba(x.GoPointer()) | |
| 335 | - | ||
| 336 | 327 | return cret | |
| 337 | 328 | } | |
| 338 | 329 | ||
| @@ -342,7 +333,6 @@ var xDisplayListSeats func(uintptr) *glib.List | |||
| 342 | 333 | func (x *Display) ListSeats() *glib.List { | |
| 343 | 334 | ||
| 344 | 335 | cret := xDisplayListSeats(x.GoPointer()) | |
| 345 | - | ||
| 346 | 336 | return cret | |
| 347 | 337 | } | |
| 348 | 338 | ||
| @@ -360,7 +350,6 @@ var xDisplayMapKeycode func(uintptr, uint, *uintptr, *[]uint, *int) bool | |||
| 360 | 350 | func (x *Display) MapKeycode(KeycodeVar uint, KeysVar *uintptr, KeyvalsVar *[]uint, NEntriesVar *int) bool { | |
| 361 | 351 | ||
| 362 | 352 | cret := xDisplayMapKeycode(x.GoPointer(), KeycodeVar, KeysVar, KeyvalsVar, NEntriesVar) | |
| 363 | - | ||
| 364 | 353 | return cret | |
| 365 | 354 | } | |
| 366 | 355 | ||
| @@ -384,7 +373,6 @@ var xDisplayMapKeyval func(uintptr, uint, *uintptr, *int) bool | |||
| 384 | 373 | func (x *Display) MapKeyval(KeyvalVar uint, KeysVar *uintptr, NKeysVar *int) bool { | |
| 385 | 374 | ||
| 386 | 375 | cret := xDisplayMapKeyval(x.GoPointer(), KeyvalVar, KeysVar, NKeysVar) | |
| 387 | - | ||
| 388 | 376 | return cret | |
| 389 | 377 | } | |
| 390 | 378 | ||
| @@ -423,7 +411,6 @@ func (x *Display) PrepareGl() (bool, error) { | |||
| 423 | 411 | var cerr *glib.Error | |
| 424 | 412 | ||
| 425 | 413 | cret := xDisplayPrepareGl(x.GoPointer()) | |
| 426 | - | ||
| 427 | 414 | if cerr == nil { | |
| 428 | 415 | return cret, nil | |
| 429 | 416 | } | |
| @@ -451,7 +438,6 @@ var xDisplaySupportsInputShapes func(uintptr) bool | |||
| 451 | 438 | func (x *Display) SupportsInputShapes() bool { | |
| 452 | 439 | ||
| 453 | 440 | cret := xDisplaySupportsInputShapes(x.GoPointer()) | |
| 454 | - | ||
| 455 | 441 | return cret | |
| 456 | 442 | } | |
| 457 | 443 | ||
| @@ -464,7 +450,6 @@ var xDisplaySupportsShadowWidth func(uintptr) bool | |||
| 464 | 450 | func (x *Display) SupportsShadowWidth() bool { | |
| 465 | 451 | ||
| 466 | 452 | cret := xDisplaySupportsShadowWidth(x.GoPointer()) | |
| 467 | - | ||
| 468 | 453 | return cret | |
| 469 | 454 | } | |
| 470 | 455 | ||
| @@ -510,7 +495,6 @@ var xDisplayTranslateKey func(uintptr, uint, ModifierType, int, *uint, *int, *in | |||
| 510 | 495 | func (x *Display) TranslateKey(KeycodeVar uint, StateVar ModifierType, GroupVar int, KeyvalVar *uint, EffectiveGroupVar *int, LevelVar *int, ConsumedVar *ModifierType) bool { | |
| 511 | 496 | ||
| 512 | 497 | cret := xDisplayTranslateKey(x.GoPointer(), KeycodeVar, StateVar, GroupVar, KeyvalVar, EffectiveGroupVar, LevelVar, ConsumedVar) | |
| 513 | - | ||
| 514 | 498 | return cret | |
| 515 | 499 | } | |
| 516 | 500 | ||
| @@ -714,12 +698,11 @@ var xDisplayOpen func(uintptr) uintptr | |||
| 714 | 698 | func DisplayOpen(DisplayNameVar *string) *Display { | |
| 715 | 699 | var cls *Display | |
| 716 | 700 | ||
| 717 | - | DisplayNameVarPtr, DisplayNameVarBytes := core.NullableStringToPtr(DisplayNameVar) | |
| 701 | + | DisplayNameVarPtr := core.GStrdupNullable(DisplayNameVar) | |
| 702 | + | defer core.GFreeNullable(DisplayNameVarPtr) | |
| 718 | 703 | ||
| 719 | 704 | cret := xDisplayOpen(DisplayNameVarPtr) | |
| 720 | 705 | ||
| 721 | - | runtime.KeepAlive(DisplayNameVarBytes) | |
| 722 | - | ||
| 723 | 706 | if cret == 0 { | |
| 724 | 707 | return nil | |
| 725 | 708 | } | |
M v4/gdk/gdkdisplaymanager.go +2 -5
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gdk | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "unsafe" | |
| 7 | 6 | ||
| 8 | 7 | "github.com/jwijenbergh/purego" | |
| @@ -141,7 +140,6 @@ var xDisplayManagerListDisplays func(uintptr) *glib.SList | |||
| 141 | 140 | func (x *DisplayManager) ListDisplays() *glib.SList { | |
| 142 | 141 | ||
| 143 | 142 | cret := xDisplayManagerListDisplays(x.GoPointer()) | |
| 144 | - | ||
| 145 | 143 | return cret | |
| 146 | 144 | } | |
| 147 | 145 | ||
| @@ -151,12 +149,11 @@ var xDisplayManagerOpenDisplay func(uintptr, uintptr) uintptr | |||
| 151 | 149 | func (x *DisplayManager) OpenDisplay(NameVar *string) *Display { | |
| 152 | 150 | var cls *Display | |
| 153 | 151 | ||
| 154 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 152 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 153 | + | defer core.GFreeNullable(NameVarPtr) | |
| 155 | 154 | ||
| 156 | 155 | cret := xDisplayManagerOpenDisplay(x.GoPointer(), NameVarPtr) | |
| 157 | 156 | ||
| 158 | - | runtime.KeepAlive(NameVarBytes) | |
| 159 | - | ||
| 160 | 157 | if cret == 0 { | |
| 161 | 158 | return nil | |
| 162 | 159 | } | |
M v4/gdk/gdkdmabuftexture.go +0 -9
| @@ -26,7 +26,6 @@ var xDmabufErrorQuark func() glib.Quark | |||
| 26 | 26 | func DmabufErrorQuark() glib.Quark { | |
| 27 | 27 | ||
| 28 | 28 | cret := xDmabufErrorQuark() | |
| 29 | - | ||
| 30 | 29 | return cret | |
| 31 | 30 | } | |
| 32 | 31 | ||
| @@ -106,7 +105,6 @@ func (x *DmabufTexture) GetCurrentImage() *PaintableBase { | |||
| 106 | 105 | func (x *DmabufTexture) GetFlags() PaintableFlags { | |
| 107 | 106 | ||
| 108 | 107 | cret := XGdkPaintableGetFlags(x.GoPointer()) | |
| 109 | - | ||
| 110 | 108 | return cret | |
| 111 | 109 | } | |
| 112 | 110 | ||
| @@ -130,7 +128,6 @@ func (x *DmabufTexture) GetFlags() PaintableFlags { | |||
| 130 | 128 | func (x *DmabufTexture) GetIntrinsicAspectRatio() float64 { | |
| 131 | 129 | ||
| 132 | 130 | cret := XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 133 | - | ||
| 134 | 131 | return cret | |
| 135 | 132 | } | |
| 136 | 133 | ||
| @@ -147,7 +144,6 @@ func (x *DmabufTexture) GetIntrinsicAspectRatio() float64 { | |||
| 147 | 144 | func (x *DmabufTexture) GetIntrinsicHeight() int { | |
| 148 | 145 | ||
| 149 | 146 | cret := XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 150 | - | ||
| 151 | 147 | return cret | |
| 152 | 148 | } | |
| 153 | 149 | ||
| @@ -164,7 +160,6 @@ func (x *DmabufTexture) GetIntrinsicHeight() int { | |||
| 164 | 160 | func (x *DmabufTexture) GetIntrinsicWidth() int { | |
| 165 | 161 | ||
| 166 | 162 | cret := XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 167 | - | ||
| 168 | 163 | return cret | |
| 169 | 164 | } | |
| 170 | 165 | ||
| @@ -215,7 +210,6 @@ func (x *DmabufTexture) Snapshot(SnapshotVar *Snapshot, WidthVar float64, Height | |||
| 215 | 210 | func (x *DmabufTexture) Equal(Icon2Var gio.Icon) bool { | |
| 216 | 211 | ||
| 217 | 212 | cret := gio.XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 218 | - | ||
| 219 | 213 | return cret | |
| 220 | 214 | } | |
| 221 | 215 | ||
| @@ -223,7 +217,6 @@ func (x *DmabufTexture) Equal(Icon2Var gio.Icon) bool { | |||
| 223 | 217 | func (x *DmabufTexture) Hash() uint { | |
| 224 | 218 | ||
| 225 | 219 | cret := gio.XGIconHash(x.GoPointer()) | |
| 226 | - | ||
| 227 | 220 | return cret | |
| 228 | 221 | } | |
| 229 | 222 | ||
| @@ -235,7 +228,6 @@ func (x *DmabufTexture) Hash() uint { | |||
| 235 | 228 | func (x *DmabufTexture) Serialize() *glib.Variant { | |
| 236 | 229 | ||
| 237 | 230 | cret := gio.XGIconSerialize(x.GoPointer()) | |
| 238 | - | ||
| 239 | 231 | return cret | |
| 240 | 232 | } | |
| 241 | 233 | ||
| @@ -258,7 +250,6 @@ func (x *DmabufTexture) Serialize() *glib.Variant { | |||
| 258 | 250 | func (x *DmabufTexture) ToString() string { | |
| 259 | 251 | ||
| 260 | 252 | cret := gio.XGIconToString(x.GoPointer()) | |
| 261 | - | ||
| 262 | 253 | return cret | |
| 263 | 254 | } | |
| 264 | 255 | ||
M v4/gdk/gdkdmabuftexturebuilder.go +0 -11
| @@ -166,7 +166,6 @@ var xDmabufTextureBuilderGetColorState func(uintptr) *ColorState | |||
| 166 | 166 | func (x *DmabufTextureBuilder) GetColorState() *ColorState { | |
| 167 | 167 | ||
| 168 | 168 | cret := xDmabufTextureBuilderGetColorState(x.GoPointer()) | |
| 169 | - | ||
| 170 | 169 | return cret | |
| 171 | 170 | } | |
| 172 | 171 | ||
| @@ -194,7 +193,6 @@ var xDmabufTextureBuilderGetFd func(uintptr, uint) int | |||
| 194 | 193 | func (x *DmabufTextureBuilder) GetFd(PlaneVar uint) int { | |
| 195 | 194 | ||
| 196 | 195 | cret := xDmabufTextureBuilderGetFd(x.GoPointer(), PlaneVar) | |
| 197 | - | ||
| 198 | 196 | return cret | |
| 199 | 197 | } | |
| 200 | 198 | ||
| @@ -207,7 +205,6 @@ var xDmabufTextureBuilderGetFourcc func(uintptr) uint32 | |||
| 207 | 205 | func (x *DmabufTextureBuilder) GetFourcc() uint32 { | |
| 208 | 206 | ||
| 209 | 207 | cret := xDmabufTextureBuilderGetFourcc(x.GoPointer()) | |
| 210 | - | ||
| 211 | 208 | return cret | |
| 212 | 209 | } | |
| 213 | 210 | ||
| @@ -218,7 +215,6 @@ var xDmabufTextureBuilderGetHeight func(uintptr) uint | |||
| 218 | 215 | func (x *DmabufTextureBuilder) GetHeight() uint { | |
| 219 | 216 | ||
| 220 | 217 | cret := xDmabufTextureBuilderGetHeight(x.GoPointer()) | |
| 221 | - | ||
| 222 | 218 | return cret | |
| 223 | 219 | } | |
| 224 | 220 | ||
| @@ -228,7 +224,6 @@ var xDmabufTextureBuilderGetModifier func(uintptr) uint64 | |||
| 228 | 224 | func (x *DmabufTextureBuilder) GetModifier() uint64 { | |
| 229 | 225 | ||
| 230 | 226 | cret := xDmabufTextureBuilderGetModifier(x.GoPointer()) | |
| 231 | - | ||
| 232 | 227 | return cret | |
| 233 | 228 | } | |
| 234 | 229 | ||
| @@ -238,7 +233,6 @@ var xDmabufTextureBuilderGetNPlanes func(uintptr) uint | |||
| 238 | 233 | func (x *DmabufTextureBuilder) GetNPlanes() uint { | |
| 239 | 234 | ||
| 240 | 235 | cret := xDmabufTextureBuilderGetNPlanes(x.GoPointer()) | |
| 241 | - | ||
| 242 | 236 | return cret | |
| 243 | 237 | } | |
| 244 | 238 | ||
| @@ -248,7 +242,6 @@ var xDmabufTextureBuilderGetOffset func(uintptr, uint) uint | |||
| 248 | 242 | func (x *DmabufTextureBuilder) GetOffset(PlaneVar uint) uint { | |
| 249 | 243 | ||
| 250 | 244 | cret := xDmabufTextureBuilderGetOffset(x.GoPointer(), PlaneVar) | |
| 251 | - | ||
| 252 | 245 | return cret | |
| 253 | 246 | } | |
| 254 | 247 | ||
| @@ -258,7 +251,6 @@ var xDmabufTextureBuilderGetPremultiplied func(uintptr) bool | |||
| 258 | 251 | func (x *DmabufTextureBuilder) GetPremultiplied() bool { | |
| 259 | 252 | ||
| 260 | 253 | cret := xDmabufTextureBuilderGetPremultiplied(x.GoPointer()) | |
| 261 | - | ||
| 262 | 254 | return cret | |
| 263 | 255 | } | |
| 264 | 256 | ||
| @@ -268,7 +260,6 @@ var xDmabufTextureBuilderGetStride func(uintptr, uint) uint | |||
| 268 | 260 | func (x *DmabufTextureBuilder) GetStride(PlaneVar uint) uint { | |
| 269 | 261 | ||
| 270 | 262 | cret := xDmabufTextureBuilderGetStride(x.GoPointer(), PlaneVar) | |
| 271 | - | ||
| 272 | 263 | return cret | |
| 273 | 264 | } | |
| 274 | 265 | ||
| @@ -279,7 +270,6 @@ var xDmabufTextureBuilderGetUpdateRegion func(uintptr) *cairo.Region | |||
| 279 | 270 | func (x *DmabufTextureBuilder) GetUpdateRegion() *cairo.Region { | |
| 280 | 271 | ||
| 281 | 272 | cret := xDmabufTextureBuilderGetUpdateRegion(x.GoPointer()) | |
| 282 | - | ||
| 283 | 273 | return cret | |
| 284 | 274 | } | |
| 285 | 275 | ||
| @@ -308,7 +298,6 @@ var xDmabufTextureBuilderGetWidth func(uintptr) uint | |||
| 308 | 298 | func (x *DmabufTextureBuilder) GetWidth() uint { | |
| 309 | 299 | ||
| 310 | 300 | cret := xDmabufTextureBuilderGetWidth(x.GoPointer()) | |
| 311 | - | ||
| 312 | 301 | return cret | |
| 313 | 302 | } | |
| 314 | 303 | ||
M v4/gdk/gdkdrag.go +0 -4
| @@ -40,7 +40,6 @@ var xDragActionIsUnique func(DragAction) bool | |||
| 40 | 40 | func DragActionIsUnique(ActionVar DragAction) bool { | |
| 41 | 41 | ||
| 42 | 42 | cret := xDragActionIsUnique(ActionVar) | |
| 43 | - | ||
| 44 | 43 | return cret | |
| 45 | 44 | } | |
| 46 | 45 | ||
| @@ -95,7 +94,6 @@ var xDragGetActions func(uintptr) DragAction | |||
| 95 | 94 | func (x *Drag) GetActions() DragAction { | |
| 96 | 95 | ||
| 97 | 96 | cret := xDragGetActions(x.GoPointer()) | |
| 98 | - | ||
| 99 | 97 | return cret | |
| 100 | 98 | } | |
| 101 | 99 | ||
| @@ -179,7 +177,6 @@ var xDragGetFormats func(uintptr) *ContentFormats | |||
| 179 | 177 | func (x *Drag) GetFormats() *ContentFormats { | |
| 180 | 178 | ||
| 181 | 179 | cret := xDragGetFormats(x.GoPointer()) | |
| 182 | - | ||
| 183 | 180 | return cret | |
| 184 | 181 | } | |
| 185 | 182 | ||
| @@ -189,7 +186,6 @@ var xDragGetSelectedAction func(uintptr) DragAction | |||
| 189 | 186 | func (x *Drag) GetSelectedAction() DragAction { | |
| 190 | 187 | ||
| 191 | 188 | cret := xDragGetSelectedAction(x.GoPointer()) | |
| 192 | - | ||
| 193 | 189 | return cret | |
| 194 | 190 | } | |
| 195 | 191 | ||
M v4/gdk/gdkdragsurface.go +0 -1
| @@ -51,7 +51,6 @@ func (x *DragSurfaceBase) SetGoPointer(ptr uintptr) { | |||
| 51 | 51 | func (x *DragSurfaceBase) Present(WidthVar int, HeightVar int) bool { | |
| 52 | 52 | ||
| 53 | 53 | cret := XGdkDragSurfacePresent(x.GoPointer(), WidthVar, HeightVar) | |
| 54 | - | ||
| 55 | 54 | return cret | |
| 56 | 55 | } | |
| 57 | 56 | ||
M v4/gdk/gdkdrawcontext.go +0 -2
| @@ -112,7 +112,6 @@ var xDrawContextGetFrameRegion func(uintptr) *cairo.Region | |||
| 112 | 112 | func (x *DrawContext) GetFrameRegion() *cairo.Region { | |
| 113 | 113 | ||
| 114 | 114 | cret := xDrawContextGetFrameRegion(x.GoPointer()) | |
| 115 | - | ||
| 116 | 115 | return cret | |
| 117 | 116 | } | |
| 118 | 117 | ||
| @@ -143,7 +142,6 @@ var xDrawContextIsInFrame func(uintptr) bool | |||
| 143 | 142 | func (x *DrawContext) IsInFrame() bool { | |
| 144 | 143 | ||
| 145 | 144 | cret := xDrawContextIsInFrame(x.GoPointer()) | |
| 146 | - | ||
| 147 | 145 | return cret | |
| 148 | 146 | } | |
| 149 | 147 | ||
M v4/gdk/gdkdrop.go +0 -3
| @@ -73,7 +73,6 @@ var xDropGetActions func(uintptr) DragAction | |||
| 73 | 73 | func (x *Drop) GetActions() DragAction { | |
| 74 | 74 | ||
| 75 | 75 | cret := xDropGetActions(x.GoPointer()) | |
| 76 | - | ||
| 77 | 76 | return cret | |
| 78 | 77 | } | |
| 79 | 78 | ||
| @@ -138,7 +137,6 @@ var xDropGetFormats func(uintptr) *ContentFormats | |||
| 138 | 137 | func (x *Drop) GetFormats() *ContentFormats { | |
| 139 | 138 | ||
| 140 | 139 | cret := xDropGetFormats(x.GoPointer()) | |
| 141 | - | ||
| 142 | 140 | return cret | |
| 143 | 141 | } | |
| 144 | 142 | ||
| @@ -250,7 +248,6 @@ func (x *Drop) ReadValueFinish(ResultVar gio.AsyncResult) (*gobject.Value, error | |||
| 250 | 248 | var cerr *glib.Error | |
| 251 | 249 | ||
| 252 | 250 | cret := xDropReadValueFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 253 | - | ||
| 254 | 251 | if cerr == nil { | |
| 255 | 252 | return cret, nil | |
| 256 | 253 | } | |
M v4/gdk/gdkevents.go +0 -40
| @@ -332,7 +332,6 @@ var xEventsGetAngle func(uintptr, uintptr, *float64) bool | |||
| 332 | 332 | func EventsGetAngle(Event1Var *Event, Event2Var *Event, AngleVar *float64) bool { | |
| 333 | 333 | ||
| 334 | 334 | cret := xEventsGetAngle(Event1Var.GoPointer(), Event2Var.GoPointer(), AngleVar) | |
| 335 | - | ||
| 336 | 335 | return cret | |
| 337 | 336 | } | |
| 338 | 337 | ||
| @@ -345,7 +344,6 @@ var xEventsGetCenter func(uintptr, uintptr, *float64, *float64) bool | |||
| 345 | 344 | func EventsGetCenter(Event1Var *Event, Event2Var *Event, XVar *float64, YVar *float64) bool { | |
| 346 | 345 | ||
| 347 | 346 | cret := xEventsGetCenter(Event1Var.GoPointer(), Event2Var.GoPointer(), XVar, YVar) | |
| 348 | - | ||
| 349 | 347 | return cret | |
| 350 | 348 | } | |
| 351 | 349 | ||
| @@ -358,7 +356,6 @@ var xEventsGetDistance func(uintptr, uintptr, *float64) bool | |||
| 358 | 356 | func EventsGetDistance(Event1Var *Event, Event2Var *Event, DistanceVar *float64) bool { | |
| 359 | 357 | ||
| 360 | 358 | cret := xEventsGetDistance(Event1Var.GoPointer(), Event2Var.GoPointer(), DistanceVar) | |
| 361 | - | ||
| 362 | 359 | return cret | |
| 363 | 360 | } | |
| 364 | 361 | ||
| @@ -385,7 +382,6 @@ var xButtonEventGetButton func(uintptr) uint | |||
| 385 | 382 | func (x *ButtonEvent) GetButton() uint { | |
| 386 | 383 | ||
| 387 | 384 | cret := xButtonEventGetButton(x.GoPointer()) | |
| 388 | - | ||
| 389 | 385 | return cret | |
| 390 | 386 | } | |
| 391 | 387 | ||
| @@ -423,7 +419,6 @@ var xCrossingEventGetDetail func(uintptr) NotifyType | |||
| 423 | 419 | func (x *CrossingEvent) GetDetail() NotifyType { | |
| 424 | 420 | ||
| 425 | 421 | cret := xCrossingEventGetDetail(x.GoPointer()) | |
| 426 | - | ||
| 427 | 422 | return cret | |
| 428 | 423 | } | |
| 429 | 424 | ||
| @@ -433,7 +428,6 @@ var xCrossingEventGetFocus func(uintptr) bool | |||
| 433 | 428 | func (x *CrossingEvent) GetFocus() bool { | |
| 434 | 429 | ||
| 435 | 430 | cret := xCrossingEventGetFocus(x.GoPointer()) | |
| 436 | - | ||
| 437 | 431 | return cret | |
| 438 | 432 | } | |
| 439 | 433 | ||
| @@ -443,7 +437,6 @@ var xCrossingEventGetMode func(uintptr) CrossingMode | |||
| 443 | 437 | func (x *CrossingEvent) GetMode() CrossingMode { | |
| 444 | 438 | ||
| 445 | 439 | cret := xCrossingEventGetMode(x.GoPointer()) | |
| 446 | - | ||
| 447 | 440 | return cret | |
| 448 | 441 | } | |
| 449 | 442 | ||
| @@ -567,7 +560,6 @@ var xEventGetAngle func(uintptr, uintptr, *float64) bool | |||
| 567 | 560 | func (x *Event) GetAngle(Event2Var *Event, AngleVar *float64) bool { | |
| 568 | 561 | ||
| 569 | 562 | cret := xEventGetAngle(x.GoPointer(), Event2Var.GoPointer(), AngleVar) | |
| 570 | - | ||
| 571 | 563 | return cret | |
| 572 | 564 | } | |
| 573 | 565 | ||
| @@ -580,7 +572,6 @@ var xEventGetCenter func(uintptr, uintptr, *float64, *float64) bool | |||
| 580 | 572 | func (x *Event) GetCenter(Event2Var *Event, XVar *float64, YVar *float64) bool { | |
| 581 | 573 | ||
| 582 | 574 | cret := xEventGetCenter(x.GoPointer(), Event2Var.GoPointer(), XVar, YVar) | |
| 583 | - | ||
| 584 | 575 | return cret | |
| 585 | 576 | } | |
| 586 | 577 | ||
| @@ -593,7 +584,6 @@ var xEventGetDistance func(uintptr, uintptr, *float64) bool | |||
| 593 | 584 | func (x *Event) GetDistance(Event2Var *Event, DistanceVar *float64) bool { | |
| 594 | 585 | ||
| 595 | 586 | cret := xEventGetDistance(x.GoPointer(), Event2Var.GoPointer(), DistanceVar) | |
| 596 | - | ||
| 597 | 587 | return cret | |
| 598 | 588 | } | |
| 599 | 589 | ||
| @@ -606,7 +596,6 @@ var xEventGetAxes func(uintptr, *[]float64, *uint) bool | |||
| 606 | 596 | func (x *Event) GetAxes(AxesVar *[]float64, NAxesVar *uint) bool { | |
| 607 | 597 | ||
| 608 | 598 | cret := xEventGetAxes(x.GoPointer(), AxesVar, NAxesVar) | |
| 609 | - | ||
| 610 | 599 | return cret | |
| 611 | 600 | } | |
| 612 | 601 | ||
| @@ -620,7 +609,6 @@ var xEventGetAxis func(uintptr, AxisUse, *float64) bool | |||
| 620 | 609 | func (x *Event) GetAxis(AxisUseVar AxisUse, ValueVar *float64) bool { | |
| 621 | 610 | ||
| 622 | 611 | cret := xEventGetAxis(x.GoPointer(), AxisUseVar, ValueVar) | |
| 623 | - | ||
| 624 | 612 | return cret | |
| 625 | 613 | } | |
| 626 | 614 | ||
| @@ -693,7 +681,6 @@ var xEventGetEventSequence func(uintptr) *EventSequence | |||
| 693 | 681 | func (x *Event) GetEventSequence() *EventSequence { | |
| 694 | 682 | ||
| 695 | 683 | cret := xEventGetEventSequence(x.GoPointer()) | |
| 696 | - | ||
| 697 | 684 | return cret | |
| 698 | 685 | } | |
| 699 | 686 | ||
| @@ -703,7 +690,6 @@ var xEventGetEventType func(uintptr) EventType | |||
| 703 | 690 | func (x *Event) GetEventType() EventType { | |
| 704 | 691 | ||
| 705 | 692 | cret := xEventGetEventType(x.GoPointer()) | |
| 706 | - | ||
| 707 | 693 | return cret | |
| 708 | 694 | } | |
| 709 | 695 | ||
| @@ -721,7 +707,6 @@ var xEventGetHistory func(uintptr, *uint) uintptr | |||
| 721 | 707 | func (x *Event) GetHistory(OutNCoordsVar *uint) uintptr { | |
| 722 | 708 | ||
| 723 | 709 | cret := xEventGetHistory(x.GoPointer(), OutNCoordsVar) | |
| 724 | - | ||
| 725 | 710 | return cret | |
| 726 | 711 | } | |
| 727 | 712 | ||
| @@ -731,7 +716,6 @@ var xEventGetModifierState func(uintptr) ModifierType | |||
| 731 | 716 | func (x *Event) GetModifierState() ModifierType { | |
| 732 | 717 | ||
| 733 | 718 | cret := xEventGetModifierState(x.GoPointer()) | |
| 734 | - | ||
| 735 | 719 | return cret | |
| 736 | 720 | } | |
| 737 | 721 | ||
| @@ -743,7 +727,6 @@ var xEventGetPointerEmulated func(uintptr) bool | |||
| 743 | 727 | func (x *Event) GetPointerEmulated() bool { | |
| 744 | 728 | ||
| 745 | 729 | cret := xEventGetPointerEmulated(x.GoPointer()) | |
| 746 | - | ||
| 747 | 730 | return cret | |
| 748 | 731 | } | |
| 749 | 732 | ||
| @@ -755,7 +738,6 @@ var xEventGetPosition func(uintptr, *float64, *float64) bool | |||
| 755 | 738 | func (x *Event) GetPosition(XVar *float64, YVar *float64) bool { | |
| 756 | 739 | ||
| 757 | 740 | cret := xEventGetPosition(x.GoPointer(), XVar, YVar) | |
| 758 | - | ||
| 759 | 741 | return cret | |
| 760 | 742 | } | |
| 761 | 743 | ||
| @@ -802,7 +784,6 @@ var xEventGetTime func(uintptr) uint32 | |||
| 802 | 784 | func (x *Event) GetTime() uint32 { | |
| 803 | 785 | ||
| 804 | 786 | cret := xEventGetTime(x.GoPointer()) | |
| 805 | - | ||
| 806 | 787 | return cret | |
| 807 | 788 | } | |
| 808 | 789 | ||
| @@ -838,7 +819,6 @@ var xEventTriggersContextMenu func(uintptr) bool | |||
| 838 | 819 | func (x *Event) TriggersContextMenu() bool { | |
| 839 | 820 | ||
| 840 | 821 | cret := xEventTriggersContextMenu(x.GoPointer()) | |
| 841 | - | ||
| 842 | 822 | return cret | |
| 843 | 823 | } | |
| 844 | 824 | ||
| @@ -888,7 +868,6 @@ var xFocusEventGetIn func(uintptr) bool | |||
| 888 | 868 | func (x *FocusEvent) GetIn() bool { | |
| 889 | 869 | ||
| 890 | 870 | cret := xFocusEventGetIn(x.GoPointer()) | |
| 891 | - | ||
| 892 | 871 | return cret | |
| 893 | 872 | } | |
| 894 | 873 | ||
| @@ -943,7 +922,6 @@ var xGrabBrokenEventGetImplicit func(uintptr) bool | |||
| 943 | 922 | func (x *GrabBrokenEvent) GetImplicit() bool { | |
| 944 | 923 | ||
| 945 | 924 | cret := xGrabBrokenEventGetImplicit(x.GoPointer()) | |
| 946 | - | ||
| 947 | 925 | return cret | |
| 948 | 926 | } | |
| 949 | 927 | ||
| @@ -981,7 +959,6 @@ var xKeyEventGetConsumedModifiers func(uintptr) ModifierType | |||
| 981 | 959 | func (x *KeyEvent) GetConsumedModifiers() ModifierType { | |
| 982 | 960 | ||
| 983 | 961 | cret := xKeyEventGetConsumedModifiers(x.GoPointer()) | |
| 984 | - | ||
| 985 | 962 | return cret | |
| 986 | 963 | } | |
| 987 | 964 | ||
| @@ -991,7 +968,6 @@ var xKeyEventGetKeycode func(uintptr) uint | |||
| 991 | 968 | func (x *KeyEvent) GetKeycode() uint { | |
| 992 | 969 | ||
| 993 | 970 | cret := xKeyEventGetKeycode(x.GoPointer()) | |
| 994 | - | ||
| 995 | 971 | return cret | |
| 996 | 972 | } | |
| 997 | 973 | ||
| @@ -1001,7 +977,6 @@ var xKeyEventGetKeyval func(uintptr) uint | |||
| 1001 | 977 | func (x *KeyEvent) GetKeyval() uint { | |
| 1002 | 978 | ||
| 1003 | 979 | cret := xKeyEventGetKeyval(x.GoPointer()) | |
| 1004 | - | ||
| 1005 | 980 | return cret | |
| 1006 | 981 | } | |
| 1007 | 982 | ||
| @@ -1011,7 +986,6 @@ var xKeyEventGetLayout func(uintptr) uint | |||
| 1011 | 986 | func (x *KeyEvent) GetLayout() uint { | |
| 1012 | 987 | ||
| 1013 | 988 | cret := xKeyEventGetLayout(x.GoPointer()) | |
| 1014 | - | ||
| 1015 | 989 | return cret | |
| 1016 | 990 | } | |
| 1017 | 991 | ||
| @@ -1021,7 +995,6 @@ var xKeyEventGetLevel func(uintptr) uint | |||
| 1021 | 995 | func (x *KeyEvent) GetLevel() uint { | |
| 1022 | 996 | ||
| 1023 | 997 | cret := xKeyEventGetLevel(x.GoPointer()) | |
| 1024 | - | ||
| 1025 | 998 | return cret | |
| 1026 | 999 | } | |
| 1027 | 1000 | ||
| @@ -1034,7 +1007,6 @@ var xKeyEventGetMatch func(uintptr, *uint, *ModifierType) bool | |||
| 1034 | 1007 | func (x *KeyEvent) GetMatch(KeyvalVar *uint, ModifiersVar *ModifierType) bool { | |
| 1035 | 1008 | ||
| 1036 | 1009 | cret := xKeyEventGetMatch(x.GoPointer(), KeyvalVar, ModifiersVar) | |
| 1037 | - | ||
| 1038 | 1010 | return cret | |
| 1039 | 1011 | } | |
| 1040 | 1012 | ||
| @@ -1044,7 +1016,6 @@ var xKeyEventIsModifier func(uintptr) bool | |||
| 1044 | 1016 | func (x *KeyEvent) IsModifier() bool { | |
| 1045 | 1017 | ||
| 1046 | 1018 | cret := xKeyEventIsModifier(x.GoPointer()) | |
| 1047 | - | ||
| 1048 | 1019 | return cret | |
| 1049 | 1020 | } | |
| 1050 | 1021 | ||
| @@ -1061,7 +1032,6 @@ var xKeyEventMatches func(uintptr, uint, ModifierType) KeyMatch | |||
| 1061 | 1032 | func (x *KeyEvent) Matches(KeyvalVar uint, ModifiersVar ModifierType) KeyMatch { | |
| 1062 | 1033 | ||
| 1063 | 1034 | cret := xKeyEventMatches(x.GoPointer(), KeyvalVar, ModifiersVar) | |
| 1064 | - | ||
| 1065 | 1035 | return cret | |
| 1066 | 1036 | } | |
| 1067 | 1037 | ||
| @@ -1137,7 +1107,6 @@ var xPadEventGetButton func(uintptr) uint | |||
| 1137 | 1107 | func (x *PadEvent) GetButton() uint { | |
| 1138 | 1108 | ||
| 1139 | 1109 | cret := xPadEventGetButton(x.GoPointer()) | |
| 1140 | - | ||
| 1141 | 1110 | return cret | |
| 1142 | 1111 | } | |
| 1143 | 1112 | ||
| @@ -1227,7 +1196,6 @@ var xScrollEventGetDirection func(uintptr) ScrollDirection | |||
| 1227 | 1196 | func (x *ScrollEvent) GetDirection() ScrollDirection { | |
| 1228 | 1197 | ||
| 1229 | 1198 | cret := xScrollEventGetDirection(x.GoPointer()) | |
| 1230 | - | ||
| 1231 | 1199 | return cret | |
| 1232 | 1200 | } | |
| 1233 | 1201 | ||
| @@ -1240,7 +1208,6 @@ var xScrollEventGetUnit func(uintptr) ScrollUnit | |||
| 1240 | 1208 | func (x *ScrollEvent) GetUnit() ScrollUnit { | |
| 1241 | 1209 | ||
| 1242 | 1210 | cret := xScrollEventGetUnit(x.GoPointer()) | |
| 1243 | - | ||
| 1244 | 1211 | return cret | |
| 1245 | 1212 | } | |
| 1246 | 1213 | ||
| @@ -1258,7 +1225,6 @@ var xScrollEventIsStop func(uintptr) bool | |||
| 1258 | 1225 | func (x *ScrollEvent) IsStop() bool { | |
| 1259 | 1226 | ||
| 1260 | 1227 | cret := xScrollEventIsStop(x.GoPointer()) | |
| 1261 | - | ||
| 1262 | 1228 | return cret | |
| 1263 | 1229 | } | |
| 1264 | 1230 | ||
| @@ -1278,7 +1244,6 @@ var xScrollEventGetRelativeDirection func(uintptr) ScrollRelativeDirection | |||
| 1278 | 1244 | func ScrollEventGetRelativeDirection(EventVar *Event) ScrollRelativeDirection { | |
| 1279 | 1245 | ||
| 1280 | 1246 | cret := xScrollEventGetRelativeDirection(EventVar.GoPointer()) | |
| 1281 | - | ||
| 1282 | 1247 | return cret | |
| 1283 | 1248 | } | |
| 1284 | 1249 | ||
| @@ -1305,7 +1270,6 @@ var xTouchEventGetEmulatingPointer func(uintptr) bool | |||
| 1305 | 1270 | func (x *TouchEvent) GetEmulatingPointer() bool { | |
| 1306 | 1271 | ||
| 1307 | 1272 | cret := xTouchEventGetEmulatingPointer(x.GoPointer()) | |
| 1308 | - | ||
| 1309 | 1273 | return cret | |
| 1310 | 1274 | } | |
| 1311 | 1275 | ||
| @@ -1357,7 +1321,6 @@ var xTouchpadEventGetGesturePhase func(uintptr) TouchpadGesturePhase | |||
| 1357 | 1321 | func (x *TouchpadEvent) GetGesturePhase() TouchpadGesturePhase { | |
| 1358 | 1322 | ||
| 1359 | 1323 | cret := xTouchpadEventGetGesturePhase(x.GoPointer()) | |
| 1360 | - | ||
| 1361 | 1324 | return cret | |
| 1362 | 1325 | } | |
| 1363 | 1326 | ||
| @@ -1367,7 +1330,6 @@ var xTouchpadEventGetNFingers func(uintptr) uint | |||
| 1367 | 1330 | func (x *TouchpadEvent) GetNFingers() uint { | |
| 1368 | 1331 | ||
| 1369 | 1332 | cret := xTouchpadEventGetNFingers(x.GoPointer()) | |
| 1370 | - | ||
| 1371 | 1333 | return cret | |
| 1372 | 1334 | } | |
| 1373 | 1335 | ||
| @@ -1377,7 +1339,6 @@ var xTouchpadEventGetPinchAngleDelta func(uintptr) float64 | |||
| 1377 | 1339 | func (x *TouchpadEvent) GetPinchAngleDelta() float64 { | |
| 1378 | 1340 | ||
| 1379 | 1341 | cret := xTouchpadEventGetPinchAngleDelta(x.GoPointer()) | |
| 1380 | - | ||
| 1381 | 1342 | return cret | |
| 1382 | 1343 | } | |
| 1383 | 1344 | ||
| @@ -1387,7 +1348,6 @@ var xTouchpadEventGetPinchScale func(uintptr) float64 | |||
| 1387 | 1348 | func (x *TouchpadEvent) GetPinchScale() float64 { | |
| 1388 | 1349 | ||
| 1389 | 1350 | cret := xTouchpadEventGetPinchScale(x.GoPointer()) | |
| 1390 | - | ||
| 1391 | 1351 | return cret | |
| 1392 | 1352 | } | |
| 1393 | 1353 | ||
M v4/gdk/gdkframeclock.go +0 -6
| @@ -139,7 +139,6 @@ var xFrameClockGetCurrentTimings func(uintptr) *FrameTimings | |||
| 139 | 139 | func (x *FrameClock) GetCurrentTimings() *FrameTimings { | |
| 140 | 140 | ||
| 141 | 141 | cret := xFrameClockGetCurrentTimings(x.GoPointer()) | |
| 142 | - | ||
| 143 | 142 | return cret | |
| 144 | 143 | } | |
| 145 | 144 | ||
| @@ -150,7 +149,6 @@ var xFrameClockGetFps func(uintptr) float64 | |||
| 150 | 149 | func (x *FrameClock) GetFps() float64 { | |
| 151 | 150 | ||
| 152 | 151 | cret := xFrameClockGetFps(x.GoPointer()) | |
| 153 | - | ||
| 154 | 152 | return cret | |
| 155 | 153 | } | |
| 156 | 154 | ||
| @@ -161,7 +159,6 @@ var xFrameClockGetFrameCounter func(uintptr) int64 | |||
| 161 | 159 | func (x *FrameClock) GetFrameCounter() int64 { | |
| 162 | 160 | ||
| 163 | 161 | cret := xFrameClockGetFrameCounter(x.GoPointer()) | |
| 164 | - | ||
| 165 | 162 | return cret | |
| 166 | 163 | } | |
| 167 | 164 | ||
| @@ -177,7 +174,6 @@ var xFrameClockGetFrameTime func(uintptr) int64 | |||
| 177 | 174 | func (x *FrameClock) GetFrameTime() int64 { | |
| 178 | 175 | ||
| 179 | 176 | cret := xFrameClockGetFrameTime(x.GoPointer()) | |
| 180 | - | ||
| 181 | 177 | return cret | |
| 182 | 178 | } | |
| 183 | 179 | ||
| @@ -194,7 +190,6 @@ var xFrameClockGetHistoryStart func(uintptr) int64 | |||
| 194 | 190 | func (x *FrameClock) GetHistoryStart() int64 { | |
| 195 | 191 | ||
| 196 | 192 | cret := xFrameClockGetHistoryStart(x.GoPointer()) | |
| 197 | - | ||
| 198 | 193 | return cret | |
| 199 | 194 | } | |
| 200 | 195 | ||
| @@ -224,7 +219,6 @@ var xFrameClockGetTimings func(uintptr, int64) *FrameTimings | |||
| 224 | 219 | func (x *FrameClock) GetTimings(FrameCounterVar int64) *FrameTimings { | |
| 225 | 220 | ||
| 226 | 221 | cret := xFrameClockGetTimings(x.GoPointer(), FrameCounterVar) | |
| 227 | - | ||
| 228 | 222 | return cret | |
| 229 | 223 | } | |
| 230 | 224 | ||
M v4/gdk/gdkframetimings.go +0 -7
| @@ -49,7 +49,6 @@ var xFrameTimingsGetComplete func(uintptr) bool | |||
| 49 | 49 | func (x *FrameTimings) GetComplete() bool { | |
| 50 | 50 | ||
| 51 | 51 | cret := xFrameTimingsGetComplete(x.GoPointer()) | |
| 52 | - | ||
| 53 | 52 | return cret | |
| 54 | 53 | } | |
| 55 | 54 | ||
| @@ -60,7 +59,6 @@ var xFrameTimingsGetFrameCounter func(uintptr) int64 | |||
| 60 | 59 | func (x *FrameTimings) GetFrameCounter() int64 { | |
| 61 | 60 | ||
| 62 | 61 | cret := xFrameTimingsGetFrameCounter(x.GoPointer()) | |
| 63 | - | ||
| 64 | 62 | return cret | |
| 65 | 63 | } | |
| 66 | 64 | ||
| @@ -73,7 +71,6 @@ var xFrameTimingsGetFrameTime func(uintptr) int64 | |||
| 73 | 71 | func (x *FrameTimings) GetFrameTime() int64 { | |
| 74 | 72 | ||
| 75 | 73 | cret := xFrameTimingsGetFrameTime(x.GoPointer()) | |
| 76 | - | ||
| 77 | 74 | return cret | |
| 78 | 75 | } | |
| 79 | 76 | ||
| @@ -94,7 +91,6 @@ var xFrameTimingsGetPredictedPresentationTime func(uintptr) int64 | |||
| 94 | 91 | func (x *FrameTimings) GetPredictedPresentationTime() int64 { | |
| 95 | 92 | ||
| 96 | 93 | cret := xFrameTimingsGetPredictedPresentationTime(x.GoPointer()) | |
| 97 | - | ||
| 98 | 94 | return cret | |
| 99 | 95 | } | |
| 100 | 96 | ||
| @@ -106,7 +102,6 @@ var xFrameTimingsGetPresentationTime func(uintptr) int64 | |||
| 106 | 102 | func (x *FrameTimings) GetPresentationTime() int64 { | |
| 107 | 103 | ||
| 108 | 104 | cret := xFrameTimingsGetPresentationTime(x.GoPointer()) | |
| 109 | - | ||
| 110 | 105 | return cret | |
| 111 | 106 | } | |
| 112 | 107 | ||
| @@ -120,7 +115,6 @@ var xFrameTimingsGetRefreshInterval func(uintptr) int64 | |||
| 120 | 115 | func (x *FrameTimings) GetRefreshInterval() int64 { | |
| 121 | 116 | ||
| 122 | 117 | cret := xFrameTimingsGetRefreshInterval(x.GoPointer()) | |
| 123 | - | ||
| 124 | 118 | return cret | |
| 125 | 119 | } | |
| 126 | 120 | ||
| @@ -130,7 +124,6 @@ var xFrameTimingsRef func(uintptr) *FrameTimings | |||
| 130 | 124 | func (x *FrameTimings) Ref() *FrameTimings { | |
| 131 | 125 | ||
| 132 | 126 | cret := xFrameTimingsRef(x.GoPointer()) | |
| 133 | - | ||
| 134 | 127 | return cret | |
| 135 | 128 | } | |
| 136 | 129 | ||
M v4/gdk/gdkglcontext.go +0 -9
| @@ -15,7 +15,6 @@ var xGlErrorQuark func() glib.Quark | |||
| 15 | 15 | func GlErrorQuark() glib.Quark { | |
| 16 | 16 | ||
| 17 | 17 | cret := xGlErrorQuark() | |
| 18 | - | ||
| 19 | 18 | return cret | |
| 20 | 19 | } | |
| 21 | 20 | ||
| @@ -89,7 +88,6 @@ var xGLContextGetAllowedApis func(uintptr) GLAPI | |||
| 89 | 88 | func (x *GLContext) GetAllowedApis() GLAPI { | |
| 90 | 89 | ||
| 91 | 90 | cret := xGLContextGetAllowedApis(x.GoPointer()) | |
| 92 | - | ||
| 93 | 91 | return cret | |
| 94 | 92 | } | |
| 95 | 93 | ||
| @@ -101,7 +99,6 @@ var xGLContextGetApi func(uintptr) GLAPI | |||
| 101 | 99 | func (x *GLContext) GetApi() GLAPI { | |
| 102 | 100 | ||
| 103 | 101 | cret := xGLContextGetApi(x.GoPointer()) | |
| 104 | - | ||
| 105 | 102 | return cret | |
| 106 | 103 | } | |
| 107 | 104 | ||
| @@ -113,7 +110,6 @@ var xGLContextGetDebugEnabled func(uintptr) bool | |||
| 113 | 110 | func (x *GLContext) GetDebugEnabled() bool { | |
| 114 | 111 | ||
| 115 | 112 | cret := xGLContextGetDebugEnabled(x.GoPointer()) | |
| 116 | - | ||
| 117 | 113 | return cret | |
| 118 | 114 | } | |
| 119 | 115 | ||
| @@ -142,7 +138,6 @@ var xGLContextGetForwardCompatible func(uintptr) bool | |||
| 142 | 138 | func (x *GLContext) GetForwardCompatible() bool { | |
| 143 | 139 | ||
| 144 | 140 | cret := xGLContextGetForwardCompatible(x.GoPointer()) | |
| 145 | - | ||
| 146 | 141 | return cret | |
| 147 | 142 | } | |
| 148 | 143 | ||
| @@ -203,7 +198,6 @@ var xGLContextGetUseEs func(uintptr) bool | |||
| 203 | 198 | func (x *GLContext) GetUseEs() bool { | |
| 204 | 199 | ||
| 205 | 200 | cret := xGLContextGetUseEs(x.GoPointer()) | |
| 206 | - | ||
| 207 | 201 | return cret | |
| 208 | 202 | } | |
| 209 | 203 | ||
| @@ -239,7 +233,6 @@ var xGLContextIsLegacy func(uintptr) bool | |||
| 239 | 233 | func (x *GLContext) IsLegacy() bool { | |
| 240 | 234 | ||
| 241 | 235 | cret := xGLContextIsLegacy(x.GoPointer()) | |
| 242 | - | ||
| 243 | 236 | return cret | |
| 244 | 237 | } | |
| 245 | 238 | ||
| @@ -260,7 +253,6 @@ var xGLContextIsShared func(uintptr, uintptr) bool | |||
| 260 | 253 | func (x *GLContext) IsShared(OtherVar *GLContext) bool { | |
| 261 | 254 | ||
| 262 | 255 | cret := xGLContextIsShared(x.GoPointer(), OtherVar.GoPointer()) | |
| 263 | - | ||
| 264 | 256 | return cret | |
| 265 | 257 | } | |
| 266 | 258 | ||
| @@ -282,7 +274,6 @@ func (x *GLContext) Realize() (bool, error) { | |||
| 282 | 274 | var cerr *glib.Error | |
| 283 | 275 | ||
| 284 | 276 | cret := xGLContextRealize(x.GoPointer()) | |
| 285 | - | ||
| 286 | 277 | if cerr == nil { | |
| 287 | 278 | return cret, nil | |
| 288 | 279 | } | |
M v4/gdk/gdkgltexture.go +0 -8
| @@ -139,7 +139,6 @@ func (x *GLTexture) GetCurrentImage() *PaintableBase { | |||
| 139 | 139 | func (x *GLTexture) GetFlags() PaintableFlags { | |
| 140 | 140 | ||
| 141 | 141 | cret := XGdkPaintableGetFlags(x.GoPointer()) | |
| 142 | - | ||
| 143 | 142 | return cret | |
| 144 | 143 | } | |
| 145 | 144 | ||
| @@ -163,7 +162,6 @@ func (x *GLTexture) GetFlags() PaintableFlags { | |||
| 163 | 162 | func (x *GLTexture) GetIntrinsicAspectRatio() float64 { | |
| 164 | 163 | ||
| 165 | 164 | cret := XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 166 | - | ||
| 167 | 165 | return cret | |
| 168 | 166 | } | |
| 169 | 167 | ||
| @@ -180,7 +178,6 @@ func (x *GLTexture) GetIntrinsicAspectRatio() float64 { | |||
| 180 | 178 | func (x *GLTexture) GetIntrinsicHeight() int { | |
| 181 | 179 | ||
| 182 | 180 | cret := XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 183 | - | ||
| 184 | 181 | return cret | |
| 185 | 182 | } | |
| 186 | 183 | ||
| @@ -197,7 +194,6 @@ func (x *GLTexture) GetIntrinsicHeight() int { | |||
| 197 | 194 | func (x *GLTexture) GetIntrinsicWidth() int { | |
| 198 | 195 | ||
| 199 | 196 | cret := XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 200 | - | ||
| 201 | 197 | return cret | |
| 202 | 198 | } | |
| 203 | 199 | ||
| @@ -248,7 +244,6 @@ func (x *GLTexture) Snapshot(SnapshotVar *Snapshot, WidthVar float64, HeightVar | |||
| 248 | 244 | func (x *GLTexture) Equal(Icon2Var gio.Icon) bool { | |
| 249 | 245 | ||
| 250 | 246 | cret := gio.XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 251 | - | ||
| 252 | 247 | return cret | |
| 253 | 248 | } | |
| 254 | 249 | ||
| @@ -256,7 +251,6 @@ func (x *GLTexture) Equal(Icon2Var gio.Icon) bool { | |||
| 256 | 251 | func (x *GLTexture) Hash() uint { | |
| 257 | 252 | ||
| 258 | 253 | cret := gio.XGIconHash(x.GoPointer()) | |
| 259 | - | ||
| 260 | 254 | return cret | |
| 261 | 255 | } | |
| 262 | 256 | ||
| @@ -268,7 +262,6 @@ func (x *GLTexture) Hash() uint { | |||
| 268 | 262 | func (x *GLTexture) Serialize() *glib.Variant { | |
| 269 | 263 | ||
| 270 | 264 | cret := gio.XGIconSerialize(x.GoPointer()) | |
| 271 | - | ||
| 272 | 265 | return cret | |
| 273 | 266 | } | |
| 274 | 267 | ||
| @@ -291,7 +284,6 @@ func (x *GLTexture) Serialize() *glib.Variant { | |||
| 291 | 284 | func (x *GLTexture) ToString() string { | |
| 292 | 285 | ||
| 293 | 286 | cret := gio.XGIconToString(x.GoPointer()) | |
| 294 | - | ||
| 295 | 287 | return cret | |
| 296 | 288 | } | |
| 297 | 289 | ||
M v4/gdk/gdkgltexturebuilder.go +0 -8
| @@ -112,7 +112,6 @@ var xGLTextureBuilderGetColorState func(uintptr) *ColorState | |||
| 112 | 112 | func (x *GLTextureBuilder) GetColorState() *ColorState { | |
| 113 | 113 | ||
| 114 | 114 | cret := xGLTextureBuilderGetColorState(x.GoPointer()) | |
| 115 | - | ||
| 116 | 115 | return cret | |
| 117 | 116 | } | |
| 118 | 117 | ||
| @@ -140,7 +139,6 @@ var xGLTextureBuilderGetFormat func(uintptr) MemoryFormat | |||
| 140 | 139 | func (x *GLTextureBuilder) GetFormat() MemoryFormat { | |
| 141 | 140 | ||
| 142 | 141 | cret := xGLTextureBuilderGetFormat(x.GoPointer()) | |
| 143 | - | ||
| 144 | 142 | return cret | |
| 145 | 143 | } | |
| 146 | 144 | ||
| @@ -150,7 +148,6 @@ var xGLTextureBuilderGetHasMipmap func(uintptr) bool | |||
| 150 | 148 | func (x *GLTextureBuilder) GetHasMipmap() bool { | |
| 151 | 149 | ||
| 152 | 150 | cret := xGLTextureBuilderGetHasMipmap(x.GoPointer()) | |
| 153 | - | ||
| 154 | 151 | return cret | |
| 155 | 152 | } | |
| 156 | 153 | ||
| @@ -161,7 +158,6 @@ var xGLTextureBuilderGetHeight func(uintptr) int | |||
| 161 | 158 | func (x *GLTextureBuilder) GetHeight() int { | |
| 162 | 159 | ||
| 163 | 160 | cret := xGLTextureBuilderGetHeight(x.GoPointer()) | |
| 164 | - | ||
| 165 | 161 | return cret | |
| 166 | 162 | } | |
| 167 | 163 | ||
| @@ -172,7 +168,6 @@ var xGLTextureBuilderGetId func(uintptr) uint | |||
| 172 | 168 | func (x *GLTextureBuilder) GetId() uint { | |
| 173 | 169 | ||
| 174 | 170 | cret := xGLTextureBuilderGetId(x.GoPointer()) | |
| 175 | - | ||
| 176 | 171 | return cret | |
| 177 | 172 | } | |
| 178 | 173 | ||
| @@ -182,7 +177,6 @@ var xGLTextureBuilderGetSync func(uintptr) uintptr | |||
| 182 | 177 | func (x *GLTextureBuilder) GetSync() uintptr { | |
| 183 | 178 | ||
| 184 | 179 | cret := xGLTextureBuilderGetSync(x.GoPointer()) | |
| 185 | - | ||
| 186 | 180 | return cret | |
| 187 | 181 | } | |
| 188 | 182 | ||
| @@ -193,7 +187,6 @@ var xGLTextureBuilderGetUpdateRegion func(uintptr) *cairo.Region | |||
| 193 | 187 | func (x *GLTextureBuilder) GetUpdateRegion() *cairo.Region { | |
| 194 | 188 | ||
| 195 | 189 | cret := xGLTextureBuilderGetUpdateRegion(x.GoPointer()) | |
| 196 | - | ||
| 197 | 190 | return cret | |
| 198 | 191 | } | |
| 199 | 192 | ||
| @@ -222,7 +215,6 @@ var xGLTextureBuilderGetWidth func(uintptr) int | |||
| 222 | 215 | func (x *GLTextureBuilder) GetWidth() int { | |
| 223 | 216 | ||
| 224 | 217 | cret := xGLTextureBuilderGetWidth(x.GoPointer()) | |
| 225 | - | ||
| 226 | 218 | return cret | |
| 227 | 219 | } | |
| 228 | 220 | ||
M v4/gdk/gdkkeys.go +0 -8
| @@ -27,7 +27,6 @@ var xKeyvalFromName func(string) uint | |||
| 27 | 27 | func KeyvalFromName(KeyvalNameVar string) uint { | |
| 28 | 28 | ||
| 29 | 29 | cret := xKeyvalFromName(KeyvalNameVar) | |
| 30 | - | ||
| 31 | 30 | return cret | |
| 32 | 31 | } | |
| 33 | 32 | ||
| @@ -37,7 +36,6 @@ var xKeyvalIsLower func(uint) bool | |||
| 37 | 36 | func KeyvalIsLower(KeyvalVar uint) bool { | |
| 38 | 37 | ||
| 39 | 38 | cret := xKeyvalIsLower(KeyvalVar) | |
| 40 | - | ||
| 41 | 39 | return cret | |
| 42 | 40 | } | |
| 43 | 41 | ||
| @@ -47,7 +45,6 @@ var xKeyvalIsUpper func(uint) bool | |||
| 47 | 45 | func KeyvalIsUpper(KeyvalVar uint) bool { | |
| 48 | 46 | ||
| 49 | 47 | cret := xKeyvalIsUpper(KeyvalVar) | |
| 50 | - | ||
| 51 | 48 | return cret | |
| 52 | 49 | } | |
| 53 | 50 | ||
| @@ -61,7 +58,6 @@ var xKeyvalName func(uint) string | |||
| 61 | 58 | func KeyvalName(KeyvalVar uint) string { | |
| 62 | 59 | ||
| 63 | 60 | cret := xKeyvalName(KeyvalVar) | |
| 64 | - | ||
| 65 | 61 | return cret | |
| 66 | 62 | } | |
| 67 | 63 | ||
| @@ -71,7 +67,6 @@ var xKeyvalToLower func(uint) uint | |||
| 71 | 67 | func KeyvalToLower(KeyvalVar uint) uint { | |
| 72 | 68 | ||
| 73 | 69 | cret := xKeyvalToLower(KeyvalVar) | |
| 74 | - | ||
| 75 | 70 | return cret | |
| 76 | 71 | } | |
| 77 | 72 | ||
| @@ -86,7 +81,6 @@ var xKeyvalToUnicode func(uint) uint32 | |||
| 86 | 81 | func KeyvalToUnicode(KeyvalVar uint) uint32 { | |
| 87 | 82 | ||
| 88 | 83 | cret := xKeyvalToUnicode(KeyvalVar) | |
| 89 | - | ||
| 90 | 84 | return cret | |
| 91 | 85 | } | |
| 92 | 86 | ||
| @@ -96,7 +90,6 @@ var xKeyvalToUpper func(uint) uint | |||
| 96 | 90 | func KeyvalToUpper(KeyvalVar uint) uint { | |
| 97 | 91 | ||
| 98 | 92 | cret := xKeyvalToUpper(KeyvalVar) | |
| 99 | - | ||
| 100 | 93 | return cret | |
| 101 | 94 | } | |
| 102 | 95 | ||
| @@ -106,7 +99,6 @@ var xUnicodeToKeyval func(uint32) uint | |||
| 106 | 99 | func UnicodeToKeyval(WcVar uint32) uint { | |
| 107 | 100 | ||
| 108 | 101 | cret := xUnicodeToKeyval(WcVar) | |
| 109 | - | ||
| 110 | 102 | return cret | |
| 111 | 103 | } | |
| 112 | 104 | ||
M v4/gdk/gdkmemorytexture.go +0 -8
| @@ -110,7 +110,6 @@ func (x *MemoryTexture) GetCurrentImage() *PaintableBase { | |||
| 110 | 110 | func (x *MemoryTexture) GetFlags() PaintableFlags { | |
| 111 | 111 | ||
| 112 | 112 | cret := XGdkPaintableGetFlags(x.GoPointer()) | |
| 113 | - | ||
| 114 | 113 | return cret | |
| 115 | 114 | } | |
| 116 | 115 | ||
| @@ -134,7 +133,6 @@ func (x *MemoryTexture) GetFlags() PaintableFlags { | |||
| 134 | 133 | func (x *MemoryTexture) GetIntrinsicAspectRatio() float64 { | |
| 135 | 134 | ||
| 136 | 135 | cret := XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 137 | - | ||
| 138 | 136 | return cret | |
| 139 | 137 | } | |
| 140 | 138 | ||
| @@ -151,7 +149,6 @@ func (x *MemoryTexture) GetIntrinsicAspectRatio() float64 { | |||
| 151 | 149 | func (x *MemoryTexture) GetIntrinsicHeight() int { | |
| 152 | 150 | ||
| 153 | 151 | cret := XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 154 | - | ||
| 155 | 152 | return cret | |
| 156 | 153 | } | |
| 157 | 154 | ||
| @@ -168,7 +165,6 @@ func (x *MemoryTexture) GetIntrinsicHeight() int { | |||
| 168 | 165 | func (x *MemoryTexture) GetIntrinsicWidth() int { | |
| 169 | 166 | ||
| 170 | 167 | cret := XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 171 | - | ||
| 172 | 168 | return cret | |
| 173 | 169 | } | |
| 174 | 170 | ||
| @@ -219,7 +215,6 @@ func (x *MemoryTexture) Snapshot(SnapshotVar *Snapshot, WidthVar float64, Height | |||
| 219 | 215 | func (x *MemoryTexture) Equal(Icon2Var gio.Icon) bool { | |
| 220 | 216 | ||
| 221 | 217 | cret := gio.XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 222 | - | ||
| 223 | 218 | return cret | |
| 224 | 219 | } | |
| 225 | 220 | ||
| @@ -227,7 +222,6 @@ func (x *MemoryTexture) Equal(Icon2Var gio.Icon) bool { | |||
| 227 | 222 | func (x *MemoryTexture) Hash() uint { | |
| 228 | 223 | ||
| 229 | 224 | cret := gio.XGIconHash(x.GoPointer()) | |
| 230 | - | ||
| 231 | 225 | return cret | |
| 232 | 226 | } | |
| 233 | 227 | ||
| @@ -239,7 +233,6 @@ func (x *MemoryTexture) Hash() uint { | |||
| 239 | 233 | func (x *MemoryTexture) Serialize() *glib.Variant { | |
| 240 | 234 | ||
| 241 | 235 | cret := gio.XGIconSerialize(x.GoPointer()) | |
| 242 | - | ||
| 243 | 236 | return cret | |
| 244 | 237 | } | |
| 245 | 238 | ||
| @@ -262,7 +255,6 @@ func (x *MemoryTexture) Serialize() *glib.Variant { | |||
| 262 | 255 | func (x *MemoryTexture) ToString() string { | |
| 263 | 256 | ||
| 264 | 257 | cret := gio.XGIconToString(x.GoPointer()) | |
| 265 | - | ||
| 266 | 258 | return cret | |
| 267 | 259 | } | |
| 268 | 260 | ||
M v4/gdk/gdkmemorytexturebuilder.go +0 -9
| @@ -93,7 +93,6 @@ var xMemoryTextureBuilderGetBytes func(uintptr) *glib.Bytes | |||
| 93 | 93 | func (x *MemoryTextureBuilder) GetBytes() *glib.Bytes { | |
| 94 | 94 | ||
| 95 | 95 | cret := xMemoryTextureBuilderGetBytes(x.GoPointer()) | |
| 96 | - | ||
| 97 | 96 | return cret | |
| 98 | 97 | } | |
| 99 | 98 | ||
| @@ -103,7 +102,6 @@ var xMemoryTextureBuilderGetColorState func(uintptr) *ColorState | |||
| 103 | 102 | func (x *MemoryTextureBuilder) GetColorState() *ColorState { | |
| 104 | 103 | ||
| 105 | 104 | cret := xMemoryTextureBuilderGetColorState(x.GoPointer()) | |
| 106 | - | ||
| 107 | 105 | return cret | |
| 108 | 106 | } | |
| 109 | 107 | ||
| @@ -113,7 +111,6 @@ var xMemoryTextureBuilderGetFormat func(uintptr) MemoryFormat | |||
| 113 | 111 | func (x *MemoryTextureBuilder) GetFormat() MemoryFormat { | |
| 114 | 112 | ||
| 115 | 113 | cret := xMemoryTextureBuilderGetFormat(x.GoPointer()) | |
| 116 | - | ||
| 117 | 114 | return cret | |
| 118 | 115 | } | |
| 119 | 116 | ||
| @@ -124,7 +121,6 @@ var xMemoryTextureBuilderGetHeight func(uintptr) int | |||
| 124 | 121 | func (x *MemoryTextureBuilder) GetHeight() int { | |
| 125 | 122 | ||
| 126 | 123 | cret := xMemoryTextureBuilderGetHeight(x.GoPointer()) | |
| 127 | - | ||
| 128 | 124 | return cret | |
| 129 | 125 | } | |
| 130 | 126 | ||
| @@ -134,7 +130,6 @@ var xMemoryTextureBuilderGetOffset func(uintptr, uint) uint | |||
| 134 | 130 | func (x *MemoryTextureBuilder) GetOffset(PlaneVar uint) uint { | |
| 135 | 131 | ||
| 136 | 132 | cret := xMemoryTextureBuilderGetOffset(x.GoPointer(), PlaneVar) | |
| 137 | - | ||
| 138 | 133 | return cret | |
| 139 | 134 | } | |
| 140 | 135 | ||
| @@ -144,7 +139,6 @@ var xMemoryTextureBuilderGetStride func(uintptr) uint | |||
| 144 | 139 | func (x *MemoryTextureBuilder) GetStride() uint { | |
| 145 | 140 | ||
| 146 | 141 | cret := xMemoryTextureBuilderGetStride(x.GoPointer()) | |
| 147 | - | ||
| 148 | 142 | return cret | |
| 149 | 143 | } | |
| 150 | 144 | ||
| @@ -154,7 +148,6 @@ var xMemoryTextureBuilderGetStrideForPlane func(uintptr, uint) uint | |||
| 154 | 148 | func (x *MemoryTextureBuilder) GetStrideForPlane(PlaneVar uint) uint { | |
| 155 | 149 | ||
| 156 | 150 | cret := xMemoryTextureBuilderGetStrideForPlane(x.GoPointer(), PlaneVar) | |
| 157 | - | ||
| 158 | 151 | return cret | |
| 159 | 152 | } | |
| 160 | 153 | ||
| @@ -165,7 +158,6 @@ var xMemoryTextureBuilderGetUpdateRegion func(uintptr) *cairo.Region | |||
| 165 | 158 | func (x *MemoryTextureBuilder) GetUpdateRegion() *cairo.Region { | |
| 166 | 159 | ||
| 167 | 160 | cret := xMemoryTextureBuilderGetUpdateRegion(x.GoPointer()) | |
| 168 | - | ||
| 169 | 161 | return cret | |
| 170 | 162 | } | |
| 171 | 163 | ||
| @@ -194,7 +186,6 @@ var xMemoryTextureBuilderGetWidth func(uintptr) int | |||
| 194 | 186 | func (x *MemoryTextureBuilder) GetWidth() int { | |
| 195 | 187 | ||
| 196 | 188 | cret := xMemoryTextureBuilderGetWidth(x.GoPointer()) | |
| 197 | - | ||
| 198 | 189 | return cret | |
| 199 | 190 | } | |
| 200 | 191 | ||
M v4/gdk/gdkmonitor.go +0 -11
| @@ -78,7 +78,6 @@ var xMonitorGetConnector func(uintptr) string | |||
| 78 | 78 | func (x *Monitor) GetConnector() string { | |
| 79 | 79 | ||
| 80 | 80 | cret := xMonitorGetConnector(x.GoPointer()) | |
| 81 | - | ||
| 82 | 81 | return cret | |
| 83 | 82 | } | |
| 84 | 83 | ||
| @@ -90,7 +89,6 @@ var xMonitorGetDescription func(uintptr) string | |||
| 90 | 89 | func (x *Monitor) GetDescription() string { | |
| 91 | 90 | ||
| 92 | 91 | cret := xMonitorGetDescription(x.GoPointer()) | |
| 93 | - | ||
| 94 | 92 | return cret | |
| 95 | 93 | } | |
| 96 | 94 | ||
| @@ -130,7 +128,6 @@ var xMonitorGetHeightMm func(uintptr) int | |||
| 130 | 128 | func (x *Monitor) GetHeightMm() int { | |
| 131 | 129 | ||
| 132 | 130 | cret := xMonitorGetHeightMm(x.GoPointer()) | |
| 133 | - | ||
| 134 | 131 | return cret | |
| 135 | 132 | } | |
| 136 | 133 | ||
| @@ -146,7 +143,6 @@ var xMonitorGetManufacturer func(uintptr) string | |||
| 146 | 143 | func (x *Monitor) GetManufacturer() string { | |
| 147 | 144 | ||
| 148 | 145 | cret := xMonitorGetManufacturer(x.GoPointer()) | |
| 149 | - | ||
| 150 | 146 | return cret | |
| 151 | 147 | } | |
| 152 | 148 | ||
| @@ -156,7 +152,6 @@ var xMonitorGetModel func(uintptr) string | |||
| 156 | 152 | func (x *Monitor) GetModel() string { | |
| 157 | 153 | ||
| 158 | 154 | cret := xMonitorGetModel(x.GoPointer()) | |
| 159 | - | ||
| 160 | 155 | return cret | |
| 161 | 156 | } | |
| 162 | 157 | ||
| @@ -169,7 +164,6 @@ var xMonitorGetRefreshRate func(uintptr) int | |||
| 169 | 164 | func (x *Monitor) GetRefreshRate() int { | |
| 170 | 165 | ||
| 171 | 166 | cret := xMonitorGetRefreshRate(x.GoPointer()) | |
| 172 | - | ||
| 173 | 167 | return cret | |
| 174 | 168 | } | |
| 175 | 169 | ||
| @@ -184,7 +178,6 @@ var xMonitorGetScale func(uintptr) float64 | |||
| 184 | 178 | func (x *Monitor) GetScale() float64 { | |
| 185 | 179 | ||
| 186 | 180 | cret := xMonitorGetScale(x.GoPointer()) | |
| 187 | - | ||
| 188 | 181 | return cret | |
| 189 | 182 | } | |
| 190 | 183 | ||
| @@ -202,7 +195,6 @@ var xMonitorGetScaleFactor func(uintptr) int | |||
| 202 | 195 | func (x *Monitor) GetScaleFactor() int { | |
| 203 | 196 | ||
| 204 | 197 | cret := xMonitorGetScaleFactor(x.GoPointer()) | |
| 205 | - | ||
| 206 | 198 | return cret | |
| 207 | 199 | } | |
| 208 | 200 | ||
| @@ -213,7 +205,6 @@ var xMonitorGetSubpixelLayout func(uintptr) SubpixelLayout | |||
| 213 | 205 | func (x *Monitor) GetSubpixelLayout() SubpixelLayout { | |
| 214 | 206 | ||
| 215 | 207 | cret := xMonitorGetSubpixelLayout(x.GoPointer()) | |
| 216 | - | ||
| 217 | 208 | return cret | |
| 218 | 209 | } | |
| 219 | 210 | ||
| @@ -223,7 +214,6 @@ var xMonitorGetWidthMm func(uintptr) int | |||
| 223 | 214 | func (x *Monitor) GetWidthMm() int { | |
| 224 | 215 | ||
| 225 | 216 | cret := xMonitorGetWidthMm(x.GoPointer()) | |
| 226 | - | ||
| 227 | 217 | return cret | |
| 228 | 218 | } | |
| 229 | 219 | ||
| @@ -237,7 +227,6 @@ var xMonitorIsValid func(uintptr) bool | |||
| 237 | 227 | func (x *Monitor) IsValid() bool { | |
| 238 | 228 | ||
| 239 | 229 | cret := xMonitorIsValid(x.GoPointer()) | |
| 240 | - | ||
| 241 | 230 | return cret | |
| 242 | 231 | } | |
| 243 | 232 | ||
M v4/gdk/gdkpaintable.go +0 -4
| @@ -361,7 +361,6 @@ func (x *PaintableBase) GetCurrentImage() *PaintableBase { | |||
| 361 | 361 | func (x *PaintableBase) GetFlags() PaintableFlags { | |
| 362 | 362 | ||
| 363 | 363 | cret := XGdkPaintableGetFlags(x.GoPointer()) | |
| 364 | - | ||
| 365 | 364 | return cret | |
| 366 | 365 | } | |
| 367 | 366 | ||
| @@ -385,7 +384,6 @@ func (x *PaintableBase) GetFlags() PaintableFlags { | |||
| 385 | 384 | func (x *PaintableBase) GetIntrinsicAspectRatio() float64 { | |
| 386 | 385 | ||
| 387 | 386 | cret := XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 388 | - | ||
| 389 | 387 | return cret | |
| 390 | 388 | } | |
| 391 | 389 | ||
| @@ -402,7 +400,6 @@ func (x *PaintableBase) GetIntrinsicAspectRatio() float64 { | |||
| 402 | 400 | func (x *PaintableBase) GetIntrinsicHeight() int { | |
| 403 | 401 | ||
| 404 | 402 | cret := XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 405 | - | ||
| 406 | 403 | return cret | |
| 407 | 404 | } | |
| 408 | 405 | ||
| @@ -419,7 +416,6 @@ func (x *PaintableBase) GetIntrinsicHeight() int { | |||
| 419 | 416 | func (x *PaintableBase) GetIntrinsicWidth() int { | |
| 420 | 417 | ||
| 421 | 418 | cret := XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 422 | - | ||
| 423 | 419 | return cret | |
| 424 | 420 | } | |
| 425 | 421 | ||
M v4/gdk/gdkpango.go +0 -2
| @@ -23,7 +23,6 @@ var xPangoLayoutGetClipRegion func(uintptr, int, int, int, int) *cairo.Region | |||
| 23 | 23 | func PangoLayoutGetClipRegion(LayoutVar *pango.Layout, XOriginVar int, YOriginVar int, IndexRangesVar int, NRangesVar int) *cairo.Region { | |
| 24 | 24 | ||
| 25 | 25 | cret := xPangoLayoutGetClipRegion(LayoutVar.GoPointer(), XOriginVar, YOriginVar, IndexRangesVar, NRangesVar) | |
| 26 | - | ||
| 27 | 26 | return cret | |
| 28 | 27 | } | |
| 29 | 28 | ||
| @@ -47,7 +46,6 @@ var xPangoLayoutLineGetClipRegion func(*pango.LayoutLine, int, int, []int, int) | |||
| 47 | 46 | func PangoLayoutLineGetClipRegion(LineVar *pango.LayoutLine, XOriginVar int, YOriginVar int, IndexRangesVar []int, NRangesVar int) *cairo.Region { | |
| 48 | 47 | ||
| 49 | 48 | cret := xPangoLayoutLineGetClipRegion(LineVar, XOriginVar, YOriginVar, IndexRangesVar, NRangesVar) | |
| 50 | - | ||
| 51 | 49 | return cret | |
| 52 | 50 | } | |
| 53 | 51 | ||
M v4/gdk/gdkpopup.go +0 -6
| @@ -63,7 +63,6 @@ func (x *PopupBase) SetGoPointer(ptr uintptr) { | |||
| 63 | 63 | func (x *PopupBase) GetAutohide() bool { | |
| 64 | 64 | ||
| 65 | 65 | cret := XGdkPopupGetAutohide(x.GoPointer()) | |
| 66 | - | ||
| 67 | 66 | return cret | |
| 68 | 67 | } | |
| 69 | 68 | ||
| @@ -86,7 +85,6 @@ func (x *PopupBase) GetParent() *Surface { | |||
| 86 | 85 | func (x *PopupBase) GetPositionX() int { | |
| 87 | 86 | ||
| 88 | 87 | cret := XGdkPopupGetPositionX(x.GoPointer()) | |
| 89 | - | ||
| 90 | 88 | return cret | |
| 91 | 89 | } | |
| 92 | 90 | ||
| @@ -94,7 +92,6 @@ func (x *PopupBase) GetPositionX() int { | |||
| 94 | 92 | func (x *PopupBase) GetPositionY() int { | |
| 95 | 93 | ||
| 96 | 94 | cret := XGdkPopupGetPositionY(x.GoPointer()) | |
| 97 | - | ||
| 98 | 95 | return cret | |
| 99 | 96 | } | |
| 100 | 97 | ||
| @@ -105,7 +102,6 @@ func (x *PopupBase) GetPositionY() int { | |||
| 105 | 102 | func (x *PopupBase) GetRectAnchor() Gravity { | |
| 106 | 103 | ||
| 107 | 104 | cret := XGdkPopupGetRectAnchor(x.GoPointer()) | |
| 108 | - | ||
| 109 | 105 | return cret | |
| 110 | 106 | } | |
| 111 | 107 | ||
| @@ -116,7 +112,6 @@ func (x *PopupBase) GetRectAnchor() Gravity { | |||
| 116 | 112 | func (x *PopupBase) GetSurfaceAnchor() Gravity { | |
| 117 | 113 | ||
| 118 | 114 | cret := XGdkPopupGetSurfaceAnchor(x.GoPointer()) | |
| 119 | - | ||
| 120 | 115 | return cret | |
| 121 | 116 | } | |
| 122 | 117 | ||
| @@ -138,7 +133,6 @@ func (x *PopupBase) GetSurfaceAnchor() Gravity { | |||
| 138 | 133 | func (x *PopupBase) Present(WidthVar int, HeightVar int, LayoutVar *PopupLayout) bool { | |
| 139 | 134 | ||
| 140 | 135 | cret := XGdkPopupPresent(x.GoPointer(), WidthVar, HeightVar, LayoutVar) | |
| 141 | - | ||
| 142 | 136 | return cret | |
| 143 | 137 | } | |
| 144 | 138 | ||
M v4/gdk/gdkpopuplayout.go +0 -8
| @@ -74,7 +74,6 @@ var xNewPopupLayout func(*Rectangle, Gravity, Gravity) *PopupLayout | |||
| 74 | 74 | func NewPopupLayout(AnchorRectVar *Rectangle, RectAnchorVar Gravity, SurfaceAnchorVar Gravity) *PopupLayout { | |
| 75 | 75 | ||
| 76 | 76 | cret := xNewPopupLayout(AnchorRectVar, RectAnchorVar, SurfaceAnchorVar) | |
| 77 | - | ||
| 78 | 77 | return cret | |
| 79 | 78 | } | |
| 80 | 79 | ||
| @@ -84,7 +83,6 @@ var xPopupLayoutCopy func(uintptr) *PopupLayout | |||
| 84 | 83 | func (x *PopupLayout) Copy() *PopupLayout { | |
| 85 | 84 | ||
| 86 | 85 | cret := xPopupLayoutCopy(x.GoPointer()) | |
| 87 | - | ||
| 88 | 86 | return cret | |
| 89 | 87 | } | |
| 90 | 88 | ||
| @@ -94,7 +92,6 @@ var xPopupLayoutEqual func(uintptr, *PopupLayout) bool | |||
| 94 | 92 | func (x *PopupLayout) Equal(OtherVar *PopupLayout) bool { | |
| 95 | 93 | ||
| 96 | 94 | cret := xPopupLayoutEqual(x.GoPointer(), OtherVar) | |
| 97 | - | ||
| 98 | 95 | return cret | |
| 99 | 96 | } | |
| 100 | 97 | ||
| @@ -104,7 +101,6 @@ var xPopupLayoutGetAnchorHints func(uintptr) AnchorHints | |||
| 104 | 101 | func (x *PopupLayout) GetAnchorHints() AnchorHints { | |
| 105 | 102 | ||
| 106 | 103 | cret := xPopupLayoutGetAnchorHints(x.GoPointer()) | |
| 107 | - | ||
| 108 | 104 | return cret | |
| 109 | 105 | } | |
| 110 | 106 | ||
| @@ -114,7 +110,6 @@ var xPopupLayoutGetAnchorRect func(uintptr) *Rectangle | |||
| 114 | 110 | func (x *PopupLayout) GetAnchorRect() *Rectangle { | |
| 115 | 111 | ||
| 116 | 112 | cret := xPopupLayoutGetAnchorRect(x.GoPointer()) | |
| 117 | - | ||
| 118 | 113 | return cret | |
| 119 | 114 | } | |
| 120 | 115 | ||
| @@ -133,7 +128,6 @@ var xPopupLayoutGetRectAnchor func(uintptr) Gravity | |||
| 133 | 128 | func (x *PopupLayout) GetRectAnchor() Gravity { | |
| 134 | 129 | ||
| 135 | 130 | cret := xPopupLayoutGetRectAnchor(x.GoPointer()) | |
| 136 | - | ||
| 137 | 131 | return cret | |
| 138 | 132 | } | |
| 139 | 133 | ||
| @@ -152,7 +146,6 @@ var xPopupLayoutGetSurfaceAnchor func(uintptr) Gravity | |||
| 152 | 146 | func (x *PopupLayout) GetSurfaceAnchor() Gravity { | |
| 153 | 147 | ||
| 154 | 148 | cret := xPopupLayoutGetSurfaceAnchor(x.GoPointer()) | |
| 155 | - | ||
| 156 | 149 | return cret | |
| 157 | 150 | } | |
| 158 | 151 | ||
| @@ -162,7 +155,6 @@ var xPopupLayoutRef func(uintptr) *PopupLayout | |||
| 162 | 155 | func (x *PopupLayout) Ref() *PopupLayout { | |
| 163 | 156 | ||
| 164 | 157 | cret := xPopupLayoutRef(x.GoPointer()) | |
| 165 | - | ||
| 166 | 158 | return cret | |
| 167 | 159 | } | |
| 168 | 160 | ||
M v4/gdk/gdkrgba.go +0 -7
| @@ -48,7 +48,6 @@ var xRGBACopy func(uintptr) *RGBA | |||
| 48 | 48 | func (x *RGBA) Copy() *RGBA { | |
| 49 | 49 | ||
| 50 | 50 | cret := xRGBACopy(x.GoPointer()) | |
| 51 | - | ||
| 52 | 51 | return cret | |
| 53 | 52 | } | |
| 54 | 53 | ||
| @@ -58,7 +57,6 @@ var xRGBAEqual func(uintptr, uintptr) bool | |||
| 58 | 57 | func (x *RGBA) Equal(P2Var uintptr) bool { | |
| 59 | 58 | ||
| 60 | 59 | cret := xRGBAEqual(x.GoPointer(), P2Var) | |
| 61 | - | ||
| 62 | 60 | return cret | |
| 63 | 61 | } | |
| 64 | 62 | ||
| @@ -78,7 +76,6 @@ var xRGBAHash func(uintptr) uint | |||
| 78 | 76 | func (x *RGBA) Hash() uint { | |
| 79 | 77 | ||
| 80 | 78 | cret := xRGBAHash(x.GoPointer()) | |
| 81 | - | ||
| 82 | 79 | return cret | |
| 83 | 80 | } | |
| 84 | 81 | ||
| @@ -90,7 +87,6 @@ var xRGBAIsClear func(uintptr) bool | |||
| 90 | 87 | func (x *RGBA) IsClear() bool { | |
| 91 | 88 | ||
| 92 | 89 | cret := xRGBAIsClear(x.GoPointer()) | |
| 93 | - | ||
| 94 | 90 | return cret | |
| 95 | 91 | } | |
| 96 | 92 | ||
| @@ -103,7 +99,6 @@ var xRGBAIsOpaque func(uintptr) bool | |||
| 103 | 99 | func (x *RGBA) IsOpaque() bool { | |
| 104 | 100 | ||
| 105 | 101 | cret := xRGBAIsOpaque(x.GoPointer()) | |
| 106 | - | ||
| 107 | 102 | return cret | |
| 108 | 103 | } | |
| 109 | 104 | ||
| @@ -132,7 +127,6 @@ var xRGBAParse func(uintptr, string) bool | |||
| 132 | 127 | func (x *RGBA) Parse(SpecVar string) bool { | |
| 133 | 128 | ||
| 134 | 129 | cret := xRGBAParse(x.GoPointer(), SpecVar) | |
| 135 | - | ||
| 136 | 130 | return cret | |
| 137 | 131 | } | |
| 138 | 132 | ||
| @@ -154,7 +148,6 @@ var xRGBAToString func(uintptr) string | |||
| 154 | 148 | func (x *RGBA) ToString() string { | |
| 155 | 149 | ||
| 156 | 150 | cret := xRGBAToString(x.GoPointer()) | |
| 157 | - | ||
| 158 | 151 | return cret | |
| 159 | 152 | } | |
| 160 | 153 | ||
M v4/gdk/gdkseat.go +0 -3
| @@ -63,7 +63,6 @@ var xSeatGetCapabilities func(uintptr) SeatCapabilities | |||
| 63 | 63 | func (x *Seat) GetCapabilities() SeatCapabilities { | |
| 64 | 64 | ||
| 65 | 65 | cret := xSeatGetCapabilities(x.GoPointer()) | |
| 66 | - | ||
| 67 | 66 | return cret | |
| 68 | 67 | } | |
| 69 | 68 | ||
| @@ -73,7 +72,6 @@ var xSeatGetDevices func(uintptr, SeatCapabilities) *glib.List | |||
| 73 | 72 | func (x *Seat) GetDevices(CapabilitiesVar SeatCapabilities) *glib.List { | |
| 74 | 73 | ||
| 75 | 74 | cret := xSeatGetDevices(x.GoPointer(), CapabilitiesVar) | |
| 76 | - | ||
| 77 | 75 | return cret | |
| 78 | 76 | } | |
| 79 | 77 | ||
| @@ -134,7 +132,6 @@ var xSeatGetTools func(uintptr) *glib.List | |||
| 134 | 132 | func (x *Seat) GetTools() *glib.List { | |
| 135 | 133 | ||
| 136 | 134 | cret := xSeatGetTools(x.GoPointer()) | |
| 137 | - | ||
| 138 | 135 | return cret | |
| 139 | 136 | } | |
| 140 | 137 | ||
M v4/gdk/gdksurface.go +0 -9
| @@ -155,7 +155,6 @@ var xSurfaceCreateSimilarSurface func(uintptr, cairo.Content, int, int) *cairo.S | |||
| 155 | 155 | func (x *Surface) CreateSimilarSurface(ContentVar cairo.Content, WidthVar int, HeightVar int) *cairo.Surface { | |
| 156 | 156 | ||
| 157 | 157 | cret := xSurfaceCreateSimilarSurface(x.GoPointer(), ContentVar, WidthVar, HeightVar) | |
| 158 | - | ||
| 159 | 158 | return cret | |
| 160 | 159 | } | |
| 161 | 160 | ||
| @@ -252,7 +251,6 @@ var xSurfaceGetDevicePosition func(uintptr, uintptr, *float64, *float64, *Modifi | |||
| 252 | 251 | func (x *Surface) GetDevicePosition(DeviceVar *Device, XVar *float64, YVar *float64, MaskVar *ModifierType) bool { | |
| 253 | 252 | ||
| 254 | 253 | cret := xSurfaceGetDevicePosition(x.GoPointer(), DeviceVar.GoPointer(), XVar, YVar, MaskVar) | |
| 255 | - | ||
| 256 | 254 | return cret | |
| 257 | 255 | } | |
| 258 | 256 | ||
| @@ -302,7 +300,6 @@ var xSurfaceGetHeight func(uintptr) int | |||
| 302 | 300 | func (x *Surface) GetHeight() int { | |
| 303 | 301 | ||
| 304 | 302 | cret := xSurfaceGetHeight(x.GoPointer()) | |
| 305 | - | ||
| 306 | 303 | return cret | |
| 307 | 304 | } | |
| 308 | 305 | ||
| @@ -315,7 +312,6 @@ var xSurfaceGetMapped func(uintptr) bool | |||
| 315 | 312 | func (x *Surface) GetMapped() bool { | |
| 316 | 313 | ||
| 317 | 314 | cret := xSurfaceGetMapped(x.GoPointer()) | |
| 318 | - | ||
| 319 | 315 | return cret | |
| 320 | 316 | } | |
| 321 | 317 | ||
| @@ -335,7 +331,6 @@ var xSurfaceGetScale func(uintptr) float64 | |||
| 335 | 331 | func (x *Surface) GetScale() float64 { | |
| 336 | 332 | ||
| 337 | 333 | cret := xSurfaceGetScale(x.GoPointer()) | |
| 338 | - | ||
| 339 | 334 | return cret | |
| 340 | 335 | } | |
| 341 | 336 | ||
| @@ -355,7 +350,6 @@ var xSurfaceGetScaleFactor func(uintptr) int | |||
| 355 | 350 | func (x *Surface) GetScaleFactor() int { | |
| 356 | 351 | ||
| 357 | 352 | cret := xSurfaceGetScaleFactor(x.GoPointer()) | |
| 358 | - | ||
| 359 | 353 | return cret | |
| 360 | 354 | } | |
| 361 | 355 | ||
| @@ -368,7 +362,6 @@ var xSurfaceGetWidth func(uintptr) int | |||
| 368 | 362 | func (x *Surface) GetWidth() int { | |
| 369 | 363 | ||
| 370 | 364 | cret := xSurfaceGetWidth(x.GoPointer()) | |
| 371 | - | ||
| 372 | 365 | return cret | |
| 373 | 366 | } | |
| 374 | 367 | ||
| @@ -392,7 +385,6 @@ var xSurfaceIsDestroyed func(uintptr) bool | |||
| 392 | 385 | func (x *Surface) IsDestroyed() bool { | |
| 393 | 386 | ||
| 394 | 387 | cret := xSurfaceIsDestroyed(x.GoPointer()) | |
| 395 | - | ||
| 396 | 388 | return cret | |
| 397 | 389 | } | |
| 398 | 390 | ||
| @@ -505,7 +497,6 @@ var xSurfaceTranslateCoordinates func(uintptr, uintptr, float64, float64) bool | |||
| 505 | 497 | func (x *Surface) TranslateCoordinates(ToVar *Surface, XVar float64, YVar float64) bool { | |
| 506 | 498 | ||
| 507 | 499 | cret := xSurfaceTranslateCoordinates(x.GoPointer(), ToVar.GoPointer(), XVar, YVar) | |
| 508 | - | ||
| 509 | 500 | return cret | |
| 510 | 501 | } | |
| 511 | 502 | ||
M v4/gdk/gdktexture.go +0 -17
| @@ -50,7 +50,6 @@ var xTextureErrorQuark func() glib.Quark | |||
| 50 | 50 | func TextureErrorQuark() glib.Quark { | |
| 51 | 51 | ||
| 52 | 52 | cret := xTextureErrorQuark() | |
| 53 | - | ||
| 54 | 53 | return cret | |
| 55 | 54 | } | |
| 56 | 55 | ||
| @@ -292,7 +291,6 @@ var xTextureGetColorState func(uintptr) *ColorState | |||
| 292 | 291 | func (x *Texture) GetColorState() *ColorState { | |
| 293 | 292 | ||
| 294 | 293 | cret := xTextureGetColorState(x.GoPointer()) | |
| 295 | - | ||
| 296 | 294 | return cret | |
| 297 | 295 | } | |
| 298 | 296 | ||
| @@ -310,7 +308,6 @@ var xTextureGetFormat func(uintptr) MemoryFormat | |||
| 310 | 308 | func (x *Texture) GetFormat() MemoryFormat { | |
| 311 | 309 | ||
| 312 | 310 | cret := xTextureGetFormat(x.GoPointer()) | |
| 313 | - | ||
| 314 | 311 | return cret | |
| 315 | 312 | } | |
| 316 | 313 | ||
| @@ -320,7 +317,6 @@ var xTextureGetHeight func(uintptr) int | |||
| 320 | 317 | func (x *Texture) GetHeight() int { | |
| 321 | 318 | ||
| 322 | 319 | cret := xTextureGetHeight(x.GoPointer()) | |
| 323 | - | ||
| 324 | 320 | return cret | |
| 325 | 321 | } | |
| 326 | 322 | ||
| @@ -330,7 +326,6 @@ var xTextureGetWidth func(uintptr) int | |||
| 330 | 326 | func (x *Texture) GetWidth() int { | |
| 331 | 327 | ||
| 332 | 328 | cret := xTextureGetWidth(x.GoPointer()) | |
| 333 | - | ||
| 334 | 329 | return cret | |
| 335 | 330 | } | |
| 336 | 331 | ||
| @@ -346,7 +341,6 @@ var xTextureSaveToPng func(uintptr, string) bool | |||
| 346 | 341 | func (x *Texture) SaveToPng(FilenameVar string) bool { | |
| 347 | 342 | ||
| 348 | 343 | cret := xTextureSaveToPng(x.GoPointer(), FilenameVar) | |
| 349 | - | ||
| 350 | 344 | return cret | |
| 351 | 345 | } | |
| 352 | 346 | ||
| @@ -369,7 +363,6 @@ var xTextureSaveToPngBytes func(uintptr) *glib.Bytes | |||
| 369 | 363 | func (x *Texture) SaveToPngBytes() *glib.Bytes { | |
| 370 | 364 | ||
| 371 | 365 | cret := xTextureSaveToPngBytes(x.GoPointer()) | |
| 372 | - | ||
| 373 | 366 | return cret | |
| 374 | 367 | } | |
| 375 | 368 | ||
| @@ -381,7 +374,6 @@ var xTextureSaveToTiff func(uintptr, string) bool | |||
| 381 | 374 | func (x *Texture) SaveToTiff(FilenameVar string) bool { | |
| 382 | 375 | ||
| 383 | 376 | cret := xTextureSaveToTiff(x.GoPointer(), FilenameVar) | |
| 384 | - | ||
| 385 | 377 | return cret | |
| 386 | 378 | } | |
| 387 | 379 | ||
| @@ -402,7 +394,6 @@ var xTextureSaveToTiffBytes func(uintptr) *glib.Bytes | |||
| 402 | 394 | func (x *Texture) SaveToTiffBytes() *glib.Bytes { | |
| 403 | 395 | ||
| 404 | 396 | cret := xTextureSaveToTiffBytes(x.GoPointer()) | |
| 405 | - | ||
| 406 | 397 | return cret | |
| 407 | 398 | } | |
| 408 | 399 | ||
| @@ -511,7 +502,6 @@ func (x *Texture) GetCurrentImage() *PaintableBase { | |||
| 511 | 502 | func (x *Texture) GetFlags() PaintableFlags { | |
| 512 | 503 | ||
| 513 | 504 | cret := XGdkPaintableGetFlags(x.GoPointer()) | |
| 514 | - | ||
| 515 | 505 | return cret | |
| 516 | 506 | } | |
| 517 | 507 | ||
| @@ -535,7 +525,6 @@ func (x *Texture) GetFlags() PaintableFlags { | |||
| 535 | 525 | func (x *Texture) GetIntrinsicAspectRatio() float64 { | |
| 536 | 526 | ||
| 537 | 527 | cret := XGdkPaintableGetIntrinsicAspectRatio(x.GoPointer()) | |
| 538 | - | ||
| 539 | 528 | return cret | |
| 540 | 529 | } | |
| 541 | 530 | ||
| @@ -552,7 +541,6 @@ func (x *Texture) GetIntrinsicAspectRatio() float64 { | |||
| 552 | 541 | func (x *Texture) GetIntrinsicHeight() int { | |
| 553 | 542 | ||
| 554 | 543 | cret := XGdkPaintableGetIntrinsicHeight(x.GoPointer()) | |
| 555 | - | ||
| 556 | 544 | return cret | |
| 557 | 545 | } | |
| 558 | 546 | ||
| @@ -569,7 +557,6 @@ func (x *Texture) GetIntrinsicHeight() int { | |||
| 569 | 557 | func (x *Texture) GetIntrinsicWidth() int { | |
| 570 | 558 | ||
| 571 | 559 | cret := XGdkPaintableGetIntrinsicWidth(x.GoPointer()) | |
| 572 | - | ||
| 573 | 560 | return cret | |
| 574 | 561 | } | |
| 575 | 562 | ||
| @@ -620,7 +607,6 @@ func (x *Texture) Snapshot(SnapshotVar *Snapshot, WidthVar float64, HeightVar fl | |||
| 620 | 607 | func (x *Texture) Equal(Icon2Var gio.Icon) bool { | |
| 621 | 608 | ||
| 622 | 609 | cret := gio.XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 623 | - | ||
| 624 | 610 | return cret | |
| 625 | 611 | } | |
| 626 | 612 | ||
| @@ -628,7 +614,6 @@ func (x *Texture) Equal(Icon2Var gio.Icon) bool { | |||
| 628 | 614 | func (x *Texture) Hash() uint { | |
| 629 | 615 | ||
| 630 | 616 | cret := gio.XGIconHash(x.GoPointer()) | |
| 631 | - | ||
| 632 | 617 | return cret | |
| 633 | 618 | } | |
| 634 | 619 | ||
| @@ -640,7 +625,6 @@ func (x *Texture) Hash() uint { | |||
| 640 | 625 | func (x *Texture) Serialize() *glib.Variant { | |
| 641 | 626 | ||
| 642 | 627 | cret := gio.XGIconSerialize(x.GoPointer()) | |
| 643 | - | ||
| 644 | 628 | return cret | |
| 645 | 629 | } | |
| 646 | 630 | ||
| @@ -663,7 +647,6 @@ func (x *Texture) Serialize() *glib.Variant { | |||
| 663 | 647 | func (x *Texture) ToString() string { | |
| 664 | 648 | ||
| 665 | 649 | cret := gio.XGIconToString(x.GoPointer()) | |
| 666 | - | ||
| 667 | 650 | return cret | |
| 668 | 651 | } | |
| 669 | 652 | ||
M v4/gdk/gdktoplevel.go +0 -8
| @@ -106,7 +106,6 @@ func (x *ToplevelBase) Focus(TimestampVar uint32) { | |||
| 106 | 106 | func (x *ToplevelBase) GetCapabilities() ToplevelCapabilities { | |
| 107 | 107 | ||
| 108 | 108 | cret := XGdkToplevelGetCapabilities(x.GoPointer()) | |
| 109 | - | ||
| 110 | 109 | return cret | |
| 111 | 110 | } | |
| 112 | 111 | ||
| @@ -115,7 +114,6 @@ func (x *ToplevelBase) GetCapabilities() ToplevelCapabilities { | |||
| 115 | 114 | func (x *ToplevelBase) GetGravity() Gravity { | |
| 116 | 115 | ||
| 117 | 116 | cret := XGdkToplevelGetGravity(x.GoPointer()) | |
| 118 | - | ||
| 119 | 117 | return cret | |
| 120 | 118 | } | |
| 121 | 119 | ||
| @@ -124,7 +122,6 @@ func (x *ToplevelBase) GetGravity() Gravity { | |||
| 124 | 122 | func (x *ToplevelBase) GetState() ToplevelState { | |
| 125 | 123 | ||
| 126 | 124 | cret := XGdkToplevelGetState(x.GoPointer()) | |
| 127 | - | ||
| 128 | 125 | return cret | |
| 129 | 126 | } | |
| 130 | 127 | ||
| @@ -161,7 +158,6 @@ func (x *ToplevelBase) InhibitSystemShortcuts(EventVar *Event) { | |||
| 161 | 158 | func (x *ToplevelBase) Lower() bool { | |
| 162 | 159 | ||
| 163 | 160 | cret := XGdkToplevelLower(x.GoPointer()) | |
| 164 | - | ||
| 165 | 161 | return cret | |
| 166 | 162 | } | |
| 167 | 163 | ||
| @@ -171,7 +167,6 @@ func (x *ToplevelBase) Lower() bool { | |||
| 171 | 167 | func (x *ToplevelBase) Minimize() bool { | |
| 172 | 168 | ||
| 173 | 169 | cret := XGdkToplevelMinimize(x.GoPointer()) | |
| 174 | - | ||
| 175 | 170 | return cret | |
| 176 | 171 | } | |
| 177 | 172 | ||
| @@ -306,7 +301,6 @@ func (x *ToplevelBase) SetTransientFor(ParentVar *Surface) { | |||
| 306 | 301 | func (x *ToplevelBase) ShowWindowMenu(EventVar *Event) bool { | |
| 307 | 302 | ||
| 308 | 303 | cret := XGdkToplevelShowWindowMenu(x.GoPointer(), EventVar.GoPointer()) | |
| 309 | - | ||
| 310 | 304 | return cret | |
| 311 | 305 | } | |
| 312 | 306 | ||
| @@ -315,7 +309,6 @@ func (x *ToplevelBase) ShowWindowMenu(EventVar *Event) bool { | |||
| 315 | 309 | func (x *ToplevelBase) SupportsEdgeConstraints() bool { | |
| 316 | 310 | ||
| 317 | 311 | cret := XGdkToplevelSupportsEdgeConstraints(x.GoPointer()) | |
| 318 | - | ||
| 319 | 312 | return cret | |
| 320 | 313 | } | |
| 321 | 314 | ||
| @@ -323,7 +316,6 @@ func (x *ToplevelBase) SupportsEdgeConstraints() bool { | |||
| 323 | 316 | func (x *ToplevelBase) TitlebarGesture(GestureVar TitlebarGesture) bool { | |
| 324 | 317 | ||
| 325 | 318 | cret := XGdkToplevelTitlebarGesture(x.GoPointer(), GestureVar) | |
| 326 | - | ||
| 327 | 319 | return cret | |
| 328 | 320 | } | |
| 329 | 321 | ||
M v4/gdk/gdktoplevellayout.go +0 -7
| @@ -46,7 +46,6 @@ var xNewToplevelLayout func() *ToplevelLayout | |||
| 46 | 46 | func NewToplevelLayout() *ToplevelLayout { | |
| 47 | 47 | ||
| 48 | 48 | cret := xNewToplevelLayout() | |
| 49 | - | ||
| 50 | 49 | return cret | |
| 51 | 50 | } | |
| 52 | 51 | ||
| @@ -56,7 +55,6 @@ var xToplevelLayoutCopy func(uintptr) *ToplevelLayout | |||
| 56 | 55 | func (x *ToplevelLayout) Copy() *ToplevelLayout { | |
| 57 | 56 | ||
| 58 | 57 | cret := xToplevelLayoutCopy(x.GoPointer()) | |
| 59 | - | ||
| 60 | 58 | return cret | |
| 61 | 59 | } | |
| 62 | 60 | ||
| @@ -66,7 +64,6 @@ var xToplevelLayoutEqual func(uintptr, *ToplevelLayout) bool | |||
| 66 | 64 | func (x *ToplevelLayout) Equal(OtherVar *ToplevelLayout) bool { | |
| 67 | 65 | ||
| 68 | 66 | cret := xToplevelLayoutEqual(x.GoPointer(), OtherVar) | |
| 69 | - | ||
| 70 | 67 | return cret | |
| 71 | 68 | } | |
| 72 | 69 | ||
| @@ -78,7 +75,6 @@ var xToplevelLayoutGetFullscreen func(uintptr, *bool) bool | |||
| 78 | 75 | func (x *ToplevelLayout) GetFullscreen(FullscreenVar *bool) bool { | |
| 79 | 76 | ||
| 80 | 77 | cret := xToplevelLayoutGetFullscreen(x.GoPointer(), FullscreenVar) | |
| 81 | - | ||
| 82 | 78 | return cret | |
| 83 | 79 | } | |
| 84 | 80 | ||
| @@ -108,7 +104,6 @@ var xToplevelLayoutGetMaximized func(uintptr, *bool) bool | |||
| 108 | 104 | func (x *ToplevelLayout) GetMaximized(MaximizedVar *bool) bool { | |
| 109 | 105 | ||
| 110 | 106 | cret := xToplevelLayoutGetMaximized(x.GoPointer(), MaximizedVar) | |
| 111 | - | ||
| 112 | 107 | return cret | |
| 113 | 108 | } | |
| 114 | 109 | ||
| @@ -119,7 +114,6 @@ var xToplevelLayoutGetResizable func(uintptr) bool | |||
| 119 | 114 | func (x *ToplevelLayout) GetResizable() bool { | |
| 120 | 115 | ||
| 121 | 116 | cret := xToplevelLayoutGetResizable(x.GoPointer()) | |
| 122 | - | ||
| 123 | 117 | return cret | |
| 124 | 118 | } | |
| 125 | 119 | ||
| @@ -129,7 +123,6 @@ var xToplevelLayoutRef func(uintptr) *ToplevelLayout | |||
| 129 | 123 | func (x *ToplevelLayout) Ref() *ToplevelLayout { | |
| 130 | 124 | ||
| 131 | 125 | cret := xToplevelLayoutRef(x.GoPointer()) | |
| 132 | - | ||
| 133 | 126 | return cret | |
| 134 | 127 | } | |
| 135 | 128 | ||
M v4/gdk/gdktypes.go +0 -33
| @@ -65,7 +65,6 @@ var xColorStateEqual func(uintptr, *ColorState) bool | |||
| 65 | 65 | func (x *ColorState) Equal(OtherVar *ColorState) bool { | |
| 66 | 66 | ||
| 67 | 67 | cret := xColorStateEqual(x.GoPointer(), OtherVar) | |
| 68 | - | ||
| 69 | 68 | return cret | |
| 70 | 69 | } | |
| 71 | 70 | ||
| @@ -78,7 +77,6 @@ var xColorStateEquivalent func(uintptr, *ColorState) bool | |||
| 78 | 77 | func (x *ColorState) Equivalent(OtherVar *ColorState) bool { | |
| 79 | 78 | ||
| 80 | 79 | cret := xColorStateEquivalent(x.GoPointer(), OtherVar) | |
| 81 | - | ||
| 82 | 80 | return cret | |
| 83 | 81 | } | |
| 84 | 82 | ||
| @@ -88,7 +86,6 @@ var xColorStateRef func(uintptr) *ColorState | |||
| 88 | 86 | func (x *ColorState) Ref() *ColorState { | |
| 89 | 87 | ||
| 90 | 88 | cret := xColorStateRef(x.GoPointer()) | |
| 91 | - | ||
| 92 | 89 | return cret | |
| 93 | 90 | } | |
| 94 | 91 | ||
| @@ -159,7 +156,6 @@ var xNewContentFormats func([]string, uint) *ContentFormats | |||
| 159 | 156 | func NewContentFormats(MimeTypesVar []string, NMimeTypesVar uint) *ContentFormats { | |
| 160 | 157 | ||
| 161 | 158 | cret := xNewContentFormats(MimeTypesVar, NMimeTypesVar) | |
| 162 | - | ||
| 163 | 159 | return cret | |
| 164 | 160 | } | |
| 165 | 161 | ||
| @@ -169,7 +165,6 @@ var xNewContentFormatsForGtype func(types.GType) *ContentFormats | |||
| 169 | 165 | func NewContentFormatsForGtype(TypeVar types.GType) *ContentFormats { | |
| 170 | 166 | ||
| 171 | 167 | cret := xNewContentFormatsForGtype(TypeVar) | |
| 172 | - | ||
| 173 | 168 | return cret | |
| 174 | 169 | } | |
| 175 | 170 | ||
| @@ -179,7 +174,6 @@ var xContentFormatsContainGtype func(uintptr, types.GType) bool | |||
| 179 | 174 | func (x *ContentFormats) ContainGtype(TypeVar types.GType) bool { | |
| 180 | 175 | ||
| 181 | 176 | cret := xContentFormatsContainGtype(x.GoPointer(), TypeVar) | |
| 182 | - | ||
| 183 | 177 | return cret | |
| 184 | 178 | } | |
| 185 | 179 | ||
| @@ -189,7 +183,6 @@ var xContentFormatsContainMimeType func(uintptr, string) bool | |||
| 189 | 183 | func (x *ContentFormats) ContainMimeType(MimeTypeVar string) bool { | |
| 190 | 184 | ||
| 191 | 185 | cret := xContentFormatsContainMimeType(x.GoPointer(), MimeTypeVar) | |
| 192 | - | ||
| 193 | 186 | return cret | |
| 194 | 187 | } | |
| 195 | 188 | ||
| @@ -202,7 +195,6 @@ var xContentFormatsGetGtypes func(uintptr, *uint) uintptr | |||
| 202 | 195 | func (x *ContentFormats) GetGtypes(NGtypesVar *uint) uintptr { | |
| 203 | 196 | ||
| 204 | 197 | cret := xContentFormatsGetGtypes(x.GoPointer(), NGtypesVar) | |
| 205 | - | ||
| 206 | 198 | return cret | |
| 207 | 199 | } | |
| 208 | 200 | ||
| @@ -215,7 +207,6 @@ var xContentFormatsGetMimeTypes func(uintptr, *uint) []string | |||
| 215 | 207 | func (x *ContentFormats) GetMimeTypes(NMimeTypesVar *uint) []string { | |
| 216 | 208 | ||
| 217 | 209 | cret := xContentFormatsGetMimeTypes(x.GoPointer(), NMimeTypesVar) | |
| 218 | - | ||
| 219 | 210 | return cret | |
| 220 | 211 | } | |
| 221 | 212 | ||
| @@ -225,7 +216,6 @@ var xContentFormatsIsEmpty func(uintptr) bool | |||
| 225 | 216 | func (x *ContentFormats) IsEmpty() bool { | |
| 226 | 217 | ||
| 227 | 218 | cret := xContentFormatsIsEmpty(x.GoPointer()) | |
| 228 | - | ||
| 229 | 219 | return cret | |
| 230 | 220 | } | |
| 231 | 221 | ||
| @@ -235,7 +225,6 @@ var xContentFormatsMatch func(uintptr, *ContentFormats) bool | |||
| 235 | 225 | func (x *ContentFormats) Match(SecondVar *ContentFormats) bool { | |
| 236 | 226 | ||
| 237 | 227 | cret := xContentFormatsMatch(x.GoPointer(), SecondVar) | |
| 238 | - | ||
| 239 | 228 | return cret | |
| 240 | 229 | } | |
| 241 | 230 | ||
| @@ -248,7 +237,6 @@ var xContentFormatsMatchGtype func(uintptr, *ContentFormats) types.GType | |||
| 248 | 237 | func (x *ContentFormats) MatchGtype(SecondVar *ContentFormats) types.GType { | |
| 249 | 238 | ||
| 250 | 239 | cret := xContentFormatsMatchGtype(x.GoPointer(), SecondVar) | |
| 251 | - | ||
| 252 | 240 | return cret | |
| 253 | 241 | } | |
| 254 | 242 | ||
| @@ -261,7 +249,6 @@ var xContentFormatsMatchMimeType func(uintptr, *ContentFormats) string | |||
| 261 | 249 | func (x *ContentFormats) MatchMimeType(SecondVar *ContentFormats) string { | |
| 262 | 250 | ||
| 263 | 251 | cret := xContentFormatsMatchMimeType(x.GoPointer(), SecondVar) | |
| 264 | - | ||
| 265 | 252 | return cret | |
| 266 | 253 | } | |
| 267 | 254 | ||
| @@ -283,7 +270,6 @@ var xContentFormatsRef func(uintptr) *ContentFormats | |||
| 283 | 270 | func (x *ContentFormats) Ref() *ContentFormats { | |
| 284 | 271 | ||
| 285 | 272 | cret := xContentFormatsRef(x.GoPointer()) | |
| 286 | - | ||
| 287 | 273 | return cret | |
| 288 | 274 | } | |
| 289 | 275 | ||
| @@ -298,7 +284,6 @@ var xContentFormatsToString func(uintptr) string | |||
| 298 | 284 | func (x *ContentFormats) ToString() string { | |
| 299 | 285 | ||
| 300 | 286 | cret := xContentFormatsToString(x.GoPointer()) | |
| 301 | - | ||
| 302 | 287 | return cret | |
| 303 | 288 | } | |
| 304 | 289 | ||
| @@ -309,7 +294,6 @@ var xContentFormatsUnion func(uintptr, *ContentFormats) *ContentFormats | |||
| 309 | 294 | func (x *ContentFormats) Union(SecondVar *ContentFormats) *ContentFormats { | |
| 310 | 295 | ||
| 311 | 296 | cret := xContentFormatsUnion(x.GoPointer(), SecondVar) | |
| 312 | - | ||
| 313 | 297 | return cret | |
| 314 | 298 | } | |
| 315 | 299 | ||
| @@ -320,7 +304,6 @@ var xContentFormatsUnionDeserializeGtypes func(uintptr) *ContentFormats | |||
| 320 | 304 | func (x *ContentFormats) UnionDeserializeGtypes() *ContentFormats { | |
| 321 | 305 | ||
| 322 | 306 | cret := xContentFormatsUnionDeserializeGtypes(x.GoPointer()) | |
| 323 | - | ||
| 324 | 307 | return cret | |
| 325 | 308 | } | |
| 326 | 309 | ||
| @@ -331,7 +314,6 @@ var xContentFormatsUnionDeserializeMimeTypes func(uintptr) *ContentFormats | |||
| 331 | 314 | func (x *ContentFormats) UnionDeserializeMimeTypes() *ContentFormats { | |
| 332 | 315 | ||
| 333 | 316 | cret := xContentFormatsUnionDeserializeMimeTypes(x.GoPointer()) | |
| 334 | - | ||
| 335 | 317 | return cret | |
| 336 | 318 | } | |
| 337 | 319 | ||
| @@ -342,7 +324,6 @@ var xContentFormatsUnionSerializeGtypes func(uintptr) *ContentFormats | |||
| 342 | 324 | func (x *ContentFormats) UnionSerializeGtypes() *ContentFormats { | |
| 343 | 325 | ||
| 344 | 326 | cret := xContentFormatsUnionSerializeGtypes(x.GoPointer()) | |
| 345 | - | ||
| 346 | 327 | return cret | |
| 347 | 328 | } | |
| 348 | 329 | ||
| @@ -353,7 +334,6 @@ var xContentFormatsUnionSerializeMimeTypes func(uintptr) *ContentFormats | |||
| 353 | 334 | func (x *ContentFormats) UnionSerializeMimeTypes() *ContentFormats { | |
| 354 | 335 | ||
| 355 | 336 | cret := xContentFormatsUnionSerializeMimeTypes(x.GoPointer()) | |
| 356 | - | ||
| 357 | 337 | return cret | |
| 358 | 338 | } | |
| 359 | 339 | ||
| @@ -407,7 +387,6 @@ var xDmabufFormatsContains func(uintptr, uint32, uint64) bool | |||
| 407 | 387 | func (x *DmabufFormats) Contains(FourccVar uint32, ModifierVar uint64) bool { | |
| 408 | 388 | ||
| 409 | 389 | cret := xDmabufFormatsContains(x.GoPointer(), FourccVar, ModifierVar) | |
| 410 | - | ||
| 411 | 390 | return cret | |
| 412 | 391 | } | |
| 413 | 392 | ||
| @@ -418,7 +397,6 @@ var xDmabufFormatsEqual func(uintptr, *DmabufFormats) bool | |||
| 418 | 397 | func (x *DmabufFormats) Equal(Formats2Var *DmabufFormats) bool { | |
| 419 | 398 | ||
| 420 | 399 | cret := xDmabufFormatsEqual(x.GoPointer(), Formats2Var) | |
| 421 | - | ||
| 422 | 400 | return cret | |
| 423 | 401 | } | |
| 424 | 402 | ||
| @@ -443,7 +421,6 @@ var xDmabufFormatsGetNFormats func(uintptr) uint | |||
| 443 | 421 | func (x *DmabufFormats) GetNFormats() uint { | |
| 444 | 422 | ||
| 445 | 423 | cret := xDmabufFormatsGetNFormats(x.GoPointer()) | |
| 446 | - | ||
| 447 | 424 | return cret | |
| 448 | 425 | } | |
| 449 | 426 | ||
| @@ -453,7 +430,6 @@ var xDmabufFormatsRef func(uintptr) *DmabufFormats | |||
| 453 | 430 | func (x *DmabufFormats) Ref() *DmabufFormats { | |
| 454 | 431 | ||
| 455 | 432 | cret := xDmabufFormatsRef(x.GoPointer()) | |
| 456 | - | ||
| 457 | 433 | return cret | |
| 458 | 434 | } | |
| 459 | 435 | ||
| @@ -527,7 +503,6 @@ var xRectangleContainsPoint func(uintptr, int, int) bool | |||
| 527 | 503 | func (x *Rectangle) ContainsPoint(XVar int, YVar int) bool { | |
| 528 | 504 | ||
| 529 | 505 | cret := xRectangleContainsPoint(x.GoPointer(), XVar, YVar) | |
| 530 | - | ||
| 531 | 506 | return cret | |
| 532 | 507 | } | |
| 533 | 508 | ||
| @@ -537,7 +512,6 @@ var xRectangleEqual func(uintptr, *Rectangle) bool | |||
| 537 | 512 | func (x *Rectangle) Equal(Rect2Var *Rectangle) bool { | |
| 538 | 513 | ||
| 539 | 514 | cret := xRectangleEqual(x.GoPointer(), Rect2Var) | |
| 540 | - | ||
| 541 | 515 | return cret | |
| 542 | 516 | } | |
| 543 | 517 | ||
| @@ -553,7 +527,6 @@ var xRectangleIntersect func(uintptr, *Rectangle, *Rectangle) bool | |||
| 553 | 527 | func (x *Rectangle) Intersect(Src2Var *Rectangle, DestVar *Rectangle) bool { | |
| 554 | 528 | ||
| 555 | 529 | cret := xRectangleIntersect(x.GoPointer(), Src2Var, DestVar) | |
| 556 | - | ||
| 557 | 530 | return cret | |
| 558 | 531 | } | |
| 559 | 532 | ||
| @@ -605,7 +578,6 @@ var xNewTextureDownloader func(uintptr) *TextureDownloader | |||
| 605 | 578 | func NewTextureDownloader(TextureVar *Texture) *TextureDownloader { | |
| 606 | 579 | ||
| 607 | 580 | cret := xNewTextureDownloader(TextureVar.GoPointer()) | |
| 608 | - | ||
| 609 | 581 | return cret | |
| 610 | 582 | } | |
| 611 | 583 | ||
| @@ -617,7 +589,6 @@ var xTextureDownloaderCopy func(uintptr) *TextureDownloader | |||
| 617 | 589 | func (x *TextureDownloader) Copy() *TextureDownloader { | |
| 618 | 590 | ||
| 619 | 591 | cret := xTextureDownloaderCopy(x.GoPointer()) | |
| 620 | - | ||
| 621 | 592 | return cret | |
| 622 | 593 | } | |
| 623 | 594 | ||
| @@ -636,7 +607,6 @@ var xTextureDownloaderDownloadBytes func(uintptr, *uint) *glib.Bytes | |||
| 636 | 607 | func (x *TextureDownloader) DownloadBytes(OutStrideVar *uint) *glib.Bytes { | |
| 637 | 608 | ||
| 638 | 609 | cret := xTextureDownloaderDownloadBytes(x.GoPointer(), OutStrideVar) | |
| 639 | - | ||
| 640 | 610 | return cret | |
| 641 | 611 | } | |
| 642 | 612 | ||
| @@ -650,7 +620,6 @@ var xTextureDownloaderDownloadBytesWithPlanes func(uintptr, *[4]uint, *[4]uint) | |||
| 650 | 620 | func (x *TextureDownloader) DownloadBytesWithPlanes(OutOffsetsVar *[4]uint, OutStridesVar *[4]uint) *glib.Bytes { | |
| 651 | 621 | ||
| 652 | 622 | cret := xTextureDownloaderDownloadBytesWithPlanes(x.GoPointer(), OutOffsetsVar, OutStridesVar) | |
| 653 | - | ||
| 654 | 623 | return cret | |
| 655 | 624 | } | |
| 656 | 625 | ||
| @@ -680,7 +649,6 @@ var xTextureDownloaderGetColorState func(uintptr) *ColorState | |||
| 680 | 649 | func (x *TextureDownloader) GetColorState() *ColorState { | |
| 681 | 650 | ||
| 682 | 651 | cret := xTextureDownloaderGetColorState(x.GoPointer()) | |
| 683 | - | ||
| 684 | 652 | return cret | |
| 685 | 653 | } | |
| 686 | 654 | ||
| @@ -690,7 +658,6 @@ var xTextureDownloaderGetFormat func(uintptr) MemoryFormat | |||
| 690 | 658 | func (x *TextureDownloader) GetFormat() MemoryFormat { | |
| 691 | 659 | ||
| 692 | 660 | cret := xTextureDownloaderGetFormat(x.GoPointer()) | |
| 693 | - | ||
| 694 | 661 | return cret | |
| 695 | 662 | } | |
| 696 | 663 | ||
M v4/gdk/gdkvulkancontext.go +0 -1
| @@ -17,7 +17,6 @@ var xVulkanErrorQuark func() glib.Quark | |||
| 17 | 17 | func VulkanErrorQuark() glib.Quark { | |
| 18 | 18 | ||
| 19 | 19 | cret := xVulkanErrorQuark() | |
| 20 | - | ||
| 21 | 20 | return cret | |
| 22 | 21 | } | |
| 23 | 22 | ||
M v4/gdkpixbuf/gdk-pixbuf-animation.go +0 -6
| @@ -438,7 +438,6 @@ var xPixbufAnimationGetHeight func(uintptr) int | |||
| 438 | 438 | func (x *PixbufAnimation) GetHeight() int { | |
| 439 | 439 | ||
| 440 | 440 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | |
| 441 | - | ||
| 442 | 441 | return cret | |
| 443 | 442 | } | |
| 444 | 443 | ||
| @@ -524,7 +523,6 @@ var xPixbufAnimationGetWidth func(uintptr) int | |||
| 524 | 523 | func (x *PixbufAnimation) GetWidth() int { | |
| 525 | 524 | ||
| 526 | 525 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | |
| 527 | - | ||
| 528 | 526 | return cret | |
| 529 | 527 | } | |
| 530 | 528 | ||
| @@ -539,7 +537,6 @@ var xPixbufAnimationIsStaticImage func(uintptr) bool | |||
| 539 | 537 | func (x *PixbufAnimation) IsStaticImage() bool { | |
| 540 | 538 | ||
| 541 | 539 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | |
| 542 | - | ||
| 543 | 540 | return cret | |
| 544 | 541 | } | |
| 545 | 542 | ||
| @@ -654,7 +651,6 @@ var xPixbufAnimationIterAdvance func(uintptr, *glib.TimeVal) bool | |||
| 654 | 651 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | |
| 655 | 652 | ||
| 656 | 653 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | |
| 657 | - | ||
| 658 | 654 | return cret | |
| 659 | 655 | } | |
| 660 | 656 | ||
| @@ -672,7 +668,6 @@ var xPixbufAnimationIterGetDelayTime func(uintptr) int | |||
| 672 | 668 | func (x *PixbufAnimationIter) GetDelayTime() int { | |
| 673 | 669 | ||
| 674 | 670 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | |
| 675 | - | ||
| 676 | 671 | return cret | |
| 677 | 672 | } | |
| 678 | 673 | ||
| @@ -718,7 +713,6 @@ var xPixbufAnimationIterOnCurrentlyLoadingFrame func(uintptr) bool | |||
| 718 | 713 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | |
| 719 | 714 | ||
| 720 | 715 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | |
| 721 | - | ||
| 722 | 716 | return cret | |
| 723 | 717 | } | |
| 724 | 718 | ||
M v4/gdkpixbuf/gdk-pixbuf-io.go +0 -10
| @@ -143,7 +143,6 @@ var xPixbufFormatCopy func(uintptr) *PixbufFormat | |||
| 143 | 143 | func (x *PixbufFormat) Copy() *PixbufFormat { | |
| 144 | 144 | ||
| 145 | 145 | cret := xPixbufFormatCopy(x.GoPointer()) | |
| 146 | - | ||
| 147 | 146 | return cret | |
| 148 | 147 | } | |
| 149 | 148 | ||
| @@ -163,7 +162,6 @@ var xPixbufFormatGetDescription func(uintptr) string | |||
| 163 | 162 | func (x *PixbufFormat) GetDescription() string { | |
| 164 | 163 | ||
| 165 | 164 | cret := xPixbufFormatGetDescription(x.GoPointer()) | |
| 166 | - | ||
| 167 | 165 | return cret | |
| 168 | 166 | } | |
| 169 | 167 | ||
| @@ -174,7 +172,6 @@ var xPixbufFormatGetExtensions func(uintptr) []string | |||
| 174 | 172 | func (x *PixbufFormat) GetExtensions() []string { | |
| 175 | 173 | ||
| 176 | 174 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | |
| 177 | - | ||
| 178 | 175 | return cret | |
| 179 | 176 | } | |
| 180 | 177 | ||
| @@ -187,7 +184,6 @@ var xPixbufFormatGetLicense func(uintptr) string | |||
| 187 | 184 | func (x *PixbufFormat) GetLicense() string { | |
| 188 | 185 | ||
| 189 | 186 | cret := xPixbufFormatGetLicense(x.GoPointer()) | |
| 190 | - | ||
| 191 | 187 | return cret | |
| 192 | 188 | } | |
| 193 | 189 | ||
| @@ -197,7 +193,6 @@ var xPixbufFormatGetMimeTypes func(uintptr) []string | |||
| 197 | 193 | func (x *PixbufFormat) GetMimeTypes() []string { | |
| 198 | 194 | ||
| 199 | 195 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | |
| 200 | - | ||
| 201 | 196 | return cret | |
| 202 | 197 | } | |
| 203 | 198 | ||
| @@ -207,7 +202,6 @@ var xPixbufFormatGetName func(uintptr) string | |||
| 207 | 202 | func (x *PixbufFormat) GetName() string { | |
| 208 | 203 | ||
| 209 | 204 | cret := xPixbufFormatGetName(x.GoPointer()) | |
| 210 | - | ||
| 211 | 205 | return cret | |
| 212 | 206 | } | |
| 213 | 207 | ||
| @@ -219,7 +213,6 @@ var xPixbufFormatIsDisabled func(uintptr) bool | |||
| 219 | 213 | func (x *PixbufFormat) IsDisabled() bool { | |
| 220 | 214 | ||
| 221 | 215 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | |
| 222 | - | ||
| 223 | 216 | return cret | |
| 224 | 217 | } | |
| 225 | 218 | ||
| @@ -232,7 +225,6 @@ var xPixbufFormatIsSaveOptionSupported func(uintptr, string) bool | |||
| 232 | 225 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | |
| 233 | 226 | ||
| 234 | 227 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | |
| 235 | - | ||
| 236 | 228 | return cret | |
| 237 | 229 | } | |
| 238 | 230 | ||
| @@ -246,7 +238,6 @@ var xPixbufFormatIsScalable func(uintptr) bool | |||
| 246 | 238 | func (x *PixbufFormat) IsScalable() bool { | |
| 247 | 239 | ||
| 248 | 240 | cret := xPixbufFormatIsScalable(x.GoPointer()) | |
| 249 | - | ||
| 250 | 241 | return cret | |
| 251 | 242 | } | |
| 252 | 243 | ||
| @@ -256,7 +247,6 @@ var xPixbufFormatIsWritable func(uintptr) bool | |||
| 256 | 247 | func (x *PixbufFormat) IsWritable() bool { | |
| 257 | 248 | ||
| 258 | 249 | cret := xPixbufFormatIsWritable(x.GoPointer()) | |
| 259 | - | ||
| 260 | 250 | return cret | |
| 261 | 251 | } | |
| 262 | 252 | ||
M v4/gdkpixbuf/gdk-pixbuf-loader.go +0 -4
| @@ -289,7 +289,6 @@ func (x *PixbufLoader) Close() (bool, error) { | |||
| 289 | 289 | var cerr *glib.Error | |
| 290 | 290 | ||
| 291 | 291 | cret := xPixbufLoaderClose(x.GoPointer()) | |
| 292 | - | ||
| 293 | 292 | if cerr == nil { | |
| 294 | 293 | return cret, nil | |
| 295 | 294 | } | |
| @@ -328,7 +327,6 @@ var xPixbufLoaderGetFormat func(uintptr) *PixbufFormat | |||
| 328 | 327 | func (x *PixbufLoader) GetFormat() *PixbufFormat { | |
| 329 | 328 | ||
| 330 | 329 | cret := xPixbufLoaderGetFormat(x.GoPointer()) | |
| 331 | - | ||
| 332 | 330 | return cret | |
| 333 | 331 | } | |
| 334 | 332 | ||
| @@ -386,7 +384,6 @@ func (x *PixbufLoader) Write(BufVar []byte, CountVar uint) (bool, error) { | |||
| 386 | 384 | var cerr *glib.Error | |
| 387 | 385 | ||
| 388 | 386 | cret := xPixbufLoaderWrite(x.GoPointer(), BufVar, CountVar, &cerr) | |
| 389 | - | ||
| 390 | 387 | if cerr == nil { | |
| 391 | 388 | return cret, nil | |
| 392 | 389 | } | |
| @@ -401,7 +398,6 @@ func (x *PixbufLoader) WriteBytes(BufferVar *glib.Bytes) (bool, error) { | |||
| 401 | 398 | var cerr *glib.Error | |
| 402 | 399 | ||
| 403 | 400 | cret := xPixbufLoaderWriteBytes(x.GoPointer(), BufferVar, &cerr) | |
| 404 | - | ||
| 405 | 401 | if cerr == nil { | |
| 406 | 402 | return cret, nil | |
| 407 | 403 | } | |
M v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +0 -1
| @@ -69,7 +69,6 @@ var xPixbufSimpleAnimGetLoop func(uintptr) bool | |||
| 69 | 69 | func (x *PixbufSimpleAnim) GetLoop() bool { | |
| 70 | 70 | ||
| 71 | 71 | cret := xPixbufSimpleAnimGetLoop(x.GoPointer()) | |
| 72 | - | ||
| 73 | 72 | return cret | |
| 74 | 73 | } | |
| 75 | 74 | ||
M v4/gdkpixbuf/gdk-pixbuf.go +0 -35
| @@ -740,7 +740,6 @@ var xPixbufCopyOptions func(uintptr, uintptr) bool | |||
| 740 | 740 | func (x *Pixbuf) CopyOptions(DestPixbufVar *Pixbuf) bool { | |
| 741 | 741 | ||
| 742 | 742 | cret := xPixbufCopyOptions(x.GoPointer(), DestPixbufVar.GoPointer()) | |
| 743 | - | ||
| 744 | 743 | return cret | |
| 745 | 744 | } | |
| 746 | 745 | ||
| @@ -780,7 +779,6 @@ var xPixbufGetBitsPerSample func(uintptr) int | |||
| 780 | 779 | func (x *Pixbuf) GetBitsPerSample() int { | |
| 781 | 780 | ||
| 782 | 781 | cret := xPixbufGetBitsPerSample(x.GoPointer()) | |
| 783 | - | ||
| 784 | 782 | return cret | |
| 785 | 783 | } | |
| 786 | 784 | ||
| @@ -790,7 +788,6 @@ var xPixbufGetByteLength func(uintptr) uint | |||
| 790 | 788 | func (x *Pixbuf) GetByteLength() uint { | |
| 791 | 789 | ||
| 792 | 790 | cret := xPixbufGetByteLength(x.GoPointer()) | |
| 793 | - | ||
| 794 | 791 | return cret | |
| 795 | 792 | } | |
| 796 | 793 | ||
| @@ -800,7 +797,6 @@ var xPixbufGetColorspace func(uintptr) Colorspace | |||
| 800 | 797 | func (x *Pixbuf) GetColorspace() Colorspace { | |
| 801 | 798 | ||
| 802 | 799 | cret := xPixbufGetColorspace(x.GoPointer()) | |
| 803 | - | ||
| 804 | 800 | return cret | |
| 805 | 801 | } | |
| 806 | 802 | ||
| @@ -810,7 +806,6 @@ var xPixbufGetHasAlpha func(uintptr) bool | |||
| 810 | 806 | func (x *Pixbuf) GetHasAlpha() bool { | |
| 811 | 807 | ||
| 812 | 808 | cret := xPixbufGetHasAlpha(x.GoPointer()) | |
| 813 | - | ||
| 814 | 809 | return cret | |
| 815 | 810 | } | |
| 816 | 811 | ||
| @@ -820,7 +815,6 @@ var xPixbufGetHeight func(uintptr) int | |||
| 820 | 815 | func (x *Pixbuf) GetHeight() int { | |
| 821 | 816 | ||
| 822 | 817 | cret := xPixbufGetHeight(x.GoPointer()) | |
| 823 | - | ||
| 824 | 818 | return cret | |
| 825 | 819 | } | |
| 826 | 820 | ||
| @@ -830,7 +824,6 @@ var xPixbufGetNChannels func(uintptr) int | |||
| 830 | 824 | func (x *Pixbuf) GetNChannels() int { | |
| 831 | 825 | ||
| 832 | 826 | cret := xPixbufGetNChannels(x.GoPointer()) | |
| 833 | - | ||
| 834 | 827 | return cret | |
| 835 | 828 | } | |
| 836 | 829 | ||
| @@ -854,7 +847,6 @@ var xPixbufGetOption func(uintptr, string) string | |||
| 854 | 847 | func (x *Pixbuf) GetOption(KeyVar string) string { | |
| 855 | 848 | ||
| 856 | 849 | cret := xPixbufGetOption(x.GoPointer(), KeyVar) | |
| 857 | - | ||
| 858 | 850 | return cret | |
| 859 | 851 | } | |
| 860 | 852 | ||
| @@ -866,7 +858,6 @@ var xPixbufGetOptions func(uintptr) *glib.HashTable | |||
| 866 | 858 | func (x *Pixbuf) GetOptions() *glib.HashTable { | |
| 867 | 859 | ||
| 868 | 860 | cret := xPixbufGetOptions(x.GoPointer()) | |
| 869 | - | ||
| 870 | 861 | return cret | |
| 871 | 862 | } | |
| 872 | 863 | ||
| @@ -882,7 +873,6 @@ var xPixbufGetPixels func(uintptr) uintptr | |||
| 882 | 873 | func (x *Pixbuf) GetPixels() uintptr { | |
| 883 | 874 | ||
| 884 | 875 | cret := xPixbufGetPixels(x.GoPointer()) | |
| 885 | - | ||
| 886 | 876 | return cret | |
| 887 | 877 | } | |
| 888 | 878 | ||
| @@ -898,7 +888,6 @@ var xPixbufGetPixelsWithLength func(uintptr, *uint) uintptr | |||
| 898 | 888 | func (x *Pixbuf) GetPixelsWithLength(LengthVar *uint) uintptr { | |
| 899 | 889 | ||
| 900 | 890 | cret := xPixbufGetPixelsWithLength(x.GoPointer(), LengthVar) | |
| 901 | - | ||
| 902 | 891 | return cret | |
| 903 | 892 | } | |
| 904 | 893 | ||
| @@ -909,7 +898,6 @@ var xPixbufGetRowstride func(uintptr) int | |||
| 909 | 898 | func (x *Pixbuf) GetRowstride() int { | |
| 910 | 899 | ||
| 911 | 900 | cret := xPixbufGetRowstride(x.GoPointer()) | |
| 912 | - | ||
| 913 | 901 | return cret | |
| 914 | 902 | } | |
| 915 | 903 | ||
| @@ -919,7 +907,6 @@ var xPixbufGetWidth func(uintptr) int | |||
| 919 | 907 | func (x *Pixbuf) GetWidth() int { | |
| 920 | 908 | ||
| 921 | 909 | cret := xPixbufGetWidth(x.GoPointer()) | |
| 922 | - | ||
| 923 | 910 | return cret | |
| 924 | 911 | } | |
| 925 | 912 | ||
| @@ -957,7 +944,6 @@ var xPixbufReadPixelBytes func(uintptr) *glib.Bytes | |||
| 957 | 944 | func (x *Pixbuf) ReadPixelBytes() *glib.Bytes { | |
| 958 | 945 | ||
| 959 | 946 | cret := xPixbufReadPixelBytes(x.GoPointer()) | |
| 960 | - | ||
| 961 | 947 | return cret | |
| 962 | 948 | } | |
| 963 | 949 | ||
| @@ -970,7 +956,6 @@ var xPixbufReadPixels func(uintptr) byte | |||
| 970 | 956 | func (x *Pixbuf) ReadPixels() byte { | |
| 971 | 957 | ||
| 972 | 958 | cret := xPixbufReadPixels(x.GoPointer()) | |
| 973 | - | ||
| 974 | 959 | return cret | |
| 975 | 960 | } | |
| 976 | 961 | ||
| @@ -996,7 +981,6 @@ var xPixbufRemoveOption func(uintptr, string) bool | |||
| 996 | 981 | func (x *Pixbuf) RemoveOption(KeyVar string) bool { | |
| 997 | 982 | ||
| 998 | 983 | cret := xPixbufRemoveOption(x.GoPointer(), KeyVar) | |
| 999 | - | ||
| 1000 | 984 | return cret | |
| 1001 | 985 | } | |
| 1002 | 986 | ||
| @@ -1118,7 +1102,6 @@ var xPixbufSave func(uintptr, string, string, **glib.Error, ...interface{}) bool | |||
| 1118 | 1102 | func (x *Pixbuf) Save(FilenameVar string, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1119 | 1103 | ||
| 1120 | 1104 | cret := xPixbufSave(x.GoPointer(), FilenameVar, TypeVar, ErrorVar, varArgs...) | |
| 1121 | - | ||
| 1122 | 1105 | return cret | |
| 1123 | 1106 | } | |
| 1124 | 1107 | ||
| @@ -1141,7 +1124,6 @@ var xPixbufSaveToBuffer func(uintptr, *[]byte, *uint, string, **glib.Error, ...i | |||
| 1141 | 1124 | func (x *Pixbuf) SaveToBuffer(BufferVar *[]byte, BufferSizeVar *uint, TypeVar string, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1142 | 1125 | ||
| 1143 | 1126 | cret := xPixbufSaveToBuffer(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, ErrorVar, varArgs...) | |
| 1144 | - | ||
| 1145 | 1127 | return cret | |
| 1146 | 1128 | } | |
| 1147 | 1129 | ||
| @@ -1157,7 +1139,6 @@ func (x *Pixbuf) SaveToBufferv(BufferVar *[]byte, BufferSizeVar *uint, TypeVar s | |||
| 1157 | 1139 | var cerr *glib.Error | |
| 1158 | 1140 | ||
| 1159 | 1141 | cret := xPixbufSaveToBufferv(x.GoPointer(), BufferVar, BufferSizeVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| 1160 | - | ||
| 1161 | 1142 | if cerr == nil { | |
| 1162 | 1143 | return cret, nil | |
| 1163 | 1144 | } | |
| @@ -1196,7 +1177,6 @@ func (x *Pixbuf) SaveToCallback(SaveFuncVar *PixbufSaveFunc, UserDataVar uintptr | |||
| 1196 | 1177 | } | |
| 1197 | 1178 | ||
| 1198 | 1179 | cret := xPixbufSaveToCallback(x.GoPointer(), SaveFuncVarRef, UserDataVar, TypeVar, ErrorVar, varArgs...) | |
| 1199 | - | ||
| 1200 | 1180 | return cret | |
| 1201 | 1181 | } | |
| 1202 | 1182 | ||
| @@ -1229,7 +1209,6 @@ func (x *Pixbuf) SaveToCallbackv(SaveFuncVar *PixbufSaveFunc, UserDataVar uintpt | |||
| 1229 | 1209 | } | |
| 1230 | 1210 | ||
| 1231 | 1211 | cret := xPixbufSaveToCallbackv(x.GoPointer(), SaveFuncVarRef, UserDataVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| 1232 | - | ||
| 1233 | 1212 | if cerr == nil { | |
| 1234 | 1213 | return cret, nil | |
| 1235 | 1214 | } | |
| @@ -1253,7 +1232,6 @@ var xPixbufSaveToStream func(uintptr, uintptr, string, uintptr, **glib.Error, .. | |||
| 1253 | 1232 | func (x *Pixbuf) SaveToStream(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, ErrorVar **glib.Error, varArgs ...interface{}) bool { | |
| 1254 | 1233 | ||
| 1255 | 1234 | cret := xPixbufSaveToStream(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), ErrorVar, varArgs...) | |
| 1256 | - | ||
| 1257 | 1235 | return cret | |
| 1258 | 1236 | } | |
| 1259 | 1237 | ||
| @@ -1301,7 +1279,6 @@ func (x *Pixbuf) SaveToStreamv(StreamVar *gio.OutputStream, TypeVar string, Opti | |||
| 1301 | 1279 | var cerr *glib.Error | |
| 1302 | 1280 | ||
| 1303 | 1281 | cret := xPixbufSaveToStreamv(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), &cerr) | |
| 1304 | - | ||
| 1305 | 1282 | if cerr == nil { | |
| 1306 | 1283 | return cret, nil | |
| 1307 | 1284 | } | |
| @@ -1354,7 +1331,6 @@ func (x *Pixbuf) Savev(FilenameVar string, TypeVar string, OptionKeysVar []strin | |||
| 1354 | 1331 | var cerr *glib.Error | |
| 1355 | 1332 | ||
| 1356 | 1333 | cret := xPixbufSavev(x.GoPointer(), FilenameVar, TypeVar, OptionKeysVar, OptionValuesVar, &cerr) | |
| 1357 | - | ||
| 1358 | 1334 | if cerr == nil { | |
| 1359 | 1335 | return cret, nil | |
| 1360 | 1336 | } | |
| @@ -1425,7 +1401,6 @@ var xPixbufSetOption func(uintptr, string, string) bool | |||
| 1425 | 1401 | func (x *Pixbuf) SetOption(KeyVar string, ValueVar string) bool { | |
| 1426 | 1402 | ||
| 1427 | 1403 | cret := xPixbufSetOption(x.GoPointer(), KeyVar, ValueVar) | |
| 1428 | - | ||
| 1429 | 1404 | return cret | |
| 1430 | 1405 | } | |
| 1431 | 1406 | ||
| @@ -1603,7 +1578,6 @@ func (x *Pixbuf) GetPropertyWidth() int { | |||
| 1603 | 1578 | func (x *Pixbuf) Equal(Icon2Var gio.Icon) bool { | |
| 1604 | 1579 | ||
| 1605 | 1580 | cret := gio.XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 1606 | - | ||
| 1607 | 1581 | return cret | |
| 1608 | 1582 | } | |
| 1609 | 1583 | ||
| @@ -1611,7 +1585,6 @@ func (x *Pixbuf) Equal(Icon2Var gio.Icon) bool { | |||
| 1611 | 1585 | func (x *Pixbuf) Hash() uint { | |
| 1612 | 1586 | ||
| 1613 | 1587 | cret := gio.XGIconHash(x.GoPointer()) | |
| 1614 | - | ||
| 1615 | 1588 | return cret | |
| 1616 | 1589 | } | |
| 1617 | 1590 | ||
| @@ -1623,7 +1596,6 @@ func (x *Pixbuf) Hash() uint { | |||
| 1623 | 1596 | func (x *Pixbuf) Serialize() *glib.Variant { | |
| 1624 | 1597 | ||
| 1625 | 1598 | cret := gio.XGIconSerialize(x.GoPointer()) | |
| 1626 | - | ||
| 1627 | 1599 | return cret | |
| 1628 | 1600 | } | |
| 1629 | 1601 | ||
| @@ -1646,7 +1618,6 @@ func (x *Pixbuf) Serialize() *glib.Variant { | |||
| 1646 | 1618 | func (x *Pixbuf) ToString() string { | |
| 1647 | 1619 | ||
| 1648 | 1620 | cret := gio.XGIconToString(x.GoPointer()) | |
| 1649 | - | ||
| 1650 | 1621 | return cret | |
| 1651 | 1622 | } | |
| 1652 | 1623 | ||
| @@ -1708,7 +1679,6 @@ var xPixbufCalculateRowstride func(Colorspace, bool, int, int, int) int | |||
| 1708 | 1679 | func PixbufCalculateRowstride(ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int) int { | |
| 1709 | 1680 | ||
| 1710 | 1681 | cret := xPixbufCalculateRowstride(ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar) | |
| 1711 | - | ||
| 1712 | 1682 | return cret | |
| 1713 | 1683 | } | |
| 1714 | 1684 | ||
| @@ -1718,7 +1688,6 @@ var xPixbufGetFileInfo func(string, *int, *int) *PixbufFormat | |||
| 1718 | 1688 | func PixbufGetFileInfo(FilenameVar string, WidthVar *int, HeightVar *int) *PixbufFormat { | |
| 1719 | 1689 | ||
| 1720 | 1690 | cret := xPixbufGetFileInfo(FilenameVar, WidthVar, HeightVar) | |
| 1721 | - | ||
| 1722 | 1691 | return cret | |
| 1723 | 1692 | } | |
| 1724 | 1693 | ||
| @@ -1762,7 +1731,6 @@ func PixbufGetFileInfoFinish(AsyncResultVar gio.AsyncResult, WidthVar *int, Heig | |||
| 1762 | 1731 | var cerr *glib.Error | |
| 1763 | 1732 | ||
| 1764 | 1733 | cret := xPixbufGetFileInfoFinish(AsyncResultVar.GoPointer(), WidthVar, HeightVar, &cerr) | |
| 1765 | - | ||
| 1766 | 1734 | if cerr == nil { | |
| 1767 | 1735 | return cret, nil | |
| 1768 | 1736 | } | |
| @@ -1777,7 +1745,6 @@ var xPixbufGetFormats func() *glib.SList | |||
| 1777 | 1745 | func PixbufGetFormats() *glib.SList { | |
| 1778 | 1746 | ||
| 1779 | 1747 | cret := xPixbufGetFormats() | |
| 1780 | - | ||
| 1781 | 1748 | return cret | |
| 1782 | 1749 | } | |
| 1783 | 1750 | ||
| @@ -1800,7 +1767,6 @@ func PixbufInitModules(PathVar string) (bool, error) { | |||
| 1800 | 1767 | var cerr *glib.Error | |
| 1801 | 1768 | ||
| 1802 | 1769 | cret := xPixbufInitModules(PathVar, &cerr) | |
| 1803 | - | ||
| 1804 | 1770 | if cerr == nil { | |
| 1805 | 1771 | return cret, nil | |
| 1806 | 1772 | } | |
| @@ -1877,7 +1843,6 @@ func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | |||
| 1877 | 1843 | var cerr *glib.Error | |
| 1878 | 1844 | ||
| 1879 | 1845 | cret := xPixbufSaveToStreamFinish(AsyncResultVar.GoPointer(), &cerr) | |
| 1880 | - | ||
| 1881 | 1846 | if cerr == nil { | |
| 1882 | 1847 | return cret, nil | |
| 1883 | 1848 | } | |
M v4/gdkpixbuf/main.go +0 -1
| @@ -13,7 +13,6 @@ var xPixbufErrorQuark func() glib.Quark | |||
| 13 | 13 | func PixbufErrorQuark() glib.Quark { | |
| 14 | 14 | ||
| 15 | 15 | cret := xPixbufErrorQuark() | |
| 16 | - | ||
| 17 | 16 | return cret | |
| 18 | 17 | } | |
| 19 | 18 | ||
M v4/gio/gaction.go +0 -9
| @@ -342,7 +342,6 @@ func (x *ActionBase) ChangeState(ValueVar *glib.Variant) { | |||
| 342 | 342 | func (x *ActionBase) GetEnabled() bool { | |
| 343 | 343 | ||
| 344 | 344 | cret := XGActionGetEnabled(x.GoPointer()) | |
| 345 | - | ||
| 346 | 345 | return cret | |
| 347 | 346 | } | |
| 348 | 347 | ||
| @@ -350,7 +349,6 @@ func (x *ActionBase) GetEnabled() bool { | |||
| 350 | 349 | func (x *ActionBase) GetName() string { | |
| 351 | 350 | ||
| 352 | 351 | cret := XGActionGetName(x.GoPointer()) | |
| 353 | - | ||
| 354 | 352 | return cret | |
| 355 | 353 | } | |
| 356 | 354 | ||
| @@ -366,7 +364,6 @@ func (x *ActionBase) GetName() string { | |||
| 366 | 364 | func (x *ActionBase) GetParameterType() *glib.VariantType { | |
| 367 | 365 | ||
| 368 | 366 | cret := XGActionGetParameterType(x.GoPointer()) | |
| 369 | - | ||
| 370 | 367 | return cret | |
| 371 | 368 | } | |
| 372 | 369 | ||
| @@ -381,7 +378,6 @@ func (x *ActionBase) GetParameterType() *glib.VariantType { | |||
| 381 | 378 | func (x *ActionBase) GetState() *glib.Variant { | |
| 382 | 379 | ||
| 383 | 380 | cret := XGActionGetState(x.GoPointer()) | |
| 384 | - | ||
| 385 | 381 | return cret | |
| 386 | 382 | } | |
| 387 | 383 | ||
| @@ -406,7 +402,6 @@ func (x *ActionBase) GetState() *glib.Variant { | |||
| 406 | 402 | func (x *ActionBase) GetStateHint() *glib.Variant { | |
| 407 | 403 | ||
| 408 | 404 | cret := XGActionGetStateHint(x.GoPointer()) | |
| 409 | - | ||
| 410 | 405 | return cret | |
| 411 | 406 | } | |
| 412 | 407 | ||
| @@ -425,7 +420,6 @@ func (x *ActionBase) GetStateHint() *glib.Variant { | |||
| 425 | 420 | func (x *ActionBase) GetStateType() *glib.VariantType { | |
| 426 | 421 | ||
| 427 | 422 | cret := XGActionGetStateType(x.GoPointer()) | |
| 428 | - | ||
| 429 | 423 | return cret | |
| 430 | 424 | } | |
| 431 | 425 | ||
| @@ -507,7 +501,6 @@ var xActionNameIsValid func(string) bool | |||
| 507 | 501 | func ActionNameIsValid(ActionNameVar string) bool { | |
| 508 | 502 | ||
| 509 | 503 | cret := xActionNameIsValid(ActionNameVar) | |
| 510 | - | ||
| 511 | 504 | return cret | |
| 512 | 505 | } | |
| 513 | 506 | ||
| @@ -547,7 +540,6 @@ func ActionParseDetailedName(DetailedNameVar string, ActionNameVar *string, Targ | |||
| 547 | 540 | var cerr *glib.Error | |
| 548 | 541 | ||
| 549 | 542 | cret := xActionParseDetailedName(DetailedNameVar, ActionNameVar, TargetValueVar, &cerr) | |
| 550 | - | ||
| 551 | 543 | if cerr == nil { | |
| 552 | 544 | return cret, nil | |
| 553 | 545 | } | |
| @@ -570,7 +562,6 @@ var xActionPrintDetailedName func(string, *glib.Variant) string | |||
| 570 | 562 | func ActionPrintDetailedName(ActionNameVar string, TargetValueVar *glib.Variant) string { | |
| 571 | 563 | ||
| 572 | 564 | cret := xActionPrintDetailedName(ActionNameVar, TargetValueVar) | |
| 573 | - | ||
| 574 | 565 | return cret | |
| 575 | 566 | } | |
| 576 | 567 | ||
M v4/gio/gactiongroup.go +0 -8
| @@ -583,7 +583,6 @@ func (x *ActionGroupBase) ChangeActionState(ActionNameVar string, ValueVar *glib | |||
| 583 | 583 | func (x *ActionGroupBase) GetActionEnabled(ActionNameVar string) bool { | |
| 584 | 584 | ||
| 585 | 585 | cret := XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 586 | - | ||
| 587 | 586 | return cret | |
| 588 | 587 | } | |
| 589 | 588 | ||
| @@ -603,7 +602,6 @@ func (x *ActionGroupBase) GetActionEnabled(ActionNameVar string) bool { | |||
| 603 | 602 | func (x *ActionGroupBase) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 604 | 603 | ||
| 605 | 604 | cret := XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 606 | - | ||
| 607 | 605 | return cret | |
| 608 | 606 | } | |
| 609 | 607 | ||
| @@ -618,7 +616,6 @@ func (x *ActionGroupBase) GetActionParameterType(ActionNameVar string) *glib.Var | |||
| 618 | 616 | func (x *ActionGroupBase) GetActionState(ActionNameVar string) *glib.Variant { | |
| 619 | 617 | ||
| 620 | 618 | cret := XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 621 | - | ||
| 622 | 619 | return cret | |
| 623 | 620 | } | |
| 624 | 621 | ||
| @@ -643,7 +640,6 @@ func (x *ActionGroupBase) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 643 | 640 | func (x *ActionGroupBase) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 644 | 641 | ||
| 645 | 642 | cret := XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 646 | - | ||
| 647 | 643 | return cret | |
| 648 | 644 | } | |
| 649 | 645 | ||
| @@ -666,7 +662,6 @@ func (x *ActionGroupBase) GetActionStateHint(ActionNameVar string) *glib.Variant | |||
| 666 | 662 | func (x *ActionGroupBase) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 667 | 663 | ||
| 668 | 664 | cret := XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 669 | - | ||
| 670 | 665 | return cret | |
| 671 | 666 | } | |
| 672 | 667 | ||
| @@ -674,7 +669,6 @@ func (x *ActionGroupBase) GetActionStateType(ActionNameVar string) *glib.Variant | |||
| 674 | 669 | func (x *ActionGroupBase) HasAction(ActionNameVar string) bool { | |
| 675 | 670 | ||
| 676 | 671 | cret := XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 677 | - | ||
| 678 | 672 | return cret | |
| 679 | 673 | } | |
| 680 | 674 | ||
| @@ -685,7 +679,6 @@ func (x *ActionGroupBase) HasAction(ActionNameVar string) bool { | |||
| 685 | 679 | func (x *ActionGroupBase) ListActions() []string { | |
| 686 | 680 | ||
| 687 | 681 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 688 | - | ||
| 689 | 682 | return cret | |
| 690 | 683 | } | |
| 691 | 684 | ||
| @@ -719,7 +712,6 @@ func (x *ActionGroupBase) ListActions() []string { | |||
| 719 | 712 | func (x *ActionGroupBase) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 720 | 713 | ||
| 721 | 714 | cret := XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 722 | - | ||
| 723 | 715 | return cret | |
| 724 | 716 | } | |
| 725 | 717 | ||
M v4/gio/gappinfo.go +2 -35
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -1113,7 +1112,6 @@ func (x *AppInfoBase) AddSupportsType(ContentTypeVar string) (bool, error) { | |||
| 1113 | 1112 | var cerr *glib.Error | |
| 1114 | 1113 | ||
| 1115 | 1114 | cret := XGAppInfoAddSupportsType(x.GoPointer(), ContentTypeVar, &cerr) | |
| 1116 | - | ||
| 1117 | 1115 | if cerr == nil { | |
| 1118 | 1116 | return cret, nil | |
| 1119 | 1117 | } | |
| @@ -1126,7 +1124,6 @@ func (x *AppInfoBase) AddSupportsType(ContentTypeVar string) (bool, error) { | |||
| 1126 | 1124 | func (x *AppInfoBase) CanDelete() bool { | |
| 1127 | 1125 | ||
| 1128 | 1126 | cret := XGAppInfoCanDelete(x.GoPointer()) | |
| 1129 | - | ||
| 1130 | 1127 | return cret | |
| 1131 | 1128 | } | |
| 1132 | 1129 | ||
| @@ -1134,7 +1131,6 @@ func (x *AppInfoBase) CanDelete() bool { | |||
| 1134 | 1131 | func (x *AppInfoBase) CanRemoveSupportsType() bool { | |
| 1135 | 1132 | ||
| 1136 | 1133 | cret := XGAppInfoCanRemoveSupportsType(x.GoPointer()) | |
| 1137 | - | ||
| 1138 | 1134 | return cret | |
| 1139 | 1135 | } | |
| 1140 | 1136 | ||
| @@ -1146,7 +1142,6 @@ func (x *AppInfoBase) CanRemoveSupportsType() bool { | |||
| 1146 | 1142 | func (x *AppInfoBase) Delete() bool { | |
| 1147 | 1143 | ||
| 1148 | 1144 | cret := XGAppInfoDelete(x.GoPointer()) | |
| 1149 | - | ||
| 1150 | 1145 | return cret | |
| 1151 | 1146 | } | |
| 1152 | 1147 | ||
| @@ -1172,7 +1167,6 @@ func (x *AppInfoBase) Dup() *AppInfoBase { | |||
| 1172 | 1167 | func (x *AppInfoBase) Equal(Appinfo2Var AppInfo) bool { | |
| 1173 | 1168 | ||
| 1174 | 1169 | cret := XGAppInfoEqual(x.GoPointer(), Appinfo2Var.GoPointer()) | |
| 1175 | - | ||
| 1176 | 1170 | return cret | |
| 1177 | 1171 | } | |
| 1178 | 1172 | ||
| @@ -1181,7 +1175,6 @@ func (x *AppInfoBase) Equal(Appinfo2Var AppInfo) bool { | |||
| 1181 | 1175 | func (x *AppInfoBase) GetCommandline() string { | |
| 1182 | 1176 | ||
| 1183 | 1177 | cret := XGAppInfoGetCommandline(x.GoPointer()) | |
| 1184 | - | ||
| 1185 | 1178 | return cret | |
| 1186 | 1179 | } | |
| 1187 | 1180 | ||
| @@ -1189,7 +1182,6 @@ func (x *AppInfoBase) GetCommandline() string { | |||
| 1189 | 1182 | func (x *AppInfoBase) GetDescription() string { | |
| 1190 | 1183 | ||
| 1191 | 1184 | cret := XGAppInfoGetDescription(x.GoPointer()) | |
| 1192 | - | ||
| 1193 | 1185 | return cret | |
| 1194 | 1186 | } | |
| 1195 | 1187 | ||
| @@ -1198,7 +1190,6 @@ func (x *AppInfoBase) GetDescription() string { | |||
| 1198 | 1190 | func (x *AppInfoBase) GetDisplayName() string { | |
| 1199 | 1191 | ||
| 1200 | 1192 | cret := XGAppInfoGetDisplayName(x.GoPointer()) | |
| 1201 | - | ||
| 1202 | 1193 | return cret | |
| 1203 | 1194 | } | |
| 1204 | 1195 | ||
| @@ -1210,7 +1201,6 @@ func (x *AppInfoBase) GetDisplayName() string { | |||
| 1210 | 1201 | func (x *AppInfoBase) GetExecutable() string { | |
| 1211 | 1202 | ||
| 1212 | 1203 | cret := XGAppInfoGetExecutable(x.GoPointer()) | |
| 1213 | - | ||
| 1214 | 1204 | return cret | |
| 1215 | 1205 | } | |
| 1216 | 1206 | ||
| @@ -1238,7 +1228,6 @@ func (x *AppInfoBase) GetIcon() *IconBase { | |||
| 1238 | 1228 | func (x *AppInfoBase) GetId() string { | |
| 1239 | 1229 | ||
| 1240 | 1230 | cret := XGAppInfoGetId(x.GoPointer()) | |
| 1241 | - | ||
| 1242 | 1231 | return cret | |
| 1243 | 1232 | } | |
| 1244 | 1233 | ||
| @@ -1246,7 +1235,6 @@ func (x *AppInfoBase) GetId() string { | |||
| 1246 | 1235 | func (x *AppInfoBase) GetName() string { | |
| 1247 | 1236 | ||
| 1248 | 1237 | cret := XGAppInfoGetName(x.GoPointer()) | |
| 1249 | - | ||
| 1250 | 1238 | return cret | |
| 1251 | 1239 | } | |
| 1252 | 1240 | ||
| @@ -1260,7 +1248,6 @@ func (x *AppInfoBase) GetName() string { | |||
| 1260 | 1248 | func (x *AppInfoBase) GetSupportedTypes() []string { | |
| 1261 | 1249 | ||
| 1262 | 1250 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | |
| 1263 | - | ||
| 1264 | 1251 | return cret | |
| 1265 | 1252 | } | |
| 1266 | 1253 | ||
| @@ -1295,7 +1282,6 @@ func (x *AppInfoBase) Launch(FilesVar *glib.List, ContextVar *AppLaunchContext) | |||
| 1295 | 1282 | var cerr *glib.Error | |
| 1296 | 1283 | ||
| 1297 | 1284 | cret := XGAppInfoLaunch(x.GoPointer(), FilesVar, ContextVar.GoPointer(), &cerr) | |
| 1298 | - | ||
| 1299 | 1285 | if cerr == nil { | |
| 1300 | 1286 | return cret, nil | |
| 1301 | 1287 | } | |
| @@ -1319,7 +1305,6 @@ func (x *AppInfoBase) LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContex | |||
| 1319 | 1305 | var cerr *glib.Error | |
| 1320 | 1306 | ||
| 1321 | 1307 | cret := XGAppInfoLaunchUris(x.GoPointer(), UrisVar, ContextVar.GoPointer(), &cerr) | |
| 1322 | - | ||
| 1323 | 1308 | if cerr == nil { | |
| 1324 | 1309 | return cret, nil | |
| 1325 | 1310 | } | |
| @@ -1344,7 +1329,6 @@ func (x *AppInfoBase) LaunchUrisFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1344 | 1329 | var cerr *glib.Error | |
| 1345 | 1330 | ||
| 1346 | 1331 | cret := XGAppInfoLaunchUrisFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1347 | - | ||
| 1348 | 1332 | if cerr == nil { | |
| 1349 | 1333 | return cret, nil | |
| 1350 | 1334 | } | |
| @@ -1357,7 +1341,6 @@ func (x *AppInfoBase) RemoveSupportsType(ContentTypeVar string) (bool, error) { | |||
| 1357 | 1341 | var cerr *glib.Error | |
| 1358 | 1342 | ||
| 1359 | 1343 | cret := XGAppInfoRemoveSupportsType(x.GoPointer(), ContentTypeVar, &cerr) | |
| 1360 | - | ||
| 1361 | 1344 | if cerr == nil { | |
| 1362 | 1345 | return cret, nil | |
| 1363 | 1346 | } | |
| @@ -1370,7 +1353,6 @@ func (x *AppInfoBase) SetAsDefaultForExtension(ExtensionVar string) (bool, error | |||
| 1370 | 1353 | var cerr *glib.Error | |
| 1371 | 1354 | ||
| 1372 | 1355 | cret := XGAppInfoSetAsDefaultForExtension(x.GoPointer(), ExtensionVar, &cerr) | |
| 1373 | - | ||
| 1374 | 1356 | if cerr == nil { | |
| 1375 | 1357 | return cret, nil | |
| 1376 | 1358 | } | |
| @@ -1383,7 +1365,6 @@ func (x *AppInfoBase) SetAsDefaultForType(ContentTypeVar string) (bool, error) { | |||
| 1383 | 1365 | var cerr *glib.Error | |
| 1384 | 1366 | ||
| 1385 | 1367 | cret := XGAppInfoSetAsDefaultForType(x.GoPointer(), ContentTypeVar, &cerr) | |
| 1386 | - | ||
| 1387 | 1368 | if cerr == nil { | |
| 1388 | 1369 | return cret, nil | |
| 1389 | 1370 | } | |
| @@ -1399,7 +1380,6 @@ func (x *AppInfoBase) SetAsLastUsedForType(ContentTypeVar string) (bool, error) | |||
| 1399 | 1380 | var cerr *glib.Error | |
| 1400 | 1381 | ||
| 1401 | 1382 | cret := XGAppInfoSetAsLastUsedForType(x.GoPointer(), ContentTypeVar, &cerr) | |
| 1402 | - | ||
| 1403 | 1383 | if cerr == nil { | |
| 1404 | 1384 | return cret, nil | |
| 1405 | 1385 | } | |
| @@ -1412,7 +1392,6 @@ func (x *AppInfoBase) SetAsLastUsedForType(ContentTypeVar string) (bool, error) | |||
| 1412 | 1392 | func (x *AppInfoBase) ShouldShow() bool { | |
| 1413 | 1393 | ||
| 1414 | 1394 | cret := XGAppInfoShouldShow(x.GoPointer()) | |
| 1415 | - | ||
| 1416 | 1395 | return cret | |
| 1417 | 1396 | } | |
| 1418 | 1397 | ||
| @@ -1420,7 +1399,6 @@ func (x *AppInfoBase) ShouldShow() bool { | |||
| 1420 | 1399 | func (x *AppInfoBase) SupportsFiles() bool { | |
| 1421 | 1400 | ||
| 1422 | 1401 | cret := XGAppInfoSupportsFiles(x.GoPointer()) | |
| 1423 | - | ||
| 1424 | 1402 | return cret | |
| 1425 | 1403 | } | |
| 1426 | 1404 | ||
| @@ -1428,7 +1406,6 @@ func (x *AppInfoBase) SupportsFiles() bool { | |||
| 1428 | 1406 | func (x *AppInfoBase) SupportsUris() bool { | |
| 1429 | 1407 | ||
| 1430 | 1408 | cret := XGAppInfoSupportsUris(x.GoPointer()) | |
| 1431 | - | ||
| 1432 | 1409 | return cret | |
| 1433 | 1410 | } | |
| 1434 | 1411 | ||
| @@ -1473,12 +1450,11 @@ func AppInfoCreateFromCommandline(CommandlineVar string, ApplicationNameVar *str | |||
| 1473 | 1450 | var cls *AppInfoBase | |
| 1474 | 1451 | var cerr *glib.Error | |
| 1475 | 1452 | ||
| 1476 | - | ApplicationNameVarPtr, ApplicationNameVarBytes := core.NullableStringToPtr(ApplicationNameVar) | |
| 1453 | + | ApplicationNameVarPtr := core.GStrdupNullable(ApplicationNameVar) | |
| 1454 | + | defer core.GFreeNullable(ApplicationNameVarPtr) | |
| 1477 | 1455 | ||
| 1478 | 1456 | cret := xAppInfoCreateFromCommandline(CommandlineVar, ApplicationNameVarPtr, FlagsVar, &cerr) | |
| 1479 | 1457 | ||
| 1480 | - | runtime.KeepAlive(ApplicationNameVarBytes) | |
| 1481 | - | ||
| 1482 | 1458 | if cret == 0 { | |
| 1483 | 1459 | return nil, cerr | |
| 1484 | 1460 | } | |
| @@ -1509,7 +1485,6 @@ var xAppInfoGetAll func() *glib.List | |||
| 1509 | 1485 | func AppInfoGetAll() *glib.List { | |
| 1510 | 1486 | ||
| 1511 | 1487 | cret := xAppInfoGetAll() | |
| 1512 | - | ||
| 1513 | 1488 | return cret | |
| 1514 | 1489 | } | |
| 1515 | 1490 | ||
| @@ -1522,7 +1497,6 @@ var xAppInfoGetAllForType func(string) *glib.List | |||
| 1522 | 1497 | func AppInfoGetAllForType(ContentTypeVar string) *glib.List { | |
| 1523 | 1498 | ||
| 1524 | 1499 | cret := xAppInfoGetAllForType(ContentTypeVar) | |
| 1525 | - | ||
| 1526 | 1500 | return cret | |
| 1527 | 1501 | } | |
| 1528 | 1502 | ||
| @@ -1671,7 +1645,6 @@ var xAppInfoGetFallbackForType func(string) *glib.List | |||
| 1671 | 1645 | func AppInfoGetFallbackForType(ContentTypeVar string) *glib.List { | |
| 1672 | 1646 | ||
| 1673 | 1647 | cret := xAppInfoGetFallbackForType(ContentTypeVar) | |
| 1674 | - | ||
| 1675 | 1648 | return cret | |
| 1676 | 1649 | } | |
| 1677 | 1650 | ||
| @@ -1687,7 +1660,6 @@ var xAppInfoGetRecommendedForType func(string) *glib.List | |||
| 1687 | 1660 | func AppInfoGetRecommendedForType(ContentTypeVar string) *glib.List { | |
| 1688 | 1661 | ||
| 1689 | 1662 | cret := xAppInfoGetRecommendedForType(ContentTypeVar) | |
| 1690 | - | ||
| 1691 | 1663 | return cret | |
| 1692 | 1664 | } | |
| 1693 | 1665 | ||
| @@ -1704,7 +1676,6 @@ func AppInfoLaunchDefaultForUri(UriVar string, ContextVar *AppLaunchContext) (bo | |||
| 1704 | 1676 | var cerr *glib.Error | |
| 1705 | 1677 | ||
| 1706 | 1678 | cret := xAppInfoLaunchDefaultForUri(UriVar, ContextVar.GoPointer(), &cerr) | |
| 1707 | - | ||
| 1708 | 1679 | if cerr == nil { | |
| 1709 | 1680 | return cret, nil | |
| 1710 | 1681 | } | |
| @@ -1751,7 +1722,6 @@ func AppInfoLaunchDefaultForUriFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1751 | 1722 | var cerr *glib.Error | |
| 1752 | 1723 | ||
| 1753 | 1724 | cret := xAppInfoLaunchDefaultForUriFinish(ResultVar.GoPointer(), &cerr) | |
| 1754 | - | ||
| 1755 | 1725 | if cerr == nil { | |
| 1756 | 1726 | return cret, nil | |
| 1757 | 1727 | } | |
| @@ -1936,7 +1906,6 @@ var xAppLaunchContextGetDisplay func(uintptr, uintptr, *glib.List) string | |||
| 1936 | 1906 | func (x *AppLaunchContext) GetDisplay(InfoVar AppInfo, FilesVar *glib.List) string { | |
| 1937 | 1907 | ||
| 1938 | 1908 | cret := xAppLaunchContextGetDisplay(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | |
| 1939 | - | ||
| 1940 | 1909 | return cret | |
| 1941 | 1910 | } | |
| 1942 | 1911 | ||
| @@ -1949,7 +1918,6 @@ var xAppLaunchContextGetEnvironment func(uintptr) []string | |||
| 1949 | 1918 | func (x *AppLaunchContext) GetEnvironment() []string { | |
| 1950 | 1919 | ||
| 1951 | 1920 | cret := xAppLaunchContextGetEnvironment(x.GoPointer()) | |
| 1952 | - | ||
| 1953 | 1921 | return cret | |
| 1954 | 1922 | } | |
| 1955 | 1923 | ||
| @@ -1973,7 +1941,6 @@ var xAppLaunchContextGetStartupNotifyId func(uintptr, uintptr, *glib.List) strin | |||
| 1973 | 1941 | func (x *AppLaunchContext) GetStartupNotifyId(InfoVar AppInfo, FilesVar *glib.List) string { | |
| 1974 | 1942 | ||
| 1975 | 1943 | cret := xAppLaunchContextGetStartupNotifyId(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | |
| 1976 | - | ||
| 1977 | 1944 | return cret | |
| 1978 | 1945 | } | |
| 1979 | 1946 | ||
M v4/gio/gapplication.go +16 -45
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -662,12 +661,11 @@ var xNewApplication func(uintptr, ApplicationFlags) uintptr | |||
| 662 | 661 | func NewApplication(ApplicationIdVar *string, FlagsVar ApplicationFlags) *Application { | |
| 663 | 662 | var cls *Application | |
| 664 | 663 | ||
| 665 | - | ApplicationIdVarPtr, ApplicationIdVarBytes := core.NullableStringToPtr(ApplicationIdVar) | |
| 664 | + | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | |
| 665 | + | defer core.GFreeNullable(ApplicationIdVarPtr) | |
| 666 | 666 | ||
| 667 | 667 | cret := xNewApplication(ApplicationIdVarPtr, FlagsVar) | |
| 668 | 668 | ||
| 669 | - | runtime.KeepAlive(ApplicationIdVarBytes) | |
| 670 | - | ||
| 671 | 669 | if cret == 0 { | |
| 672 | 670 | return nil | |
| 673 | 671 | } | |
| @@ -707,12 +705,11 @@ var xApplicationAddMainOption func(uintptr, string, byte, glib.OptionFlags, glib | |||
| 707 | 705 | // See #GOptionEntry for more documentation of the arguments. | |
| 708 | 706 | func (x *Application) AddMainOption(LongNameVar string, ShortNameVar byte, FlagsVar glib.OptionFlags, ArgVar glib.OptionArg, DescriptionVar string, ArgDescriptionVar *string) { | |
| 709 | 707 | ||
| 710 | - | ArgDescriptionVarPtr, ArgDescriptionVarBytes := core.NullableStringToPtr(ArgDescriptionVar) | |
| 708 | + | ArgDescriptionVarPtr := core.GStrdupNullable(ArgDescriptionVar) | |
| 709 | + | defer core.GFreeNullable(ArgDescriptionVarPtr) | |
| 711 | 710 | ||
| 712 | 711 | xApplicationAddMainOption(x.GoPointer(), LongNameVar, ShortNameVar, FlagsVar, ArgVar, DescriptionVar, ArgDescriptionVarPtr) | |
| 713 | 712 | ||
| 714 | - | runtime.KeepAlive(ArgDescriptionVarBytes) | |
| 715 | - | ||
| 716 | 713 | } | |
| 717 | 714 | ||
| 718 | 715 | var xApplicationAddMainOptionEntries func(uintptr, []glib.OptionEntry) | |
| @@ -832,7 +829,6 @@ var xApplicationGetApplicationId func(uintptr) string | |||
| 832 | 829 | func (x *Application) GetApplicationId() string { | |
| 833 | 830 | ||
| 834 | 831 | cret := xApplicationGetApplicationId(x.GoPointer()) | |
| 835 | - | ||
| 836 | 832 | return cret | |
| 837 | 833 | } | |
| 838 | 834 | ||
| @@ -884,7 +880,6 @@ var xApplicationGetDbusObjectPath func(uintptr) string | |||
| 884 | 880 | func (x *Application) GetDbusObjectPath() string { | |
| 885 | 881 | ||
| 886 | 882 | cret := xApplicationGetDbusObjectPath(x.GoPointer()) | |
| 887 | - | ||
| 888 | 883 | return cret | |
| 889 | 884 | } | |
| 890 | 885 | ||
| @@ -896,7 +891,6 @@ var xApplicationGetFlags func(uintptr) ApplicationFlags | |||
| 896 | 891 | func (x *Application) GetFlags() ApplicationFlags { | |
| 897 | 892 | ||
| 898 | 893 | cret := xApplicationGetFlags(x.GoPointer()) | |
| 899 | - | ||
| 900 | 894 | return cret | |
| 901 | 895 | } | |
| 902 | 896 | ||
| @@ -909,7 +903,6 @@ var xApplicationGetInactivityTimeout func(uintptr) uint | |||
| 909 | 903 | func (x *Application) GetInactivityTimeout() uint { | |
| 910 | 904 | ||
| 911 | 905 | cret := xApplicationGetInactivityTimeout(x.GoPointer()) | |
| 912 | - | ||
| 913 | 906 | return cret | |
| 914 | 907 | } | |
| 915 | 908 | ||
| @@ -920,7 +913,6 @@ var xApplicationGetIsBusy func(uintptr) bool | |||
| 920 | 913 | func (x *Application) GetIsBusy() bool { | |
| 921 | 914 | ||
| 922 | 915 | cret := xApplicationGetIsBusy(x.GoPointer()) | |
| 923 | - | ||
| 924 | 916 | return cret | |
| 925 | 917 | } | |
| 926 | 918 | ||
| @@ -933,7 +925,6 @@ var xApplicationGetIsRegistered func(uintptr) bool | |||
| 933 | 925 | func (x *Application) GetIsRegistered() bool { | |
| 934 | 926 | ||
| 935 | 927 | cret := xApplicationGetIsRegistered(x.GoPointer()) | |
| 936 | - | ||
| 937 | 928 | return cret | |
| 938 | 929 | } | |
| 939 | 930 | ||
| @@ -952,7 +943,6 @@ var xApplicationGetIsRemote func(uintptr) bool | |||
| 952 | 943 | func (x *Application) GetIsRemote() bool { | |
| 953 | 944 | ||
| 954 | 945 | cret := xApplicationGetIsRemote(x.GoPointer()) | |
| 955 | - | ||
| 956 | 946 | return cret | |
| 957 | 947 | } | |
| 958 | 948 | ||
| @@ -964,7 +954,6 @@ var xApplicationGetResourceBasePath func(uintptr) string | |||
| 964 | 954 | func (x *Application) GetResourceBasePath() string { | |
| 965 | 955 | ||
| 966 | 956 | cret := xApplicationGetResourceBasePath(x.GoPointer()) | |
| 967 | - | ||
| 968 | 957 | return cret | |
| 969 | 958 | } | |
| 970 | 959 | ||
| @@ -974,7 +963,6 @@ var xApplicationGetVersion func(uintptr) string | |||
| 974 | 963 | func (x *Application) GetVersion() string { | |
| 975 | 964 | ||
| 976 | 965 | cret := xApplicationGetVersion(x.GoPointer()) | |
| 977 | - | ||
| 978 | 966 | return cret | |
| 979 | 967 | } | |
| 980 | 968 | ||
| @@ -1092,7 +1080,6 @@ func (x *Application) Register(CancellableVar *Cancellable) (bool, error) { | |||
| 1092 | 1080 | var cerr *glib.Error | |
| 1093 | 1081 | ||
| 1094 | 1082 | cret := xApplicationRegister(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 1095 | - | ||
| 1096 | 1083 | if cerr == nil { | |
| 1097 | 1084 | return cret, nil | |
| 1098 | 1085 | } | |
| @@ -1194,7 +1181,6 @@ var xApplicationRun func(uintptr, int, []string) int | |||
| 1194 | 1181 | func (x *Application) Run(ArgcVar int, ArgvVar []string) int { | |
| 1195 | 1182 | ||
| 1196 | 1183 | cret := xApplicationRun(x.GoPointer(), ArgcVar, ArgvVar) | |
| 1197 | - | ||
| 1198 | 1184 | return cret | |
| 1199 | 1185 | } | |
| 1200 | 1186 | ||
| @@ -1231,12 +1217,11 @@ var xApplicationSendNotification func(uintptr, uintptr, uintptr) | |||
| 1231 | 1217 | // application ID. | |
| 1232 | 1218 | func (x *Application) SendNotification(IdVar *string, NotificationVar *Notification) { | |
| 1233 | 1219 | ||
| 1234 | - | IdVarPtr, IdVarBytes := core.NullableStringToPtr(IdVar) | |
| 1220 | + | IdVarPtr := core.GStrdupNullable(IdVar) | |
| 1221 | + | defer core.GFreeNullable(IdVarPtr) | |
| 1235 | 1222 | ||
| 1236 | 1223 | xApplicationSendNotification(x.GoPointer(), IdVarPtr, NotificationVar.GoPointer()) | |
| 1237 | 1224 | ||
| 1238 | - | runtime.KeepAlive(IdVarBytes) | |
| 1239 | - | ||
| 1240 | 1225 | } | |
| 1241 | 1226 | ||
| 1242 | 1227 | var xApplicationSetActionGroup func(uintptr, uintptr) | |
| @@ -1260,12 +1245,11 @@ var xApplicationSetApplicationId func(uintptr, uintptr) | |||
| 1260 | 1245 | // g_application_id_is_valid(). | |
| 1261 | 1246 | func (x *Application) SetApplicationId(ApplicationIdVar *string) { | |
| 1262 | 1247 | ||
| 1263 | - | ApplicationIdVarPtr, ApplicationIdVarBytes := core.NullableStringToPtr(ApplicationIdVar) | |
| 1248 | + | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | |
| 1249 | + | defer core.GFreeNullable(ApplicationIdVarPtr) | |
| 1264 | 1250 | ||
| 1265 | 1251 | xApplicationSetApplicationId(x.GoPointer(), ApplicationIdVarPtr) | |
| 1266 | 1252 | ||
| 1267 | - | runtime.KeepAlive(ApplicationIdVarBytes) | |
| 1268 | - | ||
| 1269 | 1253 | } | |
| 1270 | 1254 | ||
| 1271 | 1255 | var xApplicationSetDefault func(uintptr) | |
| @@ -1319,12 +1303,11 @@ var xApplicationSetOptionContextDescription func(uintptr, uintptr) | |||
| 1319 | 1303 | // See g_option_context_set_description() for more information. | |
| 1320 | 1304 | func (x *Application) SetOptionContextDescription(DescriptionVar *string) { | |
| 1321 | 1305 | ||
| 1322 | - | DescriptionVarPtr, DescriptionVarBytes := core.NullableStringToPtr(DescriptionVar) | |
| 1306 | + | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 1307 | + | defer core.GFreeNullable(DescriptionVarPtr) | |
| 1323 | 1308 | ||
| 1324 | 1309 | xApplicationSetOptionContextDescription(x.GoPointer(), DescriptionVarPtr) | |
| 1325 | 1310 | ||
| 1326 | - | runtime.KeepAlive(DescriptionVarBytes) | |
| 1327 | - | ||
| 1328 | 1311 | } | |
| 1329 | 1312 | ||
| 1330 | 1313 | var xApplicationSetOptionContextParameterString func(uintptr, uintptr) | |
| @@ -1337,12 +1320,11 @@ var xApplicationSetOptionContextParameterString func(uintptr, uintptr) | |||
| 1337 | 1320 | // See g_option_context_new() for more information about @parameter_string. | |
| 1338 | 1321 | func (x *Application) SetOptionContextParameterString(ParameterStringVar *string) { | |
| 1339 | 1322 | ||
| 1340 | - | ParameterStringVarPtr, ParameterStringVarBytes := core.NullableStringToPtr(ParameterStringVar) | |
| 1323 | + | ParameterStringVarPtr := core.GStrdupNullable(ParameterStringVar) | |
| 1324 | + | defer core.GFreeNullable(ParameterStringVarPtr) | |
| 1341 | 1325 | ||
| 1342 | 1326 | xApplicationSetOptionContextParameterString(x.GoPointer(), ParameterStringVarPtr) | |
| 1343 | 1327 | ||
| 1344 | - | runtime.KeepAlive(ParameterStringVarBytes) | |
| 1345 | - | ||
| 1346 | 1328 | } | |
| 1347 | 1329 | ||
| 1348 | 1330 | var xApplicationSetOptionContextSummary func(uintptr, uintptr) | |
| @@ -1352,12 +1334,11 @@ var xApplicationSetOptionContextSummary func(uintptr, uintptr) | |||
| 1352 | 1334 | // See g_option_context_set_summary() for more information. | |
| 1353 | 1335 | func (x *Application) SetOptionContextSummary(SummaryVar *string) { | |
| 1354 | 1336 | ||
| 1355 | - | SummaryVarPtr, SummaryVarBytes := core.NullableStringToPtr(SummaryVar) | |
| 1337 | + | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | |
| 1338 | + | defer core.GFreeNullable(SummaryVarPtr) | |
| 1356 | 1339 | ||
| 1357 | 1340 | xApplicationSetOptionContextSummary(x.GoPointer(), SummaryVarPtr) | |
| 1358 | 1341 | ||
| 1359 | - | runtime.KeepAlive(SummaryVarBytes) | |
| 1360 | - | ||
| 1361 | 1342 | } | |
| 1362 | 1343 | ||
| 1363 | 1344 | var xApplicationSetResourceBasePath func(uintptr, uintptr) | |
| @@ -1397,12 +1378,11 @@ var xApplicationSetResourceBasePath func(uintptr, uintptr) | |||
| 1397 | 1378 | // before chaining up to the parent implementation. | |
| 1398 | 1379 | func (x *Application) SetResourceBasePath(ResourcePathVar *string) { | |
| 1399 | 1380 | ||
| 1400 | - | ResourcePathVarPtr, ResourcePathVarBytes := core.NullableStringToPtr(ResourcePathVar) | |
| 1381 | + | ResourcePathVarPtr := core.GStrdupNullable(ResourcePathVar) | |
| 1382 | + | defer core.GFreeNullable(ResourcePathVarPtr) | |
| 1401 | 1383 | ||
| 1402 | 1384 | xApplicationSetResourceBasePath(x.GoPointer(), ResourcePathVarPtr) | |
| 1403 | 1385 | ||
| 1404 | - | runtime.KeepAlive(ResourcePathVarBytes) | |
| 1405 | - | ||
| 1406 | 1386 | } | |
| 1407 | 1387 | ||
| 1408 | 1388 | var xApplicationSetVersion func(uintptr, string) | |
| @@ -1886,7 +1866,6 @@ func (x *Application) ChangeActionState(ActionNameVar string, ValueVar *glib.Var | |||
| 1886 | 1866 | func (x *Application) GetActionEnabled(ActionNameVar string) bool { | |
| 1887 | 1867 | ||
| 1888 | 1868 | cret := XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 1889 | - | ||
| 1890 | 1869 | return cret | |
| 1891 | 1870 | } | |
| 1892 | 1871 | ||
| @@ -1906,7 +1885,6 @@ func (x *Application) GetActionEnabled(ActionNameVar string) bool { | |||
| 1906 | 1885 | func (x *Application) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 1907 | 1886 | ||
| 1908 | 1887 | cret := XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 1909 | - | ||
| 1910 | 1888 | return cret | |
| 1911 | 1889 | } | |
| 1912 | 1890 | ||
| @@ -1921,7 +1899,6 @@ func (x *Application) GetActionParameterType(ActionNameVar string) *glib.Variant | |||
| 1921 | 1899 | func (x *Application) GetActionState(ActionNameVar string) *glib.Variant { | |
| 1922 | 1900 | ||
| 1923 | 1901 | cret := XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 1924 | - | ||
| 1925 | 1902 | return cret | |
| 1926 | 1903 | } | |
| 1927 | 1904 | ||
| @@ -1946,7 +1923,6 @@ func (x *Application) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 1946 | 1923 | func (x *Application) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 1947 | 1924 | ||
| 1948 | 1925 | cret := XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 1949 | - | ||
| 1950 | 1926 | return cret | |
| 1951 | 1927 | } | |
| 1952 | 1928 | ||
| @@ -1969,7 +1945,6 @@ func (x *Application) GetActionStateHint(ActionNameVar string) *glib.Variant { | |||
| 1969 | 1945 | func (x *Application) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 1970 | 1946 | ||
| 1971 | 1947 | cret := XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 1972 | - | ||
| 1973 | 1948 | return cret | |
| 1974 | 1949 | } | |
| 1975 | 1950 | ||
| @@ -1977,7 +1952,6 @@ func (x *Application) GetActionStateType(ActionNameVar string) *glib.VariantType | |||
| 1977 | 1952 | func (x *Application) HasAction(ActionNameVar string) bool { | |
| 1978 | 1953 | ||
| 1979 | 1954 | cret := XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 1980 | - | ||
| 1981 | 1955 | return cret | |
| 1982 | 1956 | } | |
| 1983 | 1957 | ||
| @@ -1988,7 +1962,6 @@ func (x *Application) HasAction(ActionNameVar string) bool { | |||
| 1988 | 1962 | func (x *Application) ListActions() []string { | |
| 1989 | 1963 | ||
| 1990 | 1964 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 1991 | - | ||
| 1992 | 1965 | return cret | |
| 1993 | 1966 | } | |
| 1994 | 1967 | ||
| @@ -2022,7 +1995,6 @@ func (x *Application) ListActions() []string { | |||
| 2022 | 1995 | func (x *Application) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 2023 | 1996 | ||
| 2024 | 1997 | cret := XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 2025 | - | ||
| 2026 | 1998 | return cret | |
| 2027 | 1999 | } | |
| 2028 | 2000 | ||
| @@ -2217,7 +2189,6 @@ var xApplicationIdIsValid func(string) bool | |||
| 2217 | 2189 | func ApplicationIdIsValid(ApplicationIdVar string) bool { | |
| 2218 | 2190 | ||
| 2219 | 2191 | cret := xApplicationIdIsValid(ApplicationIdVar) | |
| 2220 | - | ||
| 2221 | 2192 | return cret | |
| 2222 | 2193 | } | |
| 2223 | 2194 | ||
M v4/gio/gapplicationcommandline.go +0 -8
| @@ -399,7 +399,6 @@ var xApplicationCommandLineGetArguments func(uintptr, *int) []string | |||
| 399 | 399 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | |
| 400 | 400 | ||
| 401 | 401 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | |
| 402 | - | ||
| 403 | 402 | return cret | |
| 404 | 403 | } | |
| 405 | 404 | ||
| @@ -416,7 +415,6 @@ var xApplicationCommandLineGetCwd func(uintptr) string | |||
| 416 | 415 | func (x *ApplicationCommandLine) GetCwd() string { | |
| 417 | 416 | ||
| 418 | 417 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | |
| 419 | - | ||
| 420 | 418 | return cret | |
| 421 | 419 | } | |
| 422 | 420 | ||
| @@ -440,7 +438,6 @@ var xApplicationCommandLineGetEnviron func(uintptr) []string | |||
| 440 | 438 | func (x *ApplicationCommandLine) GetEnviron() []string { | |
| 441 | 439 | ||
| 442 | 440 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | |
| 443 | - | ||
| 444 | 441 | return cret | |
| 445 | 442 | } | |
| 446 | 443 | ||
| @@ -451,7 +448,6 @@ var xApplicationCommandLineGetExitStatus func(uintptr) int | |||
| 451 | 448 | func (x *ApplicationCommandLine) GetExitStatus() int { | |
| 452 | 449 | ||
| 453 | 450 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | |
| 454 | - | ||
| 455 | 451 | return cret | |
| 456 | 452 | } | |
| 457 | 453 | ||
| @@ -461,7 +457,6 @@ var xApplicationCommandLineGetIsRemote func(uintptr) bool | |||
| 461 | 457 | func (x *ApplicationCommandLine) GetIsRemote() bool { | |
| 462 | 458 | ||
| 463 | 459 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | |
| 464 | - | ||
| 465 | 460 | return cret | |
| 466 | 461 | } | |
| 467 | 462 | ||
| @@ -482,7 +477,6 @@ var xApplicationCommandLineGetOptionsDict func(uintptr) *glib.VariantDict | |||
| 482 | 477 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | |
| 483 | 478 | ||
| 484 | 479 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | |
| 485 | - | ||
| 486 | 480 | return cret | |
| 487 | 481 | } | |
| 488 | 482 | ||
| @@ -502,7 +496,6 @@ var xApplicationCommandLineGetPlatformData func(uintptr) *glib.Variant | |||
| 502 | 496 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | |
| 503 | 497 | ||
| 504 | 498 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | |
| 505 | - | ||
| 506 | 499 | return cret | |
| 507 | 500 | } | |
| 508 | 501 | ||
| @@ -547,7 +540,6 @@ var xApplicationCommandLineGetenv func(uintptr, string) string | |||
| 547 | 540 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | |
| 548 | 541 | ||
| 549 | 542 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | |
| 550 | - | ||
| 551 | 543 | return cret | |
| 552 | 544 | } | |
| 553 | 545 | ||
M v4/gio/gasyncinitable.go +0 -1
| @@ -265,7 +265,6 @@ func (x *AsyncInitableBase) InitFinish(ResVar AsyncResult) (bool, error) { | |||
| 265 | 265 | var cerr *glib.Error | |
| 266 | 266 | ||
| 267 | 267 | cret := XGAsyncInitableInitFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 268 | - | ||
| 269 | 268 | if cerr == nil { | |
| 270 | 269 | return cret, nil | |
| 271 | 270 | } | |
M v4/gio/gasyncresult.go +0 -3
| @@ -253,7 +253,6 @@ func (x *AsyncResultBase) GetSourceObject() *gobject.Object { | |||
| 253 | 253 | func (x *AsyncResultBase) GetUserData() uintptr { | |
| 254 | 254 | ||
| 255 | 255 | cret := XGAsyncResultGetUserData(x.GoPointer()) | |
| 256 | - | ||
| 257 | 256 | return cret | |
| 258 | 257 | } | |
| 259 | 258 | ||
| @@ -262,7 +261,6 @@ func (x *AsyncResultBase) GetUserData() uintptr { | |||
| 262 | 261 | func (x *AsyncResultBase) IsTagged(SourceTagVar uintptr) bool { | |
| 263 | 262 | ||
| 264 | 263 | cret := XGAsyncResultIsTagged(x.GoPointer(), SourceTagVar) | |
| 265 | - | ||
| 266 | 264 | return cret | |
| 267 | 265 | } | |
| 268 | 266 | ||
| @@ -280,7 +278,6 @@ func (x *AsyncResultBase) LegacyPropagateError() (bool, error) { | |||
| 280 | 278 | var cerr *glib.Error | |
| 281 | 279 | ||
| 282 | 280 | cret := XGAsyncResultLegacyPropagateError(x.GoPointer()) | |
| 283 | - | ||
| 284 | 281 | if cerr == nil { | |
| 285 | 282 | return cret, nil | |
| 286 | 283 | } | |
M v4/gio/gbufferedinputstream.go +0 -12
| @@ -324,7 +324,6 @@ func (x *BufferedInputStream) Fill(CountVar int, CancellableVar *Cancellable) (i | |||
| 324 | 324 | var cerr *glib.Error | |
| 325 | 325 | ||
| 326 | 326 | cret := xBufferedInputStreamFill(x.GoPointer(), CountVar, CancellableVar.GoPointer(), &cerr) | |
| 327 | - | ||
| 328 | 327 | if cerr == nil { | |
| 329 | 328 | return cret, nil | |
| 330 | 329 | } | |
| @@ -368,7 +367,6 @@ func (x *BufferedInputStream) FillFinish(ResultVar AsyncResult) (int, error) { | |||
| 368 | 367 | var cerr *glib.Error | |
| 369 | 368 | ||
| 370 | 369 | cret := xBufferedInputStreamFillFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 371 | - | ||
| 372 | 370 | if cerr == nil { | |
| 373 | 371 | return cret, nil | |
| 374 | 372 | } | |
| @@ -382,7 +380,6 @@ var xBufferedInputStreamGetAvailable func(uintptr) uint | |||
| 382 | 380 | func (x *BufferedInputStream) GetAvailable() uint { | |
| 383 | 381 | ||
| 384 | 382 | cret := xBufferedInputStreamGetAvailable(x.GoPointer()) | |
| 385 | - | ||
| 386 | 383 | return cret | |
| 387 | 384 | } | |
| 388 | 385 | ||
| @@ -392,7 +389,6 @@ var xBufferedInputStreamGetBufferSize func(uintptr) uint | |||
| 392 | 389 | func (x *BufferedInputStream) GetBufferSize() uint { | |
| 393 | 390 | ||
| 394 | 391 | cret := xBufferedInputStreamGetBufferSize(x.GoPointer()) | |
| 395 | - | ||
| 396 | 392 | return cret | |
| 397 | 393 | } | |
| 398 | 394 | ||
| @@ -403,7 +399,6 @@ var xBufferedInputStreamPeek func(uintptr, []byte, uint, uint) uint | |||
| 403 | 399 | func (x *BufferedInputStream) Peek(BufferVar []byte, OffsetVar uint, CountVar uint) uint { | |
| 404 | 400 | ||
| 405 | 401 | cret := xBufferedInputStreamPeek(x.GoPointer(), BufferVar, OffsetVar, CountVar) | |
| 406 | - | ||
| 407 | 402 | return cret | |
| 408 | 403 | } | |
| 409 | 404 | ||
| @@ -415,7 +410,6 @@ var xBufferedInputStreamPeekBuffer func(uintptr, *uint) uintptr | |||
| 415 | 410 | func (x *BufferedInputStream) PeekBuffer(CountVar *uint) uintptr { | |
| 416 | 411 | ||
| 417 | 412 | cret := xBufferedInputStreamPeekBuffer(x.GoPointer(), CountVar) | |
| 418 | - | ||
| 419 | 413 | return cret | |
| 420 | 414 | } | |
| 421 | 415 | ||
| @@ -438,7 +432,6 @@ func (x *BufferedInputStream) ReadByte(CancellableVar *Cancellable) (int, error) | |||
| 438 | 432 | var cerr *glib.Error | |
| 439 | 433 | ||
| 440 | 434 | cret := xBufferedInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 441 | - | ||
| 442 | 435 | if cerr == nil { | |
| 443 | 436 | return cret, nil | |
| 444 | 437 | } | |
| @@ -489,7 +482,6 @@ func (x *BufferedInputStream) GetPropertyBufferSize() uint { | |||
| 489 | 482 | func (x *BufferedInputStream) CanSeek() bool { | |
| 490 | 483 | ||
| 491 | 484 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 492 | - | ||
| 493 | 485 | return cret | |
| 494 | 486 | } | |
| 495 | 487 | ||
| @@ -498,7 +490,6 @@ func (x *BufferedInputStream) CanSeek() bool { | |||
| 498 | 490 | func (x *BufferedInputStream) CanTruncate() bool { | |
| 499 | 491 | ||
| 500 | 492 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 501 | - | ||
| 502 | 493 | return cret | |
| 503 | 494 | } | |
| 504 | 495 | ||
| @@ -520,7 +511,6 @@ func (x *BufferedInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cance | |||
| 520 | 511 | var cerr *glib.Error | |
| 521 | 512 | ||
| 522 | 513 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 523 | - | ||
| 524 | 514 | if cerr == nil { | |
| 525 | 515 | return cret, nil | |
| 526 | 516 | } | |
| @@ -532,7 +522,6 @@ func (x *BufferedInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cance | |||
| 532 | 522 | func (x *BufferedInputStream) Tell() int64 { | |
| 533 | 523 | ||
| 534 | 524 | cret := XGSeekableTell(x.GoPointer()) | |
| 535 | - | ||
| 536 | 525 | return cret | |
| 537 | 526 | } | |
| 538 | 527 | ||
| @@ -549,7 +538,6 @@ func (x *BufferedInputStream) Truncate(OffsetVar int64, CancellableVar *Cancella | |||
| 549 | 538 | var cerr *glib.Error | |
| 550 | 539 | ||
| 551 | 540 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 552 | - | ||
| 553 | 541 | if cerr == nil { | |
| 554 | 542 | return cret, nil | |
| 555 | 543 | } | |
M v4/gio/gbufferedoutputstream.go +0 -7
| @@ -147,7 +147,6 @@ var xBufferedOutputStreamGetAutoGrow func(uintptr) bool | |||
| 147 | 147 | func (x *BufferedOutputStream) GetAutoGrow() bool { | |
| 148 | 148 | ||
| 149 | 149 | cret := xBufferedOutputStreamGetAutoGrow(x.GoPointer()) | |
| 150 | - | ||
| 151 | 150 | return cret | |
| 152 | 151 | } | |
| 153 | 152 | ||
| @@ -157,7 +156,6 @@ var xBufferedOutputStreamGetBufferSize func(uintptr) uint | |||
| 157 | 156 | func (x *BufferedOutputStream) GetBufferSize() uint { | |
| 158 | 157 | ||
| 159 | 158 | cret := xBufferedOutputStreamGetBufferSize(x.GoPointer()) | |
| 160 | - | ||
| 161 | 159 | return cret | |
| 162 | 160 | } | |
| 163 | 161 | ||
| @@ -231,7 +229,6 @@ func (x *BufferedOutputStream) GetPropertyBufferSize() uint { | |||
| 231 | 229 | func (x *BufferedOutputStream) CanSeek() bool { | |
| 232 | 230 | ||
| 233 | 231 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 234 | - | ||
| 235 | 232 | return cret | |
| 236 | 233 | } | |
| 237 | 234 | ||
| @@ -240,7 +237,6 @@ func (x *BufferedOutputStream) CanSeek() bool { | |||
| 240 | 237 | func (x *BufferedOutputStream) CanTruncate() bool { | |
| 241 | 238 | ||
| 242 | 239 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 243 | - | ||
| 244 | 240 | return cret | |
| 245 | 241 | } | |
| 246 | 242 | ||
| @@ -262,7 +258,6 @@ func (x *BufferedOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Canc | |||
| 262 | 258 | var cerr *glib.Error | |
| 263 | 259 | ||
| 264 | 260 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 265 | - | ||
| 266 | 261 | if cerr == nil { | |
| 267 | 262 | return cret, nil | |
| 268 | 263 | } | |
| @@ -274,7 +269,6 @@ func (x *BufferedOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Canc | |||
| 274 | 269 | func (x *BufferedOutputStream) Tell() int64 { | |
| 275 | 270 | ||
| 276 | 271 | cret := XGSeekableTell(x.GoPointer()) | |
| 277 | - | ||
| 278 | 272 | return cret | |
| 279 | 273 | } | |
| 280 | 274 | ||
| @@ -291,7 +285,6 @@ func (x *BufferedOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancell | |||
| 291 | 285 | var cerr *glib.Error | |
| 292 | 286 | ||
| 293 | 287 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 294 | - | ||
| 295 | 288 | if cerr == nil { | |
| 296 | 289 | return cret, nil | |
| 297 | 290 | } | |
M v4/gio/gbytesicon.go +0 -5
| @@ -52,7 +52,6 @@ var xBytesIconGetBytes func(uintptr) *glib.Bytes | |||
| 52 | 52 | func (x *BytesIcon) GetBytes() *glib.Bytes { | |
| 53 | 53 | ||
| 54 | 54 | cret := xBytesIconGetBytes(x.GoPointer()) | |
| 55 | - | ||
| 56 | 55 | return cret | |
| 57 | 56 | } | |
| 58 | 57 | ||
| @@ -88,7 +87,6 @@ func (x *BytesIcon) GetPropertyBytes() uintptr { | |||
| 88 | 87 | func (x *BytesIcon) Equal(Icon2Var Icon) bool { | |
| 89 | 88 | ||
| 90 | 89 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 91 | - | ||
| 92 | 90 | return cret | |
| 93 | 91 | } | |
| 94 | 92 | ||
| @@ -96,7 +94,6 @@ func (x *BytesIcon) Equal(Icon2Var Icon) bool { | |||
| 96 | 94 | func (x *BytesIcon) Hash() uint { | |
| 97 | 95 | ||
| 98 | 96 | cret := XGIconHash(x.GoPointer()) | |
| 99 | - | ||
| 100 | 97 | return cret | |
| 101 | 98 | } | |
| 102 | 99 | ||
| @@ -108,7 +105,6 @@ func (x *BytesIcon) Hash() uint { | |||
| 108 | 105 | func (x *BytesIcon) Serialize() *glib.Variant { | |
| 109 | 106 | ||
| 110 | 107 | cret := XGIconSerialize(x.GoPointer()) | |
| 111 | - | ||
| 112 | 108 | return cret | |
| 113 | 109 | } | |
| 114 | 110 | ||
| @@ -131,7 +127,6 @@ func (x *BytesIcon) Serialize() *glib.Variant { | |||
| 131 | 127 | func (x *BytesIcon) ToString() string { | |
| 132 | 128 | ||
| 133 | 129 | cret := XGIconToString(x.GoPointer()) | |
| 134 | - | ||
| 135 | 130 | return cret | |
| 136 | 131 | } | |
| 137 | 132 | ||
M v4/gio/gcancellable.go +0 -6
| @@ -321,7 +321,6 @@ func (x *Cancellable) Connect(CallbackVar *gobject.Callback, DataVar uintptr, Da | |||
| 321 | 321 | } | |
| 322 | 322 | ||
| 323 | 323 | cret := xCancellableConnect(x.GoPointer(), CallbackVarRef, DataVar, DataDestroyFuncVarRef) | |
| 324 | - | ||
| 325 | 324 | return cret | |
| 326 | 325 | } | |
| 327 | 326 | ||
| @@ -365,7 +364,6 @@ var xCancellableGetFd func(uintptr) int | |||
| 365 | 364 | func (x *Cancellable) GetFd() int { | |
| 366 | 365 | ||
| 367 | 366 | cret := xCancellableGetFd(x.GoPointer()) | |
| 368 | - | ||
| 369 | 367 | return cret | |
| 370 | 368 | } | |
| 371 | 369 | ||
| @@ -375,7 +373,6 @@ var xCancellableIsCancelled func(uintptr) bool | |||
| 375 | 373 | func (x *Cancellable) IsCancelled() bool { | |
| 376 | 374 | ||
| 377 | 375 | cret := xCancellableIsCancelled(x.GoPointer()) | |
| 378 | - | ||
| 379 | 376 | return cret | |
| 380 | 377 | } | |
| 381 | 378 | ||
| @@ -407,7 +404,6 @@ var xCancellableMakePollfd func(uintptr, *glib.PollFD) bool | |||
| 407 | 404 | func (x *Cancellable) MakePollfd(PollfdVar *glib.PollFD) bool { | |
| 408 | 405 | ||
| 409 | 406 | cret := xCancellableMakePollfd(x.GoPointer(), PollfdVar) | |
| 410 | - | ||
| 411 | 407 | return cret | |
| 412 | 408 | } | |
| 413 | 409 | ||
| @@ -491,7 +487,6 @@ func (x *Cancellable) SetErrorIfCancelled() (bool, error) { | |||
| 491 | 487 | var cerr *glib.Error | |
| 492 | 488 | ||
| 493 | 489 | cret := xCancellableSetErrorIfCancelled(x.GoPointer()) | |
| 494 | - | ||
| 495 | 490 | if cerr == nil { | |
| 496 | 491 | return cret, nil | |
| 497 | 492 | } | |
| @@ -513,7 +508,6 @@ var xCancellableSourceNew func(uintptr) *glib.Source | |||
| 513 | 508 | func (x *Cancellable) SourceNew() *glib.Source { | |
| 514 | 509 | ||
| 515 | 510 | cret := xCancellableSourceNew(x.GoPointer()) | |
| 516 | - | ||
| 517 | 511 | return cret | |
| 518 | 512 | } | |
| 519 | 513 | ||
M v4/gio/gcharsetconverter.go +0 -5
| @@ -67,7 +67,6 @@ var xCharsetConverterGetNumFallbacks func(uintptr) uint | |||
| 67 | 67 | func (x *CharsetConverter) GetNumFallbacks() uint { | |
| 68 | 68 | ||
| 69 | 69 | cret := xCharsetConverterGetNumFallbacks(x.GoPointer()) | |
| 70 | - | ||
| 71 | 70 | return cret | |
| 72 | 71 | } | |
| 73 | 72 | ||
| @@ -77,7 +76,6 @@ var xCharsetConverterGetUseFallback func(uintptr) bool | |||
| 77 | 76 | func (x *CharsetConverter) GetUseFallback() bool { | |
| 78 | 77 | ||
| 79 | 78 | cret := xCharsetConverterGetUseFallback(x.GoPointer()) | |
| 80 | - | ||
| 81 | 79 | return cret | |
| 82 | 80 | } | |
| 83 | 81 | ||
| @@ -238,7 +236,6 @@ func (x *CharsetConverter) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar | |||
| 238 | 236 | var cerr *glib.Error | |
| 239 | 237 | ||
| 240 | 238 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 241 | - | ||
| 242 | 239 | if cerr == nil { | |
| 243 | 240 | return cret, nil | |
| 244 | 241 | } | |
| @@ -251,7 +248,6 @@ func (x *CharsetConverter) ConvertBytes(BytesVar *glib.Bytes) (*glib.Bytes, erro | |||
| 251 | 248 | var cerr *glib.Error | |
| 252 | 249 | ||
| 253 | 250 | cret := XGConverterConvertBytes(x.GoPointer(), BytesVar, &cerr) | |
| 254 | - | ||
| 255 | 251 | if cerr == nil { | |
| 256 | 252 | return cret, nil | |
| 257 | 253 | } | |
| @@ -310,7 +306,6 @@ func (x *CharsetConverter) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 310 | 306 | var cerr *glib.Error | |
| 311 | 307 | ||
| 312 | 308 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 313 | - | ||
| 314 | 309 | if cerr == nil { | |
| 315 | 310 | return cret, nil | |
| 316 | 311 | } | |
M v4/gio/gcontenttype.go +2 -18
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -16,7 +14,6 @@ var xContentTypeCanBeExecutable func(string) bool | |||
| 16 | 14 | func ContentTypeCanBeExecutable(TypeVar string) bool { | |
| 17 | 15 | ||
| 18 | 16 | cret := xContentTypeCanBeExecutable(TypeVar) | |
| 19 | - | ||
| 20 | 17 | return cret | |
| 21 | 18 | } | |
| 22 | 19 | ||
| @@ -26,7 +23,6 @@ var xContentTypeEquals func(string, string) bool | |||
| 26 | 23 | func ContentTypeEquals(Type1Var string, Type2Var string) bool { | |
| 27 | 24 | ||
| 28 | 25 | cret := xContentTypeEquals(Type1Var, Type2Var) | |
| 29 | - | ||
| 30 | 26 | return cret | |
| 31 | 27 | } | |
| 32 | 28 | ||
| @@ -36,7 +32,6 @@ var xContentTypeFromMimeType func(string) string | |||
| 36 | 32 | func ContentTypeFromMimeType(MimeTypeVar string) string { | |
| 37 | 33 | ||
| 38 | 34 | cret := xContentTypeFromMimeType(MimeTypeVar) | |
| 39 | - | ||
| 40 | 35 | return cret | |
| 41 | 36 | } | |
| 42 | 37 | ||
| @@ -46,7 +41,6 @@ var xContentTypeGetDescription func(string) string | |||
| 46 | 41 | func ContentTypeGetDescription(TypeVar string) string { | |
| 47 | 42 | ||
| 48 | 43 | cret := xContentTypeGetDescription(TypeVar) | |
| 49 | - | ||
| 50 | 44 | return cret | |
| 51 | 45 | } | |
| 52 | 46 | ||
| @@ -60,7 +54,6 @@ var xContentTypeGetGenericIconName func(string) string | |||
| 60 | 54 | func ContentTypeGetGenericIconName(TypeVar string) string { | |
| 61 | 55 | ||
| 62 | 56 | cret := xContentTypeGetGenericIconName(TypeVar) | |
| 63 | - | ||
| 64 | 57 | return cret | |
| 65 | 58 | } | |
| 66 | 59 | ||
| @@ -87,7 +80,6 @@ var xContentTypeGetMimeDirs func() []string | |||
| 87 | 80 | func ContentTypeGetMimeDirs() []string { | |
| 88 | 81 | ||
| 89 | 82 | cret := xContentTypeGetMimeDirs() | |
| 90 | - | ||
| 91 | 83 | return cret | |
| 92 | 84 | } | |
| 93 | 85 | ||
| @@ -97,7 +89,6 @@ var xContentTypeGetMimeType func(string) string | |||
| 97 | 89 | func ContentTypeGetMimeType(TypeVar string) string { | |
| 98 | 90 | ||
| 99 | 91 | cret := xContentTypeGetMimeType(TypeVar) | |
| 100 | - | ||
| 101 | 92 | return cret | |
| 102 | 93 | } | |
| 103 | 94 | ||
| @@ -125,12 +116,10 @@ var xContentTypeGuess func(uintptr, []byte, uint, *bool) string | |||
| 125 | 116 | // on the other argument. | |
| 126 | 117 | func ContentTypeGuess(FilenameVar *string, DataVar []byte, DataSizeVar uint, ResultUncertainVar *bool) string { | |
| 127 | 118 | ||
| 128 | - | FilenameVarPtr, FilenameVarBytes := core.NullableStringToPtr(FilenameVar) | |
| 119 | + | FilenameVarPtr := core.GStrdupNullable(FilenameVar) | |
| 120 | + | defer core.GFreeNullable(FilenameVarPtr) | |
| 129 | 121 | ||
| 130 | 122 | cret := xContentTypeGuess(FilenameVarPtr, DataVar, DataSizeVar, ResultUncertainVar) | |
| 131 | - | ||
| 132 | - | runtime.KeepAlive(FilenameVarBytes) | |
| 133 | - | ||
| 134 | 123 | return cret | |
| 135 | 124 | } | |
| 136 | 125 | ||
| @@ -151,7 +140,6 @@ var xContentTypeGuessForTree func(uintptr) []string | |||
| 151 | 140 | func ContentTypeGuessForTree(RootVar File) []string { | |
| 152 | 141 | ||
| 153 | 142 | cret := xContentTypeGuessForTree(RootVar.GoPointer()) | |
| 154 | - | ||
| 155 | 143 | return cret | |
| 156 | 144 | } | |
| 157 | 145 | ||
| @@ -161,7 +149,6 @@ var xContentTypeIsA func(string, string) bool | |||
| 161 | 149 | func ContentTypeIsA(TypeVar string, SupertypeVar string) bool { | |
| 162 | 150 | ||
| 163 | 151 | cret := xContentTypeIsA(TypeVar, SupertypeVar) | |
| 164 | - | ||
| 165 | 152 | return cret | |
| 166 | 153 | } | |
| 167 | 154 | ||
| @@ -172,7 +159,6 @@ var xContentTypeIsMimeType func(string, string) bool | |||
| 172 | 159 | func ContentTypeIsMimeType(TypeVar string, MimeTypeVar string) bool { | |
| 173 | 160 | ||
| 174 | 161 | cret := xContentTypeIsMimeType(TypeVar, MimeTypeVar) | |
| 175 | - | ||
| 176 | 162 | return cret | |
| 177 | 163 | } | |
| 178 | 164 | ||
| @@ -185,7 +171,6 @@ var xContentTypeIsUnknown func(string) bool | |||
| 185 | 171 | func ContentTypeIsUnknown(TypeVar string) bool { | |
| 186 | 172 | ||
| 187 | 173 | cret := xContentTypeIsUnknown(TypeVar) | |
| 188 | - | ||
| 189 | 174 | return cret | |
| 190 | 175 | } | |
| 191 | 176 | ||
| @@ -230,7 +215,6 @@ var xContentTypesGetRegistered func() *glib.List | |||
| 230 | 215 | func ContentTypesGetRegistered() *glib.List { | |
| 231 | 216 | ||
| 232 | 217 | cret := xContentTypesGetRegistered() | |
| 233 | - | ||
| 234 | 218 | return cret | |
| 235 | 219 | } | |
| 236 | 220 | ||
M v4/gio/gconverter.go +0 -2
| @@ -202,7 +202,6 @@ func (x *ConverterBase) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar [] | |||
| 202 | 202 | var cerr *glib.Error | |
| 203 | 203 | ||
| 204 | 204 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 205 | - | ||
| 206 | 205 | if cerr == nil { | |
| 207 | 206 | return cret, nil | |
| 208 | 207 | } | |
| @@ -215,7 +214,6 @@ func (x *ConverterBase) ConvertBytes(BytesVar *glib.Bytes) (*glib.Bytes, error) | |||
| 215 | 214 | var cerr *glib.Error | |
| 216 | 215 | ||
| 217 | 216 | cret := XGConverterConvertBytes(x.GoPointer(), BytesVar, &cerr) | |
| 218 | - | ||
| 219 | 217 | if cerr == nil { | |
| 220 | 218 | return cret, nil | |
| 221 | 219 | } | |
M v4/gio/gconverterinputstream.go +0 -4
| @@ -230,7 +230,6 @@ func (c *ConverterInputStream) SetGoPointer(ptr uintptr) { | |||
| 230 | 230 | func (x *ConverterInputStream) CanPoll() bool { | |
| 231 | 231 | ||
| 232 | 232 | cret := XGPollableInputStreamCanPoll(x.GoPointer()) | |
| 233 | - | ||
| 234 | 233 | return cret | |
| 235 | 234 | } | |
| 236 | 235 | ||
| @@ -248,7 +247,6 @@ func (x *ConverterInputStream) CanPoll() bool { | |||
| 248 | 247 | func (x *ConverterInputStream) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 249 | 248 | ||
| 250 | 249 | cret := XGPollableInputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 251 | - | ||
| 252 | 250 | return cret | |
| 253 | 251 | } | |
| 254 | 252 | ||
| @@ -266,7 +264,6 @@ func (x *ConverterInputStream) CreateSource(CancellableVar *Cancellable) *glib.S | |||
| 266 | 264 | func (x *ConverterInputStream) IsReadable() bool { | |
| 267 | 265 | ||
| 268 | 266 | cret := XGPollableInputStreamIsReadable(x.GoPointer()) | |
| 269 | - | ||
| 270 | 267 | return cret | |
| 271 | 268 | } | |
| 272 | 269 | ||
| @@ -288,7 +285,6 @@ func (x *ConverterInputStream) ReadNonblocking(BufferVar *[]byte, CountVar uint, | |||
| 288 | 285 | var cerr *glib.Error | |
| 289 | 286 | ||
| 290 | 287 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 291 | - | ||
| 292 | 288 | if cerr == nil { | |
| 293 | 289 | return cret, nil | |
| 294 | 290 | } | |
M v4/gio/gconverteroutputstream.go +0 -5
| @@ -230,7 +230,6 @@ func (c *ConverterOutputStream) SetGoPointer(ptr uintptr) { | |||
| 230 | 230 | func (x *ConverterOutputStream) CanPoll() bool { | |
| 231 | 231 | ||
| 232 | 232 | cret := XGPollableOutputStreamCanPoll(x.GoPointer()) | |
| 233 | - | ||
| 234 | 233 | return cret | |
| 235 | 234 | } | |
| 236 | 235 | ||
| @@ -248,7 +247,6 @@ func (x *ConverterOutputStream) CanPoll() bool { | |||
| 248 | 247 | func (x *ConverterOutputStream) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 249 | 248 | ||
| 250 | 249 | cret := XGPollableOutputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 251 | - | ||
| 252 | 250 | return cret | |
| 253 | 251 | } | |
| 254 | 252 | ||
| @@ -266,7 +264,6 @@ func (x *ConverterOutputStream) CreateSource(CancellableVar *Cancellable) *glib. | |||
| 266 | 264 | func (x *ConverterOutputStream) IsWritable() bool { | |
| 267 | 265 | ||
| 268 | 266 | cret := XGPollableOutputStreamIsWritable(x.GoPointer()) | |
| 269 | - | ||
| 270 | 267 | return cret | |
| 271 | 268 | } | |
| 272 | 269 | ||
| @@ -292,7 +289,6 @@ func (x *ConverterOutputStream) WriteNonblocking(BufferVar []byte, CountVar uint | |||
| 292 | 289 | var cerr *glib.Error | |
| 293 | 290 | ||
| 294 | 291 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 295 | - | ||
| 296 | 292 | if cerr == nil { | |
| 297 | 293 | return cret, nil | |
| 298 | 294 | } | |
| @@ -323,7 +319,6 @@ func (x *ConverterOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVe | |||
| 323 | 319 | var cerr *glib.Error | |
| 324 | 320 | ||
| 325 | 321 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 326 | - | ||
| 327 | 322 | if cerr == nil { | |
| 328 | 323 | return cret, nil | |
| 329 | 324 | } | |
M v4/gio/gcredentials.go +0 -6
| @@ -100,7 +100,6 @@ var xCredentialsGetNative func(uintptr, CredentialsType) uintptr | |||
| 100 | 100 | func (x *Credentials) GetNative(NativeTypeVar CredentialsType) uintptr { | |
| 101 | 101 | ||
| 102 | 102 | cret := xCredentialsGetNative(x.GoPointer(), NativeTypeVar) | |
| 103 | - | ||
| 104 | 103 | return cret | |
| 105 | 104 | } | |
| 106 | 105 | ||
| @@ -116,7 +115,6 @@ func (x *Credentials) GetUnixPid() (int, error) { | |||
| 116 | 115 | var cerr *glib.Error | |
| 117 | 116 | ||
| 118 | 117 | cret := xCredentialsGetUnixPid(x.GoPointer()) | |
| 119 | - | ||
| 120 | 118 | if cerr == nil { | |
| 121 | 119 | return cret, nil | |
| 122 | 120 | } | |
| @@ -136,7 +134,6 @@ func (x *Credentials) GetUnixUser() (uint, error) { | |||
| 136 | 134 | var cerr *glib.Error | |
| 137 | 135 | ||
| 138 | 136 | cret := xCredentialsGetUnixUser(x.GoPointer()) | |
| 139 | - | ||
| 140 | 137 | if cerr == nil { | |
| 141 | 138 | return cret, nil | |
| 142 | 139 | } | |
| @@ -154,7 +151,6 @@ func (x *Credentials) IsSameUser(OtherCredentialsVar *Credentials) (bool, error) | |||
| 154 | 151 | var cerr *glib.Error | |
| 155 | 152 | ||
| 156 | 153 | cret := xCredentialsIsSameUser(x.GoPointer(), OtherCredentialsVar.GoPointer(), &cerr) | |
| 157 | - | ||
| 158 | 154 | if cerr == nil { | |
| 159 | 155 | return cret, nil | |
| 160 | 156 | } | |
| @@ -189,7 +185,6 @@ func (x *Credentials) SetUnixUser(UidVar uint) (bool, error) { | |||
| 189 | 185 | var cerr *glib.Error | |
| 190 | 186 | ||
| 191 | 187 | cret := xCredentialsSetUnixUser(x.GoPointer(), UidVar, &cerr) | |
| 192 | - | ||
| 193 | 188 | if cerr == nil { | |
| 194 | 189 | return cret, nil | |
| 195 | 190 | } | |
| @@ -205,7 +200,6 @@ var xCredentialsToString func(uintptr) string | |||
| 205 | 200 | func (x *Credentials) ToString() string { | |
| 206 | 201 | ||
| 207 | 202 | cret := xCredentialsToString(x.GoPointer()) | |
| 208 | - | ||
| 209 | 203 | return cret | |
| 210 | 204 | } | |
| 211 | 205 | ||
M v4/gio/gdatagrambased.go +0 -5
| @@ -284,7 +284,6 @@ func (x *DatagramBasedBase) SetGoPointer(ptr uintptr) { | |||
| 284 | 284 | func (x *DatagramBasedBase) ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition { | |
| 285 | 285 | ||
| 286 | 286 | cret := XGDatagramBasedConditionCheck(x.GoPointer(), ConditionVar) | |
| 287 | - | ||
| 288 | 287 | return cret | |
| 289 | 288 | } | |
| 290 | 289 | ||
| @@ -298,7 +297,6 @@ func (x *DatagramBasedBase) ConditionWait(ConditionVar glib.IOCondition, Timeout | |||
| 298 | 297 | var cerr *glib.Error | |
| 299 | 298 | ||
| 300 | 299 | cret := XGDatagramBasedConditionWait(x.GoPointer(), ConditionVar, TimeoutVar, CancellableVar.GoPointer(), &cerr) | |
| 301 | - | ||
| 302 | 300 | if cerr == nil { | |
| 303 | 301 | return cret, nil | |
| 304 | 302 | } | |
| @@ -323,7 +321,6 @@ func (x *DatagramBasedBase) ConditionWait(ConditionVar glib.IOCondition, Timeout | |||
| 323 | 321 | func (x *DatagramBasedBase) CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source { | |
| 324 | 322 | ||
| 325 | 323 | cret := XGDatagramBasedCreateSource(x.GoPointer(), ConditionVar, CancellableVar.GoPointer()) | |
| 326 | - | ||
| 327 | 324 | return cret | |
| 328 | 325 | } | |
| 329 | 326 | ||
| @@ -381,7 +378,6 @@ func (x *DatagramBasedBase) ReceiveMessages(MessagesVar []InputMessage, NumMessa | |||
| 381 | 378 | var cerr *glib.Error | |
| 382 | 379 | ||
| 383 | 380 | cret := XGDatagramBasedReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, TimeoutVar, CancellableVar.GoPointer(), &cerr) | |
| 384 | - | ||
| 385 | 381 | if cerr == nil { | |
| 386 | 382 | return cret, nil | |
| 387 | 383 | } | |
| @@ -434,7 +430,6 @@ func (x *DatagramBasedBase) SendMessages(MessagesVar []OutputMessage, NumMessage | |||
| 434 | 430 | var cerr *glib.Error | |
| 435 | 431 | ||
| 436 | 432 | cret := XGDatagramBasedSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, TimeoutVar, CancellableVar.GoPointer(), &cerr) | |
| 437 | - | ||
| 438 | 433 | if cerr == nil { | |
| 439 | 434 | return cret, nil | |
| 440 | 435 | } | |
M v4/gio/gdatainputstream.go +0 -22
| @@ -194,7 +194,6 @@ var xDataInputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||
| 194 | 194 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | |
| 195 | 195 | ||
| 196 | 196 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | |
| 197 | - | ||
| 198 | 197 | return cret | |
| 199 | 198 | } | |
| 200 | 199 | ||
| @@ -204,7 +203,6 @@ var xDataInputStreamGetNewlineType func(uintptr) DataStreamNewlineType | |||
| 204 | 203 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | |
| 205 | 204 | ||
| 206 | 205 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | |
| 207 | - | ||
| 208 | 206 | return cret | |
| 209 | 207 | } | |
| 210 | 208 | ||
| @@ -215,7 +213,6 @@ func (x *DataInputStream) ReadByte(CancellableVar *Cancellable) (byte, error) { | |||
| 215 | 213 | var cerr *glib.Error | |
| 216 | 214 | ||
| 217 | 215 | cret := xDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 218 | - | ||
| 219 | 216 | if cerr == nil { | |
| 220 | 217 | return cret, nil | |
| 221 | 218 | } | |
| @@ -233,7 +230,6 @@ func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) | |||
| 233 | 230 | var cerr *glib.Error | |
| 234 | 231 | ||
| 235 | 232 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 236 | - | ||
| 237 | 233 | if cerr == nil { | |
| 238 | 234 | return cret, nil | |
| 239 | 235 | } | |
| @@ -255,7 +251,6 @@ func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) | |||
| 255 | 251 | var cerr *glib.Error | |
| 256 | 252 | ||
| 257 | 253 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 258 | - | ||
| 259 | 254 | if cerr == nil { | |
| 260 | 255 | return cret, nil | |
| 261 | 256 | } | |
| @@ -277,7 +272,6 @@ func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) | |||
| 277 | 272 | var cerr *glib.Error | |
| 278 | 273 | ||
| 279 | 274 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 280 | - | ||
| 281 | 275 | if cerr == nil { | |
| 282 | 276 | return cret, nil | |
| 283 | 277 | } | |
| @@ -298,7 +292,6 @@ func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) | |||
| 298 | 292 | var cerr *glib.Error | |
| 299 | 293 | ||
| 300 | 294 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| 301 | - | ||
| 302 | 295 | if cerr == nil { | |
| 303 | 296 | return cret, nil | |
| 304 | 297 | } | |
| @@ -345,7 +338,6 @@ func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) | |||
| 345 | 338 | var cerr *glib.Error | |
| 346 | 339 | ||
| 347 | 340 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| 348 | - | ||
| 349 | 341 | if cerr == nil { | |
| 350 | 342 | return cret, nil | |
| 351 | 343 | } | |
| @@ -361,7 +353,6 @@ func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *u | |||
| 361 | 353 | var cerr *glib.Error | |
| 362 | 354 | ||
| 363 | 355 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| 364 | - | ||
| 365 | 356 | if cerr == nil { | |
| 366 | 357 | return cret, nil | |
| 367 | 358 | } | |
| @@ -380,7 +371,6 @@ func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancella | |||
| 380 | 371 | var cerr *glib.Error | |
| 381 | 372 | ||
| 382 | 373 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| 383 | - | ||
| 384 | 374 | if cerr == nil { | |
| 385 | 375 | return cret, nil | |
| 386 | 376 | } | |
| @@ -398,7 +388,6 @@ func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error | |||
| 398 | 388 | var cerr *glib.Error | |
| 399 | 389 | ||
| 400 | 390 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 401 | - | ||
| 402 | 391 | if cerr == nil { | |
| 403 | 392 | return cret, nil | |
| 404 | 393 | } | |
| @@ -420,7 +409,6 @@ func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error | |||
| 420 | 409 | var cerr *glib.Error | |
| 421 | 410 | ||
| 422 | 411 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 423 | - | ||
| 424 | 412 | if cerr == nil { | |
| 425 | 413 | return cret, nil | |
| 426 | 414 | } | |
| @@ -442,7 +430,6 @@ func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error | |||
| 442 | 430 | var cerr *glib.Error | |
| 443 | 431 | ||
| 444 | 432 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 445 | - | ||
| 446 | 433 | if cerr == nil { | |
| 447 | 434 | return cret, nil | |
| 448 | 435 | } | |
| @@ -467,7 +454,6 @@ func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, Cancel | |||
| 467 | 454 | var cerr *glib.Error | |
| 468 | 455 | ||
| 469 | 456 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| 470 | - | ||
| 471 | 457 | if cerr == nil { | |
| 472 | 458 | return cret, nil | |
| 473 | 459 | } | |
| @@ -521,7 +507,6 @@ func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint | |||
| 521 | 507 | var cerr *glib.Error | |
| 522 | 508 | ||
| 523 | 509 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| 524 | - | ||
| 525 | 510 | if cerr == nil { | |
| 526 | 511 | return cret, nil | |
| 527 | 512 | } | |
| @@ -547,7 +532,6 @@ func (x *DataInputStream) ReadUpto(StopCharsVar string, StopCharsLenVar int, Len | |||
| 547 | 532 | var cerr *glib.Error | |
| 548 | 533 | ||
| 549 | 534 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| 550 | - | ||
| 551 | 535 | if cerr == nil { | |
| 552 | 536 | return cret, nil | |
| 553 | 537 | } | |
| @@ -606,7 +590,6 @@ func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) | |||
| 606 | 590 | var cerr *glib.Error | |
| 607 | 591 | ||
| 608 | 592 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| 609 | - | ||
| 610 | 593 | if cerr == nil { | |
| 611 | 594 | return cret, nil | |
| 612 | 595 | } | |
| @@ -652,7 +635,6 @@ func (c *DataInputStream) SetGoPointer(ptr uintptr) { | |||
| 652 | 635 | func (x *DataInputStream) CanSeek() bool { | |
| 653 | 636 | ||
| 654 | 637 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 655 | - | ||
| 656 | 638 | return cret | |
| 657 | 639 | } | |
| 658 | 640 | ||
| @@ -661,7 +643,6 @@ func (x *DataInputStream) CanSeek() bool { | |||
| 661 | 643 | func (x *DataInputStream) CanTruncate() bool { | |
| 662 | 644 | ||
| 663 | 645 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 664 | - | ||
| 665 | 646 | return cret | |
| 666 | 647 | } | |
| 667 | 648 | ||
| @@ -683,7 +664,6 @@ func (x *DataInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancellab | |||
| 683 | 664 | var cerr *glib.Error | |
| 684 | 665 | ||
| 685 | 666 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 686 | - | ||
| 687 | 667 | if cerr == nil { | |
| 688 | 668 | return cret, nil | |
| 689 | 669 | } | |
| @@ -695,7 +675,6 @@ func (x *DataInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancellab | |||
| 695 | 675 | func (x *DataInputStream) Tell() int64 { | |
| 696 | 676 | ||
| 697 | 677 | cret := XGSeekableTell(x.GoPointer()) | |
| 698 | - | ||
| 699 | 678 | return cret | |
| 700 | 679 | } | |
| 701 | 680 | ||
| @@ -712,7 +691,6 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 712 | 691 | var cerr *glib.Error | |
| 713 | 692 | ||
| 714 | 693 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 715 | - | ||
| 716 | 694 | if cerr == nil { | |
| 717 | 695 | return cret, nil | |
| 718 | 696 | } | |
M v4/gio/gdataoutputstream.go +0 -14
| @@ -194,7 +194,6 @@ var xDataOutputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||
| 194 | 194 | func (x *DataOutputStream) GetByteOrder() DataStreamByteOrder { | |
| 195 | 195 | ||
| 196 | 196 | cret := xDataOutputStreamGetByteOrder(x.GoPointer()) | |
| 197 | - | ||
| 198 | 197 | return cret | |
| 199 | 198 | } | |
| 200 | 199 | ||
| @@ -205,7 +204,6 @@ func (x *DataOutputStream) PutByte(DataVar byte, CancellableVar *Cancellable) (b | |||
| 205 | 204 | var cerr *glib.Error | |
| 206 | 205 | ||
| 207 | 206 | cret := xDataOutputStreamPutByte(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 208 | - | ||
| 209 | 207 | if cerr == nil { | |
| 210 | 208 | return cret, nil | |
| 211 | 209 | } | |
| @@ -220,7 +218,6 @@ func (x *DataOutputStream) PutInt16(DataVar int16, CancellableVar *Cancellable) | |||
| 220 | 218 | var cerr *glib.Error | |
| 221 | 219 | ||
| 222 | 220 | cret := xDataOutputStreamPutInt16(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 223 | - | ||
| 224 | 221 | if cerr == nil { | |
| 225 | 222 | return cret, nil | |
| 226 | 223 | } | |
| @@ -235,7 +232,6 @@ func (x *DataOutputStream) PutInt32(DataVar int32, CancellableVar *Cancellable) | |||
| 235 | 232 | var cerr *glib.Error | |
| 236 | 233 | ||
| 237 | 234 | cret := xDataOutputStreamPutInt32(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 238 | - | ||
| 239 | 235 | if cerr == nil { | |
| 240 | 236 | return cret, nil | |
| 241 | 237 | } | |
| @@ -250,7 +246,6 @@ func (x *DataOutputStream) PutInt64(DataVar int64, CancellableVar *Cancellable) | |||
| 250 | 246 | var cerr *glib.Error | |
| 251 | 247 | ||
| 252 | 248 | cret := xDataOutputStreamPutInt64(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 253 | - | ||
| 254 | 249 | if cerr == nil { | |
| 255 | 250 | return cret, nil | |
| 256 | 251 | } | |
| @@ -265,7 +260,6 @@ func (x *DataOutputStream) PutString(StrVar string, CancellableVar *Cancellable) | |||
| 265 | 260 | var cerr *glib.Error | |
| 266 | 261 | ||
| 267 | 262 | cret := xDataOutputStreamPutString(x.GoPointer(), StrVar, CancellableVar.GoPointer(), &cerr) | |
| 268 | - | ||
| 269 | 263 | if cerr == nil { | |
| 270 | 264 | return cret, nil | |
| 271 | 265 | } | |
| @@ -280,7 +274,6 @@ func (x *DataOutputStream) PutUint16(DataVar uint16, CancellableVar *Cancellable | |||
| 280 | 274 | var cerr *glib.Error | |
| 281 | 275 | ||
| 282 | 276 | cret := xDataOutputStreamPutUint16(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 283 | - | ||
| 284 | 277 | if cerr == nil { | |
| 285 | 278 | return cret, nil | |
| 286 | 279 | } | |
| @@ -295,7 +288,6 @@ func (x *DataOutputStream) PutUint32(DataVar uint32, CancellableVar *Cancellable | |||
| 295 | 288 | var cerr *glib.Error | |
| 296 | 289 | ||
| 297 | 290 | cret := xDataOutputStreamPutUint32(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 298 | - | ||
| 299 | 291 | if cerr == nil { | |
| 300 | 292 | return cret, nil | |
| 301 | 293 | } | |
| @@ -310,7 +302,6 @@ func (x *DataOutputStream) PutUint64(DataVar uint64, CancellableVar *Cancellable | |||
| 310 | 302 | var cerr *glib.Error | |
| 311 | 303 | ||
| 312 | 304 | cret := xDataOutputStreamPutUint64(x.GoPointer(), DataVar, CancellableVar.GoPointer(), &cerr) | |
| 313 | - | ||
| 314 | 305 | if cerr == nil { | |
| 315 | 306 | return cret, nil | |
| 316 | 307 | } | |
| @@ -342,7 +333,6 @@ func (c *DataOutputStream) SetGoPointer(ptr uintptr) { | |||
| 342 | 333 | func (x *DataOutputStream) CanSeek() bool { | |
| 343 | 334 | ||
| 344 | 335 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 345 | - | ||
| 346 | 336 | return cret | |
| 347 | 337 | } | |
| 348 | 338 | ||
| @@ -351,7 +341,6 @@ func (x *DataOutputStream) CanSeek() bool { | |||
| 351 | 341 | func (x *DataOutputStream) CanTruncate() bool { | |
| 352 | 342 | ||
| 353 | 343 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 354 | - | ||
| 355 | 344 | return cret | |
| 356 | 345 | } | |
| 357 | 346 | ||
| @@ -373,7 +362,6 @@ func (x *DataOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancella | |||
| 373 | 362 | var cerr *glib.Error | |
| 374 | 363 | ||
| 375 | 364 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 376 | - | ||
| 377 | 365 | if cerr == nil { | |
| 378 | 366 | return cret, nil | |
| 379 | 367 | } | |
| @@ -385,7 +373,6 @@ func (x *DataOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancella | |||
| 385 | 373 | func (x *DataOutputStream) Tell() int64 { | |
| 386 | 374 | ||
| 387 | 375 | cret := XGSeekableTell(x.GoPointer()) | |
| 388 | - | ||
| 389 | 376 | return cret | |
| 390 | 377 | } | |
| 391 | 378 | ||
| @@ -402,7 +389,6 @@ func (x *DataOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable | |||
| 402 | 389 | var cerr *glib.Error | |
| 403 | 390 | ||
| 404 | 391 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 405 | - | ||
| 406 | 392 | if cerr == nil { | |
| 407 | 393 | return cret, nil | |
| 408 | 394 | } | |
M v4/gio/gdbusactiongroup.go +2 -13
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -142,7 +140,6 @@ func (x *DBusActionGroup) ChangeActionState(ActionNameVar string, ValueVar *glib | |||
| 142 | 140 | func (x *DBusActionGroup) GetActionEnabled(ActionNameVar string) bool { | |
| 143 | 141 | ||
| 144 | 142 | cret := XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 145 | - | ||
| 146 | 143 | return cret | |
| 147 | 144 | } | |
| 148 | 145 | ||
| @@ -162,7 +159,6 @@ func (x *DBusActionGroup) GetActionEnabled(ActionNameVar string) bool { | |||
| 162 | 159 | func (x *DBusActionGroup) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 163 | 160 | ||
| 164 | 161 | cret := XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 165 | - | ||
| 166 | 162 | return cret | |
| 167 | 163 | } | |
| 168 | 164 | ||
| @@ -177,7 +173,6 @@ func (x *DBusActionGroup) GetActionParameterType(ActionNameVar string) *glib.Var | |||
| 177 | 173 | func (x *DBusActionGroup) GetActionState(ActionNameVar string) *glib.Variant { | |
| 178 | 174 | ||
| 179 | 175 | cret := XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 180 | - | ||
| 181 | 176 | return cret | |
| 182 | 177 | } | |
| 183 | 178 | ||
| @@ -202,7 +197,6 @@ func (x *DBusActionGroup) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 202 | 197 | func (x *DBusActionGroup) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 203 | 198 | ||
| 204 | 199 | cret := XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 205 | - | ||
| 206 | 200 | return cret | |
| 207 | 201 | } | |
| 208 | 202 | ||
| @@ -225,7 +219,6 @@ func (x *DBusActionGroup) GetActionStateHint(ActionNameVar string) *glib.Variant | |||
| 225 | 219 | func (x *DBusActionGroup) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 226 | 220 | ||
| 227 | 221 | cret := XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 228 | - | ||
| 229 | 222 | return cret | |
| 230 | 223 | } | |
| 231 | 224 | ||
| @@ -233,7 +226,6 @@ func (x *DBusActionGroup) GetActionStateType(ActionNameVar string) *glib.Variant | |||
| 233 | 226 | func (x *DBusActionGroup) HasAction(ActionNameVar string) bool { | |
| 234 | 227 | ||
| 235 | 228 | cret := XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 236 | - | ||
| 237 | 229 | return cret | |
| 238 | 230 | } | |
| 239 | 231 | ||
| @@ -244,7 +236,6 @@ func (x *DBusActionGroup) HasAction(ActionNameVar string) bool { | |||
| 244 | 236 | func (x *DBusActionGroup) ListActions() []string { | |
| 245 | 237 | ||
| 246 | 238 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 247 | - | ||
| 248 | 239 | return cret | |
| 249 | 240 | } | |
| 250 | 241 | ||
| @@ -278,7 +269,6 @@ func (x *DBusActionGroup) ListActions() []string { | |||
| 278 | 269 | func (x *DBusActionGroup) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 279 | 270 | ||
| 280 | 271 | cret := XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 281 | - | ||
| 282 | 272 | return cret | |
| 283 | 273 | } | |
| 284 | 274 | ||
| @@ -330,12 +320,11 @@ var xDBusActionGroupGet func(uintptr, uintptr, string) uintptr | |||
| 330 | 320 | func DBusActionGroupGet(ConnectionVar *DBusConnection, BusNameVar *string, ObjectPathVar string) *DBusActionGroup { | |
| 331 | 321 | var cls *DBusActionGroup | |
| 332 | 322 | ||
| 333 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 323 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 324 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 334 | 325 | ||
| 335 | 326 | cret := xDBusActionGroupGet(ConnectionVar.GoPointer(), BusNameVarPtr, ObjectPathVar) | |
| 336 | 327 | ||
| 337 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 338 | - | ||
| 339 | 328 | if cret == 0 { | |
| 340 | 329 | return nil | |
| 341 | 330 | } | |
M v4/gio/gdbusaddress.go +0 -4
| @@ -21,7 +21,6 @@ var xDbusAddressEscapeValue func(string) string | |||
| 21 | 21 | func DbusAddressEscapeValue(StringVar string) string { | |
| 22 | 22 | ||
| 23 | 23 | cret := xDbusAddressEscapeValue(StringVar) | |
| 24 | - | ||
| 25 | 24 | return cret | |
| 26 | 25 | } | |
| 27 | 26 | ||
| @@ -37,7 +36,6 @@ func DbusAddressGetForBusSync(BusTypeVar BusType, CancellableVar *Cancellable) ( | |||
| 37 | 36 | var cerr *glib.Error | |
| 38 | 37 | ||
| 39 | 38 | cret := xDbusAddressGetForBusSync(BusTypeVar, CancellableVar.GoPointer(), &cerr) | |
| 40 | - | ||
| 41 | 39 | if cerr == nil { | |
| 42 | 40 | return cret, nil | |
| 43 | 41 | } | |
| @@ -144,7 +142,6 @@ var xDbusIsAddress func(string) bool | |||
| 144 | 142 | func DbusIsAddress(StringVar string) bool { | |
| 145 | 143 | ||
| 146 | 144 | cret := xDbusIsAddress(StringVar) | |
| 147 | - | ||
| 148 | 145 | return cret | |
| 149 | 146 | } | |
| 150 | 147 | ||
| @@ -158,7 +155,6 @@ func DbusIsSupportedAddress(StringVar string) (bool, error) { | |||
| 158 | 155 | var cerr *glib.Error | |
| 159 | 156 | ||
| 160 | 157 | cret := xDbusIsSupportedAddress(StringVar, &cerr) | |
| 161 | - | ||
| 162 | 158 | if cerr == nil { | |
| 163 | 159 | return cret, nil | |
| 164 | 160 | } | |
M v4/gio/gdbusauthobserver.go +0 -2
| @@ -118,7 +118,6 @@ var xDBusAuthObserverAllowMechanism func(uintptr, string) bool | |||
| 118 | 118 | func (x *DBusAuthObserver) AllowMechanism(MechanismVar string) bool { | |
| 119 | 119 | ||
| 120 | 120 | cret := xDBusAuthObserverAllowMechanism(x.GoPointer(), MechanismVar) | |
| 121 | - | ||
| 122 | 121 | return cret | |
| 123 | 122 | } | |
| 124 | 123 | ||
| @@ -128,7 +127,6 @@ var xDBusAuthObserverAuthorizeAuthenticatedPeer func(uintptr, uintptr, uintptr) | |||
| 128 | 127 | func (x *DBusAuthObserver) AuthorizeAuthenticatedPeer(StreamVar *IOStream, CredentialsVar *Credentials) bool { | |
| 129 | 128 | ||
| 130 | 129 | cret := xDBusAuthObserverAuthorizeAuthenticatedPeer(x.GoPointer(), StreamVar.GoPointer(), CredentialsVar.GoPointer()) | |
| 131 | - | ||
| 132 | 130 | return cret | |
| 133 | 131 | } | |
| 134 | 132 | ||
M v4/gio/gdbusconnection.go +24 -66
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -483,12 +482,11 @@ func NewDBusConnectionSync(StreamVar *IOStream, GuidVar *string, FlagsVar DBusCo | |||
| 483 | 482 | var cls *DBusConnection | |
| 484 | 483 | var cerr *glib.Error | |
| 485 | 484 | ||
| 486 | - | GuidVarPtr, GuidVarBytes := core.NullableStringToPtr(GuidVar) | |
| 485 | + | GuidVarPtr := core.GStrdupNullable(GuidVar) | |
| 486 | + | defer core.GFreeNullable(GuidVarPtr) | |
| 487 | 487 | ||
| 488 | 488 | cret := xNewDBusConnectionSync(StreamVar.GoPointer(), GuidVarPtr, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 489 | 489 | ||
| 490 | - | runtime.KeepAlive(GuidVarBytes) | |
| 491 | - | ||
| 492 | 490 | if cret == 0 { | |
| 493 | 491 | return nil, cerr | |
| 494 | 492 | } | |
| @@ -563,7 +561,6 @@ func (x *DBusConnection) AddFilter(FilterFunctionVar *DBusMessageFilterFunction, | |||
| 563 | 561 | } | |
| 564 | 562 | ||
| 565 | 563 | cret := xDBusConnectionAddFilter(x.GoPointer(), FilterFunctionVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 566 | - | ||
| 567 | 564 | return cret | |
| 568 | 565 | } | |
| 569 | 566 | ||
| @@ -633,12 +630,11 @@ func (x *DBusConnection) Call(BusNameVar *string, ObjectPathVar string, Interfac | |||
| 633 | 630 | } | |
| 634 | 631 | } | |
| 635 | 632 | ||
| 636 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 633 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 634 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 637 | 635 | ||
| 638 | 636 | xDBusConnectionCall(x.GoPointer(), BusNameVarPtr, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 639 | 637 | ||
| 640 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 641 | - | ||
| 642 | 638 | } | |
| 643 | 639 | ||
| 644 | 640 | var xDBusConnectionCallFinish func(uintptr, uintptr, **glib.Error) *glib.Variant | |
| @@ -648,7 +644,6 @@ func (x *DBusConnection) CallFinish(ResVar AsyncResult) (*glib.Variant, error) { | |||
| 648 | 644 | var cerr *glib.Error | |
| 649 | 645 | ||
| 650 | 646 | cret := xDBusConnectionCallFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 651 | - | ||
| 652 | 647 | if cerr == nil { | |
| 653 | 648 | return cret, nil | |
| 654 | 649 | } | |
| @@ -699,12 +694,10 @@ var xDBusConnectionCallSync func(uintptr, uintptr, string, string, string, *glib | |||
| 699 | 694 | func (x *DBusConnection) CallSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable) (*glib.Variant, error) { | |
| 700 | 695 | var cerr *glib.Error | |
| 701 | 696 | ||
| 702 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 697 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 698 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 703 | 699 | ||
| 704 | 700 | cret := xDBusConnectionCallSync(x.GoPointer(), BusNameVarPtr, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), &cerr) | |
| 705 | - | ||
| 706 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 707 | - | ||
| 708 | 701 | if cerr == nil { | |
| 709 | 702 | return cret, nil | |
| 710 | 703 | } | |
| @@ -746,12 +739,11 @@ func (x *DBusConnection) CallWithUnixFdList(BusNameVar *string, ObjectPathVar st | |||
| 746 | 739 | } | |
| 747 | 740 | } | |
| 748 | 741 | ||
| 749 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 742 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 743 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 750 | 744 | ||
| 751 | 745 | xDBusConnectionCallWithUnixFdList(x.GoPointer(), BusNameVarPtr, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 752 | 746 | ||
| 753 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 754 | - | ||
| 755 | 747 | } | |
| 756 | 748 | ||
| 757 | 749 | var xDBusConnectionCallWithUnixFdListFinish func(uintptr, **UnixFDList, uintptr, **glib.Error) *glib.Variant | |
| @@ -772,7 +764,6 @@ func (x *DBusConnection) CallWithUnixFdListFinish(OutFdListVar **UnixFDList, Res | |||
| 772 | 764 | var cerr *glib.Error | |
| 773 | 765 | ||
| 774 | 766 | cret := xDBusConnectionCallWithUnixFdListFinish(x.GoPointer(), OutFdListVar, ResVar.GoPointer(), &cerr) | |
| 775 | - | ||
| 776 | 767 | if cerr == nil { | |
| 777 | 768 | return cret, nil | |
| 778 | 769 | } | |
| @@ -790,12 +781,10 @@ var xDBusConnectionCallWithUnixFdListSync func(uintptr, uintptr, string, string, | |||
| 790 | 781 | func (x *DBusConnection) CallWithUnixFdListSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, OutFdListVar **UnixFDList, CancellableVar *Cancellable) (*glib.Variant, error) { | |
| 791 | 782 | var cerr *glib.Error | |
| 792 | 783 | ||
| 793 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 784 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 785 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 794 | 786 | ||
| 795 | 787 | cret := xDBusConnectionCallWithUnixFdListSync(x.GoPointer(), BusNameVarPtr, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), OutFdListVar, CancellableVar.GoPointer(), &cerr) | |
| 796 | - | ||
| 797 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 798 | - | ||
| 799 | 788 | if cerr == nil { | |
| 800 | 789 | return cret, nil | |
| 801 | 790 | } | |
| @@ -857,7 +846,6 @@ func (x *DBusConnection) CloseFinish(ResVar AsyncResult) (bool, error) { | |||
| 857 | 846 | var cerr *glib.Error | |
| 858 | 847 | ||
| 859 | 848 | cret := xDBusConnectionCloseFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 860 | - | ||
| 861 | 849 | if cerr == nil { | |
| 862 | 850 | return cret, nil | |
| 863 | 851 | } | |
| @@ -875,7 +863,6 @@ func (x *DBusConnection) CloseSync(CancellableVar *Cancellable) (bool, error) { | |||
| 875 | 863 | var cerr *glib.Error | |
| 876 | 864 | ||
| 877 | 865 | cret := xDBusConnectionCloseSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 878 | - | ||
| 879 | 866 | if cerr == nil { | |
| 880 | 867 | return cret, nil | |
| 881 | 868 | } | |
| @@ -895,12 +882,10 @@ var xDBusConnectionEmitSignal func(uintptr, uintptr, string, string, string, *gl | |||
| 895 | 882 | func (x *DBusConnection) EmitSignal(DestinationBusNameVar *string, ObjectPathVar string, InterfaceNameVar string, SignalNameVar string, ParametersVar *glib.Variant) (bool, error) { | |
| 896 | 883 | var cerr *glib.Error | |
| 897 | 884 | ||
| 898 | - | DestinationBusNameVarPtr, DestinationBusNameVarBytes := core.NullableStringToPtr(DestinationBusNameVar) | |
| 885 | + | DestinationBusNameVarPtr := core.GStrdupNullable(DestinationBusNameVar) | |
| 886 | + | defer core.GFreeNullable(DestinationBusNameVarPtr) | |
| 899 | 887 | ||
| 900 | 888 | cret := xDBusConnectionEmitSignal(x.GoPointer(), DestinationBusNameVarPtr, ObjectPathVar, InterfaceNameVar, SignalNameVar, ParametersVar, &cerr) | |
| 901 | - | ||
| 902 | - | runtime.KeepAlive(DestinationBusNameVarBytes) | |
| 903 | - | ||
| 904 | 889 | if cerr == nil { | |
| 905 | 890 | return cret, nil | |
| 906 | 891 | } | |
| @@ -935,7 +920,6 @@ func (x *DBusConnection) ExportActionGroup(ObjectPathVar string, ActionGroupVar | |||
| 935 | 920 | var cerr *glib.Error | |
| 936 | 921 | ||
| 937 | 922 | cret := xDBusConnectionExportActionGroup(x.GoPointer(), ObjectPathVar, ActionGroupVar.GoPointer(), &cerr) | |
| 938 | - | ||
| 939 | 923 | if cerr == nil { | |
| 940 | 924 | return cret, nil | |
| 941 | 925 | } | |
| @@ -965,7 +949,6 @@ func (x *DBusConnection) ExportMenuModel(ObjectPathVar string, MenuVar *MenuMode | |||
| 965 | 949 | var cerr *glib.Error | |
| 966 | 950 | ||
| 967 | 951 | cret := xDBusConnectionExportMenuModel(x.GoPointer(), ObjectPathVar, MenuVar.GoPointer(), &cerr) | |
| 968 | - | ||
| 969 | 952 | if cerr == nil { | |
| 970 | 953 | return cret, nil | |
| 971 | 954 | } | |
| @@ -1017,7 +1000,6 @@ func (x *DBusConnection) FlushFinish(ResVar AsyncResult) (bool, error) { | |||
| 1017 | 1000 | var cerr *glib.Error | |
| 1018 | 1001 | ||
| 1019 | 1002 | cret := xDBusConnectionFlushFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 1020 | - | ||
| 1021 | 1003 | if cerr == nil { | |
| 1022 | 1004 | return cret, nil | |
| 1023 | 1005 | } | |
| @@ -1035,7 +1017,6 @@ func (x *DBusConnection) FlushSync(CancellableVar *Cancellable) (bool, error) { | |||
| 1035 | 1017 | var cerr *glib.Error | |
| 1036 | 1018 | ||
| 1037 | 1019 | cret := xDBusConnectionFlushSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 1038 | - | ||
| 1039 | 1020 | if cerr == nil { | |
| 1040 | 1021 | return cret, nil | |
| 1041 | 1022 | } | |
| @@ -1049,7 +1030,6 @@ var xDBusConnectionGetCapabilities func(uintptr) DBusCapabilityFlags | |||
| 1049 | 1030 | func (x *DBusConnection) GetCapabilities() DBusCapabilityFlags { | |
| 1050 | 1031 | ||
| 1051 | 1032 | cret := xDBusConnectionGetCapabilities(x.GoPointer()) | |
| 1052 | - | ||
| 1053 | 1033 | return cret | |
| 1054 | 1034 | } | |
| 1055 | 1035 | ||
| @@ -1061,7 +1041,6 @@ var xDBusConnectionGetExitOnClose func(uintptr) bool | |||
| 1061 | 1041 | func (x *DBusConnection) GetExitOnClose() bool { | |
| 1062 | 1042 | ||
| 1063 | 1043 | cret := xDBusConnectionGetExitOnClose(x.GoPointer()) | |
| 1064 | - | ||
| 1065 | 1044 | return cret | |
| 1066 | 1045 | } | |
| 1067 | 1046 | ||
| @@ -1071,7 +1050,6 @@ var xDBusConnectionGetFlags func(uintptr) DBusConnectionFlags | |||
| 1071 | 1050 | func (x *DBusConnection) GetFlags() DBusConnectionFlags { | |
| 1072 | 1051 | ||
| 1073 | 1052 | cret := xDBusConnectionGetFlags(x.GoPointer()) | |
| 1074 | - | ||
| 1075 | 1053 | return cret | |
| 1076 | 1054 | } | |
| 1077 | 1055 | ||
| @@ -1082,7 +1060,6 @@ var xDBusConnectionGetGuid func(uintptr) string | |||
| 1082 | 1060 | func (x *DBusConnection) GetGuid() string { | |
| 1083 | 1061 | ||
| 1084 | 1062 | cret := xDBusConnectionGetGuid(x.GoPointer()) | |
| 1085 | - | ||
| 1086 | 1063 | return cret | |
| 1087 | 1064 | } | |
| 1088 | 1065 | ||
| @@ -1096,7 +1073,6 @@ var xDBusConnectionGetLastSerial func(uintptr) uint32 | |||
| 1096 | 1073 | func (x *DBusConnection) GetLastSerial() uint32 { | |
| 1097 | 1074 | ||
| 1098 | 1075 | cret := xDBusConnectionGetLastSerial(x.GoPointer()) | |
| 1099 | - | ||
| 1100 | 1076 | return cret | |
| 1101 | 1077 | } | |
| 1102 | 1078 | ||
| @@ -1154,7 +1130,6 @@ var xDBusConnectionGetUniqueName func(uintptr) string | |||
| 1154 | 1130 | func (x *DBusConnection) GetUniqueName() string { | |
| 1155 | 1131 | ||
| 1156 | 1132 | cret := xDBusConnectionGetUniqueName(x.GoPointer()) | |
| 1157 | - | ||
| 1158 | 1133 | return cret | |
| 1159 | 1134 | } | |
| 1160 | 1135 | ||
| @@ -1164,7 +1139,6 @@ var xDBusConnectionIsClosed func(uintptr) bool | |||
| 1164 | 1139 | func (x *DBusConnection) IsClosed() bool { | |
| 1165 | 1140 | ||
| 1166 | 1141 | cret := xDBusConnectionIsClosed(x.GoPointer()) | |
| 1167 | - | ||
| 1168 | 1142 | return cret | |
| 1169 | 1143 | } | |
| 1170 | 1144 | ||
| @@ -1228,7 +1202,6 @@ func (x *DBusConnection) RegisterObject(ObjectPathVar string, InterfaceInfoVar * | |||
| 1228 | 1202 | } | |
| 1229 | 1203 | ||
| 1230 | 1204 | cret := xDBusConnectionRegisterObject(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, VtableVar, UserDataVar, UserDataFreeFuncVarRef, &cerr) | |
| 1231 | - | ||
| 1232 | 1205 | if cerr == nil { | |
| 1233 | 1206 | return cret, nil | |
| 1234 | 1207 | } | |
| @@ -1249,7 +1222,6 @@ func (x *DBusConnection) RegisterObjectWithClosures(ObjectPathVar string, Interf | |||
| 1249 | 1222 | var cerr *glib.Error | |
| 1250 | 1223 | ||
| 1251 | 1224 | cret := xDBusConnectionRegisterObjectWithClosures(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | |
| 1252 | - | ||
| 1253 | 1225 | if cerr == nil { | |
| 1254 | 1226 | return cret, nil | |
| 1255 | 1227 | } | |
| @@ -1275,7 +1247,6 @@ func (x *DBusConnection) RegisterObjectWithClosures2(ObjectPathVar string, Inter | |||
| 1275 | 1247 | var cerr *glib.Error | |
| 1276 | 1248 | ||
| 1277 | 1249 | cret := xDBusConnectionRegisterObjectWithClosures2(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | |
| 1278 | - | ||
| 1279 | 1250 | if cerr == nil { | |
| 1280 | 1251 | return cret, nil | |
| 1281 | 1252 | } | |
| @@ -1338,7 +1309,6 @@ func (x *DBusConnection) RegisterSubtree(ObjectPathVar string, VtableVar *DBusSu | |||
| 1338 | 1309 | } | |
| 1339 | 1310 | ||
| 1340 | 1311 | cret := xDBusConnectionRegisterSubtree(x.GoPointer(), ObjectPathVar, VtableVar, FlagsVar, UserDataVar, UserDataFreeFuncVarRef, &cerr) | |
| 1341 | - | ||
| 1342 | 1312 | if cerr == nil { | |
| 1343 | 1313 | return cret, nil | |
| 1344 | 1314 | } | |
| @@ -1390,7 +1360,6 @@ func (x *DBusConnection) SendMessage(MessageVar *DBusMessage, FlagsVar DBusSendM | |||
| 1390 | 1360 | var cerr *glib.Error | |
| 1391 | 1361 | ||
| 1392 | 1362 | cret := xDBusConnectionSendMessage(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, OutSerialVar, &cerr) | |
| 1393 | - | ||
| 1394 | 1363 | if cerr == nil { | |
| 1395 | 1364 | return cret, nil | |
| 1396 | 1365 | } | |
| @@ -1634,28 +1603,22 @@ func (x *DBusConnection) SignalSubscribe(SenderVar *string, InterfaceNameVar *st | |||
| 1634 | 1603 | } | |
| 1635 | 1604 | } | |
| 1636 | 1605 | ||
| 1637 | - | SenderVarPtr, SenderVarBytes := core.NullableStringToPtr(SenderVar) | |
| 1606 | + | SenderVarPtr := core.GStrdupNullable(SenderVar) | |
| 1607 | + | defer core.GFreeNullable(SenderVarPtr) | |
| 1638 | 1608 | ||
| 1639 | - | InterfaceNameVarPtr, InterfaceNameVarBytes := core.NullableStringToPtr(InterfaceNameVar) | |
| 1609 | + | InterfaceNameVarPtr := core.GStrdupNullable(InterfaceNameVar) | |
| 1610 | + | defer core.GFreeNullable(InterfaceNameVarPtr) | |
| 1640 | 1611 | ||
| 1641 | - | MemberVarPtr, MemberVarBytes := core.NullableStringToPtr(MemberVar) | |
| 1612 | + | MemberVarPtr := core.GStrdupNullable(MemberVar) | |
| 1613 | + | defer core.GFreeNullable(MemberVarPtr) | |
| 1642 | 1614 | ||
| 1643 | - | ObjectPathVarPtr, ObjectPathVarBytes := core.NullableStringToPtr(ObjectPathVar) | |
| 1615 | + | ObjectPathVarPtr := core.GStrdupNullable(ObjectPathVar) | |
| 1616 | + | defer core.GFreeNullable(ObjectPathVarPtr) | |
| 1644 | 1617 | ||
| 1645 | - | Arg0VarPtr, Arg0VarBytes := core.NullableStringToPtr(Arg0Var) | |
| 1618 | + | Arg0VarPtr := core.GStrdupNullable(Arg0Var) | |
| 1619 | + | defer core.GFreeNullable(Arg0VarPtr) | |
| 1646 | 1620 | ||
| 1647 | 1621 | cret := xDBusConnectionSignalSubscribe(x.GoPointer(), SenderVarPtr, InterfaceNameVarPtr, MemberVarPtr, ObjectPathVarPtr, Arg0VarPtr, FlagsVar, CallbackVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 1648 | - | ||
| 1649 | - | runtime.KeepAlive(SenderVarBytes) | |
| 1650 | - | ||
| 1651 | - | runtime.KeepAlive(InterfaceNameVarBytes) | |
| 1652 | - | ||
| 1653 | - | runtime.KeepAlive(MemberVarBytes) | |
| 1654 | - | ||
| 1655 | - | runtime.KeepAlive(ObjectPathVarBytes) | |
| 1656 | - | ||
| 1657 | - | runtime.KeepAlive(Arg0VarBytes) | |
| 1658 | - | ||
| 1659 | 1622 | return cret | |
| 1660 | 1623 | } | |
| 1661 | 1624 | ||
| @@ -1725,7 +1688,6 @@ var xDBusConnectionUnregisterObject func(uintptr, uint) bool | |||
| 1725 | 1688 | func (x *DBusConnection) UnregisterObject(RegistrationIdVar uint) bool { | |
| 1726 | 1689 | ||
| 1727 | 1690 | cret := xDBusConnectionUnregisterObject(x.GoPointer(), RegistrationIdVar) | |
| 1728 | - | ||
| 1729 | 1691 | return cret | |
| 1730 | 1692 | } | |
| 1731 | 1693 | ||
| @@ -1735,7 +1697,6 @@ var xDBusConnectionUnregisterSubtree func(uintptr, uint) bool | |||
| 1735 | 1697 | func (x *DBusConnection) UnregisterSubtree(RegistrationIdVar uint) bool { | |
| 1736 | 1698 | ||
| 1737 | 1699 | cret := xDBusConnectionUnregisterSubtree(x.GoPointer(), RegistrationIdVar) | |
| 1738 | - | ||
| 1739 | 1700 | return cret | |
| 1740 | 1701 | } | |
| 1741 | 1702 | ||
| @@ -1950,7 +1911,6 @@ func (x *DBusConnection) InitFinish(ResVar AsyncResult) (bool, error) { | |||
| 1950 | 1911 | var cerr *glib.Error | |
| 1951 | 1912 | ||
| 1952 | 1913 | cret := XGAsyncInitableInitFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 1953 | - | ||
| 1954 | 1914 | if cerr == nil { | |
| 1955 | 1915 | return cret, nil | |
| 1956 | 1916 | } | |
| @@ -2020,7 +1980,6 @@ func (x *DBusConnection) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 2020 | 1980 | var cerr *glib.Error | |
| 2021 | 1981 | ||
| 2022 | 1982 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 2023 | - | ||
| 2024 | 1983 | if cerr == nil { | |
| 2025 | 1984 | return cret, nil | |
| 2026 | 1985 | } | |
| @@ -2067,12 +2026,11 @@ func DBusConnectionNew(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnec | |||
| 2067 | 2026 | } | |
| 2068 | 2027 | } | |
| 2069 | 2028 | ||
| 2070 | - | GuidVarPtr, GuidVarBytes := core.NullableStringToPtr(GuidVar) | |
| 2029 | + | GuidVarPtr := core.GStrdupNullable(GuidVar) | |
| 2030 | + | defer core.GFreeNullable(GuidVarPtr) | |
| 2071 | 2031 | ||
| 2072 | 2032 | xDBusConnectionNew(StreamVar.GoPointer(), GuidVarPtr, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 2073 | 2033 | ||
| 2074 | - | runtime.KeepAlive(GuidVarBytes) | |
| 2075 | - | ||
| 2076 | 2034 | } | |
| 2077 | 2035 | ||
| 2078 | 2036 | var xDBusConnectionNewForAddress func(string, DBusConnectionFlags, uintptr, uintptr, uintptr, uintptr) | |
M v4/gio/gdbuserror.go +0 -7
| @@ -42,7 +42,6 @@ var xDbusErrorEncodeGerror func(*glib.Error) string | |||
| 42 | 42 | func DbusErrorEncodeGerror(ErrorVar *glib.Error) string { | |
| 43 | 43 | ||
| 44 | 44 | cret := xDbusErrorEncodeGerror(ErrorVar) | |
| 45 | - | ||
| 46 | 45 | return cret | |
| 47 | 46 | } | |
| 48 | 47 | ||
| @@ -57,7 +56,6 @@ var xDbusErrorGetRemoteError func(*glib.Error) string | |||
| 57 | 56 | func DbusErrorGetRemoteError(ErrorVar *glib.Error) string { | |
| 58 | 57 | ||
| 59 | 58 | cret := xDbusErrorGetRemoteError(ErrorVar) | |
| 60 | - | ||
| 61 | 59 | return cret | |
| 62 | 60 | } | |
| 63 | 61 | ||
| @@ -69,7 +67,6 @@ var xDbusErrorIsRemoteError func(*glib.Error) bool | |||
| 69 | 67 | func DbusErrorIsRemoteError(ErrorVar *glib.Error) bool { | |
| 70 | 68 | ||
| 71 | 69 | cret := xDbusErrorIsRemoteError(ErrorVar) | |
| 72 | - | ||
| 73 | 70 | return cret | |
| 74 | 71 | } | |
| 75 | 72 | ||
| @@ -107,7 +104,6 @@ var xDbusErrorNewForDbusError func(string, string) *glib.Error | |||
| 107 | 104 | func DbusErrorNewForDbusError(DbusErrorNameVar string, DbusErrorMessageVar string) *glib.Error { | |
| 108 | 105 | ||
| 109 | 106 | cret := xDbusErrorNewForDbusError(DbusErrorNameVar, DbusErrorMessageVar) | |
| 110 | - | ||
| 111 | 107 | return cret | |
| 112 | 108 | } | |
| 113 | 109 | ||
| @@ -121,7 +117,6 @@ var xDbusErrorRegisterError func(glib.Quark, int, string) bool | |||
| 121 | 117 | func DbusErrorRegisterError(ErrorDomainVar glib.Quark, ErrorCodeVar int, DbusErrorNameVar string) bool { | |
| 122 | 118 | ||
| 123 | 119 | cret := xDbusErrorRegisterError(ErrorDomainVar, ErrorCodeVar, DbusErrorNameVar) | |
| 124 | - | ||
| 125 | 120 | return cret | |
| 126 | 121 | } | |
| 127 | 122 | ||
| @@ -151,7 +146,6 @@ var xDbusErrorStripRemoteError func(*glib.Error) bool | |||
| 151 | 146 | func DbusErrorStripRemoteError(ErrorVar *glib.Error) bool { | |
| 152 | 147 | ||
| 153 | 148 | cret := xDbusErrorStripRemoteError(ErrorVar) | |
| 154 | - | ||
| 155 | 149 | return cret | |
| 156 | 150 | } | |
| 157 | 151 | ||
| @@ -162,7 +156,6 @@ var xDbusErrorUnregisterError func(glib.Quark, int, string) bool | |||
| 162 | 156 | func DbusErrorUnregisterError(ErrorDomainVar glib.Quark, ErrorCodeVar int, DbusErrorNameVar string) bool { | |
| 163 | 157 | ||
| 164 | 158 | cret := xDbusErrorUnregisterError(ErrorDomainVar, ErrorCodeVar, DbusErrorNameVar) | |
| 165 | - | ||
| 166 | 159 | return cret | |
| 167 | 160 | } | |
| 168 | 161 | ||
M v4/gio/gdbusinterface.go +0 -1
| @@ -204,7 +204,6 @@ func (x *DBusInterfaceBase) DupObject() *DBusObjectBase { | |||
| 204 | 204 | func (x *DBusInterfaceBase) GetInfo() *DBusInterfaceInfo { | |
| 205 | 205 | ||
| 206 | 206 | cret := XGDbusInterfaceGetInfo(x.GoPointer()) | |
| 207 | - | ||
| 208 | 207 | return cret | |
| 209 | 208 | } | |
| 210 | 209 | ||
M v4/gio/gdbusinterfaceskeleton.go +0 -8
| @@ -200,7 +200,6 @@ func (x *DBusInterfaceSkeleton) Export(ConnectionVar *DBusConnection, ObjectPath | |||
| 200 | 200 | var cerr *glib.Error | |
| 201 | 201 | ||
| 202 | 202 | cret := xDBusInterfaceSkeletonExport(x.GoPointer(), ConnectionVar.GoPointer(), ObjectPathVar, &cerr) | |
| 203 | - | ||
| 204 | 203 | if cerr == nil { | |
| 205 | 204 | return cret, nil | |
| 206 | 205 | } | |
| @@ -247,7 +246,6 @@ var xDBusInterfaceSkeletonGetConnections func(uintptr) *glib.List | |||
| 247 | 246 | func (x *DBusInterfaceSkeleton) GetConnections() *glib.List { | |
| 248 | 247 | ||
| 249 | 248 | cret := xDBusInterfaceSkeletonGetConnections(x.GoPointer()) | |
| 250 | - | ||
| 251 | 249 | return cret | |
| 252 | 250 | } | |
| 253 | 251 | ||
| @@ -258,7 +256,6 @@ var xDBusInterfaceSkeletonGetFlags func(uintptr) DBusInterfaceSkeletonFlags | |||
| 258 | 256 | func (x *DBusInterfaceSkeleton) GetFlags() DBusInterfaceSkeletonFlags { | |
| 259 | 257 | ||
| 260 | 258 | cret := xDBusInterfaceSkeletonGetFlags(x.GoPointer()) | |
| 261 | - | ||
| 262 | 259 | return cret | |
| 263 | 260 | } | |
| 264 | 261 | ||
| @@ -269,7 +266,6 @@ var xDBusInterfaceSkeletonGetInfo func(uintptr) *DBusInterfaceInfo | |||
| 269 | 266 | func (x *DBusInterfaceSkeleton) GetInfo() *DBusInterfaceInfo { | |
| 270 | 267 | ||
| 271 | 268 | cret := xDBusInterfaceSkeletonGetInfo(x.GoPointer()) | |
| 272 | - | ||
| 273 | 269 | return cret | |
| 274 | 270 | } | |
| 275 | 271 | ||
| @@ -279,7 +275,6 @@ var xDBusInterfaceSkeletonGetObjectPath func(uintptr) string | |||
| 279 | 275 | func (x *DBusInterfaceSkeleton) GetObjectPath() string { | |
| 280 | 276 | ||
| 281 | 277 | cret := xDBusInterfaceSkeletonGetObjectPath(x.GoPointer()) | |
| 282 | - | ||
| 283 | 278 | return cret | |
| 284 | 279 | } | |
| 285 | 280 | ||
| @@ -289,7 +284,6 @@ var xDBusInterfaceSkeletonGetProperties func(uintptr) *glib.Variant | |||
| 289 | 284 | func (x *DBusInterfaceSkeleton) GetProperties() *glib.Variant { | |
| 290 | 285 | ||
| 291 | 286 | cret := xDBusInterfaceSkeletonGetProperties(x.GoPointer()) | |
| 292 | - | ||
| 293 | 287 | return cret | |
| 294 | 288 | } | |
| 295 | 289 | ||
| @@ -301,7 +295,6 @@ var xDBusInterfaceSkeletonGetVtable func(uintptr) *DBusInterfaceVTable | |||
| 301 | 295 | func (x *DBusInterfaceSkeleton) GetVtable() *DBusInterfaceVTable { | |
| 302 | 296 | ||
| 303 | 297 | cret := xDBusInterfaceSkeletonGetVtable(x.GoPointer()) | |
| 304 | - | ||
| 305 | 298 | return cret | |
| 306 | 299 | } | |
| 307 | 300 | ||
| @@ -311,7 +304,6 @@ var xDBusInterfaceSkeletonHasConnection func(uintptr, uintptr) bool | |||
| 311 | 304 | func (x *DBusInterfaceSkeleton) HasConnection(ConnectionVar *DBusConnection) bool { | |
| 312 | 305 | ||
| 313 | 306 | cret := xDBusInterfaceSkeletonHasConnection(x.GoPointer(), ConnectionVar.GoPointer()) | |
| 314 | - | ||
| 315 | 307 | return cret | |
| 316 | 308 | } | |
| 317 | 309 | ||
M v4/gio/gdbusintrospection.go +0 -13
| @@ -41,7 +41,6 @@ var xDBusAnnotationInfoRef func(uintptr) *DBusAnnotationInfo | |||
| 41 | 41 | func (x *DBusAnnotationInfo) Ref() *DBusAnnotationInfo { | |
| 42 | 42 | ||
| 43 | 43 | cret := xDBusAnnotationInfoRef(x.GoPointer()) | |
| 44 | - | ||
| 45 | 44 | return cret | |
| 46 | 45 | } | |
| 47 | 46 | ||
| @@ -86,7 +85,6 @@ var xDBusArgInfoRef func(uintptr) *DBusArgInfo | |||
| 86 | 85 | func (x *DBusArgInfo) Ref() *DBusArgInfo { | |
| 87 | 86 | ||
| 88 | 87 | cret := xDBusArgInfoRef(x.GoPointer()) | |
| 89 | - | ||
| 90 | 88 | return cret | |
| 91 | 89 | } | |
| 92 | 90 | ||
| @@ -180,7 +178,6 @@ var xDBusInterfaceInfoLookupMethod func(uintptr, string) *DBusMethodInfo | |||
| 180 | 178 | func (x *DBusInterfaceInfo) LookupMethod(NameVar string) *DBusMethodInfo { | |
| 181 | 179 | ||
| 182 | 180 | cret := xDBusInterfaceInfoLookupMethod(x.GoPointer(), NameVar) | |
| 183 | - | ||
| 184 | 181 | return cret | |
| 185 | 182 | } | |
| 186 | 183 | ||
| @@ -193,7 +190,6 @@ var xDBusInterfaceInfoLookupProperty func(uintptr, string) *DBusPropertyInfo | |||
| 193 | 190 | func (x *DBusInterfaceInfo) LookupProperty(NameVar string) *DBusPropertyInfo { | |
| 194 | 191 | ||
| 195 | 192 | cret := xDBusInterfaceInfoLookupProperty(x.GoPointer(), NameVar) | |
| 196 | - | ||
| 197 | 193 | return cret | |
| 198 | 194 | } | |
| 199 | 195 | ||
| @@ -206,7 +202,6 @@ var xDBusInterfaceInfoLookupSignal func(uintptr, string) *DBusSignalInfo | |||
| 206 | 202 | func (x *DBusInterfaceInfo) LookupSignal(NameVar string) *DBusSignalInfo { | |
| 207 | 203 | ||
| 208 | 204 | cret := xDBusInterfaceInfoLookupSignal(x.GoPointer(), NameVar) | |
| 209 | - | ||
| 210 | 205 | return cret | |
| 211 | 206 | } | |
| 212 | 207 | ||
| @@ -217,7 +212,6 @@ var xDBusInterfaceInfoRef func(uintptr) *DBusInterfaceInfo | |||
| 217 | 212 | func (x *DBusInterfaceInfo) Ref() *DBusInterfaceInfo { | |
| 218 | 213 | ||
| 219 | 214 | cret := xDBusInterfaceInfoRef(x.GoPointer()) | |
| 220 | - | ||
| 221 | 215 | return cret | |
| 222 | 216 | } | |
| 223 | 217 | ||
| @@ -264,7 +258,6 @@ var xDBusMethodInfoRef func(uintptr) *DBusMethodInfo | |||
| 264 | 258 | func (x *DBusMethodInfo) Ref() *DBusMethodInfo { | |
| 265 | 259 | ||
| 266 | 260 | cret := xDBusMethodInfoRef(x.GoPointer()) | |
| 267 | - | ||
| 268 | 261 | return cret | |
| 269 | 262 | } | |
| 270 | 263 | ||
| @@ -318,7 +311,6 @@ func NewDBusNodeInfoForXml(XmlDataVar string) (*DBusNodeInfo, error) { | |||
| 318 | 311 | var cerr *glib.Error | |
| 319 | 312 | ||
| 320 | 313 | cret := xNewDBusNodeInfoForXml(XmlDataVar, &cerr) | |
| 321 | - | ||
| 322 | 314 | if cerr == nil { | |
| 323 | 315 | return cret, nil | |
| 324 | 316 | } | |
| @@ -346,7 +338,6 @@ var xDBusNodeInfoLookupInterface func(uintptr, string) *DBusInterfaceInfo | |||
| 346 | 338 | func (x *DBusNodeInfo) LookupInterface(NameVar string) *DBusInterfaceInfo { | |
| 347 | 339 | ||
| 348 | 340 | cret := xDBusNodeInfoLookupInterface(x.GoPointer(), NameVar) | |
| 349 | - | ||
| 350 | 341 | return cret | |
| 351 | 342 | } | |
| 352 | 343 | ||
| @@ -357,7 +348,6 @@ var xDBusNodeInfoRef func(uintptr) *DBusNodeInfo | |||
| 357 | 348 | func (x *DBusNodeInfo) Ref() *DBusNodeInfo { | |
| 358 | 349 | ||
| 359 | 350 | cret := xDBusNodeInfoRef(x.GoPointer()) | |
| 360 | - | ||
| 361 | 351 | return cret | |
| 362 | 352 | } | |
| 363 | 353 | ||
| @@ -404,7 +394,6 @@ var xDBusPropertyInfoRef func(uintptr) *DBusPropertyInfo | |||
| 404 | 394 | func (x *DBusPropertyInfo) Ref() *DBusPropertyInfo { | |
| 405 | 395 | ||
| 406 | 396 | cret := xDBusPropertyInfoRef(x.GoPointer()) | |
| 407 | - | ||
| 408 | 397 | return cret | |
| 409 | 398 | } | |
| 410 | 399 | ||
| @@ -449,7 +438,6 @@ var xDBusSignalInfoRef func(uintptr) *DBusSignalInfo | |||
| 449 | 438 | func (x *DBusSignalInfo) Ref() *DBusSignalInfo { | |
| 450 | 439 | ||
| 451 | 440 | cret := xDBusSignalInfoRef(x.GoPointer()) | |
| 452 | - | ||
| 453 | 441 | return cret | |
| 454 | 442 | } | |
| 455 | 443 | ||
| @@ -472,7 +460,6 @@ var xDbusAnnotationInfoLookup func(uintptr, string) string | |||
| 472 | 460 | func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | |
| 473 | 461 | ||
| 474 | 462 | cret := xDbusAnnotationInfoLookup(AnnotationsVar, NameVar) | |
| 475 | - | ||
| 476 | 463 | return cret | |
| 477 | 464 | } | |
| 478 | 465 | ||
M v4/gio/gdbusmenumodel.go +2 -5
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -52,12 +50,11 @@ var xDBusMenuModelGet func(uintptr, uintptr, string) uintptr | |||
| 52 | 50 | func DBusMenuModelGet(ConnectionVar *DBusConnection, BusNameVar *string, ObjectPathVar string) *DBusMenuModel { | |
| 53 | 51 | var cls *DBusMenuModel | |
| 54 | 52 | ||
| 55 | - | BusNameVarPtr, BusNameVarBytes := core.NullableStringToPtr(BusNameVar) | |
| 53 | + | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 54 | + | defer core.GFreeNullable(BusNameVarPtr) | |
| 56 | 55 | ||
| 57 | 56 | cret := xDBusMenuModelGet(ConnectionVar.GoPointer(), BusNameVarPtr, ObjectPathVar) | |
| 58 | 57 | ||
| 59 | - | runtime.KeepAlive(BusNameVarBytes) | |
| 60 | - | ||
| 61 | 58 | if cret == 0 { | |
| 62 | 59 | return nil | |
| 63 | 60 | } | |
M v4/gio/gdbusmessage.go +16 -49
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -77,16 +75,14 @@ var xNewDBusMessageMethodCall func(uintptr, string, uintptr, string) uintptr | |||
| 77 | 75 | func NewDBusMessageMethodCall(NameVar *string, PathVar string, InterfaceVar *string, MethodVar string) *DBusMessage { | |
| 78 | 76 | var cls *DBusMessage | |
| 79 | 77 | ||
| 80 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 78 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 79 | + | defer core.GFreeNullable(NameVarPtr) | |
| 81 | 80 | ||
| 82 | - | InterfaceVarPtr, InterfaceVarBytes := core.NullableStringToPtr(InterfaceVar) | |
| 81 | + | InterfaceVarPtr := core.GStrdupNullable(InterfaceVar) | |
| 82 | + | defer core.GFreeNullable(InterfaceVarPtr) | |
| 83 | 83 | ||
| 84 | 84 | cret := xNewDBusMessageMethodCall(NameVarPtr, PathVar, InterfaceVarPtr, MethodVar) | |
| 85 | 85 | ||
| 86 | - | runtime.KeepAlive(NameVarBytes) | |
| 87 | - | ||
| 88 | - | runtime.KeepAlive(InterfaceVarBytes) | |
| 89 | - | ||
| 90 | 86 | if cret == 0 { | |
| 91 | 87 | return nil | |
| 92 | 88 | } | |
| @@ -146,7 +142,6 @@ var xDBusMessageGetArg0 func(uintptr) string | |||
| 146 | 142 | func (x *DBusMessage) GetArg0() string { | |
| 147 | 143 | ||
| 148 | 144 | cret := xDBusMessageGetArg0(x.GoPointer()) | |
| 149 | - | ||
| 150 | 145 | return cret | |
| 151 | 146 | } | |
| 152 | 147 | ||
| @@ -158,7 +153,6 @@ var xDBusMessageGetArg0Path func(uintptr) string | |||
| 158 | 153 | func (x *DBusMessage) GetArg0Path() string { | |
| 159 | 154 | ||
| 160 | 155 | cret := xDBusMessageGetArg0Path(x.GoPointer()) | |
| 161 | - | ||
| 162 | 156 | return cret | |
| 163 | 157 | } | |
| 164 | 158 | ||
| @@ -168,7 +162,6 @@ var xDBusMessageGetBody func(uintptr) *glib.Variant | |||
| 168 | 162 | func (x *DBusMessage) GetBody() *glib.Variant { | |
| 169 | 163 | ||
| 170 | 164 | cret := xDBusMessageGetBody(x.GoPointer()) | |
| 171 | - | ||
| 172 | 165 | return cret | |
| 173 | 166 | } | |
| 174 | 167 | ||
| @@ -178,7 +171,6 @@ var xDBusMessageGetByteOrder func(uintptr) DBusMessageByteOrder | |||
| 178 | 171 | func (x *DBusMessage) GetByteOrder() DBusMessageByteOrder { | |
| 179 | 172 | ||
| 180 | 173 | cret := xDBusMessageGetByteOrder(x.GoPointer()) | |
| 181 | - | ||
| 182 | 174 | return cret | |
| 183 | 175 | } | |
| 184 | 176 | ||
| @@ -188,7 +180,6 @@ var xDBusMessageGetDestination func(uintptr) string | |||
| 188 | 180 | func (x *DBusMessage) GetDestination() string { | |
| 189 | 181 | ||
| 190 | 182 | cret := xDBusMessageGetDestination(x.GoPointer()) | |
| 191 | - | ||
| 192 | 183 | return cret | |
| 193 | 184 | } | |
| 194 | 185 | ||
| @@ -198,7 +189,6 @@ var xDBusMessageGetErrorName func(uintptr) string | |||
| 198 | 189 | func (x *DBusMessage) GetErrorName() string { | |
| 199 | 190 | ||
| 200 | 191 | cret := xDBusMessageGetErrorName(x.GoPointer()) | |
| 201 | - | ||
| 202 | 192 | return cret | |
| 203 | 193 | } | |
| 204 | 194 | ||
| @@ -208,7 +198,6 @@ var xDBusMessageGetFlags func(uintptr) DBusMessageFlags | |||
| 208 | 198 | func (x *DBusMessage) GetFlags() DBusMessageFlags { | |
| 209 | 199 | ||
| 210 | 200 | cret := xDBusMessageGetFlags(x.GoPointer()) | |
| 211 | - | ||
| 212 | 201 | return cret | |
| 213 | 202 | } | |
| 214 | 203 | ||
| @@ -221,7 +210,6 @@ var xDBusMessageGetHeader func(uintptr, DBusMessageHeaderField) *glib.Variant | |||
| 221 | 210 | func (x *DBusMessage) GetHeader(HeaderFieldVar DBusMessageHeaderField) *glib.Variant { | |
| 222 | 211 | ||
| 223 | 212 | cret := xDBusMessageGetHeader(x.GoPointer(), HeaderFieldVar) | |
| 224 | - | ||
| 225 | 213 | return cret | |
| 226 | 214 | } | |
| 227 | 215 | ||
| @@ -231,7 +219,6 @@ var xDBusMessageGetHeaderFields func(uintptr) uintptr | |||
| 231 | 219 | func (x *DBusMessage) GetHeaderFields() uintptr { | |
| 232 | 220 | ||
| 233 | 221 | cret := xDBusMessageGetHeaderFields(x.GoPointer()) | |
| 234 | - | ||
| 235 | 222 | return cret | |
| 236 | 223 | } | |
| 237 | 224 | ||
| @@ -241,7 +228,6 @@ var xDBusMessageGetInterface func(uintptr) string | |||
| 241 | 228 | func (x *DBusMessage) GetInterface() string { | |
| 242 | 229 | ||
| 243 | 230 | cret := xDBusMessageGetInterface(x.GoPointer()) | |
| 244 | - | ||
| 245 | 231 | return cret | |
| 246 | 232 | } | |
| 247 | 233 | ||
| @@ -253,7 +239,6 @@ var xDBusMessageGetLocked func(uintptr) bool | |||
| 253 | 239 | func (x *DBusMessage) GetLocked() bool { | |
| 254 | 240 | ||
| 255 | 241 | cret := xDBusMessageGetLocked(x.GoPointer()) | |
| 256 | - | ||
| 257 | 242 | return cret | |
| 258 | 243 | } | |
| 259 | 244 | ||
| @@ -263,7 +248,6 @@ var xDBusMessageGetMember func(uintptr) string | |||
| 263 | 248 | func (x *DBusMessage) GetMember() string { | |
| 264 | 249 | ||
| 265 | 250 | cret := xDBusMessageGetMember(x.GoPointer()) | |
| 266 | - | ||
| 267 | 251 | return cret | |
| 268 | 252 | } | |
| 269 | 253 | ||
| @@ -273,7 +257,6 @@ var xDBusMessageGetMessageType func(uintptr) DBusMessageType | |||
| 273 | 257 | func (x *DBusMessage) GetMessageType() DBusMessageType { | |
| 274 | 258 | ||
| 275 | 259 | cret := xDBusMessageGetMessageType(x.GoPointer()) | |
| 276 | - | ||
| 277 | 260 | return cret | |
| 278 | 261 | } | |
| 279 | 262 | ||
| @@ -283,7 +266,6 @@ var xDBusMessageGetNumUnixFds func(uintptr) uint32 | |||
| 283 | 266 | func (x *DBusMessage) GetNumUnixFds() uint32 { | |
| 284 | 267 | ||
| 285 | 268 | cret := xDBusMessageGetNumUnixFds(x.GoPointer()) | |
| 286 | - | ||
| 287 | 269 | return cret | |
| 288 | 270 | } | |
| 289 | 271 | ||
| @@ -293,7 +275,6 @@ var xDBusMessageGetPath func(uintptr) string | |||
| 293 | 275 | func (x *DBusMessage) GetPath() string { | |
| 294 | 276 | ||
| 295 | 277 | cret := xDBusMessageGetPath(x.GoPointer()) | |
| 296 | - | ||
| 297 | 278 | return cret | |
| 298 | 279 | } | |
| 299 | 280 | ||
| @@ -303,7 +284,6 @@ var xDBusMessageGetReplySerial func(uintptr) uint32 | |||
| 303 | 284 | func (x *DBusMessage) GetReplySerial() uint32 { | |
| 304 | 285 | ||
| 305 | 286 | cret := xDBusMessageGetReplySerial(x.GoPointer()) | |
| 306 | - | ||
| 307 | 287 | return cret | |
| 308 | 288 | } | |
| 309 | 289 | ||
| @@ -313,7 +293,6 @@ var xDBusMessageGetSender func(uintptr) string | |||
| 313 | 293 | func (x *DBusMessage) GetSender() string { | |
| 314 | 294 | ||
| 315 | 295 | cret := xDBusMessageGetSender(x.GoPointer()) | |
| 316 | - | ||
| 317 | 296 | return cret | |
| 318 | 297 | } | |
| 319 | 298 | ||
| @@ -323,7 +302,6 @@ var xDBusMessageGetSerial func(uintptr) uint32 | |||
| 323 | 302 | func (x *DBusMessage) GetSerial() uint32 { | |
| 324 | 303 | ||
| 325 | 304 | cret := xDBusMessageGetSerial(x.GoPointer()) | |
| 326 | - | ||
| 327 | 305 | return cret | |
| 328 | 306 | } | |
| 329 | 307 | ||
| @@ -335,7 +313,6 @@ var xDBusMessageGetSignature func(uintptr) string | |||
| 335 | 313 | func (x *DBusMessage) GetSignature() string { | |
| 336 | 314 | ||
| 337 | 315 | cret := xDBusMessageGetSignature(x.GoPointer()) | |
| 338 | - | ||
| 339 | 316 | return cret | |
| 340 | 317 | } | |
| 341 | 318 | ||
| @@ -482,7 +459,6 @@ var xDBusMessagePrint func(uintptr, uint) string | |||
| 482 | 459 | func (x *DBusMessage) Print(IndentVar uint) string { | |
| 483 | 460 | ||
| 484 | 461 | cret := xDBusMessagePrint(x.GoPointer(), IndentVar) | |
| 485 | - | ||
| 486 | 462 | return cret | |
| 487 | 463 | } | |
| 488 | 464 | ||
| @@ -513,12 +489,11 @@ var xDBusMessageSetDestination func(uintptr, uintptr) | |||
| 513 | 489 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field. | |
| 514 | 490 | func (x *DBusMessage) SetDestination(ValueVar *string) { | |
| 515 | 491 | ||
| 516 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 492 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 493 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 517 | 494 | ||
| 518 | 495 | xDBusMessageSetDestination(x.GoPointer(), ValueVarPtr) | |
| 519 | 496 | ||
| 520 | - | runtime.KeepAlive(ValueVarBytes) | |
| 521 | - | ||
| 522 | 497 | } | |
| 523 | 498 | ||
| 524 | 499 | var xDBusMessageSetErrorName func(uintptr, string) | |
| @@ -555,12 +530,11 @@ var xDBusMessageSetInterface func(uintptr, uintptr) | |||
| 555 | 530 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field. | |
| 556 | 531 | func (x *DBusMessage) SetInterface(ValueVar *string) { | |
| 557 | 532 | ||
| 558 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 533 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 534 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 559 | 535 | ||
| 560 | 536 | xDBusMessageSetInterface(x.GoPointer(), ValueVarPtr) | |
| 561 | 537 | ||
| 562 | - | runtime.KeepAlive(ValueVarBytes) | |
| 563 | - | ||
| 564 | 538 | } | |
| 565 | 539 | ||
| 566 | 540 | var xDBusMessageSetMember func(uintptr, uintptr) | |
| @@ -568,12 +542,11 @@ var xDBusMessageSetMember func(uintptr, uintptr) | |||
| 568 | 542 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field. | |
| 569 | 543 | func (x *DBusMessage) SetMember(ValueVar *string) { | |
| 570 | 544 | ||
| 571 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 545 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 546 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 572 | 547 | ||
| 573 | 548 | xDBusMessageSetMember(x.GoPointer(), ValueVarPtr) | |
| 574 | 549 | ||
| 575 | - | runtime.KeepAlive(ValueVarBytes) | |
| 576 | - | ||
| 577 | 550 | } | |
| 578 | 551 | ||
| 579 | 552 | var xDBusMessageSetMessageType func(uintptr, DBusMessageType) | |
| @@ -599,12 +572,11 @@ var xDBusMessageSetPath func(uintptr, uintptr) | |||
| 599 | 572 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_PATH header field. | |
| 600 | 573 | func (x *DBusMessage) SetPath(ValueVar *string) { | |
| 601 | 574 | ||
| 602 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 575 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 576 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 603 | 577 | ||
| 604 | 578 | xDBusMessageSetPath(x.GoPointer(), ValueVarPtr) | |
| 605 | 579 | ||
| 606 | - | runtime.KeepAlive(ValueVarBytes) | |
| 607 | - | ||
| 608 | 580 | } | |
| 609 | 581 | ||
| 610 | 582 | var xDBusMessageSetReplySerial func(uintptr, uint32) | |
| @@ -621,12 +593,11 @@ var xDBusMessageSetSender func(uintptr, uintptr) | |||
| 621 | 593 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field. | |
| 622 | 594 | func (x *DBusMessage) SetSender(ValueVar *string) { | |
| 623 | 595 | ||
| 624 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 596 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 597 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 625 | 598 | ||
| 626 | 599 | xDBusMessageSetSender(x.GoPointer(), ValueVarPtr) | |
| 627 | 600 | ||
| 628 | - | runtime.KeepAlive(ValueVarBytes) | |
| 629 | - | ||
| 630 | 601 | } | |
| 631 | 602 | ||
| 632 | 603 | var xDBusMessageSetSerial func(uintptr, uint32) | |
| @@ -646,12 +617,11 @@ var xDBusMessageSetSignature func(uintptr, uintptr) | |||
| 646 | 617 | // Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field. | |
| 647 | 618 | func (x *DBusMessage) SetSignature(ValueVar *string) { | |
| 648 | 619 | ||
| 649 | - | ValueVarPtr, ValueVarBytes := core.NullableStringToPtr(ValueVar) | |
| 620 | + | ValueVarPtr := core.GStrdupNullable(ValueVar) | |
| 621 | + | defer core.GFreeNullable(ValueVarPtr) | |
| 650 | 622 | ||
| 651 | 623 | xDBusMessageSetSignature(x.GoPointer(), ValueVarPtr) | |
| 652 | 624 | ||
| 653 | - | runtime.KeepAlive(ValueVarBytes) | |
| 654 | - | ||
| 655 | 625 | } | |
| 656 | 626 | ||
| 657 | 627 | var xDBusMessageSetUnixFdList func(uintptr, uintptr) | |
| @@ -681,7 +651,6 @@ func (x *DBusMessage) ToBlob(OutSizeVar *uint, CapabilitiesVar DBusCapabilityFla | |||
| 681 | 651 | var cerr *glib.Error | |
| 682 | 652 | ||
| 683 | 653 | cret := xDBusMessageToBlob(x.GoPointer(), OutSizeVar, CapabilitiesVar, &cerr) | |
| 684 | - | ||
| 685 | 654 | if cerr == nil { | |
| 686 | 655 | return cret, nil | |
| 687 | 656 | } | |
| @@ -702,7 +671,6 @@ func (x *DBusMessage) ToGerror() (bool, error) { | |||
| 702 | 671 | var cerr *glib.Error | |
| 703 | 672 | ||
| 704 | 673 | cret := xDBusMessageToGerror(x.GoPointer()) | |
| 705 | - | ||
| 706 | 674 | if cerr == nil { | |
| 707 | 675 | return cret, nil | |
| 708 | 676 | } | |
| @@ -736,7 +704,6 @@ func DBusMessageBytesNeeded(BlobVar []byte, BlobLenVar uint) (int, error) { | |||
| 736 | 704 | var cerr *glib.Error | |
| 737 | 705 | ||
| 738 | 706 | cret := xDBusMessageBytesNeeded(BlobVar, BlobLenVar, &cerr) | |
| 739 | - | ||
| 740 | 707 | if cerr == nil { | |
| 741 | 708 | return cret, nil | |
| 742 | 709 | } | |
M v4/gio/gdbusmethodinvocation.go +0 -8
| @@ -90,7 +90,6 @@ var xDBusMethodInvocationGetInterfaceName func(uintptr) string | |||
| 90 | 90 | func (x *DBusMethodInvocation) GetInterfaceName() string { | |
| 91 | 91 | ||
| 92 | 92 | cret := xDBusMethodInvocationGetInterfaceName(x.GoPointer()) | |
| 93 | - | ||
| 94 | 93 | return cret | |
| 95 | 94 | } | |
| 96 | 95 | ||
| @@ -130,7 +129,6 @@ var xDBusMethodInvocationGetMethodInfo func(uintptr) *DBusMethodInfo | |||
| 130 | 129 | func (x *DBusMethodInvocation) GetMethodInfo() *DBusMethodInfo { | |
| 131 | 130 | ||
| 132 | 131 | cret := xDBusMethodInvocationGetMethodInfo(x.GoPointer()) | |
| 133 | - | ||
| 134 | 132 | return cret | |
| 135 | 133 | } | |
| 136 | 134 | ||
| @@ -140,7 +138,6 @@ var xDBusMethodInvocationGetMethodName func(uintptr) string | |||
| 140 | 138 | func (x *DBusMethodInvocation) GetMethodName() string { | |
| 141 | 139 | ||
| 142 | 140 | cret := xDBusMethodInvocationGetMethodName(x.GoPointer()) | |
| 143 | - | ||
| 144 | 141 | return cret | |
| 145 | 142 | } | |
| 146 | 143 | ||
| @@ -150,7 +147,6 @@ var xDBusMethodInvocationGetObjectPath func(uintptr) string | |||
| 150 | 147 | func (x *DBusMethodInvocation) GetObjectPath() string { | |
| 151 | 148 | ||
| 152 | 149 | cret := xDBusMethodInvocationGetObjectPath(x.GoPointer()) | |
| 153 | - | ||
| 154 | 150 | return cret | |
| 155 | 151 | } | |
| 156 | 152 | ||
| @@ -161,7 +157,6 @@ var xDBusMethodInvocationGetParameters func(uintptr) *glib.Variant | |||
| 161 | 157 | func (x *DBusMethodInvocation) GetParameters() *glib.Variant { | |
| 162 | 158 | ||
| 163 | 159 | cret := xDBusMethodInvocationGetParameters(x.GoPointer()) | |
| 164 | - | ||
| 165 | 160 | return cret | |
| 166 | 161 | } | |
| 167 | 162 | ||
| @@ -181,7 +176,6 @@ var xDBusMethodInvocationGetPropertyInfo func(uintptr) *DBusPropertyInfo | |||
| 181 | 176 | func (x *DBusMethodInvocation) GetPropertyInfo() *DBusPropertyInfo { | |
| 182 | 177 | ||
| 183 | 178 | cret := xDBusMethodInvocationGetPropertyInfo(x.GoPointer()) | |
| 184 | - | ||
| 185 | 179 | return cret | |
| 186 | 180 | } | |
| 187 | 181 | ||
| @@ -194,7 +188,6 @@ var xDBusMethodInvocationGetSender func(uintptr) string | |||
| 194 | 188 | func (x *DBusMethodInvocation) GetSender() string { | |
| 195 | 189 | ||
| 196 | 190 | cret := xDBusMethodInvocationGetSender(x.GoPointer()) | |
| 197 | - | ||
| 198 | 191 | return cret | |
| 199 | 192 | } | |
| 200 | 193 | ||
| @@ -204,7 +197,6 @@ var xDBusMethodInvocationGetUserData func(uintptr) uintptr | |||
| 204 | 197 | func (x *DBusMethodInvocation) GetUserData() uintptr { | |
| 205 | 198 | ||
| 206 | 199 | cret := xDBusMethodInvocationGetUserData(x.GoPointer()) | |
| 207 | - | ||
| 208 | 200 | return cret | |
| 209 | 201 | } | |
| 210 | 202 | ||
M v4/gio/gdbusnameowning.go +0 -4
| @@ -134,7 +134,6 @@ func BusOwnName(BusTypeVar BusType, NameVar string, FlagsVar BusNameOwnerFlags, | |||
| 134 | 134 | } | |
| 135 | 135 | ||
| 136 | 136 | cret := xBusOwnName(BusTypeVar, NameVar, FlagsVar, BusAcquiredHandlerVarRef, NameAcquiredHandlerVarRef, NameLostHandlerVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 137 | - | ||
| 138 | 137 | return cret | |
| 139 | 138 | } | |
| 140 | 139 | ||
| @@ -190,7 +189,6 @@ func BusOwnNameOnConnection(ConnectionVar *DBusConnection, NameVar string, Flags | |||
| 190 | 189 | } | |
| 191 | 190 | ||
| 192 | 191 | cret := xBusOwnNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, NameAcquiredHandlerVarRef, NameLostHandlerVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 193 | - | ||
| 194 | 192 | return cret | |
| 195 | 193 | } | |
| 196 | 194 | ||
| @@ -201,7 +199,6 @@ var xBusOwnNameOnConnectionWithClosures func(uintptr, string, BusNameOwnerFlags, | |||
| 201 | 199 | func BusOwnNameOnConnectionWithClosures(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameOwnerFlags, NameAcquiredClosureVar *gobject.Closure, NameLostClosureVar *gobject.Closure) uint { | |
| 202 | 200 | ||
| 203 | 201 | cret := xBusOwnNameOnConnectionWithClosures(ConnectionVar.GoPointer(), NameVar, FlagsVar, NameAcquiredClosureVar, NameLostClosureVar) | |
| 204 | - | ||
| 205 | 202 | return cret | |
| 206 | 203 | } | |
| 207 | 204 | ||
| @@ -212,7 +209,6 @@ var xBusOwnNameWithClosures func(BusType, string, BusNameOwnerFlags, *gobject.Cl | |||
| 212 | 209 | func BusOwnNameWithClosures(BusTypeVar BusType, NameVar string, FlagsVar BusNameOwnerFlags, BusAcquiredClosureVar *gobject.Closure, NameAcquiredClosureVar *gobject.Closure, NameLostClosureVar *gobject.Closure) uint { | |
| 213 | 210 | ||
| 214 | 211 | cret := xBusOwnNameWithClosures(BusTypeVar, NameVar, FlagsVar, BusAcquiredClosureVar, NameAcquiredClosureVar, NameLostClosureVar) | |
| 215 | - | ||
| 216 | 212 | return cret | |
| 217 | 213 | } | |
| 218 | 214 | ||
M v4/gio/gdbusnamewatching.go +0 -4
| @@ -115,7 +115,6 @@ func BusWatchName(BusTypeVar BusType, NameVar string, FlagsVar BusNameWatcherFla | |||
| 115 | 115 | } | |
| 116 | 116 | ||
| 117 | 117 | cret := xBusWatchName(BusTypeVar, NameVar, FlagsVar, NameAppearedHandlerVarRef, NameVanishedHandlerVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 118 | - | ||
| 119 | 118 | return cret | |
| 120 | 119 | } | |
| 121 | 120 | ||
| @@ -171,7 +170,6 @@ func BusWatchNameOnConnection(ConnectionVar *DBusConnection, NameVar string, Fla | |||
| 171 | 170 | } | |
| 172 | 171 | ||
| 173 | 172 | cret := xBusWatchNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, NameAppearedHandlerVarRef, NameVanishedHandlerVarRef, UserDataVar, UserDataFreeFuncVarRef) | |
| 174 | - | ||
| 175 | 173 | return cret | |
| 176 | 174 | } | |
| 177 | 175 | ||
| @@ -182,7 +180,6 @@ var xBusWatchNameOnConnectionWithClosures func(uintptr, string, BusNameWatcherFl | |||
| 182 | 180 | func BusWatchNameOnConnectionWithClosures(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedClosureVar *gobject.Closure, NameVanishedClosureVar *gobject.Closure) uint { | |
| 183 | 181 | ||
| 184 | 182 | cret := xBusWatchNameOnConnectionWithClosures(ConnectionVar.GoPointer(), NameVar, FlagsVar, NameAppearedClosureVar, NameVanishedClosureVar) | |
| 185 | - | ||
| 186 | 183 | return cret | |
| 187 | 184 | } | |
| 188 | 185 | ||
| @@ -193,7 +190,6 @@ var xBusWatchNameWithClosures func(BusType, string, BusNameWatcherFlags, *gobjec | |||
| 193 | 190 | func BusWatchNameWithClosures(BusTypeVar BusType, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedClosureVar *gobject.Closure, NameVanishedClosureVar *gobject.Closure) uint { | |
| 194 | 191 | ||
| 195 | 192 | cret := xBusWatchNameWithClosures(BusTypeVar, NameVar, FlagsVar, NameAppearedClosureVar, NameVanishedClosureVar) | |
| 196 | - | ||
| 197 | 193 | return cret | |
| 198 | 194 | } | |
| 199 | 195 | ||
M v4/gio/gdbusobject.go +0 -2
| @@ -219,7 +219,6 @@ func (x *DBusObjectBase) GetInterface(InterfaceNameVar string) *DBusInterfaceBas | |||
| 219 | 219 | func (x *DBusObjectBase) GetInterfaces() *glib.List { | |
| 220 | 220 | ||
| 221 | 221 | cret := XGDbusObjectGetInterfaces(x.GoPointer()) | |
| 222 | - | ||
| 223 | 222 | return cret | |
| 224 | 223 | } | |
| 225 | 224 | ||
| @@ -227,7 +226,6 @@ func (x *DBusObjectBase) GetInterfaces() *glib.List { | |||
| 227 | 226 | func (x *DBusObjectBase) GetObjectPath() string { | |
| 228 | 227 | ||
| 229 | 228 | cret := XGDbusObjectGetObjectPath(x.GoPointer()) | |
| 230 | - | ||
| 231 | 229 | return cret | |
| 232 | 230 | } | |
| 233 | 231 | ||
M v4/gio/gdbusobjectmanager.go +0 -2
| @@ -328,7 +328,6 @@ func (x *DBusObjectManagerBase) GetObject(ObjectPathVar string) *DBusObjectBase | |||
| 328 | 328 | func (x *DBusObjectManagerBase) GetObjectPath() string { | |
| 329 | 329 | ||
| 330 | 330 | cret := XGDbusObjectManagerGetObjectPath(x.GoPointer()) | |
| 331 | - | ||
| 332 | 331 | return cret | |
| 333 | 332 | } | |
| 334 | 333 | ||
| @@ -336,7 +335,6 @@ func (x *DBusObjectManagerBase) GetObjectPath() string { | |||
| 336 | 335 | func (x *DBusObjectManagerBase) GetObjects() *glib.List { | |
| 337 | 336 | ||
| 338 | 337 | cret := XGDbusObjectManagerGetObjects(x.GoPointer()) | |
| 339 | - | ||
| 340 | 338 | return cret | |
| 341 | 339 | } | |
| 342 | 340 | ||
M v4/gio/gdbusobjectmanagerclient.go +2 -11
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -321,12 +320,11 @@ func NewDBusObjectManagerClientSync(ConnectionVar *DBusConnection, FlagsVar DBus | |||
| 321 | 320 | } | |
| 322 | 321 | } | |
| 323 | 322 | ||
| 324 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 323 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 324 | + | defer core.GFreeNullable(NameVarPtr) | |
| 325 | 325 | ||
| 326 | 326 | cret := xNewDBusObjectManagerClientSync(ConnectionVar.GoPointer(), FlagsVar, NameVarPtr, ObjectPathVar, GetProxyTypeFuncVarRef, GetProxyTypeUserDataVar, GetProxyTypeDestroyNotifyVarRef, CancellableVar.GoPointer(), &cerr) | |
| 327 | 327 | ||
| 328 | - | runtime.KeepAlive(NameVarBytes) | |
| 329 | - | ||
| 330 | 328 | if cret == 0 { | |
| 331 | 329 | return nil, cerr | |
| 332 | 330 | } | |
| @@ -362,7 +360,6 @@ var xDBusObjectManagerClientGetFlags func(uintptr) DBusObjectManagerClientFlags | |||
| 362 | 360 | func (x *DBusObjectManagerClient) GetFlags() DBusObjectManagerClientFlags { | |
| 363 | 361 | ||
| 364 | 362 | cret := xDBusObjectManagerClientGetFlags(x.GoPointer()) | |
| 365 | - | ||
| 366 | 363 | return cret | |
| 367 | 364 | } | |
| 368 | 365 | ||
| @@ -373,7 +370,6 @@ var xDBusObjectManagerClientGetName func(uintptr) string | |||
| 373 | 370 | func (x *DBusObjectManagerClient) GetName() string { | |
| 374 | 371 | ||
| 375 | 372 | cret := xDBusObjectManagerClientGetName(x.GoPointer()) | |
| 376 | - | ||
| 377 | 373 | return cret | |
| 378 | 374 | } | |
| 379 | 375 | ||
| @@ -386,7 +382,6 @@ var xDBusObjectManagerClientGetNameOwner func(uintptr) string | |||
| 386 | 382 | func (x *DBusObjectManagerClient) GetNameOwner() string { | |
| 387 | 383 | ||
| 388 | 384 | cret := xDBusObjectManagerClientGetNameOwner(x.GoPointer()) | |
| 389 | - | ||
| 390 | 385 | return cret | |
| 391 | 386 | } | |
| 392 | 387 | ||
| @@ -611,7 +606,6 @@ func (x *DBusObjectManagerClient) InitFinish(ResVar AsyncResult) (bool, error) { | |||
| 611 | 606 | var cerr *glib.Error | |
| 612 | 607 | ||
| 613 | 608 | cret := XGAsyncInitableInitFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 614 | - | ||
| 615 | 609 | if cerr == nil { | |
| 616 | 610 | return cret, nil | |
| 617 | 611 | } | |
| @@ -672,7 +666,6 @@ func (x *DBusObjectManagerClient) GetObject(ObjectPathVar string) *DBusObjectBas | |||
| 672 | 666 | func (x *DBusObjectManagerClient) GetObjectPath() string { | |
| 673 | 667 | ||
| 674 | 668 | cret := XGDbusObjectManagerGetObjectPath(x.GoPointer()) | |
| 675 | - | ||
| 676 | 669 | return cret | |
| 677 | 670 | } | |
| 678 | 671 | ||
| @@ -680,7 +673,6 @@ func (x *DBusObjectManagerClient) GetObjectPath() string { | |||
| 680 | 673 | func (x *DBusObjectManagerClient) GetObjects() *glib.List { | |
| 681 | 674 | ||
| 682 | 675 | cret := XGDbusObjectManagerGetObjects(x.GoPointer()) | |
| 683 | - | ||
| 684 | 676 | return cret | |
| 685 | 677 | } | |
| 686 | 678 | ||
| @@ -726,7 +718,6 @@ func (x *DBusObjectManagerClient) Init(CancellableVar *Cancellable) (bool, error | |||
| 726 | 718 | var cerr *glib.Error | |
| 727 | 719 | ||
| 728 | 720 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 729 | - | ||
| 730 | 721 | if cerr == nil { | |
| 731 | 722 | return cret, nil | |
| 732 | 723 | } | |
M v4/gio/gdbusobjectmanagerserver.go +0 -4
| @@ -144,7 +144,6 @@ var xDBusObjectManagerServerIsExported func(uintptr, uintptr) bool | |||
| 144 | 144 | func (x *DBusObjectManagerServer) IsExported(ObjectVar *DBusObjectSkeleton) bool { | |
| 145 | 145 | ||
| 146 | 146 | cret := xDBusObjectManagerServerIsExported(x.GoPointer(), ObjectVar.GoPointer()) | |
| 147 | - | ||
| 148 | 147 | return cret | |
| 149 | 148 | } | |
| 150 | 149 | ||
| @@ -168,7 +167,6 @@ var xDBusObjectManagerServerUnexport func(uintptr, string) bool | |||
| 168 | 167 | func (x *DBusObjectManagerServer) Unexport(ObjectPathVar string) bool { | |
| 169 | 168 | ||
| 170 | 169 | cret := xDBusObjectManagerServerUnexport(x.GoPointer(), ObjectPathVar) | |
| 171 | - | ||
| 172 | 170 | return cret | |
| 173 | 171 | } | |
| 174 | 172 | ||
| @@ -233,7 +231,6 @@ func (x *DBusObjectManagerServer) GetObject(ObjectPathVar string) *DBusObjectBas | |||
| 233 | 231 | func (x *DBusObjectManagerServer) GetObjectPath() string { | |
| 234 | 232 | ||
| 235 | 233 | cret := XGDbusObjectManagerGetObjectPath(x.GoPointer()) | |
| 236 | - | ||
| 237 | 234 | return cret | |
| 238 | 235 | } | |
| 239 | 236 | ||
| @@ -241,7 +238,6 @@ func (x *DBusObjectManagerServer) GetObjectPath() string { | |||
| 241 | 238 | func (x *DBusObjectManagerServer) GetObjects() *glib.List { | |
| 242 | 239 | ||
| 243 | 240 | cret := XGDbusObjectManagerGetObjects(x.GoPointer()) | |
| 244 | - | ||
| 245 | 241 | return cret | |
| 246 | 242 | } | |
| 247 | 243 | ||
M v4/gio/gdbusobjectproxy.go +0 -2
| @@ -134,7 +134,6 @@ func (x *DBusObjectProxy) GetInterface(InterfaceNameVar string) *DBusInterfaceBa | |||
| 134 | 134 | func (x *DBusObjectProxy) GetInterfaces() *glib.List { | |
| 135 | 135 | ||
| 136 | 136 | cret := XGDbusObjectGetInterfaces(x.GoPointer()) | |
| 137 | - | ||
| 138 | 137 | return cret | |
| 139 | 138 | } | |
| 140 | 139 | ||
| @@ -142,7 +141,6 @@ func (x *DBusObjectProxy) GetInterfaces() *glib.List { | |||
| 142 | 141 | func (x *DBusObjectProxy) GetObjectPath() string { | |
| 143 | 142 | ||
| 144 | 143 | cret := XGDbusObjectGetObjectPath(x.GoPointer()) | |
| 145 | - | ||
| 146 | 144 | return cret | |
| 147 | 145 | } | |
| 148 | 146 | ||
M v4/gio/gdbusobjectskeleton.go +0 -2
| @@ -231,7 +231,6 @@ func (x *DBusObjectSkeleton) GetInterface(InterfaceNameVar string) *DBusInterfac | |||
| 231 | 231 | func (x *DBusObjectSkeleton) GetInterfaces() *glib.List { | |
| 232 | 232 | ||
| 233 | 233 | cret := XGDbusObjectGetInterfaces(x.GoPointer()) | |
| 234 | - | ||
| 235 | 234 | return cret | |
| 236 | 235 | } | |
| 237 | 236 | ||
| @@ -239,7 +238,6 @@ func (x *DBusObjectSkeleton) GetInterfaces() *glib.List { | |||
| 239 | 238 | func (x *DBusObjectSkeleton) GetObjectPath() string { | |
| 240 | 239 | ||
| 241 | 240 | cret := XGDbusObjectGetObjectPath(x.GoPointer()) | |
| 242 | - | ||
| 243 | 241 | return cret | |
| 244 | 242 | } | |
| 245 | 243 | ||
M v4/gio/gdbusproxy.go +4 -23
| @@ -3,7 +3,6 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "fmt" | |
| 6 | - | "runtime" | |
| 7 | 6 | "structs" | |
| 8 | 7 | "unsafe" | |
| 9 | 8 | ||
| @@ -245,12 +244,11 @@ func NewDBusProxySync(ConnectionVar *DBusConnection, FlagsVar DBusProxyFlags, In | |||
| 245 | 244 | var cls *DBusProxy | |
| 246 | 245 | var cerr *glib.Error | |
| 247 | 246 | ||
| 248 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 247 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 248 | + | defer core.GFreeNullable(NameVarPtr) | |
| 249 | 249 | ||
| 250 | 250 | cret := xNewDBusProxySync(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVarPtr, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), &cerr) | |
| 251 | 251 | ||
| 252 | - | runtime.KeepAlive(NameVarBytes) | |
| 253 | - | ||
| 254 | 252 | if cret == 0 { | |
| 255 | 253 | return nil, cerr | |
| 256 | 254 | } | |
| @@ -337,7 +335,6 @@ func (x *DBusProxy) CallFinish(ResVar AsyncResult) (*glib.Variant, error) { | |||
| 337 | 335 | var cerr *glib.Error | |
| 338 | 336 | ||
| 339 | 337 | cret := xDBusProxyCallFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 340 | - | ||
| 341 | 338 | if cerr == nil { | |
| 342 | 339 | return cret, nil | |
| 343 | 340 | } | |
| @@ -387,7 +384,6 @@ func (x *DBusProxy) CallSync(MethodNameVar string, ParametersVar *glib.Variant, | |||
| 387 | 384 | var cerr *glib.Error | |
| 388 | 385 | ||
| 389 | 386 | cret := xDBusProxyCallSync(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), &cerr) | |
| 390 | - | ||
| 391 | 387 | if cerr == nil { | |
| 392 | 388 | return cret, nil | |
| 393 | 389 | } | |
| @@ -428,7 +424,6 @@ func (x *DBusProxy) CallWithUnixFdListFinish(OutFdListVar **UnixFDList, ResVar A | |||
| 428 | 424 | var cerr *glib.Error | |
| 429 | 425 | ||
| 430 | 426 | cret := xDBusProxyCallWithUnixFdListFinish(x.GoPointer(), OutFdListVar, ResVar.GoPointer(), &cerr) | |
| 431 | - | ||
| 432 | 427 | if cerr == nil { | |
| 433 | 428 | return cret, nil | |
| 434 | 429 | } | |
| @@ -445,7 +440,6 @@ func (x *DBusProxy) CallWithUnixFdListSync(MethodNameVar string, ParametersVar * | |||
| 445 | 440 | var cerr *glib.Error | |
| 446 | 441 | ||
| 447 | 442 | cret := xDBusProxyCallWithUnixFdListSync(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), OutFdListVar, CancellableVar.GoPointer(), &cerr) | |
| 448 | - | ||
| 449 | 443 | if cerr == nil { | |
| 450 | 444 | return cret, nil | |
| 451 | 445 | } | |
| @@ -464,7 +458,6 @@ var xDBusProxyGetCachedProperty func(uintptr, string) *glib.Variant | |||
| 464 | 458 | func (x *DBusProxy) GetCachedProperty(PropertyNameVar string) *glib.Variant { | |
| 465 | 459 | ||
| 466 | 460 | cret := xDBusProxyGetCachedProperty(x.GoPointer(), PropertyNameVar) | |
| 467 | - | ||
| 468 | 461 | return cret | |
| 469 | 462 | } | |
| 470 | 463 | ||
| @@ -474,7 +467,6 @@ var xDBusProxyGetCachedPropertyNames func(uintptr) []string | |||
| 474 | 467 | func (x *DBusProxy) GetCachedPropertyNames() []string { | |
| 475 | 468 | ||
| 476 | 469 | cret := xDBusProxyGetCachedPropertyNames(x.GoPointer()) | |
| 477 | - | ||
| 478 | 470 | return cret | |
| 479 | 471 | } | |
| 480 | 472 | ||
| @@ -505,7 +497,6 @@ var xDBusProxyGetDefaultTimeout func(uintptr) int | |||
| 505 | 497 | func (x *DBusProxy) GetDefaultTimeout() int { | |
| 506 | 498 | ||
| 507 | 499 | cret := xDBusProxyGetDefaultTimeout(x.GoPointer()) | |
| 508 | - | ||
| 509 | 500 | return cret | |
| 510 | 501 | } | |
| 511 | 502 | ||
| @@ -515,7 +506,6 @@ var xDBusProxyGetFlags func(uintptr) DBusProxyFlags | |||
| 515 | 506 | func (x *DBusProxy) GetFlags() DBusProxyFlags { | |
| 516 | 507 | ||
| 517 | 508 | cret := xDBusProxyGetFlags(x.GoPointer()) | |
| 518 | - | ||
| 519 | 509 | return cret | |
| 520 | 510 | } | |
| 521 | 511 | ||
| @@ -527,7 +517,6 @@ var xDBusProxyGetInterfaceInfo func(uintptr) *DBusInterfaceInfo | |||
| 527 | 517 | func (x *DBusProxy) GetInterfaceInfo() *DBusInterfaceInfo { | |
| 528 | 518 | ||
| 529 | 519 | cret := xDBusProxyGetInterfaceInfo(x.GoPointer()) | |
| 530 | - | ||
| 531 | 520 | return cret | |
| 532 | 521 | } | |
| 533 | 522 | ||
| @@ -537,7 +526,6 @@ var xDBusProxyGetInterfaceName func(uintptr) string | |||
| 537 | 526 | func (x *DBusProxy) GetInterfaceName() string { | |
| 538 | 527 | ||
| 539 | 528 | cret := xDBusProxyGetInterfaceName(x.GoPointer()) | |
| 540 | - | ||
| 541 | 529 | return cret | |
| 542 | 530 | } | |
| 543 | 531 | ||
| @@ -551,7 +539,6 @@ var xDBusProxyGetName func(uintptr) string | |||
| 551 | 539 | func (x *DBusProxy) GetName() string { | |
| 552 | 540 | ||
| 553 | 541 | cret := xDBusProxyGetName(x.GoPointer()) | |
| 554 | - | ||
| 555 | 542 | return cret | |
| 556 | 543 | } | |
| 557 | 544 | ||
| @@ -564,7 +551,6 @@ var xDBusProxyGetNameOwner func(uintptr) string | |||
| 564 | 551 | func (x *DBusProxy) GetNameOwner() string { | |
| 565 | 552 | ||
| 566 | 553 | cret := xDBusProxyGetNameOwner(x.GoPointer()) | |
| 567 | - | ||
| 568 | 554 | return cret | |
| 569 | 555 | } | |
| 570 | 556 | ||
| @@ -574,7 +560,6 @@ var xDBusProxyGetObjectPath func(uintptr) string | |||
| 574 | 560 | func (x *DBusProxy) GetObjectPath() string { | |
| 575 | 561 | ||
| 576 | 562 | cret := xDBusProxyGetObjectPath(x.GoPointer()) | |
| 577 | - | ||
| 578 | 563 | return cret | |
| 579 | 564 | } | |
| 580 | 565 | ||
| @@ -950,7 +935,6 @@ func (x *DBusProxy) InitFinish(ResVar AsyncResult) (bool, error) { | |||
| 950 | 935 | var cerr *glib.Error | |
| 951 | 936 | ||
| 952 | 937 | cret := XGAsyncInitableInitFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 953 | - | ||
| 954 | 938 | if cerr == nil { | |
| 955 | 939 | return cret, nil | |
| 956 | 940 | } | |
| @@ -997,7 +981,6 @@ func (x *DBusProxy) DupObject() *DBusObjectBase { | |||
| 997 | 981 | func (x *DBusProxy) GetInfo() *DBusInterfaceInfo { | |
| 998 | 982 | ||
| 999 | 983 | cret := XGDbusInterfaceGetInfo(x.GoPointer()) | |
| 1000 | - | ||
| 1001 | 984 | return cret | |
| 1002 | 985 | } | |
| 1003 | 986 | ||
| @@ -1071,7 +1054,6 @@ func (x *DBusProxy) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 1071 | 1054 | var cerr *glib.Error | |
| 1072 | 1055 | ||
| 1073 | 1056 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 1074 | - | ||
| 1075 | 1057 | if cerr == nil { | |
| 1076 | 1058 | return cret, nil | |
| 1077 | 1059 | } | |
| @@ -1125,12 +1107,11 @@ func DBusProxyNew(ConnectionVar *DBusConnection, FlagsVar DBusProxyFlags, InfoVa | |||
| 1125 | 1107 | } | |
| 1126 | 1108 | } | |
| 1127 | 1109 | ||
| 1128 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 1110 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1111 | + | defer core.GFreeNullable(NameVarPtr) | |
| 1129 | 1112 | ||
| 1130 | 1113 | xDBusProxyNew(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVarPtr, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 1131 | 1114 | ||
| 1132 | - | runtime.KeepAlive(NameVarBytes) | |
| 1133 | - | ||
| 1134 | 1115 | } | |
| 1135 | 1116 | ||
| 1136 | 1117 | var xDBusProxyNewForBus func(BusType, DBusProxyFlags, *DBusInterfaceInfo, string, string, string, uintptr, uintptr, uintptr) | |
M v4/gio/gdbusserver.go +0 -5
| @@ -97,7 +97,6 @@ var xDBusServerGetClientAddress func(uintptr) string | |||
| 97 | 97 | func (x *DBusServer) GetClientAddress() string { | |
| 98 | 98 | ||
| 99 | 99 | cret := xDBusServerGetClientAddress(x.GoPointer()) | |
| 100 | - | ||
| 101 | 100 | return cret | |
| 102 | 101 | } | |
| 103 | 102 | ||
| @@ -107,7 +106,6 @@ var xDBusServerGetFlags func(uintptr) DBusServerFlags | |||
| 107 | 106 | func (x *DBusServer) GetFlags() DBusServerFlags { | |
| 108 | 107 | ||
| 109 | 108 | cret := xDBusServerGetFlags(x.GoPointer()) | |
| 110 | - | ||
| 111 | 109 | return cret | |
| 112 | 110 | } | |
| 113 | 111 | ||
| @@ -117,7 +115,6 @@ var xDBusServerGetGuid func(uintptr) string | |||
| 117 | 115 | func (x *DBusServer) GetGuid() string { | |
| 118 | 116 | ||
| 119 | 117 | cret := xDBusServerGetGuid(x.GoPointer()) | |
| 120 | - | ||
| 121 | 118 | return cret | |
| 122 | 119 | } | |
| 123 | 120 | ||
| @@ -127,7 +124,6 @@ var xDBusServerIsActive func(uintptr) bool | |||
| 127 | 124 | func (x *DBusServer) IsActive() bool { | |
| 128 | 125 | ||
| 129 | 126 | cret := xDBusServerIsActive(x.GoPointer()) | |
| 130 | - | ||
| 131 | 127 | return cret | |
| 132 | 128 | } | |
| 133 | 129 | ||
| @@ -300,7 +296,6 @@ func (x *DBusServer) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 300 | 296 | var cerr *glib.Error | |
| 301 | 297 | ||
| 302 | 298 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 303 | - | ||
| 304 | 299 | if cerr == nil { | |
| 305 | 300 | return cret, nil | |
| 306 | 301 | } | |
M v4/gio/gdbusutils.go +0 -11
| @@ -14,7 +14,6 @@ var xDbusEscapeObjectPath func(string) string | |||
| 14 | 14 | func DbusEscapeObjectPath(SVar string) string { | |
| 15 | 15 | ||
| 16 | 16 | cret := xDbusEscapeObjectPath(SVar) | |
| 17 | - | ||
| 18 | 17 | return cret | |
| 19 | 18 | } | |
| 20 | 19 | ||
| @@ -39,7 +38,6 @@ var xDbusEscapeObjectPathBytestring func([]byte) string | |||
| 39 | 38 | func DbusEscapeObjectPathBytestring(BytesVar []byte) string { | |
| 40 | 39 | ||
| 41 | 40 | cret := xDbusEscapeObjectPathBytestring(BytesVar) | |
| 42 | - | ||
| 43 | 41 | return cret | |
| 44 | 42 | } | |
| 45 | 43 | ||
| @@ -59,7 +57,6 @@ var xDbusGenerateGuid func() string | |||
| 59 | 57 | func DbusGenerateGuid() string { | |
| 60 | 58 | ||
| 61 | 59 | cret := xDbusGenerateGuid() | |
| 62 | - | ||
| 63 | 60 | return cret | |
| 64 | 61 | } | |
| 65 | 62 | ||
| @@ -96,7 +93,6 @@ var xDbusGvalueToGvariant func(*gobject.Value, *glib.VariantType) *glib.Variant | |||
| 96 | 93 | func DbusGvalueToGvariant(GvalueVar *gobject.Value, TypeVar *glib.VariantType) *glib.Variant { | |
| 97 | 94 | ||
| 98 | 95 | cret := xDbusGvalueToGvariant(GvalueVar, TypeVar) | |
| 99 | - | ||
| 100 | 96 | return cret | |
| 101 | 97 | } | |
| 102 | 98 | ||
| @@ -129,7 +125,6 @@ var xDbusIsErrorName func(string) bool | |||
| 129 | 125 | func DbusIsErrorName(StringVar string) bool { | |
| 130 | 126 | ||
| 131 | 127 | cret := xDbusIsErrorName(StringVar) | |
| 132 | - | ||
| 133 | 128 | return cret | |
| 134 | 129 | } | |
| 135 | 130 | ||
| @@ -142,7 +137,6 @@ var xDbusIsGuid func(string) bool | |||
| 142 | 137 | func DbusIsGuid(StringVar string) bool { | |
| 143 | 138 | ||
| 144 | 139 | cret := xDbusIsGuid(StringVar) | |
| 145 | - | ||
| 146 | 140 | return cret | |
| 147 | 141 | } | |
| 148 | 142 | ||
| @@ -152,7 +146,6 @@ var xDbusIsInterfaceName func(string) bool | |||
| 152 | 146 | func DbusIsInterfaceName(StringVar string) bool { | |
| 153 | 147 | ||
| 154 | 148 | cret := xDbusIsInterfaceName(StringVar) | |
| 155 | - | ||
| 156 | 149 | return cret | |
| 157 | 150 | } | |
| 158 | 151 | ||
| @@ -162,7 +155,6 @@ var xDbusIsMemberName func(string) bool | |||
| 162 | 155 | func DbusIsMemberName(StringVar string) bool { | |
| 163 | 156 | ||
| 164 | 157 | cret := xDbusIsMemberName(StringVar) | |
| 165 | - | ||
| 166 | 158 | return cret | |
| 167 | 159 | } | |
| 168 | 160 | ||
| @@ -172,7 +164,6 @@ var xDbusIsName func(string) bool | |||
| 172 | 164 | func DbusIsName(StringVar string) bool { | |
| 173 | 165 | ||
| 174 | 166 | cret := xDbusIsName(StringVar) | |
| 175 | - | ||
| 176 | 167 | return cret | |
| 177 | 168 | } | |
| 178 | 169 | ||
| @@ -182,7 +173,6 @@ var xDbusIsUniqueName func(string) bool | |||
| 182 | 173 | func DbusIsUniqueName(StringVar string) bool { | |
| 183 | 174 | ||
| 184 | 175 | cret := xDbusIsUniqueName(StringVar) | |
| 185 | - | ||
| 186 | 176 | return cret | |
| 187 | 177 | } | |
| 188 | 178 | ||
| @@ -199,7 +189,6 @@ var xDbusUnescapeObjectPath func(string) uintptr | |||
| 199 | 189 | func DbusUnescapeObjectPath(SVar string) uintptr { | |
| 200 | 190 | ||
| 201 | 191 | cret := xDbusUnescapeObjectPath(SVar) | |
| 202 | - | ||
| 203 | 192 | return cret | |
| 204 | 193 | } | |
| 205 | 194 | ||
M v4/gio/gdebugcontroller.go +0 -1
| @@ -70,7 +70,6 @@ func (x *DebugControllerBase) SetGoPointer(ptr uintptr) { | |||
| 70 | 70 | func (x *DebugControllerBase) GetDebugEnabled() bool { | |
| 71 | 71 | ||
| 72 | 72 | cret := XGDebugControllerGetDebugEnabled(x.GoPointer()) | |
| 73 | - | ||
| 74 | 73 | return cret | |
| 75 | 74 | } | |
| 76 | 75 | ||
M v4/gio/gdebugcontrollerdbus.go +0 -2
| @@ -290,7 +290,6 @@ func (x *DebugControllerDBus) ConnectAuthorize(cb *func(DebugControllerDBus, uin | |||
| 290 | 290 | func (x *DebugControllerDBus) GetDebugEnabled() bool { | |
| 291 | 291 | ||
| 292 | 292 | cret := XGDebugControllerGetDebugEnabled(x.GoPointer()) | |
| 293 | - | ||
| 294 | 293 | return cret | |
| 295 | 294 | } | |
| 296 | 295 | ||
| @@ -343,7 +342,6 @@ func (x *DebugControllerDBus) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 343 | 342 | var cerr *glib.Error | |
| 344 | 343 | ||
| 345 | 344 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 346 | - | ||
| 347 | 345 | if cerr == nil { | |
| 348 | 346 | return cret, nil | |
| 349 | 347 | } | |
M v4/gio/gdrive.go +0 -21
| @@ -998,7 +998,6 @@ func (x *DriveBase) SetGoPointer(ptr uintptr) { | |||
| 998 | 998 | func (x *DriveBase) CanEject() bool { | |
| 999 | 999 | ||
| 1000 | 1000 | cret := XGDriveCanEject(x.GoPointer()) | |
| 1001 | - | ||
| 1002 | 1001 | return cret | |
| 1003 | 1002 | } | |
| 1004 | 1003 | ||
| @@ -1006,7 +1005,6 @@ func (x *DriveBase) CanEject() bool { | |||
| 1006 | 1005 | func (x *DriveBase) CanPollForMedia() bool { | |
| 1007 | 1006 | ||
| 1008 | 1007 | cret := XGDriveCanPollForMedia(x.GoPointer()) | |
| 1009 | - | ||
| 1010 | 1008 | return cret | |
| 1011 | 1009 | } | |
| 1012 | 1010 | ||
| @@ -1014,7 +1012,6 @@ func (x *DriveBase) CanPollForMedia() bool { | |||
| 1014 | 1012 | func (x *DriveBase) CanStart() bool { | |
| 1015 | 1013 | ||
| 1016 | 1014 | cret := XGDriveCanStart(x.GoPointer()) | |
| 1017 | - | ||
| 1018 | 1015 | return cret | |
| 1019 | 1016 | } | |
| 1020 | 1017 | ||
| @@ -1022,7 +1019,6 @@ func (x *DriveBase) CanStart() bool { | |||
| 1022 | 1019 | func (x *DriveBase) CanStartDegraded() bool { | |
| 1023 | 1020 | ||
| 1024 | 1021 | cret := XGDriveCanStartDegraded(x.GoPointer()) | |
| 1025 | - | ||
| 1026 | 1022 | return cret | |
| 1027 | 1023 | } | |
| 1028 | 1024 | ||
| @@ -1030,7 +1026,6 @@ func (x *DriveBase) CanStartDegraded() bool { | |||
| 1030 | 1026 | func (x *DriveBase) CanStop() bool { | |
| 1031 | 1027 | ||
| 1032 | 1028 | cret := XGDriveCanStop(x.GoPointer()) | |
| 1033 | - | ||
| 1034 | 1029 | return cret | |
| 1035 | 1030 | } | |
| 1036 | 1031 | ||
| @@ -1050,7 +1045,6 @@ func (x *DriveBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1050 | 1045 | var cerr *glib.Error | |
| 1051 | 1046 | ||
| 1052 | 1047 | cret := XGDriveEjectFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1053 | - | ||
| 1054 | 1048 | if cerr == nil { | |
| 1055 | 1049 | return cret, nil | |
| 1056 | 1050 | } | |
| @@ -1073,7 +1067,6 @@ func (x *DriveBase) EjectWithOperationFinish(ResultVar AsyncResult) (bool, error | |||
| 1073 | 1067 | var cerr *glib.Error | |
| 1074 | 1068 | ||
| 1075 | 1069 | cret := XGDriveEjectWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1076 | - | ||
| 1077 | 1070 | if cerr == nil { | |
| 1078 | 1071 | return cret, nil | |
| 1079 | 1072 | } | |
| @@ -1087,7 +1080,6 @@ func (x *DriveBase) EjectWithOperationFinish(ResultVar AsyncResult) (bool, error | |||
| 1087 | 1080 | func (x *DriveBase) EnumerateIdentifiers() []string { | |
| 1088 | 1081 | ||
| 1089 | 1082 | cret := XGDriveEnumerateIdentifiers(x.GoPointer()) | |
| 1090 | - | ||
| 1091 | 1083 | return cret | |
| 1092 | 1084 | } | |
| 1093 | 1085 | ||
| @@ -1111,7 +1103,6 @@ func (x *DriveBase) GetIcon() *IconBase { | |||
| 1111 | 1103 | func (x *DriveBase) GetIdentifier(KindVar string) string { | |
| 1112 | 1104 | ||
| 1113 | 1105 | cret := XGDriveGetIdentifier(x.GoPointer(), KindVar) | |
| 1114 | - | ||
| 1115 | 1106 | return cret | |
| 1116 | 1107 | } | |
| 1117 | 1108 | ||
| @@ -1119,7 +1110,6 @@ func (x *DriveBase) GetIdentifier(KindVar string) string { | |||
| 1119 | 1110 | func (x *DriveBase) GetName() string { | |
| 1120 | 1111 | ||
| 1121 | 1112 | cret := XGDriveGetName(x.GoPointer()) | |
| 1122 | - | ||
| 1123 | 1113 | return cret | |
| 1124 | 1114 | } | |
| 1125 | 1115 | ||
| @@ -1127,7 +1117,6 @@ func (x *DriveBase) GetName() string { | |||
| 1127 | 1117 | func (x *DriveBase) GetSortKey() string { | |
| 1128 | 1118 | ||
| 1129 | 1119 | cret := XGDriveGetSortKey(x.GoPointer()) | |
| 1130 | - | ||
| 1131 | 1120 | return cret | |
| 1132 | 1121 | } | |
| 1133 | 1122 | ||
| @@ -1135,7 +1124,6 @@ func (x *DriveBase) GetSortKey() string { | |||
| 1135 | 1124 | func (x *DriveBase) GetStartStopType() DriveStartStopType { | |
| 1136 | 1125 | ||
| 1137 | 1126 | cret := XGDriveGetStartStopType(x.GoPointer()) | |
| 1138 | - | ||
| 1139 | 1127 | return cret | |
| 1140 | 1128 | } | |
| 1141 | 1129 | ||
| @@ -1160,7 +1148,6 @@ func (x *DriveBase) GetSymbolicIcon() *IconBase { | |||
| 1160 | 1148 | func (x *DriveBase) GetVolumes() *glib.List { | |
| 1161 | 1149 | ||
| 1162 | 1150 | cret := XGDriveGetVolumes(x.GoPointer()) | |
| 1163 | - | ||
| 1164 | 1151 | return cret | |
| 1165 | 1152 | } | |
| 1166 | 1153 | ||
| @@ -1170,7 +1157,6 @@ func (x *DriveBase) GetVolumes() *glib.List { | |||
| 1170 | 1157 | func (x *DriveBase) HasMedia() bool { | |
| 1171 | 1158 | ||
| 1172 | 1159 | cret := XGDriveHasMedia(x.GoPointer()) | |
| 1173 | - | ||
| 1174 | 1160 | return cret | |
| 1175 | 1161 | } | |
| 1176 | 1162 | ||
| @@ -1178,7 +1164,6 @@ func (x *DriveBase) HasMedia() bool { | |||
| 1178 | 1164 | func (x *DriveBase) HasVolumes() bool { | |
| 1179 | 1165 | ||
| 1180 | 1166 | cret := XGDriveHasVolumes(x.GoPointer()) | |
| 1181 | - | ||
| 1182 | 1167 | return cret | |
| 1183 | 1168 | } | |
| 1184 | 1169 | ||
| @@ -1186,7 +1171,6 @@ func (x *DriveBase) HasVolumes() bool { | |||
| 1186 | 1171 | func (x *DriveBase) IsMediaCheckAutomatic() bool { | |
| 1187 | 1172 | ||
| 1188 | 1173 | cret := XGDriveIsMediaCheckAutomatic(x.GoPointer()) | |
| 1189 | - | ||
| 1190 | 1174 | return cret | |
| 1191 | 1175 | } | |
| 1192 | 1176 | ||
| @@ -1194,7 +1178,6 @@ func (x *DriveBase) IsMediaCheckAutomatic() bool { | |||
| 1194 | 1178 | func (x *DriveBase) IsMediaRemovable() bool { | |
| 1195 | 1179 | ||
| 1196 | 1180 | cret := XGDriveIsMediaRemovable(x.GoPointer()) | |
| 1197 | - | ||
| 1198 | 1181 | return cret | |
| 1199 | 1182 | } | |
| 1200 | 1183 | ||
| @@ -1203,7 +1186,6 @@ func (x *DriveBase) IsMediaRemovable() bool { | |||
| 1203 | 1186 | func (x *DriveBase) IsRemovable() bool { | |
| 1204 | 1187 | ||
| 1205 | 1188 | cret := XGDriveIsRemovable(x.GoPointer()) | |
| 1206 | - | ||
| 1207 | 1189 | return cret | |
| 1208 | 1190 | } | |
| 1209 | 1191 | ||
| @@ -1223,7 +1205,6 @@ func (x *DriveBase) PollForMediaFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1223 | 1205 | var cerr *glib.Error | |
| 1224 | 1206 | ||
| 1225 | 1207 | cret := XGDrivePollForMediaFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1226 | - | ||
| 1227 | 1208 | if cerr == nil { | |
| 1228 | 1209 | return cret, nil | |
| 1229 | 1210 | } | |
| @@ -1247,7 +1228,6 @@ func (x *DriveBase) StartFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1247 | 1228 | var cerr *glib.Error | |
| 1248 | 1229 | ||
| 1249 | 1230 | cret := XGDriveStartFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1250 | - | ||
| 1251 | 1231 | if cerr == nil { | |
| 1252 | 1232 | return cret, nil | |
| 1253 | 1233 | } | |
| @@ -1271,7 +1251,6 @@ func (x *DriveBase) StopFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1271 | 1251 | var cerr *glib.Error | |
| 1272 | 1252 | ||
| 1273 | 1253 | cret := XGDriveStopFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1274 | - | ||
| 1275 | 1254 | if cerr == nil { | |
| 1276 | 1255 | return cret, nil | |
| 1277 | 1256 | } | |
M v4/gio/gdtlsclientconnection.go +0 -2
| @@ -66,7 +66,6 @@ func (x *DtlsClientConnectionBase) SetGoPointer(ptr uintptr) { | |||
| 66 | 66 | func (x *DtlsClientConnectionBase) GetAcceptedCas() *glib.List { | |
| 67 | 67 | ||
| 68 | 68 | cret := XGDtlsClientConnectionGetAcceptedCas(x.GoPointer()) | |
| 69 | - | ||
| 70 | 69 | return cret | |
| 71 | 70 | } | |
| 72 | 71 | ||
| @@ -93,7 +92,6 @@ func (x *DtlsClientConnectionBase) GetServerIdentity() *SocketConnectableBase { | |||
| 93 | 92 | func (x *DtlsClientConnectionBase) GetValidationFlags() TlsCertificateFlags { | |
| 94 | 93 | ||
| 95 | 94 | cret := XGDtlsClientConnectionGetValidationFlags(x.GoPointer()) | |
| 96 | - | ||
| 97 | 95 | return cret | |
| 98 | 96 | } | |
| 99 | 97 | ||
M v4/gio/gdtlsconnection.go +0 -14
| @@ -390,7 +390,6 @@ func (x *DtlsConnectionBase) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 390 | 390 | var cerr *glib.Error | |
| 391 | 391 | ||
| 392 | 392 | cret := XGDtlsConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 393 | - | ||
| 394 | 393 | if cerr == nil { | |
| 395 | 394 | return cret, nil | |
| 396 | 395 | } | |
| @@ -412,7 +411,6 @@ func (x *DtlsConnectionBase) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 412 | 411 | var cerr *glib.Error | |
| 413 | 412 | ||
| 414 | 413 | cret := XGDtlsConnectionCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 415 | - | ||
| 416 | 414 | if cerr == nil { | |
| 417 | 415 | return cret, nil | |
| 418 | 416 | } | |
| @@ -425,7 +423,6 @@ func (x *DtlsConnectionBase) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 425 | 423 | func (x *DtlsConnectionBase) EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool { | |
| 426 | 424 | ||
| 427 | 425 | cret := XGDtlsConnectionEmitAcceptCertificate(x.GoPointer(), PeerCertVar.GoPointer(), ErrorsVar) | |
| 428 | - | ||
| 429 | 426 | return cret | |
| 430 | 427 | } | |
| 431 | 428 | ||
| @@ -462,7 +459,6 @@ func (x *DtlsConnectionBase) GetChannelBindingData(TypeVar TlsChannelBindingType | |||
| 462 | 459 | var cerr *glib.Error | |
| 463 | 460 | ||
| 464 | 461 | cret := XGDtlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | |
| 465 | - | ||
| 466 | 462 | if cerr == nil { | |
| 467 | 463 | return cret, nil | |
| 468 | 464 | } | |
| @@ -481,7 +477,6 @@ func (x *DtlsConnectionBase) GetChannelBindingData(TypeVar TlsChannelBindingType | |||
| 481 | 477 | func (x *DtlsConnectionBase) GetCiphersuiteName() string { | |
| 482 | 478 | ||
| 483 | 479 | cret := XGDtlsConnectionGetCiphersuiteName(x.GoPointer()) | |
| 484 | - | ||
| 485 | 480 | return cret | |
| 486 | 481 | } | |
| 487 | 482 | ||
| @@ -528,7 +523,6 @@ func (x *DtlsConnectionBase) GetInteraction() *TlsInteraction { | |||
| 528 | 523 | func (x *DtlsConnectionBase) GetNegotiatedProtocol() string { | |
| 529 | 524 | ||
| 530 | 525 | cret := XGDtlsConnectionGetNegotiatedProtocol(x.GoPointer()) | |
| 531 | - | ||
| 532 | 526 | return cret | |
| 533 | 527 | } | |
| 534 | 528 | ||
| @@ -555,7 +549,6 @@ func (x *DtlsConnectionBase) GetPeerCertificate() *TlsCertificate { | |||
| 555 | 549 | func (x *DtlsConnectionBase) GetPeerCertificateErrors() TlsCertificateFlags { | |
| 556 | 550 | ||
| 557 | 551 | cret := XGDtlsConnectionGetPeerCertificateErrors(x.GoPointer()) | |
| 558 | - | ||
| 559 | 552 | return cret | |
| 560 | 553 | } | |
| 561 | 554 | ||
| @@ -566,7 +559,6 @@ func (x *DtlsConnectionBase) GetPeerCertificateErrors() TlsCertificateFlags { | |||
| 566 | 559 | func (x *DtlsConnectionBase) GetProtocolVersion() TlsProtocolVersion { | |
| 567 | 560 | ||
| 568 | 561 | cret := XGDtlsConnectionGetProtocolVersion(x.GoPointer()) | |
| 569 | - | ||
| 570 | 562 | return cret | |
| 571 | 563 | } | |
| 572 | 564 | ||
| @@ -575,7 +567,6 @@ func (x *DtlsConnectionBase) GetProtocolVersion() TlsProtocolVersion { | |||
| 575 | 567 | func (x *DtlsConnectionBase) GetRehandshakeMode() TlsRehandshakeMode { | |
| 576 | 568 | ||
| 577 | 569 | cret := XGDtlsConnectionGetRehandshakeMode(x.GoPointer()) | |
| 578 | - | ||
| 579 | 570 | return cret | |
| 580 | 571 | } | |
| 581 | 572 | ||
| @@ -585,7 +576,6 @@ func (x *DtlsConnectionBase) GetRehandshakeMode() TlsRehandshakeMode { | |||
| 585 | 576 | func (x *DtlsConnectionBase) GetRequireCloseNotify() bool { | |
| 586 | 577 | ||
| 587 | 578 | cret := XGDtlsConnectionGetRequireCloseNotify(x.GoPointer()) | |
| 588 | - | ||
| 589 | 579 | return cret | |
| 590 | 580 | } | |
| 591 | 581 | ||
| @@ -619,7 +609,6 @@ func (x *DtlsConnectionBase) Handshake(CancellableVar *Cancellable) (bool, error | |||
| 619 | 609 | var cerr *glib.Error | |
| 620 | 610 | ||
| 621 | 611 | cret := XGDtlsConnectionHandshake(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 622 | - | ||
| 623 | 612 | if cerr == nil { | |
| 624 | 613 | return cret, nil | |
| 625 | 614 | } | |
| @@ -641,7 +630,6 @@ func (x *DtlsConnectionBase) HandshakeFinish(ResultVar AsyncResult) (bool, error | |||
| 641 | 630 | var cerr *glib.Error | |
| 642 | 631 | ||
| 643 | 632 | cret := XGDtlsConnectionHandshakeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 644 | - | ||
| 645 | 633 | if cerr == nil { | |
| 646 | 634 | return cret, nil | |
| 647 | 635 | } | |
| @@ -779,7 +767,6 @@ func (x *DtlsConnectionBase) Shutdown(ShutdownReadVar bool, ShutdownWriteVar boo | |||
| 779 | 767 | var cerr *glib.Error | |
| 780 | 768 | ||
| 781 | 769 | cret := XGDtlsConnectionShutdown(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, CancellableVar.GoPointer(), &cerr) | |
| 782 | - | ||
| 783 | 770 | if cerr == nil { | |
| 784 | 771 | return cret, nil | |
| 785 | 772 | } | |
| @@ -801,7 +788,6 @@ func (x *DtlsConnectionBase) ShutdownFinish(ResultVar AsyncResult) (bool, error) | |||
| 801 | 788 | var cerr *glib.Error | |
| 802 | 789 | ||
| 803 | 790 | cret := XGDtlsConnectionShutdownFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 804 | - | ||
| 805 | 791 | if cerr == nil { | |
| 806 | 792 | return cret, nil | |
| 807 | 793 | } | |
M v4/gio/gemblem.go +0 -5
| @@ -97,7 +97,6 @@ var xEmblemGetOrigin func(uintptr) EmblemOrigin | |||
| 97 | 97 | func (x *Emblem) GetOrigin() EmblemOrigin { | |
| 98 | 98 | ||
| 99 | 99 | cret := xEmblemGetOrigin(x.GoPointer()) | |
| 100 | - | ||
| 101 | 100 | return cret | |
| 102 | 101 | } | |
| 103 | 102 | ||
| @@ -116,7 +115,6 @@ func (c *Emblem) SetGoPointer(ptr uintptr) { | |||
| 116 | 115 | func (x *Emblem) Equal(Icon2Var Icon) bool { | |
| 117 | 116 | ||
| 118 | 117 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 119 | - | ||
| 120 | 118 | return cret | |
| 121 | 119 | } | |
| 122 | 120 | ||
| @@ -124,7 +122,6 @@ func (x *Emblem) Equal(Icon2Var Icon) bool { | |||
| 124 | 122 | func (x *Emblem) Hash() uint { | |
| 125 | 123 | ||
| 126 | 124 | cret := XGIconHash(x.GoPointer()) | |
| 127 | - | ||
| 128 | 125 | return cret | |
| 129 | 126 | } | |
| 130 | 127 | ||
| @@ -136,7 +133,6 @@ func (x *Emblem) Hash() uint { | |||
| 136 | 133 | func (x *Emblem) Serialize() *glib.Variant { | |
| 137 | 134 | ||
| 138 | 135 | cret := XGIconSerialize(x.GoPointer()) | |
| 139 | - | ||
| 140 | 136 | return cret | |
| 141 | 137 | } | |
| 142 | 138 | ||
| @@ -159,7 +155,6 @@ func (x *Emblem) Serialize() *glib.Variant { | |||
| 159 | 155 | func (x *Emblem) ToString() string { | |
| 160 | 156 | ||
| 161 | 157 | cret := XGIconToString(x.GoPointer()) | |
| 162 | - | ||
| 163 | 158 | return cret | |
| 164 | 159 | } | |
| 165 | 160 | ||
M v4/gio/gemblemedicon.go +0 -5
| @@ -92,7 +92,6 @@ var xEmblemedIconGetEmblems func(uintptr) *glib.List | |||
| 92 | 92 | func (x *EmblemedIcon) GetEmblems() *glib.List { | |
| 93 | 93 | ||
| 94 | 94 | cret := xEmblemedIconGetEmblems(x.GoPointer()) | |
| 95 | - | ||
| 96 | 95 | return cret | |
| 97 | 96 | } | |
| 98 | 97 | ||
| @@ -128,7 +127,6 @@ func (c *EmblemedIcon) SetGoPointer(ptr uintptr) { | |||
| 128 | 127 | func (x *EmblemedIcon) Equal(Icon2Var Icon) bool { | |
| 129 | 128 | ||
| 130 | 129 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 131 | - | ||
| 132 | 130 | return cret | |
| 133 | 131 | } | |
| 134 | 132 | ||
| @@ -136,7 +134,6 @@ func (x *EmblemedIcon) Equal(Icon2Var Icon) bool { | |||
| 136 | 134 | func (x *EmblemedIcon) Hash() uint { | |
| 137 | 135 | ||
| 138 | 136 | cret := XGIconHash(x.GoPointer()) | |
| 139 | - | ||
| 140 | 137 | return cret | |
| 141 | 138 | } | |
| 142 | 139 | ||
| @@ -148,7 +145,6 @@ func (x *EmblemedIcon) Hash() uint { | |||
| 148 | 145 | func (x *EmblemedIcon) Serialize() *glib.Variant { | |
| 149 | 146 | ||
| 150 | 147 | cret := XGIconSerialize(x.GoPointer()) | |
| 151 | - | ||
| 152 | 148 | return cret | |
| 153 | 149 | } | |
| 154 | 150 | ||
| @@ -171,7 +167,6 @@ func (x *EmblemedIcon) Serialize() *glib.Variant { | |||
| 171 | 167 | func (x *EmblemedIcon) ToString() string { | |
| 172 | 168 | ||
| 173 | 169 | cret := XGIconToString(x.GoPointer()) | |
| 174 | - | ||
| 175 | 170 | return cret | |
| 176 | 171 | } | |
| 177 | 172 | ||
M v4/gio/gfile.go +20 -90
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -3457,7 +3456,6 @@ func (x *FileBase) BuildAttributeListForCopy(FlagsVar FileCopyFlags, Cancellable | |||
| 3457 | 3456 | var cerr *glib.Error | |
| 3458 | 3457 | ||
| 3459 | 3458 | cret := XGFileBuildAttributeListForCopy(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 3460 | - | ||
| 3461 | 3459 | if cerr == nil { | |
| 3462 | 3460 | return cret, nil | |
| 3463 | 3461 | } | |
| @@ -3509,7 +3507,6 @@ func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||
| 3509 | 3507 | var cerr *glib.Error | |
| 3510 | 3508 | ||
| 3511 | 3509 | cret := XGFileCopy(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 3512 | - | ||
| 3513 | 3510 | if cerr == nil { | |
| 3514 | 3511 | return cret, nil | |
| 3515 | 3512 | } | |
| @@ -3553,7 +3550,6 @@ func (x *FileBase) CopyAttributes(DestinationVar File, FlagsVar FileCopyFlags, C | |||
| 3553 | 3550 | var cerr *glib.Error | |
| 3554 | 3551 | ||
| 3555 | 3552 | cret := XGFileCopyAttributes(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 3556 | - | ||
| 3557 | 3553 | if cerr == nil { | |
| 3558 | 3554 | return cret, nil | |
| 3559 | 3555 | } | |
| @@ -3566,7 +3562,6 @@ func (x *FileBase) CopyFinish(ResVar AsyncResult) (bool, error) { | |||
| 3566 | 3562 | var cerr *glib.Error | |
| 3567 | 3563 | ||
| 3568 | 3564 | cret := XGFileCopyFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| 3569 | - | ||
| 3570 | 3565 | if cerr == nil { | |
| 3571 | 3566 | return cret, nil | |
| 3572 | 3567 | } | |
| @@ -3749,7 +3744,6 @@ func (x *FileBase) Delete(CancellableVar *Cancellable) (bool, error) { | |||
| 3749 | 3744 | var cerr *glib.Error | |
| 3750 | 3745 | ||
| 3751 | 3746 | cret := XGFileDelete(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 3752 | - | ||
| 3753 | 3747 | if cerr == nil { | |
| 3754 | 3748 | return cret, nil | |
| 3755 | 3749 | } | |
| @@ -3771,7 +3765,6 @@ func (x *FileBase) DeleteFinish(ResultVar AsyncResult) (bool, error) { | |||
| 3771 | 3765 | var cerr *glib.Error | |
| 3772 | 3766 | ||
| 3773 | 3767 | cret := XGFileDeleteFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 3774 | - | ||
| 3775 | 3768 | if cerr == nil { | |
| 3776 | 3769 | return cret, nil | |
| 3777 | 3770 | } | |
| @@ -3822,7 +3815,6 @@ func (x *FileBase) EjectMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 3822 | 3815 | var cerr *glib.Error | |
| 3823 | 3816 | ||
| 3824 | 3817 | cret := XGFileEjectMountableFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 3825 | - | ||
| 3826 | 3818 | if cerr == nil { | |
| 3827 | 3819 | return cret, nil | |
| 3828 | 3820 | } | |
| @@ -3850,7 +3842,6 @@ func (x *FileBase) EjectMountableWithOperationFinish(ResultVar AsyncResult) (boo | |||
| 3850 | 3842 | var cerr *glib.Error | |
| 3851 | 3843 | ||
| 3852 | 3844 | cret := XGFileEjectMountableWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 3853 | - | ||
| 3854 | 3845 | if cerr == nil { | |
| 3855 | 3846 | return cret, nil | |
| 3856 | 3847 | } | |
| @@ -3947,7 +3938,6 @@ func (x *FileBase) EnumerateChildrenFinish(ResVar AsyncResult) (*FileEnumerator, | |||
| 3947 | 3938 | func (x *FileBase) Equal(File2Var File) bool { | |
| 3948 | 3939 | ||
| 3949 | 3940 | cret := XGFileEqual(x.GoPointer(), File2Var.GoPointer()) | |
| 3950 | - | ||
| 3951 | 3941 | return cret | |
| 3952 | 3942 | } | |
| 3953 | 3943 | ||
| @@ -4028,7 +4018,6 @@ func (x *FileBase) FindEnclosingMountFinish(ResVar AsyncResult) (*MountBase, err | |||
| 4028 | 4018 | func (x *FileBase) GetBasename() string { | |
| 4029 | 4019 | ||
| 4030 | 4020 | cret := XGFileGetBasename(x.GoPointer()) | |
| 4031 | - | ||
| 4032 | 4021 | return cret | |
| 4033 | 4022 | } | |
| 4034 | 4023 | ||
| @@ -4113,7 +4102,6 @@ func (x *FileBase) GetParent() *FileBase { | |||
| 4113 | 4102 | func (x *FileBase) GetParseName() string { | |
| 4114 | 4103 | ||
| 4115 | 4104 | cret := XGFileGetParseName(x.GoPointer()) | |
| 4116 | - | ||
| 4117 | 4105 | return cret | |
| 4118 | 4106 | } | |
| 4119 | 4107 | ||
| @@ -4124,7 +4112,6 @@ func (x *FileBase) GetParseName() string { | |||
| 4124 | 4112 | func (x *FileBase) GetPath() string { | |
| 4125 | 4113 | ||
| 4126 | 4114 | cret := XGFileGetPath(x.GoPointer()) | |
| 4127 | - | ||
| 4128 | 4115 | return cret | |
| 4129 | 4116 | } | |
| 4130 | 4117 | ||
| @@ -4134,7 +4121,6 @@ func (x *FileBase) GetPath() string { | |||
| 4134 | 4121 | func (x *FileBase) GetRelativePath(DescendantVar File) string { | |
| 4135 | 4122 | ||
| 4136 | 4123 | cret := XGFileGetRelativePath(x.GoPointer(), DescendantVar.GoPointer()) | |
| 4137 | - | ||
| 4138 | 4124 | return cret | |
| 4139 | 4125 | } | |
| 4140 | 4126 | ||
| @@ -4144,7 +4130,6 @@ func (x *FileBase) GetRelativePath(DescendantVar File) string { | |||
| 4144 | 4130 | func (x *FileBase) GetUri() string { | |
| 4145 | 4131 | ||
| 4146 | 4132 | cret := XGFileGetUri(x.GoPointer()) | |
| 4147 | - | ||
| 4148 | 4133 | return cret | |
| 4149 | 4134 | } | |
| 4150 | 4135 | ||
| @@ -4162,7 +4147,6 @@ func (x *FileBase) GetUri() string { | |||
| 4162 | 4147 | func (x *FileBase) GetUriScheme() string { | |
| 4163 | 4148 | ||
| 4164 | 4149 | cret := XGFileGetUriScheme(x.GoPointer()) | |
| 4165 | - | ||
| 4166 | 4150 | return cret | |
| 4167 | 4151 | } | |
| 4168 | 4152 | ||
| @@ -4174,7 +4158,6 @@ func (x *FileBase) GetUriScheme() string { | |||
| 4174 | 4158 | func (x *FileBase) HasParent(ParentVar File) bool { | |
| 4175 | 4159 | ||
| 4176 | 4160 | cret := XGFileHasParent(x.GoPointer(), ParentVar.GoPointer()) | |
| 4177 | - | ||
| 4178 | 4161 | return cret | |
| 4179 | 4162 | } | |
| 4180 | 4163 | ||
| @@ -4195,7 +4178,6 @@ func (x *FileBase) HasParent(ParentVar File) bool { | |||
| 4195 | 4178 | func (x *FileBase) HasPrefix(PrefixVar File) bool { | |
| 4196 | 4179 | ||
| 4197 | 4180 | cret := XGFileHasPrefix(x.GoPointer(), PrefixVar.GoPointer()) | |
| 4198 | - | ||
| 4199 | 4181 | return cret | |
| 4200 | 4182 | } | |
| 4201 | 4183 | ||
| @@ -4205,7 +4187,6 @@ func (x *FileBase) HasPrefix(PrefixVar File) bool { | |||
| 4205 | 4187 | func (x *FileBase) HasUriScheme(UriSchemeVar string) bool { | |
| 4206 | 4188 | ||
| 4207 | 4189 | cret := XGFileHasUriScheme(x.GoPointer(), UriSchemeVar) | |
| 4208 | - | ||
| 4209 | 4190 | return cret | |
| 4210 | 4191 | } | |
| 4211 | 4192 | ||
| @@ -4215,7 +4196,6 @@ func (x *FileBase) HasUriScheme(UriSchemeVar string) bool { | |||
| 4215 | 4196 | func (x *FileBase) Hash() uint { | |
| 4216 | 4197 | ||
| 4217 | 4198 | cret := XGFileHash(x.GoPointer()) | |
| 4218 | - | ||
| 4219 | 4199 | return cret | |
| 4220 | 4200 | } | |
| 4221 | 4201 | ||
| @@ -4233,7 +4213,6 @@ func (x *FileBase) Hash() uint { | |||
| 4233 | 4213 | func (x *FileBase) IsNative() bool { | |
| 4234 | 4214 | ||
| 4235 | 4215 | cret := XGFileIsNative(x.GoPointer()) | |
| 4236 | - | ||
| 4237 | 4216 | return cret | |
| 4238 | 4217 | } | |
| 4239 | 4218 | ||
| @@ -4252,7 +4231,6 @@ func (x *FileBase) LoadBytes(CancellableVar *Cancellable, EtagOutVar *string) (* | |||
| 4252 | 4231 | var cerr *glib.Error | |
| 4253 | 4232 | ||
| 4254 | 4233 | cret := XGFileLoadBytes(x.GoPointer(), CancellableVar.GoPointer(), EtagOutVar, &cerr) | |
| 4255 | - | ||
| 4256 | 4234 | if cerr == nil { | |
| 4257 | 4235 | return cret, nil | |
| 4258 | 4236 | } | |
| @@ -4289,7 +4267,6 @@ func (x *FileBase) LoadBytesFinish(ResultVar AsyncResult, EtagOutVar *string) (* | |||
| 4289 | 4267 | var cerr *glib.Error | |
| 4290 | 4268 | ||
| 4291 | 4269 | cret := XGFileLoadBytesFinish(x.GoPointer(), ResultVar.GoPointer(), EtagOutVar, &cerr) | |
| 4292 | - | ||
| 4293 | 4270 | if cerr == nil { | |
| 4294 | 4271 | return cret, nil | |
| 4295 | 4272 | } | |
| @@ -4309,7 +4286,6 @@ func (x *FileBase) LoadContents(CancellableVar *Cancellable, ContentsVar *[]stri | |||
| 4309 | 4286 | var cerr *glib.Error | |
| 4310 | 4287 | ||
| 4311 | 4288 | cret := XGFileLoadContents(x.GoPointer(), CancellableVar.GoPointer(), ContentsVar, LengthVar, EtagOutVar, &cerr) | |
| 4312 | - | ||
| 4313 | 4289 | if cerr == nil { | |
| 4314 | 4290 | return cret, nil | |
| 4315 | 4291 | } | |
| @@ -4345,7 +4321,6 @@ func (x *FileBase) LoadContentsFinish(ResVar AsyncResult, ContentsVar *[]string, | |||
| 4345 | 4321 | var cerr *glib.Error | |
| 4346 | 4322 | ||
| 4347 | 4323 | cret := XGFileLoadContentsFinish(x.GoPointer(), ResVar.GoPointer(), ContentsVar, LengthVar, EtagOutVar, &cerr) | |
| 4348 | - | ||
| 4349 | 4324 | if cerr == nil { | |
| 4350 | 4325 | return cret, nil | |
| 4351 | 4326 | } | |
| @@ -4379,7 +4354,6 @@ func (x *FileBase) LoadPartialContentsFinish(ResVar AsyncResult, ContentsVar *[] | |||
| 4379 | 4354 | var cerr *glib.Error | |
| 4380 | 4355 | ||
| 4381 | 4356 | cret := XGFileLoadPartialContentsFinish(x.GoPointer(), ResVar.GoPointer(), ContentsVar, LengthVar, EtagOutVar, &cerr) | |
| 4382 | - | ||
| 4383 | 4357 | if cerr == nil { | |
| 4384 | 4358 | return cret, nil | |
| 4385 | 4359 | } | |
| @@ -4409,7 +4383,6 @@ func (x *FileBase) MakeDirectory(CancellableVar *Cancellable) (bool, error) { | |||
| 4409 | 4383 | var cerr *glib.Error | |
| 4410 | 4384 | ||
| 4411 | 4385 | cret := XGFileMakeDirectory(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 4412 | - | ||
| 4413 | 4386 | if cerr == nil { | |
| 4414 | 4387 | return cret, nil | |
| 4415 | 4388 | } | |
| @@ -4430,7 +4403,6 @@ func (x *FileBase) MakeDirectoryFinish(ResultVar AsyncResult) (bool, error) { | |||
| 4430 | 4403 | var cerr *glib.Error | |
| 4431 | 4404 | ||
| 4432 | 4405 | cret := XGFileMakeDirectoryFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 4433 | - | ||
| 4434 | 4406 | if cerr == nil { | |
| 4435 | 4407 | return cret, nil | |
| 4436 | 4408 | } | |
| @@ -4455,7 +4427,6 @@ func (x *FileBase) MakeDirectoryWithParents(CancellableVar *Cancellable) (bool, | |||
| 4455 | 4427 | var cerr *glib.Error | |
| 4456 | 4428 | ||
| 4457 | 4429 | cret := XGFileMakeDirectoryWithParents(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 4458 | - | ||
| 4459 | 4430 | if cerr == nil { | |
| 4460 | 4431 | return cret, nil | |
| 4461 | 4432 | } | |
| @@ -4473,7 +4444,6 @@ func (x *FileBase) MakeSymbolicLink(SymlinkValueVar string, CancellableVar *Canc | |||
| 4473 | 4444 | var cerr *glib.Error | |
| 4474 | 4445 | ||
| 4475 | 4446 | cret := XGFileMakeSymbolicLink(x.GoPointer(), SymlinkValueVar, CancellableVar.GoPointer(), &cerr) | |
| 4476 | - | ||
| 4477 | 4447 | if cerr == nil { | |
| 4478 | 4448 | return cret, nil | |
| 4479 | 4449 | } | |
| @@ -4495,7 +4465,6 @@ func (x *FileBase) MakeSymbolicLinkFinish(ResultVar AsyncResult) (bool, error) { | |||
| 4495 | 4465 | var cerr *glib.Error | |
| 4496 | 4466 | ||
| 4497 | 4467 | cret := XGFileMakeSymbolicLinkFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 4498 | - | ||
| 4499 | 4468 | if cerr == nil { | |
| 4500 | 4469 | return cret, nil | |
| 4501 | 4470 | } | |
| @@ -4525,7 +4494,6 @@ func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *C | |||
| 4525 | 4494 | var cerr *glib.Error | |
| 4526 | 4495 | ||
| 4527 | 4496 | cret := XGFileMeasureDiskUsage(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressDataVar, DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) | |
| 4528 | - | ||
| 4529 | 4497 | if cerr == nil { | |
| 4530 | 4498 | return cret, nil | |
| 4531 | 4499 | } | |
| @@ -4550,7 +4518,6 @@ func (x *FileBase) MeasureDiskUsageFinish(ResultVar AsyncResult, DiskUsageVar *u | |||
| 4550 | 4518 | var cerr *glib.Error | |
| 4551 | 4519 | ||
| 4552 | 4520 | cret := XGFileMeasureDiskUsageFinish(x.GoPointer(), ResultVar.GoPointer(), DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) | |
| 4553 | - | ||
| 4554 | 4521 | if cerr == nil { | |
| 4555 | 4522 | return cret, nil | |
| 4556 | 4523 | } | |
| @@ -4665,7 +4632,6 @@ func (x *FileBase) MountEnclosingVolumeFinish(ResultVar AsyncResult) (bool, erro | |||
| 4665 | 4632 | var cerr *glib.Error | |
| 4666 | 4633 | ||
| 4667 | 4634 | cret := XGFileMountEnclosingVolumeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 4668 | - | ||
| 4669 | 4635 | if cerr == nil { | |
| 4670 | 4636 | return cret, nil | |
| 4671 | 4637 | } | |
| @@ -4749,7 +4715,6 @@ func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||
| 4749 | 4715 | var cerr *glib.Error | |
| 4750 | 4716 | ||
| 4751 | 4717 | cret := XGFileMove(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 4752 | - | ||
| 4753 | 4718 | if cerr == nil { | |
| 4754 | 4719 | return cret, nil | |
| 4755 | 4720 | } | |
| @@ -4786,7 +4751,6 @@ func (x *FileBase) MoveFinish(ResultVar AsyncResult) (bool, error) { | |||
| 4786 | 4751 | var cerr *glib.Error | |
| 4787 | 4752 | ||
| 4788 | 4753 | cret := XGFileMoveFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 4789 | - | ||
| 4790 | 4754 | if cerr == nil { | |
| 4791 | 4755 | return cret, nil | |
| 4792 | 4756 | } | |
| @@ -4872,7 +4836,6 @@ func (x *FileBase) OpenReadwriteFinish(ResVar AsyncResult) (*FileIOStream, error | |||
| 4872 | 4836 | func (x *FileBase) PeekPath() string { | |
| 4873 | 4837 | ||
| 4874 | 4838 | cret := XGFilePeekPath(x.GoPointer()) | |
| 4875 | - | ||
| 4876 | 4839 | return cret | |
| 4877 | 4840 | } | |
| 4878 | 4841 | ||
| @@ -4899,7 +4862,6 @@ func (x *FileBase) PollMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 4899 | 4862 | var cerr *glib.Error | |
| 4900 | 4863 | ||
| 4901 | 4864 | cret := XGFilePollMountableFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 4902 | - | ||
| 4903 | 4865 | if cerr == nil { | |
| 4904 | 4866 | return cret, nil | |
| 4905 | 4867 | } | |
| @@ -4985,7 +4947,6 @@ func (x *FileBase) QueryDefaultHandlerFinish(ResultVar AsyncResult) (*AppInfoBas | |||
| 4985 | 4947 | func (x *FileBase) QueryExists(CancellableVar *Cancellable) bool { | |
| 4986 | 4948 | ||
| 4987 | 4949 | cret := XGFileQueryExists(x.GoPointer(), CancellableVar.GoPointer()) | |
| 4988 | - | ||
| 4989 | 4950 | return cret | |
| 4990 | 4951 | } | |
| 4991 | 4952 | ||
| @@ -4997,7 +4958,6 @@ func (x *FileBase) QueryExists(CancellableVar *Cancellable) bool { | |||
| 4997 | 4958 | func (x *FileBase) QueryFileType(FlagsVar FileQueryInfoFlags, CancellableVar *Cancellable) FileType { | |
| 4998 | 4959 | ||
| 4999 | 4960 | cret := XGFileQueryFileType(x.GoPointer(), FlagsVar, CancellableVar.GoPointer()) | |
| 5000 | - | ||
| 5001 | 4961 | return cret | |
| 5002 | 4962 | } | |
| 5003 | 4963 | ||
| @@ -5191,7 +5151,6 @@ func (x *FileBase) QuerySettableAttributes(CancellableVar *Cancellable) (*FileAt | |||
| 5191 | 5151 | var cerr *glib.Error | |
| 5192 | 5152 | ||
| 5193 | 5153 | cret := XGFileQuerySettableAttributes(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 5194 | - | ||
| 5195 | 5154 | if cerr == nil { | |
| 5196 | 5155 | return cret, nil | |
| 5197 | 5156 | } | |
| @@ -5210,7 +5169,6 @@ func (x *FileBase) QueryWritableNamespaces(CancellableVar *Cancellable) (*FileAt | |||
| 5210 | 5169 | var cerr *glib.Error | |
| 5211 | 5170 | ||
| 5212 | 5171 | cret := XGFileQueryWritableNamespaces(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 5213 | - | ||
| 5214 | 5172 | if cerr == nil { | |
| 5215 | 5173 | return cret, nil | |
| 5216 | 5174 | } | |
| @@ -5326,12 +5284,11 @@ func (x *FileBase) Replace(EtagVar *string, MakeBackupVar bool, FlagsVar FileCre | |||
| 5326 | 5284 | var cls *FileOutputStream | |
| 5327 | 5285 | var cerr *glib.Error | |
| 5328 | 5286 | ||
| 5329 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5287 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5288 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5330 | 5289 | ||
| 5331 | 5290 | cret := XGFileReplace(x.GoPointer(), EtagVarPtr, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5332 | 5291 | ||
| 5333 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5334 | - | ||
| 5335 | 5292 | if cret == 0 { | |
| 5336 | 5293 | return nil, cerr | |
| 5337 | 5294 | } | |
| @@ -5355,12 +5312,11 @@ func (x *FileBase) Replace(EtagVar *string, MakeBackupVar bool, FlagsVar FileCre | |||
| 5355 | 5312 | // of the operation. | |
| 5356 | 5313 | func (x *FileBase) ReplaceAsync(EtagVar *string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5357 | 5314 | ||
| 5358 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5315 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5316 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5359 | 5317 | ||
| 5360 | 5318 | XGFileReplaceAsync(x.GoPointer(), EtagVarPtr, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5361 | 5319 | ||
| 5362 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5363 | - | ||
| 5364 | 5320 | } | |
| 5365 | 5321 | ||
| 5366 | 5322 | // Replaces the contents of @file with @contents of @length bytes. | |
| @@ -5382,12 +5338,10 @@ func (x *FileBase) ReplaceAsync(EtagVar *string, MakeBackupVar bool, FlagsVar Fi | |||
| 5382 | 5338 | func (x *FileBase) ReplaceContents(ContentsVar string, LengthVar uint, EtagVar *string, MakeBackupVar bool, FlagsVar FileCreateFlags, NewEtagVar *string, CancellableVar *Cancellable) (bool, error) { | |
| 5383 | 5339 | var cerr *glib.Error | |
| 5384 | 5340 | ||
| 5385 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5341 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5342 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5386 | 5343 | ||
| 5387 | 5344 | cret := XGFileReplaceContents(x.GoPointer(), ContentsVar, LengthVar, EtagVarPtr, MakeBackupVar, FlagsVar, NewEtagVar, CancellableVar.GoPointer(), &cerr) | |
| 5388 | - | ||
| 5389 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5390 | - | ||
| 5391 | 5345 | if cerr == nil { | |
| 5392 | 5346 | return cret, nil | |
| 5393 | 5347 | } | |
| @@ -5416,12 +5370,11 @@ func (x *FileBase) ReplaceContents(ContentsVar string, LengthVar uint, EtagVar * | |||
| 5416 | 5370 | // contents (without copying) for the duration of the call. | |
| 5417 | 5371 | func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, EtagVar *string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5418 | 5372 | ||
| 5419 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5373 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5374 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5420 | 5375 | ||
| 5421 | 5376 | XGFileReplaceContentsAsync(x.GoPointer(), ContentsVar, LengthVar, EtagVarPtr, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5422 | 5377 | ||
| 5423 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5424 | - | ||
| 5425 | 5378 | } | |
| 5426 | 5379 | ||
| 5427 | 5380 | // Same as g_file_replace_contents_async() but takes a #GBytes input instead. | |
| @@ -5434,12 +5387,11 @@ func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, Etag | |||
| 5434 | 5387 | // g_file_replace_contents_finish(). | |
| 5435 | 5388 | func (x *FileBase) ReplaceContentsBytesAsync(ContentsVar *glib.Bytes, EtagVar *string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5436 | 5389 | ||
| 5437 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5390 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5391 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5438 | 5392 | ||
| 5439 | 5393 | XGFileReplaceContentsBytesAsync(x.GoPointer(), ContentsVar, EtagVarPtr, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5440 | 5394 | ||
| 5441 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5442 | - | ||
| 5443 | 5395 | } | |
| 5444 | 5396 | ||
| 5445 | 5397 | // Finishes an asynchronous replace of the given @file. See | |
| @@ -5449,7 +5401,6 @@ func (x *FileBase) ReplaceContentsFinish(ResVar AsyncResult, NewEtagVar *string) | |||
| 5449 | 5401 | var cerr *glib.Error | |
| 5450 | 5402 | ||
| 5451 | 5403 | cret := XGFileReplaceContentsFinish(x.GoPointer(), ResVar.GoPointer(), NewEtagVar, &cerr) | |
| 5452 | - | ||
| 5453 | 5404 | if cerr == nil { | |
| 5454 | 5405 | return cret, nil | |
| 5455 | 5406 | } | |
| @@ -5491,12 +5442,11 @@ func (x *FileBase) ReplaceReadwrite(EtagVar *string, MakeBackupVar bool, FlagsVa | |||
| 5491 | 5442 | var cls *FileIOStream | |
| 5492 | 5443 | var cerr *glib.Error | |
| 5493 | 5444 | ||
| 5494 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5445 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5446 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5495 | 5447 | ||
| 5496 | 5448 | cret := XGFileReplaceReadwrite(x.GoPointer(), EtagVarPtr, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5497 | 5449 | ||
| 5498 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5499 | - | ||
| 5500 | 5450 | if cret == 0 { | |
| 5501 | 5451 | return nil, cerr | |
| 5502 | 5452 | } | |
| @@ -5521,12 +5471,11 @@ func (x *FileBase) ReplaceReadwrite(EtagVar *string, MakeBackupVar bool, FlagsVa | |||
| 5521 | 5471 | // the result of the operation. | |
| 5522 | 5472 | func (x *FileBase) ReplaceReadwriteAsync(EtagVar *string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5523 | 5473 | ||
| 5524 | - | EtagVarPtr, EtagVarBytes := core.NullableStringToPtr(EtagVar) | |
| 5474 | + | EtagVarPtr := core.GStrdupNullable(EtagVar) | |
| 5475 | + | defer core.GFreeNullable(EtagVarPtr) | |
| 5525 | 5476 | ||
| 5526 | 5477 | XGFileReplaceReadwriteAsync(x.GoPointer(), EtagVarPtr, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5527 | 5478 | ||
| 5528 | - | runtime.KeepAlive(EtagVarBytes) | |
| 5529 | - | ||
| 5530 | 5479 | } | |
| 5531 | 5480 | ||
| 5532 | 5481 | // Finishes an asynchronous file replace operation started with | |
| @@ -5580,7 +5529,6 @@ func (x *FileBase) SetAttribute(AttributeVar string, TypeVar FileAttributeType, | |||
| 5580 | 5529 | var cerr *glib.Error | |
| 5581 | 5530 | ||
| 5582 | 5531 | cret := XGFileSetAttribute(x.GoPointer(), AttributeVar, TypeVar, ValuePVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5583 | - | ||
| 5584 | 5532 | if cerr == nil { | |
| 5585 | 5533 | return cret, nil | |
| 5586 | 5534 | } | |
| @@ -5599,7 +5547,6 @@ func (x *FileBase) SetAttributeByteString(AttributeVar string, ValueVar string, | |||
| 5599 | 5547 | var cerr *glib.Error | |
| 5600 | 5548 | ||
| 5601 | 5549 | cret := XGFileSetAttributeByteString(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5602 | - | ||
| 5603 | 5550 | if cerr == nil { | |
| 5604 | 5551 | return cret, nil | |
| 5605 | 5552 | } | |
| @@ -5617,7 +5564,6 @@ func (x *FileBase) SetAttributeInt32(AttributeVar string, ValueVar int32, FlagsV | |||
| 5617 | 5564 | var cerr *glib.Error | |
| 5618 | 5565 | ||
| 5619 | 5566 | cret := XGFileSetAttributeInt32(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5620 | - | ||
| 5621 | 5567 | if cerr == nil { | |
| 5622 | 5568 | return cret, nil | |
| 5623 | 5569 | } | |
| @@ -5635,7 +5581,6 @@ func (x *FileBase) SetAttributeInt64(AttributeVar string, ValueVar int64, FlagsV | |||
| 5635 | 5581 | var cerr *glib.Error | |
| 5636 | 5582 | ||
| 5637 | 5583 | cret := XGFileSetAttributeInt64(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5638 | - | ||
| 5639 | 5584 | if cerr == nil { | |
| 5640 | 5585 | return cret, nil | |
| 5641 | 5586 | } | |
| @@ -5653,7 +5598,6 @@ func (x *FileBase) SetAttributeString(AttributeVar string, ValueVar string, Flag | |||
| 5653 | 5598 | var cerr *glib.Error | |
| 5654 | 5599 | ||
| 5655 | 5600 | cret := XGFileSetAttributeString(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5656 | - | ||
| 5657 | 5601 | if cerr == nil { | |
| 5658 | 5602 | return cret, nil | |
| 5659 | 5603 | } | |
| @@ -5671,7 +5615,6 @@ func (x *FileBase) SetAttributeUint32(AttributeVar string, ValueVar uint32, Flag | |||
| 5671 | 5615 | var cerr *glib.Error | |
| 5672 | 5616 | ||
| 5673 | 5617 | cret := XGFileSetAttributeUint32(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5674 | - | ||
| 5675 | 5618 | if cerr == nil { | |
| 5676 | 5619 | return cret, nil | |
| 5677 | 5620 | } | |
| @@ -5689,7 +5632,6 @@ func (x *FileBase) SetAttributeUint64(AttributeVar string, ValueVar uint64, Flag | |||
| 5689 | 5632 | var cerr *glib.Error | |
| 5690 | 5633 | ||
| 5691 | 5634 | cret := XGFileSetAttributeUint64(x.GoPointer(), AttributeVar, ValueVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5692 | - | ||
| 5693 | 5635 | if cerr == nil { | |
| 5694 | 5636 | return cret, nil | |
| 5695 | 5637 | } | |
| @@ -5716,7 +5658,6 @@ func (x *FileBase) SetAttributesFinish(ResultVar AsyncResult, InfoVar **FileInfo | |||
| 5716 | 5658 | var cerr *glib.Error | |
| 5717 | 5659 | ||
| 5718 | 5660 | cret := XGFileSetAttributesFinish(x.GoPointer(), ResultVar.GoPointer(), InfoVar, &cerr) | |
| 5719 | - | ||
| 5720 | 5661 | if cerr == nil { | |
| 5721 | 5662 | return cret, nil | |
| 5722 | 5663 | } | |
| @@ -5740,7 +5681,6 @@ func (x *FileBase) SetAttributesFromInfo(InfoVar *FileInfo, FlagsVar FileQueryIn | |||
| 5740 | 5681 | var cerr *glib.Error | |
| 5741 | 5682 | ||
| 5742 | 5683 | cret := XGFileSetAttributesFromInfo(x.GoPointer(), InfoVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 5743 | - | ||
| 5744 | 5684 | if cerr == nil { | |
| 5745 | 5685 | return cret, nil | |
| 5746 | 5686 | } | |
| @@ -5840,7 +5780,6 @@ func (x *FileBase) StartMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 5840 | 5780 | var cerr *glib.Error | |
| 5841 | 5781 | ||
| 5842 | 5782 | cret := XGFileStartMountableFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 5843 | - | ||
| 5844 | 5783 | if cerr == nil { | |
| 5845 | 5784 | return cret, nil | |
| 5846 | 5785 | } | |
| @@ -5871,7 +5810,6 @@ func (x *FileBase) StopMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 5871 | 5810 | var cerr *glib.Error | |
| 5872 | 5811 | ||
| 5873 | 5812 | cret := XGFileStopMountableFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 5874 | - | ||
| 5875 | 5813 | if cerr == nil { | |
| 5876 | 5814 | return cret, nil | |
| 5877 | 5815 | } | |
| @@ -5886,7 +5824,6 @@ func (x *FileBase) StopMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 5886 | 5824 | func (x *FileBase) SupportsThreadContexts() bool { | |
| 5887 | 5825 | ||
| 5888 | 5826 | cret := XGFileSupportsThreadContexts(x.GoPointer()) | |
| 5889 | - | ||
| 5890 | 5827 | return cret | |
| 5891 | 5828 | } | |
| 5892 | 5829 | ||
| @@ -5907,7 +5844,6 @@ func (x *FileBase) Trash(CancellableVar *Cancellable) (bool, error) { | |||
| 5907 | 5844 | var cerr *glib.Error | |
| 5908 | 5845 | ||
| 5909 | 5846 | cret := XGFileTrash(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 5910 | - | ||
| 5911 | 5847 | if cerr == nil { | |
| 5912 | 5848 | return cret, nil | |
| 5913 | 5849 | } | |
| @@ -5928,7 +5864,6 @@ func (x *FileBase) TrashFinish(ResultVar AsyncResult) (bool, error) { | |||
| 5928 | 5864 | var cerr *glib.Error | |
| 5929 | 5865 | ||
| 5930 | 5866 | cret := XGFileTrashFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 5931 | - | ||
| 5932 | 5867 | if cerr == nil { | |
| 5933 | 5868 | return cret, nil | |
| 5934 | 5869 | } | |
| @@ -5959,7 +5894,6 @@ func (x *FileBase) UnmountMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 5959 | 5894 | var cerr *glib.Error | |
| 5960 | 5895 | ||
| 5961 | 5896 | cret := XGFileUnmountMountableFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 5962 | - | ||
| 5963 | 5897 | if cerr == nil { | |
| 5964 | 5898 | return cret, nil | |
| 5965 | 5899 | } | |
| @@ -5991,7 +5925,6 @@ func (x *FileBase) UnmountMountableWithOperationFinish(ResultVar AsyncResult) (b | |||
| 5991 | 5925 | var cerr *glib.Error | |
| 5992 | 5926 | ||
| 5993 | 5927 | cret := XGFileUnmountMountableWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 5994 | - | ||
| 5995 | 5928 | if cerr == nil { | |
| 5996 | 5929 | return cret, nil | |
| 5997 | 5930 | } | |
| @@ -6259,12 +6192,11 @@ func FileNewTmp(TmplVar *string, IostreamVar **FileIOStream) (*FileBase, error) | |||
| 6259 | 6192 | var cls *FileBase | |
| 6260 | 6193 | var cerr *glib.Error | |
| 6261 | 6194 | ||
| 6262 | - | TmplVarPtr, TmplVarBytes := core.NullableStringToPtr(TmplVar) | |
| 6195 | + | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| 6196 | + | defer core.GFreeNullable(TmplVarPtr) | |
| 6263 | 6197 | ||
| 6264 | 6198 | cret := xFileNewTmp(TmplVarPtr, IostreamVar, &cerr) | |
| 6265 | 6199 | ||
| 6266 | - | runtime.KeepAlive(TmplVarBytes) | |
| 6267 | - | ||
| 6268 | 6200 | if cret == 0 { | |
| 6269 | 6201 | return nil, cerr | |
| 6270 | 6202 | } | |
| @@ -6303,12 +6235,11 @@ func FileNewTmpAsync(TmplVar *string, IoPriorityVar int, CancellableVar *Cancell | |||
| 6303 | 6235 | } | |
| 6304 | 6236 | } | |
| 6305 | 6237 | ||
| 6306 | - | TmplVarPtr, TmplVarBytes := core.NullableStringToPtr(TmplVar) | |
| 6238 | + | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| 6239 | + | defer core.GFreeNullable(TmplVarPtr) | |
| 6307 | 6240 | ||
| 6308 | 6241 | xFileNewTmpAsync(TmplVarPtr, IoPriorityVar, CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 6309 | 6242 | ||
| 6310 | - | runtime.KeepAlive(TmplVarBytes) | |
| 6311 | - | ||
| 6312 | 6243 | } | |
| 6313 | 6244 | ||
| 6314 | 6245 | var xFileNewTmpDirAsync func(uintptr, int, uintptr, uintptr, uintptr) | |
| @@ -6336,12 +6267,11 @@ func FileNewTmpDirAsync(TmplVar *string, IoPriorityVar int, CancellableVar *Canc | |||
| 6336 | 6267 | } | |
| 6337 | 6268 | } | |
| 6338 | 6269 | ||
| 6339 | - | TmplVarPtr, TmplVarBytes := core.NullableStringToPtr(TmplVar) | |
| 6270 | + | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| 6271 | + | defer core.GFreeNullable(TmplVarPtr) | |
| 6340 | 6272 | ||
| 6341 | 6273 | xFileNewTmpDirAsync(TmplVarPtr, IoPriorityVar, CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 6342 | 6274 | ||
| 6343 | - | runtime.KeepAlive(TmplVarBytes) | |
| 6344 | - | ||
| 6345 | 6275 | } | |
| 6346 | 6276 | ||
| 6347 | 6277 | var xFileNewTmpDirFinish func(uintptr, **glib.Error) uintptr | |
M v4/gio/gfileattribute.go +0 -4
| @@ -51,7 +51,6 @@ var xNewFileAttributeInfoList func() *FileAttributeInfoList | |||
| 51 | 51 | func NewFileAttributeInfoList() *FileAttributeInfoList { | |
| 52 | 52 | ||
| 53 | 53 | cret := xNewFileAttributeInfoList() | |
| 54 | - | ||
| 55 | 54 | return cret | |
| 56 | 55 | } | |
| 57 | 56 | ||
| @@ -71,7 +70,6 @@ var xFileAttributeInfoListDup func(uintptr) *FileAttributeInfoList | |||
| 71 | 70 | func (x *FileAttributeInfoList) Dup() *FileAttributeInfoList { | |
| 72 | 71 | ||
| 73 | 72 | cret := xFileAttributeInfoListDup(x.GoPointer()) | |
| 74 | - | ||
| 75 | 73 | return cret | |
| 76 | 74 | } | |
| 77 | 75 | ||
| @@ -81,7 +79,6 @@ var xFileAttributeInfoListLookup func(uintptr, string) *FileAttributeInfo | |||
| 81 | 79 | func (x *FileAttributeInfoList) Lookup(NameVar string) *FileAttributeInfo { | |
| 82 | 80 | ||
| 83 | 81 | cret := xFileAttributeInfoListLookup(x.GoPointer(), NameVar) | |
| 84 | - | ||
| 85 | 82 | return cret | |
| 86 | 83 | } | |
| 87 | 84 | ||
| @@ -91,7 +88,6 @@ var xFileAttributeInfoListRef func(uintptr) *FileAttributeInfoList | |||
| 91 | 88 | func (x *FileAttributeInfoList) Ref() *FileAttributeInfoList { | |
| 92 | 89 | ||
| 93 | 90 | cret := xFileAttributeInfoListRef(x.GoPointer()) | |
| 94 | - | ||
| 95 | 91 | return cret | |
| 96 | 92 | } | |
| 97 | 93 | ||
M v4/gio/gfileenumerator.go +0 -6
| @@ -419,7 +419,6 @@ func (x *FileEnumerator) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 419 | 419 | var cerr *glib.Error | |
| 420 | 420 | ||
| 421 | 421 | cret := xFileEnumeratorClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 422 | - | ||
| 423 | 422 | if cerr == nil { | |
| 424 | 423 | return cret, nil | |
| 425 | 424 | } | |
| @@ -472,7 +471,6 @@ func (x *FileEnumerator) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 472 | 471 | var cerr *glib.Error | |
| 473 | 472 | ||
| 474 | 473 | cret := xFileEnumeratorCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 475 | - | ||
| 476 | 474 | if cerr == nil { | |
| 477 | 475 | return cret, nil | |
| 478 | 476 | } | |
| @@ -533,7 +531,6 @@ var xFileEnumeratorHasPending func(uintptr) bool | |||
| 533 | 531 | func (x *FileEnumerator) HasPending() bool { | |
| 534 | 532 | ||
| 535 | 533 | cret := xFileEnumeratorHasPending(x.GoPointer()) | |
| 536 | - | ||
| 537 | 534 | return cret | |
| 538 | 535 | } | |
| 539 | 536 | ||
| @@ -543,7 +540,6 @@ var xFileEnumeratorIsClosed func(uintptr) bool | |||
| 543 | 540 | func (x *FileEnumerator) IsClosed() bool { | |
| 544 | 541 | ||
| 545 | 542 | cret := xFileEnumeratorIsClosed(x.GoPointer()) | |
| 546 | - | ||
| 547 | 543 | return cret | |
| 548 | 544 | } | |
| 549 | 545 | ||
| @@ -594,7 +590,6 @@ func (x *FileEnumerator) Iterate(OutInfoVar **FileInfo, OutChildVar **File, Canc | |||
| 594 | 590 | var cerr *glib.Error | |
| 595 | 591 | ||
| 596 | 592 | cret := xFileEnumeratorIterate(x.GoPointer(), OutInfoVar, OutChildVar, CancellableVar.GoPointer(), &cerr) | |
| 597 | - | ||
| 598 | 593 | if cerr == nil { | |
| 599 | 594 | return cret, nil | |
| 600 | 595 | } | |
| @@ -734,7 +729,6 @@ func (x *FileEnumerator) NextFilesFinish(ResultVar AsyncResult) (*glib.List, err | |||
| 734 | 729 | var cerr *glib.Error | |
| 735 | 730 | ||
| 736 | 731 | cret := xFileEnumeratorNextFilesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 737 | - | ||
| 738 | 732 | if cerr == nil { | |
| 739 | 733 | return cret, nil | |
| 740 | 734 | } | |
M v4/gio/gfileicon.go +0 -4
| @@ -88,7 +88,6 @@ func (c *FileIcon) SetGoPointer(ptr uintptr) { | |||
| 88 | 88 | func (x *FileIcon) Equal(Icon2Var Icon) bool { | |
| 89 | 89 | ||
| 90 | 90 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 91 | - | ||
| 92 | 91 | return cret | |
| 93 | 92 | } | |
| 94 | 93 | ||
| @@ -96,7 +95,6 @@ func (x *FileIcon) Equal(Icon2Var Icon) bool { | |||
| 96 | 95 | func (x *FileIcon) Hash() uint { | |
| 97 | 96 | ||
| 98 | 97 | cret := XGIconHash(x.GoPointer()) | |
| 99 | - | ||
| 100 | 98 | return cret | |
| 101 | 99 | } | |
| 102 | 100 | ||
| @@ -108,7 +106,6 @@ func (x *FileIcon) Hash() uint { | |||
| 108 | 106 | func (x *FileIcon) Serialize() *glib.Variant { | |
| 109 | 107 | ||
| 110 | 108 | cret := XGIconSerialize(x.GoPointer()) | |
| 111 | - | ||
| 112 | 109 | return cret | |
| 113 | 110 | } | |
| 114 | 111 | ||
| @@ -131,7 +128,6 @@ func (x *FileIcon) Serialize() *glib.Variant { | |||
| 131 | 128 | func (x *FileIcon) ToString() string { | |
| 132 | 129 | ||
| 133 | 130 | cret := XGIconToString(x.GoPointer()) | |
| 134 | - | ||
| 135 | 131 | return cret | |
| 136 | 132 | } | |
| 137 | 133 | ||
M v4/gio/gfileinfo.go +2 -37
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -807,7 +806,6 @@ var xFileInfoGetAccessDateTime func(uintptr) *glib.DateTime | |||
| 807 | 806 | func (x *FileInfo) GetAccessDateTime() *glib.DateTime { | |
| 808 | 807 | ||
| 809 | 808 | cret := xFileInfoGetAccessDateTime(x.GoPointer()) | |
| 810 | - | ||
| 811 | 809 | return cret | |
| 812 | 810 | } | |
| 813 | 811 | ||
| @@ -836,7 +834,6 @@ var xFileInfoGetAttributeAsString func(uintptr, string) string | |||
| 836 | 834 | func (x *FileInfo) GetAttributeAsString(AttributeVar string) string { | |
| 837 | 835 | ||
| 838 | 836 | cret := xFileInfoGetAttributeAsString(x.GoPointer(), AttributeVar) | |
| 839 | - | ||
| 840 | 837 | return cret | |
| 841 | 838 | } | |
| 842 | 839 | ||
| @@ -847,7 +844,6 @@ var xFileInfoGetAttributeBoolean func(uintptr, string) bool | |||
| 847 | 844 | func (x *FileInfo) GetAttributeBoolean(AttributeVar string) bool { | |
| 848 | 845 | ||
| 849 | 846 | cret := xFileInfoGetAttributeBoolean(x.GoPointer(), AttributeVar) | |
| 850 | - | ||
| 851 | 847 | return cret | |
| 852 | 848 | } | |
| 853 | 849 | ||
| @@ -858,7 +854,6 @@ var xFileInfoGetAttributeByteString func(uintptr, string) string | |||
| 858 | 854 | func (x *FileInfo) GetAttributeByteString(AttributeVar string) string { | |
| 859 | 855 | ||
| 860 | 856 | cret := xFileInfoGetAttributeByteString(x.GoPointer(), AttributeVar) | |
| 861 | - | ||
| 862 | 857 | return cret | |
| 863 | 858 | } | |
| 864 | 859 | ||
| @@ -868,7 +863,6 @@ var xFileInfoGetAttributeData func(uintptr, string, *FileAttributeType, *uintptr | |||
| 868 | 863 | func (x *FileInfo) GetAttributeData(AttributeVar string, TypeVar *FileAttributeType, ValuePpVar *uintptr, StatusVar *FileAttributeStatus) bool { | |
| 869 | 864 | ||
| 870 | 865 | cret := xFileInfoGetAttributeData(x.GoPointer(), AttributeVar, TypeVar, ValuePpVar, StatusVar) | |
| 871 | - | ||
| 872 | 866 | return cret | |
| 873 | 867 | } | |
| 874 | 868 | ||
| @@ -883,7 +877,6 @@ var xFileInfoGetAttributeFilePath func(uintptr, string) string | |||
| 883 | 877 | func (x *FileInfo) GetAttributeFilePath(AttributeVar string) string { | |
| 884 | 878 | ||
| 885 | 879 | cret := xFileInfoGetAttributeFilePath(x.GoPointer(), AttributeVar) | |
| 886 | - | ||
| 887 | 880 | return cret | |
| 888 | 881 | } | |
| 889 | 882 | ||
| @@ -895,7 +888,6 @@ var xFileInfoGetAttributeInt32 func(uintptr, string) int32 | |||
| 895 | 888 | func (x *FileInfo) GetAttributeInt32(AttributeVar string) int32 { | |
| 896 | 889 | ||
| 897 | 890 | cret := xFileInfoGetAttributeInt32(x.GoPointer(), AttributeVar) | |
| 898 | - | ||
| 899 | 891 | return cret | |
| 900 | 892 | } | |
| 901 | 893 | ||
| @@ -907,7 +899,6 @@ var xFileInfoGetAttributeInt64 func(uintptr, string) int64 | |||
| 907 | 899 | func (x *FileInfo) GetAttributeInt64(AttributeVar string) int64 { | |
| 908 | 900 | ||
| 909 | 901 | cret := xFileInfoGetAttributeInt64(x.GoPointer(), AttributeVar) | |
| 910 | - | ||
| 911 | 902 | return cret | |
| 912 | 903 | } | |
| 913 | 904 | ||
| @@ -935,7 +926,6 @@ var xFileInfoGetAttributeStatus func(uintptr, string) FileAttributeStatus | |||
| 935 | 926 | func (x *FileInfo) GetAttributeStatus(AttributeVar string) FileAttributeStatus { | |
| 936 | 927 | ||
| 937 | 928 | cret := xFileInfoGetAttributeStatus(x.GoPointer(), AttributeVar) | |
| 938 | - | ||
| 939 | 929 | return cret | |
| 940 | 930 | } | |
| 941 | 931 | ||
| @@ -946,7 +936,6 @@ var xFileInfoGetAttributeString func(uintptr, string) string | |||
| 946 | 936 | func (x *FileInfo) GetAttributeString(AttributeVar string) string { | |
| 947 | 937 | ||
| 948 | 938 | cret := xFileInfoGetAttributeString(x.GoPointer(), AttributeVar) | |
| 949 | - | ||
| 950 | 939 | return cret | |
| 951 | 940 | } | |
| 952 | 941 | ||
| @@ -957,7 +946,6 @@ var xFileInfoGetAttributeStringv func(uintptr, string) []string | |||
| 957 | 946 | func (x *FileInfo) GetAttributeStringv(AttributeVar string) []string { | |
| 958 | 947 | ||
| 959 | 948 | cret := xFileInfoGetAttributeStringv(x.GoPointer(), AttributeVar) | |
| 960 | - | ||
| 961 | 949 | return cret | |
| 962 | 950 | } | |
| 963 | 951 | ||
| @@ -967,7 +955,6 @@ var xFileInfoGetAttributeType func(uintptr, string) FileAttributeType | |||
| 967 | 955 | func (x *FileInfo) GetAttributeType(AttributeVar string) FileAttributeType { | |
| 968 | 956 | ||
| 969 | 957 | cret := xFileInfoGetAttributeType(x.GoPointer(), AttributeVar) | |
| 970 | - | ||
| 971 | 958 | return cret | |
| 972 | 959 | } | |
| 973 | 960 | ||
| @@ -979,7 +966,6 @@ var xFileInfoGetAttributeUint32 func(uintptr, string) uint32 | |||
| 979 | 966 | func (x *FileInfo) GetAttributeUint32(AttributeVar string) uint32 { | |
| 980 | 967 | ||
| 981 | 968 | cret := xFileInfoGetAttributeUint32(x.GoPointer(), AttributeVar) | |
| 982 | - | ||
| 983 | 969 | return cret | |
| 984 | 970 | } | |
| 985 | 971 | ||
| @@ -991,7 +977,6 @@ var xFileInfoGetAttributeUint64 func(uintptr, string) uint64 | |||
| 991 | 977 | func (x *FileInfo) GetAttributeUint64(AttributeVar string) uint64 { | |
| 992 | 978 | ||
| 993 | 979 | cret := xFileInfoGetAttributeUint64(x.GoPointer(), AttributeVar) | |
| 994 | - | ||
| 995 | 980 | return cret | |
| 996 | 981 | } | |
| 997 | 982 | ||
| @@ -1004,7 +989,6 @@ var xFileInfoGetContentType func(uintptr) string | |||
| 1004 | 989 | func (x *FileInfo) GetContentType() string { | |
| 1005 | 990 | ||
| 1006 | 991 | cret := xFileInfoGetContentType(x.GoPointer()) | |
| 1007 | - | ||
| 1008 | 992 | return cret | |
| 1009 | 993 | } | |
| 1010 | 994 | ||
| @@ -1023,7 +1007,6 @@ var xFileInfoGetCreationDateTime func(uintptr) *glib.DateTime | |||
| 1023 | 1007 | func (x *FileInfo) GetCreationDateTime() *glib.DateTime { | |
| 1024 | 1008 | ||
| 1025 | 1009 | cret := xFileInfoGetCreationDateTime(x.GoPointer()) | |
| 1026 | - | ||
| 1027 | 1010 | return cret | |
| 1028 | 1011 | } | |
| 1029 | 1012 | ||
| @@ -1035,7 +1018,6 @@ var xFileInfoGetDeletionDate func(uintptr) *glib.DateTime | |||
| 1035 | 1018 | func (x *FileInfo) GetDeletionDate() *glib.DateTime { | |
| 1036 | 1019 | ||
| 1037 | 1020 | cret := xFileInfoGetDeletionDate(x.GoPointer()) | |
| 1038 | - | ||
| 1039 | 1021 | return cret | |
| 1040 | 1022 | } | |
| 1041 | 1023 | ||
| @@ -1048,7 +1030,6 @@ var xFileInfoGetDisplayName func(uintptr) string | |||
| 1048 | 1030 | func (x *FileInfo) GetDisplayName() string { | |
| 1049 | 1031 | ||
| 1050 | 1032 | cret := xFileInfoGetDisplayName(x.GoPointer()) | |
| 1051 | - | ||
| 1052 | 1033 | return cret | |
| 1053 | 1034 | } | |
| 1054 | 1035 | ||
| @@ -1061,7 +1042,6 @@ var xFileInfoGetEditName func(uintptr) string | |||
| 1061 | 1042 | func (x *FileInfo) GetEditName() string { | |
| 1062 | 1043 | ||
| 1063 | 1044 | cret := xFileInfoGetEditName(x.GoPointer()) | |
| 1064 | - | ||
| 1065 | 1045 | return cret | |
| 1066 | 1046 | } | |
| 1067 | 1047 | ||
| @@ -1075,7 +1055,6 @@ var xFileInfoGetEtag func(uintptr) string | |||
| 1075 | 1055 | func (x *FileInfo) GetEtag() string { | |
| 1076 | 1056 | ||
| 1077 | 1057 | cret := xFileInfoGetEtag(x.GoPointer()) | |
| 1078 | - | ||
| 1079 | 1058 | return cret | |
| 1080 | 1059 | } | |
| 1081 | 1060 | ||
| @@ -1089,7 +1068,6 @@ var xFileInfoGetFileType func(uintptr) FileType | |||
| 1089 | 1068 | func (x *FileInfo) GetFileType() FileType { | |
| 1090 | 1069 | ||
| 1091 | 1070 | cret := xFileInfoGetFileType(x.GoPointer()) | |
| 1092 | - | ||
| 1093 | 1071 | return cret | |
| 1094 | 1072 | } | |
| 1095 | 1073 | ||
| @@ -1122,7 +1100,6 @@ var xFileInfoGetIsBackup func(uintptr) bool | |||
| 1122 | 1100 | func (x *FileInfo) GetIsBackup() bool { | |
| 1123 | 1101 | ||
| 1124 | 1102 | cret := xFileInfoGetIsBackup(x.GoPointer()) | |
| 1125 | - | ||
| 1126 | 1103 | return cret | |
| 1127 | 1104 | } | |
| 1128 | 1105 | ||
| @@ -1135,7 +1112,6 @@ var xFileInfoGetIsHidden func(uintptr) bool | |||
| 1135 | 1112 | func (x *FileInfo) GetIsHidden() bool { | |
| 1136 | 1113 | ||
| 1137 | 1114 | cret := xFileInfoGetIsHidden(x.GoPointer()) | |
| 1138 | - | ||
| 1139 | 1115 | return cret | |
| 1140 | 1116 | } | |
| 1141 | 1117 | ||
| @@ -1148,7 +1124,6 @@ var xFileInfoGetIsSymlink func(uintptr) bool | |||
| 1148 | 1124 | func (x *FileInfo) GetIsSymlink() bool { | |
| 1149 | 1125 | ||
| 1150 | 1126 | cret := xFileInfoGetIsSymlink(x.GoPointer()) | |
| 1151 | - | ||
| 1152 | 1127 | return cret | |
| 1153 | 1128 | } | |
| 1154 | 1129 | ||
| @@ -1167,7 +1142,6 @@ var xFileInfoGetModificationDateTime func(uintptr) *glib.DateTime | |||
| 1167 | 1142 | func (x *FileInfo) GetModificationDateTime() *glib.DateTime { | |
| 1168 | 1143 | ||
| 1169 | 1144 | cret := xFileInfoGetModificationDateTime(x.GoPointer()) | |
| 1170 | - | ||
| 1171 | 1145 | return cret | |
| 1172 | 1146 | } | |
| 1173 | 1147 | ||
| @@ -1194,7 +1168,6 @@ var xFileInfoGetName func(uintptr) string | |||
| 1194 | 1168 | func (x *FileInfo) GetName() string { | |
| 1195 | 1169 | ||
| 1196 | 1170 | cret := xFileInfoGetName(x.GoPointer()) | |
| 1197 | - | ||
| 1198 | 1171 | return cret | |
| 1199 | 1172 | } | |
| 1200 | 1173 | ||
| @@ -1209,7 +1182,6 @@ var xFileInfoGetSize func(uintptr) int64 | |||
| 1209 | 1182 | func (x *FileInfo) GetSize() int64 { | |
| 1210 | 1183 | ||
| 1211 | 1184 | cret := xFileInfoGetSize(x.GoPointer()) | |
| 1212 | - | ||
| 1213 | 1185 | return cret | |
| 1214 | 1186 | } | |
| 1215 | 1187 | ||
| @@ -1223,7 +1195,6 @@ var xFileInfoGetSortOrder func(uintptr) int32 | |||
| 1223 | 1195 | func (x *FileInfo) GetSortOrder() int32 { | |
| 1224 | 1196 | ||
| 1225 | 1197 | cret := xFileInfoGetSortOrder(x.GoPointer()) | |
| 1226 | - | ||
| 1227 | 1198 | return cret | |
| 1228 | 1199 | } | |
| 1229 | 1200 | ||
| @@ -1256,7 +1227,6 @@ var xFileInfoGetSymlinkTarget func(uintptr) string | |||
| 1256 | 1227 | func (x *FileInfo) GetSymlinkTarget() string { | |
| 1257 | 1228 | ||
| 1258 | 1229 | cret := xFileInfoGetSymlinkTarget(x.GoPointer()) | |
| 1259 | - | ||
| 1260 | 1230 | return cret | |
| 1261 | 1231 | } | |
| 1262 | 1232 | ||
| @@ -1266,7 +1236,6 @@ var xFileInfoHasAttribute func(uintptr, string) bool | |||
| 1266 | 1236 | func (x *FileInfo) HasAttribute(AttributeVar string) bool { | |
| 1267 | 1237 | ||
| 1268 | 1238 | cret := xFileInfoHasAttribute(x.GoPointer(), AttributeVar) | |
| 1269 | - | ||
| 1270 | 1239 | return cret | |
| 1271 | 1240 | } | |
| 1272 | 1241 | ||
| @@ -1277,7 +1246,6 @@ var xFileInfoHasNamespace func(uintptr, string) bool | |||
| 1277 | 1246 | func (x *FileInfo) HasNamespace(NameSpaceVar string) bool { | |
| 1278 | 1247 | ||
| 1279 | 1248 | cret := xFileInfoHasNamespace(x.GoPointer(), NameSpaceVar) | |
| 1280 | - | ||
| 1281 | 1249 | return cret | |
| 1282 | 1250 | } | |
| 1283 | 1251 | ||
| @@ -1286,12 +1254,10 @@ var xFileInfoListAttributes func(uintptr, uintptr) []string | |||
| 1286 | 1254 | // Lists the file info structure's attributes. | |
| 1287 | 1255 | func (x *FileInfo) ListAttributes(NameSpaceVar *string) []string { | |
| 1288 | 1256 | ||
| 1289 | - | NameSpaceVarPtr, NameSpaceVarBytes := core.NullableStringToPtr(NameSpaceVar) | |
| 1257 | + | NameSpaceVarPtr := core.GStrdupNullable(NameSpaceVar) | |
| 1258 | + | defer core.GFreeNullable(NameSpaceVarPtr) | |
| 1290 | 1259 | ||
| 1291 | 1260 | cret := xFileInfoListAttributes(x.GoPointer(), NameSpaceVarPtr) | |
| 1292 | - | ||
| 1293 | - | runtime.KeepAlive(NameSpaceVarBytes) | |
| 1294 | - | ||
| 1295 | 1261 | return cret | |
| 1296 | 1262 | } | |
| 1297 | 1263 | ||
| @@ -1410,7 +1376,6 @@ var xFileInfoSetAttributeStatus func(uintptr, string, FileAttributeStatus) bool | |||
| 1410 | 1376 | func (x *FileInfo) SetAttributeStatus(AttributeVar string, StatusVar FileAttributeStatus) bool { | |
| 1411 | 1377 | ||
| 1412 | 1378 | cret := xFileInfoSetAttributeStatus(x.GoPointer(), AttributeVar, StatusVar) | |
| 1413 | - | ||
| 1414 | 1379 | return cret | |
| 1415 | 1380 | } | |
| 1416 | 1381 | ||
M v4/gio/gfileinputstream.go +0 -5
| @@ -444,7 +444,6 @@ func (c *FileInputStream) SetGoPointer(ptr uintptr) { | |||
| 444 | 444 | func (x *FileInputStream) CanSeek() bool { | |
| 445 | 445 | ||
| 446 | 446 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 447 | - | ||
| 448 | 447 | return cret | |
| 449 | 448 | } | |
| 450 | 449 | ||
| @@ -453,7 +452,6 @@ func (x *FileInputStream) CanSeek() bool { | |||
| 453 | 452 | func (x *FileInputStream) CanTruncate() bool { | |
| 454 | 453 | ||
| 455 | 454 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 456 | - | ||
| 457 | 455 | return cret | |
| 458 | 456 | } | |
| 459 | 457 | ||
| @@ -475,7 +473,6 @@ func (x *FileInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancellab | |||
| 475 | 473 | var cerr *glib.Error | |
| 476 | 474 | ||
| 477 | 475 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 478 | - | ||
| 479 | 476 | if cerr == nil { | |
| 480 | 477 | return cret, nil | |
| 481 | 478 | } | |
| @@ -487,7 +484,6 @@ func (x *FileInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancellab | |||
| 487 | 484 | func (x *FileInputStream) Tell() int64 { | |
| 488 | 485 | ||
| 489 | 486 | cret := XGSeekableTell(x.GoPointer()) | |
| 490 | - | ||
| 491 | 487 | return cret | |
| 492 | 488 | } | |
| 493 | 489 | ||
| @@ -504,7 +500,6 @@ func (x *FileInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 504 | 500 | var cerr *glib.Error | |
| 505 | 501 | ||
| 506 | 502 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 507 | - | ||
| 508 | 503 | if cerr == nil { | |
| 509 | 504 | return cret, nil | |
| 510 | 505 | } | |
M v4/gio/gfileiostream.go +0 -6
| @@ -442,7 +442,6 @@ var xFileIOStreamGetEtag func(uintptr) string | |||
| 442 | 442 | func (x *FileIOStream) GetEtag() string { | |
| 443 | 443 | ||
| 444 | 444 | cret := xFileIOStreamGetEtag(x.GoPointer()) | |
| 445 | - | ||
| 446 | 445 | return cret | |
| 447 | 446 | } | |
| 448 | 447 | ||
| @@ -549,7 +548,6 @@ func (c *FileIOStream) SetGoPointer(ptr uintptr) { | |||
| 549 | 548 | func (x *FileIOStream) CanSeek() bool { | |
| 550 | 549 | ||
| 551 | 550 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 552 | - | ||
| 553 | 551 | return cret | |
| 554 | 552 | } | |
| 555 | 553 | ||
| @@ -558,7 +556,6 @@ func (x *FileIOStream) CanSeek() bool { | |||
| 558 | 556 | func (x *FileIOStream) CanTruncate() bool { | |
| 559 | 557 | ||
| 560 | 558 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 561 | - | ||
| 562 | 559 | return cret | |
| 563 | 560 | } | |
| 564 | 561 | ||
| @@ -580,7 +577,6 @@ func (x *FileIOStream) Seek(OffsetVar int64, TypeVar glib.SeekType, CancellableV | |||
| 580 | 577 | var cerr *glib.Error | |
| 581 | 578 | ||
| 582 | 579 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 583 | - | ||
| 584 | 580 | if cerr == nil { | |
| 585 | 581 | return cret, nil | |
| 586 | 582 | } | |
| @@ -592,7 +588,6 @@ func (x *FileIOStream) Seek(OffsetVar int64, TypeVar glib.SeekType, CancellableV | |||
| 592 | 588 | func (x *FileIOStream) Tell() int64 { | |
| 593 | 589 | ||
| 594 | 590 | cret := XGSeekableTell(x.GoPointer()) | |
| 595 | - | ||
| 596 | 591 | return cret | |
| 597 | 592 | } | |
| 598 | 593 | ||
| @@ -609,7 +604,6 @@ func (x *FileIOStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) (b | |||
| 609 | 604 | var cerr *glib.Error | |
| 610 | 605 | ||
| 611 | 606 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 612 | - | ||
| 613 | 607 | if cerr == nil { | |
| 614 | 608 | return cret, nil | |
| 615 | 609 | } | |
M v4/gio/gfilemonitor.go +0 -2
| @@ -240,7 +240,6 @@ var xFileMonitorCancel func(uintptr) bool | |||
| 240 | 240 | func (x *FileMonitor) Cancel() bool { | |
| 241 | 241 | ||
| 242 | 242 | cret := xFileMonitorCancel(x.GoPointer()) | |
| 243 | - | ||
| 244 | 243 | return cret | |
| 245 | 244 | } | |
| 246 | 245 | ||
| @@ -265,7 +264,6 @@ var xFileMonitorIsCancelled func(uintptr) bool | |||
| 265 | 264 | func (x *FileMonitor) IsCancelled() bool { | |
| 266 | 265 | ||
| 267 | 266 | cret := xFileMonitorIsCancelled(x.GoPointer()) | |
| 268 | - | ||
| 269 | 267 | return cret | |
| 270 | 268 | } | |
| 271 | 269 | ||
M v4/gio/gfilenamecompleter.go +0 -2
| @@ -166,7 +166,6 @@ var xFilenameCompleterGetCompletionSuffix func(uintptr, string) string | |||
| 166 | 166 | func (x *FilenameCompleter) GetCompletionSuffix(InitialTextVar string) string { | |
| 167 | 167 | ||
| 168 | 168 | cret := xFilenameCompleterGetCompletionSuffix(x.GoPointer(), InitialTextVar) | |
| 169 | - | ||
| 170 | 169 | return cret | |
| 171 | 170 | } | |
| 172 | 171 | ||
| @@ -176,7 +175,6 @@ var xFilenameCompleterGetCompletions func(uintptr, string) []string | |||
| 176 | 175 | func (x *FilenameCompleter) GetCompletions(InitialTextVar string) []string { | |
| 177 | 176 | ||
| 178 | 177 | cret := xFilenameCompleterGetCompletions(x.GoPointer(), InitialTextVar) | |
| 179 | - | ||
| 180 | 178 | return cret | |
| 181 | 179 | } | |
| 182 | 180 | ||
M v4/gio/gfileoutputstream.go +0 -6
| @@ -437,7 +437,6 @@ var xFileOutputStreamGetEtag func(uintptr) string | |||
| 437 | 437 | func (x *FileOutputStream) GetEtag() string { | |
| 438 | 438 | ||
| 439 | 439 | cret := xFileOutputStreamGetEtag(x.GoPointer()) | |
| 440 | - | ||
| 441 | 440 | return cret | |
| 442 | 441 | } | |
| 443 | 442 | ||
| @@ -544,7 +543,6 @@ func (c *FileOutputStream) SetGoPointer(ptr uintptr) { | |||
| 544 | 543 | func (x *FileOutputStream) CanSeek() bool { | |
| 545 | 544 | ||
| 546 | 545 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 547 | - | ||
| 548 | 546 | return cret | |
| 549 | 547 | } | |
| 550 | 548 | ||
| @@ -553,7 +551,6 @@ func (x *FileOutputStream) CanSeek() bool { | |||
| 553 | 551 | func (x *FileOutputStream) CanTruncate() bool { | |
| 554 | 552 | ||
| 555 | 553 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 556 | - | ||
| 557 | 554 | return cret | |
| 558 | 555 | } | |
| 559 | 556 | ||
| @@ -575,7 +572,6 @@ func (x *FileOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancella | |||
| 575 | 572 | var cerr *glib.Error | |
| 576 | 573 | ||
| 577 | 574 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 578 | - | ||
| 579 | 575 | if cerr == nil { | |
| 580 | 576 | return cret, nil | |
| 581 | 577 | } | |
| @@ -587,7 +583,6 @@ func (x *FileOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancella | |||
| 587 | 583 | func (x *FileOutputStream) Tell() int64 { | |
| 588 | 584 | ||
| 589 | 585 | cret := XGSeekableTell(x.GoPointer()) | |
| 590 | - | ||
| 591 | 586 | return cret | |
| 592 | 587 | } | |
| 593 | 588 | ||
| @@ -604,7 +599,6 @@ func (x *FileOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable | |||
| 604 | 599 | var cerr *glib.Error | |
| 605 | 600 | ||
| 606 | 601 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 607 | - | ||
| 608 | 602 | if cerr == nil { | |
| 609 | 603 | return cret, nil | |
| 610 | 604 | } | |
M v4/gio/gfilterinputstream.go +0 -1
| @@ -140,7 +140,6 @@ var xFilterInputStreamGetCloseBaseStream func(uintptr) bool | |||
| 140 | 140 | func (x *FilterInputStream) GetCloseBaseStream() bool { | |
| 141 | 141 | ||
| 142 | 142 | cret := xFilterInputStreamGetCloseBaseStream(x.GoPointer()) | |
| 143 | - | ||
| 144 | 143 | return cret | |
| 145 | 144 | } | |
| 146 | 145 | ||
M v4/gio/gfilteroutputstream.go +0 -1
| @@ -140,7 +140,6 @@ var xFilterOutputStreamGetCloseBaseStream func(uintptr) bool | |||
| 140 | 140 | func (x *FilterOutputStream) GetCloseBaseStream() bool { | |
| 141 | 141 | ||
| 142 | 142 | cret := xFilterOutputStreamGetCloseBaseStream(x.GoPointer()) | |
| 143 | - | ||
| 144 | 143 | return cret | |
| 145 | 144 | } | |
| 146 | 145 | ||
M v4/gio/gicon.go +0 -4
| @@ -241,7 +241,6 @@ func (x *IconBase) SetGoPointer(ptr uintptr) { | |||
| 241 | 241 | func (x *IconBase) Equal(Icon2Var Icon) bool { | |
| 242 | 242 | ||
| 243 | 243 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 244 | - | ||
| 245 | 244 | return cret | |
| 246 | 245 | } | |
| 247 | 246 | ||
| @@ -249,7 +248,6 @@ func (x *IconBase) Equal(Icon2Var Icon) bool { | |||
| 249 | 248 | func (x *IconBase) Hash() uint { | |
| 250 | 249 | ||
| 251 | 250 | cret := XGIconHash(x.GoPointer()) | |
| 252 | - | ||
| 253 | 251 | return cret | |
| 254 | 252 | } | |
| 255 | 253 | ||
| @@ -261,7 +259,6 @@ func (x *IconBase) Hash() uint { | |||
| 261 | 259 | func (x *IconBase) Serialize() *glib.Variant { | |
| 262 | 260 | ||
| 263 | 261 | cret := XGIconSerialize(x.GoPointer()) | |
| 264 | - | ||
| 265 | 262 | return cret | |
| 266 | 263 | } | |
| 267 | 264 | ||
| @@ -284,7 +281,6 @@ func (x *IconBase) Serialize() *glib.Variant { | |||
| 284 | 281 | func (x *IconBase) ToString() string { | |
| 285 | 282 | ||
| 286 | 283 | cret := XGIconToString(x.GoPointer()) | |
| 287 | - | ||
| 288 | 284 | return cret | |
| 289 | 285 | } | |
| 290 | 286 | ||
M v4/gio/ginetaddress.go +0 -17
| @@ -202,7 +202,6 @@ var xInetAddressEqual func(uintptr, uintptr) bool | |||
| 202 | 202 | func (x *InetAddress) Equal(OtherAddressVar *InetAddress) bool { | |
| 203 | 203 | ||
| 204 | 204 | cret := xInetAddressEqual(x.GoPointer(), OtherAddressVar.GoPointer()) | |
| 205 | - | ||
| 206 | 205 | return cret | |
| 207 | 206 | } | |
| 208 | 207 | ||
| @@ -212,7 +211,6 @@ var xInetAddressGetFamily func(uintptr) SocketFamily | |||
| 212 | 211 | func (x *InetAddress) GetFamily() SocketFamily { | |
| 213 | 212 | ||
| 214 | 213 | cret := xInetAddressGetFamily(x.GoPointer()) | |
| 215 | - | ||
| 216 | 214 | return cret | |
| 217 | 215 | } | |
| 218 | 216 | ||
| @@ -222,7 +220,6 @@ var xInetAddressGetFlowinfo func(uintptr) uint32 | |||
| 222 | 220 | func (x *InetAddress) GetFlowinfo() uint32 { | |
| 223 | 221 | ||
| 224 | 222 | cret := xInetAddressGetFlowinfo(x.GoPointer()) | |
| 225 | - | ||
| 226 | 223 | return cret | |
| 227 | 224 | } | |
| 228 | 225 | ||
| @@ -232,7 +229,6 @@ var xInetAddressGetIsAny func(uintptr) bool | |||
| 232 | 229 | func (x *InetAddress) GetIsAny() bool { | |
| 233 | 230 | ||
| 234 | 231 | cret := xInetAddressGetIsAny(x.GoPointer()) | |
| 235 | - | ||
| 236 | 232 | return cret | |
| 237 | 233 | } | |
| 238 | 234 | ||
| @@ -244,7 +240,6 @@ var xInetAddressGetIsLinkLocal func(uintptr) bool | |||
| 244 | 240 | func (x *InetAddress) GetIsLinkLocal() bool { | |
| 245 | 241 | ||
| 246 | 242 | cret := xInetAddressGetIsLinkLocal(x.GoPointer()) | |
| 247 | - | ||
| 248 | 243 | return cret | |
| 249 | 244 | } | |
| 250 | 245 | ||
| @@ -254,7 +249,6 @@ var xInetAddressGetIsLoopback func(uintptr) bool | |||
| 254 | 249 | func (x *InetAddress) GetIsLoopback() bool { | |
| 255 | 250 | ||
| 256 | 251 | cret := xInetAddressGetIsLoopback(x.GoPointer()) | |
| 257 | - | ||
| 258 | 252 | return cret | |
| 259 | 253 | } | |
| 260 | 254 | ||
| @@ -264,7 +258,6 @@ var xInetAddressGetIsMcGlobal func(uintptr) bool | |||
| 264 | 258 | func (x *InetAddress) GetIsMcGlobal() bool { | |
| 265 | 259 | ||
| 266 | 260 | cret := xInetAddressGetIsMcGlobal(x.GoPointer()) | |
| 267 | - | ||
| 268 | 261 | return cret | |
| 269 | 262 | } | |
| 270 | 263 | ||
| @@ -274,7 +267,6 @@ var xInetAddressGetIsMcLinkLocal func(uintptr) bool | |||
| 274 | 267 | func (x *InetAddress) GetIsMcLinkLocal() bool { | |
| 275 | 268 | ||
| 276 | 269 | cret := xInetAddressGetIsMcLinkLocal(x.GoPointer()) | |
| 277 | - | ||
| 278 | 270 | return cret | |
| 279 | 271 | } | |
| 280 | 272 | ||
| @@ -284,7 +276,6 @@ var xInetAddressGetIsMcNodeLocal func(uintptr) bool | |||
| 284 | 276 | func (x *InetAddress) GetIsMcNodeLocal() bool { | |
| 285 | 277 | ||
| 286 | 278 | cret := xInetAddressGetIsMcNodeLocal(x.GoPointer()) | |
| 287 | - | ||
| 288 | 279 | return cret | |
| 289 | 280 | } | |
| 290 | 281 | ||
| @@ -294,7 +285,6 @@ var xInetAddressGetIsMcOrgLocal func(uintptr) bool | |||
| 294 | 285 | func (x *InetAddress) GetIsMcOrgLocal() bool { | |
| 295 | 286 | ||
| 296 | 287 | cret := xInetAddressGetIsMcOrgLocal(x.GoPointer()) | |
| 297 | - | ||
| 298 | 288 | return cret | |
| 299 | 289 | } | |
| 300 | 290 | ||
| @@ -304,7 +294,6 @@ var xInetAddressGetIsMcSiteLocal func(uintptr) bool | |||
| 304 | 294 | func (x *InetAddress) GetIsMcSiteLocal() bool { | |
| 305 | 295 | ||
| 306 | 296 | cret := xInetAddressGetIsMcSiteLocal(x.GoPointer()) | |
| 307 | - | ||
| 308 | 297 | return cret | |
| 309 | 298 | } | |
| 310 | 299 | ||
| @@ -314,7 +303,6 @@ var xInetAddressGetIsMulticast func(uintptr) bool | |||
| 314 | 303 | func (x *InetAddress) GetIsMulticast() bool { | |
| 315 | 304 | ||
| 316 | 305 | cret := xInetAddressGetIsMulticast(x.GoPointer()) | |
| 317 | - | ||
| 318 | 306 | return cret | |
| 319 | 307 | } | |
| 320 | 308 | ||
| @@ -327,7 +315,6 @@ var xInetAddressGetIsSiteLocal func(uintptr) bool | |||
| 327 | 315 | func (x *InetAddress) GetIsSiteLocal() bool { | |
| 328 | 316 | ||
| 329 | 317 | cret := xInetAddressGetIsSiteLocal(x.GoPointer()) | |
| 330 | - | ||
| 331 | 318 | return cret | |
| 332 | 319 | } | |
| 333 | 320 | ||
| @@ -338,7 +325,6 @@ var xInetAddressGetNativeSize func(uintptr) uint | |||
| 338 | 325 | func (x *InetAddress) GetNativeSize() uint { | |
| 339 | 326 | ||
| 340 | 327 | cret := xInetAddressGetNativeSize(x.GoPointer()) | |
| 341 | - | ||
| 342 | 328 | return cret | |
| 343 | 329 | } | |
| 344 | 330 | ||
| @@ -348,7 +334,6 @@ var xInetAddressGetScopeId func(uintptr) uint32 | |||
| 348 | 334 | func (x *InetAddress) GetScopeId() uint32 { | |
| 349 | 335 | ||
| 350 | 336 | cret := xInetAddressGetScopeId(x.GoPointer()) | |
| 351 | - | ||
| 352 | 337 | return cret | |
| 353 | 338 | } | |
| 354 | 339 | ||
| @@ -358,7 +343,6 @@ var xInetAddressToBytes func(uintptr) byte | |||
| 358 | 343 | func (x *InetAddress) ToBytes() byte { | |
| 359 | 344 | ||
| 360 | 345 | cret := xInetAddressToBytes(x.GoPointer()) | |
| 361 | - | ||
| 362 | 346 | return cret | |
| 363 | 347 | } | |
| 364 | 348 | ||
| @@ -368,7 +352,6 @@ var xInetAddressToString func(uintptr) string | |||
| 368 | 352 | func (x *InetAddress) ToString() string { | |
| 369 | 353 | ||
| 370 | 354 | cret := xInetAddressToString(x.GoPointer()) | |
| 371 | - | ||
| 372 | 355 | return cret | |
| 373 | 356 | } | |
| 374 | 357 | ||
M v4/gio/ginetaddressmask.go +0 -6
| @@ -102,7 +102,6 @@ var xInetAddressMaskEqual func(uintptr, uintptr) bool | |||
| 102 | 102 | func (x *InetAddressMask) Equal(Mask2Var *InetAddressMask) bool { | |
| 103 | 103 | ||
| 104 | 104 | cret := xInetAddressMaskEqual(x.GoPointer(), Mask2Var.GoPointer()) | |
| 105 | - | ||
| 106 | 105 | return cret | |
| 107 | 106 | } | |
| 108 | 107 | ||
| @@ -129,7 +128,6 @@ var xInetAddressMaskGetFamily func(uintptr) SocketFamily | |||
| 129 | 128 | func (x *InetAddressMask) GetFamily() SocketFamily { | |
| 130 | 129 | ||
| 131 | 130 | cret := xInetAddressMaskGetFamily(x.GoPointer()) | |
| 132 | - | ||
| 133 | 131 | return cret | |
| 134 | 132 | } | |
| 135 | 133 | ||
| @@ -139,7 +137,6 @@ var xInetAddressMaskGetLength func(uintptr) uint | |||
| 139 | 137 | func (x *InetAddressMask) GetLength() uint { | |
| 140 | 138 | ||
| 141 | 139 | cret := xInetAddressMaskGetLength(x.GoPointer()) | |
| 142 | - | ||
| 143 | 140 | return cret | |
| 144 | 141 | } | |
| 145 | 142 | ||
| @@ -149,7 +146,6 @@ var xInetAddressMaskMatches func(uintptr, uintptr) bool | |||
| 149 | 146 | func (x *InetAddressMask) Matches(AddressVar *InetAddress) bool { | |
| 150 | 147 | ||
| 151 | 148 | cret := xInetAddressMaskMatches(x.GoPointer(), AddressVar.GoPointer()) | |
| 152 | - | ||
| 153 | 149 | return cret | |
| 154 | 150 | } | |
| 155 | 151 | ||
| @@ -159,7 +155,6 @@ var xInetAddressMaskToString func(uintptr) string | |||
| 159 | 155 | func (x *InetAddressMask) ToString() string { | |
| 160 | 156 | ||
| 161 | 157 | cret := xInetAddressMaskToString(x.GoPointer()) | |
| 162 | - | ||
| 163 | 158 | return cret | |
| 164 | 159 | } | |
| 165 | 160 | ||
| @@ -233,7 +228,6 @@ func (x *InetAddressMask) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 233 | 228 | var cerr *glib.Error | |
| 234 | 229 | ||
| 235 | 230 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 236 | - | ||
| 237 | 231 | if cerr == nil { | |
| 238 | 232 | return cret, nil | |
| 239 | 233 | } | |
M v4/gio/ginetsocketaddress.go +0 -4
| @@ -112,7 +112,6 @@ var xInetSocketAddressGetFlowinfo func(uintptr) uint32 | |||
| 112 | 112 | func (x *InetSocketAddress) GetFlowinfo() uint32 { | |
| 113 | 113 | ||
| 114 | 114 | cret := xInetSocketAddressGetFlowinfo(x.GoPointer()) | |
| 115 | - | ||
| 116 | 115 | return cret | |
| 117 | 116 | } | |
| 118 | 117 | ||
| @@ -122,7 +121,6 @@ var xInetSocketAddressGetPort func(uintptr) uint16 | |||
| 122 | 121 | func (x *InetSocketAddress) GetPort() uint16 { | |
| 123 | 122 | ||
| 124 | 123 | cret := xInetSocketAddressGetPort(x.GoPointer()) | |
| 125 | - | ||
| 126 | 124 | return cret | |
| 127 | 125 | } | |
| 128 | 126 | ||
| @@ -135,7 +133,6 @@ var xInetSocketAddressGetScopeId func(uintptr) uint32 | |||
| 135 | 133 | func (x *InetSocketAddress) GetScopeId() uint32 { | |
| 136 | 134 | ||
| 137 | 135 | cret := xInetSocketAddressGetScopeId(x.GoPointer()) | |
| 138 | - | ||
| 139 | 136 | return cret | |
| 140 | 137 | } | |
| 141 | 138 | ||
| @@ -253,7 +250,6 @@ func (x *InetSocketAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 253 | 250 | func (x *InetSocketAddress) ToString() string { | |
| 254 | 251 | ||
| 255 | 252 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 256 | - | ||
| 257 | 253 | return cret | |
| 258 | 254 | } | |
| 259 | 255 | ||
M v4/gio/ginitable.go +0 -1
| @@ -144,7 +144,6 @@ func (x *InitableBase) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 144 | 144 | var cerr *glib.Error | |
| 145 | 145 | ||
| 146 | 146 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 147 | - | ||
| 148 | 147 | if cerr == nil { | |
| 149 | 148 | return cret, nil | |
| 150 | 149 | } | |
M v4/gio/ginputstream.go +0 -13
| @@ -447,7 +447,6 @@ func (x *InputStream) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 447 | 447 | var cerr *glib.Error | |
| 448 | 448 | ||
| 449 | 449 | cret := xInputStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 450 | - | ||
| 451 | 450 | if cerr == nil { | |
| 452 | 451 | return cret, nil | |
| 453 | 452 | } | |
| @@ -495,7 +494,6 @@ func (x *InputStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 495 | 494 | var cerr *glib.Error | |
| 496 | 495 | ||
| 497 | 496 | cret := xInputStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 498 | - | ||
| 499 | 497 | if cerr == nil { | |
| 500 | 498 | return cret, nil | |
| 501 | 499 | } | |
| @@ -509,7 +507,6 @@ var xInputStreamHasPending func(uintptr) bool | |||
| 509 | 507 | func (x *InputStream) HasPending() bool { | |
| 510 | 508 | ||
| 511 | 509 | cret := xInputStreamHasPending(x.GoPointer()) | |
| 512 | - | ||
| 513 | 510 | return cret | |
| 514 | 511 | } | |
| 515 | 512 | ||
| @@ -519,7 +516,6 @@ var xInputStreamIsClosed func(uintptr) bool | |||
| 519 | 516 | func (x *InputStream) IsClosed() bool { | |
| 520 | 517 | ||
| 521 | 518 | cret := xInputStreamIsClosed(x.GoPointer()) | |
| 522 | - | ||
| 523 | 519 | return cret | |
| 524 | 520 | } | |
| 525 | 521 | ||
| @@ -550,7 +546,6 @@ func (x *InputStream) Read(BufferVar *[]byte, CountVar uint, CancellableVar *Can | |||
| 550 | 546 | var cerr *glib.Error | |
| 551 | 547 | ||
| 552 | 548 | cret := xInputStreamRead(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 553 | - | ||
| 554 | 549 | if cerr == nil { | |
| 555 | 550 | return cret, nil | |
| 556 | 551 | } | |
| @@ -583,7 +578,6 @@ func (x *InputStream) ReadAll(BufferVar *[]byte, CountVar uint, BytesReadVar *ui | |||
| 583 | 578 | var cerr *glib.Error | |
| 584 | 579 | ||
| 585 | 580 | cret := xInputStreamReadAll(x.GoPointer(), BufferVar, CountVar, BytesReadVar, CancellableVar.GoPointer(), &cerr) | |
| 586 | - | ||
| 587 | 581 | if cerr == nil { | |
| 588 | 582 | return cret, nil | |
| 589 | 583 | } | |
| @@ -639,7 +633,6 @@ func (x *InputStream) ReadAllFinish(ResultVar AsyncResult, BytesReadVar *uint) ( | |||
| 639 | 633 | var cerr *glib.Error | |
| 640 | 634 | ||
| 641 | 635 | cret := xInputStreamReadAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesReadVar, &cerr) | |
| 642 | - | ||
| 643 | 636 | if cerr == nil { | |
| 644 | 637 | return cret, nil | |
| 645 | 638 | } | |
| @@ -722,7 +715,6 @@ func (x *InputStream) ReadBytes(CountVar uint, CancellableVar *Cancellable) (*gl | |||
| 722 | 715 | var cerr *glib.Error | |
| 723 | 716 | ||
| 724 | 717 | cret := xInputStreamReadBytes(x.GoPointer(), CountVar, CancellableVar.GoPointer(), &cerr) | |
| 725 | - | ||
| 726 | 718 | if cerr == nil { | |
| 727 | 719 | return cret, nil | |
| 728 | 720 | } | |
| @@ -780,7 +772,6 @@ func (x *InputStream) ReadBytesFinish(ResultVar AsyncResult) (*glib.Bytes, error | |||
| 780 | 772 | var cerr *glib.Error | |
| 781 | 773 | ||
| 782 | 774 | cret := xInputStreamReadBytesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 783 | - | ||
| 784 | 775 | if cerr == nil { | |
| 785 | 776 | return cret, nil | |
| 786 | 777 | } | |
| @@ -795,7 +786,6 @@ func (x *InputStream) ReadFinish(ResultVar AsyncResult) (int, error) { | |||
| 795 | 786 | var cerr *glib.Error | |
| 796 | 787 | ||
| 797 | 788 | cret := xInputStreamReadFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 798 | - | ||
| 799 | 789 | if cerr == nil { | |
| 800 | 790 | return cret, nil | |
| 801 | 791 | } | |
| @@ -812,7 +802,6 @@ func (x *InputStream) SetPending() (bool, error) { | |||
| 812 | 802 | var cerr *glib.Error | |
| 813 | 803 | ||
| 814 | 804 | cret := xInputStreamSetPending(x.GoPointer()) | |
| 815 | - | ||
| 816 | 805 | if cerr == nil { | |
| 817 | 806 | return cret, nil | |
| 818 | 807 | } | |
| @@ -840,7 +829,6 @@ func (x *InputStream) Skip(CountVar uint, CancellableVar *Cancellable) (int, err | |||
| 840 | 829 | var cerr *glib.Error | |
| 841 | 830 | ||
| 842 | 831 | cret := xInputStreamSkip(x.GoPointer(), CountVar, CancellableVar.GoPointer(), &cerr) | |
| 843 | - | ||
| 844 | 832 | if cerr == nil { | |
| 845 | 833 | return cret, nil | |
| 846 | 834 | } | |
| @@ -901,7 +889,6 @@ func (x *InputStream) SkipFinish(ResultVar AsyncResult) (int, error) { | |||
| 901 | 889 | var cerr *glib.Error | |
| 902 | 890 | ||
| 903 | 891 | cret := xInputStreamSkipFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 904 | - | ||
| 905 | 892 | if cerr == nil { | |
| 906 | 893 | return cret, nil | |
| 907 | 894 | } | |
M v4/gio/gioerror.go +0 -3
| @@ -32,7 +32,6 @@ var xIoErrorFromErrno func(int) IOErrorEnum | |||
| 32 | 32 | func IoErrorFromErrno(ErrNoVar int) IOErrorEnum { | |
| 33 | 33 | ||
| 34 | 34 | cret := xIoErrorFromErrno(ErrNoVar) | |
| 35 | - | ||
| 36 | 35 | return cret | |
| 37 | 36 | } | |
| 38 | 37 | ||
| @@ -42,7 +41,6 @@ var xIoErrorFromFileError func(glib.FileError) IOErrorEnum | |||
| 42 | 41 | func IoErrorFromFileError(FileErrorVar glib.FileError) IOErrorEnum { | |
| 43 | 42 | ||
| 44 | 43 | cret := xIoErrorFromFileError(FileErrorVar) | |
| 45 | - | ||
| 46 | 44 | return cret | |
| 47 | 45 | } | |
| 48 | 46 | ||
| @@ -52,7 +50,6 @@ var xIoErrorQuark func() glib.Quark | |||
| 52 | 50 | func IoErrorQuark() glib.Quark { | |
| 53 | 51 | ||
| 54 | 52 | cret := xIoErrorQuark() | |
| 55 | - | ||
| 56 | 53 | return cret | |
| 57 | 54 | } | |
| 58 | 55 | ||
M v4/gio/giomodule.go +0 -6
| @@ -63,7 +63,6 @@ var xIoExtensionPointImplement func(string, types.GType, string, int) *IOExtensi | |||
| 63 | 63 | func IoExtensionPointImplement(ExtensionPointNameVar string, TypeVar types.GType, ExtensionNameVar string, PriorityVar int) *IOExtension { | |
| 64 | 64 | ||
| 65 | 65 | cret := xIoExtensionPointImplement(ExtensionPointNameVar, TypeVar, ExtensionNameVar, PriorityVar) | |
| 66 | - | ||
| 67 | 66 | return cret | |
| 68 | 67 | } | |
| 69 | 68 | ||
| @@ -73,7 +72,6 @@ var xIoExtensionPointLookup func(string) *IOExtensionPoint | |||
| 73 | 72 | func IoExtensionPointLookup(NameVar string) *IOExtensionPoint { | |
| 74 | 73 | ||
| 75 | 74 | cret := xIoExtensionPointLookup(NameVar) | |
| 76 | - | ||
| 77 | 75 | return cret | |
| 78 | 76 | } | |
| 79 | 77 | ||
| @@ -83,7 +81,6 @@ var xIoExtensionPointRegister func(string) *IOExtensionPoint | |||
| 83 | 81 | func IoExtensionPointRegister(NameVar string) *IOExtensionPoint { | |
| 84 | 82 | ||
| 85 | 83 | cret := xIoExtensionPointRegister(NameVar) | |
| 86 | - | ||
| 87 | 84 | return cret | |
| 88 | 85 | } | |
| 89 | 86 | ||
| @@ -97,7 +94,6 @@ var xIoModulesLoadAllInDirectory func(string) *glib.List | |||
| 97 | 94 | func IoModulesLoadAllInDirectory(DirnameVar string) *glib.List { | |
| 98 | 95 | ||
| 99 | 96 | cret := xIoModulesLoadAllInDirectory(DirnameVar) | |
| 100 | - | ||
| 101 | 97 | return cret | |
| 102 | 98 | } | |
| 103 | 99 | ||
| @@ -111,7 +107,6 @@ var xIoModulesLoadAllInDirectoryWithScope func(string, *IOModuleScope) *glib.Lis | |||
| 111 | 107 | func IoModulesLoadAllInDirectoryWithScope(DirnameVar string, ScopeVar *IOModuleScope) *glib.List { | |
| 112 | 108 | ||
| 113 | 109 | cret := xIoModulesLoadAllInDirectoryWithScope(DirnameVar, ScopeVar) | |
| 114 | - | ||
| 115 | 110 | return cret | |
| 116 | 111 | } | |
| 117 | 112 | ||
| @@ -313,7 +308,6 @@ var xIOModuleQuery func() []string | |||
| 313 | 308 | func IOModuleQuery() []string { | |
| 314 | 309 | ||
| 315 | 310 | cret := xIOModuleQuery() | |
| 316 | - | ||
| 317 | 311 | return cret | |
| 318 | 312 | } | |
| 319 | 313 | ||
M v4/gio/giostream.go +0 -6
| @@ -537,7 +537,6 @@ func (x *IOStream) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 537 | 537 | var cerr *glib.Error | |
| 538 | 538 | ||
| 539 | 539 | cret := xIOStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 540 | - | ||
| 541 | 540 | if cerr == nil { | |
| 542 | 541 | return cret, nil | |
| 543 | 542 | } | |
| @@ -585,7 +584,6 @@ func (x *IOStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 585 | 584 | var cerr *glib.Error | |
| 586 | 585 | ||
| 587 | 586 | cret := xIOStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 588 | - | ||
| 589 | 587 | if cerr == nil { | |
| 590 | 588 | return cret, nil | |
| 591 | 589 | } | |
| @@ -635,7 +633,6 @@ var xIOStreamHasPending func(uintptr) bool | |||
| 635 | 633 | func (x *IOStream) HasPending() bool { | |
| 636 | 634 | ||
| 637 | 635 | cret := xIOStreamHasPending(x.GoPointer()) | |
| 638 | - | ||
| 639 | 636 | return cret | |
| 640 | 637 | } | |
| 641 | 638 | ||
| @@ -645,7 +642,6 @@ var xIOStreamIsClosed func(uintptr) bool | |||
| 645 | 642 | func (x *IOStream) IsClosed() bool { | |
| 646 | 643 | ||
| 647 | 644 | cret := xIOStreamIsClosed(x.GoPointer()) | |
| 648 | - | ||
| 649 | 645 | return cret | |
| 650 | 646 | } | |
| 651 | 647 | ||
| @@ -658,7 +654,6 @@ func (x *IOStream) SetPending() (bool, error) { | |||
| 658 | 654 | var cerr *glib.Error | |
| 659 | 655 | ||
| 660 | 656 | cret := xIOStreamSetPending(x.GoPointer()) | |
| 661 | - | ||
| 662 | 657 | if cerr == nil { | |
| 663 | 658 | return cret, nil | |
| 664 | 659 | } | |
| @@ -722,7 +717,6 @@ func IOStreamSpliceFinish(ResultVar AsyncResult) (bool, error) { | |||
| 722 | 717 | var cerr *glib.Error | |
| 723 | 718 | ||
| 724 | 719 | cret := xIOStreamSpliceFinish(ResultVar.GoPointer(), &cerr) | |
| 725 | - | ||
| 726 | 720 | if cerr == nil { | |
| 727 | 721 | return cret, nil | |
| 728 | 722 | } | |
M v4/gio/giotypes.go +0 -28
| @@ -141,7 +141,6 @@ var xNewFileAttributeMatcher func(string) *FileAttributeMatcher | |||
| 141 | 141 | func NewFileAttributeMatcher(AttributesVar string) *FileAttributeMatcher { | |
| 142 | 142 | ||
| 143 | 143 | cret := xNewFileAttributeMatcher(AttributesVar) | |
| 144 | - | ||
| 145 | 144 | return cret | |
| 146 | 145 | } | |
| 147 | 146 | ||
| @@ -156,7 +155,6 @@ var xFileAttributeMatcherEnumerateNamespace func(uintptr, string) bool | |||
| 156 | 155 | func (x *FileAttributeMatcher) EnumerateNamespace(NsVar string) bool { | |
| 157 | 156 | ||
| 158 | 157 | cret := xFileAttributeMatcherEnumerateNamespace(x.GoPointer(), NsVar) | |
| 159 | - | ||
| 160 | 158 | return cret | |
| 161 | 159 | } | |
| 162 | 160 | ||
| @@ -166,7 +164,6 @@ var xFileAttributeMatcherEnumerateNext func(uintptr) string | |||
| 166 | 164 | func (x *FileAttributeMatcher) EnumerateNext() string { | |
| 167 | 165 | ||
| 168 | 166 | cret := xFileAttributeMatcherEnumerateNext(x.GoPointer()) | |
| 169 | - | ||
| 170 | 167 | return cret | |
| 171 | 168 | } | |
| 172 | 169 | ||
| @@ -178,7 +175,6 @@ var xFileAttributeMatcherMatches func(uintptr, string) bool | |||
| 178 | 175 | func (x *FileAttributeMatcher) Matches(AttributeVar string) bool { | |
| 179 | 176 | ||
| 180 | 177 | cret := xFileAttributeMatcherMatches(x.GoPointer(), AttributeVar) | |
| 181 | - | ||
| 182 | 178 | return cret | |
| 183 | 179 | } | |
| 184 | 180 | ||
| @@ -189,7 +185,6 @@ var xFileAttributeMatcherMatchesOnly func(uintptr, string) bool | |||
| 189 | 185 | func (x *FileAttributeMatcher) MatchesOnly(AttributeVar string) bool { | |
| 190 | 186 | ||
| 191 | 187 | cret := xFileAttributeMatcherMatchesOnly(x.GoPointer(), AttributeVar) | |
| 192 | - | ||
| 193 | 188 | return cret | |
| 194 | 189 | } | |
| 195 | 190 | ||
| @@ -199,7 +194,6 @@ var xFileAttributeMatcherRef func(uintptr) *FileAttributeMatcher | |||
| 199 | 194 | func (x *FileAttributeMatcher) Ref() *FileAttributeMatcher { | |
| 200 | 195 | ||
| 201 | 196 | cret := xFileAttributeMatcherRef(x.GoPointer()) | |
| 202 | - | ||
| 203 | 197 | return cret | |
| 204 | 198 | } | |
| 205 | 199 | ||
| @@ -216,7 +210,6 @@ var xFileAttributeMatcherSubtract func(uintptr, *FileAttributeMatcher) *FileAttr | |||
| 216 | 210 | func (x *FileAttributeMatcher) Subtract(SubtractVar *FileAttributeMatcher) *FileAttributeMatcher { | |
| 217 | 211 | ||
| 218 | 212 | cret := xFileAttributeMatcherSubtract(x.GoPointer(), SubtractVar) | |
| 219 | - | ||
| 220 | 213 | return cret | |
| 221 | 214 | } | |
| 222 | 215 | ||
| @@ -229,7 +222,6 @@ var xFileAttributeMatcherToString func(uintptr) string | |||
| 229 | 222 | func (x *FileAttributeMatcher) ToString() string { | |
| 230 | 223 | ||
| 231 | 224 | cret := xFileAttributeMatcherToString(x.GoPointer()) | |
| 232 | - | ||
| 233 | 225 | return cret | |
| 234 | 226 | } | |
| 235 | 227 | ||
| @@ -262,7 +254,6 @@ var xIOExtensionGetName func(uintptr) string | |||
| 262 | 254 | func (x *IOExtension) GetName() string { | |
| 263 | 255 | ||
| 264 | 256 | cret := xIOExtensionGetName(x.GoPointer()) | |
| 265 | - | ||
| 266 | 257 | return cret | |
| 267 | 258 | } | |
| 268 | 259 | ||
| @@ -272,7 +263,6 @@ var xIOExtensionGetPriority func(uintptr) int | |||
| 272 | 263 | func (x *IOExtension) GetPriority() int { | |
| 273 | 264 | ||
| 274 | 265 | cret := xIOExtensionGetPriority(x.GoPointer()) | |
| 275 | - | ||
| 276 | 266 | return cret | |
| 277 | 267 | } | |
| 278 | 268 | ||
| @@ -282,7 +272,6 @@ var xIOExtensionGetType func(uintptr) types.GType | |||
| 282 | 272 | func (x *IOExtension) GetType() types.GType { | |
| 283 | 273 | ||
| 284 | 274 | cret := xIOExtensionGetType(x.GoPointer()) | |
| 285 | - | ||
| 286 | 275 | return cret | |
| 287 | 276 | } | |
| 288 | 277 | ||
| @@ -293,7 +282,6 @@ var xIOExtensionRefClass func(uintptr) *gobject.TypeClass | |||
| 293 | 282 | func (x *IOExtension) RefClass() *gobject.TypeClass { | |
| 294 | 283 | ||
| 295 | 284 | cret := xIOExtensionRefClass(x.GoPointer()) | |
| 296 | - | ||
| 297 | 285 | return cret | |
| 298 | 286 | } | |
| 299 | 287 | ||
| @@ -364,7 +352,6 @@ var xIOExtensionPointGetExtensionByName func(uintptr, string) *IOExtension | |||
| 364 | 352 | func (x *IOExtensionPoint) GetExtensionByName(NameVar string) *IOExtension { | |
| 365 | 353 | ||
| 366 | 354 | cret := xIOExtensionPointGetExtensionByName(x.GoPointer(), NameVar) | |
| 367 | - | ||
| 368 | 355 | return cret | |
| 369 | 356 | } | |
| 370 | 357 | ||
| @@ -375,7 +362,6 @@ var xIOExtensionPointGetExtensions func(uintptr) *glib.List | |||
| 375 | 362 | func (x *IOExtensionPoint) GetExtensions() *glib.List { | |
| 376 | 363 | ||
| 377 | 364 | cret := xIOExtensionPointGetExtensions(x.GoPointer()) | |
| 378 | - | ||
| 379 | 365 | return cret | |
| 380 | 366 | } | |
| 381 | 367 | ||
| @@ -385,7 +371,6 @@ var xIOExtensionPointGetRequiredType func(uintptr) types.GType | |||
| 385 | 371 | func (x *IOExtensionPoint) GetRequiredType() types.GType { | |
| 386 | 372 | ||
| 387 | 373 | cret := xIOExtensionPointGetRequiredType(x.GoPointer()) | |
| 388 | - | ||
| 389 | 374 | return cret | |
| 390 | 375 | } | |
| 391 | 376 | ||
| @@ -446,7 +431,6 @@ func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar ui | |||
| 446 | 431 | } | |
| 447 | 432 | ||
| 448 | 433 | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), FuncVarRef, UserDataVar, NotifyVarRef) | |
| 449 | - | ||
| 450 | 434 | return cret | |
| 451 | 435 | } | |
| 452 | 436 | ||
| @@ -801,7 +785,6 @@ func NewResourceFromData(DataVar *glib.Bytes) (*Resource, error) { | |||
| 801 | 785 | var cerr *glib.Error | |
| 802 | 786 | ||
| 803 | 787 | cret := xNewResourceFromData(DataVar, &cerr) | |
| 804 | - | ||
| 805 | 788 | if cerr == nil { | |
| 806 | 789 | return cret, nil | |
| 807 | 790 | } | |
| @@ -846,7 +829,6 @@ func (x *Resource) EnumerateChildren(PathVar string, LookupFlagsVar ResourceLook | |||
| 846 | 829 | var cerr *glib.Error | |
| 847 | 830 | ||
| 848 | 831 | cret := xResourceEnumerateChildren(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | |
| 849 | - | ||
| 850 | 832 | if cerr == nil { | |
| 851 | 833 | return cret, nil | |
| 852 | 834 | } | |
| @@ -867,7 +849,6 @@ func (x *Resource) GetInfo(PathVar string, LookupFlagsVar ResourceLookupFlags, S | |||
| 867 | 849 | var cerr *glib.Error | |
| 868 | 850 | ||
| 869 | 851 | cret := xResourceGetInfo(x.GoPointer(), PathVar, LookupFlagsVar, SizeVar, FlagsVar, &cerr) | |
| 870 | - | ||
| 871 | 852 | if cerr == nil { | |
| 872 | 853 | return cret, nil | |
| 873 | 854 | } | |
| @@ -882,7 +863,6 @@ var xResourceHasChildren func(uintptr, string) bool | |||
| 882 | 863 | func (x *Resource) HasChildren(PathVar string) bool { | |
| 883 | 864 | ||
| 884 | 865 | cret := xResourceHasChildren(x.GoPointer(), PathVar) | |
| 885 | - | ||
| 886 | 866 | return cret | |
| 887 | 867 | } | |
| 888 | 868 | ||
| @@ -910,7 +890,6 @@ func (x *Resource) LookupData(PathVar string, LookupFlagsVar ResourceLookupFlags | |||
| 910 | 890 | var cerr *glib.Error | |
| 911 | 891 | ||
| 912 | 892 | cret := xResourceLookupData(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | |
| 913 | - | ||
| 914 | 893 | if cerr == nil { | |
| 915 | 894 | return cret, nil | |
| 916 | 895 | } | |
| @@ -953,7 +932,6 @@ var xResourceRef func(uintptr) *Resource | |||
| 953 | 932 | func (x *Resource) Ref() *Resource { | |
| 954 | 933 | ||
| 955 | 934 | cret := xResourceRef(x.GoPointer()) | |
| 956 | - | ||
| 957 | 935 | return cret | |
| 958 | 936 | } | |
| 959 | 937 | ||
| @@ -1009,7 +987,6 @@ var xNewSrvTarget func(string, uint16, uint16, uint16) *SrvTarget | |||
| 1009 | 987 | func NewSrvTarget(HostnameVar string, PortVar uint16, PriorityVar uint16, WeightVar uint16) *SrvTarget { | |
| 1010 | 988 | ||
| 1011 | 989 | cret := xNewSrvTarget(HostnameVar, PortVar, PriorityVar, WeightVar) | |
| 1012 | - | ||
| 1013 | 990 | return cret | |
| 1014 | 991 | } | |
| 1015 | 992 | ||
| @@ -1019,7 +996,6 @@ var xSrvTargetCopy func(uintptr) *SrvTarget | |||
| 1019 | 996 | func (x *SrvTarget) Copy() *SrvTarget { | |
| 1020 | 997 | ||
| 1021 | 998 | cret := xSrvTargetCopy(x.GoPointer()) | |
| 1022 | - | ||
| 1023 | 999 | return cret | |
| 1024 | 1000 | } | |
| 1025 | 1001 | ||
| @@ -1041,7 +1017,6 @@ var xSrvTargetGetHostname func(uintptr) string | |||
| 1041 | 1017 | func (x *SrvTarget) GetHostname() string { | |
| 1042 | 1018 | ||
| 1043 | 1019 | cret := xSrvTargetGetHostname(x.GoPointer()) | |
| 1044 | - | ||
| 1045 | 1020 | return cret | |
| 1046 | 1021 | } | |
| 1047 | 1022 | ||
| @@ -1051,7 +1026,6 @@ var xSrvTargetGetPort func(uintptr) uint16 | |||
| 1051 | 1026 | func (x *SrvTarget) GetPort() uint16 { | |
| 1052 | 1027 | ||
| 1053 | 1028 | cret := xSrvTargetGetPort(x.GoPointer()) | |
| 1054 | - | ||
| 1055 | 1029 | return cret | |
| 1056 | 1030 | } | |
| 1057 | 1031 | ||
| @@ -1063,7 +1037,6 @@ var xSrvTargetGetPriority func(uintptr) uint16 | |||
| 1063 | 1037 | func (x *SrvTarget) GetPriority() uint16 { | |
| 1064 | 1038 | ||
| 1065 | 1039 | cret := xSrvTargetGetPriority(x.GoPointer()) | |
| 1066 | - | ||
| 1067 | 1040 | return cret | |
| 1068 | 1041 | } | |
| 1069 | 1042 | ||
| @@ -1075,7 +1048,6 @@ var xSrvTargetGetWeight func(uintptr) uint16 | |||
| 1075 | 1048 | func (x *SrvTarget) GetWeight() uint16 { | |
| 1076 | 1049 | ||
| 1077 | 1050 | cret := xSrvTargetGetWeight(x.GoPointer()) | |
| 1078 | - | ||
| 1079 | 1051 | return cret | |
| 1080 | 1052 | } | |
| 1081 | 1053 | ||
M v4/gio/glistmodel.go +0 -3
| @@ -224,7 +224,6 @@ func (x *ListModelBase) SetGoPointer(ptr uintptr) { | |||
| 224 | 224 | func (x *ListModelBase) GetItem(PositionVar uint) uintptr { | |
| 225 | 225 | ||
| 226 | 226 | cret := XGListModelGetItem(x.GoPointer(), PositionVar) | |
| 227 | - | ||
| 228 | 227 | return cret | |
| 229 | 228 | } | |
| 230 | 229 | ||
| @@ -239,7 +238,6 @@ func (x *ListModelBase) GetItem(PositionVar uint) uintptr { | |||
| 239 | 238 | func (x *ListModelBase) GetItemType() types.GType { | |
| 240 | 239 | ||
| 241 | 240 | cret := XGListModelGetItemType(x.GoPointer()) | |
| 242 | - | ||
| 243 | 241 | return cret | |
| 244 | 242 | } | |
| 245 | 243 | ||
| @@ -251,7 +249,6 @@ func (x *ListModelBase) GetItemType() types.GType { | |||
| 251 | 249 | func (x *ListModelBase) GetNItems() uint { | |
| 252 | 250 | ||
| 253 | 251 | cret := XGListModelGetNItems(x.GoPointer()) | |
| 254 | - | ||
| 255 | 252 | return cret | |
| 256 | 253 | } | |
| 257 | 254 | ||
M v4/gio/gliststore.go +0 -7
| @@ -85,7 +85,6 @@ var xListStoreFind func(uintptr, uintptr, *uint) bool | |||
| 85 | 85 | func (x *ListStore) Find(ItemVar *gobject.Object, PositionVar *uint) bool { | |
| 86 | 86 | ||
| 87 | 87 | cret := xListStoreFind(x.GoPointer(), ItemVar.GoPointer(), PositionVar) | |
| 88 | - | ||
| 89 | 88 | return cret | |
| 90 | 89 | } | |
| 91 | 90 | ||
| @@ -117,7 +116,6 @@ func (x *ListStore) FindWithEqualFunc(ItemVar *gobject.Object, EqualFuncVar *gli | |||
| 117 | 116 | } | |
| 118 | 117 | ||
| 119 | 118 | cret := xListStoreFindWithEqualFunc(x.GoPointer(), ItemVar.GoPointer(), EqualFuncVarRef, PositionVar) | |
| 120 | - | ||
| 121 | 119 | return cret | |
| 122 | 120 | } | |
| 123 | 121 | ||
| @@ -147,7 +145,6 @@ func (x *ListStore) FindWithEqualFuncFull(ItemVar *gobject.Object, EqualFuncVar | |||
| 147 | 145 | } | |
| 148 | 146 | ||
| 149 | 147 | cret := xListStoreFindWithEqualFuncFull(x.GoPointer(), ItemVar.GoPointer(), EqualFuncVarRef, UserDataVar, PositionVar) | |
| 150 | - | ||
| 151 | 148 | return cret | |
| 152 | 149 | } | |
| 153 | 150 | ||
| @@ -195,7 +192,6 @@ func (x *ListStore) InsertSorted(ItemVar *gobject.Object, CompareFuncVar *glib.C | |||
| 195 | 192 | } | |
| 196 | 193 | ||
| 197 | 194 | cret := xListStoreInsertSorted(x.GoPointer(), ItemVar.GoPointer(), CompareFuncVarRef, UserDataVar) | |
| 198 | - | ||
| 199 | 195 | return cret | |
| 200 | 196 | } | |
| 201 | 197 | ||
| @@ -297,7 +293,6 @@ func (x *ListStore) GetPropertyNItems() uint { | |||
| 297 | 293 | func (x *ListStore) GetItem(PositionVar uint) uintptr { | |
| 298 | 294 | ||
| 299 | 295 | cret := XGListModelGetItem(x.GoPointer(), PositionVar) | |
| 300 | - | ||
| 301 | 296 | return cret | |
| 302 | 297 | } | |
| 303 | 298 | ||
| @@ -312,7 +307,6 @@ func (x *ListStore) GetItem(PositionVar uint) uintptr { | |||
| 312 | 307 | func (x *ListStore) GetItemType() types.GType { | |
| 313 | 308 | ||
| 314 | 309 | cret := XGListModelGetItemType(x.GoPointer()) | |
| 315 | - | ||
| 316 | 310 | return cret | |
| 317 | 311 | } | |
| 318 | 312 | ||
| @@ -324,7 +318,6 @@ func (x *ListStore) GetItemType() types.GType { | |||
| 324 | 318 | func (x *ListStore) GetNItems() uint { | |
| 325 | 319 | ||
| 326 | 320 | cret := XGListModelGetNItems(x.GoPointer()) | |
| 327 | - | ||
| 328 | 321 | return cret | |
| 329 | 322 | } | |
| 330 | 323 | ||
M v4/gio/gmemoryinputstream.go +0 -9
| @@ -292,7 +292,6 @@ func (c *MemoryInputStream) SetGoPointer(ptr uintptr) { | |||
| 292 | 292 | func (x *MemoryInputStream) CanPoll() bool { | |
| 293 | 293 | ||
| 294 | 294 | cret := XGPollableInputStreamCanPoll(x.GoPointer()) | |
| 295 | - | ||
| 296 | 295 | return cret | |
| 297 | 296 | } | |
| 298 | 297 | ||
| @@ -310,7 +309,6 @@ func (x *MemoryInputStream) CanPoll() bool { | |||
| 310 | 309 | func (x *MemoryInputStream) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 311 | 310 | ||
| 312 | 311 | cret := XGPollableInputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 313 | - | ||
| 314 | 312 | return cret | |
| 315 | 313 | } | |
| 316 | 314 | ||
| @@ -328,7 +326,6 @@ func (x *MemoryInputStream) CreateSource(CancellableVar *Cancellable) *glib.Sour | |||
| 328 | 326 | func (x *MemoryInputStream) IsReadable() bool { | |
| 329 | 327 | ||
| 330 | 328 | cret := XGPollableInputStreamIsReadable(x.GoPointer()) | |
| 331 | - | ||
| 332 | 329 | return cret | |
| 333 | 330 | } | |
| 334 | 331 | ||
| @@ -350,7 +347,6 @@ func (x *MemoryInputStream) ReadNonblocking(BufferVar *[]byte, CountVar uint, Ca | |||
| 350 | 347 | var cerr *glib.Error | |
| 351 | 348 | ||
| 352 | 349 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 353 | - | ||
| 354 | 350 | if cerr == nil { | |
| 355 | 351 | return cret, nil | |
| 356 | 352 | } | |
| @@ -362,7 +358,6 @@ func (x *MemoryInputStream) ReadNonblocking(BufferVar *[]byte, CountVar uint, Ca | |||
| 362 | 358 | func (x *MemoryInputStream) CanSeek() bool { | |
| 363 | 359 | ||
| 364 | 360 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 365 | - | ||
| 366 | 361 | return cret | |
| 367 | 362 | } | |
| 368 | 363 | ||
| @@ -371,7 +366,6 @@ func (x *MemoryInputStream) CanSeek() bool { | |||
| 371 | 366 | func (x *MemoryInputStream) CanTruncate() bool { | |
| 372 | 367 | ||
| 373 | 368 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 374 | - | ||
| 375 | 369 | return cret | |
| 376 | 370 | } | |
| 377 | 371 | ||
| @@ -393,7 +387,6 @@ func (x *MemoryInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancell | |||
| 393 | 387 | var cerr *glib.Error | |
| 394 | 388 | ||
| 395 | 389 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 396 | - | ||
| 397 | 390 | if cerr == nil { | |
| 398 | 391 | return cret, nil | |
| 399 | 392 | } | |
| @@ -405,7 +398,6 @@ func (x *MemoryInputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancell | |||
| 405 | 398 | func (x *MemoryInputStream) Tell() int64 { | |
| 406 | 399 | ||
| 407 | 400 | cret := XGSeekableTell(x.GoPointer()) | |
| 408 | - | ||
| 409 | 401 | return cret | |
| 410 | 402 | } | |
| 411 | 403 | ||
| @@ -422,7 +414,6 @@ func (x *MemoryInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellabl | |||
| 422 | 414 | var cerr *glib.Error | |
| 423 | 415 | ||
| 424 | 416 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 425 | - | ||
| 426 | 417 | if cerr == nil { | |
| 427 | 418 | return cret, nil | |
| 428 | 419 | } | |
M v4/gio/gmemoryoutputstream.go +0 -15
| @@ -294,7 +294,6 @@ var xMemoryOutputStreamGetData func(uintptr) uintptr | |||
| 294 | 294 | func (x *MemoryOutputStream) GetData() uintptr { | |
| 295 | 295 | ||
| 296 | 296 | cret := xMemoryOutputStreamGetData(x.GoPointer()) | |
| 297 | - | ||
| 298 | 297 | return cret | |
| 299 | 298 | } | |
| 300 | 299 | ||
| @@ -305,7 +304,6 @@ var xMemoryOutputStreamGetDataSize func(uintptr) uint | |||
| 305 | 304 | func (x *MemoryOutputStream) GetDataSize() uint { | |
| 306 | 305 | ||
| 307 | 306 | cret := xMemoryOutputStreamGetDataSize(x.GoPointer()) | |
| 308 | - | ||
| 309 | 307 | return cret | |
| 310 | 308 | } | |
| 311 | 309 | ||
| @@ -329,7 +327,6 @@ var xMemoryOutputStreamGetSize func(uintptr) uint | |||
| 329 | 327 | func (x *MemoryOutputStream) GetSize() uint { | |
| 330 | 328 | ||
| 331 | 329 | cret := xMemoryOutputStreamGetSize(x.GoPointer()) | |
| 332 | - | ||
| 333 | 330 | return cret | |
| 334 | 331 | } | |
| 335 | 332 | ||
| @@ -340,7 +337,6 @@ var xMemoryOutputStreamStealAsBytes func(uintptr) *glib.Bytes | |||
| 340 | 337 | func (x *MemoryOutputStream) StealAsBytes() *glib.Bytes { | |
| 341 | 338 | ||
| 342 | 339 | cret := xMemoryOutputStreamStealAsBytes(x.GoPointer()) | |
| 343 | - | ||
| 344 | 340 | return cret | |
| 345 | 341 | } | |
| 346 | 342 | ||
| @@ -355,7 +351,6 @@ var xMemoryOutputStreamStealData func(uintptr) uintptr | |||
| 355 | 351 | func (x *MemoryOutputStream) StealData() uintptr { | |
| 356 | 352 | ||
| 357 | 353 | cret := xMemoryOutputStreamStealData(x.GoPointer()) | |
| 358 | - | ||
| 359 | 354 | return cret | |
| 360 | 355 | } | |
| 361 | 356 | ||
| @@ -456,7 +451,6 @@ func (x *MemoryOutputStream) GetPropertySize() uint { | |||
| 456 | 451 | func (x *MemoryOutputStream) CanPoll() bool { | |
| 457 | 452 | ||
| 458 | 453 | cret := XGPollableOutputStreamCanPoll(x.GoPointer()) | |
| 459 | - | ||
| 460 | 454 | return cret | |
| 461 | 455 | } | |
| 462 | 456 | ||
| @@ -474,7 +468,6 @@ func (x *MemoryOutputStream) CanPoll() bool { | |||
| 474 | 468 | func (x *MemoryOutputStream) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 475 | 469 | ||
| 476 | 470 | cret := XGPollableOutputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 477 | - | ||
| 478 | 471 | return cret | |
| 479 | 472 | } | |
| 480 | 473 | ||
| @@ -492,7 +485,6 @@ func (x *MemoryOutputStream) CreateSource(CancellableVar *Cancellable) *glib.Sou | |||
| 492 | 485 | func (x *MemoryOutputStream) IsWritable() bool { | |
| 493 | 486 | ||
| 494 | 487 | cret := XGPollableOutputStreamIsWritable(x.GoPointer()) | |
| 495 | - | ||
| 496 | 488 | return cret | |
| 497 | 489 | } | |
| 498 | 490 | ||
| @@ -518,7 +510,6 @@ func (x *MemoryOutputStream) WriteNonblocking(BufferVar []byte, CountVar uint, C | |||
| 518 | 510 | var cerr *glib.Error | |
| 519 | 511 | ||
| 520 | 512 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 521 | - | ||
| 522 | 513 | if cerr == nil { | |
| 523 | 514 | return cret, nil | |
| 524 | 515 | } | |
| @@ -549,7 +540,6 @@ func (x *MemoryOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVecto | |||
| 549 | 540 | var cerr *glib.Error | |
| 550 | 541 | ||
| 551 | 542 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 552 | - | ||
| 553 | 543 | if cerr == nil { | |
| 554 | 544 | return cret, nil | |
| 555 | 545 | } | |
| @@ -561,7 +551,6 @@ func (x *MemoryOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVecto | |||
| 561 | 551 | func (x *MemoryOutputStream) CanSeek() bool { | |
| 562 | 552 | ||
| 563 | 553 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 564 | - | ||
| 565 | 554 | return cret | |
| 566 | 555 | } | |
| 567 | 556 | ||
| @@ -570,7 +559,6 @@ func (x *MemoryOutputStream) CanSeek() bool { | |||
| 570 | 559 | func (x *MemoryOutputStream) CanTruncate() bool { | |
| 571 | 560 | ||
| 572 | 561 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 573 | - | ||
| 574 | 562 | return cret | |
| 575 | 563 | } | |
| 576 | 564 | ||
| @@ -592,7 +580,6 @@ func (x *MemoryOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancel | |||
| 592 | 580 | var cerr *glib.Error | |
| 593 | 581 | ||
| 594 | 582 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 595 | - | ||
| 596 | 583 | if cerr == nil { | |
| 597 | 584 | return cret, nil | |
| 598 | 585 | } | |
| @@ -604,7 +591,6 @@ func (x *MemoryOutputStream) Seek(OffsetVar int64, TypeVar glib.SeekType, Cancel | |||
| 604 | 591 | func (x *MemoryOutputStream) Tell() int64 { | |
| 605 | 592 | ||
| 606 | 593 | cret := XGSeekableTell(x.GoPointer()) | |
| 607 | - | ||
| 608 | 594 | return cret | |
| 609 | 595 | } | |
| 610 | 596 | ||
| @@ -621,7 +607,6 @@ func (x *MemoryOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellab | |||
| 621 | 607 | var cerr *glib.Error | |
| 622 | 608 | ||
| 623 | 609 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 624 | - | ||
| 625 | 610 | if cerr == nil { | |
| 626 | 611 | return cret, nil | |
| 627 | 612 | } | |
M v4/gio/gmenu.go +42 -67
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -60,16 +58,14 @@ var xMenuAppend func(uintptr, uintptr, uintptr) | |||
| 60 | 58 | // flexible alternative. | |
| 61 | 59 | func (x *Menu) Append(LabelVar *string, DetailedActionVar *string) { | |
| 62 | 60 | ||
| 63 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 61 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 62 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 64 | 63 | ||
| 65 | - | DetailedActionVarPtr, DetailedActionVarBytes := core.NullableStringToPtr(DetailedActionVar) | |
| 64 | + | DetailedActionVarPtr := core.GStrdupNullable(DetailedActionVar) | |
| 65 | + | defer core.GFreeNullable(DetailedActionVarPtr) | |
| 66 | 66 | ||
| 67 | 67 | xMenuAppend(x.GoPointer(), LabelVarPtr, DetailedActionVarPtr) | |
| 68 | 68 | ||
| 69 | - | runtime.KeepAlive(LabelVarBytes) | |
| 70 | - | ||
| 71 | - | runtime.KeepAlive(DetailedActionVarBytes) | |
| 72 | - | ||
| 73 | 69 | } | |
| 74 | 70 | ||
| 75 | 71 | var xMenuAppendItem func(uintptr, uintptr) | |
| @@ -90,12 +86,11 @@ var xMenuAppendSection func(uintptr, uintptr, uintptr) | |||
| 90 | 86 | // more flexible alternative. | |
| 91 | 87 | func (x *Menu) AppendSection(LabelVar *string, SectionVar *MenuModel) { | |
| 92 | 88 | ||
| 93 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 89 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 90 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 94 | 91 | ||
| 95 | 92 | xMenuAppendSection(x.GoPointer(), LabelVarPtr, SectionVar.GoPointer()) | |
| 96 | 93 | ||
| 97 | - | runtime.KeepAlive(LabelVarBytes) | |
| 98 | - | ||
| 99 | 94 | } | |
| 100 | 95 | ||
| 101 | 96 | var xMenuAppendSubmenu func(uintptr, uintptr, uintptr) | |
| @@ -105,12 +100,11 @@ var xMenuAppendSubmenu func(uintptr, uintptr, uintptr) | |||
| 105 | 100 | // more flexible alternative. | |
| 106 | 101 | func (x *Menu) AppendSubmenu(LabelVar *string, SubmenuVar *MenuModel) { | |
| 107 | 102 | ||
| 108 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 103 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 104 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 109 | 105 | ||
| 110 | 106 | xMenuAppendSubmenu(x.GoPointer(), LabelVarPtr, SubmenuVar.GoPointer()) | |
| 111 | 107 | ||
| 112 | - | runtime.KeepAlive(LabelVarBytes) | |
| 113 | - | ||
| 114 | 108 | } | |
| 115 | 109 | ||
| 116 | 110 | var xMenuFreeze func(uintptr) | |
| @@ -136,16 +130,14 @@ var xMenuInsert func(uintptr, int, uintptr, uintptr) | |||
| 136 | 130 | // alternative. | |
| 137 | 131 | func (x *Menu) Insert(PositionVar int, LabelVar *string, DetailedActionVar *string) { | |
| 138 | 132 | ||
| 139 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 133 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 134 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 140 | 135 | ||
| 141 | - | DetailedActionVarPtr, DetailedActionVarBytes := core.NullableStringToPtr(DetailedActionVar) | |
| 136 | + | DetailedActionVarPtr := core.GStrdupNullable(DetailedActionVar) | |
| 137 | + | defer core.GFreeNullable(DetailedActionVarPtr) | |
| 142 | 138 | ||
| 143 | 139 | xMenuInsert(x.GoPointer(), PositionVar, LabelVarPtr, DetailedActionVarPtr) | |
| 144 | 140 | ||
| 145 | - | runtime.KeepAlive(LabelVarBytes) | |
| 146 | - | ||
| 147 | - | runtime.KeepAlive(DetailedActionVarBytes) | |
| 148 | - | ||
| 149 | 141 | } | |
| 150 | 142 | ||
| 151 | 143 | var xMenuInsertItem func(uintptr, int, uintptr) | |
| @@ -180,12 +172,11 @@ var xMenuInsertSection func(uintptr, int, uintptr, uintptr) | |||
| 180 | 172 | // flexible alternative. | |
| 181 | 173 | func (x *Menu) InsertSection(PositionVar int, LabelVar *string, SectionVar *MenuModel) { | |
| 182 | 174 | ||
| 183 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 175 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 176 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 184 | 177 | ||
| 185 | 178 | xMenuInsertSection(x.GoPointer(), PositionVar, LabelVarPtr, SectionVar.GoPointer()) | |
| 186 | 179 | ||
| 187 | - | runtime.KeepAlive(LabelVarBytes) | |
| 188 | - | ||
| 189 | 180 | } | |
| 190 | 181 | ||
| 191 | 182 | var xMenuInsertSubmenu func(uintptr, int, uintptr, uintptr) | |
| @@ -195,12 +186,11 @@ var xMenuInsertSubmenu func(uintptr, int, uintptr, uintptr) | |||
| 195 | 186 | // flexible alternative. | |
| 196 | 187 | func (x *Menu) InsertSubmenu(PositionVar int, LabelVar *string, SubmenuVar *MenuModel) { | |
| 197 | 188 | ||
| 198 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 189 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 190 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 199 | 191 | ||
| 200 | 192 | xMenuInsertSubmenu(x.GoPointer(), PositionVar, LabelVarPtr, SubmenuVar.GoPointer()) | |
| 201 | 193 | ||
| 202 | - | runtime.KeepAlive(LabelVarBytes) | |
| 203 | - | ||
| 204 | 194 | } | |
| 205 | 195 | ||
| 206 | 196 | var xMenuPrepend func(uintptr, uintptr, uintptr) | |
| @@ -210,16 +200,14 @@ var xMenuPrepend func(uintptr, uintptr, uintptr) | |||
| 210 | 200 | // flexible alternative. | |
| 211 | 201 | func (x *Menu) Prepend(LabelVar *string, DetailedActionVar *string) { | |
| 212 | 202 | ||
| 213 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 203 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 204 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 214 | 205 | ||
| 215 | - | DetailedActionVarPtr, DetailedActionVarBytes := core.NullableStringToPtr(DetailedActionVar) | |
| 206 | + | DetailedActionVarPtr := core.GStrdupNullable(DetailedActionVar) | |
| 207 | + | defer core.GFreeNullable(DetailedActionVarPtr) | |
| 216 | 208 | ||
| 217 | 209 | xMenuPrepend(x.GoPointer(), LabelVarPtr, DetailedActionVarPtr) | |
| 218 | 210 | ||
| 219 | - | runtime.KeepAlive(LabelVarBytes) | |
| 220 | - | ||
| 221 | - | runtime.KeepAlive(DetailedActionVarBytes) | |
| 222 | - | ||
| 223 | 211 | } | |
| 224 | 212 | ||
| 225 | 213 | var xMenuPrependItem func(uintptr, uintptr) | |
| @@ -240,12 +228,11 @@ var xMenuPrependSection func(uintptr, uintptr, uintptr) | |||
| 240 | 228 | // a more flexible alternative. | |
| 241 | 229 | func (x *Menu) PrependSection(LabelVar *string, SectionVar *MenuModel) { | |
| 242 | 230 | ||
| 243 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 231 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 232 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 244 | 233 | ||
| 245 | 234 | xMenuPrependSection(x.GoPointer(), LabelVarPtr, SectionVar.GoPointer()) | |
| 246 | 235 | ||
| 247 | - | runtime.KeepAlive(LabelVarBytes) | |
| 248 | - | ||
| 249 | 236 | } | |
| 250 | 237 | ||
| 251 | 238 | var xMenuPrependSubmenu func(uintptr, uintptr, uintptr) | |
| @@ -255,12 +242,11 @@ var xMenuPrependSubmenu func(uintptr, uintptr, uintptr) | |||
| 255 | 242 | // a more flexible alternative. | |
| 256 | 243 | func (x *Menu) PrependSubmenu(LabelVar *string, SubmenuVar *MenuModel) { | |
| 257 | 244 | ||
| 258 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 245 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 246 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 259 | 247 | ||
| 260 | 248 | xMenuPrependSubmenu(x.GoPointer(), LabelVarPtr, SubmenuVar.GoPointer()) | |
| 261 | 249 | ||
| 262 | - | runtime.KeepAlive(LabelVarBytes) | |
| 263 | - | ||
| 264 | 250 | } | |
| 265 | 251 | ||
| 266 | 252 | var xMenuRemove func(uintptr, int) | |
| @@ -332,16 +318,14 @@ var xNewMenuItem func(uintptr, uintptr) uintptr | |||
| 332 | 318 | func NewMenuItem(LabelVar *string, DetailedActionVar *string) *MenuItem { | |
| 333 | 319 | var cls *MenuItem | |
| 334 | 320 | ||
| 335 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 321 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 322 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 336 | 323 | ||
| 337 | - | DetailedActionVarPtr, DetailedActionVarBytes := core.NullableStringToPtr(DetailedActionVar) | |
| 324 | + | DetailedActionVarPtr := core.GStrdupNullable(DetailedActionVar) | |
| 325 | + | defer core.GFreeNullable(DetailedActionVarPtr) | |
| 338 | 326 | ||
| 339 | 327 | cret := xNewMenuItem(LabelVarPtr, DetailedActionVarPtr) | |
| 340 | 328 | ||
| 341 | - | runtime.KeepAlive(LabelVarBytes) | |
| 342 | - | ||
| 343 | - | runtime.KeepAlive(DetailedActionVarBytes) | |
| 344 | - | ||
| 345 | 329 | if cret == 0 { | |
| 346 | 330 | return nil | |
| 347 | 331 | } | |
| @@ -439,12 +423,11 @@ var xNewMenuItemSection func(uintptr, uintptr) uintptr | |||
| 439 | 423 | func NewMenuItemSection(LabelVar *string, SectionVar *MenuModel) *MenuItem { | |
| 440 | 424 | var cls *MenuItem | |
| 441 | 425 | ||
| 442 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 426 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 427 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 443 | 428 | ||
| 444 | 429 | cret := xNewMenuItemSection(LabelVarPtr, SectionVar.GoPointer()) | |
| 445 | 430 | ||
| 446 | - | runtime.KeepAlive(LabelVarBytes) | |
| 447 | - | ||
| 448 | 431 | if cret == 0 { | |
| 449 | 432 | return nil | |
| 450 | 433 | } | |
| @@ -462,12 +445,11 @@ var xNewMenuItemSubmenu func(uintptr, uintptr) uintptr | |||
| 462 | 445 | func NewMenuItemSubmenu(LabelVar *string, SubmenuVar *MenuModel) *MenuItem { | |
| 463 | 446 | var cls *MenuItem | |
| 464 | 447 | ||
| 465 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 448 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 449 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 466 | 450 | ||
| 467 | 451 | cret := xNewMenuItemSubmenu(LabelVarPtr, SubmenuVar.GoPointer()) | |
| 468 | 452 | ||
| 469 | - | runtime.KeepAlive(LabelVarBytes) | |
| 470 | - | ||
| 471 | 453 | if cret == 0 { | |
| 472 | 454 | return nil | |
| 473 | 455 | } | |
| @@ -490,7 +472,6 @@ var xMenuItemGetAttribute func(uintptr, string, string, ...interface{}) bool | |||
| 490 | 472 | func (x *MenuItem) GetAttribute(AttributeVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 491 | 473 | ||
| 492 | 474 | cret := xMenuItemGetAttribute(x.GoPointer(), AttributeVar, FormatStringVar, varArgs...) | |
| 493 | - | ||
| 494 | 475 | return cret | |
| 495 | 476 | } | |
| 496 | 477 | ||
| @@ -504,7 +485,6 @@ var xMenuItemGetAttributeValue func(uintptr, string, *glib.VariantType) *glib.Va | |||
| 504 | 485 | func (x *MenuItem) GetAttributeValue(AttributeVar string, ExpectedTypeVar *glib.VariantType) *glib.Variant { | |
| 505 | 486 | ||
| 506 | 487 | cret := xMenuItemGetAttributeValue(x.GoPointer(), AttributeVar, ExpectedTypeVar) | |
| 507 | - | ||
| 508 | 488 | return cret | |
| 509 | 489 | } | |
| 510 | 490 | ||
| @@ -547,16 +527,14 @@ var xMenuItemSetActionAndTarget func(uintptr, uintptr, uintptr, ...interface{}) | |||
| 547 | 527 | // description of the semantics of the action and target attributes. | |
| 548 | 528 | func (x *MenuItem) SetActionAndTarget(ActionVar *string, FormatStringVar *string, varArgs ...interface{}) { | |
| 549 | 529 | ||
| 550 | - | ActionVarPtr, ActionVarBytes := core.NullableStringToPtr(ActionVar) | |
| 530 | + | ActionVarPtr := core.GStrdupNullable(ActionVar) | |
| 531 | + | defer core.GFreeNullable(ActionVarPtr) | |
| 551 | 532 | ||
| 552 | - | FormatStringVarPtr, FormatStringVarBytes := core.NullableStringToPtr(FormatStringVar) | |
| 533 | + | FormatStringVarPtr := core.GStrdupNullable(FormatStringVar) | |
| 534 | + | defer core.GFreeNullable(FormatStringVarPtr) | |
| 553 | 535 | ||
| 554 | 536 | xMenuItemSetActionAndTarget(x.GoPointer(), ActionVarPtr, FormatStringVarPtr, varArgs...) | |
| 555 | 537 | ||
| 556 | - | runtime.KeepAlive(ActionVarBytes) | |
| 557 | - | ||
| 558 | - | runtime.KeepAlive(FormatStringVarBytes) | |
| 559 | - | ||
| 560 | 538 | } | |
| 561 | 539 | ||
| 562 | 540 | var xMenuItemSetActionAndTargetValue func(uintptr, uintptr, *glib.Variant) | |
| @@ -599,12 +577,11 @@ var xMenuItemSetActionAndTargetValue func(uintptr, uintptr, *glib.Variant) | |||
| 599 | 577 | // probably more convenient for most uses. | |
| 600 | 578 | func (x *MenuItem) SetActionAndTargetValue(ActionVar *string, TargetValueVar *glib.Variant) { | |
| 601 | 579 | ||
| 602 | - | ActionVarPtr, ActionVarBytes := core.NullableStringToPtr(ActionVar) | |
| 580 | + | ActionVarPtr := core.GStrdupNullable(ActionVar) | |
| 581 | + | defer core.GFreeNullable(ActionVarPtr) | |
| 603 | 582 | ||
| 604 | 583 | xMenuItemSetActionAndTargetValue(x.GoPointer(), ActionVarPtr, TargetValueVar) | |
| 605 | 584 | ||
| 606 | - | runtime.KeepAlive(ActionVarBytes) | |
| 607 | - | ||
| 608 | 585 | } | |
| 609 | 586 | ||
| 610 | 587 | var xMenuItemSetAttribute func(uintptr, string, uintptr, ...interface{}) | |
| @@ -628,12 +605,11 @@ var xMenuItemSetAttribute func(uintptr, string, uintptr, ...interface{}) | |||
| 628 | 605 | // that directly accepts a #GVariant. | |
| 629 | 606 | func (x *MenuItem) SetAttribute(AttributeVar string, FormatStringVar *string, varArgs ...interface{}) { | |
| 630 | 607 | ||
| 631 | - | FormatStringVarPtr, FormatStringVarBytes := core.NullableStringToPtr(FormatStringVar) | |
| 608 | + | FormatStringVarPtr := core.GStrdupNullable(FormatStringVar) | |
| 609 | + | defer core.GFreeNullable(FormatStringVarPtr) | |
| 632 | 610 | ||
| 633 | 611 | xMenuItemSetAttribute(x.GoPointer(), AttributeVar, FormatStringVarPtr, varArgs...) | |
| 634 | 612 | ||
| 635 | - | runtime.KeepAlive(FormatStringVarBytes) | |
| 636 | - | ||
| 637 | 613 | } | |
| 638 | 614 | ||
| 639 | 615 | var xMenuItemSetAttributeValue func(uintptr, string, *glib.Variant) | |
| @@ -710,12 +686,11 @@ var xMenuItemSetLabel func(uintptr, uintptr) | |||
| 710 | 686 | // it is %NULL then the label attribute is unset. | |
| 711 | 687 | func (x *MenuItem) SetLabel(LabelVar *string) { | |
| 712 | 688 | ||
| 713 | - | LabelVarPtr, LabelVarBytes := core.NullableStringToPtr(LabelVar) | |
| 689 | + | LabelVarPtr := core.GStrdupNullable(LabelVar) | |
| 690 | + | defer core.GFreeNullable(LabelVarPtr) | |
| 714 | 691 | ||
| 715 | 692 | xMenuItemSetLabel(x.GoPointer(), LabelVarPtr) | |
| 716 | 693 | ||
| 717 | - | runtime.KeepAlive(LabelVarBytes) | |
| 718 | - | ||
| 719 | 694 | } | |
| 720 | 695 | ||
| 721 | 696 | var xMenuItemSetLink func(uintptr, string, uintptr) | |
M v4/gio/gmenumodel.go +0 -11
| @@ -411,7 +411,6 @@ var xMenuAttributeIterGetName func(uintptr) string | |||
| 411 | 411 | func (x *MenuAttributeIter) GetName() string { | |
| 412 | 412 | ||
| 413 | 413 | cret := xMenuAttributeIterGetName(x.GoPointer()) | |
| 414 | - | ||
| 415 | 414 | return cret | |
| 416 | 415 | } | |
| 417 | 416 | ||
| @@ -435,7 +434,6 @@ var xMenuAttributeIterGetNext func(uintptr, *string, **glib.Variant) bool | |||
| 435 | 434 | func (x *MenuAttributeIter) GetNext(OutNameVar *string, ValueVar **glib.Variant) bool { | |
| 436 | 435 | ||
| 437 | 436 | cret := xMenuAttributeIterGetNext(x.GoPointer(), OutNameVar, ValueVar) | |
| 438 | - | ||
| 439 | 437 | return cret | |
| 440 | 438 | } | |
| 441 | 439 | ||
| @@ -447,7 +445,6 @@ var xMenuAttributeIterGetValue func(uintptr) *glib.Variant | |||
| 447 | 445 | func (x *MenuAttributeIter) GetValue() *glib.Variant { | |
| 448 | 446 | ||
| 449 | 447 | cret := xMenuAttributeIterGetValue(x.GoPointer()) | |
| 450 | - | ||
| 451 | 448 | return cret | |
| 452 | 449 | } | |
| 453 | 450 | ||
| @@ -465,7 +462,6 @@ var xMenuAttributeIterNext func(uintptr) bool | |||
| 465 | 462 | func (x *MenuAttributeIter) Next() bool { | |
| 466 | 463 | ||
| 467 | 464 | cret := xMenuAttributeIterNext(x.GoPointer()) | |
| 468 | - | ||
| 469 | 465 | return cret | |
| 470 | 466 | } | |
| 471 | 467 | ||
| @@ -506,7 +502,6 @@ var xMenuLinkIterGetName func(uintptr) string | |||
| 506 | 502 | func (x *MenuLinkIter) GetName() string { | |
| 507 | 503 | ||
| 508 | 504 | cret := xMenuLinkIterGetName(x.GoPointer()) | |
| 509 | - | ||
| 510 | 505 | return cret | |
| 511 | 506 | } | |
| 512 | 507 | ||
| @@ -529,7 +524,6 @@ var xMenuLinkIterGetNext func(uintptr, *string, **MenuModel) bool | |||
| 529 | 524 | func (x *MenuLinkIter) GetNext(OutLinkVar *string, ValueVar **MenuModel) bool { | |
| 530 | 525 | ||
| 531 | 526 | cret := xMenuLinkIterGetNext(x.GoPointer(), OutLinkVar, ValueVar) | |
| 532 | - | ||
| 533 | 527 | return cret | |
| 534 | 528 | } | |
| 535 | 529 | ||
| @@ -564,7 +558,6 @@ var xMenuLinkIterNext func(uintptr) bool | |||
| 564 | 558 | func (x *MenuLinkIter) Next() bool { | |
| 565 | 559 | ||
| 566 | 560 | cret := xMenuLinkIterNext(x.GoPointer()) | |
| 567 | - | ||
| 568 | 561 | return cret | |
| 569 | 562 | } | |
| 570 | 563 | ||
| @@ -737,7 +730,6 @@ var xMenuModelGetItemAttribute func(uintptr, int, string, string, ...interface{} | |||
| 737 | 730 | func (x *MenuModel) GetItemAttribute(ItemIndexVar int, AttributeVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 738 | 731 | ||
| 739 | 732 | cret := xMenuModelGetItemAttribute(x.GoPointer(), ItemIndexVar, AttributeVar, FormatStringVar, varArgs...) | |
| 740 | - | ||
| 741 | 733 | return cret | |
| 742 | 734 | } | |
| 743 | 735 | ||
| @@ -757,7 +749,6 @@ var xMenuModelGetItemAttributeValue func(uintptr, int, string, *glib.VariantType | |||
| 757 | 749 | func (x *MenuModel) GetItemAttributeValue(ItemIndexVar int, AttributeVar string, ExpectedTypeVar *glib.VariantType) *glib.Variant { | |
| 758 | 750 | ||
| 759 | 751 | cret := xMenuModelGetItemAttributeValue(x.GoPointer(), ItemIndexVar, AttributeVar, ExpectedTypeVar) | |
| 760 | - | ||
| 761 | 752 | return cret | |
| 762 | 753 | } | |
| 763 | 754 | ||
| @@ -787,7 +778,6 @@ var xMenuModelGetNItems func(uintptr) int | |||
| 787 | 778 | func (x *MenuModel) GetNItems() int { | |
| 788 | 779 | ||
| 789 | 780 | cret := xMenuModelGetNItems(x.GoPointer()) | |
| 790 | - | ||
| 791 | 781 | return cret | |
| 792 | 782 | } | |
| 793 | 783 | ||
| @@ -800,7 +790,6 @@ var xMenuModelIsMutable func(uintptr) bool | |||
| 800 | 790 | func (x *MenuModel) IsMutable() bool { | |
| 801 | 791 | ||
| 802 | 792 | cret := xMenuModelIsMutable(x.GoPointer()) | |
| 803 | - | ||
| 804 | 793 | return cret | |
| 805 | 794 | } | |
| 806 | 795 | ||
M v4/gio/gmount.go +0 -13
| @@ -899,7 +899,6 @@ func (x *MountBase) SetGoPointer(ptr uintptr) { | |||
| 899 | 899 | func (x *MountBase) CanEject() bool { | |
| 900 | 900 | ||
| 901 | 901 | cret := XGMountCanEject(x.GoPointer()) | |
| 902 | - | ||
| 903 | 902 | return cret | |
| 904 | 903 | } | |
| 905 | 904 | ||
| @@ -907,7 +906,6 @@ func (x *MountBase) CanEject() bool { | |||
| 907 | 906 | func (x *MountBase) CanUnmount() bool { | |
| 908 | 907 | ||
| 909 | 908 | cret := XGMountCanUnmount(x.GoPointer()) | |
| 910 | - | ||
| 911 | 909 | return cret | |
| 912 | 910 | } | |
| 913 | 911 | ||
| @@ -926,7 +924,6 @@ func (x *MountBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 926 | 924 | var cerr *glib.Error | |
| 927 | 925 | ||
| 928 | 926 | cret := XGMountEjectFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 929 | - | ||
| 930 | 927 | if cerr == nil { | |
| 931 | 928 | return cret, nil | |
| 932 | 929 | } | |
| @@ -949,7 +946,6 @@ func (x *MountBase) EjectWithOperationFinish(ResultVar AsyncResult) (bool, error | |||
| 949 | 946 | var cerr *glib.Error | |
| 950 | 947 | ||
| 951 | 948 | cret := XGMountEjectWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 952 | - | ||
| 953 | 949 | if cerr == nil { | |
| 954 | 950 | return cret, nil | |
| 955 | 951 | } | |
| @@ -1008,7 +1004,6 @@ func (x *MountBase) GetIcon() *IconBase { | |||
| 1008 | 1004 | func (x *MountBase) GetName() string { | |
| 1009 | 1005 | ||
| 1010 | 1006 | cret := XGMountGetName(x.GoPointer()) | |
| 1011 | - | ||
| 1012 | 1007 | return cret | |
| 1013 | 1008 | } | |
| 1014 | 1009 | ||
| @@ -1030,7 +1025,6 @@ func (x *MountBase) GetRoot() *FileBase { | |||
| 1030 | 1025 | func (x *MountBase) GetSortKey() string { | |
| 1031 | 1026 | ||
| 1032 | 1027 | cret := XGMountGetSortKey(x.GoPointer()) | |
| 1033 | - | ||
| 1034 | 1028 | return cret | |
| 1035 | 1029 | } | |
| 1036 | 1030 | ||
| @@ -1055,7 +1049,6 @@ func (x *MountBase) GetSymbolicIcon() *IconBase { | |||
| 1055 | 1049 | func (x *MountBase) GetUuid() string { | |
| 1056 | 1050 | ||
| 1057 | 1051 | cret := XGMountGetUuid(x.GoPointer()) | |
| 1058 | - | ||
| 1059 | 1052 | return cret | |
| 1060 | 1053 | } | |
| 1061 | 1054 | ||
| @@ -1099,7 +1092,6 @@ func (x *MountBase) GuessContentTypeFinish(ResultVar AsyncResult) ([]string, err | |||
| 1099 | 1092 | var cerr *glib.Error | |
| 1100 | 1093 | ||
| 1101 | 1094 | cret := XGMountGuessContentTypeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1102 | - | ||
| 1103 | 1095 | if cerr == nil { | |
| 1104 | 1096 | return cret, nil | |
| 1105 | 1097 | } | |
| @@ -1120,7 +1112,6 @@ func (x *MountBase) GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Ca | |||
| 1120 | 1112 | var cerr *glib.Error | |
| 1121 | 1113 | ||
| 1122 | 1114 | cret := XGMountGuessContentTypeSync(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), &cerr) | |
| 1123 | - | ||
| 1124 | 1115 | if cerr == nil { | |
| 1125 | 1116 | return cret, nil | |
| 1126 | 1117 | } | |
| @@ -1154,7 +1145,6 @@ func (x *MountBase) GuessContentTypeSync(ForceRescanVar bool, CancellableVar *Ca | |||
| 1154 | 1145 | func (x *MountBase) IsShadowed() bool { | |
| 1155 | 1146 | ||
| 1156 | 1147 | cret := XGMountIsShadowed(x.GoPointer()) | |
| 1157 | - | ||
| 1158 | 1148 | return cret | |
| 1159 | 1149 | } | |
| 1160 | 1150 | ||
| @@ -1179,7 +1169,6 @@ func (x *MountBase) RemountFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1179 | 1169 | var cerr *glib.Error | |
| 1180 | 1170 | ||
| 1181 | 1171 | cret := XGMountRemountFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1182 | - | ||
| 1183 | 1172 | if cerr == nil { | |
| 1184 | 1173 | return cret, nil | |
| 1185 | 1174 | } | |
| @@ -1212,7 +1201,6 @@ func (x *MountBase) UnmountFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1212 | 1201 | var cerr *glib.Error | |
| 1213 | 1202 | ||
| 1214 | 1203 | cret := XGMountUnmountFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1215 | - | ||
| 1216 | 1204 | if cerr == nil { | |
| 1217 | 1205 | return cret, nil | |
| 1218 | 1206 | } | |
| @@ -1235,7 +1223,6 @@ func (x *MountBase) UnmountWithOperationFinish(ResultVar AsyncResult) (bool, err | |||
| 1235 | 1223 | var cerr *glib.Error | |
| 1236 | 1224 | ||
| 1237 | 1225 | cret := XGMountUnmountWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1238 | - | ||
| 1239 | 1226 | if cerr == nil { | |
| 1240 | 1227 | return cret, nil | |
| 1241 | 1228 | } | |
M v4/gio/gmountoperation.go +6 -19
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -467,7 +466,6 @@ var xMountOperationGetAnonymous func(uintptr) bool | |||
| 467 | 466 | func (x *MountOperation) GetAnonymous() bool { | |
| 468 | 467 | ||
| 469 | 468 | cret := xMountOperationGetAnonymous(x.GoPointer()) | |
| 470 | - | ||
| 471 | 469 | return cret | |
| 472 | 470 | } | |
| 473 | 471 | ||
| @@ -477,7 +475,6 @@ var xMountOperationGetChoice func(uintptr) int | |||
| 477 | 475 | func (x *MountOperation) GetChoice() int { | |
| 478 | 476 | ||
| 479 | 477 | cret := xMountOperationGetChoice(x.GoPointer()) | |
| 480 | - | ||
| 481 | 478 | return cret | |
| 482 | 479 | } | |
| 483 | 480 | ||
| @@ -487,7 +484,6 @@ var xMountOperationGetDomain func(uintptr) string | |||
| 487 | 484 | func (x *MountOperation) GetDomain() string { | |
| 488 | 485 | ||
| 489 | 486 | cret := xMountOperationGetDomain(x.GoPointer()) | |
| 490 | - | ||
| 491 | 487 | return cret | |
| 492 | 488 | } | |
| 493 | 489 | ||
| @@ -498,7 +494,6 @@ var xMountOperationGetIsTcryptHiddenVolume func(uintptr) bool | |||
| 498 | 494 | func (x *MountOperation) GetIsTcryptHiddenVolume() bool { | |
| 499 | 495 | ||
| 500 | 496 | cret := xMountOperationGetIsTcryptHiddenVolume(x.GoPointer()) | |
| 501 | - | ||
| 502 | 497 | return cret | |
| 503 | 498 | } | |
| 504 | 499 | ||
| @@ -509,7 +504,6 @@ var xMountOperationGetIsTcryptSystemVolume func(uintptr) bool | |||
| 509 | 504 | func (x *MountOperation) GetIsTcryptSystemVolume() bool { | |
| 510 | 505 | ||
| 511 | 506 | cret := xMountOperationGetIsTcryptSystemVolume(x.GoPointer()) | |
| 512 | - | ||
| 513 | 507 | return cret | |
| 514 | 508 | } | |
| 515 | 509 | ||
| @@ -519,7 +513,6 @@ var xMountOperationGetPassword func(uintptr) string | |||
| 519 | 513 | func (x *MountOperation) GetPassword() string { | |
| 520 | 514 | ||
| 521 | 515 | cret := xMountOperationGetPassword(x.GoPointer()) | |
| 522 | - | ||
| 523 | 516 | return cret | |
| 524 | 517 | } | |
| 525 | 518 | ||
| @@ -529,7 +522,6 @@ var xMountOperationGetPasswordSave func(uintptr) PasswordSave | |||
| 529 | 522 | func (x *MountOperation) GetPasswordSave() PasswordSave { | |
| 530 | 523 | ||
| 531 | 524 | cret := xMountOperationGetPasswordSave(x.GoPointer()) | |
| 532 | - | ||
| 533 | 525 | return cret | |
| 534 | 526 | } | |
| 535 | 527 | ||
| @@ -539,7 +531,6 @@ var xMountOperationGetPim func(uintptr) uint | |||
| 539 | 531 | func (x *MountOperation) GetPim() uint { | |
| 540 | 532 | ||
| 541 | 533 | cret := xMountOperationGetPim(x.GoPointer()) | |
| 542 | - | ||
| 543 | 534 | return cret | |
| 544 | 535 | } | |
| 545 | 536 | ||
| @@ -549,7 +540,6 @@ var xMountOperationGetUsername func(uintptr) string | |||
| 549 | 540 | func (x *MountOperation) GetUsername() string { | |
| 550 | 541 | ||
| 551 | 542 | cret := xMountOperationGetUsername(x.GoPointer()) | |
| 552 | - | ||
| 553 | 543 | return cret | |
| 554 | 544 | } | |
| 555 | 545 | ||
| @@ -585,12 +575,11 @@ var xMountOperationSetDomain func(uintptr, uintptr) | |||
| 585 | 575 | // Sets the mount operation's domain. | |
| 586 | 576 | func (x *MountOperation) SetDomain(DomainVar *string) { | |
| 587 | 577 | ||
| 588 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 578 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 579 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 589 | 580 | ||
| 590 | 581 | xMountOperationSetDomain(x.GoPointer(), DomainVarPtr) | |
| 591 | 582 | ||
| 592 | - | runtime.KeepAlive(DomainVarBytes) | |
| 593 | - | ||
| 594 | 583 | } | |
| 595 | 584 | ||
| 596 | 585 | var xMountOperationSetIsTcryptHiddenVolume func(uintptr, bool) | |
| @@ -616,12 +605,11 @@ var xMountOperationSetPassword func(uintptr, uintptr) | |||
| 616 | 605 | // Sets the mount operation's password to @password. | |
| 617 | 606 | func (x *MountOperation) SetPassword(PasswordVar *string) { | |
| 618 | 607 | ||
| 619 | - | PasswordVarPtr, PasswordVarBytes := core.NullableStringToPtr(PasswordVar) | |
| 608 | + | PasswordVarPtr := core.GStrdupNullable(PasswordVar) | |
| 609 | + | defer core.GFreeNullable(PasswordVarPtr) | |
| 620 | 610 | ||
| 621 | 611 | xMountOperationSetPassword(x.GoPointer(), PasswordVarPtr) | |
| 622 | 612 | ||
| 623 | - | runtime.KeepAlive(PasswordVarBytes) | |
| 624 | - | ||
| 625 | 613 | } | |
| 626 | 614 | ||
| 627 | 615 | var xMountOperationSetPasswordSave func(uintptr, PasswordSave) | |
| @@ -647,12 +635,11 @@ var xMountOperationSetUsername func(uintptr, uintptr) | |||
| 647 | 635 | // Sets the user name within @op to @username. | |
| 648 | 636 | func (x *MountOperation) SetUsername(UsernameVar *string) { | |
| 649 | 637 | ||
| 650 | - | UsernameVarPtr, UsernameVarBytes := core.NullableStringToPtr(UsernameVar) | |
| 638 | + | UsernameVarPtr := core.GStrdupNullable(UsernameVar) | |
| 639 | + | defer core.GFreeNullable(UsernameVarPtr) | |
| 651 | 640 | ||
| 652 | 641 | xMountOperationSetUsername(x.GoPointer(), UsernameVarPtr) | |
| 653 | 642 | ||
| 654 | - | runtime.KeepAlive(UsernameVarBytes) | |
| 655 | - | ||
| 656 | 643 | } | |
| 657 | 644 | ||
| 658 | 645 | func (c *MountOperation) GoPointer() uintptr { | |
M v4/gio/gnativesocketaddress.go +0 -1
| @@ -119,7 +119,6 @@ func (x *NativeSocketAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 119 | 119 | func (x *NativeSocketAddress) ToString() string { | |
| 120 | 120 | ||
| 121 | 121 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 122 | - | ||
| 123 | 122 | return cret | |
| 124 | 123 | } | |
| 125 | 124 | ||
M v4/gio/gnetworkaddress.go +0 -4
| @@ -113,7 +113,6 @@ var xNetworkAddressGetHostname func(uintptr) string | |||
| 113 | 113 | func (x *NetworkAddress) GetHostname() string { | |
| 114 | 114 | ||
| 115 | 115 | cret := xNetworkAddressGetHostname(x.GoPointer()) | |
| 116 | - | ||
| 117 | 116 | return cret | |
| 118 | 117 | } | |
| 119 | 118 | ||
| @@ -123,7 +122,6 @@ var xNetworkAddressGetPort func(uintptr) uint16 | |||
| 123 | 122 | func (x *NetworkAddress) GetPort() uint16 { | |
| 124 | 123 | ||
| 125 | 124 | cret := xNetworkAddressGetPort(x.GoPointer()) | |
| 126 | - | ||
| 127 | 125 | return cret | |
| 128 | 126 | } | |
| 129 | 127 | ||
| @@ -133,7 +131,6 @@ var xNetworkAddressGetScheme func(uintptr) string | |||
| 133 | 131 | func (x *NetworkAddress) GetScheme() string { | |
| 134 | 132 | ||
| 135 | 133 | cret := xNetworkAddressGetScheme(x.GoPointer()) | |
| 136 | - | ||
| 137 | 134 | return cret | |
| 138 | 135 | } | |
| 139 | 136 | ||
| @@ -243,7 +240,6 @@ func (x *NetworkAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 243 | 240 | func (x *NetworkAddress) ToString() string { | |
| 244 | 241 | ||
| 245 | 242 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 246 | - | ||
| 247 | 243 | return cret | |
| 248 | 244 | } | |
| 249 | 245 | ||
M v4/gio/gnetworkmonitor.go +0 -5
| @@ -202,7 +202,6 @@ func (x *NetworkMonitorBase) CanReach(ConnectableVar SocketConnectable, Cancella | |||
| 202 | 202 | var cerr *glib.Error | |
| 203 | 203 | ||
| 204 | 204 | cret := XGNetworkMonitorCanReach(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 205 | - | ||
| 206 | 205 | if cerr == nil { | |
| 207 | 206 | return cret, nil | |
| 208 | 207 | } | |
| @@ -231,7 +230,6 @@ func (x *NetworkMonitorBase) CanReachFinish(ResultVar AsyncResult) (bool, error) | |||
| 231 | 230 | var cerr *glib.Error | |
| 232 | 231 | ||
| 233 | 232 | cret := XGNetworkMonitorCanReachFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 234 | - | ||
| 235 | 233 | if cerr == nil { | |
| 236 | 234 | return cret, nil | |
| 237 | 235 | } | |
| @@ -261,7 +259,6 @@ func (x *NetworkMonitorBase) CanReachFinish(ResultVar AsyncResult) (bool, error) | |||
| 261 | 259 | func (x *NetworkMonitorBase) GetConnectivity() NetworkConnectivity { | |
| 262 | 260 | ||
| 263 | 261 | cret := XGNetworkMonitorGetConnectivity(x.GoPointer()) | |
| 264 | - | ||
| 265 | 262 | return cret | |
| 266 | 263 | } | |
| 267 | 264 | ||
| @@ -272,7 +269,6 @@ func (x *NetworkMonitorBase) GetConnectivity() NetworkConnectivity { | |||
| 272 | 269 | func (x *NetworkMonitorBase) GetNetworkAvailable() bool { | |
| 273 | 270 | ||
| 274 | 271 | cret := XGNetworkMonitorGetNetworkAvailable(x.GoPointer()) | |
| 275 | - | ||
| 276 | 272 | return cret | |
| 277 | 273 | } | |
| 278 | 274 | ||
| @@ -281,7 +277,6 @@ func (x *NetworkMonitorBase) GetNetworkAvailable() bool { | |||
| 281 | 277 | func (x *NetworkMonitorBase) GetNetworkMetered() bool { | |
| 282 | 278 | ||
| 283 | 279 | cret := XGNetworkMonitorGetNetworkMetered(x.GoPointer()) | |
| 284 | - | ||
| 285 | 280 | return cret | |
| 286 | 281 | } | |
| 287 | 282 | ||
M v4/gio/gnetworkservice.go +0 -5
| @@ -79,7 +79,6 @@ var xNetworkServiceGetDomain func(uintptr) string | |||
| 79 | 79 | func (x *NetworkService) GetDomain() string { | |
| 80 | 80 | ||
| 81 | 81 | cret := xNetworkServiceGetDomain(x.GoPointer()) | |
| 82 | - | ||
| 83 | 82 | return cret | |
| 84 | 83 | } | |
| 85 | 84 | ||
| @@ -89,7 +88,6 @@ var xNetworkServiceGetProtocol func(uintptr) string | |||
| 89 | 88 | func (x *NetworkService) GetProtocol() string { | |
| 90 | 89 | ||
| 91 | 90 | cret := xNetworkServiceGetProtocol(x.GoPointer()) | |
| 92 | - | ||
| 93 | 91 | return cret | |
| 94 | 92 | } | |
| 95 | 93 | ||
| @@ -100,7 +98,6 @@ var xNetworkServiceGetScheme func(uintptr) string | |||
| 100 | 98 | func (x *NetworkService) GetScheme() string { | |
| 101 | 99 | ||
| 102 | 100 | cret := xNetworkServiceGetScheme(x.GoPointer()) | |
| 103 | - | ||
| 104 | 101 | return cret | |
| 105 | 102 | } | |
| 106 | 103 | ||
| @@ -110,7 +107,6 @@ var xNetworkServiceGetService func(uintptr) string | |||
| 110 | 107 | func (x *NetworkService) GetService() string { | |
| 111 | 108 | ||
| 112 | 109 | cret := xNetworkServiceGetService(x.GoPointer()) | |
| 113 | - | ||
| 114 | 110 | return cret | |
| 115 | 111 | } | |
| 116 | 112 | ||
| @@ -247,7 +243,6 @@ func (x *NetworkService) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 247 | 243 | func (x *NetworkService) ToString() string { | |
| 248 | 244 | ||
| 249 | 245 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 250 | - | ||
| 251 | 246 | return cret | |
| 252 | 247 | } | |
| 253 | 248 | ||
M v4/gio/gnotification.go +8 -14
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -120,12 +118,11 @@ var xNotificationAddButtonWithTarget func(uintptr, string, string, uintptr, ...i | |||
| 120 | 118 | // parameter. | |
| 121 | 119 | func (x *Notification) AddButtonWithTarget(LabelVar string, ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | |
| 122 | 120 | ||
| 123 | - | TargetFormatVarPtr, TargetFormatVarBytes := core.NullableStringToPtr(TargetFormatVar) | |
| 121 | + | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | |
| 122 | + | defer core.GFreeNullable(TargetFormatVarPtr) | |
| 124 | 123 | ||
| 125 | 124 | xNotificationAddButtonWithTarget(x.GoPointer(), LabelVar, ActionVar, TargetFormatVarPtr, varArgs...) | |
| 126 | 125 | ||
| 127 | - | runtime.KeepAlive(TargetFormatVarBytes) | |
| 128 | - | ||
| 129 | 126 | } | |
| 130 | 127 | ||
| 131 | 128 | var xNotificationAddButtonWithTargetValue func(uintptr, string, string, *glib.Variant) | |
| @@ -146,12 +143,11 @@ var xNotificationSetBody func(uintptr, uintptr) | |||
| 146 | 143 | // Sets the body of @notification to @body. | |
| 147 | 144 | func (x *Notification) SetBody(BodyVar *string) { | |
| 148 | 145 | ||
| 149 | - | BodyVarPtr, BodyVarBytes := core.NullableStringToPtr(BodyVar) | |
| 146 | + | BodyVarPtr := core.GStrdupNullable(BodyVar) | |
| 147 | + | defer core.GFreeNullable(BodyVarPtr) | |
| 150 | 148 | ||
| 151 | 149 | xNotificationSetBody(x.GoPointer(), BodyVarPtr) | |
| 152 | 150 | ||
| 153 | - | runtime.KeepAlive(BodyVarBytes) | |
| 154 | - | ||
| 155 | 151 | } | |
| 156 | 152 | ||
| 157 | 153 | var xNotificationSetCategory func(uintptr, uintptr) | |
| @@ -164,12 +160,11 @@ var xNotificationSetCategory func(uintptr, uintptr) | |||
| 164 | 160 | // Standard categories are [listed in the specification](https://specifications.freedesktop.org/notification-spec/latest/ar01s06.html). | |
| 165 | 161 | func (x *Notification) SetCategory(CategoryVar *string) { | |
| 166 | 162 | ||
| 167 | - | CategoryVarPtr, CategoryVarBytes := core.NullableStringToPtr(CategoryVar) | |
| 163 | + | CategoryVarPtr := core.GStrdupNullable(CategoryVar) | |
| 164 | + | defer core.GFreeNullable(CategoryVarPtr) | |
| 168 | 165 | ||
| 169 | 166 | xNotificationSetCategory(x.GoPointer(), CategoryVarPtr) | |
| 170 | 167 | ||
| 171 | - | runtime.KeepAlive(CategoryVarBytes) | |
| 172 | - | ||
| 173 | 168 | } | |
| 174 | 169 | ||
| 175 | 170 | var xNotificationSetDefaultAction func(uintptr, string) | |
| @@ -206,12 +201,11 @@ var xNotificationSetDefaultActionAndTarget func(uintptr, string, uintptr, ...int | |||
| 206 | 201 | // was sent on is activated. | |
| 207 | 202 | func (x *Notification) SetDefaultActionAndTarget(ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | |
| 208 | 203 | ||
| 209 | - | TargetFormatVarPtr, TargetFormatVarBytes := core.NullableStringToPtr(TargetFormatVar) | |
| 204 | + | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | |
| 205 | + | defer core.GFreeNullable(TargetFormatVarPtr) | |
| 210 | 206 | ||
| 211 | 207 | xNotificationSetDefaultActionAndTarget(x.GoPointer(), ActionVar, TargetFormatVarPtr, varArgs...) | |
| 212 | 208 | ||
| 213 | - | runtime.KeepAlive(TargetFormatVarBytes) | |
| 214 | - | ||
| 215 | 209 | } | |
| 216 | 210 | ||
| 217 | 211 | var xNotificationSetDefaultActionAndTargetValue func(uintptr, string, *glib.Variant) | |
M v4/gio/goutputstream.go +0 -22
| @@ -607,7 +607,6 @@ func (x *OutputStream) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 607 | 607 | var cerr *glib.Error | |
| 608 | 608 | ||
| 609 | 609 | cret := xOutputStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 610 | - | ||
| 611 | 610 | if cerr == nil { | |
| 612 | 611 | return cret, nil | |
| 613 | 612 | } | |
| @@ -655,7 +654,6 @@ func (x *OutputStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 655 | 654 | var cerr *glib.Error | |
| 656 | 655 | ||
| 657 | 656 | cret := xOutputStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 658 | - | ||
| 659 | 657 | if cerr == nil { | |
| 660 | 658 | return cret, nil | |
| 661 | 659 | } | |
| @@ -678,7 +676,6 @@ func (x *OutputStream) Flush(CancellableVar *Cancellable) (bool, error) { | |||
| 678 | 676 | var cerr *glib.Error | |
| 679 | 677 | ||
| 680 | 678 | cret := xOutputStreamFlush(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 681 | - | ||
| 682 | 679 | if cerr == nil { | |
| 683 | 680 | return cret, nil | |
| 684 | 681 | } | |
| @@ -723,7 +720,6 @@ func (x *OutputStream) FlushFinish(ResultVar AsyncResult) (bool, error) { | |||
| 723 | 720 | var cerr *glib.Error | |
| 724 | 721 | ||
| 725 | 722 | cret := xOutputStreamFlushFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 726 | - | ||
| 727 | 723 | if cerr == nil { | |
| 728 | 724 | return cret, nil | |
| 729 | 725 | } | |
| @@ -737,7 +733,6 @@ var xOutputStreamHasPending func(uintptr) bool | |||
| 737 | 733 | func (x *OutputStream) HasPending() bool { | |
| 738 | 734 | ||
| 739 | 735 | cret := xOutputStreamHasPending(x.GoPointer()) | |
| 740 | - | ||
| 741 | 736 | return cret | |
| 742 | 737 | } | |
| 743 | 738 | ||
| @@ -747,7 +742,6 @@ var xOutputStreamIsClosed func(uintptr) bool | |||
| 747 | 742 | func (x *OutputStream) IsClosed() bool { | |
| 748 | 743 | ||
| 749 | 744 | cret := xOutputStreamIsClosed(x.GoPointer()) | |
| 750 | - | ||
| 751 | 745 | return cret | |
| 752 | 746 | } | |
| 753 | 747 | ||
| @@ -760,7 +754,6 @@ var xOutputStreamIsClosing func(uintptr) bool | |||
| 760 | 754 | func (x *OutputStream) IsClosing() bool { | |
| 761 | 755 | ||
| 762 | 756 | cret := xOutputStreamIsClosing(x.GoPointer()) | |
| 763 | - | ||
| 764 | 757 | return cret | |
| 765 | 758 | } | |
| 766 | 759 | ||
| @@ -781,7 +774,6 @@ var xOutputStreamPrintf func(uintptr, *uint, uintptr, **glib.Error, string, ...i | |||
| 781 | 774 | func (x *OutputStream) Printf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, varArgs ...interface{}) bool { | |
| 782 | 775 | ||
| 783 | 776 | cret := xOutputStreamPrintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, varArgs...) | |
| 784 | - | ||
| 785 | 777 | return cret | |
| 786 | 778 | } | |
| 787 | 779 | ||
| @@ -794,7 +786,6 @@ func (x *OutputStream) SetPending() (bool, error) { | |||
| 794 | 786 | var cerr *glib.Error | |
| 795 | 787 | ||
| 796 | 788 | cret := xOutputStreamSetPending(x.GoPointer()) | |
| 797 | - | ||
| 798 | 789 | if cerr == nil { | |
| 799 | 790 | return cret, nil | |
| 800 | 791 | } | |
| @@ -809,7 +800,6 @@ func (x *OutputStream) Splice(SourceVar *InputStream, FlagsVar OutputStreamSplic | |||
| 809 | 800 | var cerr *glib.Error | |
| 810 | 801 | ||
| 811 | 802 | cret := xOutputStreamSplice(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 812 | - | ||
| 813 | 803 | if cerr == nil { | |
| 814 | 804 | return cret, nil | |
| 815 | 805 | } | |
| @@ -854,7 +844,6 @@ func (x *OutputStream) SpliceFinish(ResultVar AsyncResult) (int, error) { | |||
| 854 | 844 | var cerr *glib.Error | |
| 855 | 845 | ||
| 856 | 846 | cret := xOutputStreamSpliceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 857 | - | ||
| 858 | 847 | if cerr == nil { | |
| 859 | 848 | return cret, nil | |
| 860 | 849 | } | |
| @@ -879,7 +868,6 @@ var xOutputStreamVprintf func(uintptr, *uint, uintptr, **glib.Error, string, []i | |||
| 879 | 868 | func (x *OutputStream) Vprintf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, ArgsVar []interface{}) bool { | |
| 880 | 869 | ||
| 881 | 870 | cret := xOutputStreamVprintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, ArgsVar) | |
| 882 | - | ||
| 883 | 871 | return cret | |
| 884 | 872 | } | |
| 885 | 873 | ||
| @@ -909,7 +897,6 @@ func (x *OutputStream) Write(BufferVar []byte, CountVar uint, CancellableVar *Ca | |||
| 909 | 897 | var cerr *glib.Error | |
| 910 | 898 | ||
| 911 | 899 | cret := xOutputStreamWrite(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 912 | - | ||
| 913 | 900 | if cerr == nil { | |
| 914 | 901 | return cret, nil | |
| 915 | 902 | } | |
| @@ -942,7 +929,6 @@ func (x *OutputStream) WriteAll(BufferVar []byte, CountVar uint, BytesWrittenVar | |||
| 942 | 929 | var cerr *glib.Error | |
| 943 | 930 | ||
| 944 | 931 | cret := xOutputStreamWriteAll(x.GoPointer(), BufferVar, CountVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 945 | - | ||
| 946 | 932 | if cerr == nil { | |
| 947 | 933 | return cret, nil | |
| 948 | 934 | } | |
| @@ -1004,7 +990,6 @@ func (x *OutputStream) WriteAllFinish(ResultVar AsyncResult, BytesWrittenVar *ui | |||
| 1004 | 990 | var cerr *glib.Error | |
| 1005 | 991 | ||
| 1006 | 992 | cret := xOutputStreamWriteAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| 1007 | - | ||
| 1008 | 993 | if cerr == nil { | |
| 1009 | 994 | return cret, nil | |
| 1010 | 995 | } | |
| @@ -1087,7 +1072,6 @@ func (x *OutputStream) WriteBytes(BytesVar *glib.Bytes, CancellableVar *Cancella | |||
| 1087 | 1072 | var cerr *glib.Error | |
| 1088 | 1073 | ||
| 1089 | 1074 | cret := xOutputStreamWriteBytes(x.GoPointer(), BytesVar, CancellableVar.GoPointer(), &cerr) | |
| 1090 | - | ||
| 1091 | 1075 | if cerr == nil { | |
| 1092 | 1076 | return cret, nil | |
| 1093 | 1077 | } | |
| @@ -1138,7 +1122,6 @@ func (x *OutputStream) WriteBytesFinish(ResultVar AsyncResult) (int, error) { | |||
| 1138 | 1122 | var cerr *glib.Error | |
| 1139 | 1123 | ||
| 1140 | 1124 | cret := xOutputStreamWriteBytesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1141 | - | ||
| 1142 | 1125 | if cerr == nil { | |
| 1143 | 1126 | return cret, nil | |
| 1144 | 1127 | } | |
| @@ -1153,7 +1136,6 @@ func (x *OutputStream) WriteFinish(ResultVar AsyncResult) (int, error) { | |||
| 1153 | 1136 | var cerr *glib.Error | |
| 1154 | 1137 | ||
| 1155 | 1138 | cret := xOutputStreamWriteFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 1156 | - | ||
| 1157 | 1139 | if cerr == nil { | |
| 1158 | 1140 | return cret, nil | |
| 1159 | 1141 | } | |
| @@ -1190,7 +1172,6 @@ func (x *OutputStream) Writev(VectorsVar []OutputVector, NVectorsVar uint, Bytes | |||
| 1190 | 1172 | var cerr *glib.Error | |
| 1191 | 1173 | ||
| 1192 | 1174 | cret := xOutputStreamWritev(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 1193 | - | ||
| 1194 | 1175 | if cerr == nil { | |
| 1195 | 1176 | return cret, nil | |
| 1196 | 1177 | } | |
| @@ -1226,7 +1207,6 @@ func (x *OutputStream) WritevAll(VectorsVar []OutputVector, NVectorsVar uint, By | |||
| 1226 | 1207 | var cerr *glib.Error | |
| 1227 | 1208 | ||
| 1228 | 1209 | cret := xOutputStreamWritevAll(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 1229 | - | ||
| 1230 | 1210 | if cerr == nil { | |
| 1231 | 1211 | return cret, nil | |
| 1232 | 1212 | } | |
| @@ -1289,7 +1269,6 @@ func (x *OutputStream) WritevAllFinish(ResultVar AsyncResult, BytesWrittenVar *u | |||
| 1289 | 1269 | var cerr *glib.Error | |
| 1290 | 1270 | ||
| 1291 | 1271 | cret := xOutputStreamWritevAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| 1292 | - | ||
| 1293 | 1272 | if cerr == nil { | |
| 1294 | 1273 | return cret, nil | |
| 1295 | 1274 | } | |
| @@ -1357,7 +1336,6 @@ func (x *OutputStream) WritevFinish(ResultVar AsyncResult, BytesWrittenVar *uint | |||
| 1357 | 1336 | var cerr *glib.Error | |
| 1358 | 1337 | ||
| 1359 | 1338 | cret := xOutputStreamWritevFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| 1360 | - | ||
| 1361 | 1339 | if cerr == nil { | |
| 1362 | 1340 | return cret, nil | |
| 1363 | 1341 | } | |
M v4/gio/gpermission.go +0 -7
| @@ -234,7 +234,6 @@ func (x *Permission) Acquire(CancellableVar *Cancellable) (bool, error) { | |||
| 234 | 234 | var cerr *glib.Error | |
| 235 | 235 | ||
| 236 | 236 | cret := xPermissionAcquire(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 237 | - | ||
| 238 | 237 | if cerr == nil { | |
| 239 | 238 | return cret, nil | |
| 240 | 239 | } | |
| @@ -280,7 +279,6 @@ func (x *Permission) AcquireFinish(ResultVar AsyncResult) (bool, error) { | |||
| 280 | 279 | var cerr *glib.Error | |
| 281 | 280 | ||
| 282 | 281 | cret := xPermissionAcquireFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 283 | - | ||
| 284 | 282 | if cerr == nil { | |
| 285 | 283 | return cret, nil | |
| 286 | 284 | } | |
| @@ -296,7 +294,6 @@ var xPermissionGetAllowed func(uintptr) bool | |||
| 296 | 294 | func (x *Permission) GetAllowed() bool { | |
| 297 | 295 | ||
| 298 | 296 | cret := xPermissionGetAllowed(x.GoPointer()) | |
| 299 | - | ||
| 300 | 297 | return cret | |
| 301 | 298 | } | |
| 302 | 299 | ||
| @@ -308,7 +305,6 @@ var xPermissionGetCanAcquire func(uintptr) bool | |||
| 308 | 305 | func (x *Permission) GetCanAcquire() bool { | |
| 309 | 306 | ||
| 310 | 307 | cret := xPermissionGetCanAcquire(x.GoPointer()) | |
| 311 | - | ||
| 312 | 308 | return cret | |
| 313 | 309 | } | |
| 314 | 310 | ||
| @@ -320,7 +316,6 @@ var xPermissionGetCanRelease func(uintptr) bool | |||
| 320 | 316 | func (x *Permission) GetCanRelease() bool { | |
| 321 | 317 | ||
| 322 | 318 | cret := xPermissionGetCanRelease(x.GoPointer()) | |
| 323 | - | ||
| 324 | 319 | return cret | |
| 325 | 320 | } | |
| 326 | 321 | ||
| @@ -358,7 +353,6 @@ func (x *Permission) Release(CancellableVar *Cancellable) (bool, error) { | |||
| 358 | 353 | var cerr *glib.Error | |
| 359 | 354 | ||
| 360 | 355 | cret := xPermissionRelease(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 361 | - | ||
| 362 | 356 | if cerr == nil { | |
| 363 | 357 | return cret, nil | |
| 364 | 358 | } | |
| @@ -404,7 +398,6 @@ func (x *Permission) ReleaseFinish(ResultVar AsyncResult) (bool, error) { | |||
| 404 | 398 | var cerr *glib.Error | |
| 405 | 399 | ||
| 406 | 400 | cret := xPermissionReleaseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 407 | - | ||
| 408 | 401 | if cerr == nil { | |
| 409 | 402 | return cret, nil | |
| 410 | 403 | } | |
M v4/gio/gpollableinputstream.go +0 -4
| @@ -192,7 +192,6 @@ func (x *PollableInputStreamBase) SetGoPointer(ptr uintptr) { | |||
| 192 | 192 | func (x *PollableInputStreamBase) CanPoll() bool { | |
| 193 | 193 | ||
| 194 | 194 | cret := XGPollableInputStreamCanPoll(x.GoPointer()) | |
| 195 | - | ||
| 196 | 195 | return cret | |
| 197 | 196 | } | |
| 198 | 197 | ||
| @@ -210,7 +209,6 @@ func (x *PollableInputStreamBase) CanPoll() bool { | |||
| 210 | 209 | func (x *PollableInputStreamBase) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 211 | 210 | ||
| 212 | 211 | cret := XGPollableInputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 213 | - | ||
| 214 | 212 | return cret | |
| 215 | 213 | } | |
| 216 | 214 | ||
| @@ -228,7 +226,6 @@ func (x *PollableInputStreamBase) CreateSource(CancellableVar *Cancellable) *gli | |||
| 228 | 226 | func (x *PollableInputStreamBase) IsReadable() bool { | |
| 229 | 227 | ||
| 230 | 228 | cret := XGPollableInputStreamIsReadable(x.GoPointer()) | |
| 231 | - | ||
| 232 | 229 | return cret | |
| 233 | 230 | } | |
| 234 | 231 | ||
| @@ -250,7 +247,6 @@ func (x *PollableInputStreamBase) ReadNonblocking(BufferVar *[]byte, CountVar ui | |||
| 250 | 247 | var cerr *glib.Error | |
| 251 | 248 | ||
| 252 | 249 | cret := XGPollableInputStreamReadNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 253 | - | ||
| 254 | 250 | if cerr == nil { | |
| 255 | 251 | return cret, nil | |
| 256 | 252 | } | |
M v4/gio/gpollableoutputstream.go +0 -5
| @@ -230,7 +230,6 @@ func (x *PollableOutputStreamBase) SetGoPointer(ptr uintptr) { | |||
| 230 | 230 | func (x *PollableOutputStreamBase) CanPoll() bool { | |
| 231 | 231 | ||
| 232 | 232 | cret := XGPollableOutputStreamCanPoll(x.GoPointer()) | |
| 233 | - | ||
| 234 | 233 | return cret | |
| 235 | 234 | } | |
| 236 | 235 | ||
| @@ -248,7 +247,6 @@ func (x *PollableOutputStreamBase) CanPoll() bool { | |||
| 248 | 247 | func (x *PollableOutputStreamBase) CreateSource(CancellableVar *Cancellable) *glib.Source { | |
| 249 | 248 | ||
| 250 | 249 | cret := XGPollableOutputStreamCreateSource(x.GoPointer(), CancellableVar.GoPointer()) | |
| 251 | - | ||
| 252 | 250 | return cret | |
| 253 | 251 | } | |
| 254 | 252 | ||
| @@ -266,7 +264,6 @@ func (x *PollableOutputStreamBase) CreateSource(CancellableVar *Cancellable) *gl | |||
| 266 | 264 | func (x *PollableOutputStreamBase) IsWritable() bool { | |
| 267 | 265 | ||
| 268 | 266 | cret := XGPollableOutputStreamIsWritable(x.GoPointer()) | |
| 269 | - | ||
| 270 | 267 | return cret | |
| 271 | 268 | } | |
| 272 | 269 | ||
| @@ -292,7 +289,6 @@ func (x *PollableOutputStreamBase) WriteNonblocking(BufferVar []byte, CountVar u | |||
| 292 | 289 | var cerr *glib.Error | |
| 293 | 290 | ||
| 294 | 291 | cret := XGPollableOutputStreamWriteNonblocking(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 295 | - | ||
| 296 | 292 | if cerr == nil { | |
| 297 | 293 | return cret, nil | |
| 298 | 294 | } | |
| @@ -323,7 +319,6 @@ func (x *PollableOutputStreamBase) WritevNonblocking(VectorsVar []OutputVector, | |||
| 323 | 319 | var cerr *glib.Error | |
| 324 | 320 | ||
| 325 | 321 | cret := XGPollableOutputStreamWritevNonblocking(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 326 | - | ||
| 327 | 322 | if cerr == nil { | |
| 328 | 323 | return cret, nil | |
| 329 | 324 | } | |
M v4/gio/gpollableutils.go +0 -5
| @@ -18,7 +18,6 @@ var xPollableSourceNew func(uintptr) *glib.Source | |||
| 18 | 18 | func PollableSourceNew(PollableStreamVar *gobject.Object) *glib.Source { | |
| 19 | 19 | ||
| 20 | 20 | cret := xPollableSourceNew(PollableStreamVar.GoPointer()) | |
| 21 | - | ||
| 22 | 21 | return cret | |
| 23 | 22 | } | |
| 24 | 23 | ||
| @@ -31,7 +30,6 @@ var xPollableSourceNewFull func(uintptr, *glib.Source, uintptr) *glib.Source | |||
| 31 | 30 | func PollableSourceNewFull(PollableStreamVar *gobject.Object, ChildSourceVar *glib.Source, CancellableVar *Cancellable) *glib.Source { | |
| 32 | 31 | ||
| 33 | 32 | cret := xPollableSourceNewFull(PollableStreamVar.GoPointer(), ChildSourceVar, CancellableVar.GoPointer()) | |
| 34 | - | ||
| 35 | 33 | return cret | |
| 36 | 34 | } | |
| 37 | 35 | ||
| @@ -50,7 +48,6 @@ func PollableStreamRead(StreamVar *InputStream, BufferVar []byte, CountVar uint, | |||
| 50 | 48 | var cerr *glib.Error | |
| 51 | 49 | ||
| 52 | 50 | cret := xPollableStreamRead(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| 53 | - | ||
| 54 | 51 | if cerr == nil { | |
| 55 | 52 | return cret, nil | |
| 56 | 53 | } | |
| @@ -74,7 +71,6 @@ func PollableStreamWrite(StreamVar *OutputStream, BufferVar []byte, CountVar uin | |||
| 74 | 71 | var cerr *glib.Error | |
| 75 | 72 | ||
| 76 | 73 | cret := xPollableStreamWrite(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| 77 | - | ||
| 78 | 74 | if cerr == nil { | |
| 79 | 75 | return cret, nil | |
| 80 | 76 | } | |
| @@ -106,7 +102,6 @@ func PollableStreamWriteAll(StreamVar *OutputStream, BufferVar []byte, CountVar | |||
| 106 | 102 | var cerr *glib.Error | |
| 107 | 103 | ||
| 108 | 104 | cret := xPollableStreamWriteAll(StreamVar.GoPointer(), BufferVar, CountVar, BlockingVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 109 | - | ||
| 110 | 105 | if cerr == nil { | |
| 111 | 106 | return cret, nil | |
| 112 | 107 | } | |
M v4/gio/gpowerprofilemonitor.go +0 -1
| @@ -81,7 +81,6 @@ func (x *PowerProfileMonitorBase) SetGoPointer(ptr uintptr) { | |||
| 81 | 81 | func (x *PowerProfileMonitorBase) GetPowerSaverEnabled() bool { | |
| 82 | 82 | ||
| 83 | 83 | cret := XGPowerProfileMonitorGetPowerSaverEnabled(x.GoPointer()) | |
| 84 | - | ||
| 85 | 84 | return cret | |
| 86 | 85 | } | |
| 87 | 86 | ||
M v4/gio/gpropertyaction.go +0 -6
| @@ -234,7 +234,6 @@ func (x *PropertyAction) ChangeState(ValueVar *glib.Variant) { | |||
| 234 | 234 | func (x *PropertyAction) GetEnabled() bool { | |
| 235 | 235 | ||
| 236 | 236 | cret := XGActionGetEnabled(x.GoPointer()) | |
| 237 | - | ||
| 238 | 237 | return cret | |
| 239 | 238 | } | |
| 240 | 239 | ||
| @@ -242,7 +241,6 @@ func (x *PropertyAction) GetEnabled() bool { | |||
| 242 | 241 | func (x *PropertyAction) GetName() string { | |
| 243 | 242 | ||
| 244 | 243 | cret := XGActionGetName(x.GoPointer()) | |
| 245 | - | ||
| 246 | 244 | return cret | |
| 247 | 245 | } | |
| 248 | 246 | ||
| @@ -258,7 +256,6 @@ func (x *PropertyAction) GetName() string { | |||
| 258 | 256 | func (x *PropertyAction) GetParameterType() *glib.VariantType { | |
| 259 | 257 | ||
| 260 | 258 | cret := XGActionGetParameterType(x.GoPointer()) | |
| 261 | - | ||
| 262 | 259 | return cret | |
| 263 | 260 | } | |
| 264 | 261 | ||
| @@ -273,7 +270,6 @@ func (x *PropertyAction) GetParameterType() *glib.VariantType { | |||
| 273 | 270 | func (x *PropertyAction) GetState() *glib.Variant { | |
| 274 | 271 | ||
| 275 | 272 | cret := XGActionGetState(x.GoPointer()) | |
| 276 | - | ||
| 277 | 273 | return cret | |
| 278 | 274 | } | |
| 279 | 275 | ||
| @@ -298,7 +294,6 @@ func (x *PropertyAction) GetState() *glib.Variant { | |||
| 298 | 294 | func (x *PropertyAction) GetStateHint() *glib.Variant { | |
| 299 | 295 | ||
| 300 | 296 | cret := XGActionGetStateHint(x.GoPointer()) | |
| 301 | - | ||
| 302 | 297 | return cret | |
| 303 | 298 | } | |
| 304 | 299 | ||
| @@ -317,7 +312,6 @@ func (x *PropertyAction) GetStateHint() *glib.Variant { | |||
| 317 | 312 | func (x *PropertyAction) GetStateType() *glib.VariantType { | |
| 318 | 313 | ||
| 319 | 314 | cret := XGActionGetStateType(x.GoPointer()) | |
| 320 | - | ||
| 321 | 315 | return cret | |
| 322 | 316 | } | |
| 323 | 317 | ||
M v4/gio/gproxy.go +0 -1
| @@ -248,7 +248,6 @@ func (x *ProxyBase) ConnectFinish(ResultVar AsyncResult) (*IOStream, error) { | |||
| 248 | 248 | func (x *ProxyBase) SupportsHostname() bool { | |
| 249 | 249 | ||
| 250 | 250 | cret := XGProxySupportsHostname(x.GoPointer()) | |
| 251 | - | ||
| 252 | 251 | return cret | |
| 253 | 252 | } | |
| 254 | 253 | ||
M v4/gio/gproxyaddress.go +4 -15
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -59,16 +58,14 @@ var xNewProxyAddress func(uintptr, uint16, string, string, uint16, uintptr, uint | |||
| 59 | 58 | func NewProxyAddress(InetaddrVar *InetAddress, PortVar uint16, ProtocolVar string, DestHostnameVar string, DestPortVar uint16, UsernameVar *string, PasswordVar *string) *ProxyAddress { | |
| 60 | 59 | var cls *ProxyAddress | |
| 61 | 60 | ||
| 62 | - | UsernameVarPtr, UsernameVarBytes := core.NullableStringToPtr(UsernameVar) | |
| 61 | + | UsernameVarPtr := core.GStrdupNullable(UsernameVar) | |
| 62 | + | defer core.GFreeNullable(UsernameVarPtr) | |
| 63 | 63 | ||
| 64 | - | PasswordVarPtr, PasswordVarBytes := core.NullableStringToPtr(PasswordVar) | |
| 64 | + | PasswordVarPtr := core.GStrdupNullable(PasswordVar) | |
| 65 | + | defer core.GFreeNullable(PasswordVarPtr) | |
| 65 | 66 | ||
| 66 | 67 | cret := xNewProxyAddress(InetaddrVar.GoPointer(), PortVar, ProtocolVar, DestHostnameVar, DestPortVar, UsernameVarPtr, PasswordVarPtr) | |
| 67 | 68 | ||
| 68 | - | runtime.KeepAlive(UsernameVarBytes) | |
| 69 | - | ||
| 70 | - | runtime.KeepAlive(PasswordVarBytes) | |
| 71 | - | ||
| 72 | 69 | if cret == 0 { | |
| 73 | 70 | return nil | |
| 74 | 71 | } | |
| @@ -85,7 +82,6 @@ var xProxyAddressGetDestinationHostname func(uintptr) string | |||
| 85 | 82 | func (x *ProxyAddress) GetDestinationHostname() string { | |
| 86 | 83 | ||
| 87 | 84 | cret := xProxyAddressGetDestinationHostname(x.GoPointer()) | |
| 88 | - | ||
| 89 | 85 | return cret | |
| 90 | 86 | } | |
| 91 | 87 | ||
| @@ -97,7 +93,6 @@ var xProxyAddressGetDestinationPort func(uintptr) uint16 | |||
| 97 | 93 | func (x *ProxyAddress) GetDestinationPort() uint16 { | |
| 98 | 94 | ||
| 99 | 95 | cret := xProxyAddressGetDestinationPort(x.GoPointer()) | |
| 100 | - | ||
| 101 | 96 | return cret | |
| 102 | 97 | } | |
| 103 | 98 | ||
| @@ -108,7 +103,6 @@ var xProxyAddressGetDestinationProtocol func(uintptr) string | |||
| 108 | 103 | func (x *ProxyAddress) GetDestinationProtocol() string { | |
| 109 | 104 | ||
| 110 | 105 | cret := xProxyAddressGetDestinationProtocol(x.GoPointer()) | |
| 111 | - | ||
| 112 | 106 | return cret | |
| 113 | 107 | } | |
| 114 | 108 | ||
| @@ -118,7 +112,6 @@ var xProxyAddressGetPassword func(uintptr) string | |||
| 118 | 112 | func (x *ProxyAddress) GetPassword() string { | |
| 119 | 113 | ||
| 120 | 114 | cret := xProxyAddressGetPassword(x.GoPointer()) | |
| 121 | - | ||
| 122 | 115 | return cret | |
| 123 | 116 | } | |
| 124 | 117 | ||
| @@ -128,7 +121,6 @@ var xProxyAddressGetProtocol func(uintptr) string | |||
| 128 | 121 | func (x *ProxyAddress) GetProtocol() string { | |
| 129 | 122 | ||
| 130 | 123 | cret := xProxyAddressGetProtocol(x.GoPointer()) | |
| 131 | - | ||
| 132 | 124 | return cret | |
| 133 | 125 | } | |
| 134 | 126 | ||
| @@ -138,7 +130,6 @@ var xProxyAddressGetUri func(uintptr) string | |||
| 138 | 130 | func (x *ProxyAddress) GetUri() string { | |
| 139 | 131 | ||
| 140 | 132 | cret := xProxyAddressGetUri(x.GoPointer()) | |
| 141 | - | ||
| 142 | 133 | return cret | |
| 143 | 134 | } | |
| 144 | 135 | ||
| @@ -148,7 +139,6 @@ var xProxyAddressGetUsername func(uintptr) string | |||
| 148 | 139 | func (x *ProxyAddress) GetUsername() string { | |
| 149 | 140 | ||
| 150 | 141 | cret := xProxyAddressGetUsername(x.GoPointer()) | |
| 151 | - | ||
| 152 | 142 | return cret | |
| 153 | 143 | } | |
| 154 | 144 | ||
| @@ -330,7 +320,6 @@ func (x *ProxyAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 330 | 320 | func (x *ProxyAddress) ToString() string { | |
| 331 | 321 | ||
| 332 | 322 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 333 | - | ||
| 334 | 323 | return cret | |
| 335 | 324 | } | |
| 336 | 325 | ||
M v4/gio/gproxyresolver.go +0 -3
| @@ -183,7 +183,6 @@ func (x *ProxyResolverBase) SetGoPointer(ptr uintptr) { | |||
| 183 | 183 | func (x *ProxyResolverBase) IsSupported() bool { | |
| 184 | 184 | ||
| 185 | 185 | cret := XGProxyResolverIsSupported(x.GoPointer()) | |
| 186 | - | ||
| 187 | 186 | return cret | |
| 188 | 187 | } | |
| 189 | 188 | ||
| @@ -206,7 +205,6 @@ func (x *ProxyResolverBase) Lookup(UriVar string, CancellableVar *Cancellable) ( | |||
| 206 | 205 | var cerr *glib.Error | |
| 207 | 206 | ||
| 208 | 207 | cret := XGProxyResolverLookup(x.GoPointer(), UriVar, CancellableVar.GoPointer(), &cerr) | |
| 209 | - | ||
| 210 | 208 | if cerr == nil { | |
| 211 | 209 | return cret, nil | |
| 212 | 210 | } | |
| @@ -229,7 +227,6 @@ func (x *ProxyResolverBase) LookupFinish(ResultVar AsyncResult) ([]string, error | |||
| 229 | 227 | var cerr *glib.Error | |
| 230 | 228 | ||
| 231 | 229 | cret := XGProxyResolverLookupFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 232 | - | ||
| 233 | 230 | if cerr == nil { | |
| 234 | 231 | return cret, nil | |
| 235 | 232 | } | |
M v4/gio/gresolver.go +0 -12
| @@ -455,7 +455,6 @@ var xResolverErrorQuark func() glib.Quark | |||
| 455 | 455 | func ResolverErrorQuark() glib.Quark { | |
| 456 | 456 | ||
| 457 | 457 | cret := xResolverErrorQuark() | |
| 458 | - | ||
| 459 | 458 | return cret | |
| 460 | 459 | } | |
| 461 | 460 | ||
| @@ -500,7 +499,6 @@ var xResolverGetTimeout func(uintptr) uint | |||
| 500 | 499 | func (x *Resolver) GetTimeout() uint { | |
| 501 | 500 | ||
| 502 | 501 | cret := xResolverGetTimeout(x.GoPointer()) | |
| 503 | - | ||
| 504 | 502 | return cret | |
| 505 | 503 | } | |
| 506 | 504 | ||
| @@ -519,7 +517,6 @@ func (x *Resolver) LookupByAddress(AddressVar *InetAddress, CancellableVar *Canc | |||
| 519 | 517 | var cerr *glib.Error | |
| 520 | 518 | ||
| 521 | 519 | cret := xResolverLookupByAddress(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 522 | - | ||
| 523 | 520 | if cerr == nil { | |
| 524 | 521 | return cret, nil | |
| 525 | 522 | } | |
| @@ -565,7 +562,6 @@ func (x *Resolver) LookupByAddressFinish(ResultVar AsyncResult) (string, error) | |||
| 565 | 562 | var cerr *glib.Error | |
| 566 | 563 | ||
| 567 | 564 | cret := xResolverLookupByAddressFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 568 | - | ||
| 569 | 565 | if cerr == nil { | |
| 570 | 566 | return cret, nil | |
| 571 | 567 | } | |
| @@ -602,7 +598,6 @@ func (x *Resolver) LookupByName(HostnameVar string, CancellableVar *Cancellable) | |||
| 602 | 598 | var cerr *glib.Error | |
| 603 | 599 | ||
| 604 | 600 | cret := xResolverLookupByName(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | |
| 605 | - | ||
| 606 | 601 | if cerr == nil { | |
| 607 | 602 | return cret, nil | |
| 608 | 603 | } | |
| @@ -649,7 +644,6 @@ func (x *Resolver) LookupByNameFinish(ResultVar AsyncResult) (*glib.List, error) | |||
| 649 | 644 | var cerr *glib.Error | |
| 650 | 645 | ||
| 651 | 646 | cret := xResolverLookupByNameFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 652 | - | ||
| 653 | 647 | if cerr == nil { | |
| 654 | 648 | return cret, nil | |
| 655 | 649 | } | |
| @@ -666,7 +660,6 @@ func (x *Resolver) LookupByNameWithFlags(HostnameVar string, FlagsVar ResolverNa | |||
| 666 | 660 | var cerr *glib.Error | |
| 667 | 661 | ||
| 668 | 662 | cret := xResolverLookupByNameWithFlags(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 669 | - | ||
| 670 | 663 | if cerr == nil { | |
| 671 | 664 | return cret, nil | |
| 672 | 665 | } | |
| @@ -713,7 +706,6 @@ func (x *Resolver) LookupByNameWithFlagsFinish(ResultVar AsyncResult) (*glib.Lis | |||
| 713 | 706 | var cerr *glib.Error | |
| 714 | 707 | ||
| 715 | 708 | cret := xResolverLookupByNameWithFlagsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 716 | - | ||
| 717 | 709 | if cerr == nil { | |
| 718 | 710 | return cret, nil | |
| 719 | 711 | } | |
| @@ -737,7 +729,6 @@ func (x *Resolver) LookupRecords(RrnameVar string, RecordTypeVar ResolverRecordT | |||
| 737 | 729 | var cerr *glib.Error | |
| 738 | 730 | ||
| 739 | 731 | cret := xResolverLookupRecords(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | |
| 740 | - | ||
| 741 | 732 | if cerr == nil { | |
| 742 | 733 | return cret, nil | |
| 743 | 734 | } | |
| @@ -786,7 +777,6 @@ func (x *Resolver) LookupRecordsFinish(ResultVar AsyncResult) (*glib.List, error | |||
| 786 | 777 | var cerr *glib.Error | |
| 787 | 778 | ||
| 788 | 779 | cret := xResolverLookupRecordsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 789 | - | ||
| 790 | 780 | if cerr == nil { | |
| 791 | 781 | return cret, nil | |
| 792 | 782 | } | |
| @@ -821,7 +811,6 @@ func (x *Resolver) LookupService(ServiceVar string, ProtocolVar string, DomainVa | |||
| 821 | 811 | var cerr *glib.Error | |
| 822 | 812 | ||
| 823 | 813 | cret := xResolverLookupService(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), &cerr) | |
| 824 | - | ||
| 825 | 814 | if cerr == nil { | |
| 826 | 815 | return cret, nil | |
| 827 | 816 | } | |
| @@ -869,7 +858,6 @@ func (x *Resolver) LookupServiceFinish(ResultVar AsyncResult) (*glib.List, error | |||
| 869 | 858 | var cerr *glib.Error | |
| 870 | 859 | ||
| 871 | 860 | cret := xResolverLookupServiceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 872 | - | ||
| 873 | 861 | if cerr == nil { | |
| 874 | 862 | return cret, nil | |
| 875 | 863 | } | |
M v4/gio/gresource.go +0 -7
| @@ -55,7 +55,6 @@ var xStaticResourceGetResource func(uintptr) *Resource | |||
| 55 | 55 | func (x *StaticResource) GetResource() *Resource { | |
| 56 | 56 | ||
| 57 | 57 | cret := xStaticResourceGetResource(x.GoPointer()) | |
| 58 | - | ||
| 59 | 58 | return cret | |
| 60 | 59 | } | |
| 61 | 60 | ||
| @@ -79,7 +78,6 @@ var xResourceErrorQuark func() glib.Quark | |||
| 79 | 78 | func ResourceErrorQuark() glib.Quark { | |
| 80 | 79 | ||
| 81 | 80 | cret := xResourceErrorQuark() | |
| 82 | - | ||
| 83 | 81 | return cret | |
| 84 | 82 | } | |
| 85 | 83 | ||
| @@ -99,7 +97,6 @@ func ResourceLoad(FilenameVar string) (*Resource, error) { | |||
| 99 | 97 | var cerr *glib.Error | |
| 100 | 98 | ||
| 101 | 99 | cret := xResourceLoad(FilenameVar, &cerr) | |
| 102 | - | ||
| 103 | 100 | if cerr == nil { | |
| 104 | 101 | return cret, nil | |
| 105 | 102 | } | |
| @@ -120,7 +117,6 @@ func ResourcesEnumerateChildren(PathVar string, LookupFlagsVar ResourceLookupFla | |||
| 120 | 117 | var cerr *glib.Error | |
| 121 | 118 | ||
| 122 | 119 | cret := xResourcesEnumerateChildren(PathVar, LookupFlagsVar, &cerr) | |
| 123 | - | ||
| 124 | 120 | if cerr == nil { | |
| 125 | 121 | return cret, nil | |
| 126 | 122 | } | |
| @@ -138,7 +134,6 @@ func ResourcesGetInfo(PathVar string, LookupFlagsVar ResourceLookupFlags, SizeVa | |||
| 138 | 134 | var cerr *glib.Error | |
| 139 | 135 | ||
| 140 | 136 | cret := xResourcesGetInfo(PathVar, LookupFlagsVar, SizeVar, FlagsVar, &cerr) | |
| 141 | - | ||
| 142 | 137 | if cerr == nil { | |
| 143 | 138 | return cret, nil | |
| 144 | 139 | } | |
| @@ -153,7 +148,6 @@ var xResourcesHasChildren func(string) bool | |||
| 153 | 148 | func ResourcesHasChildren(PathVar string) bool { | |
| 154 | 149 | ||
| 155 | 150 | cret := xResourcesHasChildren(PathVar) | |
| 156 | - | ||
| 157 | 151 | return cret | |
| 158 | 152 | } | |
| 159 | 153 | ||
| @@ -177,7 +171,6 @@ func ResourcesLookupData(PathVar string, LookupFlagsVar ResourceLookupFlags) (*g | |||
| 177 | 171 | var cerr *glib.Error | |
| 178 | 172 | ||
| 179 | 173 | cret := xResourcesLookupData(PathVar, LookupFlagsVar, &cerr) | |
| 180 | - | ||
| 181 | 174 | if cerr == nil { | |
| 182 | 175 | return cret, nil | |
| 183 | 176 | } | |
M v4/gio/gseekable.go +0 -5
| @@ -206,7 +206,6 @@ func (x *SeekableBase) SetGoPointer(ptr uintptr) { | |||
| 206 | 206 | func (x *SeekableBase) CanSeek() bool { | |
| 207 | 207 | ||
| 208 | 208 | cret := XGSeekableCanSeek(x.GoPointer()) | |
| 209 | - | ||
| 210 | 209 | return cret | |
| 211 | 210 | } | |
| 212 | 211 | ||
| @@ -215,7 +214,6 @@ func (x *SeekableBase) CanSeek() bool { | |||
| 215 | 214 | func (x *SeekableBase) CanTruncate() bool { | |
| 216 | 215 | ||
| 217 | 216 | cret := XGSeekableCanTruncate(x.GoPointer()) | |
| 218 | - | ||
| 219 | 217 | return cret | |
| 220 | 218 | } | |
| 221 | 219 | ||
| @@ -237,7 +235,6 @@ func (x *SeekableBase) Seek(OffsetVar int64, TypeVar glib.SeekType, CancellableV | |||
| 237 | 235 | var cerr *glib.Error | |
| 238 | 236 | ||
| 239 | 237 | cret := XGSeekableSeek(x.GoPointer(), OffsetVar, TypeVar, CancellableVar.GoPointer(), &cerr) | |
| 240 | - | ||
| 241 | 238 | if cerr == nil { | |
| 242 | 239 | return cret, nil | |
| 243 | 240 | } | |
| @@ -249,7 +246,6 @@ func (x *SeekableBase) Seek(OffsetVar int64, TypeVar glib.SeekType, CancellableV | |||
| 249 | 246 | func (x *SeekableBase) Tell() int64 { | |
| 250 | 247 | ||
| 251 | 248 | cret := XGSeekableTell(x.GoPointer()) | |
| 252 | - | ||
| 253 | 249 | return cret | |
| 254 | 250 | } | |
| 255 | 251 | ||
| @@ -266,7 +262,6 @@ func (x *SeekableBase) Truncate(OffsetVar int64, CancellableVar *Cancellable) (b | |||
| 266 | 262 | var cerr *glib.Error | |
| 267 | 263 | ||
| 268 | 264 | cret := XGSeekableTruncate(x.GoPointer(), OffsetVar, CancellableVar.GoPointer(), &cerr) | |
| 269 | - | ||
| 270 | 265 | if cerr == nil { | |
| 271 | 266 | return cret, nil | |
| 272 | 267 | } | |
M v4/gio/gsettings.go +2 -38
| @@ -3,7 +3,6 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "fmt" | |
| 6 | - | "runtime" | |
| 7 | 6 | "structs" | |
| 8 | 7 | "unsafe" | |
| 9 | 8 | ||
| @@ -659,12 +658,11 @@ var xNewSettingsFull func(*SettingsSchema, uintptr, uintptr) uintptr | |||
| 659 | 658 | func NewSettingsFull(SchemaVar *SettingsSchema, BackendVar *SettingsBackend, PathVar *string) *Settings { | |
| 660 | 659 | var cls *Settings | |
| 661 | 660 | ||
| 662 | - | PathVarPtr, PathVarBytes := core.NullableStringToPtr(PathVar) | |
| 661 | + | PathVarPtr := core.GStrdupNullable(PathVar) | |
| 662 | + | defer core.GFreeNullable(PathVarPtr) | |
| 663 | 663 | ||
| 664 | 664 | cret := xNewSettingsFull(SchemaVar, BackendVar.GoPointer(), PathVarPtr) | |
| 665 | 665 | ||
| 666 | - | runtime.KeepAlive(PathVarBytes) | |
| 667 | - | ||
| 668 | 666 | if cret == 0 { | |
| 669 | 667 | return nil | |
| 670 | 668 | } | |
| @@ -954,7 +952,6 @@ var xSettingsGetBoolean func(uintptr, string) bool | |||
| 954 | 952 | func (x *Settings) GetBoolean(KeyVar string) bool { | |
| 955 | 953 | ||
| 956 | 954 | cret := xSettingsGetBoolean(x.GoPointer(), KeyVar) | |
| 957 | - | ||
| 958 | 955 | return cret | |
| 959 | 956 | } | |
| 960 | 957 | ||
| @@ -1008,7 +1005,6 @@ var xSettingsGetDefaultValue func(uintptr, string) *glib.Variant | |||
| 1008 | 1005 | func (x *Settings) GetDefaultValue(KeyVar string) *glib.Variant { | |
| 1009 | 1006 | ||
| 1010 | 1007 | cret := xSettingsGetDefaultValue(x.GoPointer(), KeyVar) | |
| 1011 | - | ||
| 1012 | 1008 | return cret | |
| 1013 | 1009 | } | |
| 1014 | 1010 | ||
| @@ -1023,7 +1019,6 @@ var xSettingsGetDouble func(uintptr, string) float64 | |||
| 1023 | 1019 | func (x *Settings) GetDouble(KeyVar string) float64 { | |
| 1024 | 1020 | ||
| 1025 | 1021 | cret := xSettingsGetDouble(x.GoPointer(), KeyVar) | |
| 1026 | - | ||
| 1027 | 1022 | return cret | |
| 1028 | 1023 | } | |
| 1029 | 1024 | ||
| @@ -1044,7 +1039,6 @@ var xSettingsGetEnum func(uintptr, string) int | |||
| 1044 | 1039 | func (x *Settings) GetEnum(KeyVar string) int { | |
| 1045 | 1040 | ||
| 1046 | 1041 | cret := xSettingsGetEnum(x.GoPointer(), KeyVar) | |
| 1047 | - | ||
| 1048 | 1042 | return cret | |
| 1049 | 1043 | } | |
| 1050 | 1044 | ||
| @@ -1065,7 +1059,6 @@ var xSettingsGetFlags func(uintptr, string) uint | |||
| 1065 | 1059 | func (x *Settings) GetFlags(KeyVar string) uint { | |
| 1066 | 1060 | ||
| 1067 | 1061 | cret := xSettingsGetFlags(x.GoPointer(), KeyVar) | |
| 1068 | - | ||
| 1069 | 1062 | return cret | |
| 1070 | 1063 | } | |
| 1071 | 1064 | ||
| @@ -1079,7 +1072,6 @@ var xSettingsGetHasUnapplied func(uintptr) bool | |||
| 1079 | 1072 | func (x *Settings) GetHasUnapplied() bool { | |
| 1080 | 1073 | ||
| 1081 | 1074 | cret := xSettingsGetHasUnapplied(x.GoPointer()) | |
| 1082 | - | ||
| 1083 | 1075 | return cret | |
| 1084 | 1076 | } | |
| 1085 | 1077 | ||
| @@ -1094,7 +1086,6 @@ var xSettingsGetInt func(uintptr, string) int | |||
| 1094 | 1086 | func (x *Settings) GetInt(KeyVar string) int { | |
| 1095 | 1087 | ||
| 1096 | 1088 | cret := xSettingsGetInt(x.GoPointer(), KeyVar) | |
| 1097 | - | ||
| 1098 | 1089 | return cret | |
| 1099 | 1090 | } | |
| 1100 | 1091 | ||
| @@ -1109,7 +1100,6 @@ var xSettingsGetInt64 func(uintptr, string) int64 | |||
| 1109 | 1100 | func (x *Settings) GetInt64(KeyVar string) int64 { | |
| 1110 | 1101 | ||
| 1111 | 1102 | cret := xSettingsGetInt64(x.GoPointer(), KeyVar) | |
| 1112 | - | ||
| 1113 | 1103 | return cret | |
| 1114 | 1104 | } | |
| 1115 | 1105 | ||
| @@ -1160,7 +1150,6 @@ func (x *Settings) GetMapped(KeyVar string, MappingVar *SettingsGetMapping, User | |||
| 1160 | 1150 | } | |
| 1161 | 1151 | ||
| 1162 | 1152 | cret := xSettingsGetMapped(x.GoPointer(), KeyVar, MappingVarRef, UserDataVar) | |
| 1163 | - | ||
| 1164 | 1153 | return cret | |
| 1165 | 1154 | } | |
| 1166 | 1155 | ||
| @@ -1170,7 +1159,6 @@ var xSettingsGetRange func(uintptr, string) *glib.Variant | |||
| 1170 | 1159 | func (x *Settings) GetRange(KeyVar string) *glib.Variant { | |
| 1171 | 1160 | ||
| 1172 | 1161 | cret := xSettingsGetRange(x.GoPointer(), KeyVar) | |
| 1173 | - | ||
| 1174 | 1162 | return cret | |
| 1175 | 1163 | } | |
| 1176 | 1164 | ||
| @@ -1185,7 +1173,6 @@ var xSettingsGetString func(uintptr, string) string | |||
| 1185 | 1173 | func (x *Settings) GetString(KeyVar string) string { | |
| 1186 | 1174 | ||
| 1187 | 1175 | cret := xSettingsGetString(x.GoPointer(), KeyVar) | |
| 1188 | - | ||
| 1189 | 1176 | return cret | |
| 1190 | 1177 | } | |
| 1191 | 1178 | ||
| @@ -1198,7 +1185,6 @@ var xSettingsGetStrv func(uintptr, string) []string | |||
| 1198 | 1185 | func (x *Settings) GetStrv(KeyVar string) []string { | |
| 1199 | 1186 | ||
| 1200 | 1187 | cret := xSettingsGetStrv(x.GoPointer(), KeyVar) | |
| 1201 | - | ||
| 1202 | 1188 | return cret | |
| 1203 | 1189 | } | |
| 1204 | 1190 | ||
| @@ -1214,7 +1200,6 @@ var xSettingsGetUint func(uintptr, string) uint | |||
| 1214 | 1200 | func (x *Settings) GetUint(KeyVar string) uint { | |
| 1215 | 1201 | ||
| 1216 | 1202 | cret := xSettingsGetUint(x.GoPointer(), KeyVar) | |
| 1217 | - | ||
| 1218 | 1203 | return cret | |
| 1219 | 1204 | } | |
| 1220 | 1205 | ||
| @@ -1230,7 +1215,6 @@ var xSettingsGetUint64 func(uintptr, string) uint64 | |||
| 1230 | 1215 | func (x *Settings) GetUint64(KeyVar string) uint64 { | |
| 1231 | 1216 | ||
| 1232 | 1217 | cret := xSettingsGetUint64(x.GoPointer(), KeyVar) | |
| 1233 | - | ||
| 1234 | 1218 | return cret | |
| 1235 | 1219 | } | |
| 1236 | 1220 | ||
| @@ -1257,7 +1241,6 @@ var xSettingsGetUserValue func(uintptr, string) *glib.Variant | |||
| 1257 | 1241 | func (x *Settings) GetUserValue(KeyVar string) *glib.Variant { | |
| 1258 | 1242 | ||
| 1259 | 1243 | cret := xSettingsGetUserValue(x.GoPointer(), KeyVar) | |
| 1260 | - | ||
| 1261 | 1244 | return cret | |
| 1262 | 1245 | } | |
| 1263 | 1246 | ||
| @@ -1270,7 +1253,6 @@ var xSettingsGetValue func(uintptr, string) *glib.Variant | |||
| 1270 | 1253 | func (x *Settings) GetValue(KeyVar string) *glib.Variant { | |
| 1271 | 1254 | ||
| 1272 | 1255 | cret := xSettingsGetValue(x.GoPointer(), KeyVar) | |
| 1273 | - | ||
| 1274 | 1256 | return cret | |
| 1275 | 1257 | } | |
| 1276 | 1258 | ||
| @@ -1280,7 +1262,6 @@ var xSettingsIsWritable func(uintptr, string) bool | |||
| 1280 | 1262 | func (x *Settings) IsWritable(NameVar string) bool { | |
| 1281 | 1263 | ||
| 1282 | 1264 | cret := xSettingsIsWritable(x.GoPointer(), NameVar) | |
| 1283 | - | ||
| 1284 | 1265 | return cret | |
| 1285 | 1266 | } | |
| 1286 | 1267 | ||
| @@ -1300,7 +1281,6 @@ var xSettingsListChildren func(uintptr) []string | |||
| 1300 | 1281 | func (x *Settings) ListChildren() []string { | |
| 1301 | 1282 | ||
| 1302 | 1283 | cret := xSettingsListChildren(x.GoPointer()) | |
| 1303 | - | ||
| 1304 | 1284 | return cret | |
| 1305 | 1285 | } | |
| 1306 | 1286 | ||
| @@ -1317,7 +1297,6 @@ var xSettingsListKeys func(uintptr) []string | |||
| 1317 | 1297 | func (x *Settings) ListKeys() []string { | |
| 1318 | 1298 | ||
| 1319 | 1299 | cret := xSettingsListKeys(x.GoPointer()) | |
| 1320 | - | ||
| 1321 | 1300 | return cret | |
| 1322 | 1301 | } | |
| 1323 | 1302 | ||
| @@ -1328,7 +1307,6 @@ var xSettingsRangeCheck func(uintptr, string, *glib.Variant) bool | |||
| 1328 | 1307 | func (x *Settings) RangeCheck(KeyVar string, ValueVar *glib.Variant) bool { | |
| 1329 | 1308 | ||
| 1330 | 1309 | cret := xSettingsRangeCheck(x.GoPointer(), KeyVar, ValueVar) | |
| 1331 | - | ||
| 1332 | 1310 | return cret | |
| 1333 | 1311 | } | |
| 1334 | 1312 | ||
| @@ -1373,7 +1351,6 @@ var xSettingsSet func(uintptr, string, string, ...interface{}) bool | |||
| 1373 | 1351 | func (x *Settings) Set(KeyVar string, FormatVar string, varArgs ...interface{}) bool { | |
| 1374 | 1352 | ||
| 1375 | 1353 | cret := xSettingsSet(x.GoPointer(), KeyVar, FormatVar, varArgs...) | |
| 1376 | - | ||
| 1377 | 1354 | return cret | |
| 1378 | 1355 | } | |
| 1379 | 1356 | ||
| @@ -1388,7 +1365,6 @@ var xSettingsSetBoolean func(uintptr, string, bool) bool | |||
| 1388 | 1365 | func (x *Settings) SetBoolean(KeyVar string, ValueVar bool) bool { | |
| 1389 | 1366 | ||
| 1390 | 1367 | cret := xSettingsSetBoolean(x.GoPointer(), KeyVar, ValueVar) | |
| 1391 | - | ||
| 1392 | 1368 | return cret | |
| 1393 | 1369 | } | |
| 1394 | 1370 | ||
| @@ -1403,7 +1379,6 @@ var xSettingsSetDouble func(uintptr, string, float64) bool | |||
| 1403 | 1379 | func (x *Settings) SetDouble(KeyVar string, ValueVar float64) bool { | |
| 1404 | 1380 | ||
| 1405 | 1381 | cret := xSettingsSetDouble(x.GoPointer(), KeyVar, ValueVar) | |
| 1406 | - | ||
| 1407 | 1382 | return cret | |
| 1408 | 1383 | } | |
| 1409 | 1384 | ||
| @@ -1422,7 +1397,6 @@ var xSettingsSetEnum func(uintptr, string, int) bool | |||
| 1422 | 1397 | func (x *Settings) SetEnum(KeyVar string, ValueVar int) bool { | |
| 1423 | 1398 | ||
| 1424 | 1399 | cret := xSettingsSetEnum(x.GoPointer(), KeyVar, ValueVar) | |
| 1425 | - | ||
| 1426 | 1400 | return cret | |
| 1427 | 1401 | } | |
| 1428 | 1402 | ||
| @@ -1442,7 +1416,6 @@ var xSettingsSetFlags func(uintptr, string, uint) bool | |||
| 1442 | 1416 | func (x *Settings) SetFlags(KeyVar string, ValueVar uint) bool { | |
| 1443 | 1417 | ||
| 1444 | 1418 | cret := xSettingsSetFlags(x.GoPointer(), KeyVar, ValueVar) | |
| 1445 | - | ||
| 1446 | 1419 | return cret | |
| 1447 | 1420 | } | |
| 1448 | 1421 | ||
| @@ -1457,7 +1430,6 @@ var xSettingsSetInt func(uintptr, string, int) bool | |||
| 1457 | 1430 | func (x *Settings) SetInt(KeyVar string, ValueVar int) bool { | |
| 1458 | 1431 | ||
| 1459 | 1432 | cret := xSettingsSetInt(x.GoPointer(), KeyVar, ValueVar) | |
| 1460 | - | ||
| 1461 | 1433 | return cret | |
| 1462 | 1434 | } | |
| 1463 | 1435 | ||
| @@ -1472,7 +1444,6 @@ var xSettingsSetInt64 func(uintptr, string, int64) bool | |||
| 1472 | 1444 | func (x *Settings) SetInt64(KeyVar string, ValueVar int64) bool { | |
| 1473 | 1445 | ||
| 1474 | 1446 | cret := xSettingsSetInt64(x.GoPointer(), KeyVar, ValueVar) | |
| 1475 | - | ||
| 1476 | 1447 | return cret | |
| 1477 | 1448 | } | |
| 1478 | 1449 | ||
| @@ -1487,7 +1458,6 @@ var xSettingsSetString func(uintptr, string, string) bool | |||
| 1487 | 1458 | func (x *Settings) SetString(KeyVar string, ValueVar string) bool { | |
| 1488 | 1459 | ||
| 1489 | 1460 | cret := xSettingsSetString(x.GoPointer(), KeyVar, ValueVar) | |
| 1490 | - | ||
| 1491 | 1461 | return cret | |
| 1492 | 1462 | } | |
| 1493 | 1463 | ||
| @@ -1503,7 +1473,6 @@ var xSettingsSetStrv func(uintptr, string, []string) bool | |||
| 1503 | 1473 | func (x *Settings) SetStrv(KeyVar string, ValueVar []string) bool { | |
| 1504 | 1474 | ||
| 1505 | 1475 | cret := xSettingsSetStrv(x.GoPointer(), KeyVar, ValueVar) | |
| 1506 | - | ||
| 1507 | 1476 | return cret | |
| 1508 | 1477 | } | |
| 1509 | 1478 | ||
| @@ -1519,7 +1488,6 @@ var xSettingsSetUint func(uintptr, string, uint) bool | |||
| 1519 | 1488 | func (x *Settings) SetUint(KeyVar string, ValueVar uint) bool { | |
| 1520 | 1489 | ||
| 1521 | 1490 | cret := xSettingsSetUint(x.GoPointer(), KeyVar, ValueVar) | |
| 1522 | - | ||
| 1523 | 1491 | return cret | |
| 1524 | 1492 | } | |
| 1525 | 1493 | ||
| @@ -1535,7 +1503,6 @@ var xSettingsSetUint64 func(uintptr, string, uint64) bool | |||
| 1535 | 1503 | func (x *Settings) SetUint64(KeyVar string, ValueVar uint64) bool { | |
| 1536 | 1504 | ||
| 1537 | 1505 | cret := xSettingsSetUint64(x.GoPointer(), KeyVar, ValueVar) | |
| 1538 | - | ||
| 1539 | 1506 | return cret | |
| 1540 | 1507 | } | |
| 1541 | 1508 | ||
| @@ -1551,7 +1518,6 @@ var xSettingsSetValue func(uintptr, string, *glib.Variant) bool | |||
| 1551 | 1518 | func (x *Settings) SetValue(KeyVar string, ValueVar *glib.Variant) bool { | |
| 1552 | 1519 | ||
| 1553 | 1520 | cret := xSettingsSetValue(x.GoPointer(), KeyVar, ValueVar) | |
| 1554 | - | ||
| 1555 | 1521 | return cret | |
| 1556 | 1522 | } | |
| 1557 | 1523 | ||
| @@ -1889,7 +1855,6 @@ var xSettingsListRelocatableSchemas func() []string | |||
| 1889 | 1855 | func SettingsListRelocatableSchemas() []string { | |
| 1890 | 1856 | ||
| 1891 | 1857 | cret := xSettingsListRelocatableSchemas() | |
| 1892 | - | ||
| 1893 | 1858 | return cret | |
| 1894 | 1859 | } | |
| 1895 | 1860 | ||
| @@ -1899,7 +1864,6 @@ var xSettingsListSchemas func() []string | |||
| 1899 | 1864 | func SettingsListSchemas() []string { | |
| 1900 | 1865 | ||
| 1901 | 1866 | cret := xSettingsListSchemas() | |
| 1902 | - | ||
| 1903 | 1867 | return cret | |
| 1904 | 1868 | } | |
| 1905 | 1869 | ||
M v4/gio/gsettingsbackend.go +2 -4
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -373,12 +372,11 @@ var xKeyfileSettingsBackendNew func(string, string, uintptr) uintptr | |||
| 373 | 372 | func KeyfileSettingsBackendNew(FilenameVar string, RootPathVar string, RootGroupVar *string) *SettingsBackend { | |
| 374 | 373 | var cls *SettingsBackend | |
| 375 | 374 | ||
| 376 | - | RootGroupVarPtr, RootGroupVarBytes := core.NullableStringToPtr(RootGroupVar) | |
| 375 | + | RootGroupVarPtr := core.GStrdupNullable(RootGroupVar) | |
| 376 | + | defer core.GFreeNullable(RootGroupVarPtr) | |
| 377 | 377 | ||
| 378 | 378 | cret := xKeyfileSettingsBackendNew(FilenameVar, RootPathVar, RootGroupVarPtr) | |
| 379 | 379 | ||
| 380 | - | runtime.KeepAlive(RootGroupVarBytes) | |
| 381 | - | ||
| 382 | 380 | if cret == 0 { | |
| 383 | 381 | return nil | |
| 384 | 382 | } | |
M v4/gio/gsettingsschema.go +0 -19
| @@ -128,7 +128,6 @@ var xSettingsSchemaGetId func(uintptr) string | |||
| 128 | 128 | func (x *SettingsSchema) GetId() string { | |
| 129 | 129 | ||
| 130 | 130 | cret := xSettingsSchemaGetId(x.GoPointer()) | |
| 131 | - | ||
| 132 | 131 | return cret | |
| 133 | 132 | } | |
| 134 | 133 | ||
| @@ -141,7 +140,6 @@ var xSettingsSchemaGetKey func(uintptr, string) *SettingsSchemaKey | |||
| 141 | 140 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | |
| 142 | 141 | ||
| 143 | 142 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | |
| 144 | - | ||
| 145 | 143 | return cret | |
| 146 | 144 | } | |
| 147 | 145 | ||
| @@ -159,7 +157,6 @@ var xSettingsSchemaGetPath func(uintptr) string | |||
| 159 | 157 | func (x *SettingsSchema) GetPath() string { | |
| 160 | 158 | ||
| 161 | 159 | cret := xSettingsSchemaGetPath(x.GoPointer()) | |
| 162 | - | ||
| 163 | 160 | return cret | |
| 164 | 161 | } | |
| 165 | 162 | ||
| @@ -169,7 +166,6 @@ var xSettingsSchemaHasKey func(uintptr, string) bool | |||
| 169 | 166 | func (x *SettingsSchema) HasKey(NameVar string) bool { | |
| 170 | 167 | ||
| 171 | 168 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | |
| 172 | - | ||
| 173 | 169 | return cret | |
| 174 | 170 | } | |
| 175 | 171 | ||
| @@ -182,7 +178,6 @@ var xSettingsSchemaListChildren func(uintptr) []string | |||
| 182 | 178 | func (x *SettingsSchema) ListChildren() []string { | |
| 183 | 179 | ||
| 184 | 180 | cret := xSettingsSchemaListChildren(x.GoPointer()) | |
| 185 | - | ||
| 186 | 181 | return cret | |
| 187 | 182 | } | |
| 188 | 183 | ||
| @@ -196,7 +191,6 @@ var xSettingsSchemaListKeys func(uintptr) []string | |||
| 196 | 191 | func (x *SettingsSchema) ListKeys() []string { | |
| 197 | 192 | ||
| 198 | 193 | cret := xSettingsSchemaListKeys(x.GoPointer()) | |
| 199 | - | ||
| 200 | 194 | return cret | |
| 201 | 195 | } | |
| 202 | 196 | ||
| @@ -206,7 +200,6 @@ var xSettingsSchemaRef func(uintptr) *SettingsSchema | |||
| 206 | 200 | func (x *SettingsSchema) Ref() *SettingsSchema { | |
| 207 | 201 | ||
| 208 | 202 | cret := xSettingsSchemaRef(x.GoPointer()) | |
| 209 | - | ||
| 210 | 203 | return cret | |
| 211 | 204 | } | |
| 212 | 205 | ||
| @@ -244,7 +237,6 @@ var xSettingsSchemaKeyGetDefaultValue func(uintptr) *glib.Variant | |||
| 244 | 237 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | |
| 245 | 238 | ||
| 246 | 239 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | |
| 247 | - | ||
| 248 | 240 | return cret | |
| 249 | 241 | } | |
| 250 | 242 | ||
| @@ -267,7 +259,6 @@ var xSettingsSchemaKeyGetDescription func(uintptr) string | |||
| 267 | 259 | func (x *SettingsSchemaKey) GetDescription() string { | |
| 268 | 260 | ||
| 269 | 261 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | |
| 270 | - | ||
| 271 | 262 | return cret | |
| 272 | 263 | } | |
| 273 | 264 | ||
| @@ -277,7 +268,6 @@ var xSettingsSchemaKeyGetName func(uintptr) string | |||
| 277 | 268 | func (x *SettingsSchemaKey) GetName() string { | |
| 278 | 269 | ||
| 279 | 270 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | |
| 280 | - | ||
| 281 | 271 | return cret | |
| 282 | 272 | } | |
| 283 | 273 | ||
| @@ -322,7 +312,6 @@ var xSettingsSchemaKeyGetRange func(uintptr) *glib.Variant | |||
| 322 | 312 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | |
| 323 | 313 | ||
| 324 | 314 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | |
| 325 | - | ||
| 326 | 315 | return cret | |
| 327 | 316 | } | |
| 328 | 317 | ||
| @@ -344,7 +333,6 @@ var xSettingsSchemaKeyGetSummary func(uintptr) string | |||
| 344 | 333 | func (x *SettingsSchemaKey) GetSummary() string { | |
| 345 | 334 | ||
| 346 | 335 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | |
| 347 | - | ||
| 348 | 336 | return cret | |
| 349 | 337 | } | |
| 350 | 338 | ||
| @@ -354,7 +342,6 @@ var xSettingsSchemaKeyGetValueType func(uintptr) *glib.VariantType | |||
| 354 | 342 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | |
| 355 | 343 | ||
| 356 | 344 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | |
| 357 | - | ||
| 358 | 345 | return cret | |
| 359 | 346 | } | |
| 360 | 347 | ||
| @@ -368,7 +355,6 @@ var xSettingsSchemaKeyRangeCheck func(uintptr, *glib.Variant) bool | |||
| 368 | 355 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | |
| 369 | 356 | ||
| 370 | 357 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | |
| 371 | - | ||
| 372 | 358 | return cret | |
| 373 | 359 | } | |
| 374 | 360 | ||
| @@ -378,7 +364,6 @@ var xSettingsSchemaKeyRef func(uintptr) *SettingsSchemaKey | |||
| 378 | 364 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | |
| 379 | 365 | ||
| 380 | 366 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | |
| 381 | - | ||
| 382 | 367 | return cret | |
| 383 | 368 | } | |
| 384 | 369 | ||
| @@ -443,7 +428,6 @@ func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *Settin | |||
| 443 | 428 | var cerr *glib.Error | |
| 444 | 429 | ||
| 445 | 430 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | |
| 446 | - | ||
| 447 | 431 | if cerr == nil { | |
| 448 | 432 | return cret, nil | |
| 449 | 433 | } | |
| @@ -486,7 +470,6 @@ var xSettingsSchemaSourceLookup func(uintptr, string, bool) *SettingsSchema | |||
| 486 | 470 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | |
| 487 | 471 | ||
| 488 | 472 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | |
| 489 | - | ||
| 490 | 473 | return cret | |
| 491 | 474 | } | |
| 492 | 475 | ||
| @@ -496,7 +479,6 @@ var xSettingsSchemaSourceRef func(uintptr) *SettingsSchemaSource | |||
| 496 | 479 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | |
| 497 | 480 | ||
| 498 | 481 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | |
| 499 | - | ||
| 500 | 482 | return cret | |
| 501 | 483 | } | |
| 502 | 484 | ||
| @@ -527,7 +509,6 @@ var xSettingsSchemaSourceGetDefault func() *SettingsSchemaSource | |||
| 527 | 509 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |
| 528 | 510 | ||
| 529 | 511 | cret := xSettingsSchemaSourceGetDefault() | |
| 530 | - | ||
| 531 | 512 | return cret | |
| 532 | 513 | } | |
| 533 | 514 | ||
M v4/gio/gsimpleaction.go +0 -6
| @@ -344,7 +344,6 @@ func (x *SimpleAction) ChangeState(ValueVar *glib.Variant) { | |||
| 344 | 344 | func (x *SimpleAction) GetEnabled() bool { | |
| 345 | 345 | ||
| 346 | 346 | cret := XGActionGetEnabled(x.GoPointer()) | |
| 347 | - | ||
| 348 | 347 | return cret | |
| 349 | 348 | } | |
| 350 | 349 | ||
| @@ -352,7 +351,6 @@ func (x *SimpleAction) GetEnabled() bool { | |||
| 352 | 351 | func (x *SimpleAction) GetName() string { | |
| 353 | 352 | ||
| 354 | 353 | cret := XGActionGetName(x.GoPointer()) | |
| 355 | - | ||
| 356 | 354 | return cret | |
| 357 | 355 | } | |
| 358 | 356 | ||
| @@ -368,7 +366,6 @@ func (x *SimpleAction) GetName() string { | |||
| 368 | 366 | func (x *SimpleAction) GetParameterType() *glib.VariantType { | |
| 369 | 367 | ||
| 370 | 368 | cret := XGActionGetParameterType(x.GoPointer()) | |
| 371 | - | ||
| 372 | 369 | return cret | |
| 373 | 370 | } | |
| 374 | 371 | ||
| @@ -383,7 +380,6 @@ func (x *SimpleAction) GetParameterType() *glib.VariantType { | |||
| 383 | 380 | func (x *SimpleAction) GetState() *glib.Variant { | |
| 384 | 381 | ||
| 385 | 382 | cret := XGActionGetState(x.GoPointer()) | |
| 386 | - | ||
| 387 | 383 | return cret | |
| 388 | 384 | } | |
| 389 | 385 | ||
| @@ -408,7 +404,6 @@ func (x *SimpleAction) GetState() *glib.Variant { | |||
| 408 | 404 | func (x *SimpleAction) GetStateHint() *glib.Variant { | |
| 409 | 405 | ||
| 410 | 406 | cret := XGActionGetStateHint(x.GoPointer()) | |
| 411 | - | ||
| 412 | 407 | return cret | |
| 413 | 408 | } | |
| 414 | 409 | ||
| @@ -427,7 +422,6 @@ func (x *SimpleAction) GetStateHint() *glib.Variant { | |||
| 427 | 422 | func (x *SimpleAction) GetStateType() *glib.VariantType { | |
| 428 | 423 | ||
| 429 | 424 | cret := XGActionGetStateType(x.GoPointer()) | |
| 430 | - | ||
| 431 | 425 | return cret | |
| 432 | 426 | } | |
| 433 | 427 | ||
M v4/gio/gsimpleactiongroup.go +0 -8
| @@ -231,7 +231,6 @@ func (x *SimpleActionGroup) ChangeActionState(ActionNameVar string, ValueVar *gl | |||
| 231 | 231 | func (x *SimpleActionGroup) GetActionEnabled(ActionNameVar string) bool { | |
| 232 | 232 | ||
| 233 | 233 | cret := XGActionGroupGetActionEnabled(x.GoPointer(), ActionNameVar) | |
| 234 | - | ||
| 235 | 234 | return cret | |
| 236 | 235 | } | |
| 237 | 236 | ||
| @@ -251,7 +250,6 @@ func (x *SimpleActionGroup) GetActionEnabled(ActionNameVar string) bool { | |||
| 251 | 250 | func (x *SimpleActionGroup) GetActionParameterType(ActionNameVar string) *glib.VariantType { | |
| 252 | 251 | ||
| 253 | 252 | cret := XGActionGroupGetActionParameterType(x.GoPointer(), ActionNameVar) | |
| 254 | - | ||
| 255 | 253 | return cret | |
| 256 | 254 | } | |
| 257 | 255 | ||
| @@ -266,7 +264,6 @@ func (x *SimpleActionGroup) GetActionParameterType(ActionNameVar string) *glib.V | |||
| 266 | 264 | func (x *SimpleActionGroup) GetActionState(ActionNameVar string) *glib.Variant { | |
| 267 | 265 | ||
| 268 | 266 | cret := XGActionGroupGetActionState(x.GoPointer(), ActionNameVar) | |
| 269 | - | ||
| 270 | 267 | return cret | |
| 271 | 268 | } | |
| 272 | 269 | ||
| @@ -291,7 +288,6 @@ func (x *SimpleActionGroup) GetActionState(ActionNameVar string) *glib.Variant { | |||
| 291 | 288 | func (x *SimpleActionGroup) GetActionStateHint(ActionNameVar string) *glib.Variant { | |
| 292 | 289 | ||
| 293 | 290 | cret := XGActionGroupGetActionStateHint(x.GoPointer(), ActionNameVar) | |
| 294 | - | ||
| 295 | 291 | return cret | |
| 296 | 292 | } | |
| 297 | 293 | ||
| @@ -314,7 +310,6 @@ func (x *SimpleActionGroup) GetActionStateHint(ActionNameVar string) *glib.Varia | |||
| 314 | 310 | func (x *SimpleActionGroup) GetActionStateType(ActionNameVar string) *glib.VariantType { | |
| 315 | 311 | ||
| 316 | 312 | cret := XGActionGroupGetActionStateType(x.GoPointer(), ActionNameVar) | |
| 317 | - | ||
| 318 | 313 | return cret | |
| 319 | 314 | } | |
| 320 | 315 | ||
| @@ -322,7 +317,6 @@ func (x *SimpleActionGroup) GetActionStateType(ActionNameVar string) *glib.Varia | |||
| 322 | 317 | func (x *SimpleActionGroup) HasAction(ActionNameVar string) bool { | |
| 323 | 318 | ||
| 324 | 319 | cret := XGActionGroupHasAction(x.GoPointer(), ActionNameVar) | |
| 325 | - | ||
| 326 | 320 | return cret | |
| 327 | 321 | } | |
| 328 | 322 | ||
| @@ -333,7 +327,6 @@ func (x *SimpleActionGroup) HasAction(ActionNameVar string) bool { | |||
| 333 | 327 | func (x *SimpleActionGroup) ListActions() []string { | |
| 334 | 328 | ||
| 335 | 329 | cret := XGActionGroupListActions(x.GoPointer()) | |
| 336 | - | ||
| 337 | 330 | return cret | |
| 338 | 331 | } | |
| 339 | 332 | ||
| @@ -367,7 +360,6 @@ func (x *SimpleActionGroup) ListActions() []string { | |||
| 367 | 360 | func (x *SimpleActionGroup) QueryAction(ActionNameVar string, EnabledVar *bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool { | |
| 368 | 361 | ||
| 369 | 362 | cret := XGActionGroupQueryAction(x.GoPointer(), ActionNameVar, EnabledVar, ParameterTypeVar, StateTypeVar, StateHintVar, StateVar) | |
| 370 | - | ||
| 371 | 363 | return cret | |
| 372 | 364 | } | |
| 373 | 365 | ||
M v4/gio/gsimpleasyncresult.go +0 -9
| @@ -457,7 +457,6 @@ var xSimpleAsyncResultGetOpResGboolean func(uintptr) bool | |||
| 457 | 457 | func (x *SimpleAsyncResult) GetOpResGboolean() bool { | |
| 458 | 458 | ||
| 459 | 459 | cret := xSimpleAsyncResultGetOpResGboolean(x.GoPointer()) | |
| 460 | - | ||
| 461 | 460 | return cret | |
| 462 | 461 | } | |
| 463 | 462 | ||
| @@ -467,7 +466,6 @@ var xSimpleAsyncResultGetOpResGpointer func(uintptr) uintptr | |||
| 467 | 466 | func (x *SimpleAsyncResult) GetOpResGpointer() uintptr { | |
| 468 | 467 | ||
| 469 | 468 | cret := xSimpleAsyncResultGetOpResGpointer(x.GoPointer()) | |
| 470 | - | ||
| 471 | 469 | return cret | |
| 472 | 470 | } | |
| 473 | 471 | ||
| @@ -477,7 +475,6 @@ var xSimpleAsyncResultGetOpResGssize func(uintptr) int | |||
| 477 | 475 | func (x *SimpleAsyncResult) GetOpResGssize() int { | |
| 478 | 476 | ||
| 479 | 477 | cret := xSimpleAsyncResultGetOpResGssize(x.GoPointer()) | |
| 480 | - | ||
| 481 | 478 | return cret | |
| 482 | 479 | } | |
| 483 | 480 | ||
| @@ -487,7 +484,6 @@ var xSimpleAsyncResultGetSourceTag func(uintptr) uintptr | |||
| 487 | 484 | func (x *SimpleAsyncResult) GetSourceTag() uintptr { | |
| 488 | 485 | ||
| 489 | 486 | cret := xSimpleAsyncResultGetSourceTag(x.GoPointer()) | |
| 490 | - | ||
| 491 | 487 | return cret | |
| 492 | 488 | } | |
| 493 | 489 | ||
| @@ -503,7 +499,6 @@ func (x *SimpleAsyncResult) PropagateError() (bool, error) { | |||
| 503 | 499 | var cerr *glib.Error | |
| 504 | 500 | ||
| 505 | 501 | cret := xSimpleAsyncResultPropagateError(x.GoPointer()) | |
| 506 | - | ||
| 507 | 502 | if cerr == nil { | |
| 508 | 503 | return cret, nil | |
| 509 | 504 | } | |
| @@ -686,7 +681,6 @@ func (x *SimpleAsyncResult) GetSourceObject() *gobject.Object { | |||
| 686 | 681 | func (x *SimpleAsyncResult) GetUserData() uintptr { | |
| 687 | 682 | ||
| 688 | 683 | cret := XGAsyncResultGetUserData(x.GoPointer()) | |
| 689 | - | ||
| 690 | 684 | return cret | |
| 691 | 685 | } | |
| 692 | 686 | ||
| @@ -695,7 +689,6 @@ func (x *SimpleAsyncResult) GetUserData() uintptr { | |||
| 695 | 689 | func (x *SimpleAsyncResult) IsTagged(SourceTagVar uintptr) bool { | |
| 696 | 690 | ||
| 697 | 691 | cret := XGAsyncResultIsTagged(x.GoPointer(), SourceTagVar) | |
| 698 | - | ||
| 699 | 692 | return cret | |
| 700 | 693 | } | |
| 701 | 694 | ||
| @@ -713,7 +706,6 @@ func (x *SimpleAsyncResult) LegacyPropagateError() (bool, error) { | |||
| 713 | 706 | var cerr *glib.Error | |
| 714 | 707 | ||
| 715 | 708 | cret := XGAsyncResultLegacyPropagateError(x.GoPointer()) | |
| 716 | - | ||
| 717 | 709 | if cerr == nil { | |
| 718 | 710 | return cret, nil | |
| 719 | 711 | } | |
| @@ -738,7 +730,6 @@ var xSimpleAsyncResultIsValid func(uintptr, uintptr, uintptr) bool | |||
| 738 | 730 | func SimpleAsyncResultIsValid(ResultVar AsyncResult, SourceVar *gobject.Object, SourceTagVar uintptr) bool { | |
| 739 | 731 | ||
| 740 | 732 | cret := xSimpleAsyncResultIsValid(ResultVar.GoPointer(), SourceVar.GoPointer(), SourceTagVar) | |
| 741 | - | ||
| 742 | 733 | return cret | |
| 743 | 734 | } | |
| 744 | 735 | ||
M v4/gio/gsimpleproxyresolver.go +4 -10
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -191,12 +190,11 @@ var xSimpleProxyResolverSetDefaultProxy func(uintptr, uintptr) | |||
| 191 | 190 | // the socks5, socks4a, and socks4 proxy types. | |
| 192 | 191 | func (x *SimpleProxyResolver) SetDefaultProxy(DefaultProxyVar *string) { | |
| 193 | 192 | ||
| 194 | - | DefaultProxyVarPtr, DefaultProxyVarBytes := core.NullableStringToPtr(DefaultProxyVar) | |
| 193 | + | DefaultProxyVarPtr := core.GStrdupNullable(DefaultProxyVar) | |
| 194 | + | defer core.GFreeNullable(DefaultProxyVarPtr) | |
| 195 | 195 | ||
| 196 | 196 | xSimpleProxyResolverSetDefaultProxy(x.GoPointer(), DefaultProxyVarPtr) | |
| 197 | 197 | ||
| 198 | - | runtime.KeepAlive(DefaultProxyVarBytes) | |
| 199 | - | ||
| 200 | 198 | } | |
| 201 | 199 | ||
| 202 | 200 | var xSimpleProxyResolverSetIgnoreHosts func(uintptr, []string) | |
| @@ -356,7 +354,6 @@ func (x *SimpleProxyResolver) GetPropertyIgnoreHosts() []string { | |||
| 356 | 354 | func (x *SimpleProxyResolver) IsSupported() bool { | |
| 357 | 355 | ||
| 358 | 356 | cret := XGProxyResolverIsSupported(x.GoPointer()) | |
| 359 | - | ||
| 360 | 357 | return cret | |
| 361 | 358 | } | |
| 362 | 359 | ||
| @@ -379,7 +376,6 @@ func (x *SimpleProxyResolver) Lookup(UriVar string, CancellableVar *Cancellable) | |||
| 379 | 376 | var cerr *glib.Error | |
| 380 | 377 | ||
| 381 | 378 | cret := XGProxyResolverLookup(x.GoPointer(), UriVar, CancellableVar.GoPointer(), &cerr) | |
| 382 | - | ||
| 383 | 379 | if cerr == nil { | |
| 384 | 380 | return cret, nil | |
| 385 | 381 | } | |
| @@ -402,7 +398,6 @@ func (x *SimpleProxyResolver) LookupFinish(ResultVar AsyncResult) ([]string, err | |||
| 402 | 398 | var cerr *glib.Error | |
| 403 | 399 | ||
| 404 | 400 | cret := XGProxyResolverLookupFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 405 | - | ||
| 406 | 401 | if cerr == nil { | |
| 407 | 402 | return cret, nil | |
| 408 | 403 | } | |
| @@ -419,12 +414,11 @@ var xSimpleProxyResolverNew func(uintptr, []string) uintptr | |||
| 419 | 414 | func SimpleProxyResolverNew(DefaultProxyVar *string, IgnoreHostsVar []string) *ProxyResolverBase { | |
| 420 | 415 | var cls *ProxyResolverBase | |
| 421 | 416 | ||
| 422 | - | DefaultProxyVarPtr, DefaultProxyVarBytes := core.NullableStringToPtr(DefaultProxyVar) | |
| 417 | + | DefaultProxyVarPtr := core.GStrdupNullable(DefaultProxyVar) | |
| 418 | + | defer core.GFreeNullable(DefaultProxyVarPtr) | |
| 423 | 419 | ||
| 424 | 420 | cret := xSimpleProxyResolverNew(DefaultProxyVarPtr, IgnoreHostsVar) | |
| 425 | 421 | ||
| 426 | - | runtime.KeepAlive(DefaultProxyVarBytes) | |
| 427 | - | ||
| 428 | 422 | if cret == 0 { | |
| 429 | 423 | return nil | |
| 430 | 424 | } | |
M v4/gio/gsocket.go +8 -59
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -494,7 +493,6 @@ func (x *Socket) Bind(AddressVar *SocketAddress, AllowReuseVar bool) (bool, erro | |||
| 494 | 493 | var cerr *glib.Error | |
| 495 | 494 | ||
| 496 | 495 | cret := xSocketBind(x.GoPointer(), AddressVar.GoPointer(), AllowReuseVar, &cerr) | |
| 497 | - | ||
| 498 | 496 | if cerr == nil { | |
| 499 | 497 | return cret, nil | |
| 500 | 498 | } | |
| @@ -511,7 +509,6 @@ func (x *Socket) CheckConnectResult() (bool, error) { | |||
| 511 | 509 | var cerr *glib.Error | |
| 512 | 510 | ||
| 513 | 511 | cret := xSocketCheckConnectResult(x.GoPointer()) | |
| 514 | - | ||
| 515 | 512 | if cerr == nil { | |
| 516 | 513 | return cret, nil | |
| 517 | 514 | } | |
| @@ -554,7 +551,6 @@ func (x *Socket) Close() (bool, error) { | |||
| 554 | 551 | var cerr *glib.Error | |
| 555 | 552 | ||
| 556 | 553 | cret := xSocketClose(x.GoPointer()) | |
| 557 | - | ||
| 558 | 554 | if cerr == nil { | |
| 559 | 555 | return cret, nil | |
| 560 | 556 | } | |
| @@ -584,7 +580,6 @@ var xSocketConditionCheck func(uintptr, glib.IOCondition) glib.IOCondition | |||
| 584 | 580 | func (x *Socket) ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition { | |
| 585 | 581 | ||
| 586 | 582 | cret := xSocketConditionCheck(x.GoPointer(), ConditionVar) | |
| 587 | - | ||
| 588 | 583 | return cret | |
| 589 | 584 | } | |
| 590 | 585 | ||
| @@ -610,7 +605,6 @@ func (x *Socket) ConditionTimedWait(ConditionVar glib.IOCondition, TimeoutUsVar | |||
| 610 | 605 | var cerr *glib.Error | |
| 611 | 606 | ||
| 612 | 607 | cret := xSocketConditionTimedWait(x.GoPointer(), ConditionVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| 613 | - | ||
| 614 | 608 | if cerr == nil { | |
| 615 | 609 | return cret, nil | |
| 616 | 610 | } | |
| @@ -634,7 +628,6 @@ func (x *Socket) ConditionWait(ConditionVar glib.IOCondition, CancellableVar *Ca | |||
| 634 | 628 | var cerr *glib.Error | |
| 635 | 629 | ||
| 636 | 630 | cret := xSocketConditionWait(x.GoPointer(), ConditionVar, CancellableVar.GoPointer(), &cerr) | |
| 637 | - | ||
| 638 | 631 | if cerr == nil { | |
| 639 | 632 | return cret, nil | |
| 640 | 633 | } | |
| @@ -664,7 +657,6 @@ func (x *Socket) Connect(AddressVar *SocketAddress, CancellableVar *Cancellable) | |||
| 664 | 657 | var cerr *glib.Error | |
| 665 | 658 | ||
| 666 | 659 | cret := xSocketConnect(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 667 | - | ||
| 668 | 660 | if cerr == nil { | |
| 669 | 661 | return cret, nil | |
| 670 | 662 | } | |
| @@ -714,7 +706,6 @@ var xSocketCreateSource func(uintptr, glib.IOCondition, uintptr) *glib.Source | |||
| 714 | 706 | func (x *Socket) CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source { | |
| 715 | 707 | ||
| 716 | 708 | cret := xSocketCreateSource(x.GoPointer(), ConditionVar, CancellableVar.GoPointer()) | |
| 717 | - | ||
| 718 | 709 | return cret | |
| 719 | 710 | } | |
| 720 | 711 | ||
| @@ -735,7 +726,6 @@ var xSocketGetAvailableBytes func(uintptr) int | |||
| 735 | 726 | func (x *Socket) GetAvailableBytes() int { | |
| 736 | 727 | ||
| 737 | 728 | cret := xSocketGetAvailableBytes(x.GoPointer()) | |
| 738 | - | ||
| 739 | 729 | return cret | |
| 740 | 730 | } | |
| 741 | 731 | ||
| @@ -746,7 +736,6 @@ var xSocketGetBlocking func(uintptr) bool | |||
| 746 | 736 | func (x *Socket) GetBlocking() bool { | |
| 747 | 737 | ||
| 748 | 738 | cret := xSocketGetBlocking(x.GoPointer()) | |
| 749 | - | ||
| 750 | 739 | return cret | |
| 751 | 740 | } | |
| 752 | 741 | ||
| @@ -758,7 +747,6 @@ var xSocketGetBroadcast func(uintptr) bool | |||
| 758 | 747 | func (x *Socket) GetBroadcast() bool { | |
| 759 | 748 | ||
| 760 | 749 | cret := xSocketGetBroadcast(x.GoPointer()) | |
| 761 | - | ||
| 762 | 750 | return cret | |
| 763 | 751 | } | |
| 764 | 752 | ||
| @@ -808,7 +796,6 @@ var xSocketGetFamily func(uintptr) SocketFamily | |||
| 808 | 796 | func (x *Socket) GetFamily() SocketFamily { | |
| 809 | 797 | ||
| 810 | 798 | cret := xSocketGetFamily(x.GoPointer()) | |
| 811 | - | ||
| 812 | 799 | return cret | |
| 813 | 800 | } | |
| 814 | 801 | ||
| @@ -822,7 +809,6 @@ var xSocketGetFd func(uintptr) int | |||
| 822 | 809 | func (x *Socket) GetFd() int { | |
| 823 | 810 | ||
| 824 | 811 | cret := xSocketGetFd(x.GoPointer()) | |
| 825 | - | ||
| 826 | 812 | return cret | |
| 827 | 813 | } | |
| 828 | 814 | ||
| @@ -833,7 +819,6 @@ var xSocketGetKeepalive func(uintptr) bool | |||
| 833 | 819 | func (x *Socket) GetKeepalive() bool { | |
| 834 | 820 | ||
| 835 | 821 | cret := xSocketGetKeepalive(x.GoPointer()) | |
| 836 | - | ||
| 837 | 822 | return cret | |
| 838 | 823 | } | |
| 839 | 824 | ||
| @@ -844,7 +829,6 @@ var xSocketGetListenBacklog func(uintptr) int | |||
| 844 | 829 | func (x *Socket) GetListenBacklog() int { | |
| 845 | 830 | ||
| 846 | 831 | cret := xSocketGetListenBacklog(x.GoPointer()) | |
| 847 | - | ||
| 848 | 832 | return cret | |
| 849 | 833 | } | |
| 850 | 834 | ||
| @@ -879,7 +863,6 @@ var xSocketGetMulticastLoopback func(uintptr) bool | |||
| 879 | 863 | func (x *Socket) GetMulticastLoopback() bool { | |
| 880 | 864 | ||
| 881 | 865 | cret := xSocketGetMulticastLoopback(x.GoPointer()) | |
| 882 | - | ||
| 883 | 866 | return cret | |
| 884 | 867 | } | |
| 885 | 868 | ||
| @@ -890,7 +873,6 @@ var xSocketGetMulticastTtl func(uintptr) uint | |||
| 890 | 873 | func (x *Socket) GetMulticastTtl() uint { | |
| 891 | 874 | ||
| 892 | 875 | cret := xSocketGetMulticastTtl(x.GoPointer()) | |
| 893 | - | ||
| 894 | 876 | return cret | |
| 895 | 877 | } | |
| 896 | 878 | ||
| @@ -913,7 +895,6 @@ func (x *Socket) GetOption(LevelVar int, OptnameVar int, ValueVar *int) (bool, e | |||
| 913 | 895 | var cerr *glib.Error | |
| 914 | 896 | ||
| 915 | 897 | cret := xSocketGetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | |
| 916 | - | ||
| 917 | 898 | if cerr == nil { | |
| 918 | 899 | return cret, nil | |
| 919 | 900 | } | |
| @@ -928,7 +909,6 @@ var xSocketGetProtocol func(uintptr) SocketProtocol | |||
| 928 | 909 | func (x *Socket) GetProtocol() SocketProtocol { | |
| 929 | 910 | ||
| 930 | 911 | cret := xSocketGetProtocol(x.GoPointer()) | |
| 931 | - | ||
| 932 | 912 | return cret | |
| 933 | 913 | } | |
| 934 | 914 | ||
| @@ -960,7 +940,6 @@ var xSocketGetSocketType func(uintptr) SocketType | |||
| 960 | 940 | func (x *Socket) GetSocketType() SocketType { | |
| 961 | 941 | ||
| 962 | 942 | cret := xSocketGetSocketType(x.GoPointer()) | |
| 963 | - | ||
| 964 | 943 | return cret | |
| 965 | 944 | } | |
| 966 | 945 | ||
| @@ -971,7 +950,6 @@ var xSocketGetTimeout func(uintptr) uint | |||
| 971 | 950 | func (x *Socket) GetTimeout() uint { | |
| 972 | 951 | ||
| 973 | 952 | cret := xSocketGetTimeout(x.GoPointer()) | |
| 974 | - | ||
| 975 | 953 | return cret | |
| 976 | 954 | } | |
| 977 | 955 | ||
| @@ -982,7 +960,6 @@ var xSocketGetTtl func(uintptr) uint | |||
| 982 | 960 | func (x *Socket) GetTtl() uint { | |
| 983 | 961 | ||
| 984 | 962 | cret := xSocketGetTtl(x.GoPointer()) | |
| 985 | - | ||
| 986 | 963 | return cret | |
| 987 | 964 | } | |
| 988 | 965 | ||
| @@ -992,7 +969,6 @@ var xSocketIsClosed func(uintptr) bool | |||
| 992 | 969 | func (x *Socket) IsClosed() bool { | |
| 993 | 970 | ||
| 994 | 971 | cret := xSocketIsClosed(x.GoPointer()) | |
| 995 | - | ||
| 996 | 972 | return cret | |
| 997 | 973 | } | |
| 998 | 974 | ||
| @@ -1008,7 +984,6 @@ var xSocketIsConnected func(uintptr) bool | |||
| 1008 | 984 | func (x *Socket) IsConnected() bool { | |
| 1009 | 985 | ||
| 1010 | 986 | cret := xSocketIsConnected(x.GoPointer()) | |
| 1011 | - | ||
| 1012 | 987 | return cret | |
| 1013 | 988 | } | |
| 1014 | 989 | ||
| @@ -1031,12 +1006,10 @@ var xSocketJoinMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Error | |||
| 1031 | 1006 | func (x *Socket) JoinMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | |
| 1032 | 1007 | var cerr *glib.Error | |
| 1033 | 1008 | ||
| 1034 | - | IfaceVarPtr, IfaceVarBytes := core.NullableStringToPtr(IfaceVar) | |
| 1009 | + | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| 1010 | + | defer core.GFreeNullable(IfaceVarPtr) | |
| 1035 | 1011 | ||
| 1036 | 1012 | cret := xSocketJoinMulticastGroup(x.GoPointer(), GroupVar.GoPointer(), SourceSpecificVar, IfaceVarPtr, &cerr) | |
| 1037 | - | ||
| 1038 | - | runtime.KeepAlive(IfaceVarBytes) | |
| 1039 | - | ||
| 1040 | 1013 | if cerr == nil { | |
| 1041 | 1014 | return cret, nil | |
| 1042 | 1015 | } | |
| @@ -1064,12 +1037,10 @@ var xSocketJoinMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **glib | |||
| 1064 | 1037 | func (x *Socket) JoinMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | |
| 1065 | 1038 | var cerr *glib.Error | |
| 1066 | 1039 | ||
| 1067 | - | IfaceVarPtr, IfaceVarBytes := core.NullableStringToPtr(IfaceVar) | |
| 1040 | + | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| 1041 | + | defer core.GFreeNullable(IfaceVarPtr) | |
| 1068 | 1042 | ||
| 1069 | 1043 | cret := xSocketJoinMulticastGroupSsm(x.GoPointer(), GroupVar.GoPointer(), SourceSpecificVar.GoPointer(), IfaceVarPtr, &cerr) | |
| 1070 | - | ||
| 1071 | - | runtime.KeepAlive(IfaceVarBytes) | |
| 1072 | - | ||
| 1073 | 1044 | if cerr == nil { | |
| 1074 | 1045 | return cret, nil | |
| 1075 | 1046 | } | |
| @@ -1091,12 +1062,10 @@ var xSocketLeaveMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Erro | |||
| 1091 | 1062 | func (x *Socket) LeaveMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | |
| 1092 | 1063 | var cerr *glib.Error | |
| 1093 | 1064 | ||
| 1094 | - | IfaceVarPtr, IfaceVarBytes := core.NullableStringToPtr(IfaceVar) | |
| 1065 | + | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| 1066 | + | defer core.GFreeNullable(IfaceVarPtr) | |
| 1095 | 1067 | ||
| 1096 | 1068 | cret := xSocketLeaveMulticastGroup(x.GoPointer(), GroupVar.GoPointer(), SourceSpecificVar, IfaceVarPtr, &cerr) | |
| 1097 | - | ||
| 1098 | - | runtime.KeepAlive(IfaceVarBytes) | |
| 1099 | - | ||
| 1100 | 1069 | if cerr == nil { | |
| 1101 | 1070 | return cret, nil | |
| 1102 | 1071 | } | |
| @@ -1115,12 +1084,10 @@ var xSocketLeaveMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **gli | |||
| 1115 | 1084 | func (x *Socket) LeaveMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | |
| 1116 | 1085 | var cerr *glib.Error | |
| 1117 | 1086 | ||
| 1118 | - | IfaceVarPtr, IfaceVarBytes := core.NullableStringToPtr(IfaceVar) | |
| 1087 | + | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| 1088 | + | defer core.GFreeNullable(IfaceVarPtr) | |
| 1119 | 1089 | ||
| 1120 | 1090 | cret := xSocketLeaveMulticastGroupSsm(x.GoPointer(), GroupVar.GoPointer(), SourceSpecificVar.GoPointer(), IfaceVarPtr, &cerr) | |
| 1121 | - | ||
| 1122 | - | runtime.KeepAlive(IfaceVarBytes) | |
| 1123 | - | ||
| 1124 | 1091 | if cerr == nil { | |
| 1125 | 1092 | return cret, nil | |
| 1126 | 1093 | } | |
| @@ -1142,7 +1109,6 @@ func (x *Socket) Listen() (bool, error) { | |||
| 1142 | 1109 | var cerr *glib.Error | |
| 1143 | 1110 | ||
| 1144 | 1111 | cret := xSocketListen(x.GoPointer()) | |
| 1145 | - | ||
| 1146 | 1112 | if cerr == nil { | |
| 1147 | 1113 | return cret, nil | |
| 1148 | 1114 | } | |
| @@ -1179,7 +1145,6 @@ func (x *Socket) Receive(BufferVar *[]byte, SizeVar uint, CancellableVar *Cancel | |||
| 1179 | 1145 | var cerr *glib.Error | |
| 1180 | 1146 | ||
| 1181 | 1147 | cret := xSocketReceive(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| 1182 | - | ||
| 1183 | 1148 | if cerr == nil { | |
| 1184 | 1149 | return cret, nil | |
| 1185 | 1150 | } | |
| @@ -1202,7 +1167,6 @@ func (x *Socket) ReceiveBytes(SizeVar uint, TimeoutUsVar int64, CancellableVar * | |||
| 1202 | 1167 | var cerr *glib.Error | |
| 1203 | 1168 | ||
| 1204 | 1169 | cret := xSocketReceiveBytes(x.GoPointer(), SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| 1205 | - | ||
| 1206 | 1170 | if cerr == nil { | |
| 1207 | 1171 | return cret, nil | |
| 1208 | 1172 | } | |
| @@ -1230,7 +1194,6 @@ func (x *Socket) ReceiveBytesFrom(AddressVar **SocketAddress, SizeVar uint, Time | |||
| 1230 | 1194 | var cerr *glib.Error | |
| 1231 | 1195 | ||
| 1232 | 1196 | cret := xSocketReceiveBytesFrom(x.GoPointer(), AddressVar, SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| 1233 | - | ||
| 1234 | 1197 | if cerr == nil { | |
| 1235 | 1198 | return cret, nil | |
| 1236 | 1199 | } | |
| @@ -1251,7 +1214,6 @@ func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar *[]byte, Size | |||
| 1251 | 1214 | var cerr *glib.Error | |
| 1252 | 1215 | ||
| 1253 | 1216 | cret := xSocketReceiveFrom(x.GoPointer(), AddressVar, BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| 1254 | - | ||
| 1255 | 1217 | if cerr == nil { | |
| 1256 | 1218 | return cret, nil | |
| 1257 | 1219 | } | |
| @@ -1324,7 +1286,6 @@ func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar []InputVe | |||
| 1324 | 1286 | var cerr *glib.Error | |
| 1325 | 1287 | ||
| 1326 | 1288 | cret := xSocketReceiveMessage(x.GoPointer(), AddressVar, VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 1327 | - | ||
| 1328 | 1289 | if cerr == nil { | |
| 1329 | 1290 | return cret, nil | |
| 1330 | 1291 | } | |
| @@ -1386,7 +1347,6 @@ func (x *Socket) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint | |||
| 1386 | 1347 | var cerr *glib.Error | |
| 1387 | 1348 | ||
| 1388 | 1349 | cret := xSocketReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 1389 | - | ||
| 1390 | 1350 | if cerr == nil { | |
| 1391 | 1351 | return cret, nil | |
| 1392 | 1352 | } | |
| @@ -1403,7 +1363,6 @@ func (x *Socket) ReceiveWithBlocking(BufferVar *[]byte, SizeVar uint, BlockingVa | |||
| 1403 | 1363 | var cerr *glib.Error | |
| 1404 | 1364 | ||
| 1405 | 1365 | cret := xSocketReceiveWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| 1406 | - | ||
| 1407 | 1366 | if cerr == nil { | |
| 1408 | 1367 | return cret, nil | |
| 1409 | 1368 | } | |
| @@ -1431,7 +1390,6 @@ func (x *Socket) Send(BufferVar []byte, SizeVar uint, CancellableVar *Cancellabl | |||
| 1431 | 1390 | var cerr *glib.Error | |
| 1432 | 1391 | ||
| 1433 | 1392 | cret := xSocketSend(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| 1434 | - | ||
| 1435 | 1393 | if cerr == nil { | |
| 1436 | 1394 | return cret, nil | |
| 1437 | 1395 | } | |
| @@ -1487,7 +1445,6 @@ func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar []OutputVecto | |||
| 1487 | 1445 | var cerr *glib.Error | |
| 1488 | 1446 | ||
| 1489 | 1447 | cret := xSocketSendMessage(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 1490 | - | ||
| 1491 | 1448 | if cerr == nil { | |
| 1492 | 1449 | return cret, nil | |
| 1493 | 1450 | } | |
| @@ -1508,7 +1465,6 @@ func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar [] | |||
| 1508 | 1465 | var cerr *glib.Error | |
| 1509 | 1466 | ||
| 1510 | 1467 | cret := xSocketSendMessageWithTimeout(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, TimeoutUsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 1511 | - | ||
| 1512 | 1468 | if cerr == nil { | |
| 1513 | 1469 | return cret, nil | |
| 1514 | 1470 | } | |
| @@ -1556,7 +1512,6 @@ func (x *Socket) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, | |||
| 1556 | 1512 | var cerr *glib.Error | |
| 1557 | 1513 | ||
| 1558 | 1514 | cret := xSocketSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 1559 | - | ||
| 1560 | 1515 | if cerr == nil { | |
| 1561 | 1516 | return cret, nil | |
| 1562 | 1517 | } | |
| @@ -1575,7 +1530,6 @@ func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar []byte, SizeVar uin | |||
| 1575 | 1530 | var cerr *glib.Error | |
| 1576 | 1531 | ||
| 1577 | 1532 | cret := xSocketSendTo(x.GoPointer(), AddressVar.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| 1578 | - | ||
| 1579 | 1533 | if cerr == nil { | |
| 1580 | 1534 | return cret, nil | |
| 1581 | 1535 | } | |
| @@ -1592,7 +1546,6 @@ func (x *Socket) SendWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bo | |||
| 1592 | 1546 | var cerr *glib.Error | |
| 1593 | 1547 | ||
| 1594 | 1548 | cret := xSocketSendWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| 1595 | - | ||
| 1596 | 1549 | if cerr == nil { | |
| 1597 | 1550 | return cret, nil | |
| 1598 | 1551 | } | |
| @@ -1702,7 +1655,6 @@ func (x *Socket) SetOption(LevelVar int, OptnameVar int, ValueVar int) (bool, er | |||
| 1702 | 1655 | var cerr *glib.Error | |
| 1703 | 1656 | ||
| 1704 | 1657 | cret := xSocketSetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | |
| 1705 | - | ||
| 1706 | 1658 | if cerr == nil { | |
| 1707 | 1659 | return cret, nil | |
| 1708 | 1660 | } | |
| @@ -1768,7 +1720,6 @@ func (x *Socket) Shutdown(ShutdownReadVar bool, ShutdownWriteVar bool) (bool, er | |||
| 1768 | 1720 | var cerr *glib.Error | |
| 1769 | 1721 | ||
| 1770 | 1722 | cret := xSocketShutdown(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, &cerr) | |
| 1771 | - | ||
| 1772 | 1723 | if cerr == nil { | |
| 1773 | 1724 | return cret, nil | |
| 1774 | 1725 | } | |
| @@ -1790,7 +1741,6 @@ var xSocketSpeaksIpv4 func(uintptr) bool | |||
| 1790 | 1741 | func (x *Socket) SpeaksIpv4() bool { | |
| 1791 | 1742 | ||
| 1792 | 1743 | cret := xSocketSpeaksIpv4(x.GoPointer()) | |
| 1793 | - | ||
| 1794 | 1744 | return cret | |
| 1795 | 1745 | } | |
| 1796 | 1746 | ||
| @@ -2000,7 +1950,6 @@ func (x *Socket) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 2000 | 1950 | var cerr *glib.Error | |
| 2001 | 1951 | ||
| 2002 | 1952 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 2003 | - | ||
| 2004 | 1953 | if cerr == nil { | |
| 2005 | 1954 | return cret, nil | |
| 2006 | 1955 | } | |
M v4/gio/gsocketaddress.go +0 -4
| @@ -140,7 +140,6 @@ var xSocketAddressGetFamily func(uintptr) SocketFamily | |||
| 140 | 140 | func (x *SocketAddress) GetFamily() SocketFamily { | |
| 141 | 141 | ||
| 142 | 142 | cret := xSocketAddressGetFamily(x.GoPointer()) | |
| 143 | - | ||
| 144 | 143 | return cret | |
| 145 | 144 | } | |
| 146 | 145 | ||
| @@ -152,7 +151,6 @@ var xSocketAddressGetNativeSize func(uintptr) int | |||
| 152 | 151 | func (x *SocketAddress) GetNativeSize() int { | |
| 153 | 152 | ||
| 154 | 153 | cret := xSocketAddressGetNativeSize(x.GoPointer()) | |
| 155 | - | ||
| 156 | 154 | return cret | |
| 157 | 155 | } | |
| 158 | 156 | ||
| @@ -168,7 +166,6 @@ func (x *SocketAddress) ToNative(DestVar uintptr, DestlenVar uint) (bool, error) | |||
| 168 | 166 | var cerr *glib.Error | |
| 169 | 167 | ||
| 170 | 168 | cret := xSocketAddressToNative(x.GoPointer(), DestVar, DestlenVar, &cerr) | |
| 171 | - | ||
| 172 | 169 | if cerr == nil { | |
| 173 | 170 | return cret, nil | |
| 174 | 171 | } | |
| @@ -231,7 +228,6 @@ func (x *SocketAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 231 | 228 | func (x *SocketAddress) ToString() string { | |
| 232 | 229 | ||
| 233 | 230 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 234 | - | ||
| 235 | 231 | return cret | |
| 236 | 232 | } | |
| 237 | 233 | ||
M v4/gio/gsocketclient.go +0 -7
| @@ -598,7 +598,6 @@ var xSocketClientGetEnableProxy func(uintptr) bool | |||
| 598 | 598 | func (x *SocketClient) GetEnableProxy() bool { | |
| 599 | 599 | ||
| 600 | 600 | cret := xSocketClientGetEnableProxy(x.GoPointer()) | |
| 601 | - | ||
| 602 | 601 | return cret | |
| 603 | 602 | } | |
| 604 | 603 | ||
| @@ -610,7 +609,6 @@ var xSocketClientGetFamily func(uintptr) SocketFamily | |||
| 610 | 609 | func (x *SocketClient) GetFamily() SocketFamily { | |
| 611 | 610 | ||
| 612 | 611 | cret := xSocketClientGetFamily(x.GoPointer()) | |
| 613 | - | ||
| 614 | 612 | return cret | |
| 615 | 613 | } | |
| 616 | 614 | ||
| @@ -641,7 +639,6 @@ var xSocketClientGetProtocol func(uintptr) SocketProtocol | |||
| 641 | 639 | func (x *SocketClient) GetProtocol() SocketProtocol { | |
| 642 | 640 | ||
| 643 | 641 | cret := xSocketClientGetProtocol(x.GoPointer()) | |
| 644 | - | ||
| 645 | 642 | return cret | |
| 646 | 643 | } | |
| 647 | 644 | ||
| @@ -672,7 +669,6 @@ var xSocketClientGetSocketType func(uintptr) SocketType | |||
| 672 | 669 | func (x *SocketClient) GetSocketType() SocketType { | |
| 673 | 670 | ||
| 674 | 671 | cret := xSocketClientGetSocketType(x.GoPointer()) | |
| 675 | - | ||
| 676 | 672 | return cret | |
| 677 | 673 | } | |
| 678 | 674 | ||
| @@ -684,7 +680,6 @@ var xSocketClientGetTimeout func(uintptr) uint | |||
| 684 | 680 | func (x *SocketClient) GetTimeout() uint { | |
| 685 | 681 | ||
| 686 | 682 | cret := xSocketClientGetTimeout(x.GoPointer()) | |
| 687 | - | ||
| 688 | 683 | return cret | |
| 689 | 684 | } | |
| 690 | 685 | ||
| @@ -695,7 +690,6 @@ var xSocketClientGetTls func(uintptr) bool | |||
| 695 | 690 | func (x *SocketClient) GetTls() bool { | |
| 696 | 691 | ||
| 697 | 692 | cret := xSocketClientGetTls(x.GoPointer()) | |
| 698 | - | ||
| 699 | 693 | return cret | |
| 700 | 694 | } | |
| 701 | 695 | ||
| @@ -710,7 +704,6 @@ var xSocketClientGetTlsValidationFlags func(uintptr) TlsCertificateFlags | |||
| 710 | 704 | func (x *SocketClient) GetTlsValidationFlags() TlsCertificateFlags { | |
| 711 | 705 | ||
| 712 | 706 | cret := xSocketClientGetTlsValidationFlags(x.GoPointer()) | |
| 713 | - | ||
| 714 | 707 | return cret | |
| 715 | 708 | } | |
| 716 | 709 | ||
M v4/gio/gsocketconnectable.go +0 -1
| @@ -260,7 +260,6 @@ func (x *SocketConnectableBase) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 260 | 260 | func (x *SocketConnectableBase) ToString() string { | |
| 261 | 261 | ||
| 262 | 262 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 263 | - | ||
| 264 | 263 | return cret | |
| 265 | 264 | } | |
| 266 | 265 | ||
M v4/gio/gsocketconnection.go +0 -4
| @@ -219,7 +219,6 @@ func (x *SocketConnection) Connect(AddressVar *SocketAddress, CancellableVar *Ca | |||
| 219 | 219 | var cerr *glib.Error | |
| 220 | 220 | ||
| 221 | 221 | cret := xSocketConnectionConnect(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 222 | - | ||
| 223 | 222 | if cerr == nil { | |
| 224 | 223 | return cret, nil | |
| 225 | 224 | } | |
| @@ -267,7 +266,6 @@ func (x *SocketConnection) ConnectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 267 | 266 | var cerr *glib.Error | |
| 268 | 267 | ||
| 269 | 268 | cret := xSocketConnectionConnectFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 270 | - | ||
| 271 | 269 | if cerr == nil { | |
| 272 | 270 | return cret, nil | |
| 273 | 271 | } | |
| @@ -350,7 +348,6 @@ var xSocketConnectionIsConnected func(uintptr) bool | |||
| 350 | 348 | func (x *SocketConnection) IsConnected() bool { | |
| 351 | 349 | ||
| 352 | 350 | cret := xSocketConnectionIsConnected(x.GoPointer()) | |
| 353 | - | ||
| 354 | 351 | return cret | |
| 355 | 352 | } | |
| 356 | 353 | ||
| @@ -374,7 +371,6 @@ var xSocketConnectionFactoryLookupType func(SocketFamily, SocketType, int) types | |||
| 374 | 371 | func SocketConnectionFactoryLookupType(FamilyVar SocketFamily, TypeVar SocketType, ProtocolIdVar int) types.GType { | |
| 375 | 372 | ||
| 376 | 373 | cret := xSocketConnectionFactoryLookupType(FamilyVar, TypeVar, ProtocolIdVar) | |
| 377 | - | ||
| 378 | 374 | return cret | |
| 379 | 375 | } | |
| 380 | 376 | ||
M v4/gio/gsocketcontrolmessage.go +0 -3
| @@ -343,7 +343,6 @@ var xSocketControlMessageGetLevel func(uintptr) int | |||
| 343 | 343 | func (x *SocketControlMessage) GetLevel() int { | |
| 344 | 344 | ||
| 345 | 345 | cret := xSocketControlMessageGetLevel(x.GoPointer()) | |
| 346 | - | ||
| 347 | 346 | return cret | |
| 348 | 347 | } | |
| 349 | 348 | ||
| @@ -354,7 +353,6 @@ var xSocketControlMessageGetMsgType func(uintptr) int | |||
| 354 | 353 | func (x *SocketControlMessage) GetMsgType() int { | |
| 355 | 354 | ||
| 356 | 355 | cret := xSocketControlMessageGetMsgType(x.GoPointer()) | |
| 357 | - | ||
| 358 | 356 | return cret | |
| 359 | 357 | } | |
| 360 | 358 | ||
| @@ -365,7 +363,6 @@ var xSocketControlMessageGetSize func(uintptr) uint | |||
| 365 | 363 | func (x *SocketControlMessage) GetSize() uint { | |
| 366 | 364 | ||
| 367 | 365 | cret := xSocketControlMessageGetSize(x.GoPointer()) | |
| 368 | - | ||
| 369 | 366 | return cret | |
| 370 | 367 | } | |
| 371 | 368 | ||
M v4/gio/gsocketlistener.go +0 -4
| @@ -449,7 +449,6 @@ func (x *SocketListener) AddAddress(AddressVar *SocketAddress, TypeVar SocketTyp | |||
| 449 | 449 | var cerr *glib.Error | |
| 450 | 450 | ||
| 451 | 451 | cret := xSocketListenerAddAddress(x.GoPointer(), AddressVar.GoPointer(), TypeVar, ProtocolVar, SourceObjectVar.GoPointer(), EffectiveAddressVar, &cerr) | |
| 452 | - | ||
| 453 | 452 | if cerr == nil { | |
| 454 | 453 | return cret, nil | |
| 455 | 454 | } | |
| @@ -481,7 +480,6 @@ func (x *SocketListener) AddAnyInetPort(SourceObjectVar *gobject.Object) (uint16 | |||
| 481 | 480 | var cerr *glib.Error | |
| 482 | 481 | ||
| 483 | 482 | cret := xSocketListenerAddAnyInetPort(x.GoPointer(), SourceObjectVar.GoPointer(), &cerr) | |
| 484 | - | ||
| 485 | 483 | if cerr == nil { | |
| 486 | 484 | return cret, nil | |
| 487 | 485 | } | |
| @@ -515,7 +513,6 @@ func (x *SocketListener) AddInetPort(PortVar uint16, SourceObjectVar *gobject.Ob | |||
| 515 | 513 | var cerr *glib.Error | |
| 516 | 514 | ||
| 517 | 515 | cret := xSocketListenerAddInetPort(x.GoPointer(), PortVar, SourceObjectVar.GoPointer(), &cerr) | |
| 518 | - | ||
| 519 | 516 | if cerr == nil { | |
| 520 | 517 | return cret, nil | |
| 521 | 518 | } | |
| @@ -545,7 +542,6 @@ func (x *SocketListener) AddSocket(SocketVar *Socket, SourceObjectVar *gobject.O | |||
| 545 | 542 | var cerr *glib.Error | |
| 546 | 543 | ||
| 547 | 544 | cret := xSocketListenerAddSocket(x.GoPointer(), SocketVar.GoPointer(), SourceObjectVar.GoPointer(), &cerr) | |
| 548 | - | ||
| 549 | 545 | if cerr == nil { | |
| 550 | 546 | return cret, nil | |
| 551 | 547 | } | |
M v4/gio/gsocketservice.go +0 -1
| @@ -281,7 +281,6 @@ var xSocketServiceIsActive func(uintptr) bool | |||
| 281 | 281 | func (x *SocketService) IsActive() bool { | |
| 282 | 282 | ||
| 283 | 283 | cret := xSocketServiceIsActive(x.GoPointer()) | |
| 284 | - | ||
| 285 | 284 | return cret | |
| 286 | 285 | } | |
| 287 | 286 | ||
M v4/gio/gsrvtarget.go +0 -1
| @@ -13,7 +13,6 @@ var xSrvTargetListSort func(*glib.List) *glib.List | |||
| 13 | 13 | func SrvTargetListSort(TargetsVar *glib.List) *glib.List { | |
| 14 | 14 | ||
| 15 | 15 | cret := xSrvTargetListSort(TargetsVar) | |
| 16 | - | ||
| 17 | 16 | return cret | |
| 18 | 17 | } | |
| 19 | 18 | ||
M v4/gio/gsubprocess.go +4 -23
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "unsafe" | |
| 7 | 6 | ||
| 8 | 7 | "github.com/jwijenbergh/purego" | |
| @@ -183,7 +182,6 @@ func (x *Subprocess) Communicate(StdinBufVar *glib.Bytes, CancellableVar *Cancel | |||
| 183 | 182 | var cerr *glib.Error | |
| 184 | 183 | ||
| 185 | 184 | cret := xSubprocessCommunicate(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| 186 | - | ||
| 187 | 185 | if cerr == nil { | |
| 188 | 186 | return cret, nil | |
| 189 | 187 | } | |
| @@ -223,7 +221,6 @@ func (x *Subprocess) CommunicateFinish(ResultVar AsyncResult, StdoutBufVar **gli | |||
| 223 | 221 | var cerr *glib.Error | |
| 224 | 222 | ||
| 225 | 223 | cret := xSubprocessCommunicateFinish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| 226 | - | ||
| 227 | 224 | if cerr == nil { | |
| 228 | 225 | return cret, nil | |
| 229 | 226 | } | |
| @@ -241,12 +238,10 @@ var xSubprocessCommunicateUtf8 func(uintptr, uintptr, uintptr, *string, *string, | |||
| 241 | 238 | func (x *Subprocess) CommunicateUtf8(StdinBufVar *string, CancellableVar *Cancellable, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | |
| 242 | 239 | var cerr *glib.Error | |
| 243 | 240 | ||
| 244 | - | StdinBufVarPtr, StdinBufVarBytes := core.NullableStringToPtr(StdinBufVar) | |
| 241 | + | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | |
| 242 | + | defer core.GFreeNullable(StdinBufVarPtr) | |
| 245 | 243 | ||
| 246 | 244 | cret := xSubprocessCommunicateUtf8(x.GoPointer(), StdinBufVarPtr, CancellableVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| 247 | - | ||
| 248 | - | runtime.KeepAlive(StdinBufVarBytes) | |
| 249 | - | ||
| 250 | 245 | if cerr == nil { | |
| 251 | 246 | return cret, nil | |
| 252 | 247 | } | |
| @@ -275,12 +270,11 @@ func (x *Subprocess) CommunicateUtf8Async(StdinBufVar *string, CancellableVar *C | |||
| 275 | 270 | } | |
| 276 | 271 | } | |
| 277 | 272 | ||
| 278 | - | StdinBufVarPtr, StdinBufVarBytes := core.NullableStringToPtr(StdinBufVar) | |
| 273 | + | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | |
| 274 | + | defer core.GFreeNullable(StdinBufVarPtr) | |
| 279 | 275 | ||
| 280 | 276 | xSubprocessCommunicateUtf8Async(x.GoPointer(), StdinBufVarPtr, CancellableVar.GoPointer(), CallbackVarRef, UserDataVar) | |
| 281 | 277 | ||
| 282 | - | runtime.KeepAlive(StdinBufVarBytes) | |
| 283 | - | ||
| 284 | 278 | } | |
| 285 | 279 | ||
| 286 | 280 | var xSubprocessCommunicateUtf8Finish func(uintptr, uintptr, *string, *string, **glib.Error) bool | |
| @@ -290,7 +284,6 @@ func (x *Subprocess) CommunicateUtf8Finish(ResultVar AsyncResult, StdoutBufVar * | |||
| 290 | 284 | var cerr *glib.Error | |
| 291 | 285 | ||
| 292 | 286 | cret := xSubprocessCommunicateUtf8Finish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| 293 | - | ||
| 294 | 287 | if cerr == nil { | |
| 295 | 288 | return cret, nil | |
| 296 | 289 | } | |
| @@ -326,7 +319,6 @@ var xSubprocessGetExitStatus func(uintptr) int | |||
| 326 | 319 | func (x *Subprocess) GetExitStatus() int { | |
| 327 | 320 | ||
| 328 | 321 | cret := xSubprocessGetExitStatus(x.GoPointer()) | |
| 329 | - | ||
| 330 | 322 | return cret | |
| 331 | 323 | } | |
| 332 | 324 | ||
| @@ -338,7 +330,6 @@ var xSubprocessGetIdentifier func(uintptr) string | |||
| 338 | 330 | func (x *Subprocess) GetIdentifier() string { | |
| 339 | 331 | ||
| 340 | 332 | cret := xSubprocessGetIdentifier(x.GoPointer()) | |
| 341 | - | ||
| 342 | 333 | return cret | |
| 343 | 334 | } | |
| 344 | 335 | ||
| @@ -354,7 +345,6 @@ var xSubprocessGetIfExited func(uintptr) bool | |||
| 354 | 345 | func (x *Subprocess) GetIfExited() bool { | |
| 355 | 346 | ||
| 356 | 347 | cret := xSubprocessGetIfExited(x.GoPointer()) | |
| 357 | - | ||
| 358 | 348 | return cret | |
| 359 | 349 | } | |
| 360 | 350 | ||
| @@ -369,7 +359,6 @@ var xSubprocessGetIfSignaled func(uintptr) bool | |||
| 369 | 359 | func (x *Subprocess) GetIfSignaled() bool { | |
| 370 | 360 | ||
| 371 | 361 | cret := xSubprocessGetIfSignaled(x.GoPointer()) | |
| 372 | - | ||
| 373 | 362 | return cret | |
| 374 | 363 | } | |
| 375 | 364 | ||
| @@ -389,7 +378,6 @@ var xSubprocessGetStatus func(uintptr) int | |||
| 389 | 378 | func (x *Subprocess) GetStatus() int { | |
| 390 | 379 | ||
| 391 | 380 | cret := xSubprocessGetStatus(x.GoPointer()) | |
| 392 | - | ||
| 393 | 381 | return cret | |
| 394 | 382 | } | |
| 395 | 383 | ||
| @@ -467,7 +455,6 @@ var xSubprocessGetSuccessful func(uintptr) bool | |||
| 467 | 455 | func (x *Subprocess) GetSuccessful() bool { | |
| 468 | 456 | ||
| 469 | 457 | cret := xSubprocessGetSuccessful(x.GoPointer()) | |
| 470 | - | ||
| 471 | 458 | return cret | |
| 472 | 459 | } | |
| 473 | 460 | ||
| @@ -483,7 +470,6 @@ var xSubprocessGetTermSig func(uintptr) int | |||
| 483 | 470 | func (x *Subprocess) GetTermSig() int { | |
| 484 | 471 | ||
| 485 | 472 | cret := xSubprocessGetTermSig(x.GoPointer()) | |
| 486 | - | ||
| 487 | 473 | return cret | |
| 488 | 474 | } | |
| 489 | 475 | ||
| @@ -519,7 +505,6 @@ func (x *Subprocess) Wait(CancellableVar *Cancellable) (bool, error) { | |||
| 519 | 505 | var cerr *glib.Error | |
| 520 | 506 | ||
| 521 | 507 | cret := xSubprocessWait(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 522 | - | ||
| 523 | 508 | if cerr == nil { | |
| 524 | 509 | return cret, nil | |
| 525 | 510 | } | |
| @@ -560,7 +545,6 @@ func (x *Subprocess) WaitCheck(CancellableVar *Cancellable) (bool, error) { | |||
| 560 | 545 | var cerr *glib.Error | |
| 561 | 546 | ||
| 562 | 547 | cret := xSubprocessWaitCheck(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 563 | - | ||
| 564 | 548 | if cerr == nil { | |
| 565 | 549 | return cret, nil | |
| 566 | 550 | } | |
| @@ -602,7 +586,6 @@ func (x *Subprocess) WaitCheckFinish(ResultVar AsyncResult) (bool, error) { | |||
| 602 | 586 | var cerr *glib.Error | |
| 603 | 587 | ||
| 604 | 588 | cret := xSubprocessWaitCheckFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 605 | - | ||
| 606 | 589 | if cerr == nil { | |
| 607 | 590 | return cret, nil | |
| 608 | 591 | } | |
| @@ -618,7 +601,6 @@ func (x *Subprocess) WaitFinish(ResultVar AsyncResult) (bool, error) { | |||
| 618 | 601 | var cerr *glib.Error | |
| 619 | 602 | ||
| 620 | 603 | cret := xSubprocessWaitFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 621 | - | ||
| 622 | 604 | if cerr == nil { | |
| 623 | 605 | return cret, nil | |
| 624 | 606 | } | |
| @@ -688,7 +670,6 @@ func (x *Subprocess) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 688 | 670 | var cerr *glib.Error | |
| 689 | 671 | ||
| 690 | 672 | cret := XGInitableInit(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 691 | - | ||
| 692 | 673 | if cerr == nil { | |
| 693 | 674 | return cret, nil | |
| 694 | 675 | } | |
M v4/gio/gsubprocesslauncher.go +6 -11
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "unsafe" | |
| 7 | 6 | ||
| 8 | 7 | "github.com/jwijenbergh/purego" | |
| @@ -84,7 +83,6 @@ var xSubprocessLauncherGetenv func(uintptr, string) string | |||
| 84 | 83 | func (x *SubprocessLauncher) Getenv(VariableVar string) string { | |
| 85 | 84 | ||
| 86 | 85 | cret := xSubprocessLauncherGetenv(x.GoPointer(), VariableVar) | |
| 87 | - | ||
| 88 | 86 | return cret | |
| 89 | 87 | } | |
| 90 | 88 | ||
| @@ -217,12 +215,11 @@ var xSubprocessLauncherSetStderrFilePath func(uintptr, uintptr) | |||
| 217 | 215 | // This feature is only available on UNIX. | |
| 218 | 216 | func (x *SubprocessLauncher) SetStderrFilePath(PathVar *string) { | |
| 219 | 217 | ||
| 220 | - | PathVarPtr, PathVarBytes := core.NullableStringToPtr(PathVar) | |
| 218 | + | PathVarPtr := core.GStrdupNullable(PathVar) | |
| 219 | + | defer core.GFreeNullable(PathVarPtr) | |
| 221 | 220 | ||
| 222 | 221 | xSubprocessLauncherSetStderrFilePath(x.GoPointer(), PathVarPtr) | |
| 223 | 222 | ||
| 224 | - | runtime.KeepAlive(PathVarBytes) | |
| 225 | - | ||
| 226 | 223 | } | |
| 227 | 224 | ||
| 228 | 225 | var xSubprocessLauncherSetStdinFilePath func(uintptr, uintptr) | |
| @@ -239,12 +236,11 @@ var xSubprocessLauncherSetStdinFilePath func(uintptr, uintptr) | |||
| 239 | 236 | // This feature is only available on UNIX. | |
| 240 | 237 | func (x *SubprocessLauncher) SetStdinFilePath(PathVar *string) { | |
| 241 | 238 | ||
| 242 | - | PathVarPtr, PathVarBytes := core.NullableStringToPtr(PathVar) | |
| 239 | + | PathVarPtr := core.GStrdupNullable(PathVar) | |
| 240 | + | defer core.GFreeNullable(PathVarPtr) | |
| 243 | 241 | ||
| 244 | 242 | xSubprocessLauncherSetStdinFilePath(x.GoPointer(), PathVarPtr) | |
| 245 | 243 | ||
| 246 | - | runtime.KeepAlive(PathVarBytes) | |
| 247 | - | ||
| 248 | 244 | } | |
| 249 | 245 | ||
| 250 | 246 | var xSubprocessLauncherSetStdoutFilePath func(uintptr, uintptr) | |
| @@ -262,12 +258,11 @@ var xSubprocessLauncherSetStdoutFilePath func(uintptr, uintptr) | |||
| 262 | 258 | // This feature is only available on UNIX. | |
| 263 | 259 | func (x *SubprocessLauncher) SetStdoutFilePath(PathVar *string) { | |
| 264 | 260 | ||
| 265 | - | PathVarPtr, PathVarBytes := core.NullableStringToPtr(PathVar) | |
| 261 | + | PathVarPtr := core.GStrdupNullable(PathVar) | |
| 262 | + | defer core.GFreeNullable(PathVarPtr) | |
| 266 | 263 | ||
| 267 | 264 | xSubprocessLauncherSetStdoutFilePath(x.GoPointer(), PathVarPtr) | |
| 268 | 265 | ||
| 269 | - | runtime.KeepAlive(PathVarBytes) | |
| 270 | - | ||
| 271 | 266 | } | |
| 272 | 267 | ||
| 273 | 268 | var xSubprocessLauncherSetenv func(uintptr, string, string, bool) | |
M v4/gio/gtask.go +4 -26
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -717,7 +716,6 @@ var xTaskGetCheckCancellable func(uintptr) bool | |||
| 717 | 716 | func (x *Task) GetCheckCancellable() bool { | |
| 718 | 717 | ||
| 719 | 718 | cret := xTaskGetCheckCancellable(x.GoPointer()) | |
| 720 | - | ||
| 721 | 719 | return cret | |
| 722 | 720 | } | |
| 723 | 721 | ||
| @@ -729,7 +727,6 @@ var xTaskGetCompleted func(uintptr) bool | |||
| 729 | 727 | func (x *Task) GetCompleted() bool { | |
| 730 | 728 | ||
| 731 | 729 | cret := xTaskGetCompleted(x.GoPointer()) | |
| 732 | - | ||
| 733 | 730 | return cret | |
| 734 | 731 | } | |
| 735 | 732 | ||
| @@ -745,7 +742,6 @@ var xTaskGetContext func(uintptr) *glib.MainContext | |||
| 745 | 742 | func (x *Task) GetContext() *glib.MainContext { | |
| 746 | 743 | ||
| 747 | 744 | cret := xTaskGetContext(x.GoPointer()) | |
| 748 | - | ||
| 749 | 745 | return cret | |
| 750 | 746 | } | |
| 751 | 747 | ||
| @@ -755,7 +751,6 @@ var xTaskGetName func(uintptr) string | |||
| 755 | 751 | func (x *Task) GetName() string { | |
| 756 | 752 | ||
| 757 | 753 | cret := xTaskGetName(x.GoPointer()) | |
| 758 | - | ||
| 759 | 754 | return cret | |
| 760 | 755 | } | |
| 761 | 756 | ||
| @@ -765,7 +760,6 @@ var xTaskGetPriority func(uintptr) int | |||
| 765 | 760 | func (x *Task) GetPriority() int { | |
| 766 | 761 | ||
| 767 | 762 | cret := xTaskGetPriority(x.GoPointer()) | |
| 768 | - | ||
| 769 | 763 | return cret | |
| 770 | 764 | } | |
| 771 | 765 | ||
| @@ -776,7 +770,6 @@ var xTaskGetReturnOnCancel func(uintptr) bool | |||
| 776 | 770 | func (x *Task) GetReturnOnCancel() bool { | |
| 777 | 771 | ||
| 778 | 772 | cret := xTaskGetReturnOnCancel(x.GoPointer()) | |
| 779 | - | ||
| 780 | 773 | return cret | |
| 781 | 774 | } | |
| 782 | 775 | ||
| @@ -804,7 +797,6 @@ var xTaskGetSourceTag func(uintptr) uintptr | |||
| 804 | 797 | func (x *Task) GetSourceTag() uintptr { | |
| 805 | 798 | ||
| 806 | 799 | cret := xTaskGetSourceTag(x.GoPointer()) | |
| 807 | - | ||
| 808 | 800 | return cret | |
| 809 | 801 | } | |
| 810 | 802 | ||
| @@ -814,7 +806,6 @@ var xTaskGetTaskData func(uintptr) uintptr | |||
| 814 | 806 | func (x *Task) GetTaskData() uintptr { | |
| 815 | 807 | ||
| 816 | 808 | cret := xTaskGetTaskData(x.GoPointer()) | |
| 817 | - | ||
| 818 | 809 | return cret | |
| 819 | 810 | } | |
| 820 | 811 | ||
| @@ -824,7 +815,6 @@ var xTaskHadError func(uintptr) bool | |||
| 824 | 815 | func (x *Task) HadError() bool { | |
| 825 | 816 | ||
| 826 | 817 | cret := xTaskHadError(x.GoPointer()) | |
| 827 | - | ||
| 828 | 818 | return cret | |
| 829 | 819 | } | |
| 830 | 820 | ||
| @@ -841,7 +831,6 @@ func (x *Task) PropagateBoolean() (bool, error) { | |||
| 841 | 831 | var cerr *glib.Error | |
| 842 | 832 | ||
| 843 | 833 | cret := xTaskPropagateBoolean(x.GoPointer()) | |
| 844 | - | ||
| 845 | 834 | if cerr == nil { | |
| 846 | 835 | return cret, nil | |
| 847 | 836 | } | |
| @@ -862,7 +851,6 @@ func (x *Task) PropagateInt() (int, error) { | |||
| 862 | 851 | var cerr *glib.Error | |
| 863 | 852 | ||
| 864 | 853 | cret := xTaskPropagateInt(x.GoPointer()) | |
| 865 | - | ||
| 866 | 854 | if cerr == nil { | |
| 867 | 855 | return cret, nil | |
| 868 | 856 | } | |
| @@ -884,7 +872,6 @@ func (x *Task) PropagatePointer() (uintptr, error) { | |||
| 884 | 872 | var cerr *glib.Error | |
| 885 | 873 | ||
| 886 | 874 | cret := xTaskPropagatePointer(x.GoPointer()) | |
| 887 | - | ||
| 888 | 875 | if cerr == nil { | |
| 889 | 876 | return cret, nil | |
| 890 | 877 | } | |
| @@ -908,7 +895,6 @@ func (x *Task) PropagateValue(ValueVar *gobject.Value) (bool, error) { | |||
| 908 | 895 | var cerr *glib.Error | |
| 909 | 896 | ||
| 910 | 897 | cret := xTaskPropagateValue(x.GoPointer(), ValueVar, &cerr) | |
| 911 | - | ||
| 912 | 898 | if cerr == nil { | |
| 913 | 899 | return cret, nil | |
| 914 | 900 | } | |
| @@ -956,7 +942,6 @@ var xTaskReturnErrorIfCancelled func(uintptr) bool | |||
| 956 | 942 | func (x *Task) ReturnErrorIfCancelled() bool { | |
| 957 | 943 | ||
| 958 | 944 | cret := xTaskReturnErrorIfCancelled(x.GoPointer()) | |
| 959 | - | ||
| 960 | 945 | return cret | |
| 961 | 946 | } | |
| 962 | 947 | ||
| @@ -1193,12 +1178,11 @@ var xTaskSetName func(uintptr, uintptr) | |||
| 1193 | 1178 | // other than the one it was constructed in. | |
| 1194 | 1179 | func (x *Task) SetName(NameVar *string) { | |
| 1195 | 1180 | ||
| 1196 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 1181 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1182 | + | defer core.GFreeNullable(NameVarPtr) | |
| 1197 | 1183 | ||
| 1198 | 1184 | xTaskSetName(x.GoPointer(), NameVarPtr) | |
| 1199 | 1185 | ||
| 1200 | - | runtime.KeepAlive(NameVarBytes) | |
| 1201 | - | ||
| 1202 | 1186 | } | |
| 1203 | 1187 | ||
| 1204 | 1188 | var xTaskSetPriority func(uintptr, int) | |
| @@ -1249,7 +1233,6 @@ var xTaskSetReturnOnCancel func(uintptr, bool) bool | |||
| 1249 | 1233 | func (x *Task) SetReturnOnCancel(ReturnOnCancelVar bool) bool { | |
| 1250 | 1234 | ||
| 1251 | 1235 | cret := xTaskSetReturnOnCancel(x.GoPointer(), ReturnOnCancelVar) | |
| 1252 | - | ||
| 1253 | 1236 | return cret | |
| 1254 | 1237 | } | |
| 1255 | 1238 | ||
| @@ -1283,12 +1266,11 @@ var xTaskSetStaticName func(uintptr, uintptr) | |||
| 1283 | 1266 | // unless a name is set. | |
| 1284 | 1267 | func (x *Task) SetStaticName(NameVar *string) { | |
| 1285 | 1268 | ||
| 1286 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 1269 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1270 | + | defer core.GFreeNullable(NameVarPtr) | |
| 1287 | 1271 | ||
| 1288 | 1272 | xTaskSetStaticName(x.GoPointer(), NameVarPtr) | |
| 1289 | 1273 | ||
| 1290 | - | runtime.KeepAlive(NameVarBytes) | |
| 1291 | - | ||
| 1292 | 1274 | } | |
| 1293 | 1275 | ||
| 1294 | 1276 | var xTaskSetTaskData func(uintptr, uintptr, uintptr) | |
| @@ -1355,7 +1337,6 @@ func (x *Task) GetPropertyCompleted() bool { | |||
| 1355 | 1337 | func (x *Task) GetUserData() uintptr { | |
| 1356 | 1338 | ||
| 1357 | 1339 | cret := XGAsyncResultGetUserData(x.GoPointer()) | |
| 1358 | - | ||
| 1359 | 1340 | return cret | |
| 1360 | 1341 | } | |
| 1361 | 1342 | ||
| @@ -1364,7 +1345,6 @@ func (x *Task) GetUserData() uintptr { | |||
| 1364 | 1345 | func (x *Task) IsTagged(SourceTagVar uintptr) bool { | |
| 1365 | 1346 | ||
| 1366 | 1347 | cret := XGAsyncResultIsTagged(x.GoPointer(), SourceTagVar) | |
| 1367 | - | ||
| 1368 | 1348 | return cret | |
| 1369 | 1349 | } | |
| 1370 | 1350 | ||
| @@ -1382,7 +1362,6 @@ func (x *Task) LegacyPropagateError() (bool, error) { | |||
| 1382 | 1362 | var cerr *glib.Error | |
| 1383 | 1363 | ||
| 1384 | 1364 | cret := XGAsyncResultLegacyPropagateError(x.GoPointer()) | |
| 1385 | - | ||
| 1386 | 1365 | if cerr == nil { | |
| 1387 | 1366 | return cret, nil | |
| 1388 | 1367 | } | |
| @@ -1398,7 +1377,6 @@ var xTaskIsValid func(uintptr, uintptr) bool | |||
| 1398 | 1377 | func TaskIsValid(ResultVar AsyncResult, SourceObjectVar *gobject.Object) bool { | |
| 1399 | 1378 | ||
| 1400 | 1379 | cret := xTaskIsValid(ResultVar.GoPointer(), SourceObjectVar.GoPointer()) | |
| 1401 | - | ||
| 1402 | 1380 | return cret | |
| 1403 | 1381 | } | |
| 1404 | 1382 | ||
M v4/gio/gtcpconnection.go +0 -1
| @@ -54,7 +54,6 @@ var xTcpConnectionGetGracefulDisconnect func(uintptr) bool | |||
| 54 | 54 | func (x *TcpConnection) GetGracefulDisconnect() bool { | |
| 55 | 55 | ||
| 56 | 56 | cret := xTcpConnectionGetGracefulDisconnect(x.GoPointer()) | |
| 57 | - | ||
| 58 | 57 | return cret | |
| 59 | 58 | } | |
| 60 | 59 | ||
M v4/gio/gtestdbus.go +0 -2
| @@ -152,7 +152,6 @@ var xTestDBusGetBusAddress func(uintptr) string | |||
| 152 | 152 | func (x *TestDBus) GetBusAddress() string { | |
| 153 | 153 | ||
| 154 | 154 | cret := xTestDBusGetBusAddress(x.GoPointer()) | |
| 155 | - | ||
| 156 | 155 | return cret | |
| 157 | 156 | } | |
| 158 | 157 | ||
| @@ -162,7 +161,6 @@ var xTestDBusGetFlags func(uintptr) TestDBusFlags | |||
| 162 | 161 | func (x *TestDBus) GetFlags() TestDBusFlags { | |
| 163 | 162 | ||
| 164 | 163 | cret := xTestDBusGetFlags(x.GoPointer()) | |
| 165 | - | ||
| 166 | 164 | return cret | |
| 167 | 165 | } | |
| 168 | 166 | ||
M v4/gio/gthemedicon.go +0 -5
| @@ -126,7 +126,6 @@ var xThemedIconGetNames func(uintptr) []string | |||
| 126 | 126 | func (x *ThemedIcon) GetNames() []string { | |
| 127 | 127 | ||
| 128 | 128 | cret := xThemedIconGetNames(x.GoPointer()) | |
| 129 | - | ||
| 130 | 129 | return cret | |
| 131 | 130 | } | |
| 132 | 131 | ||
| @@ -232,7 +231,6 @@ func (x *ThemedIcon) GetPropertyUseDefaultFallbacks() bool { | |||
| 232 | 231 | func (x *ThemedIcon) Equal(Icon2Var Icon) bool { | |
| 233 | 232 | ||
| 234 | 233 | cret := XGIconEqual(x.GoPointer(), Icon2Var.GoPointer()) | |
| 235 | - | ||
| 236 | 234 | return cret | |
| 237 | 235 | } | |
| 238 | 236 | ||
| @@ -240,7 +238,6 @@ func (x *ThemedIcon) Equal(Icon2Var Icon) bool { | |||
| 240 | 238 | func (x *ThemedIcon) Hash() uint { | |
| 241 | 239 | ||
| 242 | 240 | cret := XGIconHash(x.GoPointer()) | |
| 243 | - | ||
| 244 | 241 | return cret | |
| 245 | 242 | } | |
| 246 | 243 | ||
| @@ -252,7 +249,6 @@ func (x *ThemedIcon) Hash() uint { | |||
| 252 | 249 | func (x *ThemedIcon) Serialize() *glib.Variant { | |
| 253 | 250 | ||
| 254 | 251 | cret := XGIconSerialize(x.GoPointer()) | |
| 255 | - | ||
| 256 | 252 | return cret | |
| 257 | 253 | } | |
| 258 | 254 | ||
| @@ -275,7 +271,6 @@ func (x *ThemedIcon) Serialize() *glib.Variant { | |||
| 275 | 271 | func (x *ThemedIcon) ToString() string { | |
| 276 | 272 | ||
| 277 | 273 | cret := XGIconToString(x.GoPointer()) | |
| 278 | - | ||
| 279 | 274 | return cret | |
| 280 | 275 | } | |
| 281 | 276 | ||
M v4/gio/gtlsbackend.go +0 -8
| @@ -318,7 +318,6 @@ func (x *TlsBackendBase) SetGoPointer(ptr uintptr) { | |||
| 318 | 318 | func (x *TlsBackendBase) GetCertificateType() types.GType { | |
| 319 | 319 | ||
| 320 | 320 | cret := XGTlsBackendGetCertificateType(x.GoPointer()) | |
| 321 | - | ||
| 322 | 321 | return cret | |
| 323 | 322 | } | |
| 324 | 323 | ||
| @@ -326,7 +325,6 @@ func (x *TlsBackendBase) GetCertificateType() types.GType { | |||
| 326 | 325 | func (x *TlsBackendBase) GetClientConnectionType() types.GType { | |
| 327 | 326 | ||
| 328 | 327 | cret := XGTlsBackendGetClientConnectionType(x.GoPointer()) | |
| 329 | - | ||
| 330 | 328 | return cret | |
| 331 | 329 | } | |
| 332 | 330 | ||
| @@ -348,7 +346,6 @@ func (x *TlsBackendBase) GetDefaultDatabase() *TlsDatabase { | |||
| 348 | 346 | func (x *TlsBackendBase) GetDtlsClientConnectionType() types.GType { | |
| 349 | 347 | ||
| 350 | 348 | cret := XGTlsBackendGetDtlsClientConnectionType(x.GoPointer()) | |
| 351 | - | ||
| 352 | 349 | return cret | |
| 353 | 350 | } | |
| 354 | 351 | ||
| @@ -356,7 +353,6 @@ func (x *TlsBackendBase) GetDtlsClientConnectionType() types.GType { | |||
| 356 | 353 | func (x *TlsBackendBase) GetDtlsServerConnectionType() types.GType { | |
| 357 | 354 | ||
| 358 | 355 | cret := XGTlsBackendGetDtlsServerConnectionType(x.GoPointer()) | |
| 359 | - | ||
| 360 | 356 | return cret | |
| 361 | 357 | } | |
| 362 | 358 | ||
| @@ -364,7 +360,6 @@ func (x *TlsBackendBase) GetDtlsServerConnectionType() types.GType { | |||
| 364 | 360 | func (x *TlsBackendBase) GetFileDatabaseType() types.GType { | |
| 365 | 361 | ||
| 366 | 362 | cret := XGTlsBackendGetFileDatabaseType(x.GoPointer()) | |
| 367 | - | ||
| 368 | 363 | return cret | |
| 369 | 364 | } | |
| 370 | 365 | ||
| @@ -372,7 +367,6 @@ func (x *TlsBackendBase) GetFileDatabaseType() types.GType { | |||
| 372 | 367 | func (x *TlsBackendBase) GetServerConnectionType() types.GType { | |
| 373 | 368 | ||
| 374 | 369 | cret := XGTlsBackendGetServerConnectionType(x.GoPointer()) | |
| 375 | - | ||
| 376 | 370 | return cret | |
| 377 | 371 | } | |
| 378 | 372 | ||
| @@ -395,7 +389,6 @@ func (x *TlsBackendBase) SetDefaultDatabase(DatabaseVar *TlsDatabase) { | |||
| 395 | 389 | func (x *TlsBackendBase) SupportsDtls() bool { | |
| 396 | 390 | ||
| 397 | 391 | cret := XGTlsBackendSupportsDtls(x.GoPointer()) | |
| 398 | - | ||
| 399 | 392 | return cret | |
| 400 | 393 | } | |
| 401 | 394 | ||
| @@ -404,7 +397,6 @@ func (x *TlsBackendBase) SupportsDtls() bool { | |||
| 404 | 397 | func (x *TlsBackendBase) SupportsTls() bool { | |
| 405 | 398 | ||
| 406 | 399 | cret := XGTlsBackendSupportsTls(x.GoPointer()) | |
| 407 | - | ||
| 408 | 400 | return cret | |
| 409 | 401 | } | |
| 410 | 402 | ||
M v4/gio/gtlscertificate.go +4 -16
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -237,12 +236,11 @@ func NewTlsCertificateFromPkcs11Uris(Pkcs11UriVar string, PrivateKeyPkcs11UriVar | |||
| 237 | 236 | var cls *TlsCertificate | |
| 238 | 237 | var cerr *glib.Error | |
| 239 | 238 | ||
| 240 | - | PrivateKeyPkcs11UriVarPtr, PrivateKeyPkcs11UriVarBytes := core.NullableStringToPtr(PrivateKeyPkcs11UriVar) | |
| 239 | + | PrivateKeyPkcs11UriVarPtr := core.GStrdupNullable(PrivateKeyPkcs11UriVar) | |
| 240 | + | defer core.GFreeNullable(PrivateKeyPkcs11UriVarPtr) | |
| 241 | 241 | ||
| 242 | 242 | cret := xNewTlsCertificateFromPkcs11Uris(Pkcs11UriVar, PrivateKeyPkcs11UriVarPtr, &cerr) | |
| 243 | 243 | ||
| 244 | - | runtime.KeepAlive(PrivateKeyPkcs11UriVarBytes) | |
| 245 | - | ||
| 246 | 244 | if cret == 0 { | |
| 247 | 245 | return nil, cerr | |
| 248 | 246 | } | |
| @@ -278,12 +276,11 @@ func NewTlsCertificateFromPkcs12(DataVar []byte, LengthVar uint, PasswordVar *st | |||
| 278 | 276 | var cls *TlsCertificate | |
| 279 | 277 | var cerr *glib.Error | |
| 280 | 278 | ||
| 281 | - | PasswordVarPtr, PasswordVarBytes := core.NullableStringToPtr(PasswordVar) | |
| 279 | + | PasswordVarPtr := core.GStrdupNullable(PasswordVar) | |
| 280 | + | defer core.GFreeNullable(PasswordVarPtr) | |
| 282 | 281 | ||
| 283 | 282 | cret := xNewTlsCertificateFromPkcs12(DataVar, LengthVar, PasswordVarPtr, &cerr) | |
| 284 | 283 | ||
| 285 | - | runtime.KeepAlive(PasswordVarBytes) | |
| 286 | - | ||
| 287 | 284 | if cret == 0 { | |
| 288 | 285 | return nil, cerr | |
| 289 | 286 | } | |
| @@ -302,7 +299,6 @@ var xTlsCertificateGetDnsNames func(uintptr) uintptr | |||
| 302 | 299 | func (x *TlsCertificate) GetDnsNames() uintptr { | |
| 303 | 300 | ||
| 304 | 301 | cret := xTlsCertificateGetDnsNames(x.GoPointer()) | |
| 305 | - | ||
| 306 | 302 | return cret | |
| 307 | 303 | } | |
| 308 | 304 | ||
| @@ -312,7 +308,6 @@ var xTlsCertificateGetIpAddresses func(uintptr) uintptr | |||
| 312 | 308 | func (x *TlsCertificate) GetIpAddresses() uintptr { | |
| 313 | 309 | ||
| 314 | 310 | cret := xTlsCertificateGetIpAddresses(x.GoPointer()) | |
| 315 | - | ||
| 316 | 311 | return cret | |
| 317 | 312 | } | |
| 318 | 313 | ||
| @@ -339,7 +334,6 @@ var xTlsCertificateGetIssuerName func(uintptr) string | |||
| 339 | 334 | func (x *TlsCertificate) GetIssuerName() string { | |
| 340 | 335 | ||
| 341 | 336 | cret := xTlsCertificateGetIssuerName(x.GoPointer()) | |
| 342 | - | ||
| 343 | 337 | return cret | |
| 344 | 338 | } | |
| 345 | 339 | ||
| @@ -349,7 +343,6 @@ var xTlsCertificateGetNotValidAfter func(uintptr) *glib.DateTime | |||
| 349 | 343 | func (x *TlsCertificate) GetNotValidAfter() *glib.DateTime { | |
| 350 | 344 | ||
| 351 | 345 | cret := xTlsCertificateGetNotValidAfter(x.GoPointer()) | |
| 352 | - | ||
| 353 | 346 | return cret | |
| 354 | 347 | } | |
| 355 | 348 | ||
| @@ -359,7 +352,6 @@ var xTlsCertificateGetNotValidBefore func(uintptr) *glib.DateTime | |||
| 359 | 352 | func (x *TlsCertificate) GetNotValidBefore() *glib.DateTime { | |
| 360 | 353 | ||
| 361 | 354 | cret := xTlsCertificateGetNotValidBefore(x.GoPointer()) | |
| 362 | - | ||
| 363 | 355 | return cret | |
| 364 | 356 | } | |
| 365 | 357 | ||
| @@ -369,7 +361,6 @@ var xTlsCertificateGetSubjectName func(uintptr) string | |||
| 369 | 361 | func (x *TlsCertificate) GetSubjectName() string { | |
| 370 | 362 | ||
| 371 | 363 | cret := xTlsCertificateGetSubjectName(x.GoPointer()) | |
| 372 | - | ||
| 373 | 364 | return cret | |
| 374 | 365 | } | |
| 375 | 366 | ||
| @@ -383,7 +374,6 @@ var xTlsCertificateIsSame func(uintptr, uintptr) bool | |||
| 383 | 374 | func (x *TlsCertificate) IsSame(CertTwoVar *TlsCertificate) bool { | |
| 384 | 375 | ||
| 385 | 376 | cret := xTlsCertificateIsSame(x.GoPointer(), CertTwoVar.GoPointer()) | |
| 386 | - | ||
| 387 | 377 | return cret | |
| 388 | 378 | } | |
| 389 | 379 | ||
| @@ -425,7 +415,6 @@ var xTlsCertificateVerify func(uintptr, uintptr, uintptr) TlsCertificateFlags | |||
| 425 | 415 | func (x *TlsCertificate) Verify(IdentityVar SocketConnectable, TrustedCaVar *TlsCertificate) TlsCertificateFlags { | |
| 426 | 416 | ||
| 427 | 417 | cret := xTlsCertificateVerify(x.GoPointer(), IdentityVar.GoPointer(), TrustedCaVar.GoPointer()) | |
| 428 | - | ||
| 429 | 418 | return cret | |
| 430 | 419 | } | |
| 431 | 420 | ||
| @@ -751,7 +740,6 @@ func TlsCertificateListNewFromFile(FileVar string) (*glib.List, error) { | |||
| 751 | 740 | var cerr *glib.Error | |
| 752 | 741 | ||
| 753 | 742 | cret := xTlsCertificateListNewFromFile(FileVar, &cerr) | |
| 754 | - | ||
| 755 | 743 | if cerr == nil { | |
| 756 | 744 | return cret, nil | |
| 757 | 745 | } | |
M v4/gio/gtlsclientconnection.go +0 -3
| @@ -130,7 +130,6 @@ func (x *TlsClientConnectionBase) CopySessionState(SourceVar TlsClientConnection | |||
| 130 | 130 | func (x *TlsClientConnectionBase) GetAcceptedCas() *glib.List { | |
| 131 | 131 | ||
| 132 | 132 | cret := XGTlsClientConnectionGetAcceptedCas(x.GoPointer()) | |
| 133 | - | ||
| 134 | 133 | return cret | |
| 135 | 134 | } | |
| 136 | 135 | ||
| @@ -154,7 +153,6 @@ func (x *TlsClientConnectionBase) GetServerIdentity() *SocketConnectableBase { | |||
| 154 | 153 | func (x *TlsClientConnectionBase) GetUseSsl3() bool { | |
| 155 | 154 | ||
| 156 | 155 | cret := XGTlsClientConnectionGetUseSsl3(x.GoPointer()) | |
| 157 | - | ||
| 158 | 156 | return cret | |
| 159 | 157 | } | |
| 160 | 158 | ||
| @@ -166,7 +164,6 @@ func (x *TlsClientConnectionBase) GetUseSsl3() bool { | |||
| 166 | 164 | func (x *TlsClientConnectionBase) GetValidationFlags() TlsCertificateFlags { | |
| 167 | 165 | ||
| 168 | 166 | cret := XGTlsClientConnectionGetValidationFlags(x.GoPointer()) | |
| 169 | - | ||
| 170 | 167 | return cret | |
| 171 | 168 | } | |
| 172 | 169 | ||
M v4/gio/gtlsconnection.go +0 -13
| @@ -201,7 +201,6 @@ var xTlsChannelBindingErrorQuark func() glib.Quark | |||
| 201 | 201 | func TlsChannelBindingErrorQuark() glib.Quark { | |
| 202 | 202 | ||
| 203 | 203 | cret := xTlsChannelBindingErrorQuark() | |
| 204 | - | ||
| 205 | 204 | return cret | |
| 206 | 205 | } | |
| 207 | 206 | ||
| @@ -211,7 +210,6 @@ var xTlsErrorQuark func() glib.Quark | |||
| 211 | 210 | func TlsErrorQuark() glib.Quark { | |
| 212 | 211 | ||
| 213 | 212 | cret := xTlsErrorQuark() | |
| 214 | - | ||
| 215 | 213 | return cret | |
| 216 | 214 | } | |
| 217 | 215 | ||
| @@ -245,7 +243,6 @@ var xTlsConnectionEmitAcceptCertificate func(uintptr, uintptr, TlsCertificateFla | |||
| 245 | 243 | func (x *TlsConnection) EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool { | |
| 246 | 244 | ||
| 247 | 245 | cret := xTlsConnectionEmitAcceptCertificate(x.GoPointer(), PeerCertVar.GoPointer(), ErrorsVar) | |
| 248 | - | ||
| 249 | 246 | return cret | |
| 250 | 247 | } | |
| 251 | 248 | ||
| @@ -286,7 +283,6 @@ func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, Dat | |||
| 286 | 283 | var cerr *glib.Error | |
| 287 | 284 | ||
| 288 | 285 | cret := xTlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | |
| 289 | - | ||
| 290 | 286 | if cerr == nil { | |
| 291 | 287 | return cret, nil | |
| 292 | 288 | } | |
| @@ -307,7 +303,6 @@ var xTlsConnectionGetCiphersuiteName func(uintptr) string | |||
| 307 | 303 | func (x *TlsConnection) GetCiphersuiteName() string { | |
| 308 | 304 | ||
| 309 | 305 | cret := xTlsConnectionGetCiphersuiteName(x.GoPointer()) | |
| 310 | - | ||
| 311 | 306 | return cret | |
| 312 | 307 | } | |
| 313 | 308 | ||
| @@ -360,7 +355,6 @@ var xTlsConnectionGetNegotiatedProtocol func(uintptr) string | |||
| 360 | 355 | func (x *TlsConnection) GetNegotiatedProtocol() string { | |
| 361 | 356 | ||
| 362 | 357 | cret := xTlsConnectionGetNegotiatedProtocol(x.GoPointer()) | |
| 363 | - | ||
| 364 | 358 | return cret | |
| 365 | 359 | } | |
| 366 | 360 | ||
| @@ -393,7 +387,6 @@ var xTlsConnectionGetPeerCertificateErrors func(uintptr) TlsCertificateFlags | |||
| 393 | 387 | func (x *TlsConnection) GetPeerCertificateErrors() TlsCertificateFlags { | |
| 394 | 388 | ||
| 395 | 389 | cret := xTlsConnectionGetPeerCertificateErrors(x.GoPointer()) | |
| 396 | - | ||
| 397 | 390 | return cret | |
| 398 | 391 | } | |
| 399 | 392 | ||
| @@ -406,7 +399,6 @@ var xTlsConnectionGetProtocolVersion func(uintptr) TlsProtocolVersion | |||
| 406 | 399 | func (x *TlsConnection) GetProtocolVersion() TlsProtocolVersion { | |
| 407 | 400 | ||
| 408 | 401 | cret := xTlsConnectionGetProtocolVersion(x.GoPointer()) | |
| 409 | - | ||
| 410 | 402 | return cret | |
| 411 | 403 | } | |
| 412 | 404 | ||
| @@ -417,7 +409,6 @@ var xTlsConnectionGetRehandshakeMode func(uintptr) TlsRehandshakeMode | |||
| 417 | 409 | func (x *TlsConnection) GetRehandshakeMode() TlsRehandshakeMode { | |
| 418 | 410 | ||
| 419 | 411 | cret := xTlsConnectionGetRehandshakeMode(x.GoPointer()) | |
| 420 | - | ||
| 421 | 412 | return cret | |
| 422 | 413 | } | |
| 423 | 414 | ||
| @@ -429,7 +420,6 @@ var xTlsConnectionGetRequireCloseNotify func(uintptr) bool | |||
| 429 | 420 | func (x *TlsConnection) GetRequireCloseNotify() bool { | |
| 430 | 421 | ||
| 431 | 422 | cret := xTlsConnectionGetRequireCloseNotify(x.GoPointer()) | |
| 432 | - | ||
| 433 | 423 | return cret | |
| 434 | 424 | } | |
| 435 | 425 | ||
| @@ -440,7 +430,6 @@ var xTlsConnectionGetUseSystemCertdb func(uintptr) bool | |||
| 440 | 430 | func (x *TlsConnection) GetUseSystemCertdb() bool { | |
| 441 | 431 | ||
| 442 | 432 | cret := xTlsConnectionGetUseSystemCertdb(x.GoPointer()) | |
| 443 | - | ||
| 444 | 433 | return cret | |
| 445 | 434 | } | |
| 446 | 435 | ||
| @@ -481,7 +470,6 @@ func (x *TlsConnection) Handshake(CancellableVar *Cancellable) (bool, error) { | |||
| 481 | 470 | var cerr *glib.Error | |
| 482 | 471 | ||
| 483 | 472 | cret := xTlsConnectionHandshake(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 484 | - | ||
| 485 | 473 | if cerr == nil { | |
| 486 | 474 | return cret, nil | |
| 487 | 475 | } | |
| @@ -522,7 +510,6 @@ func (x *TlsConnection) HandshakeFinish(ResultVar AsyncResult) (bool, error) { | |||
| 522 | 510 | var cerr *glib.Error | |
| 523 | 511 | ||
| 524 | 512 | cret := xTlsConnectionHandshakeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 525 | - | ||
| 526 | 513 | if cerr == nil { | |
| 527 | 514 | return cret, nil | |
| 528 | 515 | } | |
M v4/gio/gtlsdatabase.go +0 -5
| @@ -525,7 +525,6 @@ var xTlsDatabaseCreateCertificateHandle func(uintptr, uintptr) string | |||
| 525 | 525 | func (x *TlsDatabase) CreateCertificateHandle(CertificateVar *TlsCertificate) string { | |
| 526 | 526 | ||
| 527 | 527 | cret := xTlsDatabaseCreateCertificateHandle(x.GoPointer(), CertificateVar.GoPointer()) | |
| 528 | - | ||
| 529 | 528 | return cret | |
| 530 | 529 | } | |
| 531 | 530 | ||
| @@ -708,7 +707,6 @@ func (x *TlsDatabase) LookupCertificatesIssuedBy(IssuerRawDnVar []byte, Interact | |||
| 708 | 707 | var cerr *glib.Error | |
| 709 | 708 | ||
| 710 | 709 | cret := xTlsDatabaseLookupCertificatesIssuedBy(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 711 | - | ||
| 712 | 710 | if cerr == nil { | |
| 713 | 711 | return cret, nil | |
| 714 | 712 | } | |
| @@ -753,7 +751,6 @@ func (x *TlsDatabase) LookupCertificatesIssuedByFinish(ResultVar AsyncResult) (* | |||
| 753 | 751 | var cerr *glib.Error | |
| 754 | 752 | ||
| 755 | 753 | cret := xTlsDatabaseLookupCertificatesIssuedByFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 756 | - | ||
| 757 | 754 | if cerr == nil { | |
| 758 | 755 | return cret, nil | |
| 759 | 756 | } | |
| @@ -827,7 +824,6 @@ func (x *TlsDatabase) VerifyChain(ChainVar *TlsCertificate, PurposeVar string, I | |||
| 827 | 824 | var cerr *glib.Error | |
| 828 | 825 | ||
| 829 | 826 | cret := xTlsDatabaseVerifyChain(x.GoPointer(), ChainVar.GoPointer(), PurposeVar, IdentityVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 830 | - | ||
| 831 | 827 | if cerr == nil { | |
| 832 | 828 | return cret, nil | |
| 833 | 829 | } | |
| @@ -878,7 +874,6 @@ func (x *TlsDatabase) VerifyChainFinish(ResultVar AsyncResult) (TlsCertificateFl | |||
| 878 | 874 | var cerr *glib.Error | |
| 879 | 875 | ||
| 880 | 876 | cret := xTlsDatabaseVerifyChainFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 881 | - | ||
| 882 | 877 | if cerr == nil { | |
| 883 | 878 | return cret, nil | |
| 884 | 879 | } | |
M v4/gio/gtlsinteraction.go +0 -6
| @@ -295,7 +295,6 @@ func (x *TlsInteraction) AskPassword(PasswordVar *TlsPassword, CancellableVar *C | |||
| 295 | 295 | var cerr *glib.Error | |
| 296 | 296 | ||
| 297 | 297 | cret := xTlsInteractionAskPassword(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 298 | - | ||
| 299 | 298 | if cerr == nil { | |
| 300 | 299 | return cret, nil | |
| 301 | 300 | } | |
| @@ -356,7 +355,6 @@ func (x *TlsInteraction) AskPasswordFinish(ResultVar AsyncResult) (TlsInteractio | |||
| 356 | 355 | var cerr *glib.Error | |
| 357 | 356 | ||
| 358 | 357 | cret := xTlsInteractionAskPasswordFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 359 | - | ||
| 360 | 358 | if cerr == nil { | |
| 361 | 359 | return cret, nil | |
| 362 | 360 | } | |
| @@ -389,7 +387,6 @@ func (x *TlsInteraction) InvokeAskPassword(PasswordVar *TlsPassword, Cancellable | |||
| 389 | 387 | var cerr *glib.Error | |
| 390 | 388 | ||
| 391 | 389 | cret := xTlsInteractionInvokeAskPassword(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 392 | - | ||
| 393 | 390 | if cerr == nil { | |
| 394 | 391 | return cret, nil | |
| 395 | 392 | } | |
| @@ -423,7 +420,6 @@ func (x *TlsInteraction) InvokeRequestCertificate(ConnectionVar *TlsConnection, | |||
| 423 | 420 | var cerr *glib.Error | |
| 424 | 421 | ||
| 425 | 422 | cret := xTlsInteractionInvokeRequestCertificate(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 426 | - | ||
| 427 | 423 | if cerr == nil { | |
| 428 | 424 | return cret, nil | |
| 429 | 425 | } | |
| @@ -453,7 +449,6 @@ func (x *TlsInteraction) RequestCertificate(ConnectionVar *TlsConnection, FlagsV | |||
| 453 | 449 | var cerr *glib.Error | |
| 454 | 450 | ||
| 455 | 451 | cret := xTlsInteractionRequestCertificate(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 456 | - | ||
| 457 | 452 | if cerr == nil { | |
| 458 | 453 | return cret, nil | |
| 459 | 454 | } | |
| @@ -508,7 +503,6 @@ func (x *TlsInteraction) RequestCertificateFinish(ResultVar AsyncResult) (TlsInt | |||
| 508 | 503 | var cerr *glib.Error | |
| 509 | 504 | ||
| 510 | 505 | cret := xTlsInteractionRequestCertificateFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 511 | - | ||
| 512 | 506 | if cerr == nil { | |
| 513 | 507 | return cret, nil | |
| 514 | 508 | } | |
M v4/gio/gtlspassword.go +0 -4
| @@ -158,7 +158,6 @@ var xTlsPasswordGetDescription func(uintptr) string | |||
| 158 | 158 | func (x *TlsPassword) GetDescription() string { | |
| 159 | 159 | ||
| 160 | 160 | cret := xTlsPasswordGetDescription(x.GoPointer()) | |
| 161 | - | ||
| 162 | 161 | return cret | |
| 163 | 162 | } | |
| 164 | 163 | ||
| @@ -168,7 +167,6 @@ var xTlsPasswordGetFlags func(uintptr) TlsPasswordFlags | |||
| 168 | 167 | func (x *TlsPassword) GetFlags() TlsPasswordFlags { | |
| 169 | 168 | ||
| 170 | 169 | cret := xTlsPasswordGetFlags(x.GoPointer()) | |
| 171 | - | ||
| 172 | 170 | return cret | |
| 173 | 171 | } | |
| 174 | 172 | ||
| @@ -182,7 +180,6 @@ var xTlsPasswordGetValue func(uintptr, *uint) uintptr | |||
| 182 | 180 | func (x *TlsPassword) GetValue(LengthVar *uint) uintptr { | |
| 183 | 181 | ||
| 184 | 182 | cret := xTlsPasswordGetValue(x.GoPointer(), LengthVar) | |
| 185 | - | ||
| 186 | 183 | return cret | |
| 187 | 184 | } | |
| 188 | 185 | ||
| @@ -194,7 +191,6 @@ var xTlsPasswordGetWarning func(uintptr) string | |||
| 194 | 191 | func (x *TlsPassword) GetWarning() string { | |
| 195 | 192 | ||
| 196 | 193 | cret := xTlsPasswordGetWarning(x.GoPointer()) | |
| 197 | - | ||
| 198 | 194 | return cret | |
| 199 | 195 | } | |
| 200 | 196 | ||
M v4/gio/gunixconnection.go +0 -4
| @@ -160,7 +160,6 @@ func (x *UnixConnection) ReceiveFd(CancellableVar *Cancellable) (int, error) { | |||
| 160 | 160 | var cerr *glib.Error | |
| 161 | 161 | ||
| 162 | 162 | cret := xUnixConnectionReceiveFd(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 163 | - | ||
| 164 | 163 | if cerr == nil { | |
| 165 | 164 | return cret, nil | |
| 166 | 165 | } | |
| @@ -193,7 +192,6 @@ func (x *UnixConnection) SendCredentials(CancellableVar *Cancellable) (bool, err | |||
| 193 | 192 | var cerr *glib.Error | |
| 194 | 193 | ||
| 195 | 194 | cret := xUnixConnectionSendCredentials(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 196 | - | ||
| 197 | 195 | if cerr == nil { | |
| 198 | 196 | return cret, nil | |
| 199 | 197 | } | |
| @@ -239,7 +237,6 @@ func (x *UnixConnection) SendCredentialsFinish(ResultVar AsyncResult) (bool, err | |||
| 239 | 237 | var cerr *glib.Error | |
| 240 | 238 | ||
| 241 | 239 | cret := xUnixConnectionSendCredentialsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 242 | - | ||
| 243 | 240 | if cerr == nil { | |
| 244 | 241 | return cret, nil | |
| 245 | 242 | } | |
| @@ -260,7 +257,6 @@ func (x *UnixConnection) SendFd(FdVar int, CancellableVar *Cancellable) (bool, e | |||
| 260 | 257 | var cerr *glib.Error | |
| 261 | 258 | ||
| 262 | 259 | cret := xUnixConnectionSendFd(x.GoPointer(), FdVar, CancellableVar.GoPointer(), &cerr) | |
| 263 | - | ||
| 264 | 260 | if cerr == nil { | |
| 265 | 261 | return cret, nil | |
| 266 | 262 | } | |
M v4/gio/gunixcredentialsmessage.go +0 -1
| @@ -181,7 +181,6 @@ var xUnixCredentialsMessageIsSupported func() bool | |||
| 181 | 181 | func UnixCredentialsMessageIsSupported() bool { | |
| 182 | 182 | ||
| 183 | 183 | cret := xUnixCredentialsMessageIsSupported() | |
| 184 | - | ||
| 185 | 184 | return cret | |
| 186 | 185 | } | |
| 187 | 186 | ||
M v4/gio/gunixfdlist.go +0 -5
| @@ -242,7 +242,6 @@ func (x *UnixFDList) Append(FdVar int) (int, error) { | |||
| 242 | 242 | var cerr *glib.Error | |
| 243 | 243 | ||
| 244 | 244 | cret := xUnixFDListAppend(x.GoPointer(), FdVar, &cerr) | |
| 245 | - | ||
| 246 | 245 | if cerr == nil { | |
| 247 | 246 | return cret, nil | |
| 248 | 247 | } | |
| @@ -268,7 +267,6 @@ func (x *UnixFDList) Get(IndexVar int) (int, error) { | |||
| 268 | 267 | var cerr *glib.Error | |
| 269 | 268 | ||
| 270 | 269 | cret := xUnixFDListGet(x.GoPointer(), IndexVar, &cerr) | |
| 271 | - | ||
| 272 | 270 | if cerr == nil { | |
| 273 | 271 | return cret, nil | |
| 274 | 272 | } | |
| @@ -283,7 +281,6 @@ var xUnixFDListGetLength func(uintptr) int | |||
| 283 | 281 | func (x *UnixFDList) GetLength() int { | |
| 284 | 282 | ||
| 285 | 283 | cret := xUnixFDListGetLength(x.GoPointer()) | |
| 286 | - | ||
| 287 | 284 | return cret | |
| 288 | 285 | } | |
| 289 | 286 | ||
| @@ -305,7 +302,6 @@ var xUnixFDListPeekFds func(uintptr, *int) uintptr | |||
| 305 | 302 | func (x *UnixFDList) PeekFds(LengthVar *int) uintptr { | |
| 306 | 303 | ||
| 307 | 304 | cret := xUnixFDListPeekFds(x.GoPointer(), LengthVar) | |
| 308 | - | ||
| 309 | 305 | return cret | |
| 310 | 306 | } | |
| 311 | 307 | ||
| @@ -332,7 +328,6 @@ var xUnixFDListStealFds func(uintptr, *int) uintptr | |||
| 332 | 328 | func (x *UnixFDList) StealFds(LengthVar *int) uintptr { | |
| 333 | 329 | ||
| 334 | 330 | cret := xUnixFDListStealFds(x.GoPointer(), LengthVar) | |
| 335 | - | ||
| 336 | 331 | return cret | |
| 337 | 332 | } | |
| 338 | 333 | ||
M v4/gio/gunixsocketaddress.go +0 -6
| @@ -153,7 +153,6 @@ var xUnixSocketAddressGetAddressType func(uintptr) UnixSocketAddressType | |||
| 153 | 153 | func (x *UnixSocketAddress) GetAddressType() UnixSocketAddressType { | |
| 154 | 154 | ||
| 155 | 155 | cret := xUnixSocketAddressGetAddressType(x.GoPointer()) | |
| 156 | - | ||
| 157 | 156 | return cret | |
| 158 | 157 | } | |
| 159 | 158 | ||
| @@ -163,7 +162,6 @@ var xUnixSocketAddressGetIsAbstract func(uintptr) bool | |||
| 163 | 162 | func (x *UnixSocketAddress) GetIsAbstract() bool { | |
| 164 | 163 | ||
| 165 | 164 | cret := xUnixSocketAddressGetIsAbstract(x.GoPointer()) | |
| 166 | - | ||
| 167 | 165 | return cret | |
| 168 | 166 | } | |
| 169 | 167 | ||
| @@ -178,7 +176,6 @@ var xUnixSocketAddressGetPath func(uintptr) string | |||
| 178 | 176 | func (x *UnixSocketAddress) GetPath() string { | |
| 179 | 177 | ||
| 180 | 178 | cret := xUnixSocketAddressGetPath(x.GoPointer()) | |
| 181 | - | ||
| 182 | 179 | return cret | |
| 183 | 180 | } | |
| 184 | 181 | ||
| @@ -190,7 +187,6 @@ var xUnixSocketAddressGetPathLen func(uintptr) uint | |||
| 190 | 187 | func (x *UnixSocketAddress) GetPathLen() uint { | |
| 191 | 188 | ||
| 192 | 189 | cret := xUnixSocketAddressGetPathLen(x.GoPointer()) | |
| 193 | - | ||
| 194 | 190 | return cret | |
| 195 | 191 | } | |
| 196 | 192 | ||
| @@ -310,7 +306,6 @@ func (x *UnixSocketAddress) ProxyEnumerate() *SocketAddressEnumerator { | |||
| 310 | 306 | func (x *UnixSocketAddress) ToString() string { | |
| 311 | 307 | ||
| 312 | 308 | cret := XGSocketConnectableToString(x.GoPointer()) | |
| 313 | - | ||
| 314 | 309 | return cret | |
| 315 | 310 | } | |
| 316 | 311 | ||
| @@ -320,7 +315,6 @@ var xUnixSocketAddressAbstractNamesSupported func() bool | |||
| 320 | 315 | func UnixSocketAddressAbstractNamesSupported() bool { | |
| 321 | 316 | ||
| 322 | 317 | cret := xUnixSocketAddressAbstractNamesSupported() | |
| 323 | - | ||
| 324 | 318 | return cret | |
| 325 | 319 | } | |
| 326 | 320 | ||
M v4/gio/gvfs.go +0 -4
| @@ -560,7 +560,6 @@ var xVfsGetSupportedUriSchemes func(uintptr) []string | |||
| 560 | 560 | func (x *Vfs) GetSupportedUriSchemes() []string { | |
| 561 | 561 | ||
| 562 | 562 | cret := xVfsGetSupportedUriSchemes(x.GoPointer()) | |
| 563 | - | ||
| 564 | 563 | return cret | |
| 565 | 564 | } | |
| 566 | 565 | ||
| @@ -570,7 +569,6 @@ var xVfsIsActive func(uintptr) bool | |||
| 570 | 569 | func (x *Vfs) IsActive() bool { | |
| 571 | 570 | ||
| 572 | 571 | cret := xVfsIsActive(x.GoPointer()) | |
| 573 | - | ||
| 574 | 572 | return cret | |
| 575 | 573 | } | |
| 576 | 574 | ||
| @@ -677,7 +675,6 @@ func (x *Vfs) RegisterUriScheme(SchemeVar string, UriFuncVar *VfsFileLookupFunc, | |||
| 677 | 675 | } | |
| 678 | 676 | ||
| 679 | 677 | cret := xVfsRegisterUriScheme(x.GoPointer(), SchemeVar, UriFuncVarRef, UriDataVar, UriDestroyVarRef, ParseNameFuncVarRef, ParseNameDataVar, ParseNameDestroyVarRef) | |
| 680 | - | ||
| 681 | 678 | return cret | |
| 682 | 679 | } | |
| 683 | 680 | ||
| @@ -688,7 +685,6 @@ var xVfsUnregisterUriScheme func(uintptr, string) bool | |||
| 688 | 685 | func (x *Vfs) UnregisterUriScheme(SchemeVar string) bool { | |
| 689 | 686 | ||
| 690 | 687 | cret := xVfsUnregisterUriScheme(x.GoPointer(), SchemeVar) | |
| 691 | - | ||
| 692 | 688 | return cret | |
| 693 | 689 | } | |
| 694 | 690 | ||
M v4/gio/gvolume.go +0 -11
| @@ -755,7 +755,6 @@ func (x *VolumeBase) SetGoPointer(ptr uintptr) { | |||
| 755 | 755 | func (x *VolumeBase) CanEject() bool { | |
| 756 | 756 | ||
| 757 | 757 | cret := XGVolumeCanEject(x.GoPointer()) | |
| 758 | - | ||
| 759 | 758 | return cret | |
| 760 | 759 | } | |
| 761 | 760 | ||
| @@ -763,7 +762,6 @@ func (x *VolumeBase) CanEject() bool { | |||
| 763 | 762 | func (x *VolumeBase) CanMount() bool { | |
| 764 | 763 | ||
| 765 | 764 | cret := XGVolumeCanMount(x.GoPointer()) | |
| 766 | - | ||
| 767 | 765 | return cret | |
| 768 | 766 | } | |
| 769 | 767 | ||
| @@ -782,7 +780,6 @@ func (x *VolumeBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 782 | 780 | var cerr *glib.Error | |
| 783 | 781 | ||
| 784 | 782 | cret := XGVolumeEjectFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 785 | - | ||
| 786 | 783 | if cerr == nil { | |
| 787 | 784 | return cret, nil | |
| 788 | 785 | } | |
| @@ -805,7 +802,6 @@ func (x *VolumeBase) EjectWithOperationFinish(ResultVar AsyncResult) (bool, erro | |||
| 805 | 802 | var cerr *glib.Error | |
| 806 | 803 | ||
| 807 | 804 | cret := XGVolumeEjectWithOperationFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 808 | - | ||
| 809 | 805 | if cerr == nil { | |
| 810 | 806 | return cret, nil | |
| 811 | 807 | } | |
| @@ -818,7 +814,6 @@ func (x *VolumeBase) EjectWithOperationFinish(ResultVar AsyncResult) (bool, erro | |||
| 818 | 814 | func (x *VolumeBase) EnumerateIdentifiers() []string { | |
| 819 | 815 | ||
| 820 | 816 | cret := XGVolumeEnumerateIdentifiers(x.GoPointer()) | |
| 821 | - | ||
| 822 | 817 | return cret | |
| 823 | 818 | } | |
| 824 | 819 | ||
| @@ -899,7 +894,6 @@ func (x *VolumeBase) GetIcon() *IconBase { | |||
| 899 | 894 | func (x *VolumeBase) GetIdentifier(KindVar string) string { | |
| 900 | 895 | ||
| 901 | 896 | cret := XGVolumeGetIdentifier(x.GoPointer(), KindVar) | |
| 902 | - | ||
| 903 | 897 | return cret | |
| 904 | 898 | } | |
| 905 | 899 | ||
| @@ -921,7 +915,6 @@ func (x *VolumeBase) GetMount() *MountBase { | |||
| 921 | 915 | func (x *VolumeBase) GetName() string { | |
| 922 | 916 | ||
| 923 | 917 | cret := XGVolumeGetName(x.GoPointer()) | |
| 924 | - | ||
| 925 | 918 | return cret | |
| 926 | 919 | } | |
| 927 | 920 | ||
| @@ -929,7 +922,6 @@ func (x *VolumeBase) GetName() string { | |||
| 929 | 922 | func (x *VolumeBase) GetSortKey() string { | |
| 930 | 923 | ||
| 931 | 924 | cret := XGVolumeGetSortKey(x.GoPointer()) | |
| 932 | - | ||
| 933 | 925 | return cret | |
| 934 | 926 | } | |
| 935 | 927 | ||
| @@ -954,7 +946,6 @@ func (x *VolumeBase) GetSymbolicIcon() *IconBase { | |||
| 954 | 946 | func (x *VolumeBase) GetUuid() string { | |
| 955 | 947 | ||
| 956 | 948 | cret := XGVolumeGetUuid(x.GoPointer()) | |
| 957 | - | ||
| 958 | 949 | return cret | |
| 959 | 950 | } | |
| 960 | 951 | ||
| @@ -978,7 +969,6 @@ func (x *VolumeBase) MountFinish(ResultVar AsyncResult) (bool, error) { | |||
| 978 | 969 | var cerr *glib.Error | |
| 979 | 970 | ||
| 980 | 971 | cret := XGVolumeMountFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 981 | - | ||
| 982 | 972 | if cerr == nil { | |
| 983 | 973 | return cret, nil | |
| 984 | 974 | } | |
| @@ -990,7 +980,6 @@ func (x *VolumeBase) MountFinish(ResultVar AsyncResult) (bool, error) { | |||
| 990 | 980 | func (x *VolumeBase) ShouldAutomount() bool { | |
| 991 | 981 | ||
| 992 | 982 | cret := XGVolumeShouldAutomount(x.GoPointer()) | |
| 993 | - | ||
| 994 | 983 | return cret | |
| 995 | 984 | } | |
| 996 | 985 | ||
M v4/gio/gvolumemonitor.go +0 -3
| @@ -719,7 +719,6 @@ var xVolumeMonitorGetConnectedDrives func(uintptr) *glib.List | |||
| 719 | 719 | func (x *VolumeMonitor) GetConnectedDrives() *glib.List { | |
| 720 | 720 | ||
| 721 | 721 | cret := xVolumeMonitorGetConnectedDrives(x.GoPointer()) | |
| 722 | - | ||
| 723 | 722 | return cret | |
| 724 | 723 | } | |
| 725 | 724 | ||
| @@ -748,7 +747,6 @@ var xVolumeMonitorGetMounts func(uintptr) *glib.List | |||
| 748 | 747 | func (x *VolumeMonitor) GetMounts() *glib.List { | |
| 749 | 748 | ||
| 750 | 749 | cret := xVolumeMonitorGetMounts(x.GoPointer()) | |
| 751 | - | ||
| 752 | 750 | return cret | |
| 753 | 751 | } | |
| 754 | 752 | ||
| @@ -777,7 +775,6 @@ var xVolumeMonitorGetVolumes func(uintptr) *glib.List | |||
| 777 | 775 | func (x *VolumeMonitor) GetVolumes() *glib.List { | |
| 778 | 776 | ||
| 779 | 777 | cret := xVolumeMonitorGetVolumes(x.GoPointer()) | |
| 780 | - | ||
| 781 | 778 | return cret | |
| 782 | 779 | } | |
| 783 | 780 | ||
M v4/gio/gzlibcompressor.go +0 -3
| @@ -79,7 +79,6 @@ var xZlibCompressorGetOs func(uintptr) int | |||
| 79 | 79 | func (x *ZlibCompressor) GetOs() int { | |
| 80 | 80 | ||
| 81 | 81 | cret := xZlibCompressorGetOs(x.GoPointer()) | |
| 82 | - | ||
| 83 | 82 | return cret | |
| 84 | 83 | } | |
| 85 | 84 | ||
| @@ -264,7 +263,6 @@ func (x *ZlibCompressor) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar [ | |||
| 264 | 263 | var cerr *glib.Error | |
| 265 | 264 | ||
| 266 | 265 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 267 | - | ||
| 268 | 266 | if cerr == nil { | |
| 269 | 267 | return cret, nil | |
| 270 | 268 | } | |
| @@ -277,7 +275,6 @@ func (x *ZlibCompressor) ConvertBytes(BytesVar *glib.Bytes) (*glib.Bytes, error) | |||
| 277 | 275 | var cerr *glib.Error | |
| 278 | 276 | ||
| 279 | 277 | cret := XGConverterConvertBytes(x.GoPointer(), BytesVar, &cerr) | |
| 280 | - | ||
| 281 | 278 | if cerr == nil { | |
| 282 | 279 | return cret, nil | |
| 283 | 280 | } | |
M v4/gio/gzlibdecompressor.go +0 -2
| @@ -170,7 +170,6 @@ func (x *ZlibDecompressor) Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar | |||
| 170 | 170 | var cerr *glib.Error | |
| 171 | 171 | ||
| 172 | 172 | cret := XGConverterConvert(x.GoPointer(), InbufVar, InbufSizeVar, OutbufVar, OutbufSizeVar, FlagsVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 173 | - | ||
| 174 | 173 | if cerr == nil { | |
| 175 | 174 | return cret, nil | |
| 176 | 175 | } | |
| @@ -183,7 +182,6 @@ func (x *ZlibDecompressor) ConvertBytes(BytesVar *glib.Bytes) (*glib.Bytes, erro | |||
| 183 | 182 | var cerr *glib.Error | |
| 184 | 183 | ||
| 185 | 184 | cret := XGConverterConvertBytes(x.GoPointer(), BytesVar, &cerr) | |
| 186 | - | ||
| 187 | 185 | if cerr == nil { | |
| 188 | 186 | return cret, nil | |
| 189 | 187 | } | |
M v4/gio/main.go +0 -1
| @@ -12,7 +12,6 @@ var xDbusErrorQuark func() glib.Quark | |||
| 12 | 12 | func DbusErrorQuark() glib.Quark { | |
| 13 | 13 | ||
| 14 | 14 | cret := xDbusErrorQuark() | |
| 15 | - | ||
| 16 | 15 | return cret | |
| 17 | 16 | } | |
| 18 | 17 | ||
M v4/glib/gallocator.go +0 -2
| @@ -38,7 +38,6 @@ var xMemChunkAlloc func(uintptr) uintptr | |||
| 38 | 38 | func (x *MemChunk) Alloc() uintptr { | |
| 39 | 39 | ||
| 40 | 40 | cret := xMemChunkAlloc(x.GoPointer()) | |
| 41 | - | ||
| 42 | 41 | return cret | |
| 43 | 42 | } | |
| 44 | 43 | ||
| @@ -47,7 +46,6 @@ var xMemChunkAlloc0 func(uintptr) uintptr | |||
| 47 | 46 | func (x *MemChunk) Alloc0() uintptr { | |
| 48 | 47 | ||
| 49 | 48 | cret := xMemChunkAlloc0(x.GoPointer()) | |
| 50 | - | ||
| 51 | 49 | return cret | |
| 52 | 50 | } | |
| 53 | 51 | ||
M v4/glib/garray.go +0 -35
| @@ -101,7 +101,6 @@ var xNewBytes func([]byte, uint) *Bytes | |||
| 101 | 101 | func NewBytes(DataVar []byte, SizeVar uint) *Bytes { | |
| 102 | 102 | ||
| 103 | 103 | cret := xNewBytes(DataVar, SizeVar) | |
| 104 | - | ||
| 105 | 104 | return cret | |
| 106 | 105 | } | |
| 107 | 106 | ||
| @@ -114,7 +113,6 @@ var xNewBytesStatic func([]byte, uint) *Bytes | |||
| 114 | 113 | func NewBytesStatic(DataVar []byte, SizeVar uint) *Bytes { | |
| 115 | 114 | ||
| 116 | 115 | cret := xNewBytesStatic(DataVar, SizeVar) | |
| 117 | - | ||
| 118 | 116 | return cret | |
| 119 | 117 | } | |
| 120 | 118 | ||
| @@ -133,7 +131,6 @@ var xNewBytesTake func(uintptr, uint) *Bytes | |||
| 133 | 131 | func NewBytesTake(DataVar uintptr, SizeVar uint) *Bytes { | |
| 134 | 132 | ||
| 135 | 133 | cret := xNewBytesTake(DataVar, SizeVar) | |
| 136 | - | ||
| 137 | 134 | return cret | |
| 138 | 135 | } | |
| 139 | 136 | ||
| @@ -166,7 +163,6 @@ func NewBytesWithFreeFunc(DataVar []byte, SizeVar uint, FreeFuncVar *DestroyNoti | |||
| 166 | 163 | } | |
| 167 | 164 | ||
| 168 | 165 | cret := xNewBytesWithFreeFunc(DataVar, SizeVar, FreeFuncVarRef, UserDataVar) | |
| 169 | - | ||
| 170 | 166 | return cret | |
| 171 | 167 | } | |
| 172 | 168 | ||
| @@ -185,7 +181,6 @@ var xBytesCompare func(uintptr, uintptr) int | |||
| 185 | 181 | func (x *Bytes) Compare(Bytes2Var uintptr) int { | |
| 186 | 182 | ||
| 187 | 183 | cret := xBytesCompare(x.GoPointer(), Bytes2Var) | |
| 188 | - | ||
| 189 | 184 | return cret | |
| 190 | 185 | } | |
| 191 | 186 | ||
| @@ -200,7 +195,6 @@ var xBytesEqual func(uintptr, uintptr) bool | |||
| 200 | 195 | func (x *Bytes) Equal(Bytes2Var uintptr) bool { | |
| 201 | 196 | ||
| 202 | 197 | cret := xBytesEqual(x.GoPointer(), Bytes2Var) | |
| 203 | - | ||
| 204 | 198 | return cret | |
| 205 | 199 | } | |
| 206 | 200 | ||
| @@ -218,7 +212,6 @@ var xBytesGetData func(uintptr, *uint) uintptr | |||
| 218 | 212 | func (x *Bytes) GetData(SizeVar *uint) uintptr { | |
| 219 | 213 | ||
| 220 | 214 | cret := xBytesGetData(x.GoPointer(), SizeVar) | |
| 221 | - | ||
| 222 | 215 | return cret | |
| 223 | 216 | } | |
| 224 | 217 | ||
| @@ -247,7 +240,6 @@ var xBytesGetRegion func(uintptr, uint, uint, uint) uintptr | |||
| 247 | 240 | func (x *Bytes) GetRegion(ElementSizeVar uint, OffsetVar uint, NElementsVar uint) uintptr { | |
| 248 | 241 | ||
| 249 | 242 | cret := xBytesGetRegion(x.GoPointer(), ElementSizeVar, OffsetVar, NElementsVar) | |
| 250 | - | ||
| 251 | 243 | return cret | |
| 252 | 244 | } | |
| 253 | 245 | ||
| @@ -259,7 +251,6 @@ var xBytesGetSize func(uintptr) uint | |||
| 259 | 251 | func (x *Bytes) GetSize() uint { | |
| 260 | 252 | ||
| 261 | 253 | cret := xBytesGetSize(x.GoPointer()) | |
| 262 | - | ||
| 263 | 254 | return cret | |
| 264 | 255 | } | |
| 265 | 256 | ||
| @@ -273,7 +264,6 @@ var xBytesHash func(uintptr) uint | |||
| 273 | 264 | func (x *Bytes) Hash() uint { | |
| 274 | 265 | ||
| 275 | 266 | cret := xBytesHash(x.GoPointer()) | |
| 276 | - | ||
| 277 | 267 | return cret | |
| 278 | 268 | } | |
| 279 | 269 | ||
| @@ -294,7 +284,6 @@ var xBytesNewFromBytes func(uintptr, uint, uint) *Bytes | |||
| 294 | 284 | func (x *Bytes) NewFromBytes(OffsetVar uint, LengthVar uint) *Bytes { | |
| 295 | 285 | ||
| 296 | 286 | cret := xBytesNewFromBytes(x.GoPointer(), OffsetVar, LengthVar) | |
| 297 | - | ||
| 298 | 287 | return cret | |
| 299 | 288 | } | |
| 300 | 289 | ||
| @@ -304,7 +293,6 @@ var xBytesRef func(uintptr) *Bytes | |||
| 304 | 293 | func (x *Bytes) Ref() *Bytes { | |
| 305 | 294 | ||
| 306 | 295 | cret := xBytesRef(x.GoPointer()) | |
| 307 | - | ||
| 308 | 296 | return cret | |
| 309 | 297 | } | |
| 310 | 298 | ||
| @@ -338,7 +326,6 @@ var xBytesUnrefToArray func(uintptr) uintptr | |||
| 338 | 326 | func (x *Bytes) UnrefToArray() uintptr { | |
| 339 | 327 | ||
| 340 | 328 | cret := xBytesUnrefToArray(x.GoPointer()) | |
| 341 | - | ||
| 342 | 329 | return cret | |
| 343 | 330 | } | |
| 344 | 331 | ||
| @@ -356,7 +343,6 @@ var xBytesUnrefToData func(uintptr, *uint) uintptr | |||
| 356 | 343 | func (x *Bytes) UnrefToData(SizeVar *uint) uintptr { | |
| 357 | 344 | ||
| 358 | 345 | cret := xBytesUnrefToData(x.GoPointer(), SizeVar) | |
| 359 | - | ||
| 360 | 346 | return cret | |
| 361 | 347 | } | |
| 362 | 348 | ||
| @@ -401,7 +387,6 @@ var xArrayNewTake func(uintptr, uint, bool, uint) uintptr | |||
| 401 | 387 | func ArrayNewTake(DataVar uintptr, LenVar uint, ClearVar bool, ElementSizeVar uint) uintptr { | |
| 402 | 388 | ||
| 403 | 389 | cret := xArrayNewTake(DataVar, LenVar, ClearVar, ElementSizeVar) | |
| 404 | - | ||
| 405 | 390 | return cret | |
| 406 | 391 | } | |
| 407 | 392 | ||
| @@ -429,7 +414,6 @@ var xArrayNewTakeZeroTerminated func(uintptr, bool, uint) uintptr | |||
| 429 | 414 | func ArrayNewTakeZeroTerminated(DataVar uintptr, ClearVar bool, ElementSizeVar uint) uintptr { | |
| 430 | 415 | ||
| 431 | 416 | cret := xArrayNewTakeZeroTerminated(DataVar, ClearVar, ElementSizeVar) | |
| 432 | - | ||
| 433 | 417 | return cret | |
| 434 | 418 | } | |
| 435 | 419 | ||
| @@ -440,7 +424,6 @@ var xByteArrayAppend func([]byte, []byte, uint) uintptr | |||
| 440 | 424 | func ByteArrayAppend(ArrayVar []byte, DataVar []byte, LenVar uint) uintptr { | |
| 441 | 425 | ||
| 442 | 426 | cret := xByteArrayAppend(ArrayVar, DataVar, LenVar) | |
| 443 | - | ||
| 444 | 427 | return cret | |
| 445 | 428 | } | |
| 446 | 429 | ||
| @@ -453,7 +436,6 @@ var xByteArrayFree func([]byte, bool) uintptr | |||
| 453 | 436 | func ByteArrayFree(ArrayVar []byte, FreeSegmentVar bool) uintptr { | |
| 454 | 437 | ||
| 455 | 438 | cret := xByteArrayFree(ArrayVar, FreeSegmentVar) | |
| 456 | - | ||
| 457 | 439 | return cret | |
| 458 | 440 | } | |
| 459 | 441 | ||
| @@ -471,7 +453,6 @@ var xByteArrayFreeToBytes func([]byte) *Bytes | |||
| 471 | 453 | func ByteArrayFreeToBytes(ArrayVar []byte) *Bytes { | |
| 472 | 454 | ||
| 473 | 455 | cret := xByteArrayFreeToBytes(ArrayVar) | |
| 474 | - | ||
| 475 | 456 | return cret | |
| 476 | 457 | } | |
| 477 | 458 | ||
| @@ -481,7 +462,6 @@ var xByteArrayNew func() uintptr | |||
| 481 | 462 | func ByteArrayNew() uintptr { | |
| 482 | 463 | ||
| 483 | 464 | cret := xByteArrayNew() | |
| 484 | - | ||
| 485 | 465 | return cret | |
| 486 | 466 | } | |
| 487 | 467 | ||
| @@ -498,7 +478,6 @@ var xByteArrayNewTake func([]byte, uint) uintptr | |||
| 498 | 478 | func ByteArrayNewTake(DataVar []byte, LenVar uint) uintptr { | |
| 499 | 479 | ||
| 500 | 480 | cret := xByteArrayNewTake(DataVar, LenVar) | |
| 501 | - | ||
| 502 | 481 | return cret | |
| 503 | 482 | } | |
| 504 | 483 | ||
| @@ -509,7 +488,6 @@ var xByteArrayPrepend func([]byte, []byte, uint) uintptr | |||
| 509 | 488 | func ByteArrayPrepend(ArrayVar []byte, DataVar []byte, LenVar uint) uintptr { | |
| 510 | 489 | ||
| 511 | 490 | cret := xByteArrayPrepend(ArrayVar, DataVar, LenVar) | |
| 512 | - | ||
| 513 | 491 | return cret | |
| 514 | 492 | } | |
| 515 | 493 | ||
| @@ -520,7 +498,6 @@ var xByteArrayRef func([]byte) uintptr | |||
| 520 | 498 | func ByteArrayRef(ArrayVar []byte) uintptr { | |
| 521 | 499 | ||
| 522 | 500 | cret := xByteArrayRef(ArrayVar) | |
| 523 | - | ||
| 524 | 501 | return cret | |
| 525 | 502 | } | |
| 526 | 503 | ||
| @@ -531,7 +508,6 @@ var xByteArrayRemoveIndex func([]byte, uint) uintptr | |||
| 531 | 508 | func ByteArrayRemoveIndex(ArrayVar []byte, IndexVar uint) uintptr { | |
| 532 | 509 | ||
| 533 | 510 | cret := xByteArrayRemoveIndex(ArrayVar, IndexVar) | |
| 534 | - | ||
| 535 | 511 | return cret | |
| 536 | 512 | } | |
| 537 | 513 | ||
| @@ -544,7 +520,6 @@ var xByteArrayRemoveIndexFast func([]byte, uint) uintptr | |||
| 544 | 520 | func ByteArrayRemoveIndexFast(ArrayVar []byte, IndexVar uint) uintptr { | |
| 545 | 521 | ||
| 546 | 522 | cret := xByteArrayRemoveIndexFast(ArrayVar, IndexVar) | |
| 547 | - | ||
| 548 | 523 | return cret | |
| 549 | 524 | } | |
| 550 | 525 | ||
| @@ -555,7 +530,6 @@ var xByteArrayRemoveRange func([]byte, uint, uint) uintptr | |||
| 555 | 530 | func ByteArrayRemoveRange(ArrayVar []byte, IndexVar uint, LengthVar uint) uintptr { | |
| 556 | 531 | ||
| 557 | 532 | cret := xByteArrayRemoveRange(ArrayVar, IndexVar, LengthVar) | |
| 558 | - | ||
| 559 | 533 | return cret | |
| 560 | 534 | } | |
| 561 | 535 | ||
| @@ -565,7 +539,6 @@ var xByteArraySetSize func([]byte, uint) uintptr | |||
| 565 | 539 | func ByteArraySetSize(ArrayVar []byte, LengthVar uint) uintptr { | |
| 566 | 540 | ||
| 567 | 541 | cret := xByteArraySetSize(ArrayVar, LengthVar) | |
| 568 | - | ||
| 569 | 542 | return cret | |
| 570 | 543 | } | |
| 571 | 544 | ||
| @@ -578,7 +551,6 @@ var xByteArraySizedNew func(uint) uintptr | |||
| 578 | 551 | func ByteArraySizedNew(ReservedSizeVar uint) uintptr { | |
| 579 | 552 | ||
| 580 | 553 | cret := xByteArraySizedNew(ReservedSizeVar) | |
| 581 | - | ||
| 582 | 554 | return cret | |
| 583 | 555 | } | |
| 584 | 556 | ||
| @@ -648,7 +620,6 @@ var xByteArraySteal func([]byte, *uint) uintptr | |||
| 648 | 620 | func ByteArraySteal(ArrayVar []byte, LenVar *uint) uintptr { | |
| 649 | 621 | ||
| 650 | 622 | cret := xByteArraySteal(ArrayVar, LenVar) | |
| 651 | - | ||
| 652 | 623 | return cret | |
| 653 | 624 | } | |
| 654 | 625 | ||
| @@ -677,7 +648,6 @@ var xPtrArrayFind func([]uintptr, uintptr, *uint) bool | |||
| 677 | 648 | func PtrArrayFind(HaystackVar []uintptr, NeedleVar uintptr, IndexVar *uint) bool { | |
| 678 | 649 | ||
| 679 | 650 | cret := xPtrArrayFind(HaystackVar, NeedleVar, IndexVar) | |
| 680 | - | ||
| 681 | 651 | return cret | |
| 682 | 652 | } | |
| 683 | 653 | ||
| @@ -710,7 +680,6 @@ func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFu | |||
| 710 | 680 | } | |
| 711 | 681 | ||
| 712 | 682 | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, EqualFuncVarRef, IndexVar) | |
| 713 | - | ||
| 714 | 683 | return cret | |
| 715 | 684 | } | |
| 716 | 685 | ||
| @@ -766,7 +735,6 @@ func PtrArrayNewFromArray(DataVar []uintptr, LenVar uint, CopyFuncVar *CopyFunc, | |||
| 766 | 735 | } | |
| 767 | 736 | ||
| 768 | 737 | cret := xPtrArrayNewFromArray(DataVar, LenVar, CopyFuncVarRef, CopyFuncUserDataVar, ElementFreeFuncVarRef) | |
| 769 | - | ||
| 770 | 738 | return cret | |
| 771 | 739 | } | |
| 772 | 740 | ||
| @@ -818,7 +786,6 @@ func PtrArrayNewFromNullTerminatedArray(DataVar []uintptr, CopyFuncVar *CopyFunc | |||
| 818 | 786 | } | |
| 819 | 787 | ||
| 820 | 788 | cret := xPtrArrayNewFromNullTerminatedArray(DataVar, CopyFuncVarRef, CopyFuncUserDataVar, ElementFreeFuncVarRef) | |
| 821 | - | ||
| 822 | 789 | return cret | |
| 823 | 790 | } | |
| 824 | 791 | ||
| @@ -858,7 +825,6 @@ func PtrArrayNewTake(DataVar []uintptr, LenVar uint, ElementFreeFuncVar *Destroy | |||
| 858 | 825 | } | |
| 859 | 826 | ||
| 860 | 827 | cret := xPtrArrayNewTake(DataVar, LenVar, ElementFreeFuncVarRef) | |
| 861 | - | ||
| 862 | 828 | return cret | |
| 863 | 829 | } | |
| 864 | 830 | ||
| @@ -901,7 +867,6 @@ func PtrArrayNewTakeNullTerminated(DataVar []uintptr, ElementFreeFuncVar *Destro | |||
| 901 | 867 | } | |
| 902 | 868 | ||
| 903 | 869 | cret := xPtrArrayNewTakeNullTerminated(DataVar, ElementFreeFuncVarRef) | |
| 904 | - | ||
| 905 | 870 | return cret | |
| 906 | 871 | } | |
| 907 | 872 | ||
M v4/glib/gasyncqueue.go +0 -15
| @@ -33,7 +33,6 @@ var xAsyncQueueLength func(uintptr) int | |||
| 33 | 33 | func (x *AsyncQueue) Length() int { | |
| 34 | 34 | ||
| 35 | 35 | cret := xAsyncQueueLength(x.GoPointer()) | |
| 36 | - | ||
| 37 | 36 | return cret | |
| 38 | 37 | } | |
| 39 | 38 | ||
| @@ -52,7 +51,6 @@ var xAsyncQueueLengthUnlocked func(uintptr) int | |||
| 52 | 51 | func (x *AsyncQueue) LengthUnlocked() int { | |
| 53 | 52 | ||
| 54 | 53 | cret := xAsyncQueueLengthUnlocked(x.GoPointer()) | |
| 55 | - | ||
| 56 | 54 | return cret | |
| 57 | 55 | } | |
| 58 | 56 | ||
| @@ -80,7 +78,6 @@ var xAsyncQueuePop func(uintptr) uintptr | |||
| 80 | 78 | func (x *AsyncQueue) Pop() uintptr { | |
| 81 | 79 | ||
| 82 | 80 | cret := xAsyncQueuePop(x.GoPointer()) | |
| 83 | - | ||
| 84 | 81 | return cret | |
| 85 | 82 | } | |
| 86 | 83 | ||
| @@ -93,7 +90,6 @@ var xAsyncQueuePopUnlocked func(uintptr) uintptr | |||
| 93 | 90 | func (x *AsyncQueue) PopUnlocked() uintptr { | |
| 94 | 91 | ||
| 95 | 92 | cret := xAsyncQueuePopUnlocked(x.GoPointer()) | |
| 96 | - | ||
| 97 | 93 | return cret | |
| 98 | 94 | } | |
| 99 | 95 | ||
| @@ -225,7 +221,6 @@ var xAsyncQueueRef func(uintptr) *AsyncQueue | |||
| 225 | 221 | func (x *AsyncQueue) Ref() *AsyncQueue { | |
| 226 | 222 | ||
| 227 | 223 | cret := xAsyncQueueRef(x.GoPointer()) | |
| 228 | - | ||
| 229 | 224 | return cret | |
| 230 | 225 | } | |
| 231 | 226 | ||
| @@ -244,7 +239,6 @@ var xAsyncQueueRemove func(uintptr, uintptr) bool | |||
| 244 | 239 | func (x *AsyncQueue) Remove(ItemVar uintptr) bool { | |
| 245 | 240 | ||
| 246 | 241 | cret := xAsyncQueueRemove(x.GoPointer(), ItemVar) | |
| 247 | - | ||
| 248 | 242 | return cret | |
| 249 | 243 | } | |
| 250 | 244 | ||
| @@ -256,7 +250,6 @@ var xAsyncQueueRemoveUnlocked func(uintptr, uintptr) bool | |||
| 256 | 250 | func (x *AsyncQueue) RemoveUnlocked(ItemVar uintptr) bool { | |
| 257 | 251 | ||
| 258 | 252 | cret := xAsyncQueueRemoveUnlocked(x.GoPointer(), ItemVar) | |
| 259 | - | ||
| 260 | 253 | return cret | |
| 261 | 254 | } | |
| 262 | 255 | ||
| @@ -351,7 +344,6 @@ var xAsyncQueueTimedPop func(uintptr, *TimeVal) uintptr | |||
| 351 | 344 | func (x *AsyncQueue) TimedPop(EndTimeVar *TimeVal) uintptr { | |
| 352 | 345 | ||
| 353 | 346 | cret := xAsyncQueueTimedPop(x.GoPointer(), EndTimeVar) | |
| 354 | - | ||
| 355 | 347 | return cret | |
| 356 | 348 | } | |
| 357 | 349 | ||
| @@ -369,7 +361,6 @@ var xAsyncQueueTimedPopUnlocked func(uintptr, *TimeVal) uintptr | |||
| 369 | 361 | func (x *AsyncQueue) TimedPopUnlocked(EndTimeVar *TimeVal) uintptr { | |
| 370 | 362 | ||
| 371 | 363 | cret := xAsyncQueueTimedPopUnlocked(x.GoPointer(), EndTimeVar) | |
| 372 | - | ||
| 373 | 364 | return cret | |
| 374 | 365 | } | |
| 375 | 366 | ||
| @@ -382,7 +373,6 @@ var xAsyncQueueTimeoutPop func(uintptr, uint64) uintptr | |||
| 382 | 373 | func (x *AsyncQueue) TimeoutPop(TimeoutVar uint64) uintptr { | |
| 383 | 374 | ||
| 384 | 375 | cret := xAsyncQueueTimeoutPop(x.GoPointer(), TimeoutVar) | |
| 385 | - | ||
| 386 | 376 | return cret | |
| 387 | 377 | } | |
| 388 | 378 | ||
| @@ -397,7 +387,6 @@ var xAsyncQueueTimeoutPopUnlocked func(uintptr, uint64) uintptr | |||
| 397 | 387 | func (x *AsyncQueue) TimeoutPopUnlocked(TimeoutVar uint64) uintptr { | |
| 398 | 388 | ||
| 399 | 389 | cret := xAsyncQueueTimeoutPopUnlocked(x.GoPointer(), TimeoutVar) | |
| 400 | - | ||
| 401 | 390 | return cret | |
| 402 | 391 | } | |
| 403 | 392 | ||
| @@ -408,7 +397,6 @@ var xAsyncQueueTryPop func(uintptr) uintptr | |||
| 408 | 397 | func (x *AsyncQueue) TryPop() uintptr { | |
| 409 | 398 | ||
| 410 | 399 | cret := xAsyncQueueTryPop(x.GoPointer()) | |
| 411 | - | ||
| 412 | 400 | return cret | |
| 413 | 401 | } | |
| 414 | 402 | ||
| @@ -421,7 +409,6 @@ var xAsyncQueueTryPopUnlocked func(uintptr) uintptr | |||
| 421 | 409 | func (x *AsyncQueue) TryPopUnlocked() uintptr { | |
| 422 | 410 | ||
| 423 | 411 | cret := xAsyncQueueTryPopUnlocked(x.GoPointer()) | |
| 424 | - | ||
| 425 | 412 | return cret | |
| 426 | 413 | } | |
| 427 | 414 | ||
| @@ -470,7 +457,6 @@ var xAsyncQueueNew func() *AsyncQueue | |||
| 470 | 457 | func AsyncQueueNew() *AsyncQueue { | |
| 471 | 458 | ||
| 472 | 459 | cret := xAsyncQueueNew() | |
| 473 | - | ||
| 474 | 460 | return cret | |
| 475 | 461 | } | |
| 476 | 462 | ||
| @@ -497,7 +483,6 @@ func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | |||
| 497 | 483 | } | |
| 498 | 484 | ||
| 499 | 485 | cret := xAsyncQueueNewFull(ItemFreeFuncVarRef) | |
| 500 | - | ||
| 501 | 486 | return cret | |
| 502 | 487 | } | |
| 503 | 488 | ||
M v4/glib/gatomic.go +0 -18
| @@ -23,7 +23,6 @@ var xAtomicIntAdd func(uintptr, int) int | |||
| 23 | 23 | func AtomicIntAdd(AtomicVar uintptr, ValVar int) int { | |
| 24 | 24 | ||
| 25 | 25 | cret := xAtomicIntAdd(AtomicVar, ValVar) | |
| 26 | - | ||
| 27 | 26 | return cret | |
| 28 | 27 | } | |
| 29 | 28 | ||
| @@ -42,7 +41,6 @@ var xAtomicIntAnd func(uintptr, uint) uint | |||
| 42 | 41 | func AtomicIntAnd(AtomicVar uintptr, ValVar uint) uint { | |
| 43 | 42 | ||
| 44 | 43 | cret := xAtomicIntAnd(AtomicVar, ValVar) | |
| 45 | - | ||
| 46 | 44 | return cret | |
| 47 | 45 | } | |
| 48 | 46 | ||
| @@ -63,7 +61,6 @@ var xAtomicIntCompareAndExchange func(uintptr, int, int) bool | |||
| 63 | 61 | func AtomicIntCompareAndExchange(AtomicVar uintptr, OldvalVar int, NewvalVar int) bool { | |
| 64 | 62 | ||
| 65 | 63 | cret := xAtomicIntCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | |
| 66 | - | ||
| 67 | 64 | return cret | |
| 68 | 65 | } | |
| 69 | 66 | ||
| @@ -84,7 +81,6 @@ var xAtomicIntCompareAndExchangeFull func(uintptr, int, int, *int) bool | |||
| 84 | 81 | func AtomicIntCompareAndExchangeFull(AtomicVar uintptr, OldvalVar int, NewvalVar int, PrevalVar *int) bool { | |
| 85 | 82 | ||
| 86 | 83 | cret := xAtomicIntCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | |
| 87 | - | ||
| 88 | 84 | return cret | |
| 89 | 85 | } | |
| 90 | 86 | ||
| @@ -102,7 +98,6 @@ var xAtomicIntDecAndTest func(uintptr) bool | |||
| 102 | 98 | func AtomicIntDecAndTest(AtomicVar uintptr) bool { | |
| 103 | 99 | ||
| 104 | 100 | cret := xAtomicIntDecAndTest(AtomicVar) | |
| 105 | - | ||
| 106 | 101 | return cret | |
| 107 | 102 | } | |
| 108 | 103 | ||
| @@ -119,7 +114,6 @@ var xAtomicIntExchange func(uintptr, int) int | |||
| 119 | 114 | func AtomicIntExchange(AtomicVar uintptr, NewvalVar int) int { | |
| 120 | 115 | ||
| 121 | 116 | cret := xAtomicIntExchange(AtomicVar, NewvalVar) | |
| 122 | - | ||
| 123 | 117 | return cret | |
| 124 | 118 | } | |
| 125 | 119 | ||
| @@ -131,7 +125,6 @@ var xAtomicIntExchangeAndAdd func(uintptr, int) int | |||
| 131 | 125 | func AtomicIntExchangeAndAdd(AtomicVar uintptr, ValVar int) int { | |
| 132 | 126 | ||
| 133 | 127 | cret := xAtomicIntExchangeAndAdd(AtomicVar, ValVar) | |
| 134 | - | ||
| 135 | 128 | return cret | |
| 136 | 129 | } | |
| 137 | 130 | ||
| @@ -147,7 +140,6 @@ var xAtomicIntGet func(uintptr) int | |||
| 147 | 140 | func AtomicIntGet(AtomicVar uintptr) int { | |
| 148 | 141 | ||
| 149 | 142 | cret := xAtomicIntGet(AtomicVar) | |
| 150 | - | ||
| 151 | 143 | return cret | |
| 152 | 144 | } | |
| 153 | 145 | ||
| @@ -182,7 +174,6 @@ var xAtomicIntOr func(uintptr, uint) uint | |||
| 182 | 174 | func AtomicIntOr(AtomicVar uintptr, ValVar uint) uint { | |
| 183 | 175 | ||
| 184 | 176 | cret := xAtomicIntOr(AtomicVar, ValVar) | |
| 185 | - | ||
| 186 | 177 | return cret | |
| 187 | 178 | } | |
| 188 | 179 | ||
| @@ -216,7 +207,6 @@ var xAtomicIntXor func(uintptr, uint) uint | |||
| 216 | 207 | func AtomicIntXor(AtomicVar uintptr, ValVar uint) uint { | |
| 217 | 208 | ||
| 218 | 209 | cret := xAtomicIntXor(AtomicVar, ValVar) | |
| 219 | - | ||
| 220 | 210 | return cret | |
| 221 | 211 | } | |
| 222 | 212 | ||
| @@ -238,7 +228,6 @@ var xAtomicPointerAdd func(uintptr, int) int | |||
| 238 | 228 | func AtomicPointerAdd(AtomicVar uintptr, ValVar int) int { | |
| 239 | 229 | ||
| 240 | 230 | cret := xAtomicPointerAdd(AtomicVar, ValVar) | |
| 241 | - | ||
| 242 | 231 | return cret | |
| 243 | 232 | } | |
| 244 | 233 | ||
| @@ -261,7 +250,6 @@ var xAtomicPointerAnd func(uintptr, uint) uintptr | |||
| 261 | 250 | func AtomicPointerAnd(AtomicVar uintptr, ValVar uint) uintptr { | |
| 262 | 251 | ||
| 263 | 252 | cret := xAtomicPointerAnd(AtomicVar, ValVar) | |
| 264 | - | ||
| 265 | 253 | return cret | |
| 266 | 254 | } | |
| 267 | 255 | ||
| @@ -282,7 +270,6 @@ var xAtomicPointerCompareAndExchange func(uintptr, uintptr, uintptr) bool | |||
| 282 | 270 | func AtomicPointerCompareAndExchange(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr) bool { | |
| 283 | 271 | ||
| 284 | 272 | cret := xAtomicPointerCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | |
| 285 | - | ||
| 286 | 273 | return cret | |
| 287 | 274 | } | |
| 288 | 275 | ||
| @@ -303,7 +290,6 @@ var xAtomicPointerCompareAndExchangeFull func(uintptr, uintptr, uintptr, *uintpt | |||
| 303 | 290 | func AtomicPointerCompareAndExchangeFull(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr, PrevalVar *uintptr) bool { | |
| 304 | 291 | ||
| 305 | 292 | cret := xAtomicPointerCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | |
| 306 | - | ||
| 307 | 293 | return cret | |
| 308 | 294 | } | |
| 309 | 295 | ||
| @@ -320,7 +306,6 @@ var xAtomicPointerExchange func(uintptr, uintptr) uintptr | |||
| 320 | 306 | func AtomicPointerExchange(AtomicVar uintptr, NewvalVar uintptr) uintptr { | |
| 321 | 307 | ||
| 322 | 308 | cret := xAtomicPointerExchange(AtomicVar, NewvalVar) | |
| 323 | - | ||
| 324 | 309 | return cret | |
| 325 | 310 | } | |
| 326 | 311 | ||
| @@ -336,7 +321,6 @@ var xAtomicPointerGet func(uintptr) uintptr | |||
| 336 | 321 | func AtomicPointerGet(AtomicVar uintptr) uintptr { | |
| 337 | 322 | ||
| 338 | 323 | cret := xAtomicPointerGet(AtomicVar) | |
| 339 | - | ||
| 340 | 324 | return cret | |
| 341 | 325 | } | |
| 342 | 326 | ||
| @@ -359,7 +343,6 @@ var xAtomicPointerOr func(uintptr, uint) uintptr | |||
| 359 | 343 | func AtomicPointerOr(AtomicVar uintptr, ValVar uint) uintptr { | |
| 360 | 344 | ||
| 361 | 345 | cret := xAtomicPointerOr(AtomicVar, ValVar) | |
| 362 | - | ||
| 363 | 346 | return cret | |
| 364 | 347 | } | |
| 365 | 348 | ||
| @@ -397,7 +380,6 @@ var xAtomicPointerXor func(uintptr, uint) uintptr | |||
| 397 | 380 | func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | |
| 398 | 381 | ||
| 399 | 382 | cret := xAtomicPointerXor(AtomicVar, ValVar) | |
| 400 | - | ||
| 401 | 383 | return cret | |
| 402 | 384 | } | |
| 403 | 385 | ||
M v4/glib/gbacktrace.go +2 -5
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | ) | |
| @@ -83,12 +81,11 @@ var xOnErrorStackTrace func(uintptr) | |||
| 83 | 81 | // handle that exception (see [Running GLib Applications](running.html)). | |
| 84 | 82 | func OnErrorStackTrace(PrgNameVar *string) { | |
| 85 | 83 | ||
| 86 | - | PrgNameVarPtr, PrgNameVarBytes := core.NullableStringToPtr(PrgNameVar) | |
| 84 | + | PrgNameVarPtr := core.GStrdupNullable(PrgNameVar) | |
| 85 | + | defer core.GFreeNullable(PrgNameVarPtr) | |
| 87 | 86 | ||
| 88 | 87 | xOnErrorStackTrace(PrgNameVarPtr) | |
| 89 | 88 | ||
| 90 | - | runtime.KeepAlive(PrgNameVarBytes) | |
| 91 | - | ||
| 92 | 89 | } | |
| 93 | 90 | ||
| 94 | 91 | func init() { | |
M v4/glib/gbase64.go +0 -6
| @@ -14,7 +14,6 @@ var xBase64Decode func(string, *uint) uintptr | |||
| 14 | 14 | func Base64Decode(TextVar string, OutLenVar *uint) uintptr { | |
| 15 | 15 | ||
| 16 | 16 | cret := xBase64Decode(TextVar, OutLenVar) | |
| 17 | - | ||
| 18 | 17 | return cret | |
| 19 | 18 | } | |
| 20 | 19 | ||
| @@ -25,7 +24,6 @@ var xBase64DecodeInplace func([]byte, uint) byte | |||
| 25 | 24 | func Base64DecodeInplace(TextVar []byte, OutLenVar uint) byte { | |
| 26 | 25 | ||
| 27 | 26 | cret := xBase64DecodeInplace(TextVar, OutLenVar) | |
| 28 | - | ||
| 29 | 27 | return cret | |
| 30 | 28 | } | |
| 31 | 29 | ||
| @@ -42,7 +40,6 @@ var xBase64DecodeStep func([]byte, uint, *[]byte, int, uint) uint | |||
| 42 | 40 | func Base64DecodeStep(InVar []byte, LenVar uint, OutVar *[]byte, StateVar int, SaveVar uint) uint { | |
| 43 | 41 | ||
| 44 | 42 | cret := xBase64DecodeStep(InVar, LenVar, OutVar, StateVar, SaveVar) | |
| 45 | - | ||
| 46 | 43 | return cret | |
| 47 | 44 | } | |
| 48 | 45 | ||
| @@ -53,7 +50,6 @@ var xBase64Encode func([]byte, uint) string | |||
| 53 | 50 | func Base64Encode(DataVar []byte, LenVar uint) string { | |
| 54 | 51 | ||
| 55 | 52 | cret := xBase64Encode(DataVar, LenVar) | |
| 56 | - | ||
| 57 | 53 | return cret | |
| 58 | 54 | } | |
| 59 | 55 | ||
| @@ -69,7 +65,6 @@ var xBase64EncodeClose func(bool, *[]byte, int, int) uint | |||
| 69 | 65 | func Base64EncodeClose(BreakLinesVar bool, OutVar *[]byte, StateVar int, SaveVar int) uint { | |
| 70 | 66 | ||
| 71 | 67 | cret := xBase64EncodeClose(BreakLinesVar, OutVar, StateVar, SaveVar) | |
| 72 | - | ||
| 73 | 68 | return cret | |
| 74 | 69 | } | |
| 75 | 70 | ||
| @@ -97,7 +92,6 @@ var xBase64EncodeStep func([]byte, uint, bool, *[]byte, int, int) uint | |||
| 97 | 92 | func Base64EncodeStep(InVar []byte, LenVar uint, BreakLinesVar bool, OutVar *[]byte, StateVar int, SaveVar int) uint { | |
| 98 | 93 | ||
| 99 | 94 | cret := xBase64EncodeStep(InVar, LenVar, BreakLinesVar, OutVar, StateVar, SaveVar) | |
| 100 | - | ||
| 101 | 95 | return cret | |
| 102 | 96 | } | |
| 103 | 97 | ||
M v4/glib/gbitlock.go +0 -3
| @@ -59,7 +59,6 @@ var xBitTrylock func(uintptr, int) bool | |||
| 59 | 59 | func BitTrylock(AddressVar uintptr, LockBitVar int) bool { | |
| 60 | 60 | ||
| 61 | 61 | cret := xBitTrylock(AddressVar, LockBitVar) | |
| 62 | - | ||
| 63 | 62 | return cret | |
| 64 | 63 | } | |
| 65 | 64 | ||
| @@ -131,7 +130,6 @@ var xPointerBitLockMaskPtr func(uintptr, uint, bool, uintptr, uintptr) uintptr | |||
| 131 | 130 | func PointerBitLockMaskPtr(PtrVar uintptr, LockBitVar uint, SetVar bool, PreserveMaskVar uintptr, PreservePtrVar uintptr) uintptr { | |
| 132 | 131 | ||
| 133 | 132 | cret := xPointerBitLockMaskPtr(PtrVar, LockBitVar, SetVar, PreserveMaskVar, PreservePtrVar) | |
| 134 | - | ||
| 135 | 133 | return cret | |
| 136 | 134 | } | |
| 137 | 135 | ||
| @@ -148,7 +146,6 @@ var xPointerBitTrylock func(uintptr, int) bool | |||
| 148 | 146 | func PointerBitTrylock(AddressVar uintptr, LockBitVar int) bool { | |
| 149 | 147 | ||
| 150 | 148 | cret := xPointerBitTrylock(AddressVar, LockBitVar) | |
| 151 | - | ||
| 152 | 149 | return cret | |
| 153 | 150 | } | |
| 154 | 151 | ||
M v4/glib/gbookmarkfile.go +14 -55
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -72,7 +71,6 @@ var xNewBookmarkFile func() *BookmarkFile | |||
| 72 | 71 | func NewBookmarkFile() *BookmarkFile { | |
| 73 | 72 | ||
| 74 | 73 | cret := xNewBookmarkFile() | |
| 75 | - | ||
| 76 | 74 | return cret | |
| 77 | 75 | } | |
| 78 | 76 | ||
| @@ -102,16 +100,14 @@ var xBookmarkFileAddApplication func(uintptr, string, uintptr, uintptr) | |||
| 102 | 100 | // If no bookmark for @uri is found, one is created. | |
| 103 | 101 | func (x *BookmarkFile) AddApplication(UriVar string, NameVar *string, ExecVar *string) { | |
| 104 | 102 | ||
| 105 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 103 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 104 | + | defer core.GFreeNullable(NameVarPtr) | |
| 106 | 105 | ||
| 107 | - | ExecVarPtr, ExecVarBytes := core.NullableStringToPtr(ExecVar) | |
| 106 | + | ExecVarPtr := core.GStrdupNullable(ExecVar) | |
| 107 | + | defer core.GFreeNullable(ExecVarPtr) | |
| 108 | 108 | ||
| 109 | 109 | xBookmarkFileAddApplication(x.GoPointer(), UriVar, NameVarPtr, ExecVarPtr) | |
| 110 | 110 | ||
| 111 | - | runtime.KeepAlive(NameVarBytes) | |
| 112 | - | ||
| 113 | - | runtime.KeepAlive(ExecVarBytes) | |
| 114 | - | ||
| 115 | 111 | } | |
| 116 | 112 | ||
| 117 | 113 | var xBookmarkFileAddGroup func(uintptr, string, string) | |
| @@ -132,7 +128,6 @@ var xBookmarkFileCopy func(uintptr) *BookmarkFile | |||
| 132 | 128 | func (x *BookmarkFile) Copy() *BookmarkFile { | |
| 133 | 129 | ||
| 134 | 130 | cret := xBookmarkFileCopy(x.GoPointer()) | |
| 135 | - | ||
| 136 | 131 | return cret | |
| 137 | 132 | } | |
| 138 | 133 | ||
| @@ -155,7 +150,6 @@ func (x *BookmarkFile) GetAdded(UriVar string) (int, error) { | |||
| 155 | 150 | var cerr *Error | |
| 156 | 151 | ||
| 157 | 152 | cret := xBookmarkFileGetAdded(x.GoPointer(), UriVar, &cerr) | |
| 158 | - | ||
| 159 | 153 | if cerr == nil { | |
| 160 | 154 | return cret, nil | |
| 161 | 155 | } | |
| @@ -173,7 +167,6 @@ func (x *BookmarkFile) GetAddedDateTime(UriVar string) (*DateTime, error) { | |||
| 173 | 167 | var cerr *Error | |
| 174 | 168 | ||
| 175 | 169 | cret := xBookmarkFileGetAddedDateTime(x.GoPointer(), UriVar, &cerr) | |
| 176 | - | ||
| 177 | 170 | if cerr == nil { | |
| 178 | 171 | return cret, nil | |
| 179 | 172 | } | |
| @@ -200,7 +193,6 @@ func (x *BookmarkFile) GetAppInfo(UriVar string, NameVar string, ExecVar *string | |||
| 200 | 193 | var cerr *Error | |
| 201 | 194 | ||
| 202 | 195 | cret := xBookmarkFileGetAppInfo(x.GoPointer(), UriVar, NameVar, ExecVar, CountVar, StampVar, &cerr) | |
| 203 | - | ||
| 204 | 196 | if cerr == nil { | |
| 205 | 197 | return cret, nil | |
| 206 | 198 | } | |
| @@ -227,7 +219,6 @@ func (x *BookmarkFile) GetApplicationInfo(UriVar string, NameVar string, ExecVar | |||
| 227 | 219 | var cerr *Error | |
| 228 | 220 | ||
| 229 | 221 | cret := xBookmarkFileGetApplicationInfo(x.GoPointer(), UriVar, NameVar, ExecVar, CountVar, StampVar, &cerr) | |
| 230 | - | ||
| 231 | 222 | if cerr == nil { | |
| 232 | 223 | return cret, nil | |
| 233 | 224 | } | |
| @@ -246,7 +237,6 @@ func (x *BookmarkFile) GetApplications(UriVar string, LengthVar *uint) ([]string | |||
| 246 | 237 | var cerr *Error | |
| 247 | 238 | ||
| 248 | 239 | cret := xBookmarkFileGetApplications(x.GoPointer(), UriVar, LengthVar, &cerr) | |
| 249 | - | ||
| 250 | 240 | if cerr == nil { | |
| 251 | 241 | return cret, nil | |
| 252 | 242 | } | |
| @@ -264,7 +254,6 @@ func (x *BookmarkFile) GetDescription(UriVar string) (string, error) { | |||
| 264 | 254 | var cerr *Error | |
| 265 | 255 | ||
| 266 | 256 | cret := xBookmarkFileGetDescription(x.GoPointer(), UriVar, &cerr) | |
| 267 | - | ||
| 268 | 257 | if cerr == nil { | |
| 269 | 258 | return cret, nil | |
| 270 | 259 | } | |
| @@ -285,7 +274,6 @@ func (x *BookmarkFile) GetGroups(UriVar string, LengthVar *uint) ([]string, erro | |||
| 285 | 274 | var cerr *Error | |
| 286 | 275 | ||
| 287 | 276 | cret := xBookmarkFileGetGroups(x.GoPointer(), UriVar, LengthVar, &cerr) | |
| 288 | - | ||
| 289 | 277 | if cerr == nil { | |
| 290 | 278 | return cret, nil | |
| 291 | 279 | } | |
| @@ -303,7 +291,6 @@ func (x *BookmarkFile) GetIcon(UriVar string, HrefVar *string, MimeTypeVar *stri | |||
| 303 | 291 | var cerr *Error | |
| 304 | 292 | ||
| 305 | 293 | cret := xBookmarkFileGetIcon(x.GoPointer(), UriVar, HrefVar, MimeTypeVar, &cerr) | |
| 306 | - | ||
| 307 | 294 | if cerr == nil { | |
| 308 | 295 | return cret, nil | |
| 309 | 296 | } | |
| @@ -323,7 +310,6 @@ func (x *BookmarkFile) GetIsPrivate(UriVar string) (bool, error) { | |||
| 323 | 310 | var cerr *Error | |
| 324 | 311 | ||
| 325 | 312 | cret := xBookmarkFileGetIsPrivate(x.GoPointer(), UriVar, &cerr) | |
| 326 | - | ||
| 327 | 313 | if cerr == nil { | |
| 328 | 314 | return cret, nil | |
| 329 | 315 | } | |
| @@ -343,7 +329,6 @@ func (x *BookmarkFile) GetMimeType(UriVar string) (string, error) { | |||
| 343 | 329 | var cerr *Error | |
| 344 | 330 | ||
| 345 | 331 | cret := xBookmarkFileGetMimeType(x.GoPointer(), UriVar, &cerr) | |
| 346 | - | ||
| 347 | 332 | if cerr == nil { | |
| 348 | 333 | return cret, nil | |
| 349 | 334 | } | |
| @@ -361,7 +346,6 @@ func (x *BookmarkFile) GetModified(UriVar string) (int, error) { | |||
| 361 | 346 | var cerr *Error | |
| 362 | 347 | ||
| 363 | 348 | cret := xBookmarkFileGetModified(x.GoPointer(), UriVar, &cerr) | |
| 364 | - | ||
| 365 | 349 | if cerr == nil { | |
| 366 | 350 | return cret, nil | |
| 367 | 351 | } | |
| @@ -379,7 +363,6 @@ func (x *BookmarkFile) GetModifiedDateTime(UriVar string) (*DateTime, error) { | |||
| 379 | 363 | var cerr *Error | |
| 380 | 364 | ||
| 381 | 365 | cret := xBookmarkFileGetModifiedDateTime(x.GoPointer(), UriVar, &cerr) | |
| 382 | - | ||
| 383 | 366 | if cerr == nil { | |
| 384 | 367 | return cret, nil | |
| 385 | 368 | } | |
| @@ -393,7 +376,6 @@ var xBookmarkFileGetSize func(uintptr) int | |||
| 393 | 376 | func (x *BookmarkFile) GetSize() int { | |
| 394 | 377 | ||
| 395 | 378 | cret := xBookmarkFileGetSize(x.GoPointer()) | |
| 396 | - | ||
| 397 | 379 | return cret | |
| 398 | 380 | } | |
| 399 | 381 | ||
| @@ -408,12 +390,10 @@ var xBookmarkFileGetTitle func(uintptr, uintptr, **Error) string | |||
| 408 | 390 | func (x *BookmarkFile) GetTitle(UriVar *string) (string, error) { | |
| 409 | 391 | var cerr *Error | |
| 410 | 392 | ||
| 411 | - | UriVarPtr, UriVarBytes := core.NullableStringToPtr(UriVar) | |
| 393 | + | UriVarPtr := core.GStrdupNullable(UriVar) | |
| 394 | + | defer core.GFreeNullable(UriVarPtr) | |
| 412 | 395 | ||
| 413 | 396 | cret := xBookmarkFileGetTitle(x.GoPointer(), UriVarPtr, &cerr) | |
| 414 | - | ||
| 415 | - | runtime.KeepAlive(UriVarBytes) | |
| 416 | - | ||
| 417 | 397 | if cerr == nil { | |
| 418 | 398 | return cret, nil | |
| 419 | 399 | } | |
| @@ -429,7 +409,6 @@ var xBookmarkFileGetUris func(uintptr, *uint) []string | |||
| 429 | 409 | func (x *BookmarkFile) GetUris(LengthVar *uint) []string { | |
| 430 | 410 | ||
| 431 | 411 | cret := xBookmarkFileGetUris(x.GoPointer(), LengthVar) | |
| 432 | - | ||
| 433 | 412 | return cret | |
| 434 | 413 | } | |
| 435 | 414 | ||
| @@ -443,7 +422,6 @@ func (x *BookmarkFile) GetVisited(UriVar string) (int, error) { | |||
| 443 | 422 | var cerr *Error | |
| 444 | 423 | ||
| 445 | 424 | cret := xBookmarkFileGetVisited(x.GoPointer(), UriVar, &cerr) | |
| 446 | - | ||
| 447 | 425 | if cerr == nil { | |
| 448 | 426 | return cret, nil | |
| 449 | 427 | } | |
| @@ -461,7 +439,6 @@ func (x *BookmarkFile) GetVisitedDateTime(UriVar string) (*DateTime, error) { | |||
| 461 | 439 | var cerr *Error | |
| 462 | 440 | ||
| 463 | 441 | cret := xBookmarkFileGetVisitedDateTime(x.GoPointer(), UriVar, &cerr) | |
| 464 | - | ||
| 465 | 442 | if cerr == nil { | |
| 466 | 443 | return cret, nil | |
| 467 | 444 | } | |
| @@ -480,7 +457,6 @@ func (x *BookmarkFile) HasApplication(UriVar string, NameVar string) (bool, erro | |||
| 480 | 457 | var cerr *Error | |
| 481 | 458 | ||
| 482 | 459 | cret := xBookmarkFileHasApplication(x.GoPointer(), UriVar, NameVar, &cerr) | |
| 483 | - | ||
| 484 | 460 | if cerr == nil { | |
| 485 | 461 | return cret, nil | |
| 486 | 462 | } | |
| @@ -499,7 +475,6 @@ func (x *BookmarkFile) HasGroup(UriVar string, GroupVar string) (bool, error) { | |||
| 499 | 475 | var cerr *Error | |
| 500 | 476 | ||
| 501 | 477 | cret := xBookmarkFileHasGroup(x.GoPointer(), UriVar, GroupVar, &cerr) | |
| 502 | - | ||
| 503 | 478 | if cerr == nil { | |
| 504 | 479 | return cret, nil | |
| 505 | 480 | } | |
| @@ -513,7 +488,6 @@ var xBookmarkFileHasItem func(uintptr, string) bool | |||
| 513 | 488 | func (x *BookmarkFile) HasItem(UriVar string) bool { | |
| 514 | 489 | ||
| 515 | 490 | cret := xBookmarkFileHasItem(x.GoPointer(), UriVar) | |
| 516 | - | ||
| 517 | 491 | return cret | |
| 518 | 492 | } | |
| 519 | 493 | ||
| @@ -526,7 +500,6 @@ func (x *BookmarkFile) LoadFromData(DataVar []byte, LengthVar uint) (bool, error | |||
| 526 | 500 | var cerr *Error | |
| 527 | 501 | ||
| 528 | 502 | cret := xBookmarkFileLoadFromData(x.GoPointer(), DataVar, LengthVar, &cerr) | |
| 529 | - | ||
| 530 | 503 | if cerr == nil { | |
| 531 | 504 | return cret, nil | |
| 532 | 505 | } | |
| @@ -545,7 +518,6 @@ func (x *BookmarkFile) LoadFromDataDirs(FileVar string, FullPathVar *string) (bo | |||
| 545 | 518 | var cerr *Error | |
| 546 | 519 | ||
| 547 | 520 | cret := xBookmarkFileLoadFromDataDirs(x.GoPointer(), FileVar, FullPathVar, &cerr) | |
| 548 | - | ||
| 549 | 521 | if cerr == nil { | |
| 550 | 522 | return cret, nil | |
| 551 | 523 | } | |
| @@ -562,7 +534,6 @@ func (x *BookmarkFile) LoadFromFile(FilenameVar string) (bool, error) { | |||
| 562 | 534 | var cerr *Error | |
| 563 | 535 | ||
| 564 | 536 | cret := xBookmarkFileLoadFromFile(x.GoPointer(), FilenameVar, &cerr) | |
| 565 | - | ||
| 566 | 537 | if cerr == nil { | |
| 567 | 538 | return cret, nil | |
| 568 | 539 | } | |
| @@ -581,12 +552,10 @@ var xBookmarkFileMoveItem func(uintptr, string, uintptr, **Error) bool | |||
| 581 | 552 | func (x *BookmarkFile) MoveItem(OldUriVar string, NewUriVar *string) (bool, error) { | |
| 582 | 553 | var cerr *Error | |
| 583 | 554 | ||
| 584 | - | NewUriVarPtr, NewUriVarBytes := core.NullableStringToPtr(NewUriVar) | |
| 555 | + | NewUriVarPtr := core.GStrdupNullable(NewUriVar) | |
| 556 | + | defer core.GFreeNullable(NewUriVarPtr) | |
| 585 | 557 | ||
| 586 | 558 | cret := xBookmarkFileMoveItem(x.GoPointer(), OldUriVar, NewUriVarPtr, &cerr) | |
| 587 | - | ||
| 588 | - | runtime.KeepAlive(NewUriVarBytes) | |
| 589 | - | ||
| 590 | 559 | if cerr == nil { | |
| 591 | 560 | return cret, nil | |
| 592 | 561 | } | |
| @@ -608,7 +577,6 @@ func (x *BookmarkFile) RemoveApplication(UriVar string, NameVar string) (bool, e | |||
| 608 | 577 | var cerr *Error | |
| 609 | 578 | ||
| 610 | 579 | cret := xBookmarkFileRemoveApplication(x.GoPointer(), UriVar, NameVar, &cerr) | |
| 611 | - | ||
| 612 | 580 | if cerr == nil { | |
| 613 | 581 | return cret, nil | |
| 614 | 582 | } | |
| @@ -629,7 +597,6 @@ func (x *BookmarkFile) RemoveGroup(UriVar string, GroupVar string) (bool, error) | |||
| 629 | 597 | var cerr *Error | |
| 630 | 598 | ||
| 631 | 599 | cret := xBookmarkFileRemoveGroup(x.GoPointer(), UriVar, GroupVar, &cerr) | |
| 632 | - | ||
| 633 | 600 | if cerr == nil { | |
| 634 | 601 | return cret, nil | |
| 635 | 602 | } | |
| @@ -644,7 +611,6 @@ func (x *BookmarkFile) RemoveItem(UriVar string) (bool, error) { | |||
| 644 | 611 | var cerr *Error | |
| 645 | 612 | ||
| 646 | 613 | cret := xBookmarkFileRemoveItem(x.GoPointer(), UriVar, &cerr) | |
| 647 | - | ||
| 648 | 614 | if cerr == nil { | |
| 649 | 615 | return cret, nil | |
| 650 | 616 | } | |
| @@ -708,7 +674,6 @@ func (x *BookmarkFile) SetAppInfo(UriVar string, NameVar string, ExecVar string, | |||
| 708 | 674 | var cerr *Error | |
| 709 | 675 | ||
| 710 | 676 | cret := xBookmarkFileSetAppInfo(x.GoPointer(), UriVar, NameVar, ExecVar, CountVar, StampVar, &cerr) | |
| 711 | - | ||
| 712 | 677 | if cerr == nil { | |
| 713 | 678 | return cret, nil | |
| 714 | 679 | } | |
| @@ -749,7 +714,6 @@ func (x *BookmarkFile) SetApplicationInfo(UriVar string, NameVar string, ExecVar | |||
| 749 | 714 | var cerr *Error | |
| 750 | 715 | ||
| 751 | 716 | cret := xBookmarkFileSetApplicationInfo(x.GoPointer(), UriVar, NameVar, ExecVar, CountVar, StampVar, &cerr) | |
| 752 | - | ||
| 753 | 717 | if cerr == nil { | |
| 754 | 718 | return cret, nil | |
| 755 | 719 | } | |
| @@ -766,12 +730,11 @@ var xBookmarkFileSetDescription func(uintptr, uintptr, string) | |||
| 766 | 730 | // If a bookmark for @uri cannot be found then it is created. | |
| 767 | 731 | func (x *BookmarkFile) SetDescription(UriVar *string, DescriptionVar string) { | |
| 768 | 732 | ||
| 769 | - | UriVarPtr, UriVarBytes := core.NullableStringToPtr(UriVar) | |
| 733 | + | UriVarPtr := core.GStrdupNullable(UriVar) | |
| 734 | + | defer core.GFreeNullable(UriVarPtr) | |
| 770 | 735 | ||
| 771 | 736 | xBookmarkFileSetDescription(x.GoPointer(), UriVarPtr, DescriptionVar) | |
| 772 | 737 | ||
| 773 | - | runtime.KeepAlive(UriVarBytes) | |
| 774 | - | ||
| 775 | 738 | } | |
| 776 | 739 | ||
| 777 | 740 | var xBookmarkFileSetGroups func(uintptr, string, []string, uint) | |
| @@ -795,12 +758,11 @@ var xBookmarkFileSetIcon func(uintptr, string, uintptr, string) | |||
| 795 | 758 | // If no bookmark for @uri is found one is created. | |
| 796 | 759 | func (x *BookmarkFile) SetIcon(UriVar string, HrefVar *string, MimeTypeVar string) { | |
| 797 | 760 | ||
| 798 | - | HrefVarPtr, HrefVarBytes := core.NullableStringToPtr(HrefVar) | |
| 761 | + | HrefVarPtr := core.GStrdupNullable(HrefVar) | |
| 762 | + | defer core.GFreeNullable(HrefVarPtr) | |
| 799 | 763 | ||
| 800 | 764 | xBookmarkFileSetIcon(x.GoPointer(), UriVar, HrefVarPtr, MimeTypeVar) | |
| 801 | 765 | ||
| 802 | - | runtime.KeepAlive(HrefVarBytes) | |
| 803 | - | ||
| 804 | 766 | } | |
| 805 | 767 | ||
| 806 | 768 | var xBookmarkFileSetIsPrivate func(uintptr, string, bool) | |
| @@ -867,12 +829,11 @@ var xBookmarkFileSetTitle func(uintptr, uintptr, string) | |||
| 867 | 829 | // If a bookmark for @uri cannot be found then it is created. | |
| 868 | 830 | func (x *BookmarkFile) SetTitle(UriVar *string, TitleVar string) { | |
| 869 | 831 | ||
| 870 | - | UriVarPtr, UriVarBytes := core.NullableStringToPtr(UriVar) | |
| 832 | + | UriVarPtr := core.GStrdupNullable(UriVar) | |
| 833 | + | defer core.GFreeNullable(UriVarPtr) | |
| 871 | 834 | ||
| 872 | 835 | xBookmarkFileSetTitle(x.GoPointer(), UriVarPtr, TitleVar) | |
| 873 | 836 | ||
| 874 | - | runtime.KeepAlive(UriVarBytes) | |
| 875 | - | ||
| 876 | 837 | } | |
| 877 | 838 | ||
| 878 | 839 | var xBookmarkFileSetVisited func(uintptr, string, int) | |
| @@ -916,7 +877,6 @@ func (x *BookmarkFile) ToData(LengthVar *uint) (uintptr, error) { | |||
| 916 | 877 | var cerr *Error | |
| 917 | 878 | ||
| 918 | 879 | cret := xBookmarkFileToData(x.GoPointer(), LengthVar, &cerr) | |
| 919 | - | ||
| 920 | 880 | if cerr == nil { | |
| 921 | 881 | return cret, nil | |
| 922 | 882 | } | |
| @@ -932,7 +892,6 @@ func (x *BookmarkFile) ToFile(FilenameVar string) (bool, error) { | |||
| 932 | 892 | var cerr *Error | |
| 933 | 893 | ||
| 934 | 894 | cret := xBookmarkFileToFile(x.GoPointer(), FilenameVar, &cerr) | |
| 935 | - | ||
| 936 | 895 | if cerr == nil { | |
| 937 | 896 | return cret, nil | |
| 938 | 897 | } | |
M v4/glib/gcache.go +0 -1
| @@ -67,7 +67,6 @@ var xCacheInsert func(uintptr, uintptr) uintptr | |||
| 67 | 67 | func (x *Cache) Insert(KeyVar uintptr) uintptr { | |
| 68 | 68 | ||
| 69 | 69 | cret := xCacheInsert(x.GoPointer(), KeyVar) | |
| 70 | - | ||
| 71 | 70 | return cret | |
| 72 | 71 | } | |
| 73 | 72 | ||
M v4/glib/gcharset.go +0 -6
| @@ -32,7 +32,6 @@ var xGetCharset func(*string) bool | |||
| 32 | 32 | func GetCharset(CharsetVar *string) bool { | |
| 33 | 33 | ||
| 34 | 34 | cret := xGetCharset(CharsetVar) | |
| 35 | - | ||
| 36 | 35 | return cret | |
| 37 | 36 | } | |
| 38 | 37 | ||
| @@ -42,7 +41,6 @@ var xGetCodeset func() string | |||
| 42 | 41 | func GetCodeset() string { | |
| 43 | 42 | ||
| 44 | 43 | cret := xGetCodeset() | |
| 45 | - | ||
| 46 | 44 | return cret | |
| 47 | 45 | } | |
| 48 | 46 | ||
| @@ -68,7 +66,6 @@ var xGetConsoleCharset func(*string) bool | |||
| 68 | 66 | func GetConsoleCharset(CharsetVar *string) bool { | |
| 69 | 67 | ||
| 70 | 68 | cret := xGetConsoleCharset(CharsetVar) | |
| 71 | - | ||
| 72 | 69 | return cret | |
| 73 | 70 | } | |
| 74 | 71 | ||
| @@ -88,7 +85,6 @@ var xGetLanguageNames func() []string | |||
| 88 | 85 | func GetLanguageNames() []string { | |
| 89 | 86 | ||
| 90 | 87 | cret := xGetLanguageNames() | |
| 91 | - | ||
| 92 | 88 | return cret | |
| 93 | 89 | } | |
| 94 | 90 | ||
| @@ -107,7 +103,6 @@ var xGetLanguageNamesWithCategory func(string) []string | |||
| 107 | 103 | func GetLanguageNamesWithCategory(CategoryNameVar string) []string { | |
| 108 | 104 | ||
| 109 | 105 | cret := xGetLanguageNamesWithCategory(CategoryNameVar) | |
| 110 | - | ||
| 111 | 106 | return cret | |
| 112 | 107 | } | |
| 113 | 108 | ||
| @@ -131,7 +126,6 @@ var xGetLocaleVariants func(string) []string | |||
| 131 | 126 | func GetLocaleVariants(LocaleVar string) []string { | |
| 132 | 127 | ||
| 133 | 128 | cret := xGetLocaleVariants(LocaleVar) | |
| 134 | - | ||
| 135 | 129 | return cret | |
| 136 | 130 | } | |
| 137 | 131 | ||
M v4/glib/gchecksum.go +0 -7
| @@ -58,7 +58,6 @@ var xNewChecksum func(ChecksumType) *Checksum | |||
| 58 | 58 | func NewChecksum(ChecksumTypeVar ChecksumType) *Checksum { | |
| 59 | 59 | ||
| 60 | 60 | cret := xNewChecksum(ChecksumTypeVar) | |
| 61 | - | ||
| 62 | 61 | return cret | |
| 63 | 62 | } | |
| 64 | 63 | ||
| @@ -70,7 +69,6 @@ var xChecksumCopy func(uintptr) *Checksum | |||
| 70 | 69 | func (x *Checksum) Copy() *Checksum { | |
| 71 | 70 | ||
| 72 | 71 | cret := xChecksumCopy(x.GoPointer()) | |
| 73 | - | ||
| 74 | 72 | return cret | |
| 75 | 73 | } | |
| 76 | 74 | ||
| @@ -107,7 +105,6 @@ var xChecksumGetString func(uintptr) string | |||
| 107 | 105 | func (x *Checksum) GetString() string { | |
| 108 | 106 | ||
| 109 | 107 | cret := xChecksumGetString(x.GoPointer()) | |
| 110 | - | ||
| 111 | 108 | return cret | |
| 112 | 109 | } | |
| 113 | 110 | ||
| @@ -158,7 +155,6 @@ var xChecksumTypeGetLength func(ChecksumType) int | |||
| 158 | 155 | func ChecksumTypeGetLength(ChecksumTypeVar ChecksumType) int { | |
| 159 | 156 | ||
| 160 | 157 | cret := xChecksumTypeGetLength(ChecksumTypeVar) | |
| 161 | - | ||
| 162 | 158 | return cret | |
| 163 | 159 | } | |
| 164 | 160 | ||
| @@ -172,7 +168,6 @@ var xComputeChecksumForBytes func(ChecksumType, *Bytes) string | |||
| 172 | 168 | func ComputeChecksumForBytes(ChecksumTypeVar ChecksumType, DataVar *Bytes) string { | |
| 173 | 169 | ||
| 174 | 170 | cret := xComputeChecksumForBytes(ChecksumTypeVar, DataVar) | |
| 175 | - | ||
| 176 | 171 | return cret | |
| 177 | 172 | } | |
| 178 | 173 | ||
| @@ -186,7 +181,6 @@ var xComputeChecksumForData func(ChecksumType, []byte, uint) string | |||
| 186 | 181 | func ComputeChecksumForData(ChecksumTypeVar ChecksumType, DataVar []byte, LengthVar uint) string { | |
| 187 | 182 | ||
| 188 | 183 | cret := xComputeChecksumForData(ChecksumTypeVar, DataVar, LengthVar) | |
| 189 | - | ||
| 190 | 184 | return cret | |
| 191 | 185 | } | |
| 192 | 186 | ||
| @@ -198,7 +192,6 @@ var xComputeChecksumForString func(ChecksumType, string, int) string | |||
| 198 | 192 | func ComputeChecksumForString(ChecksumTypeVar ChecksumType, StrVar string, LengthVar int) string { | |
| 199 | 193 | ||
| 200 | 194 | cret := xComputeChecksumForString(ChecksumTypeVar, StrVar, LengthVar) | |
| 201 | - | ||
| 202 | 195 | return cret | |
| 203 | 196 | } | |
| 204 | 197 | ||
M v4/glib/gcompletion.go +0 -2
| @@ -85,7 +85,6 @@ var xCompletionComplete func(uintptr, string, string) *List | |||
| 85 | 85 | func (x *Completion) Complete(PrefixVar string, NewPrefixVar string) *List { | |
| 86 | 86 | ||
| 87 | 87 | cret := xCompletionComplete(x.GoPointer(), PrefixVar, NewPrefixVar) | |
| 88 | - | ||
| 89 | 88 | return cret | |
| 90 | 89 | } | |
| 91 | 90 | ||
| @@ -101,7 +100,6 @@ var xCompletionCompleteUtf8 func(uintptr, string, string) *List | |||
| 101 | 100 | func (x *Completion) CompleteUtf8(PrefixVar string, NewPrefixVar string) *List { | |
| 102 | 101 | ||
| 103 | 102 | cret := xCompletionCompleteUtf8(x.GoPointer(), PrefixVar, NewPrefixVar) | |
| 104 | - | ||
| 105 | 103 | return cret | |
| 106 | 104 | } | |
| 107 | 105 | ||
M v4/glib/gconvert.go +2 -21
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -41,7 +40,6 @@ var xIConvGIconv func(uintptr, string, uint, string, uint) uint | |||
| 41 | 40 | func (x *IConv) GIconv(InbufVar string, InbytesLeftVar uint, OutbufVar string, OutbytesLeftVar uint) uint { | |
| 42 | 41 | ||
| 43 | 42 | cret := xIConvGIconv(x.GoPointer(), InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | |
| 44 | - | ||
| 45 | 43 | return cret | |
| 46 | 44 | } | |
| 47 | 45 | ||
| @@ -58,7 +56,6 @@ var xIConvClose func(uintptr) int | |||
| 58 | 56 | func (x *IConv) Close() int { | |
| 59 | 57 | ||
| 60 | 58 | cret := xIConvClose(x.GoPointer()) | |
| 61 | - | ||
| 62 | 59 | return cret | |
| 63 | 60 | } | |
| 64 | 61 | ||
| @@ -110,7 +107,6 @@ func Convert(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar stri | |||
| 110 | 107 | var cerr *Error | |
| 111 | 108 | ||
| 112 | 109 | cret := xConvert(StrVar, LenVar, ToCodesetVar, FromCodesetVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 113 | - | ||
| 114 | 110 | if cerr == nil { | |
| 115 | 111 | return cret, nil | |
| 116 | 112 | } | |
| @@ -141,7 +137,6 @@ func ConvertWithFallback(StrVar []byte, LenVar int, ToCodesetVar string, FromCod | |||
| 141 | 137 | var cerr *Error | |
| 142 | 138 | ||
| 143 | 139 | cret := xConvertWithFallback(StrVar, LenVar, ToCodesetVar, FromCodesetVar, FallbackVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 144 | - | ||
| 145 | 140 | if cerr == nil { | |
| 146 | 141 | return cret, nil | |
| 147 | 142 | } | |
| @@ -174,7 +169,6 @@ func ConvertWithIconv(StrVar []byte, LenVar int, ConverterVar uintptr, BytesRead | |||
| 174 | 169 | var cerr *Error | |
| 175 | 170 | ||
| 176 | 171 | cret := xConvertWithIconv(StrVar, LenVar, ConverterVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 177 | - | ||
| 178 | 172 | if cerr == nil { | |
| 179 | 173 | return cret, nil | |
| 180 | 174 | } | |
| @@ -203,7 +197,6 @@ var xFilenameDisplayBasename func(string) string | |||
| 203 | 197 | func FilenameDisplayBasename(FilenameVar string) string { | |
| 204 | 198 | ||
| 205 | 199 | cret := xFilenameDisplayBasename(FilenameVar) | |
| 206 | - | ||
| 207 | 200 | return cret | |
| 208 | 201 | } | |
| 209 | 202 | ||
| @@ -227,7 +220,6 @@ var xFilenameDisplayName func(string) string | |||
| 227 | 220 | func FilenameDisplayName(FilenameVar string) string { | |
| 228 | 221 | ||
| 229 | 222 | cret := xFilenameDisplayName(FilenameVar) | |
| 230 | - | ||
| 231 | 223 | return cret | |
| 232 | 224 | } | |
| 233 | 225 | ||
| @@ -244,7 +236,6 @@ func FilenameFromUri(UriVar string, HostnameVar *string) (string, error) { | |||
| 244 | 236 | var cerr *Error | |
| 245 | 237 | ||
| 246 | 238 | cret := xFilenameFromUri(UriVar, HostnameVar, &cerr) | |
| 247 | - | ||
| 248 | 239 | if cerr == nil { | |
| 249 | 240 | return cret, nil | |
| 250 | 241 | } | |
| @@ -268,7 +259,6 @@ func FilenameFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, Byte | |||
| 268 | 259 | var cerr *Error | |
| 269 | 260 | ||
| 270 | 261 | cret := xFilenameFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 271 | - | ||
| 272 | 262 | if cerr == nil { | |
| 273 | 263 | return cret, nil | |
| 274 | 264 | } | |
| @@ -283,12 +273,10 @@ var xFilenameToUri func(string, uintptr, **Error) string | |||
| 283 | 273 | func FilenameToUri(FilenameVar string, HostnameVar *string) (string, error) { | |
| 284 | 274 | var cerr *Error | |
| 285 | 275 | ||
| 286 | - | HostnameVarPtr, HostnameVarBytes := core.NullableStringToPtr(HostnameVar) | |
| 276 | + | HostnameVarPtr := core.GStrdupNullable(HostnameVar) | |
| 277 | + | defer core.GFreeNullable(HostnameVarPtr) | |
| 287 | 278 | ||
| 288 | 279 | cret := xFilenameToUri(FilenameVar, HostnameVarPtr, &cerr) | |
| 289 | - | ||
| 290 | - | runtime.KeepAlive(HostnameVarBytes) | |
| 291 | - | ||
| 292 | 280 | if cerr == nil { | |
| 293 | 281 | return cret, nil | |
| 294 | 282 | } | |
| @@ -314,7 +302,6 @@ func FilenameToUtf8(OpsysstringVar string, LenVar int, BytesReadVar *uint, Bytes | |||
| 314 | 302 | var cerr *Error | |
| 315 | 303 | ||
| 316 | 304 | cret := xFilenameToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 317 | - | ||
| 318 | 305 | if cerr == nil { | |
| 319 | 306 | return cret, nil | |
| 320 | 307 | } | |
| @@ -351,7 +338,6 @@ var xGetFilenameCharsets func(*[]string) bool | |||
| 351 | 338 | func GetFilenameCharsets(FilenameCharsetsVar *[]string) bool { | |
| 352 | 339 | ||
| 353 | 340 | cret := xGetFilenameCharsets(FilenameCharsetsVar) | |
| 354 | - | ||
| 355 | 341 | return cret | |
| 356 | 342 | } | |
| 357 | 343 | ||
| @@ -376,7 +362,6 @@ var xIconv func(uintptr, string, uint, string, uint) uint | |||
| 376 | 362 | func Iconv(ConverterVar uintptr, InbufVar string, InbytesLeftVar uint, OutbufVar string, OutbytesLeftVar uint) uint { | |
| 377 | 363 | ||
| 378 | 364 | cret := xIconv(ConverterVar, InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | |
| 379 | - | ||
| 380 | 365 | return cret | |
| 381 | 366 | } | |
| 382 | 367 | ||
| @@ -391,7 +376,6 @@ var xIconvOpen func(string, string) uintptr | |||
| 391 | 376 | func IconvOpen(ToCodesetVar string, FromCodesetVar string) uintptr { | |
| 392 | 377 | ||
| 393 | 378 | cret := xIconvOpen(ToCodesetVar, FromCodesetVar) | |
| 394 | - | ||
| 395 | 379 | return cret | |
| 396 | 380 | } | |
| 397 | 381 | ||
| @@ -410,7 +394,6 @@ func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesW | |||
| 410 | 394 | var cerr *Error | |
| 411 | 395 | ||
| 412 | 396 | cret := xLocaleFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 413 | - | ||
| 414 | 397 | if cerr == nil { | |
| 415 | 398 | return cret, nil | |
| 416 | 399 | } | |
| @@ -435,7 +418,6 @@ func LocaleToUtf8(OpsysstringVar []byte, LenVar int, BytesReadVar *uint, BytesWr | |||
| 435 | 418 | var cerr *Error | |
| 436 | 419 | ||
| 437 | 420 | cret := xLocaleToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| 438 | - | ||
| 439 | 421 | if cerr == nil { | |
| 440 | 422 | return cret, nil | |
| 441 | 423 | } | |
| @@ -451,7 +433,6 @@ var xUriListExtractUris func(string) []string | |||
| 451 | 433 | func UriListExtractUris(UriListVar string) []string { | |
| 452 | 434 | ||
| 453 | 435 | cret := xUriListExtractUris(UriListVar) | |
| 454 | - | ||
| 455 | 436 | return cret | |
| 456 | 437 | } | |
| 457 | 438 | ||
M v4/glib/gdataset.go +0 -8
| @@ -89,7 +89,6 @@ var xDatalistGetData func(**Data, string) uintptr | |||
| 89 | 89 | func DatalistGetData(DatalistVar **Data, KeyVar string) uintptr { | |
| 90 | 90 | ||
| 91 | 91 | cret := xDatalistGetData(DatalistVar, KeyVar) | |
| 92 | - | ||
| 93 | 92 | return cret | |
| 94 | 93 | } | |
| 95 | 94 | ||
| @@ -100,7 +99,6 @@ var xDatalistGetFlags func(**Data) uint | |||
| 100 | 99 | func DatalistGetFlags(DatalistVar **Data) uint { | |
| 101 | 100 | ||
| 102 | 101 | cret := xDatalistGetFlags(DatalistVar) | |
| 103 | - | ||
| 104 | 102 | return cret | |
| 105 | 103 | } | |
| 106 | 104 | ||
| @@ -137,7 +135,6 @@ func DatalistIdDupData(DatalistVar **Data, KeyIdVar Quark, DupFuncVar *Duplicate | |||
| 137 | 135 | } | |
| 138 | 136 | ||
| 139 | 137 | cret := xDatalistIdDupData(DatalistVar, KeyIdVar, DupFuncVarRef, UserDataVar) | |
| 140 | - | ||
| 141 | 138 | return cret | |
| 142 | 139 | } | |
| 143 | 140 | ||
| @@ -147,7 +144,6 @@ var xDatalistIdGetData func(**Data, Quark) uintptr | |||
| 147 | 144 | func DatalistIdGetData(DatalistVar **Data, KeyIdVar Quark) uintptr { | |
| 148 | 145 | ||
| 149 | 146 | cret := xDatalistIdGetData(DatalistVar, KeyIdVar) | |
| 150 | - | ||
| 151 | 147 | return cret | |
| 152 | 148 | } | |
| 153 | 149 | ||
| @@ -173,7 +169,6 @@ var xDatalistIdRemoveNoNotify func(**Data, Quark) uintptr | |||
| 173 | 169 | func DatalistIdRemoveNoNotify(DatalistVar **Data, KeyIdVar Quark) uintptr { | |
| 174 | 170 | ||
| 175 | 171 | cret := xDatalistIdRemoveNoNotify(DatalistVar, KeyIdVar) | |
| 176 | - | ||
| 177 | 172 | return cret | |
| 178 | 173 | } | |
| 179 | 174 | ||
| @@ -210,7 +205,6 @@ func DatalistIdReplaceData(DatalistVar **Data, KeyIdVar Quark, OldvalVar uintptr | |||
| 210 | 205 | } | |
| 211 | 206 | ||
| 212 | 207 | cret := xDatalistIdReplaceData(DatalistVar, KeyIdVar, OldvalVar, NewvalVar, DestroyVarRef, OldDestroyVar) | |
| 213 | - | ||
| 214 | 208 | return cret | |
| 215 | 209 | } | |
| 216 | 210 | ||
| @@ -321,7 +315,6 @@ var xDatasetIdGetData func(uintptr, Quark) uintptr | |||
| 321 | 315 | func DatasetIdGetData(DatasetLocationVar uintptr, KeyIdVar Quark) uintptr { | |
| 322 | 316 | ||
| 323 | 317 | cret := xDatasetIdGetData(DatasetLocationVar, KeyIdVar) | |
| 324 | - | ||
| 325 | 318 | return cret | |
| 326 | 319 | } | |
| 327 | 320 | ||
| @@ -332,7 +325,6 @@ var xDatasetIdRemoveNoNotify func(uintptr, Quark) uintptr | |||
| 332 | 325 | func DatasetIdRemoveNoNotify(DatasetLocationVar uintptr, KeyIdVar Quark) uintptr { | |
| 333 | 326 | ||
| 334 | 327 | cret := xDatasetIdRemoveNoNotify(DatasetLocationVar, KeyIdVar) | |
| 335 | - | ||
| 336 | 328 | return cret | |
| 337 | 329 | } | |
| 338 | 330 | ||
M v4/glib/gdate.go +0 -31
| @@ -84,7 +84,6 @@ var xNewDate func() *Date | |||
| 84 | 84 | func NewDate() *Date { | |
| 85 | 85 | ||
| 86 | 86 | cret := xNewDate() | |
| 87 | - | ||
| 88 | 87 | return cret | |
| 89 | 88 | } | |
| 90 | 89 | ||
| @@ -98,7 +97,6 @@ var xNewDateDmy func(DateDay, DateMonth, DateYear) *Date | |||
| 98 | 97 | func NewDateDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) *Date { | |
| 99 | 98 | ||
| 100 | 99 | cret := xNewDateDmy(DayVar, MonthVar, YearVar) | |
| 101 | - | ||
| 102 | 100 | return cret | |
| 103 | 101 | } | |
| 104 | 102 | ||
| @@ -112,7 +110,6 @@ var xNewDateJulian func(uint32) *Date | |||
| 112 | 110 | func NewDateJulian(JulianDayVar uint32) *Date { | |
| 113 | 111 | ||
| 114 | 112 | cret := xNewDateJulian(JulianDayVar) | |
| 115 | - | ||
| 116 | 113 | return cret | |
| 117 | 114 | } | |
| 118 | 115 | ||
| @@ -184,7 +181,6 @@ var xDateCompare func(uintptr, *Date) int | |||
| 184 | 181 | func (x *Date) Compare(RhsVar *Date) int { | |
| 185 | 182 | ||
| 186 | 183 | cret := xDateCompare(x.GoPointer(), RhsVar) | |
| 187 | - | ||
| 188 | 184 | return cret | |
| 189 | 185 | } | |
| 190 | 186 | ||
| @@ -196,7 +192,6 @@ var xDateCopy func(uintptr) *Date | |||
| 196 | 192 | func (x *Date) Copy() *Date { | |
| 197 | 193 | ||
| 198 | 194 | cret := xDateCopy(x.GoPointer()) | |
| 199 | - | ||
| 200 | 195 | return cret | |
| 201 | 196 | } | |
| 202 | 197 | ||
| @@ -208,7 +203,6 @@ var xDateDaysBetween func(uintptr, *Date) int | |||
| 208 | 203 | func (x *Date) DaysBetween(Date2Var *Date) int { | |
| 209 | 204 | ||
| 210 | 205 | cret := xDateDaysBetween(x.GoPointer(), Date2Var) | |
| 211 | - | ||
| 212 | 206 | return cret | |
| 213 | 207 | } | |
| 214 | 208 | ||
| @@ -227,7 +221,6 @@ var xDateGetDay func(uintptr) DateDay | |||
| 227 | 221 | func (x *Date) GetDay() DateDay { | |
| 228 | 222 | ||
| 229 | 223 | cret := xDateGetDay(x.GoPointer()) | |
| 230 | - | ||
| 231 | 224 | return cret | |
| 232 | 225 | } | |
| 233 | 226 | ||
| @@ -238,7 +231,6 @@ var xDateGetDayOfYear func(uintptr) uint | |||
| 238 | 231 | func (x *Date) GetDayOfYear() uint { | |
| 239 | 232 | ||
| 240 | 233 | cret := xDateGetDayOfYear(x.GoPointer()) | |
| 241 | - | ||
| 242 | 234 | return cret | |
| 243 | 235 | } | |
| 244 | 236 | ||
| @@ -249,7 +241,6 @@ var xDateGetIso8601WeekOfYear func(uintptr) uint | |||
| 249 | 241 | func (x *Date) GetIso8601WeekOfYear() uint { | |
| 250 | 242 | ||
| 251 | 243 | cret := xDateGetIso8601WeekOfYear(x.GoPointer()) | |
| 252 | - | ||
| 253 | 244 | return cret | |
| 254 | 245 | } | |
| 255 | 246 | ||
| @@ -262,7 +253,6 @@ var xDateGetJulian func(uintptr) uint32 | |||
| 262 | 253 | func (x *Date) GetJulian() uint32 { | |
| 263 | 254 | ||
| 264 | 255 | cret := xDateGetJulian(x.GoPointer()) | |
| 265 | - | ||
| 266 | 256 | return cret | |
| 267 | 257 | } | |
| 268 | 258 | ||
| @@ -274,7 +264,6 @@ var xDateGetMondayWeekOfYear func(uintptr) uint | |||
| 274 | 264 | func (x *Date) GetMondayWeekOfYear() uint { | |
| 275 | 265 | ||
| 276 | 266 | cret := xDateGetMondayWeekOfYear(x.GoPointer()) | |
| 277 | - | ||
| 278 | 267 | return cret | |
| 279 | 268 | } | |
| 280 | 269 | ||
| @@ -284,7 +273,6 @@ var xDateGetMonth func(uintptr) DateMonth | |||
| 284 | 273 | func (x *Date) GetMonth() DateMonth { | |
| 285 | 274 | ||
| 286 | 275 | cret := xDateGetMonth(x.GoPointer()) | |
| 287 | - | ||
| 288 | 276 | return cret | |
| 289 | 277 | } | |
| 290 | 278 | ||
| @@ -296,7 +284,6 @@ var xDateGetSundayWeekOfYear func(uintptr) uint | |||
| 296 | 284 | func (x *Date) GetSundayWeekOfYear() uint { | |
| 297 | 285 | ||
| 298 | 286 | cret := xDateGetSundayWeekOfYear(x.GoPointer()) | |
| 299 | - | ||
| 300 | 287 | return cret | |
| 301 | 288 | } | |
| 302 | 289 | ||
| @@ -313,7 +300,6 @@ var xDateGetWeekOfYear func(uintptr, DateWeekday) uint | |||
| 313 | 300 | func (x *Date) GetWeekOfYear(FirstDayOfWeekVar DateWeekday) uint { | |
| 314 | 301 | ||
| 315 | 302 | cret := xDateGetWeekOfYear(x.GoPointer(), FirstDayOfWeekVar) | |
| 316 | - | ||
| 317 | 303 | return cret | |
| 318 | 304 | } | |
| 319 | 305 | ||
| @@ -323,7 +309,6 @@ var xDateGetWeekday func(uintptr) DateWeekday | |||
| 323 | 309 | func (x *Date) GetWeekday() DateWeekday { | |
| 324 | 310 | ||
| 325 | 311 | cret := xDateGetWeekday(x.GoPointer()) | |
| 326 | - | ||
| 327 | 312 | return cret | |
| 328 | 313 | } | |
| 329 | 314 | ||
| @@ -333,7 +318,6 @@ var xDateGetYear func(uintptr) DateYear | |||
| 333 | 318 | func (x *Date) GetYear() DateYear { | |
| 334 | 319 | ||
| 335 | 320 | cret := xDateGetYear(x.GoPointer()) | |
| 336 | - | ||
| 337 | 321 | return cret | |
| 338 | 322 | } | |
| 339 | 323 | ||
| @@ -344,7 +328,6 @@ var xDateIsFirstOfMonth func(uintptr) bool | |||
| 344 | 328 | func (x *Date) IsFirstOfMonth() bool { | |
| 345 | 329 | ||
| 346 | 330 | cret := xDateIsFirstOfMonth(x.GoPointer()) | |
| 347 | - | ||
| 348 | 331 | return cret | |
| 349 | 332 | } | |
| 350 | 333 | ||
| @@ -355,7 +338,6 @@ var xDateIsLastOfMonth func(uintptr) bool | |||
| 355 | 338 | func (x *Date) IsLastOfMonth() bool { | |
| 356 | 339 | ||
| 357 | 340 | cret := xDateIsLastOfMonth(x.GoPointer()) | |
| 358 | - | ||
| 359 | 341 | return cret | |
| 360 | 342 | } | |
| 361 | 343 | ||
| @@ -537,7 +519,6 @@ var xDateValid func(uintptr) bool | |||
| 537 | 519 | func (x *Date) Valid() bool { | |
| 538 | 520 | ||
| 539 | 521 | cret := xDateValid(x.GoPointer()) | |
| 540 | - | ||
| 541 | 522 | return cret | |
| 542 | 523 | } | |
| 543 | 524 | ||
| @@ -666,7 +647,6 @@ var xDateGetDaysInMonth func(DateMonth, DateYear) byte | |||
| 666 | 647 | func DateGetDaysInMonth(MonthVar DateMonth, YearVar DateYear) byte { | |
| 667 | 648 | ||
| 668 | 649 | cret := xDateGetDaysInMonth(MonthVar, YearVar) | |
| 669 | - | ||
| 670 | 650 | return cret | |
| 671 | 651 | } | |
| 672 | 652 | ||
| @@ -682,7 +662,6 @@ var xDateGetMondayWeeksInYear func(DateYear) byte | |||
| 682 | 662 | func DateGetMondayWeeksInYear(YearVar DateYear) byte { | |
| 683 | 663 | ||
| 684 | 664 | cret := xDateGetMondayWeeksInYear(YearVar) | |
| 685 | - | ||
| 686 | 665 | return cret | |
| 687 | 666 | } | |
| 688 | 667 | ||
| @@ -698,7 +677,6 @@ var xDateGetSundayWeeksInYear func(DateYear) byte | |||
| 698 | 677 | func DateGetSundayWeeksInYear(YearVar DateYear) byte { | |
| 699 | 678 | ||
| 700 | 679 | cret := xDateGetSundayWeeksInYear(YearVar) | |
| 701 | - | ||
| 702 | 680 | return cret | |
| 703 | 681 | } | |
| 704 | 682 | ||
| @@ -716,7 +694,6 @@ var xDateGetWeeksInYear func(DateYear, DateWeekday) byte | |||
| 716 | 694 | func DateGetWeeksInYear(YearVar DateYear, FirstDayOfWeekVar DateWeekday) byte { | |
| 717 | 695 | ||
| 718 | 696 | cret := xDateGetWeeksInYear(YearVar, FirstDayOfWeekVar) | |
| 719 | - | ||
| 720 | 697 | return cret | |
| 721 | 698 | } | |
| 722 | 699 | ||
| @@ -731,7 +708,6 @@ var xDateIsLeapYear func(DateYear) bool | |||
| 731 | 708 | func DateIsLeapYear(YearVar DateYear) bool { | |
| 732 | 709 | ||
| 733 | 710 | cret := xDateIsLeapYear(YearVar) | |
| 734 | - | ||
| 735 | 711 | return cret | |
| 736 | 712 | } | |
| 737 | 713 | ||
| @@ -753,7 +729,6 @@ var xDateStrftime func(string, uint, string, *Date) uint | |||
| 753 | 729 | func DateStrftime(SVar string, SlenVar uint, FormatVar string, DateVar *Date) uint { | |
| 754 | 730 | ||
| 755 | 731 | cret := xDateStrftime(SVar, SlenVar, FormatVar, DateVar) | |
| 756 | - | ||
| 757 | 732 | return cret | |
| 758 | 733 | } | |
| 759 | 734 | ||
| @@ -764,7 +739,6 @@ var xDateValidDay func(DateDay) bool | |||
| 764 | 739 | func DateValidDay(DayVar DateDay) bool { | |
| 765 | 740 | ||
| 766 | 741 | cret := xDateValidDay(DayVar) | |
| 767 | - | ||
| 768 | 742 | return cret | |
| 769 | 743 | } | |
| 770 | 744 | ||
| @@ -776,7 +750,6 @@ var xDateValidDmy func(DateDay, DateMonth, DateYear) bool | |||
| 776 | 750 | func DateValidDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) bool { | |
| 777 | 751 | ||
| 778 | 752 | cret := xDateValidDmy(DayVar, MonthVar, YearVar) | |
| 779 | - | ||
| 780 | 753 | return cret | |
| 781 | 754 | } | |
| 782 | 755 | ||
| @@ -787,7 +760,6 @@ var xDateValidJulian func(uint32) bool | |||
| 787 | 760 | func DateValidJulian(JulianDateVar uint32) bool { | |
| 788 | 761 | ||
| 789 | 762 | cret := xDateValidJulian(JulianDateVar) | |
| 790 | - | ||
| 791 | 763 | return cret | |
| 792 | 764 | } | |
| 793 | 765 | ||
| @@ -798,7 +770,6 @@ var xDateValidMonth func(DateMonth) bool | |||
| 798 | 770 | func DateValidMonth(MonthVar DateMonth) bool { | |
| 799 | 771 | ||
| 800 | 772 | cret := xDateValidMonth(MonthVar) | |
| 801 | - | ||
| 802 | 773 | return cret | |
| 803 | 774 | } | |
| 804 | 775 | ||
| @@ -809,7 +780,6 @@ var xDateValidWeekday func(DateWeekday) bool | |||
| 809 | 780 | func DateValidWeekday(WeekdayVar DateWeekday) bool { | |
| 810 | 781 | ||
| 811 | 782 | cret := xDateValidWeekday(WeekdayVar) | |
| 812 | - | ||
| 813 | 783 | return cret | |
| 814 | 784 | } | |
| 815 | 785 | ||
| @@ -820,7 +790,6 @@ var xDateValidYear func(DateYear) bool | |||
| 820 | 790 | func DateValidYear(YearVar DateYear) bool { | |
| 821 | 791 | ||
| 822 | 792 | cret := xDateValidYear(YearVar) | |
| 823 | - | ||
| 824 | 793 | return cret | |
| 825 | 794 | } | |
| 826 | 795 | ||
M v4/glib/gdatetime.go +0 -51
| @@ -82,7 +82,6 @@ var xNewDateTime func(*TimeZone, int, int, int, int, int, float64) *DateTime | |||
| 82 | 82 | func NewDateTime(TzVar *TimeZone, YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 83 | 83 | ||
| 84 | 84 | cret := xNewDateTime(TzVar, YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 85 | - | ||
| 86 | 85 | return cret | |
| 87 | 86 | } | |
| 88 | 87 | ||
| @@ -134,7 +133,6 @@ var xNewDateTimeFromIso8601 func(string, *TimeZone) *DateTime | |||
| 134 | 133 | func NewDateTimeFromIso8601(TextVar string, DefaultTzVar *TimeZone) *DateTime { | |
| 135 | 134 | ||
| 136 | 135 | cret := xNewDateTimeFromIso8601(TextVar, DefaultTzVar) | |
| 137 | - | ||
| 138 | 136 | return cret | |
| 139 | 137 | } | |
| 140 | 138 | ||
| @@ -155,7 +153,6 @@ var xNewDateTimeFromTimevalLocal func(*TimeVal) *DateTime | |||
| 155 | 153 | func NewDateTimeFromTimevalLocal(TvVar *TimeVal) *DateTime { | |
| 156 | 154 | ||
| 157 | 155 | cret := xNewDateTimeFromTimevalLocal(TvVar) | |
| 158 | - | ||
| 159 | 156 | return cret | |
| 160 | 157 | } | |
| 161 | 158 | ||
| @@ -174,7 +171,6 @@ var xNewDateTimeFromTimevalUtc func(*TimeVal) *DateTime | |||
| 174 | 171 | func NewDateTimeFromTimevalUtc(TvVar *TimeVal) *DateTime { | |
| 175 | 172 | ||
| 176 | 173 | cret := xNewDateTimeFromTimevalUtc(TvVar) | |
| 177 | - | ||
| 178 | 174 | return cret | |
| 179 | 175 | } | |
| 180 | 176 | ||
| @@ -194,7 +190,6 @@ var xNewDateTimeFromUnixLocal func(int64) *DateTime | |||
| 194 | 190 | func NewDateTimeFromUnixLocal(TVar int64) *DateTime { | |
| 195 | 191 | ||
| 196 | 192 | cret := xNewDateTimeFromUnixLocal(TVar) | |
| 197 | - | ||
| 198 | 193 | return cret | |
| 199 | 194 | } | |
| 200 | 195 | ||
| @@ -214,7 +209,6 @@ var xNewDateTimeFromUnixLocalUsec func(int64) *DateTime | |||
| 214 | 209 | func NewDateTimeFromUnixLocalUsec(UsecsVar int64) *DateTime { | |
| 215 | 210 | ||
| 216 | 211 | cret := xNewDateTimeFromUnixLocalUsec(UsecsVar) | |
| 217 | - | ||
| 218 | 212 | return cret | |
| 219 | 213 | } | |
| 220 | 214 | ||
| @@ -233,7 +227,6 @@ var xNewDateTimeFromUnixUtc func(int64) *DateTime | |||
| 233 | 227 | func NewDateTimeFromUnixUtc(TVar int64) *DateTime { | |
| 234 | 228 | ||
| 235 | 229 | cret := xNewDateTimeFromUnixUtc(TVar) | |
| 236 | - | ||
| 237 | 230 | return cret | |
| 238 | 231 | } | |
| 239 | 232 | ||
| @@ -252,7 +245,6 @@ var xNewDateTimeFromUnixUtcUsec func(int64) *DateTime | |||
| 252 | 245 | func NewDateTimeFromUnixUtcUsec(UsecsVar int64) *DateTime { | |
| 253 | 246 | ||
| 254 | 247 | cret := xNewDateTimeFromUnixUtcUsec(UsecsVar) | |
| 255 | - | ||
| 256 | 248 | return cret | |
| 257 | 249 | } | |
| 258 | 250 | ||
| @@ -266,7 +258,6 @@ var xNewDateTimeLocal func(int, int, int, int, int, float64) *DateTime | |||
| 266 | 258 | func NewDateTimeLocal(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 267 | 259 | ||
| 268 | 260 | cret := xNewDateTimeLocal(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 269 | - | ||
| 270 | 261 | return cret | |
| 271 | 262 | } | |
| 272 | 263 | ||
| @@ -284,7 +275,6 @@ var xNewDateTimeNow func(*TimeZone) *DateTime | |||
| 284 | 275 | func NewDateTimeNow(TzVar *TimeZone) *DateTime { | |
| 285 | 276 | ||
| 286 | 277 | cret := xNewDateTimeNow(TzVar) | |
| 287 | - | ||
| 288 | 278 | return cret | |
| 289 | 279 | } | |
| 290 | 280 | ||
| @@ -298,7 +288,6 @@ var xNewDateTimeNowLocal func() *DateTime | |||
| 298 | 288 | func NewDateTimeNowLocal() *DateTime { | |
| 299 | 289 | ||
| 300 | 290 | cret := xNewDateTimeNowLocal() | |
| 301 | - | ||
| 302 | 291 | return cret | |
| 303 | 292 | } | |
| 304 | 293 | ||
| @@ -311,7 +300,6 @@ var xNewDateTimeNowUtc func() *DateTime | |||
| 311 | 300 | func NewDateTimeNowUtc() *DateTime { | |
| 312 | 301 | ||
| 313 | 302 | cret := xNewDateTimeNowUtc() | |
| 314 | - | ||
| 315 | 303 | return cret | |
| 316 | 304 | } | |
| 317 | 305 | ||
| @@ -325,7 +313,6 @@ var xNewDateTimeUtc func(int, int, int, int, int, float64) *DateTime | |||
| 325 | 313 | func NewDateTimeUtc(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 326 | 314 | ||
| 327 | 315 | cret := xNewDateTimeUtc(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 328 | - | ||
| 329 | 316 | return cret | |
| 330 | 317 | } | |
| 331 | 318 | ||
| @@ -335,7 +322,6 @@ var xDateTimeAdd func(uintptr, TimeSpan) *DateTime | |||
| 335 | 322 | func (x *DateTime) Add(TimespanVar TimeSpan) *DateTime { | |
| 336 | 323 | ||
| 337 | 324 | cret := xDateTimeAdd(x.GoPointer(), TimespanVar) | |
| 338 | - | ||
| 339 | 325 | return cret | |
| 340 | 326 | } | |
| 341 | 327 | ||
| @@ -346,7 +332,6 @@ var xDateTimeAddDays func(uintptr, int) *DateTime | |||
| 346 | 332 | func (x *DateTime) AddDays(DaysVar int) *DateTime { | |
| 347 | 333 | ||
| 348 | 334 | cret := xDateTimeAddDays(x.GoPointer(), DaysVar) | |
| 349 | - | ||
| 350 | 335 | return cret | |
| 351 | 336 | } | |
| 352 | 337 | ||
| @@ -357,7 +342,6 @@ var xDateTimeAddFull func(uintptr, int, int, int, int, int, float64) *DateTime | |||
| 357 | 342 | func (x *DateTime) AddFull(YearsVar int, MonthsVar int, DaysVar int, HoursVar int, MinutesVar int, SecondsVar float64) *DateTime { | |
| 358 | 343 | ||
| 359 | 344 | cret := xDateTimeAddFull(x.GoPointer(), YearsVar, MonthsVar, DaysVar, HoursVar, MinutesVar, SecondsVar) | |
| 360 | - | ||
| 361 | 345 | return cret | |
| 362 | 346 | } | |
| 363 | 347 | ||
| @@ -368,7 +352,6 @@ var xDateTimeAddHours func(uintptr, int) *DateTime | |||
| 368 | 352 | func (x *DateTime) AddHours(HoursVar int) *DateTime { | |
| 369 | 353 | ||
| 370 | 354 | cret := xDateTimeAddHours(x.GoPointer(), HoursVar) | |
| 371 | - | ||
| 372 | 355 | return cret | |
| 373 | 356 | } | |
| 374 | 357 | ||
| @@ -379,7 +362,6 @@ var xDateTimeAddMinutes func(uintptr, int) *DateTime | |||
| 379 | 362 | func (x *DateTime) AddMinutes(MinutesVar int) *DateTime { | |
| 380 | 363 | ||
| 381 | 364 | cret := xDateTimeAddMinutes(x.GoPointer(), MinutesVar) | |
| 382 | - | ||
| 383 | 365 | return cret | |
| 384 | 366 | } | |
| 385 | 367 | ||
| @@ -395,7 +377,6 @@ var xDateTimeAddMonths func(uintptr, int) *DateTime | |||
| 395 | 377 | func (x *DateTime) AddMonths(MonthsVar int) *DateTime { | |
| 396 | 378 | ||
| 397 | 379 | cret := xDateTimeAddMonths(x.GoPointer(), MonthsVar) | |
| 398 | - | ||
| 399 | 380 | return cret | |
| 400 | 381 | } | |
| 401 | 382 | ||
| @@ -406,7 +387,6 @@ var xDateTimeAddSeconds func(uintptr, float64) *DateTime | |||
| 406 | 387 | func (x *DateTime) AddSeconds(SecondsVar float64) *DateTime { | |
| 407 | 388 | ||
| 408 | 389 | cret := xDateTimeAddSeconds(x.GoPointer(), SecondsVar) | |
| 409 | - | ||
| 410 | 390 | return cret | |
| 411 | 391 | } | |
| 412 | 392 | ||
| @@ -417,7 +397,6 @@ var xDateTimeAddWeeks func(uintptr, int) *DateTime | |||
| 417 | 397 | func (x *DateTime) AddWeeks(WeeksVar int) *DateTime { | |
| 418 | 398 | ||
| 419 | 399 | cret := xDateTimeAddWeeks(x.GoPointer(), WeeksVar) | |
| 420 | - | ||
| 421 | 400 | return cret | |
| 422 | 401 | } | |
| 423 | 402 | ||
| @@ -431,7 +410,6 @@ var xDateTimeAddYears func(uintptr, int) *DateTime | |||
| 431 | 410 | func (x *DateTime) AddYears(YearsVar int) *DateTime { | |
| 432 | 411 | ||
| 433 | 412 | cret := xDateTimeAddYears(x.GoPointer(), YearsVar) | |
| 434 | - | ||
| 435 | 413 | return cret | |
| 436 | 414 | } | |
| 437 | 415 | ||
| @@ -442,7 +420,6 @@ var xDateTimeCompare func(uintptr, uintptr) int | |||
| 442 | 420 | func (x *DateTime) Compare(Dt2Var uintptr) int { | |
| 443 | 421 | ||
| 444 | 422 | cret := xDateTimeCompare(x.GoPointer(), Dt2Var) | |
| 445 | - | ||
| 446 | 423 | return cret | |
| 447 | 424 | } | |
| 448 | 425 | ||
| @@ -454,7 +431,6 @@ var xDateTimeDifference func(uintptr, *DateTime) TimeSpan | |||
| 454 | 431 | func (x *DateTime) Difference(BeginVar *DateTime) TimeSpan { | |
| 455 | 432 | ||
| 456 | 433 | cret := xDateTimeDifference(x.GoPointer(), BeginVar) | |
| 457 | - | ||
| 458 | 434 | return cret | |
| 459 | 435 | } | |
| 460 | 436 | ||
| @@ -467,7 +443,6 @@ var xDateTimeEqual func(uintptr, uintptr) bool | |||
| 467 | 443 | func (x *DateTime) Equal(Dt2Var uintptr) bool { | |
| 468 | 444 | ||
| 469 | 445 | cret := xDateTimeEqual(x.GoPointer(), Dt2Var) | |
| 470 | - | ||
| 471 | 446 | return cret | |
| 472 | 447 | } | |
| 473 | 448 | ||
| @@ -600,7 +575,6 @@ var xDateTimeFormat func(uintptr, string) string | |||
| 600 | 575 | func (x *DateTime) Format(FormatVar string) string { | |
| 601 | 576 | ||
| 602 | 577 | cret := xDateTimeFormat(x.GoPointer(), FormatVar) | |
| 603 | - | ||
| 604 | 578 | return cret | |
| 605 | 579 | } | |
| 606 | 580 | ||
| @@ -614,7 +588,6 @@ var xDateTimeFormatIso8601 func(uintptr) string | |||
| 614 | 588 | func (x *DateTime) FormatIso8601() string { | |
| 615 | 589 | ||
| 616 | 590 | cret := xDateTimeFormatIso8601(x.GoPointer()) | |
| 617 | - | ||
| 618 | 591 | return cret | |
| 619 | 592 | } | |
| 620 | 593 | ||
| @@ -625,7 +598,6 @@ var xDateTimeGetDayOfMonth func(uintptr) int | |||
| 625 | 598 | func (x *DateTime) GetDayOfMonth() int { | |
| 626 | 599 | ||
| 627 | 600 | cret := xDateTimeGetDayOfMonth(x.GoPointer()) | |
| 628 | - | ||
| 629 | 601 | return cret | |
| 630 | 602 | } | |
| 631 | 603 | ||
| @@ -636,7 +608,6 @@ var xDateTimeGetDayOfWeek func(uintptr) int | |||
| 636 | 608 | func (x *DateTime) GetDayOfWeek() int { | |
| 637 | 609 | ||
| 638 | 610 | cret := xDateTimeGetDayOfWeek(x.GoPointer()) | |
| 639 | - | ||
| 640 | 611 | return cret | |
| 641 | 612 | } | |
| 642 | 613 | ||
| @@ -647,7 +618,6 @@ var xDateTimeGetDayOfYear func(uintptr) int | |||
| 647 | 618 | func (x *DateTime) GetDayOfYear() int { | |
| 648 | 619 | ||
| 649 | 620 | cret := xDateTimeGetDayOfYear(x.GoPointer()) | |
| 650 | - | ||
| 651 | 621 | return cret | |
| 652 | 622 | } | |
| 653 | 623 | ||
| @@ -657,7 +627,6 @@ var xDateTimeGetHour func(uintptr) int | |||
| 657 | 627 | func (x *DateTime) GetHour() int { | |
| 658 | 628 | ||
| 659 | 629 | cret := xDateTimeGetHour(x.GoPointer()) | |
| 660 | - | ||
| 661 | 630 | return cret | |
| 662 | 631 | } | |
| 663 | 632 | ||
| @@ -667,7 +636,6 @@ var xDateTimeGetMicrosecond func(uintptr) int | |||
| 667 | 636 | func (x *DateTime) GetMicrosecond() int { | |
| 668 | 637 | ||
| 669 | 638 | cret := xDateTimeGetMicrosecond(x.GoPointer()) | |
| 670 | - | ||
| 671 | 639 | return cret | |
| 672 | 640 | } | |
| 673 | 641 | ||
| @@ -677,7 +645,6 @@ var xDateTimeGetMinute func(uintptr) int | |||
| 677 | 645 | func (x *DateTime) GetMinute() int { | |
| 678 | 646 | ||
| 679 | 647 | cret := xDateTimeGetMinute(x.GoPointer()) | |
| 680 | - | ||
| 681 | 648 | return cret | |
| 682 | 649 | } | |
| 683 | 650 | ||
| @@ -688,7 +655,6 @@ var xDateTimeGetMonth func(uintptr) int | |||
| 688 | 655 | func (x *DateTime) GetMonth() int { | |
| 689 | 656 | ||
| 690 | 657 | cret := xDateTimeGetMonth(x.GoPointer()) | |
| 691 | - | ||
| 692 | 658 | return cret | |
| 693 | 659 | } | |
| 694 | 660 | ||
| @@ -698,7 +664,6 @@ var xDateTimeGetSecond func(uintptr) int | |||
| 698 | 664 | func (x *DateTime) GetSecond() int { | |
| 699 | 665 | ||
| 700 | 666 | cret := xDateTimeGetSecond(x.GoPointer()) | |
| 701 | - | ||
| 702 | 667 | return cret | |
| 703 | 668 | } | |
| 704 | 669 | ||
| @@ -709,7 +674,6 @@ var xDateTimeGetSeconds func(uintptr) float64 | |||
| 709 | 674 | func (x *DateTime) GetSeconds() float64 { | |
| 710 | 675 | ||
| 711 | 676 | cret := xDateTimeGetSeconds(x.GoPointer()) | |
| 712 | - | ||
| 713 | 677 | return cret | |
| 714 | 678 | } | |
| 715 | 679 | ||
| @@ -719,7 +683,6 @@ var xDateTimeGetTimezone func(uintptr) *TimeZone | |||
| 719 | 683 | func (x *DateTime) GetTimezone() *TimeZone { | |
| 720 | 684 | ||
| 721 | 685 | cret := xDateTimeGetTimezone(x.GoPointer()) | |
| 722 | - | ||
| 723 | 686 | return cret | |
| 724 | 687 | } | |
| 725 | 688 | ||
| @@ -734,7 +697,6 @@ var xDateTimeGetTimezoneAbbreviation func(uintptr) string | |||
| 734 | 697 | func (x *DateTime) GetTimezoneAbbreviation() string { | |
| 735 | 698 | ||
| 736 | 699 | cret := xDateTimeGetTimezoneAbbreviation(x.GoPointer()) | |
| 737 | - | ||
| 738 | 700 | return cret | |
| 739 | 701 | } | |
| 740 | 702 | ||
| @@ -751,7 +713,6 @@ var xDateTimeGetUtcOffset func(uintptr) TimeSpan | |||
| 751 | 713 | func (x *DateTime) GetUtcOffset() TimeSpan { | |
| 752 | 714 | ||
| 753 | 715 | cret := xDateTimeGetUtcOffset(x.GoPointer()) | |
| 754 | - | ||
| 755 | 716 | return cret | |
| 756 | 717 | } | |
| 757 | 718 | ||
| @@ -791,7 +752,6 @@ var xDateTimeGetWeekNumberingYear func(uintptr) int | |||
| 791 | 752 | func (x *DateTime) GetWeekNumberingYear() int { | |
| 792 | 753 | ||
| 793 | 754 | cret := xDateTimeGetWeekNumberingYear(x.GoPointer()) | |
| 794 | - | ||
| 795 | 755 | return cret | |
| 796 | 756 | } | |
| 797 | 757 | ||
| @@ -815,7 +775,6 @@ var xDateTimeGetWeekOfYear func(uintptr) int | |||
| 815 | 775 | func (x *DateTime) GetWeekOfYear() int { | |
| 816 | 776 | ||
| 817 | 777 | cret := xDateTimeGetWeekOfYear(x.GoPointer()) | |
| 818 | - | ||
| 819 | 778 | return cret | |
| 820 | 779 | } | |
| 821 | 780 | ||
| @@ -825,7 +784,6 @@ var xDateTimeGetYear func(uintptr) int | |||
| 825 | 784 | func (x *DateTime) GetYear() int { | |
| 826 | 785 | ||
| 827 | 786 | cret := xDateTimeGetYear(x.GoPointer()) | |
| 828 | - | ||
| 829 | 787 | return cret | |
| 830 | 788 | } | |
| 831 | 789 | ||
| @@ -844,7 +802,6 @@ var xDateTimeHash func(uintptr) uint | |||
| 844 | 802 | func (x *DateTime) Hash() uint { | |
| 845 | 803 | ||
| 846 | 804 | cret := xDateTimeHash(x.GoPointer()) | |
| 847 | - | ||
| 848 | 805 | return cret | |
| 849 | 806 | } | |
| 850 | 807 | ||
| @@ -855,7 +812,6 @@ var xDateTimeIsDaylightSavings func(uintptr) bool | |||
| 855 | 812 | func (x *DateTime) IsDaylightSavings() bool { | |
| 856 | 813 | ||
| 857 | 814 | cret := xDateTimeIsDaylightSavings(x.GoPointer()) | |
| 858 | - | ||
| 859 | 815 | return cret | |
| 860 | 816 | } | |
| 861 | 817 | ||
| @@ -865,7 +821,6 @@ var xDateTimeRef func(uintptr) *DateTime | |||
| 865 | 821 | func (x *DateTime) Ref() *DateTime { | |
| 866 | 822 | ||
| 867 | 823 | cret := xDateTimeRef(x.GoPointer()) | |
| 868 | - | ||
| 869 | 824 | return cret | |
| 870 | 825 | } | |
| 871 | 826 | ||
| @@ -879,7 +834,6 @@ var xDateTimeToLocal func(uintptr) *DateTime | |||
| 879 | 834 | func (x *DateTime) ToLocal() *DateTime { | |
| 880 | 835 | ||
| 881 | 836 | cret := xDateTimeToLocal(x.GoPointer()) | |
| 882 | - | ||
| 883 | 837 | return cret | |
| 884 | 838 | } | |
| 885 | 839 | ||
| @@ -901,7 +855,6 @@ var xDateTimeToTimeval func(uintptr, *TimeVal) bool | |||
| 901 | 855 | func (x *DateTime) ToTimeval(TvVar *TimeVal) bool { | |
| 902 | 856 | ||
| 903 | 857 | cret := xDateTimeToTimeval(x.GoPointer(), TvVar) | |
| 904 | - | ||
| 905 | 858 | return cret | |
| 906 | 859 | } | |
| 907 | 860 | ||
| @@ -916,7 +869,6 @@ var xDateTimeToTimezone func(uintptr, *TimeZone) *DateTime | |||
| 916 | 869 | func (x *DateTime) ToTimezone(TzVar *TimeZone) *DateTime { | |
| 917 | 870 | ||
| 918 | 871 | cret := xDateTimeToTimezone(x.GoPointer(), TzVar) | |
| 919 | - | ||
| 920 | 872 | return cret | |
| 921 | 873 | } | |
| 922 | 874 | ||
| @@ -930,7 +882,6 @@ var xDateTimeToUnix func(uintptr) int64 | |||
| 930 | 882 | func (x *DateTime) ToUnix() int64 { | |
| 931 | 883 | ||
| 932 | 884 | cret := xDateTimeToUnix(x.GoPointer()) | |
| 933 | - | ||
| 934 | 885 | return cret | |
| 935 | 886 | } | |
| 936 | 887 | ||
| @@ -943,7 +894,6 @@ var xDateTimeToUnixUsec func(uintptr) int64 | |||
| 943 | 894 | func (x *DateTime) ToUnixUsec() int64 { | |
| 944 | 895 | ||
| 945 | 896 | cret := xDateTimeToUnixUsec(x.GoPointer()) | |
| 946 | - | ||
| 947 | 897 | return cret | |
| 948 | 898 | } | |
| 949 | 899 | ||
| @@ -957,7 +907,6 @@ var xDateTimeToUtc func(uintptr) *DateTime | |||
| 957 | 907 | func (x *DateTime) ToUtc() *DateTime { | |
| 958 | 908 | ||
| 959 | 909 | cret := xDateTimeToUtc(x.GoPointer()) | |
| 960 | - | ||
| 961 | 910 | return cret | |
| 962 | 911 | } | |
| 963 | 912 | ||
M v4/glib/gdir.go +0 -3
| @@ -34,7 +34,6 @@ func DirOpen(PathVar string, FlagsVar uint) (*Dir, error) { | |||
| 34 | 34 | var cerr *Error | |
| 35 | 35 | ||
| 36 | 36 | cret := xDirOpen(PathVar, FlagsVar, &cerr) | |
| 37 | - | ||
| 38 | 37 | if cerr == nil { | |
| 39 | 38 | return cret, nil | |
| 40 | 39 | } | |
| @@ -76,7 +75,6 @@ var xDirReadName func(uintptr) string | |||
| 76 | 75 | func (x *Dir) ReadName() string { | |
| 77 | 76 | ||
| 78 | 77 | cret := xDirReadName(x.GoPointer()) | |
| 79 | - | ||
| 80 | 78 | return cret | |
| 81 | 79 | } | |
| 82 | 80 | ||
| @@ -86,7 +84,6 @@ var xDirRef func(uintptr) *Dir | |||
| 86 | 84 | func (x *Dir) Ref() *Dir { | |
| 87 | 85 | ||
| 88 | 86 | cret := xDirRef(x.GoPointer()) | |
| 89 | - | ||
| 90 | 87 | return cret | |
| 91 | 88 | } | |
| 92 | 89 | ||
M v4/glib/genviron.go +0 -7
| @@ -13,7 +13,6 @@ var xEnvironGetenv func([]string, string) string | |||
| 13 | 13 | func EnvironGetenv(EnvpVar []string, VariableVar string) string { | |
| 14 | 14 | ||
| 15 | 15 | cret := xEnvironGetenv(EnvpVar, VariableVar) | |
| 16 | - | ||
| 17 | 16 | return cret | |
| 18 | 17 | } | |
| 19 | 18 | ||
| @@ -24,7 +23,6 @@ var xEnvironSetenv func([]string, string, string, bool) []string | |||
| 24 | 23 | func EnvironSetenv(EnvpVar []string, VariableVar string, ValueVar string, OverwriteVar bool) []string { | |
| 25 | 24 | ||
| 26 | 25 | cret := xEnvironSetenv(EnvpVar, VariableVar, ValueVar, OverwriteVar) | |
| 27 | - | ||
| 28 | 26 | return cret | |
| 29 | 27 | } | |
| 30 | 28 | ||
| @@ -35,7 +33,6 @@ var xEnvironUnsetenv func([]string, string) []string | |||
| 35 | 33 | func EnvironUnsetenv(EnvpVar []string, VariableVar string) []string { | |
| 36 | 34 | ||
| 37 | 35 | cret := xEnvironUnsetenv(EnvpVar, VariableVar) | |
| 38 | - | ||
| 39 | 36 | return cret | |
| 40 | 37 | } | |
| 41 | 38 | ||
| @@ -54,7 +51,6 @@ var xGetEnviron func() []string | |||
| 54 | 51 | func GetEnviron() []string { | |
| 55 | 52 | ||
| 56 | 53 | cret := xGetEnviron() | |
| 57 | - | ||
| 58 | 54 | return cret | |
| 59 | 55 | } | |
| 60 | 56 | ||
| @@ -70,7 +66,6 @@ var xGetenv func(string) string | |||
| 70 | 66 | func Getenv(VariableVar string) string { | |
| 71 | 67 | ||
| 72 | 68 | cret := xGetenv(VariableVar) | |
| 73 | - | ||
| 74 | 69 | return cret | |
| 75 | 70 | } | |
| 76 | 71 | ||
| @@ -87,7 +82,6 @@ var xListenv func() []string | |||
| 87 | 82 | func Listenv() []string { | |
| 88 | 83 | ||
| 89 | 84 | cret := xListenv() | |
| 90 | - | ||
| 91 | 85 | return cret | |
| 92 | 86 | } | |
| 93 | 87 | ||
| @@ -115,7 +109,6 @@ var xSetenv func(string, string, bool) bool | |||
| 115 | 109 | func Setenv(VariableVar string, ValueVar string, OverwriteVar bool) bool { | |
| 116 | 110 | ||
| 117 | 111 | cret := xSetenv(VariableVar, ValueVar, OverwriteVar) | |
| 118 | - | ||
| 119 | 112 | return cret | |
| 120 | 113 | } | |
| 121 | 114 | ||
M v4/glib/gerror.go +0 -8
| @@ -66,7 +66,6 @@ var xNewError func(Quark, int, string, ...interface{}) *Error | |||
| 66 | 66 | func NewError(DomainVar Quark, CodeVar int, FormatVar string, varArgs ...interface{}) *Error { | |
| 67 | 67 | ||
| 68 | 68 | cret := xNewError(DomainVar, CodeVar, FormatVar, varArgs...) | |
| 69 | - | ||
| 70 | 69 | return cret | |
| 71 | 70 | } | |
| 72 | 71 | ||
| @@ -79,7 +78,6 @@ var xNewErrorLiteral func(Quark, int, string) *Error | |||
| 79 | 78 | func NewErrorLiteral(DomainVar Quark, CodeVar int, MessageVar string) *Error { | |
| 80 | 79 | ||
| 81 | 80 | cret := xNewErrorLiteral(DomainVar, CodeVar, MessageVar) | |
| 82 | - | ||
| 83 | 81 | return cret | |
| 84 | 82 | } | |
| 85 | 83 | ||
| @@ -90,7 +88,6 @@ var xNewErrorValist func(Quark, int, string, []interface{}) *Error | |||
| 90 | 88 | func NewErrorValist(DomainVar Quark, CodeVar int, FormatVar string, ArgsVar []interface{}) *Error { | |
| 91 | 89 | ||
| 92 | 90 | cret := xNewErrorValist(DomainVar, CodeVar, FormatVar, ArgsVar) | |
| 93 | - | ||
| 94 | 91 | return cret | |
| 95 | 92 | } | |
| 96 | 93 | ||
| @@ -100,7 +97,6 @@ var xErrorCopy func(uintptr) *Error | |||
| 100 | 97 | func (x *Error) Copy() *Error { | |
| 101 | 98 | ||
| 102 | 99 | cret := xErrorCopy(x.GoPointer()) | |
| 103 | - | ||
| 104 | 100 | return cret | |
| 105 | 101 | } | |
| 106 | 102 | ||
| @@ -128,7 +124,6 @@ var xErrorMatches func(uintptr, Quark, int) bool | |||
| 128 | 124 | func (x *Error) Matches(DomainVar Quark, CodeVar int) bool { | |
| 129 | 125 | ||
| 130 | 126 | cret := xErrorMatches(x.GoPointer(), DomainVar, CodeVar) | |
| 131 | - | ||
| 132 | 127 | return cret | |
| 133 | 128 | } | |
| 134 | 129 | ||
| @@ -140,7 +135,6 @@ func ClearError() error { | |||
| 140 | 135 | var cerr *Error | |
| 141 | 136 | ||
| 142 | 137 | xClearError() | |
| 143 | - | ||
| 144 | 138 | if cerr == nil { | |
| 145 | 139 | return nil | |
| 146 | 140 | } | |
| @@ -201,7 +195,6 @@ func ErrorDomainRegister(ErrorTypeNameVar string, ErrorTypePrivateSizeVar uint, | |||
| 201 | 195 | } | |
| 202 | 196 | ||
| 203 | 197 | cret := xErrorDomainRegister(ErrorTypeNameVar, ErrorTypePrivateSizeVar, ErrorTypeInitVarRef, ErrorTypeCopyVarRef, ErrorTypeClearVarRef) | |
| 204 | - | ||
| 205 | 198 | return cret | |
| 206 | 199 | } | |
| 207 | 200 | ||
| @@ -272,7 +265,6 @@ func ErrorDomainRegisterStatic(ErrorTypeNameVar string, ErrorTypePrivateSizeVar | |||
| 272 | 265 | } | |
| 273 | 266 | ||
| 274 | 267 | cret := xErrorDomainRegisterStatic(ErrorTypeNameVar, ErrorTypePrivateSizeVar, ErrorTypeInitVarRef, ErrorTypeCopyVarRef, ErrorTypeClearVarRef) | |
| 275 | - | ||
| 276 | 268 | return cret | |
| 277 | 269 | } | |
| 278 | 270 | ||
M v4/glib/gfileutils.go +6 -36
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | ) | |
| @@ -174,7 +172,6 @@ var xBasename func(string) string | |||
| 174 | 172 | func Basename(FileNameVar string) string { | |
| 175 | 173 | ||
| 176 | 174 | cret := xBasename(FileNameVar) | |
| 177 | - | ||
| 178 | 175 | return cret | |
| 179 | 176 | } | |
| 180 | 177 | ||
| @@ -201,7 +198,6 @@ var xBuildFilename func(string, ...interface{}) string | |||
| 201 | 198 | func BuildFilename(FirstElementVar string, varArgs ...interface{}) string { | |
| 202 | 199 | ||
| 203 | 200 | cret := xBuildFilename(FirstElementVar, varArgs...) | |
| 204 | - | ||
| 205 | 201 | return cret | |
| 206 | 202 | } | |
| 207 | 203 | ||
| @@ -218,7 +214,6 @@ var xBuildFilenameValist func(string, []interface{}) string | |||
| 218 | 214 | func BuildFilenameValist(FirstElementVar string, ArgsVar []interface{}) string { | |
| 219 | 215 | ||
| 220 | 216 | cret := xBuildFilenameValist(FirstElementVar, ArgsVar) | |
| 221 | - | ||
| 222 | 217 | return cret | |
| 223 | 218 | } | |
| 224 | 219 | ||
| @@ -236,7 +231,6 @@ var xBuildFilenamev func([]string) string | |||
| 236 | 231 | func BuildFilenamev(ArgsVar []string) string { | |
| 237 | 232 | ||
| 238 | 233 | cret := xBuildFilenamev(ArgsVar) | |
| 239 | - | ||
| 240 | 234 | return cret | |
| 241 | 235 | } | |
| 242 | 236 | ||
| @@ -273,7 +267,6 @@ var xBuildPath func(string, string, ...interface{}) string | |||
| 273 | 267 | func BuildPath(SeparatorVar string, FirstElementVar string, varArgs ...interface{}) string { | |
| 274 | 268 | ||
| 275 | 269 | cret := xBuildPath(SeparatorVar, FirstElementVar, varArgs...) | |
| 276 | - | ||
| 277 | 270 | return cret | |
| 278 | 271 | } | |
| 279 | 272 | ||
| @@ -286,7 +279,6 @@ var xBuildPathv func(string, []string) string | |||
| 286 | 279 | func BuildPathv(SeparatorVar string, ArgsVar []string) string { | |
| 287 | 280 | ||
| 288 | 281 | cret := xBuildPathv(SeparatorVar, ArgsVar) | |
| 289 | - | ||
| 290 | 282 | return cret | |
| 291 | 283 | } | |
| 292 | 284 | ||
| @@ -308,12 +300,10 @@ var xCanonicalizeFilename func(string, uintptr) string | |||
| 308 | 300 | // No file system I/O is done. | |
| 309 | 301 | func CanonicalizeFilename(FilenameVar string, RelativeToVar *string) string { | |
| 310 | 302 | ||
| 311 | - | RelativeToVarPtr, RelativeToVarBytes := core.NullableStringToPtr(RelativeToVar) | |
| 303 | + | RelativeToVarPtr := core.GStrdupNullable(RelativeToVar) | |
| 304 | + | defer core.GFreeNullable(RelativeToVarPtr) | |
| 312 | 305 | ||
| 313 | 306 | cret := xCanonicalizeFilename(FilenameVar, RelativeToVarPtr) | |
| 314 | - | ||
| 315 | - | runtime.KeepAlive(RelativeToVarBytes) | |
| 316 | - | ||
| 317 | 307 | return cret | |
| 318 | 308 | } | |
| 319 | 309 | ||
| @@ -333,12 +323,10 @@ var xDirMakeTmp func(uintptr, **Error) string | |||
| 333 | 323 | func DirMakeTmp(TmplVar *string) (string, error) { | |
| 334 | 324 | var cerr *Error | |
| 335 | 325 | ||
| 336 | - | TmplVarPtr, TmplVarBytes := core.NullableStringToPtr(TmplVar) | |
| 326 | + | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| 327 | + | defer core.GFreeNullable(TmplVarPtr) | |
| 337 | 328 | ||
| 338 | 329 | cret := xDirMakeTmp(TmplVarPtr, &cerr) | |
| 339 | - | ||
| 340 | - | runtime.KeepAlive(TmplVarBytes) | |
| 341 | - | ||
| 342 | 330 | if cerr == nil { | |
| 343 | 331 | return cret, nil | |
| 344 | 332 | } | |
| @@ -360,7 +348,6 @@ var xFileErrorFromErrno func(int) FileError | |||
| 360 | 348 | func FileErrorFromErrno(ErrNoVar int) FileError { | |
| 361 | 349 | ||
| 362 | 350 | cret := xFileErrorFromErrno(ErrNoVar) | |
| 363 | - | ||
| 364 | 351 | return cret | |
| 365 | 352 | } | |
| 366 | 353 | ||
| @@ -380,7 +367,6 @@ func FileGetContents(FilenameVar string, ContentsVar *[]byte, LengthVar *uint) ( | |||
| 380 | 367 | var cerr *Error | |
| 381 | 368 | ||
| 382 | 369 | cret := xFileGetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| 383 | - | ||
| 384 | 370 | if cerr == nil { | |
| 385 | 371 | return cret, nil | |
| 386 | 372 | } | |
| @@ -409,12 +395,10 @@ var xFileOpenTmp func(uintptr, *string, **Error) int | |||
| 409 | 395 | func FileOpenTmp(TmplVar *string, NameUsedVar *string) (int, error) { | |
| 410 | 396 | var cerr *Error | |
| 411 | 397 | ||
| 412 | - | TmplVarPtr, TmplVarBytes := core.NullableStringToPtr(TmplVar) | |
| 398 | + | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| 399 | + | defer core.GFreeNullable(TmplVarPtr) | |
| 413 | 400 | ||
| 414 | 401 | cret := xFileOpenTmp(TmplVarPtr, NameUsedVar, &cerr) | |
| 415 | - | ||
| 416 | - | runtime.KeepAlive(TmplVarBytes) | |
| 417 | - | ||
| 418 | 402 | if cerr == nil { | |
| 419 | 403 | return cret, nil | |
| 420 | 404 | } | |
| @@ -454,7 +438,6 @@ func FileReadLink(FilenameVar string) (string, error) { | |||
| 454 | 438 | var cerr *Error | |
| 455 | 439 | ||
| 456 | 440 | cret := xFileReadLink(FilenameVar, &cerr) | |
| 457 | - | ||
| 458 | 441 | if cerr == nil { | |
| 459 | 442 | return cret, nil | |
| 460 | 443 | } | |
| @@ -472,7 +455,6 @@ func FileSetContents(FilenameVar string, ContentsVar []byte, LengthVar int) (boo | |||
| 472 | 455 | var cerr *Error | |
| 473 | 456 | ||
| 474 | 457 | cret := xFileSetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| 475 | - | ||
| 476 | 458 | if cerr == nil { | |
| 477 | 459 | return cret, nil | |
| 478 | 460 | } | |
| @@ -540,7 +522,6 @@ func FileSetContentsFull(FilenameVar string, ContentsVar []byte, LengthVar int, | |||
| 540 | 522 | var cerr *Error | |
| 541 | 523 | ||
| 542 | 524 | cret := xFileSetContentsFull(FilenameVar, ContentsVar, LengthVar, FlagsVar, ModeVar, &cerr) | |
| 543 | - | ||
| 544 | 525 | if cerr == nil { | |
| 545 | 526 | return cret, nil | |
| 546 | 527 | } | |
| @@ -614,7 +595,6 @@ var xNewFileTest func(string, FileTest) bool | |||
| 614 | 595 | func NewFileTest(FilenameVar string, TestVar FileTest) bool { | |
| 615 | 596 | ||
| 616 | 597 | cret := xNewFileTest(FilenameVar, TestVar) | |
| 617 | - | ||
| 618 | 598 | return cret | |
| 619 | 599 | } | |
| 620 | 600 | ||
| @@ -633,7 +613,6 @@ var xGetCurrentDir func() string | |||
| 633 | 613 | func GetCurrentDir() string { | |
| 634 | 614 | ||
| 635 | 615 | cret := xGetCurrentDir() | |
| 636 | - | ||
| 637 | 616 | return cret | |
| 638 | 617 | } | |
| 639 | 618 | ||
| @@ -644,7 +623,6 @@ var xMkdirWithParents func(string, int) int | |||
| 644 | 623 | func MkdirWithParents(PathnameVar string, ModeVar int) int { | |
| 645 | 624 | ||
| 646 | 625 | cret := xMkdirWithParents(PathnameVar, ModeVar) | |
| 647 | - | ||
| 648 | 626 | return cret | |
| 649 | 627 | } | |
| 650 | 628 | ||
| @@ -669,7 +647,6 @@ var xMkdtemp func(string) string | |||
| 669 | 647 | func Mkdtemp(TmplVar string) string { | |
| 670 | 648 | ||
| 671 | 649 | cret := xMkdtemp(TmplVar) | |
| 672 | - | ||
| 673 | 650 | return cret | |
| 674 | 651 | } | |
| 675 | 652 | ||
| @@ -694,7 +671,6 @@ var xMkdtempFull func(string, int) string | |||
| 694 | 671 | func MkdtempFull(TmplVar string, ModeVar int) string { | |
| 695 | 672 | ||
| 696 | 673 | cret := xMkdtempFull(TmplVar, ModeVar) | |
| 697 | - | ||
| 698 | 674 | return cret | |
| 699 | 675 | } | |
| 700 | 676 | ||
| @@ -714,7 +690,6 @@ var xMkstemp func(string) int | |||
| 714 | 690 | func Mkstemp(TmplVar string) int { | |
| 715 | 691 | ||
| 716 | 692 | cret := xMkstemp(TmplVar) | |
| 717 | - | ||
| 718 | 693 | return cret | |
| 719 | 694 | } | |
| 720 | 695 | ||
| @@ -735,7 +710,6 @@ var xMkstempFull func(string, int, int) int | |||
| 735 | 710 | func MkstempFull(TmplVar string, FlagsVar int, ModeVar int) int { | |
| 736 | 711 | ||
| 737 | 712 | cret := xMkstempFull(TmplVar, FlagsVar, ModeVar) | |
| 738 | - | ||
| 739 | 713 | return cret | |
| 740 | 714 | } | |
| 741 | 715 | ||
| @@ -750,7 +724,6 @@ var xPathGetBasename func(string) string | |||
| 750 | 724 | func PathGetBasename(FileNameVar string) string { | |
| 751 | 725 | ||
| 752 | 726 | cret := xPathGetBasename(FileNameVar) | |
| 753 | - | ||
| 754 | 727 | return cret | |
| 755 | 728 | } | |
| 756 | 729 | ||
| @@ -765,7 +738,6 @@ var xPathGetDirname func(string) string | |||
| 765 | 738 | func PathGetDirname(FileNameVar string) string { | |
| 766 | 739 | ||
| 767 | 740 | cret := xPathGetDirname(FileNameVar) | |
| 768 | - | ||
| 769 | 741 | return cret | |
| 770 | 742 | } | |
| 771 | 743 | ||
| @@ -798,7 +770,6 @@ var xPathIsAbsolute func(string) bool | |||
| 798 | 770 | func PathIsAbsolute(FileNameVar string) bool { | |
| 799 | 771 | ||
| 800 | 772 | cret := xPathIsAbsolute(FileNameVar) | |
| 801 | - | ||
| 802 | 773 | return cret | |
| 803 | 774 | } | |
| 804 | 775 | ||
| @@ -810,7 +781,6 @@ var xPathSkipRoot func(string) string | |||
| 810 | 781 | func PathSkipRoot(FileNameVar string) string { | |
| 811 | 782 | ||
| 812 | 783 | cret := xPathSkipRoot(FileNameVar) | |
| 813 | - | ||
| 814 | 784 | return cret | |
| 815 | 785 | } | |
| 816 | 786 | ||
M v4/glib/ggettext.go +10 -23
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | - | ||
| 7 | 5 | "github.com/jwijenbergh/purego" | |
| 8 | 6 | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 7 | ) | |
| @@ -16,12 +14,10 @@ var xDcgettext func(uintptr, string, int) string | |||
| 16 | 14 | // dcgettext() directly. | |
| 17 | 15 | func Dcgettext(DomainVar *string, MsgidVar string, CategoryVar int) string { | |
| 18 | 16 | ||
| 19 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 17 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 18 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 20 | 19 | ||
| 21 | 20 | cret := xDcgettext(DomainVarPtr, MsgidVar, CategoryVar) | |
| 22 | - | ||
| 23 | - | runtime.KeepAlive(DomainVarBytes) | |
| 24 | - | ||
| 25 | 21 | return cret | |
| 26 | 22 | } | |
| 27 | 23 | ||
| @@ -61,12 +57,10 @@ var xDgettext func(uintptr, string) string | |||
| 61 | 57 | // but use the _() macro for translations. | |
| 62 | 58 | func Dgettext(DomainVar *string, MsgidVar string) string { | |
| 63 | 59 | ||
| 64 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 60 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 61 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 65 | 62 | ||
| 66 | 63 | cret := xDgettext(DomainVarPtr, MsgidVar) | |
| 67 | - | ||
| 68 | - | runtime.KeepAlive(DomainVarBytes) | |
| 69 | - | ||
| 70 | 64 | return cret | |
| 71 | 65 | } | |
| 72 | 66 | ||
| @@ -80,12 +74,10 @@ var xDngettext func(uintptr, string, string, uint) string | |||
| 80 | 74 | // proper. | |
| 81 | 75 | func Dngettext(DomainVar *string, MsgidVar string, MsgidPluralVar string, NVar uint) string { | |
| 82 | 76 | ||
| 83 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 77 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 78 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 84 | 79 | ||
| 85 | 80 | cret := xDngettext(DomainVarPtr, MsgidVar, MsgidPluralVar, NVar) | |
| 86 | - | ||
| 87 | - | runtime.KeepAlive(DomainVarBytes) | |
| 88 | - | ||
| 89 | 81 | return cret | |
| 90 | 82 | } | |
| 91 | 83 | ||
| @@ -106,12 +98,10 @@ var xDpgettext func(uintptr, string, uint) string | |||
| 106 | 98 | // but use the C_() macro for translations with context. | |
| 107 | 99 | func Dpgettext(DomainVar *string, MsgctxtidVar string, MsgidoffsetVar uint) string { | |
| 108 | 100 | ||
| 109 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 101 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 102 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 110 | 103 | ||
| 111 | 104 | cret := xDpgettext(DomainVarPtr, MsgctxtidVar, MsgidoffsetVar) | |
| 112 | - | ||
| 113 | - | runtime.KeepAlive(DomainVarBytes) | |
| 114 | - | ||
| 115 | 105 | return cret | |
| 116 | 106 | } | |
| 117 | 107 | ||
| @@ -129,12 +119,10 @@ var xDpgettext2 func(uintptr, string, string) string | |||
| 129 | 119 | // thus you may use non-string-literals as context and msgid arguments. | |
| 130 | 120 | func Dpgettext2(DomainVar *string, ContextVar string, MsgidVar string) string { | |
| 131 | 121 | ||
| 132 | - | DomainVarPtr, DomainVarBytes := core.NullableStringToPtr(DomainVar) | |
| 122 | + | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 123 | + | defer core.GFreeNullable(DomainVarPtr) | |
| 133 | 124 | ||
| 134 | 125 | cret := xDpgettext2(DomainVarPtr, ContextVar, MsgidVar) | |
| 135 | - | ||
| 136 | - | runtime.KeepAlive(DomainVarBytes) | |
| 137 | - | ||
| 138 | 126 | return cret | |
| 139 | 127 | } | |
| 140 | 128 | ||
| @@ -144,7 +132,6 @@ var xStripContext func(string, string) string | |||
| 144 | 132 | func StripContext(MsgidVar string, MsgvalVar string) string { | |
| 145 | 133 | ||
| 146 | 134 | cret := xStripContext(MsgidVar, MsgvalVar) | |
| 147 | - | ||
| 148 | 135 | return cret | |
| 149 | 136 | } | |
| 150 | 137 | ||
M v4/glib/ghash.go +0 -31
| @@ -72,7 +72,6 @@ var xHashTableIterGetHashTable func(uintptr) *HashTable | |||
| 72 | 72 | func (x *HashTableIter) GetHashTable() *HashTable { | |
| 73 | 73 | ||
| 74 | 74 | cret := xHashTableIterGetHashTable(x.GoPointer()) | |
| 75 | - | ||
| 76 | 75 | return cret | |
| 77 | 76 | } | |
| 78 | 77 | ||
| @@ -111,7 +110,6 @@ var xHashTableIterNext func(uintptr, *uintptr, *uintptr) bool | |||
| 111 | 110 | func (x *HashTableIter) Next(KeyVar *uintptr, ValueVar *uintptr) bool { | |
| 112 | 111 | ||
| 113 | 112 | cret := xHashTableIterNext(x.GoPointer(), KeyVar, ValueVar) | |
| 114 | - | ||
| 115 | 113 | return cret | |
| 116 | 114 | } | |
| 117 | 115 | ||
| @@ -182,7 +180,6 @@ var xDirectEqual func(uintptr, uintptr) bool | |||
| 182 | 180 | func DirectEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 183 | 181 | ||
| 184 | 182 | cret := xDirectEqual(V1Var, V2Var) | |
| 185 | - | ||
| 186 | 183 | return cret | |
| 187 | 184 | } | |
| 188 | 185 | ||
| @@ -198,7 +195,6 @@ var xDirectHash func(uintptr) uint | |||
| 198 | 195 | func DirectHash(VVar uintptr) uint { | |
| 199 | 196 | ||
| 200 | 197 | cret := xDirectHash(VVar) | |
| 201 | - | ||
| 202 | 198 | return cret | |
| 203 | 199 | } | |
| 204 | 200 | ||
| @@ -212,7 +208,6 @@ var xDoubleEqual func(uintptr, uintptr) bool | |||
| 212 | 208 | func DoubleEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 213 | 209 | ||
| 214 | 210 | cret := xDoubleEqual(V1Var, V2Var) | |
| 215 | - | ||
| 216 | 211 | return cret | |
| 217 | 212 | } | |
| 218 | 213 | ||
| @@ -225,7 +220,6 @@ var xDoubleHash func(uintptr) uint | |||
| 225 | 220 | func DoubleHash(VVar uintptr) uint { | |
| 226 | 221 | ||
| 227 | 222 | cret := xDoubleHash(VVar) | |
| 228 | - | ||
| 229 | 223 | return cret | |
| 230 | 224 | } | |
| 231 | 225 | ||
| @@ -249,7 +243,6 @@ var xHashTableAdd func(*HashTable, uintptr) bool | |||
| 249 | 243 | func HashTableAdd(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 250 | 244 | ||
| 251 | 245 | cret := xHashTableAdd(HashTableVar, KeyVar) | |
| 252 | - | ||
| 253 | 246 | return cret | |
| 254 | 247 | } | |
| 255 | 248 | ||
| @@ -259,7 +252,6 @@ var xHashTableContains func(*HashTable, uintptr) bool | |||
| 259 | 252 | func HashTableContains(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 260 | 253 | ||
| 261 | 254 | cret := xHashTableContains(HashTableVar, KeyVar) | |
| 262 | - | ||
| 263 | 255 | return cret | |
| 264 | 256 | } | |
| 265 | 257 | ||
| @@ -310,7 +302,6 @@ func HashTableFind(HashTableVar *HashTable, PredicateVar *HRFunc, UserDataVar ui | |||
| 310 | 302 | } | |
| 311 | 303 | ||
| 312 | 304 | cret := xHashTableFind(HashTableVar, PredicateVarRef, UserDataVar) | |
| 313 | - | ||
| 314 | 305 | return cret | |
| 315 | 306 | } | |
| 316 | 307 | ||
| @@ -377,7 +368,6 @@ func HashTableForeachRemove(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVa | |||
| 377 | 368 | } | |
| 378 | 369 | ||
| 379 | 370 | cret := xHashTableForeachRemove(HashTableVar, FuncVarRef, UserDataVar) | |
| 380 | - | ||
| 381 | 371 | return cret | |
| 382 | 372 | } | |
| 383 | 373 | ||
| @@ -408,7 +398,6 @@ func HashTableForeachSteal(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar | |||
| 408 | 398 | } | |
| 409 | 399 | ||
| 410 | 400 | cret := xHashTableForeachSteal(HashTableVar, FuncVarRef, UserDataVar) | |
| 411 | - | ||
| 412 | 401 | return cret | |
| 413 | 402 | } | |
| 414 | 403 | ||
| @@ -425,7 +414,6 @@ var xHashTableGetKeysAsPtrArray func(*HashTable) uintptr | |||
| 425 | 414 | func HashTableGetKeysAsPtrArray(HashTableVar *HashTable) uintptr { | |
| 426 | 415 | ||
| 427 | 416 | cret := xHashTableGetKeysAsPtrArray(HashTableVar) | |
| 428 | - | ||
| 429 | 417 | return cret | |
| 430 | 418 | } | |
| 431 | 419 | ||
| @@ -442,7 +430,6 @@ var xHashTableGetValuesAsPtrArray func(*HashTable) uintptr | |||
| 442 | 430 | func HashTableGetValuesAsPtrArray(HashTableVar *HashTable) uintptr { | |
| 443 | 431 | ||
| 444 | 432 | cret := xHashTableGetValuesAsPtrArray(HashTableVar) | |
| 445 | - | ||
| 446 | 433 | return cret | |
| 447 | 434 | } | |
| 448 | 435 | ||
| @@ -463,7 +450,6 @@ var xHashTableInsert func(*HashTable, uintptr, uintptr) bool | |||
| 463 | 450 | func HashTableInsert(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | |
| 464 | 451 | ||
| 465 | 452 | cret := xHashTableInsert(HashTableVar, KeyVar, ValueVar) | |
| 466 | - | ||
| 467 | 453 | return cret | |
| 468 | 454 | } | |
| 469 | 455 | ||
| @@ -476,7 +462,6 @@ var xHashTableLookup func(*HashTable, uintptr) uintptr | |||
| 476 | 462 | func HashTableLookup(HashTableVar *HashTable, KeyVar uintptr) uintptr { | |
| 477 | 463 | ||
| 478 | 464 | cret := xHashTableLookup(HashTableVar, KeyVar) | |
| 479 | - | ||
| 480 | 465 | return cret | |
| 481 | 466 | } | |
| 482 | 467 | ||
| @@ -493,7 +478,6 @@ var xHashTableLookupExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||
| 493 | 478 | func HashTableLookupExtended(HashTableVar *HashTable, LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | |
| 494 | 479 | ||
| 495 | 480 | cret := xHashTableLookupExtended(HashTableVar, LookupKeyVar, OrigKeyVar, ValueVar) | |
| 496 | - | ||
| 497 | 481 | return cret | |
| 498 | 482 | } | |
| 499 | 483 | ||
| @@ -510,7 +494,6 @@ var xHashTableNewSimilar func(*HashTable) *HashTable | |||
| 510 | 494 | func HashTableNewSimilar(OtherHashTableVar *HashTable) *HashTable { | |
| 511 | 495 | ||
| 512 | 496 | cret := xHashTableNewSimilar(OtherHashTableVar) | |
| 513 | - | ||
| 514 | 497 | return cret | |
| 515 | 498 | } | |
| 516 | 499 | ||
| @@ -521,7 +504,6 @@ var xHashTableRef func(*HashTable) *HashTable | |||
| 521 | 504 | func HashTableRef(HashTableVar *HashTable) *HashTable { | |
| 522 | 505 | ||
| 523 | 506 | cret := xHashTableRef(HashTableVar) | |
| 524 | - | ||
| 525 | 507 | return cret | |
| 526 | 508 | } | |
| 527 | 509 | ||
| @@ -536,7 +518,6 @@ var xHashTableRemove func(*HashTable, uintptr) bool | |||
| 536 | 518 | func HashTableRemove(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 537 | 519 | ||
| 538 | 520 | cret := xHashTableRemove(HashTableVar, KeyVar) | |
| 539 | - | ||
| 540 | 521 | return cret | |
| 541 | 522 | } | |
| 542 | 523 | ||
| @@ -570,7 +551,6 @@ var xHashTableReplace func(*HashTable, uintptr, uintptr) bool | |||
| 570 | 551 | func HashTableReplace(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | |
| 571 | 552 | ||
| 572 | 553 | cret := xHashTableReplace(HashTableVar, KeyVar, ValueVar) | |
| 573 | - | ||
| 574 | 554 | return cret | |
| 575 | 555 | } | |
| 576 | 556 | ||
| @@ -580,7 +560,6 @@ var xHashTableSize func(*HashTable) uint | |||
| 580 | 560 | func HashTableSize(HashTableVar *HashTable) uint { | |
| 581 | 561 | ||
| 582 | 562 | cret := xHashTableSize(HashTableVar) | |
| 583 | - | ||
| 584 | 563 | return cret | |
| 585 | 564 | } | |
| 586 | 565 | ||
| @@ -591,7 +570,6 @@ var xHashTableSteal func(*HashTable, uintptr) bool | |||
| 591 | 570 | func HashTableSteal(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 592 | 571 | ||
| 593 | 572 | cret := xHashTableSteal(HashTableVar, KeyVar) | |
| 594 | - | ||
| 595 | 573 | return cret | |
| 596 | 574 | } | |
| 597 | 575 | ||
| @@ -614,7 +592,6 @@ var xHashTableStealAllKeys func(*HashTable) uintptr | |||
| 614 | 592 | func HashTableStealAllKeys(HashTableVar *HashTable) uintptr { | |
| 615 | 593 | ||
| 616 | 594 | cret := xHashTableStealAllKeys(HashTableVar) | |
| 617 | - | ||
| 618 | 595 | return cret | |
| 619 | 596 | } | |
| 620 | 597 | ||
| @@ -627,7 +604,6 @@ var xHashTableStealAllValues func(*HashTable) uintptr | |||
| 627 | 604 | func HashTableStealAllValues(HashTableVar *HashTable) uintptr { | |
| 628 | 605 | ||
| 629 | 606 | cret := xHashTableStealAllValues(HashTableVar) | |
| 630 | - | ||
| 631 | 607 | return cret | |
| 632 | 608 | } | |
| 633 | 609 | ||
| @@ -653,7 +629,6 @@ var xHashTableStealExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||
| 653 | 629 | func HashTableStealExtended(HashTableVar *HashTable, LookupKeyVar uintptr, StolenKeyVar *uintptr, StolenValueVar *uintptr) bool { | |
| 654 | 630 | ||
| 655 | 631 | cret := xHashTableStealExtended(HashTableVar, LookupKeyVar, StolenKeyVar, StolenValueVar) | |
| 656 | - | ||
| 657 | 632 | return cret | |
| 658 | 633 | } | |
| 659 | 634 | ||
| @@ -679,7 +654,6 @@ var xInt64Equal func(uintptr, uintptr) bool | |||
| 679 | 654 | func Int64Equal(V1Var uintptr, V2Var uintptr) bool { | |
| 680 | 655 | ||
| 681 | 656 | cret := xInt64Equal(V1Var, V2Var) | |
| 682 | - | ||
| 683 | 657 | return cret | |
| 684 | 658 | } | |
| 685 | 659 | ||
| @@ -693,7 +667,6 @@ var xInt64Hash func(uintptr) uint | |||
| 693 | 667 | func Int64Hash(VVar uintptr) uint { | |
| 694 | 668 | ||
| 695 | 669 | cret := xInt64Hash(VVar) | |
| 696 | - | ||
| 697 | 670 | return cret | |
| 698 | 671 | } | |
| 699 | 672 | ||
| @@ -711,7 +684,6 @@ var xIntEqual func(uintptr, uintptr) bool | |||
| 711 | 684 | func IntEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 712 | 685 | ||
| 713 | 686 | cret := xIntEqual(V1Var, V2Var) | |
| 714 | - | ||
| 715 | 687 | return cret | |
| 716 | 688 | } | |
| 717 | 689 | ||
| @@ -727,7 +699,6 @@ var xIntHash func(uintptr) uint | |||
| 727 | 699 | func IntHash(VVar uintptr) uint { | |
| 728 | 700 | ||
| 729 | 701 | cret := xIntHash(VVar) | |
| 730 | - | ||
| 731 | 702 | return cret | |
| 732 | 703 | } | |
| 733 | 704 | ||
| @@ -744,7 +715,6 @@ var xStrEqual func(uintptr, uintptr) bool | |||
| 744 | 715 | func StrEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 745 | 716 | ||
| 746 | 717 | cret := xStrEqual(V1Var, V2Var) | |
| 747 | - | ||
| 748 | 718 | return cret | |
| 749 | 719 | } | |
| 750 | 720 | ||
| @@ -767,7 +737,6 @@ var xStrHash func(uintptr) uint | |||
| 767 | 737 | func StrHash(VVar uintptr) uint { | |
| 768 | 738 | ||
| 769 | 739 | cret := xStrHash(VVar) | |
| 770 | - | ||
| 771 | 740 | return cret | |
| 772 | 741 | } | |
| 773 | 742 | ||
M v4/glib/ghmac.go +0 -7
| @@ -60,7 +60,6 @@ var xNewHmac func(ChecksumType, []byte, uint) *Hmac | |||
| 60 | 60 | func NewHmac(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar uint) *Hmac { | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewHmac(DigestTypeVar, KeyVar, KeyLenVar) | |
| 63 | - | ||
| 64 | 63 | return cret | |
| 65 | 64 | } | |
| 66 | 65 | ||
| @@ -72,7 +71,6 @@ var xHmacCopy func(uintptr) *Hmac | |||
| 72 | 71 | func (x *Hmac) Copy() *Hmac { | |
| 73 | 72 | ||
| 74 | 73 | cret := xHmacCopy(x.GoPointer()) | |
| 75 | - | ||
| 76 | 74 | return cret | |
| 77 | 75 | } | |
| 78 | 76 | ||
| @@ -100,7 +98,6 @@ var xHmacGetString func(uintptr) string | |||
| 100 | 98 | func (x *Hmac) GetString() string { | |
| 101 | 99 | ||
| 102 | 100 | cret := xHmacGetString(x.GoPointer()) | |
| 103 | - | ||
| 104 | 101 | return cret | |
| 105 | 102 | } | |
| 106 | 103 | ||
| @@ -112,7 +109,6 @@ var xHmacRef func(uintptr) *Hmac | |||
| 112 | 109 | func (x *Hmac) Ref() *Hmac { | |
| 113 | 110 | ||
| 114 | 111 | cret := xHmacRef(x.GoPointer()) | |
| 115 | - | ||
| 116 | 112 | return cret | |
| 117 | 113 | } | |
| 118 | 114 | ||
| @@ -152,7 +148,6 @@ var xComputeHmacForBytes func(ChecksumType, *Bytes, *Bytes) string | |||
| 152 | 148 | func ComputeHmacForBytes(DigestTypeVar ChecksumType, KeyVar *Bytes, DataVar *Bytes) string { | |
| 153 | 149 | ||
| 154 | 150 | cret := xComputeHmacForBytes(DigestTypeVar, KeyVar, DataVar) | |
| 155 | - | ||
| 156 | 151 | return cret | |
| 157 | 152 | } | |
| 158 | 153 | ||
| @@ -166,7 +161,6 @@ var xComputeHmacForData func(ChecksumType, []byte, uint, []byte, uint) string | |||
| 166 | 161 | func ComputeHmacForData(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar uint, DataVar []byte, LengthVar uint) string { | |
| 167 | 162 | ||
| 168 | 163 | cret := xComputeHmacForData(DigestTypeVar, KeyVar, KeyLenVar, DataVar, LengthVar) | |
| 169 | - | ||
| 170 | 164 | return cret | |
| 171 | 165 | } | |
| 172 | 166 | ||
| @@ -178,7 +172,6 @@ var xComputeHmacForString func(ChecksumType, []byte, uint, string, int) string | |||
| 178 | 172 | func ComputeHmacForString(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar uint, StrVar string, LengthVar int) string { | |
| 179 | 173 | ||
| 180 | 174 | cret := xComputeHmacForString(DigestTypeVar, KeyVar, KeyLenVar, StrVar, LengthVar) | |
| 181 | - | ||
| 182 | 175 | return cret | |
| 183 | 176 | } | |
| 184 | 177 | ||
M v4/glib/ghook.go +0 -2
| @@ -66,7 +66,6 @@ var xHookCompareIds func(uintptr, *Hook) int | |||
| 66 | 66 | func (x *Hook) CompareIds(SiblingVar *Hook) int { | |
| 67 | 67 | ||
| 68 | 68 | cret := xHookCompareIds(x.GoPointer(), SiblingVar) | |
| 69 | - | ||
| 70 | 69 | return cret | |
| 71 | 70 | } | |
| 72 | 71 | ||
| @@ -208,7 +207,6 @@ var xHookDestroy func(*HookList, uint) bool | |||
| 208 | 207 | func HookDestroy(HookListVar *HookList, HookIdVar uint) bool { | |
| 209 | 208 | ||
| 210 | 209 | cret := xHookDestroy(HookListVar, HookIdVar) | |
| 211 | - | ||
| 212 | 210 | return cret | |
| 213 | 211 | } | |
| 214 | 212 | ||
M v4/glib/ghostutils.go +0 -5
| @@ -19,7 +19,6 @@ var xHostnameIsAsciiEncoded func(string) bool | |||
| 19 | 19 | func HostnameIsAsciiEncoded(HostnameVar string) bool { | |
| 20 | 20 | ||
| 21 | 21 | cret := xHostnameIsAsciiEncoded(HostnameVar) | |
| 22 | - | ||
| 23 | 22 | return cret | |
| 24 | 23 | } | |
| 25 | 24 | ||
| @@ -32,7 +31,6 @@ var xHostnameIsIpAddress func(string) bool | |||
| 32 | 31 | func HostnameIsIpAddress(HostnameVar string) bool { | |
| 33 | 32 | ||
| 34 | 33 | cret := xHostnameIsIpAddress(HostnameVar) | |
| 35 | - | ||
| 36 | 34 | return cret | |
| 37 | 35 | } | |
| 38 | 36 | ||
| @@ -48,7 +46,6 @@ var xHostnameIsNonAscii func(string) bool | |||
| 48 | 46 | func HostnameIsNonAscii(HostnameVar string) bool { | |
| 49 | 47 | ||
| 50 | 48 | cret := xHostnameIsNonAscii(HostnameVar) | |
| 51 | - | ||
| 52 | 49 | return cret | |
| 53 | 50 | } | |
| 54 | 51 | ||
| @@ -60,7 +57,6 @@ var xHostnameToAscii func(string) string | |||
| 60 | 57 | func HostnameToAscii(HostnameVar string) string { | |
| 61 | 58 | ||
| 62 | 59 | cret := xHostnameToAscii(HostnameVar) | |
| 63 | - | ||
| 64 | 60 | return cret | |
| 65 | 61 | } | |
| 66 | 62 | ||
| @@ -76,7 +72,6 @@ var xHostnameToUnicode func(string) string | |||
| 76 | 72 | func HostnameToUnicode(HostnameVar string) string { | |
| 77 | 73 | ||
| 78 | 74 | cret := xHostnameToUnicode(HostnameVar) | |
| 79 | - | ||
| 80 | 75 | return cret | |
| 81 | 76 | } | |
| 82 | 77 | ||
M v4/glib/giochannel.go +4 -37
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -117,7 +116,6 @@ func NewIOChannelFile(FilenameVar string, ModeVar string) (*IOChannel, error) { | |||
| 117 | 116 | var cerr *Error | |
| 118 | 117 | ||
| 119 | 118 | cret := xNewIOChannelFile(FilenameVar, ModeVar, &cerr) | |
| 120 | - | ||
| 121 | 119 | if cerr == nil { | |
| 122 | 120 | return cret, nil | |
| 123 | 121 | } | |
| @@ -152,7 +150,6 @@ var xIOChannelUnixNew func(int) *IOChannel | |||
| 152 | 150 | func IOChannelUnixNew(FdVar int) *IOChannel { | |
| 153 | 151 | ||
| 154 | 152 | cret := xIOChannelUnixNew(FdVar) | |
| 155 | - | ||
| 156 | 153 | return cret | |
| 157 | 154 | } | |
| 158 | 155 | ||
| @@ -174,7 +171,6 @@ func (x *IOChannel) Flush() (IOStatus, error) { | |||
| 174 | 171 | var cerr *Error | |
| 175 | 172 | ||
| 176 | 173 | cret := xIOChannelFlush(x.GoPointer()) | |
| 177 | - | ||
| 178 | 174 | if cerr == nil { | |
| 179 | 175 | return cret, nil | |
| 180 | 176 | } | |
| @@ -190,7 +186,6 @@ var xIOChannelGetBufferCondition func(uintptr) IOCondition | |||
| 190 | 186 | func (x *IOChannel) GetBufferCondition() IOCondition { | |
| 191 | 187 | ||
| 192 | 188 | cret := xIOChannelGetBufferCondition(x.GoPointer()) | |
| 193 | - | ||
| 194 | 189 | return cret | |
| 195 | 190 | } | |
| 196 | 191 | ||
| @@ -200,7 +195,6 @@ var xIOChannelGetBufferSize func(uintptr) uint | |||
| 200 | 195 | func (x *IOChannel) GetBufferSize() uint { | |
| 201 | 196 | ||
| 202 | 197 | cret := xIOChannelGetBufferSize(x.GoPointer()) | |
| 203 | - | ||
| 204 | 198 | return cret | |
| 205 | 199 | } | |
| 206 | 200 | ||
| @@ -210,7 +204,6 @@ var xIOChannelGetBuffered func(uintptr) bool | |||
| 210 | 204 | func (x *IOChannel) GetBuffered() bool { | |
| 211 | 205 | ||
| 212 | 206 | cret := xIOChannelGetBuffered(x.GoPointer()) | |
| 213 | - | ||
| 214 | 207 | return cret | |
| 215 | 208 | } | |
| 216 | 209 | ||
| @@ -223,7 +216,6 @@ var xIOChannelGetCloseOnUnref func(uintptr) bool | |||
| 223 | 216 | func (x *IOChannel) GetCloseOnUnref() bool { | |
| 224 | 217 | ||
| 225 | 218 | cret := xIOChannelGetCloseOnUnref(x.GoPointer()) | |
| 226 | - | ||
| 227 | 219 | return cret | |
| 228 | 220 | } | |
| 229 | 221 | ||
| @@ -235,7 +227,6 @@ var xIOChannelGetEncoding func(uintptr) string | |||
| 235 | 227 | func (x *IOChannel) GetEncoding() string { | |
| 236 | 228 | ||
| 237 | 229 | cret := xIOChannelGetEncoding(x.GoPointer()) | |
| 238 | - | ||
| 239 | 230 | return cret | |
| 240 | 231 | } | |
| 241 | 232 | ||
| @@ -253,7 +244,6 @@ var xIOChannelGetFlags func(uintptr) IOFlags | |||
| 253 | 244 | func (x *IOChannel) GetFlags() IOFlags { | |
| 254 | 245 | ||
| 255 | 246 | cret := xIOChannelGetFlags(x.GoPointer()) | |
| 256 | - | ||
| 257 | 247 | return cret | |
| 258 | 248 | } | |
| 259 | 249 | ||
| @@ -266,7 +256,6 @@ var xIOChannelGetLineTerm func(uintptr, *int) string | |||
| 266 | 256 | func (x *IOChannel) GetLineTerm(LengthVar *int) string { | |
| 267 | 257 | ||
| 268 | 258 | cret := xIOChannelGetLineTerm(x.GoPointer(), LengthVar) | |
| 269 | - | ||
| 270 | 259 | return cret | |
| 271 | 260 | } | |
| 272 | 261 | ||
| @@ -289,7 +278,6 @@ var xIOChannelRead func(uintptr, string, uint, uint) IOError | |||
| 289 | 278 | func (x *IOChannel) Read(BufVar string, CountVar uint, BytesReadVar uint) IOError { | |
| 290 | 279 | ||
| 291 | 280 | cret := xIOChannelRead(x.GoPointer(), BufVar, CountVar, BytesReadVar) | |
| 292 | - | ||
| 293 | 281 | return cret | |
| 294 | 282 | } | |
| 295 | 283 | ||
| @@ -300,7 +288,6 @@ func (x *IOChannel) ReadChars(BufVar *[]byte, CountVar uint, BytesReadVar *uint) | |||
| 300 | 288 | var cerr *Error | |
| 301 | 289 | ||
| 302 | 290 | cret := xIOChannelReadChars(x.GoPointer(), BufVar, CountVar, BytesReadVar, &cerr) | |
| 303 | - | ||
| 304 | 291 | if cerr == nil { | |
| 305 | 292 | return cret, nil | |
| 306 | 293 | } | |
| @@ -318,7 +305,6 @@ func (x *IOChannel) ReadLine(StrReturnVar *string, LengthVar *uint, TerminatorPo | |||
| 318 | 305 | var cerr *Error | |
| 319 | 306 | ||
| 320 | 307 | cret := xIOChannelReadLine(x.GoPointer(), StrReturnVar, LengthVar, TerminatorPosVar, &cerr) | |
| 321 | - | ||
| 322 | 308 | if cerr == nil { | |
| 323 | 309 | return cret, nil | |
| 324 | 310 | } | |
| @@ -333,7 +319,6 @@ func (x *IOChannel) ReadLineString(BufferVar *String, TerminatorPosVar uint) (IO | |||
| 333 | 319 | var cerr *Error | |
| 334 | 320 | ||
| 335 | 321 | cret := xIOChannelReadLineString(x.GoPointer(), BufferVar, TerminatorPosVar, &cerr) | |
| 336 | - | ||
| 337 | 322 | if cerr == nil { | |
| 338 | 323 | return cret, nil | |
| 339 | 324 | } | |
| @@ -348,7 +333,6 @@ func (x *IOChannel) ReadToEnd(StrReturnVar *[]byte, LengthVar *uint) (IOStatus, | |||
| 348 | 333 | var cerr *Error | |
| 349 | 334 | ||
| 350 | 335 | cret := xIOChannelReadToEnd(x.GoPointer(), StrReturnVar, LengthVar, &cerr) | |
| 351 | - | ||
| 352 | 336 | if cerr == nil { | |
| 353 | 337 | return cret, nil | |
| 354 | 338 | } | |
| @@ -364,7 +348,6 @@ func (x *IOChannel) ReadUnichar(ThecharVar *uint32) (IOStatus, error) { | |||
| 364 | 348 | var cerr *Error | |
| 365 | 349 | ||
| 366 | 350 | cret := xIOChannelReadUnichar(x.GoPointer(), ThecharVar, &cerr) | |
| 367 | - | ||
| 368 | 351 | if cerr == nil { | |
| 369 | 352 | return cret, nil | |
| 370 | 353 | } | |
| @@ -378,7 +361,6 @@ var xIOChannelRef func(uintptr) *IOChannel | |||
| 378 | 361 | func (x *IOChannel) Ref() *IOChannel { | |
| 379 | 362 | ||
| 380 | 363 | cret := xIOChannelRef(x.GoPointer()) | |
| 381 | - | ||
| 382 | 364 | return cret | |
| 383 | 365 | } | |
| 384 | 366 | ||
| @@ -389,7 +371,6 @@ var xIOChannelSeek func(uintptr, int64, SeekType) IOError | |||
| 389 | 371 | func (x *IOChannel) Seek(OffsetVar int64, TypeVar SeekType) IOError { | |
| 390 | 372 | ||
| 391 | 373 | cret := xIOChannelSeek(x.GoPointer(), OffsetVar, TypeVar) | |
| 392 | - | ||
| 393 | 374 | return cret | |
| 394 | 375 | } | |
| 395 | 376 | ||
| @@ -400,7 +381,6 @@ func (x *IOChannel) SeekPosition(OffsetVar int64, TypeVar SeekType) (IOStatus, e | |||
| 400 | 381 | var cerr *Error | |
| 401 | 382 | ||
| 402 | 383 | cret := xIOChannelSeekPosition(x.GoPointer(), OffsetVar, TypeVar, &cerr) | |
| 403 | - | ||
| 404 | 384 | if cerr == nil { | |
| 405 | 385 | return cret, nil | |
| 406 | 386 | } | |
| @@ -497,12 +477,10 @@ var xIOChannelSetEncoding func(uintptr, uintptr, **Error) IOStatus | |||
| 497 | 477 | func (x *IOChannel) SetEncoding(EncodingVar *string) (IOStatus, error) { | |
| 498 | 478 | var cerr *Error | |
| 499 | 479 | ||
| 500 | - | EncodingVarPtr, EncodingVarBytes := core.NullableStringToPtr(EncodingVar) | |
| 480 | + | EncodingVarPtr := core.GStrdupNullable(EncodingVar) | |
| 481 | + | defer core.GFreeNullable(EncodingVarPtr) | |
| 501 | 482 | ||
| 502 | 483 | cret := xIOChannelSetEncoding(x.GoPointer(), EncodingVarPtr, &cerr) | |
| 503 | - | ||
| 504 | - | runtime.KeepAlive(EncodingVarBytes) | |
| 505 | - | ||
| 506 | 484 | if cerr == nil { | |
| 507 | 485 | return cret, nil | |
| 508 | 486 | } | |
| @@ -517,7 +495,6 @@ func (x *IOChannel) SetFlags(FlagsVar IOFlags) (IOStatus, error) { | |||
| 517 | 495 | var cerr *Error | |
| 518 | 496 | ||
| 519 | 497 | cret := xIOChannelSetFlags(x.GoPointer(), FlagsVar, &cerr) | |
| 520 | - | ||
| 521 | 498 | if cerr == nil { | |
| 522 | 499 | return cret, nil | |
| 523 | 500 | } | |
| @@ -531,12 +508,11 @@ var xIOChannelSetLineTerm func(uintptr, uintptr, int) | |||
| 531 | 508 | // where in the file a line break occurs. | |
| 532 | 509 | func (x *IOChannel) SetLineTerm(LineTermVar *string, LengthVar int) { | |
| 533 | 510 | ||
| 534 | - | LineTermVarPtr, LineTermVarBytes := core.NullableStringToPtr(LineTermVar) | |
| 511 | + | LineTermVarPtr := core.GStrdupNullable(LineTermVar) | |
| 512 | + | defer core.GFreeNullable(LineTermVarPtr) | |
| 535 | 513 | ||
| 536 | 514 | xIOChannelSetLineTerm(x.GoPointer(), LineTermVarPtr, LengthVar) | |
| 537 | 515 | ||
| 538 | - | runtime.KeepAlive(LineTermVarBytes) | |
| 539 | - | ||
| 540 | 516 | } | |
| 541 | 517 | ||
| 542 | 518 | var xIOChannelShutdown func(uintptr, bool, **Error) IOStatus | |
| @@ -548,7 +524,6 @@ func (x *IOChannel) Shutdown(FlushVar bool) (IOStatus, error) { | |||
| 548 | 524 | var cerr *Error | |
| 549 | 525 | ||
| 550 | 526 | cret := xIOChannelShutdown(x.GoPointer(), FlushVar, &cerr) | |
| 551 | - | ||
| 552 | 527 | if cerr == nil { | |
| 553 | 528 | return cret, nil | |
| 554 | 529 | } | |
| @@ -565,7 +540,6 @@ var xIOChannelUnixGetFd func(uintptr) int | |||
| 565 | 540 | func (x *IOChannel) UnixGetFd() int { | |
| 566 | 541 | ||
| 567 | 542 | cret := xIOChannelUnixGetFd(x.GoPointer()) | |
| 568 | - | ||
| 569 | 543 | return cret | |
| 570 | 544 | } | |
| 571 | 545 | ||
| @@ -584,7 +558,6 @@ var xIOChannelWrite func(uintptr, string, uint, uint) IOError | |||
| 584 | 558 | func (x *IOChannel) Write(BufVar string, CountVar uint, BytesWrittenVar uint) IOError { | |
| 585 | 559 | ||
| 586 | 560 | cret := xIOChannelWrite(x.GoPointer(), BufVar, CountVar, BytesWrittenVar) | |
| 587 | - | ||
| 588 | 561 | return cret | |
| 589 | 562 | } | |
| 590 | 563 | ||
| @@ -600,7 +573,6 @@ func (x *IOChannel) WriteChars(BufVar []byte, CountVar int, BytesWrittenVar *uin | |||
| 600 | 573 | var cerr *Error | |
| 601 | 574 | ||
| 602 | 575 | cret := xIOChannelWriteChars(x.GoPointer(), BufVar, CountVar, BytesWrittenVar, &cerr) | |
| 603 | - | ||
| 604 | 576 | if cerr == nil { | |
| 605 | 577 | return cret, nil | |
| 606 | 578 | } | |
| @@ -616,7 +588,6 @@ func (x *IOChannel) WriteUnichar(ThecharVar uint32) (IOStatus, error) { | |||
| 616 | 588 | var cerr *Error | |
| 617 | 589 | ||
| 618 | 590 | cret := xIOChannelWriteUnichar(x.GoPointer(), ThecharVar, &cerr) | |
| 619 | - | ||
| 620 | 591 | if cerr == nil { | |
| 621 | 592 | return cret, nil | |
| 622 | 593 | } | |
| @@ -1069,7 +1040,6 @@ func IoAddWatch(ChannelVar *IOChannel, ConditionVar IOCondition, FuncVar *IOFunc | |||
| 1069 | 1040 | } | |
| 1070 | 1041 | ||
| 1071 | 1042 | cret := xIoAddWatch(ChannelVar, ConditionVar, FuncVarRef, UserDataVar) | |
| 1072 | - | ||
| 1073 | 1043 | return cret | |
| 1074 | 1044 | } | |
| 1075 | 1045 | ||
| @@ -1114,7 +1084,6 @@ func IoAddWatchFull(ChannelVar *IOChannel, PriorityVar int, ConditionVar IOCondi | |||
| 1114 | 1084 | } | |
| 1115 | 1085 | ||
| 1116 | 1086 | cret := xIoAddWatchFull(ChannelVar, PriorityVar, ConditionVar, FuncVarRef, UserDataVar, NotifyVarRef) | |
| 1117 | - | ||
| 1118 | 1087 | return cret | |
| 1119 | 1088 | } | |
| 1120 | 1089 | ||
| @@ -1124,7 +1093,6 @@ var xIoChannelErrorFromErrno func(int) IOChannelError | |||
| 1124 | 1093 | func IoChannelErrorFromErrno(EnVar int) IOChannelError { | |
| 1125 | 1094 | ||
| 1126 | 1095 | cret := xIoChannelErrorFromErrno(EnVar) | |
| 1127 | - | ||
| 1128 | 1096 | return cret | |
| 1129 | 1097 | } | |
| 1130 | 1098 | ||
| @@ -1147,7 +1115,6 @@ var xIoCreateWatch func(*IOChannel, IOCondition) *Source | |||
| 1147 | 1115 | func IoCreateWatch(ChannelVar *IOChannel, ConditionVar IOCondition) *Source { | |
| 1148 | 1116 | ||
| 1149 | 1117 | cret := xIoCreateWatch(ChannelVar, ConditionVar) | |
| 1150 | - | ||
| 1151 | 1118 | return cret | |
| 1152 | 1119 | } | |
| 1153 | 1120 | ||
M v4/glib/gkeyfile.go +18 -61
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -177,7 +176,6 @@ var xNewKeyFile func() *KeyFile | |||
| 177 | 176 | func NewKeyFile() *KeyFile { | |
| 178 | 177 | ||
| 179 | 178 | cret := xNewKeyFile() | |
| 180 | - | ||
| 181 | 179 | return cret | |
| 182 | 180 | } | |
| 183 | 181 | ||
| @@ -206,7 +204,6 @@ func (x *KeyFile) GetBoolean(GroupNameVar string, KeyVar string) (bool, error) { | |||
| 206 | 204 | var cerr *Error | |
| 207 | 205 | ||
| 208 | 206 | cret := xKeyFileGetBoolean(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 209 | - | ||
| 210 | 207 | if cerr == nil { | |
| 211 | 208 | return cret, nil | |
| 212 | 209 | } | |
| @@ -226,7 +223,6 @@ func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar * | |||
| 226 | 223 | var cerr *Error | |
| 227 | 224 | ||
| 228 | 225 | cret := xKeyFileGetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| 229 | - | ||
| 230 | 226 | if cerr == nil { | |
| 231 | 227 | return cret, nil | |
| 232 | 228 | } | |
| @@ -248,16 +244,13 @@ var xKeyFileGetComment func(uintptr, uintptr, uintptr, **Error) string | |||
| 248 | 244 | func (x *KeyFile) GetComment(GroupNameVar *string, KeyVar *string) (string, error) { | |
| 249 | 245 | var cerr *Error | |
| 250 | 246 | ||
| 251 | - | GroupNameVarPtr, GroupNameVarBytes := core.NullableStringToPtr(GroupNameVar) | |
| 247 | + | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| 248 | + | defer core.GFreeNullable(GroupNameVarPtr) | |
| 252 | 249 | ||
| 253 | - | KeyVarPtr, KeyVarBytes := core.NullableStringToPtr(KeyVar) | |
| 250 | + | KeyVarPtr := core.GStrdupNullable(KeyVar) | |
| 251 | + | defer core.GFreeNullable(KeyVarPtr) | |
| 254 | 252 | ||
| 255 | 253 | cret := xKeyFileGetComment(x.GoPointer(), GroupNameVarPtr, KeyVarPtr, &cerr) | |
| 256 | - | ||
| 257 | - | runtime.KeepAlive(GroupNameVarBytes) | |
| 258 | - | ||
| 259 | - | runtime.KeepAlive(KeyVarBytes) | |
| 260 | - | ||
| 261 | 254 | if cerr == nil { | |
| 262 | 255 | return cret, nil | |
| 263 | 256 | } | |
| @@ -276,7 +269,6 @@ func (x *KeyFile) GetDouble(GroupNameVar string, KeyVar string) (float64, error) | |||
| 276 | 269 | var cerr *Error | |
| 277 | 270 | ||
| 278 | 271 | cret := xKeyFileGetDouble(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 279 | - | ||
| 280 | 272 | if cerr == nil { | |
| 281 | 273 | return cret, nil | |
| 282 | 274 | } | |
| @@ -296,7 +288,6 @@ func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar *u | |||
| 296 | 288 | var cerr *Error | |
| 297 | 289 | ||
| 298 | 290 | cret := xKeyFileGetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| 299 | - | ||
| 300 | 291 | if cerr == nil { | |
| 301 | 292 | return cret, nil | |
| 302 | 293 | } | |
| @@ -313,7 +304,6 @@ var xKeyFileGetGroups func(uintptr, *uint) []string | |||
| 313 | 304 | func (x *KeyFile) GetGroups(LengthVar *uint) []string { | |
| 314 | 305 | ||
| 315 | 306 | cret := xKeyFileGetGroups(x.GoPointer(), LengthVar) | |
| 316 | - | ||
| 317 | 307 | return cret | |
| 318 | 308 | } | |
| 319 | 309 | ||
| @@ -328,7 +318,6 @@ func (x *KeyFile) GetInt64(GroupNameVar string, KeyVar string) (int64, error) { | |||
| 328 | 318 | var cerr *Error | |
| 329 | 319 | ||
| 330 | 320 | cret := xKeyFileGetInt64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 331 | - | ||
| 332 | 321 | if cerr == nil { | |
| 333 | 322 | return cret, nil | |
| 334 | 323 | } | |
| @@ -349,7 +338,6 @@ func (x *KeyFile) GetInteger(GroupNameVar string, KeyVar string) (int, error) { | |||
| 349 | 338 | var cerr *Error | |
| 350 | 339 | ||
| 351 | 340 | cret := xKeyFileGetInteger(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 352 | - | ||
| 353 | 341 | if cerr == nil { | |
| 354 | 342 | return cret, nil | |
| 355 | 343 | } | |
| @@ -370,7 +358,6 @@ func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar * | |||
| 370 | 358 | var cerr *Error | |
| 371 | 359 | ||
| 372 | 360 | cret := xKeyFileGetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| 373 | - | ||
| 374 | 361 | if cerr == nil { | |
| 375 | 362 | return cret, nil | |
| 376 | 363 | } | |
| @@ -389,7 +376,6 @@ func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar *uint) ([]string, error | |||
| 389 | 376 | var cerr *Error | |
| 390 | 377 | ||
| 391 | 378 | cret := xKeyFileGetKeys(x.GoPointer(), GroupNameVar, LengthVar, &cerr) | |
| 392 | - | ||
| 393 | 379 | if cerr == nil { | |
| 394 | 380 | return cret, nil | |
| 395 | 381 | } | |
| @@ -410,12 +396,10 @@ var xKeyFileGetLocaleForKey func(uintptr, string, string, uintptr) string | |||
| 410 | 396 | // this function. | |
| 411 | 397 | func (x *KeyFile) GetLocaleForKey(GroupNameVar string, KeyVar string, LocaleVar *string) string { | |
| 412 | 398 | ||
| 413 | - | LocaleVarPtr, LocaleVarBytes := core.NullableStringToPtr(LocaleVar) | |
| 399 | + | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| 400 | + | defer core.GFreeNullable(LocaleVarPtr) | |
| 414 | 401 | ||
| 415 | 402 | cret := xKeyFileGetLocaleForKey(x.GoPointer(), GroupNameVar, KeyVar, LocaleVarPtr) | |
| 416 | - | ||
| 417 | - | runtime.KeepAlive(LocaleVarBytes) | |
| 418 | - | ||
| 419 | 403 | return cret | |
| 420 | 404 | } | |
| 421 | 405 | ||
| @@ -440,12 +424,10 @@ var xKeyFileGetLocaleString func(uintptr, string, string, uintptr, **Error) stri | |||
| 440 | 424 | func (x *KeyFile) GetLocaleString(GroupNameVar string, KeyVar string, LocaleVar *string) (string, error) { | |
| 441 | 425 | var cerr *Error | |
| 442 | 426 | ||
| 443 | - | LocaleVarPtr, LocaleVarBytes := core.NullableStringToPtr(LocaleVar) | |
| 427 | + | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| 428 | + | defer core.GFreeNullable(LocaleVarPtr) | |
| 444 | 429 | ||
| 445 | 430 | cret := xKeyFileGetLocaleString(x.GoPointer(), GroupNameVar, KeyVar, LocaleVarPtr, &cerr) | |
| 446 | - | ||
| 447 | - | runtime.KeepAlive(LocaleVarBytes) | |
| 448 | - | ||
| 449 | 431 | if cerr == nil { | |
| 450 | 432 | return cret, nil | |
| 451 | 433 | } | |
| @@ -476,12 +458,10 @@ var xKeyFileGetLocaleStringList func(uintptr, string, string, uintptr, *uint, ** | |||
| 476 | 458 | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar *string, LengthVar *uint) ([]string, error) { | |
| 477 | 459 | var cerr *Error | |
| 478 | 460 | ||
| 479 | - | LocaleVarPtr, LocaleVarBytes := core.NullableStringToPtr(LocaleVar) | |
| 461 | + | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| 462 | + | defer core.GFreeNullable(LocaleVarPtr) | |
| 480 | 463 | ||
| 481 | 464 | cret := xKeyFileGetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVarPtr, LengthVar, &cerr) | |
| 482 | - | ||
| 483 | - | runtime.KeepAlive(LocaleVarBytes) | |
| 484 | - | ||
| 485 | 465 | if cerr == nil { | |
| 486 | 466 | return cret, nil | |
| 487 | 467 | } | |
| @@ -495,7 +475,6 @@ var xKeyFileGetStartGroup func(uintptr) string | |||
| 495 | 475 | func (x *KeyFile) GetStartGroup() string { | |
| 496 | 476 | ||
| 497 | 477 | cret := xKeyFileGetStartGroup(x.GoPointer()) | |
| 498 | - | ||
| 499 | 478 | return cret | |
| 500 | 479 | } | |
| 501 | 480 | ||
| @@ -513,7 +492,6 @@ func (x *KeyFile) GetString(GroupNameVar string, KeyVar string) (string, error) | |||
| 513 | 492 | var cerr *Error | |
| 514 | 493 | ||
| 515 | 494 | cret := xKeyFileGetString(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 516 | - | ||
| 517 | 495 | if cerr == nil { | |
| 518 | 496 | return cret, nil | |
| 519 | 497 | } | |
| @@ -532,7 +510,6 @@ func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar *u | |||
| 532 | 510 | var cerr *Error | |
| 533 | 511 | ||
| 534 | 512 | cret := xKeyFileGetStringList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| 535 | - | ||
| 536 | 513 | if cerr == nil { | |
| 537 | 514 | return cret, nil | |
| 538 | 515 | } | |
| @@ -551,7 +528,6 @@ func (x *KeyFile) GetUint64(GroupNameVar string, KeyVar string) (uint64, error) | |||
| 551 | 528 | var cerr *Error | |
| 552 | 529 | ||
| 553 | 530 | cret := xKeyFileGetUint64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 554 | - | ||
| 555 | 531 | if cerr == nil { | |
| 556 | 532 | return cret, nil | |
| 557 | 533 | } | |
| @@ -572,7 +548,6 @@ func (x *KeyFile) GetValue(GroupNameVar string, KeyVar string) (string, error) { | |||
| 572 | 548 | var cerr *Error | |
| 573 | 549 | ||
| 574 | 550 | cret := xKeyFileGetValue(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 575 | - | ||
| 576 | 551 | if cerr == nil { | |
| 577 | 552 | return cret, nil | |
| 578 | 553 | } | |
| @@ -586,7 +561,6 @@ var xKeyFileHasGroup func(uintptr, string) bool | |||
| 586 | 561 | func (x *KeyFile) HasGroup(GroupNameVar string) bool { | |
| 587 | 562 | ||
| 588 | 563 | cret := xKeyFileHasGroup(x.GoPointer(), GroupNameVar) | |
| 589 | - | ||
| 590 | 564 | return cret | |
| 591 | 565 | } | |
| 592 | 566 | ||
| @@ -607,7 +581,6 @@ func (x *KeyFile) HasKey(GroupNameVar string, KeyVar string) (bool, error) { | |||
| 607 | 581 | var cerr *Error | |
| 608 | 582 | ||
| 609 | 583 | cret := xKeyFileHasKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 610 | - | ||
| 611 | 584 | if cerr == nil { | |
| 612 | 585 | return cret, nil | |
| 613 | 586 | } | |
| @@ -625,7 +598,6 @@ func (x *KeyFile) LoadFromBytes(BytesVar *Bytes, FlagsVar KeyFileFlags) (bool, e | |||
| 625 | 598 | var cerr *Error | |
| 626 | 599 | ||
| 627 | 600 | cret := xKeyFileLoadFromBytes(x.GoPointer(), BytesVar, FlagsVar, &cerr) | |
| 628 | - | ||
| 629 | 601 | if cerr == nil { | |
| 630 | 602 | return cret, nil | |
| 631 | 603 | } | |
| @@ -642,7 +614,6 @@ func (x *KeyFile) LoadFromData(DataVar string, LengthVar uint, FlagsVar KeyFileF | |||
| 642 | 614 | var cerr *Error | |
| 643 | 615 | ||
| 644 | 616 | cret := xKeyFileLoadFromData(x.GoPointer(), DataVar, LengthVar, FlagsVar, &cerr) | |
| 645 | - | ||
| 646 | 617 | if cerr == nil { | |
| 647 | 618 | return cret, nil | |
| 648 | 619 | } | |
| @@ -665,7 +636,6 @@ func (x *KeyFile) LoadFromDataDirs(FileVar string, FullPathVar *string, FlagsVar | |||
| 665 | 636 | var cerr *Error | |
| 666 | 637 | ||
| 667 | 638 | cret := xKeyFileLoadFromDataDirs(x.GoPointer(), FileVar, FullPathVar, FlagsVar, &cerr) | |
| 668 | - | ||
| 669 | 639 | if cerr == nil { | |
| 670 | 640 | return cret, nil | |
| 671 | 641 | } | |
| @@ -694,7 +664,6 @@ func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar []string, FullPathV | |||
| 694 | 664 | var cerr *Error | |
| 695 | 665 | ||
| 696 | 666 | cret := xKeyFileLoadFromDirs(x.GoPointer(), FileVar, SearchDirsVar, FullPathVar, FlagsVar, &cerr) | |
| 697 | - | ||
| 698 | 667 | if cerr == nil { | |
| 699 | 668 | return cret, nil | |
| 700 | 669 | } | |
| @@ -716,7 +685,6 @@ func (x *KeyFile) LoadFromFile(FileVar string, FlagsVar KeyFileFlags) (bool, err | |||
| 716 | 685 | var cerr *Error | |
| 717 | 686 | ||
| 718 | 687 | cret := xKeyFileLoadFromFile(x.GoPointer(), FileVar, FlagsVar, &cerr) | |
| 719 | - | ||
| 720 | 688 | if cerr == nil { | |
| 721 | 689 | return cret, nil | |
| 722 | 690 | } | |
| @@ -730,7 +698,6 @@ var xKeyFileRef func(uintptr) *KeyFile | |||
| 730 | 698 | func (x *KeyFile) Ref() *KeyFile { | |
| 731 | 699 | ||
| 732 | 700 | cret := xKeyFileRef(x.GoPointer()) | |
| 733 | - | ||
| 734 | 701 | return cret | |
| 735 | 702 | } | |
| 736 | 703 | ||
| @@ -744,16 +711,13 @@ var xKeyFileRemoveComment func(uintptr, uintptr, uintptr, **Error) bool | |||
| 744 | 711 | func (x *KeyFile) RemoveComment(GroupNameVar *string, KeyVar *string) (bool, error) { | |
| 745 | 712 | var cerr *Error | |
| 746 | 713 | ||
| 747 | - | GroupNameVarPtr, GroupNameVarBytes := core.NullableStringToPtr(GroupNameVar) | |
| 714 | + | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| 715 | + | defer core.GFreeNullable(GroupNameVarPtr) | |
| 748 | 716 | ||
| 749 | - | KeyVarPtr, KeyVarBytes := core.NullableStringToPtr(KeyVar) | |
| 717 | + | KeyVarPtr := core.GStrdupNullable(KeyVar) | |
| 718 | + | defer core.GFreeNullable(KeyVarPtr) | |
| 750 | 719 | ||
| 751 | 720 | cret := xKeyFileRemoveComment(x.GoPointer(), GroupNameVarPtr, KeyVarPtr, &cerr) | |
| 752 | - | ||
| 753 | - | runtime.KeepAlive(GroupNameVarBytes) | |
| 754 | - | ||
| 755 | - | runtime.KeepAlive(KeyVarBytes) | |
| 756 | - | ||
| 757 | 721 | if cerr == nil { | |
| 758 | 722 | return cret, nil | |
| 759 | 723 | } | |
| @@ -769,7 +733,6 @@ func (x *KeyFile) RemoveGroup(GroupNameVar string) (bool, error) { | |||
| 769 | 733 | var cerr *Error | |
| 770 | 734 | ||
| 771 | 735 | cret := xKeyFileRemoveGroup(x.GoPointer(), GroupNameVar, &cerr) | |
| 772 | - | ||
| 773 | 736 | if cerr == nil { | |
| 774 | 737 | return cret, nil | |
| 775 | 738 | } | |
| @@ -784,7 +747,6 @@ func (x *KeyFile) RemoveKey(GroupNameVar string, KeyVar string) (bool, error) { | |||
| 784 | 747 | var cerr *Error | |
| 785 | 748 | ||
| 786 | 749 | cret := xKeyFileRemoveKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| 787 | - | ||
| 788 | 750 | if cerr == nil { | |
| 789 | 751 | return cret, nil | |
| 790 | 752 | } | |
| @@ -808,7 +770,6 @@ func (x *KeyFile) SaveToFile(FilenameVar string) (bool, error) { | |||
| 808 | 770 | var cerr *Error | |
| 809 | 771 | ||
| 810 | 772 | cret := xKeyFileSaveToFile(x.GoPointer(), FilenameVar, &cerr) | |
| 811 | - | ||
| 812 | 773 | if cerr == nil { | |
| 813 | 774 | return cret, nil | |
| 814 | 775 | } | |
| @@ -856,16 +817,13 @@ var xKeyFileSetComment func(uintptr, uintptr, uintptr, string, **Error) bool | |||
| 856 | 817 | func (x *KeyFile) SetComment(GroupNameVar *string, KeyVar *string, CommentVar string) (bool, error) { | |
| 857 | 818 | var cerr *Error | |
| 858 | 819 | ||
| 859 | - | GroupNameVarPtr, GroupNameVarBytes := core.NullableStringToPtr(GroupNameVar) | |
| 820 | + | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| 821 | + | defer core.GFreeNullable(GroupNameVarPtr) | |
| 860 | 822 | ||
| 861 | - | KeyVarPtr, KeyVarBytes := core.NullableStringToPtr(KeyVar) | |
| 823 | + | KeyVarPtr := core.GStrdupNullable(KeyVar) | |
| 824 | + | defer core.GFreeNullable(KeyVarPtr) | |
| 862 | 825 | ||
| 863 | 826 | cret := xKeyFileSetComment(x.GoPointer(), GroupNameVarPtr, KeyVarPtr, CommentVar, &cerr) | |
| 864 | - | ||
| 865 | - | runtime.KeepAlive(GroupNameVarBytes) | |
| 866 | - | ||
| 867 | - | runtime.KeepAlive(KeyVarBytes) | |
| 868 | - | ||
| 869 | 827 | if cerr == nil { | |
| 870 | 828 | return cret, nil | |
| 871 | 829 | } | |
| @@ -1027,7 +985,6 @@ func (x *KeyFile) ToData(LengthVar *uint) (string, error) { | |||
| 1027 | 985 | var cerr *Error | |
| 1028 | 986 | ||
| 1029 | 987 | cret := xKeyFileToData(x.GoPointer(), LengthVar, &cerr) | |
| 1030 | - | ||
| 1031 | 988 | if cerr == nil { | |
| 1032 | 989 | return cret, nil | |
| 1033 | 990 | } | |
M v4/glib/glib-types.go +0 -2
| @@ -12,7 +12,6 @@ var xStrvGetType func() types.GType | |||
| 12 | 12 | func StrvGetType() types.GType { | |
| 13 | 13 | ||
| 14 | 14 | cret := xStrvGetType() | |
| 15 | - | ||
| 16 | 15 | return cret | |
| 17 | 16 | } | |
| 18 | 17 | ||
| @@ -21,7 +20,6 @@ var xVariantGetGtype func() types.GType | |||
| 21 | 20 | func VariantGetGtype() types.GType { | |
| 22 | 21 | ||
| 23 | 22 | cret := xVariantGetGtype() | |
| 24 | - | ||
| 25 | 23 | return cret | |
| 26 | 24 | } | |
| 27 | 25 | ||
M v4/glib/glib-unix.go +0 -11
| @@ -57,7 +57,6 @@ var xClosefrom func(int) int | |||
| 57 | 57 | func Closefrom(LowfdVar int) int { | |
| 58 | 58 | ||
| 59 | 59 | cret := xClosefrom(LowfdVar) | |
| 60 | - | ||
| 61 | 60 | return cret | |
| 62 | 61 | } | |
| 63 | 62 | ||
| @@ -80,7 +79,6 @@ var xFdwalkSetCloexec func(int) int | |||
| 80 | 79 | func FdwalkSetCloexec(LowfdVar int) int { | |
| 81 | 80 | ||
| 82 | 81 | cret := xFdwalkSetCloexec(LowfdVar) | |
| 83 | - | ||
| 84 | 82 | return cret | |
| 85 | 83 | } | |
| 86 | 84 | ||
| @@ -117,7 +115,6 @@ func UnixFdAdd(FdVar int, ConditionVar IOCondition, FunctionVar *UnixFDSourceFun | |||
| 117 | 115 | } | |
| 118 | 116 | ||
| 119 | 117 | cret := xUnixFdAdd(FdVar, ConditionVar, FunctionVarRef, UserDataVar) | |
| 120 | - | ||
| 121 | 118 | return cret | |
| 122 | 119 | } | |
| 123 | 120 | ||
| @@ -162,7 +159,6 @@ func UnixFdAddFull(PriorityVar int, FdVar int, ConditionVar IOCondition, Functio | |||
| 162 | 159 | } | |
| 163 | 160 | ||
| 164 | 161 | cret := xUnixFdAddFull(PriorityVar, FdVar, ConditionVar, FunctionVarRef, UserDataVar, NotifyVarRef) | |
| 165 | - | ||
| 166 | 162 | return cret | |
| 167 | 163 | } | |
| 168 | 164 | ||
| @@ -178,7 +174,6 @@ var xUnixFdSourceNew func(int, IOCondition) *Source | |||
| 178 | 174 | func UnixFdSourceNew(FdVar int, ConditionVar IOCondition) *Source { | |
| 179 | 175 | ||
| 180 | 176 | cret := xUnixFdSourceNew(FdVar, ConditionVar) | |
| 181 | - | ||
| 182 | 177 | return cret | |
| 183 | 178 | } | |
| 184 | 179 | ||
| @@ -199,7 +194,6 @@ func UnixGetPasswdEntry(UserNameVar string) (uintptr, error) { | |||
| 199 | 194 | var cerr *Error | |
| 200 | 195 | ||
| 201 | 196 | cret := xUnixGetPasswdEntry(UserNameVar, &cerr) | |
| 202 | - | ||
| 203 | 197 | if cerr == nil { | |
| 204 | 198 | return cret, nil | |
| 205 | 199 | } | |
| @@ -232,7 +226,6 @@ func UnixOpenPipe(FdsVar [2]int, FlagsVar int) (bool, error) { | |||
| 232 | 226 | var cerr *Error | |
| 233 | 227 | ||
| 234 | 228 | cret := xUnixOpenPipe(FdsVar, FlagsVar, &cerr) | |
| 235 | - | ||
| 236 | 229 | if cerr == nil { | |
| 237 | 230 | return cret, nil | |
| 238 | 231 | } | |
| @@ -249,7 +242,6 @@ func UnixSetFdNonblocking(FdVar int, NonblockVar bool) (bool, error) { | |||
| 249 | 242 | var cerr *Error | |
| 250 | 243 | ||
| 251 | 244 | cret := xUnixSetFdNonblocking(FdVar, NonblockVar, &cerr) | |
| 252 | - | ||
| 253 | 245 | if cerr == nil { | |
| 254 | 246 | return cret, nil | |
| 255 | 247 | } | |
| @@ -280,7 +272,6 @@ func UnixSignalAdd(SignumVar int, HandlerVar *SourceFunc, UserDataVar uintptr) u | |||
| 280 | 272 | } | |
| 281 | 273 | ||
| 282 | 274 | cret := xUnixSignalAdd(SignumVar, HandlerVarRef, UserDataVar) | |
| 283 | - | ||
| 284 | 275 | return cret | |
| 285 | 276 | } | |
| 286 | 277 | ||
| @@ -322,7 +313,6 @@ func UnixSignalAddFull(PriorityVar int, SignumVar int, HandlerVar *SourceFunc, U | |||
| 322 | 313 | } | |
| 323 | 314 | ||
| 324 | 315 | cret := xUnixSignalAddFull(PriorityVar, SignumVar, HandlerVarRef, UserDataVar, NotifyVarRef) | |
| 325 | - | ||
| 326 | 316 | return cret | |
| 327 | 317 | } | |
| 328 | 318 | ||
| @@ -354,7 +344,6 @@ var xUnixSignalSourceNew func(int) *Source | |||
| 354 | 344 | func UnixSignalSourceNew(SignumVar int) *Source { | |
| 355 | 345 | ||
| 356 | 346 | cret := xUnixSignalSourceNew(SignumVar) | |
| 357 | - | ||
| 358 | 347 | return cret | |
| 359 | 348 | } | |
| 360 | 349 | ||
M v4/glib/gmain.go +0 -60 collapsed to keep the page light
M v4/glib/gmappedfile.go +0 -6 collapsed to keep the page light
M v4/glib/gmarkup.go +0 -12 collapsed to keep the page light
M v4/glib/gmem.go +0 -15 collapsed to keep the page light
M v4/glib/gmessages.go +26 -58 collapsed to keep the page light
M v4/glib/gnode.go +0 -20 collapsed to keep the page light
M v4/glib/goption.go +6 -21 collapsed to keep the page light
M v4/glib/gpathbuf.go +4 -18 collapsed to keep the page light
M v4/glib/gpattern.go +4 -15 collapsed to keep the page light
M v4/glib/gpoll.go +0 -1 collapsed to keep the page light
M v4/glib/gprimes.go +0 -1 collapsed to keep the page light
M v4/glib/gprintf.go +0 -7 collapsed to keep the page light
M v4/glib/gquark.go +10 -23 collapsed to keep the page light
M v4/glib/gqueue.go +0 -21 collapsed to keep the page light
M v4/glib/grand.go +0 -12 collapsed to keep the page light
M v4/glib/grcbox.go +0 -10 collapsed to keep the page light
M v4/glib/grefcount.go +0 -4 collapsed to keep the page light
M v4/glib/grefstring.go +0 -6 collapsed to keep the page light
M v4/glib/gregex.go +0 -37 collapsed to keep the page light
M v4/glib/grel.go +0 -5 collapsed to keep the page light
M v4/glib/gscanner.go +0 -10 collapsed to keep the page light
M v4/glib/gsequence.go +0 -24 collapsed to keep the page light
M v4/glib/gshell.go +0 -3 collapsed to keep the page light
M v4/glib/gslice.go +0 -5 collapsed to keep the page light
M v4/glib/gspawn.go +10 -25 collapsed to keep the page light
M v4/glib/gstdio.go +0 -17 collapsed to keep the page light
M v4/glib/gstrfuncs.go +16 -83 collapsed to keep the page light
M v4/glib/gstring.go +2 -38 collapsed to keep the page light
M v4/glib/gstringchunk.go +0 -3 collapsed to keep the page light
M v4/glib/gstrvbuilder.go +0 -4 collapsed to keep the page light
M v4/glib/gtestutils.go +18 -51 collapsed to keep the page light
M v4/glib/gthread.go +4 -36 collapsed to keep the page light
M v4/glib/gthreadpool.go +0 -9 collapsed to keep the page light
M v4/glib/gtimer.go +0 -3 collapsed to keep the page light
M v4/glib/gtimezone.go +4 -19 collapsed to keep the page light
M v4/glib/gtrashstack.go +0 -3 collapsed to keep the page light
M v4/glib/gtree.go +0 -23 collapsed to keep the page light
M v4/glib/gtypes.go +0 -1 collapsed to keep the page light
M v4/glib/gunicode.go +2 -71 collapsed to keep the page light
M v4/glib/guri.go +60 -125 collapsed to keep the page light
M v4/glib/gutils.go +2 -30 collapsed to keep the page light
M v4/glib/guuid.go +0 -2 collapsed to keep the page light
M v4/glib/gvariant-parser.go +0 -1 collapsed to keep the page light
M v4/glib/gvariant.go +8 -113 collapsed to keep the page light
M v4/glib/gvarianttype.go +2 -34 collapsed to keep the page light
M v4/glib/gversion.go +0 -1 collapsed to keep the page light
M v4/glib/main.go +0 -16 collapsed to keep the page light
M v4/gmodule/gmodule.go +2 -10 collapsed to keep the page light
M v4/gmodule/main.go +0 -1 collapsed to keep the page light
M v4/gobject/gbinding.go +0 -3 collapsed to keep the page light
M v4/gobject/gboxed.go +0 -2 collapsed to keep the page light
M v4/gobject/gclosure.go +0 -6 collapsed to keep the page light
M v4/gobject/genums.go +0 -10 collapsed to keep the page light
M v4/gobject/glib-types.go +0 -1 collapsed to keep the page light
M v4/gobject/gobject.go +0 -15 collapsed to keep the page light
M v4/gobject/gparam.go +4 -23 collapsed to keep the page light
M v4/gobject/gparamspecs.go +90 -137 collapsed to keep the page light
M v4/gobject/gsignal.go +0 -22 collapsed to keep the page light
M v4/gobject/gtype.go +0 -47 collapsed to keep the page light
M v4/gobject/gtypemodule.go +0 -4 collapsed to keep the page light
M v4/gobject/gvalue.go +8 -43 collapsed to keep the page light
M v4/gobject/gvaluearray.go +0 -9 collapsed to keep the page light
M v4/gobject/gvaluetypes.go +0 -3 collapsed to keep the page light
M v4/graphene/graphene-box.go +0 -19 collapsed to keep the page light
M v4/graphene/graphene-euler.go +0 -16 collapsed to keep the page light
M v4/graphene/graphene-frustum.go +0 -8 collapsed to keep the page light
M v4/graphene/graphene-matrix.go +0 -33 collapsed to keep the page light
M v4/graphene/graphene-plane.go +0 -9 collapsed to keep the page light
M v4/graphene/graphene-point.go +0 -8 collapsed to keep the page light
M v4/graphene/graphene-point3d.go +0 -10 collapsed to keep the page light
M v4/graphene/graphene-quad.go +0 -6 collapsed to keep the page light
M v4/graphene/graphene-quaternion.go +0 -12 collapsed to keep the page light
M v4/graphene/graphene-ray.go +0 -13 collapsed to keep the page light
M v4/graphene/graphene-rect.go +0 -17 collapsed to keep the page light
M v4/graphene/graphene-size.go +0 -5 collapsed to keep the page light
M v4/graphene/graphene-sphere.go +0 -9 collapsed to keep the page light
M v4/graphene/graphene-triangle.go +0 -9 collapsed to keep the page light
M v4/graphene/graphene-vec2.go +0 -14 collapsed to keep the page light
M v4/graphene/graphene-vec3.go +0 -16 collapsed to keep the page light
M v4/graphene/graphene-vec4.go +0 -20 collapsed to keep the page light
M v4/gsk/gskcomponenttransfer.go +0 -1 collapsed to keep the page light
M v4/gsk/gskglshader.go +0 -20 collapsed to keep the page light
M v4/gsk/gskpath.go +0 -1 collapsed to keep the page light
M v4/gsk/gskpathpoint.go +0 -6 collapsed to keep the page light
M v4/gsk/gskrenderer.go +0 -3 collapsed to keep the page light
M v4/gsk/gskrendernode.go +0 -5 collapsed to keep the page light
M v4/gsk/gskrendernodeimpl.go +0 -62 collapsed to keep the page light
M v4/gsk/gskroundedrect.go +0 -10 collapsed to keep the page light
M v4/gsk/gskstroke.go +0 -1 collapsed to keep the page light
M v4/gsk/gsktransform.go +0 -1 collapsed to keep the page light
M v4/gsk/gsktypes.go +0 -56 collapsed to keep the page light
M v4/gsk/main.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkaboutdialog.go +18 -47 collapsed to keep the page light
M v4/gtk/gtkaccelgroup.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkaccessible.go +0 -6 collapsed to keep the page light
M v4/gtk/gtkactionable.go +2 -6 collapsed to keep the page light
M v4/gtk/gtkactionbar.go +0 -5 collapsed to keep the page light
M v4/gtk/gtkadjustment.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkalertdialog.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkappchooser.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkappchooserbutton.go +0 -9 collapsed to keep the page light
M v4/gtk/gtkappchooserdialog.go +0 -6 collapsed to keep the page light
M v4/gtk/gtkappchooserwidget.go +0 -11 collapsed to keep the page light
M v4/gtk/gtkapplication.go +4 -20 collapsed to keep the page light
M v4/gtk/gtkapplicationwindow.go +0 -14 collapsed to keep the page light
M v4/gtk/gtkaspectframe.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkassistant.go +0 -12 collapsed to keep the page light
M v4/gtk/gtkatcontext.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkbitset.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkbookmarklist.go +6 -17 collapsed to keep the page light
M v4/gtk/gtkboolfilter.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkborder.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkbox.go +0 -9 collapsed to keep the page light
M v4/gtk/gtkboxlayout.go +0 -5 collapsed to keep the page light
M v4/gtk/gtkbuildable.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkbuilder.go +2 -18 collapsed to keep the page light
M v4/gtk/gtkbuilderlistitemfactory.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkbuilderscope.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkbutton.go +2 -15 collapsed to keep the page light
M v4/gtk/gtkcalendar.go +0 -12 collapsed to keep the page light
M v4/gtk/gtkcellarea.go +0 -14 collapsed to keep the page light
M v4/gtk/gtkcellareabox.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkcelllayout.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkcellrenderer.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkcellrendererprogress.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkcellrenderertoggle.go +0 -3 collapsed to keep the page light
M v4/gtk/gtkcellview.go +0 -9 collapsed to keep the page light
M v4/gtk/gtkcenterbox.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkcenterlayout.go +0 -3 collapsed to keep the page light
M v4/gtk/gtkcheckbutton.go +8 -23 collapsed to keep the page light
M v4/gtk/gtkcolorbutton.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkcolorchooser.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkcolorchooserdialog.go +2 -10 collapsed to keep the page light
M v4/gtk/gtkcolorchooserwidget.go +0 -5 collapsed to keep the page light
M v4/gtk/gtkcolordialog.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkcolordialogbutton.go +0 -5 collapsed to keep the page light
M v4/gtk/gtkcolumnview.go +0 -13 collapsed to keep the page light
M v4/gtk/gtkcolumnviewcell.go +0 -3 collapsed to keep the page light
M v4/gtk/gtkcolumnviewcolumn.go +6 -16 collapsed to keep the page light
M v4/gtk/gtkcolumnviewrow.go +0 -7 collapsed to keep the page light
M v4/gtk/gtkcolumnviewsorter.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkcombobox.go +2 -19 collapsed to keep the page light
M v4/gtk/gtkcomboboxtext.go +6 -17 collapsed to keep the page light
M v4/gtk/gtkconstraint.go +0 -9 collapsed to keep the page light
M v4/gtk/gtkconstraintguide.go +2 -6 collapsed to keep the page light
M v4/gtk/gtkconstraintlayout.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkcsserror.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkcssprovider.go +2 -5 collapsed to keep the page light
M v4/gtk/gtkcsssection.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkdebug.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkdialog.go +4 -12 collapsed to keep the page light
M v4/gtk/gtkdialogerror.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkdirectorylist.go +4 -15 collapsed to keep the page light
M v4/gtk/gtkdragicon.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkdragsource.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkdrawingarea.go +0 -6 collapsed to keep the page light
M v4/gtk/gtkdropcontrollermotion.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkdropdown.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkdroptarget.go +0 -5 collapsed to keep the page light
M v4/gtk/gtkdroptargetasync.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkeditable.go +0 -13 collapsed to keep the page light
M v4/gtk/gtkeditablelabel.go +0 -15 collapsed to keep the page light
M v4/gtk/gtkemojichooser.go +0 -4 collapsed to keep the page light
M v4/gtk/gtkentry.go +8 -51 collapsed to keep the page light
M v4/gtk/gtkentrybuffer.go +2 -10 collapsed to keep the page light
M v4/gtk/gtkentrycompletion.go +0 -11 collapsed to keep the page light
M v4/gtk/gtkenums.go +0 -1 collapsed to keep the page light
M v4/gtk/gtkeventcontroller.go +4 -12 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerfocus.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerkey.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkeventcontrollermotion.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerscroll.go +0 -2 collapsed to keep the page light
M v4/gtk/gtkexpander.go +6 -19 collapsed to keep the page light
M v4/gtk/gtkexpression.go +0 -8 collapsed to keep the page light
M v4/gtk/gtkfilechooser.go +0 -10 collapsed to keep the page light
M v4/gtk/gtkfilechooserdialog.go +4 -21 collapsed to keep the page light
M v4/gtk/gtkfilechoosernative.go +10 -27 collapsed to keep the page light
M v4/gtk/gtkfilechooserwidget.go +0 -13 collapsed to keep the page light
M v4/gtk/gtkfiledialog.go +4 -11
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package gtk | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "runtime" | |
| 6 | 5 | "structs" | |
| 7 | 6 | "unsafe" | |
| 8 | 7 | ||
| @@ -70,7 +69,6 @@ var xFileDialogGetAcceptLabel func(uintptr) string | |||
| 70 | 69 | func (x *FileDialog) GetAcceptLabel() string { | |
| 71 | 70 | ||
| 72 | 71 | cret := xFileDialogGetAcceptLabel(x.GoPointer()) | |
| 73 | - | ||
| 74 | 72 | return cret | |
| 75 | 73 | } | |
| 76 | 74 | ||
| @@ -152,7 +150,6 @@ var xFileDialogGetInitialName func(uintptr) string | |||
| 152 | 150 | func (x *FileDialog) GetInitialName() string { | |
| 153 | 151 | ||
| 154 | 152 | cret := xFileDialogGetInitialName(x.GoPointer()) | |
| 155 | - | ||
| 156 | 153 | return cret | |
| 157 | 154 | } | |
| 158 | 155 | ||
| @@ -163,7 +160,6 @@ var xFileDialogGetModal func(uintptr) bool | |||
| 163 | 160 | func (x *FileDialog) GetModal() bool { | |
| 164 | 161 | ||
| 165 | 162 | cret := xFileDialogGetModal(x.GoPointer()) | |
| 166 | - | ||
| 167 | 163 | return cret | |
| 168 | 164 | } | |
| 169 | 165 | ||
| @@ -173,7 +169,6 @@ var xFileDialogGetTitle func(uintptr) string | |||
| 173 | 169 | func (x *FileDialog) GetTitle() string { | |
| 174 | 170 | ||
| 175 | 171 | cret := xFileDialogGetTitle(x.GoPointer()) | |
| 176 | - | ||
| 177 | 172 | return cret | |
| 178 | 173 | } | |
| 179 | 174 | ||
| @@ -639,12 +634,11 @@ var xFileDialogSetAcceptLabel func(uintptr, uintptr) | |||
| 639 | 634 | // to launch the file dialog. | |
| 640 | 635 | func (x *FileDialog) SetAcceptLabel(AcceptLabelVar *string) { | |
| 641 | 636 | ||
| 642 | - | AcceptLabelVarPtr, AcceptLabelVarBytes := core.NullableStringToPtr(AcceptLabelVar) | |
| 637 | + | AcceptLabelVarPtr := core.GStrdupNullable(AcceptLabelVar) | |
| 638 | + | defer core.GFreeNullable(AcceptLabelVarPtr) | |
| 643 | 639 | ||
| 644 | 640 | xFileDialogSetAcceptLabel(x.GoPointer(), AcceptLabelVarPtr) | |
| 645 | 641 | ||
| 646 | - | runtime.KeepAlive(AcceptLabelVarBytes) | |
| 647 | - | ||
| 648 | 642 | } | |
| 649 | 643 | ||
| 650 | 644 | var xFileDialogSetDefaultFilter func(uintptr, uintptr) | |
| @@ -708,12 +702,11 @@ var xFileDialogSetInitialName func(uintptr, uintptr) | |||
| 708 | 702 | // preselect it. | |
| 709 | 703 | func (x *FileDialog) SetInitialName(NameVar *string) { | |
| 710 | 704 | ||
| 711 | - | NameVarPtr, NameVarBytes := core.NullableStringToPtr(NameVar) | |
| 705 | + | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 706 | + | defer core.GFreeNullable(NameVarPtr) | |
| 712 | 707 | ||
| 713 | 708 | xFileDialogSetInitialName(x.GoPointer(), NameVarPtr) | |
| 714 | 709 | ||
| 715 | - | runtime.KeepAlive(NameVarBytes) | |
| 716 | - | ||
| 717 | 710 | } | |
| 718 | 711 | ||
| 719 | 712 | var xFileDialogSetModal func(uintptr, bool) | |