Gen: Re-run script
- commit
- 586cd48a96040c47a1f15eaf6a5ecf0b7314cb0f
- author
- Jeroen Wijenbergh · · 2025-10-13 08:16 UTC
- parent
- 0fb486e
- signature
- SSH Unverified
SHA256:8N5EoON8reSTMm461SyWlzRhib6IymBjUHb1p62kwywThe key is unknown
112 files · +306 -295
M v4/adw/adw-alert-dialog.go +1 -1
| @@ -296,7 +296,7 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 296 | 296 | // will be shown within it. Otherwise, it will be a separate window. | |
| 297 | 297 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 298 | 298 | ||
| 299 | - | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 299 | + | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 300 | 300 | ||
| 301 | 301 | } | |
| 302 | 302 | ||
| @@ -296,7 +296,7 @@ var xAlertDialogChoose func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 296 | // will be shown within it. Otherwise, it will be a separate window. | 296 | // will be shown within it. Otherwise, it will be a separate window. | ||
| 297 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 297 | func (x *AlertDialog) Choose(ParentVar *gtk.Widget, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 298 | 298 | ||||
| 299 | - | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 299 | + | xAlertDialogChoose(x.GoPointer(), ParentVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 300 | 300 | ||||
| 301 | } | 301 | } | ||
| 302 | 302 | ||||
M v4/adw/adw-message-dialog.go +1 -1
| @@ -269,7 +269,7 @@ var xMessageDialogChoose func(uintptr, uintptr, uintptr, uintptr) | |||
| 269 | 269 | // This function shows @self to the user. | |
| 270 | 270 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 271 | 271 | ||
| 272 | - | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 272 | + | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 273 | 273 | ||
| 274 | 274 | } | |
| 275 | 275 | ||
| @@ -269,7 +269,7 @@ var xMessageDialogChoose func(uintptr, uintptr, uintptr, uintptr) | |||||
| 269 | // This function shows @self to the user. | 269 | // This function shows @self to the user. | ||
| 270 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 270 | func (x *MessageDialog) Choose(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 271 | 271 | ||||
| 272 | - | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 272 | + | xMessageDialogChoose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 273 | 273 | ||||
| 274 | } | 274 | } | ||
| 275 | 275 | ||||
M v4/gdk/gdkclipboard.go +5 -5
| @@ -118,7 +118,7 @@ var xClipboardReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |||
| 118 | 118 | // to fulfill the request, preferring the ones listed first. | |
| 119 | 119 | func (x *Clipboard) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 120 | 120 | ||
| 121 | - | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 121 | + | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 122 | 122 | ||
| 123 | 123 | } | |
| 124 | 124 | ||
| @@ -157,7 +157,7 @@ var xClipboardReadTextAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 157 | 157 | // need more control over the operation. | |
| 158 | 158 | func (x *Clipboard) ReadTextAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 159 | 159 | ||
| 160 | - | xClipboardReadTextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 160 | + | xClipboardReadTextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 161 | 161 | ||
| 162 | 162 | } | |
| 163 | 163 | ||
| @@ -189,7 +189,7 @@ var xClipboardReadTextureAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 189 | 189 | // need more control over the operation. | |
| 190 | 190 | func (x *Clipboard) ReadTextureAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 191 | 191 | ||
| 192 | - | xClipboardReadTextureAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 192 | + | xClipboardReadTextureAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 193 | 193 | ||
| 194 | 194 | } | |
| 195 | 195 | ||
| @@ -229,7 +229,7 @@ var xClipboardReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, u | |||
| 229 | 229 | // [func@content_deserialize_async] to convert the clipboard's data. | |
| 230 | 230 | func (x *Clipboard) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 231 | 231 | ||
| 232 | - | xClipboardReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 232 | + | xClipboardReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 233 | 233 | ||
| 234 | 234 | } | |
| 235 | 235 | ||
| @@ -341,7 +341,7 @@ var xClipboardStoreAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 341 | 341 | // shut down, so you likely don't need to call it. | |
| 342 | 342 | func (x *Clipboard) StoreAsync(IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 343 | 343 | ||
| 344 | - | xClipboardStoreAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 344 | + | xClipboardStoreAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 345 | 345 | ||
| 346 | 346 | } | |
| 347 | 347 | ||
| @@ -118,7 +118,7 @@ var xClipboardReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |||||
| 118 | // to fulfill the request, preferring the ones listed first. | 118 | // to fulfill the request, preferring the ones listed first. | ||
| 119 | func (x *Clipboard) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 119 | func (x *Clipboard) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 120 | 120 | ||||
| 121 | - | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 121 | + | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 122 | 122 | ||||
| 123 | } | 123 | } | ||
| 124 | 124 | ||||
| @@ -157,7 +157,7 @@ var xClipboardReadTextAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 157 | // need more control over the operation. | 157 | // need more control over the operation. | ||
| 158 | func (x *Clipboard) ReadTextAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 158 | func (x *Clipboard) ReadTextAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 159 | 159 | ||||
| 160 | - | xClipboardReadTextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 160 | + | xClipboardReadTextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 161 | 161 | ||||
| 162 | } | 162 | } | ||
| 163 | 163 | ||||
| @@ -189,7 +189,7 @@ var xClipboardReadTextureAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 189 | // need more control over the operation. | 189 | // need more control over the operation. | ||
| 190 | func (x *Clipboard) ReadTextureAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 190 | func (x *Clipboard) ReadTextureAsync(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 191 | 191 | ||||
| 192 | - | xClipboardReadTextureAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 192 | + | xClipboardReadTextureAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 193 | 193 | ||||
| 194 | } | 194 | } | ||
| 195 | 195 | ||||
| @@ -229,7 +229,7 @@ var xClipboardReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, u | |||||
| 229 | // [func@content_deserialize_async] to convert the clipboard's data. | 229 | // [func@content_deserialize_async] to convert the clipboard's data. | ||
| 230 | func (x *Clipboard) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 230 | func (x *Clipboard) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 231 | 231 | ||||
| 232 | - | xClipboardReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 232 | + | xClipboardReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 233 | 233 | ||||
| 234 | } | 234 | } | ||
| 235 | 235 | ||||
| @@ -341,7 +341,7 @@ var xClipboardStoreAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 341 | // shut down, so you likely don't need to call it. | 341 | // shut down, so you likely don't need to call it. | ||
| 342 | func (x *Clipboard) StoreAsync(IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 342 | func (x *Clipboard) StoreAsync(IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 343 | 343 | ||||
| 344 | - | xClipboardStoreAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 344 | + | xClipboardStoreAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 345 | 345 | ||||
| 346 | } | 346 | } | ||
| 347 | 347 | ||||
M v4/gdk/gdkcontentdeserializer.go +1 -1
| @@ -28,7 +28,7 @@ var xContentDeserializeAsync func(uintptr, string, types.GType, int, uintptr, ui | |||
| 28 | 28 | // call [func@Gdk.content_deserialize_finish] to get the result of the operation. | |
| 29 | 29 | func ContentDeserializeAsync(StreamVar *gio.InputStream, MimeTypeVar string, TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 30 | 30 | ||
| 31 | - | xContentDeserializeAsync(StreamVar.GoPointer(), MimeTypeVar, TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 31 | + | xContentDeserializeAsync(StreamVar.GoPointer(), MimeTypeVar, TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 32 | 32 | ||
| 33 | 33 | } | |
| 34 | 34 | ||
| @@ -28,7 +28,7 @@ var xContentDeserializeAsync func(uintptr, string, types.GType, int, uintptr, ui | |||||
| 28 | // call [func@Gdk.content_deserialize_finish] to get the result of the operation. | 28 | // call [func@Gdk.content_deserialize_finish] to get the result of the operation. | ||
| 29 | func ContentDeserializeAsync(StreamVar *gio.InputStream, MimeTypeVar string, TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 29 | func ContentDeserializeAsync(StreamVar *gio.InputStream, MimeTypeVar string, TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 30 | 30 | ||||
| 31 | - | xContentDeserializeAsync(StreamVar.GoPointer(), MimeTypeVar, TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 31 | + | xContentDeserializeAsync(StreamVar.GoPointer(), MimeTypeVar, TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 32 | 32 | ||||
| 33 | } | 33 | } | ||
| 34 | 34 | ||||
M v4/gdk/gdkcontentprovider.go +1 -1
| @@ -204,7 +204,7 @@ var xContentProviderWriteMimeTypeAsync func(uintptr, string, uintptr, int, uintp | |||
| 204 | 204 | // The given @stream will not be closed. | |
| 205 | 205 | func (x *ContentProvider) WriteMimeTypeAsync(MimeTypeVar string, StreamVar *gio.OutputStream, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 206 | 206 | ||
| 207 | - | xContentProviderWriteMimeTypeAsync(x.GoPointer(), MimeTypeVar, StreamVar.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 207 | + | xContentProviderWriteMimeTypeAsync(x.GoPointer(), MimeTypeVar, StreamVar.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 208 | 208 | ||
| 209 | 209 | } | |
| 210 | 210 | ||
| @@ -204,7 +204,7 @@ var xContentProviderWriteMimeTypeAsync func(uintptr, string, uintptr, int, uintp | |||||
| 204 | // The given @stream will not be closed. | 204 | // The given @stream will not be closed. | ||
| 205 | func (x *ContentProvider) WriteMimeTypeAsync(MimeTypeVar string, StreamVar *gio.OutputStream, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 205 | func (x *ContentProvider) WriteMimeTypeAsync(MimeTypeVar string, StreamVar *gio.OutputStream, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 206 | 206 | ||||
| 207 | - | xContentProviderWriteMimeTypeAsync(x.GoPointer(), MimeTypeVar, StreamVar.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 207 | + | xContentProviderWriteMimeTypeAsync(x.GoPointer(), MimeTypeVar, StreamVar.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 208 | 208 | ||||
| 209 | } | 209 | } | ||
| 210 | 210 | ||||
M v4/gdk/gdkcontentserializer.go +1 -1
| @@ -37,7 +37,7 @@ var xContentSerializeAsync func(uintptr, string, *gobject.Value, int, uintptr, u | |||
| 37 | 37 | // call [func@Gdk.content_serialize_finish] to get the result of the operation. | |
| 38 | 38 | func ContentSerializeAsync(StreamVar *gio.OutputStream, MimeTypeVar string, ValueVar *gobject.Value, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 39 | 39 | ||
| 40 | - | xContentSerializeAsync(StreamVar.GoPointer(), MimeTypeVar, ValueVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 40 | + | xContentSerializeAsync(StreamVar.GoPointer(), MimeTypeVar, ValueVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 41 | 41 | ||
| 42 | 42 | } | |
| 43 | 43 | ||
| @@ -37,7 +37,7 @@ var xContentSerializeAsync func(uintptr, string, *gobject.Value, int, uintptr, u | |||||
| 37 | // call [func@Gdk.content_serialize_finish] to get the result of the operation. | 37 | // call [func@Gdk.content_serialize_finish] to get the result of the operation. | ||
| 38 | func ContentSerializeAsync(StreamVar *gio.OutputStream, MimeTypeVar string, ValueVar *gobject.Value, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 38 | func ContentSerializeAsync(StreamVar *gio.OutputStream, MimeTypeVar string, ValueVar *gobject.Value, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 39 | 39 | ||||
| 40 | - | xContentSerializeAsync(StreamVar.GoPointer(), MimeTypeVar, ValueVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 40 | + | xContentSerializeAsync(StreamVar.GoPointer(), MimeTypeVar, ValueVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 41 | 41 | ||||
| 42 | } | 42 | } | ||
| 43 | 43 | ||||
M v4/gdk/gdkdrop.go +2 -2
| @@ -161,7 +161,7 @@ var xDropReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |||
| 161 | 161 | // in a format that complies with one of the mime types. | |
| 162 | 162 | func (x *Drop) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 163 | 163 | ||
| 164 | - | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 164 | + | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 165 | 165 | ||
| 166 | 166 | } | |
| 167 | 167 | ||
| @@ -207,7 +207,7 @@ var xDropReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, uintpt | |||
| 207 | 207 | // try to use [func@Gdk.content_deserialize_async] to convert the data. | |
| 208 | 208 | func (x *Drop) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 209 | 209 | ||
| 210 | - | xDropReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 210 | + | xDropReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 211 | 211 | ||
| 212 | 212 | } | |
| 213 | 213 | ||
| @@ -161,7 +161,7 @@ var xDropReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |||||
| 161 | // in a format that complies with one of the mime types. | 161 | // in a format that complies with one of the mime types. | ||
| 162 | func (x *Drop) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 162 | func (x *Drop) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 163 | 163 | ||||
| 164 | - | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 164 | + | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 165 | 165 | ||||
| 166 | } | 166 | } | ||
| 167 | 167 | ||||
| @@ -207,7 +207,7 @@ var xDropReadValueAsync func(uintptr, types.GType, int, uintptr, uintptr, uintpt | |||||
| 207 | // try to use [func@Gdk.content_deserialize_async] to convert the data. | 207 | // try to use [func@Gdk.content_deserialize_async] to convert the data. | ||
| 208 | func (x *Drop) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 208 | func (x *Drop) ReadValueAsync(TypeVar types.GType, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 209 | 209 | ||||
| 210 | - | xDropReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 210 | + | xDropReadValueAsync(x.GoPointer(), TypeVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 211 | 211 | ||||
| 212 | } | 212 | } | ||
| 213 | 213 | ||||
M v4/gdk/gdkgltexture.go +1 -1
| @@ -290,7 +290,7 @@ func (x *GLTexture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancel | |||
| 290 | 290 | // version of this function, see g_loadable_icon_load(). | |
| 291 | 291 | func (x *GLTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 292 | 292 | ||
| 293 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 293 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 294 | 294 | ||
| 295 | 295 | } | |
| 296 | 296 | ||
| @@ -290,7 +290,7 @@ func (x *GLTexture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancel | |||||
| 290 | // version of this function, see g_loadable_icon_load(). | 290 | // version of this function, see g_loadable_icon_load(). | ||
| 291 | func (x *GLTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 291 | func (x *GLTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 292 | 292 | ||||
| 293 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 293 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 294 | 294 | ||||
| 295 | } | 295 | } | ||
| 296 | 296 | ||||
M v4/gdk/gdkmemorytexture.go +1 -1
| @@ -276,7 +276,7 @@ func (x *MemoryTexture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Ca | |||
| 276 | 276 | // version of this function, see g_loadable_icon_load(). | |
| 277 | 277 | func (x *MemoryTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 278 | 278 | ||
| 279 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 279 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 280 | 280 | ||
| 281 | 281 | } | |
| 282 | 282 | ||
| @@ -276,7 +276,7 @@ func (x *MemoryTexture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Ca | |||||
| 276 | // version of this function, see g_loadable_icon_load(). | 276 | // version of this function, see g_loadable_icon_load(). | ||
| 277 | func (x *MemoryTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 277 | func (x *MemoryTexture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 278 | 278 | ||||
| 279 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 279 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 280 | 280 | ||||
| 281 | } | 281 | } | ||
| 282 | 282 | ||||
M v4/gdk/gdktexture.go +1 -1
| @@ -549,7 +549,7 @@ func (x *Texture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancella | |||
| 549 | 549 | // version of this function, see g_loadable_icon_load(). | |
| 550 | 550 | func (x *Texture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 551 | 551 | ||
| 552 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 552 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 553 | 553 | ||
| 554 | 554 | } | |
| 555 | 555 | ||
| @@ -549,7 +549,7 @@ func (x *Texture) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancella | |||||
| 549 | // version of this function, see g_loadable_icon_load(). | 549 | // version of this function, see g_loadable_icon_load(). | ||
| 550 | func (x *Texture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 550 | func (x *Texture) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 551 | 551 | ||||
| 552 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 552 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 553 | 553 | ||||
| 554 | } | 554 | } | ||
| 555 | 555 | ||||
M v4/gdkpixbuf/gdk-pixbuf-animation.go +1 -1
| @@ -330,7 +330,7 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 330 | 330 | // result of the operation. | |
| 331 | 331 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 332 | 332 | ||
| 333 | - | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 333 | + | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 334 | 334 | ||
| 335 | 335 | } | |
| 336 | 336 | ||
| @@ -330,7 +330,7 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 330 | // result of the operation. | 330 | // result of the operation. | ||
| 331 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 331 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 332 | 332 | ||||
| 333 | - | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 333 | + | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 334 | 334 | ||||
| 335 | } | 335 | } | ||
| 336 | 336 | ||||
M v4/gdkpixbuf/gdk-pixbuf.go +7 -7
| @@ -222,7 +222,7 @@ var xNewPixbufFromData func([]byte, Colorspace, bool, int, int, int, int, uintpt | |||
| 222 | 222 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | |
| 223 | 223 | var cls *Pixbuf | |
| 224 | 224 | ||
| 225 | - | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallback(DestroyFnVar), DestroyFnDataVar) | |
| 225 | + | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallbackNullable(DestroyFnVar), DestroyFnDataVar) | |
| 226 | 226 | ||
| 227 | 227 | if cret == 0 { | |
| 228 | 228 | return nil | |
| @@ -1204,7 +1204,7 @@ var xPixbufSaveToStreamAsync func(uintptr, uintptr, string, uintptr, uintptr, ui | |||
| 1204 | 1204 | // the operation. | |
| 1205 | 1205 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | |
| 1206 | 1206 | ||
| 1207 | - | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, varArgs...) | |
| 1207 | + | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, varArgs...) | |
| 1208 | 1208 | ||
| 1209 | 1209 | } | |
| 1210 | 1210 | ||
| @@ -1240,7 +1240,7 @@ var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, []string, []string, | |||
| 1240 | 1240 | // the operation. | |
| 1241 | 1241 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1242 | 1242 | ||
| 1243 | - | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1243 | + | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1244 | 1244 | ||
| 1245 | 1245 | } | |
| 1246 | 1246 | ||
| @@ -1415,7 +1415,7 @@ func (x *Pixbuf) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancellab | |||
| 1415 | 1415 | // version of this function, see g_loadable_icon_load(). | |
| 1416 | 1416 | func (x *Pixbuf) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1417 | 1417 | ||
| 1418 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1418 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1419 | 1419 | ||
| 1420 | 1420 | } | |
| 1421 | 1421 | ||
| @@ -1473,7 +1473,7 @@ var xPixbufGetFileInfoAsync func(string, uintptr, uintptr, uintptr) | |||
| 1473 | 1473 | // get the result of the operation. | |
| 1474 | 1474 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1475 | 1475 | ||
| 1476 | - | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1476 | + | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1477 | 1477 | ||
| 1478 | 1478 | } | |
| 1479 | 1479 | ||
| @@ -1540,7 +1540,7 @@ var xPixbufNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 1540 | 1540 | // the operation. | |
| 1541 | 1541 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1542 | 1542 | ||
| 1543 | - | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1543 | + | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1544 | 1544 | ||
| 1545 | 1545 | } | |
| 1546 | 1546 | ||
| @@ -1555,7 +1555,7 @@ var xPixbufNewFromStreamAtScaleAsync func(uintptr, int, int, bool, uintptr, uint | |||
| 1555 | 1555 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | |
| 1556 | 1556 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 1557 | 1557 | ||
| 1558 | - | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1558 | + | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1559 | 1559 | ||
| 1560 | 1560 | } | |
| 1561 | 1561 | ||
| @@ -222,7 +222,7 @@ var xNewPixbufFromData func([]byte, Colorspace, bool, int, int, int, int, uintpt | |||||
| 222 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | 222 | func NewPixbufFromData(DataVar []byte, ColorspaceVar Colorspace, HasAlphaVar bool, BitsPerSampleVar int, WidthVar int, HeightVar int, RowstrideVar int, DestroyFnVar *PixbufDestroyNotify, DestroyFnDataVar uintptr) *Pixbuf { | ||
| 223 | var cls *Pixbuf | 223 | var cls *Pixbuf | ||
| 224 | 224 | ||||
| 225 | - | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallback(DestroyFnVar), DestroyFnDataVar) | 225 | + | cret := xNewPixbufFromData(DataVar, ColorspaceVar, HasAlphaVar, BitsPerSampleVar, WidthVar, HeightVar, RowstrideVar, glib.NewCallbackNullable(DestroyFnVar), DestroyFnDataVar) |
| 226 | 226 | ||||
| 227 | if cret == 0 { | 227 | if cret == 0 { | ||
| 228 | return nil | 228 | return nil | ||
| @@ -1204,7 +1204,7 @@ var xPixbufSaveToStreamAsync func(uintptr, uintptr, string, uintptr, uintptr, ui | |||||
| 1204 | // the operation. | 1204 | // the operation. | ||
| 1205 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | 1205 | func (x *Pixbuf) SaveToStreamAsync(StreamVar *gio.OutputStream, TypeVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr, varArgs ...interface{}) { | ||
| 1206 | 1206 | ||||
| 1207 | - | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, varArgs...) | 1207 | + | xPixbufSaveToStreamAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, varArgs...) |
| 1208 | 1208 | ||||
| 1209 | } | 1209 | } | ||
| 1210 | 1210 | ||||
| @@ -1240,7 +1240,7 @@ var xPixbufSaveToStreamvAsync func(uintptr, uintptr, string, []string, []string, | |||||
| 1240 | // the operation. | 1240 | // the operation. | ||
| 1241 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1241 | func (x *Pixbuf) SaveToStreamvAsync(StreamVar *gio.OutputStream, TypeVar string, OptionKeysVar []string, OptionValuesVar []string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1242 | 1242 | ||||
| 1243 | - | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1243 | + | xPixbufSaveToStreamvAsync(x.GoPointer(), StreamVar.GoPointer(), TypeVar, OptionKeysVar, OptionValuesVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1244 | 1244 | ||||
| 1245 | } | 1245 | } | ||
| 1246 | 1246 | ||||
| @@ -1415,7 +1415,7 @@ func (x *Pixbuf) Load(SizeVar int, TypeVar string, CancellableVar *gio.Cancellab | |||||
| 1415 | // version of this function, see g_loadable_icon_load(). | 1415 | // version of this function, see g_loadable_icon_load(). | ||
| 1416 | func (x *Pixbuf) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1416 | func (x *Pixbuf) LoadAsync(SizeVar int, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1417 | 1417 | ||||
| 1418 | - | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1418 | + | gio.XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1419 | 1419 | ||||
| 1420 | } | 1420 | } | ||
| 1421 | 1421 | ||||
| @@ -1473,7 +1473,7 @@ var xPixbufGetFileInfoAsync func(string, uintptr, uintptr, uintptr) | |||||
| 1473 | // get the result of the operation. | 1473 | // get the result of the operation. | ||
| 1474 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1474 | func PixbufGetFileInfoAsync(FilenameVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1475 | 1475 | ||||
| 1476 | - | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1476 | + | xPixbufGetFileInfoAsync(FilenameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1477 | 1477 | ||||
| 1478 | } | 1478 | } | ||
| 1479 | 1479 | ||||
| @@ -1540,7 +1540,7 @@ var xPixbufNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1540 | // the operation. | 1540 | // the operation. | ||
| 1541 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1541 | func PixbufNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1542 | 1542 | ||||
| 1543 | - | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1543 | + | xPixbufNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1544 | 1544 | ||||
| 1545 | } | 1545 | } | ||
| 1546 | 1546 | ||||
| @@ -1555,7 +1555,7 @@ var xPixbufNewFromStreamAtScaleAsync func(uintptr, int, int, bool, uintptr, uint | |||||
| 1555 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | 1555 | // You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. | ||
| 1556 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 1556 | func PixbufNewFromStreamAtScaleAsync(StreamVar *gio.InputStream, WidthVar int, HeightVar int, PreserveAspectRatioVar bool, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1557 | 1557 | ||||
| 1558 | - | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1558 | + | xPixbufNewFromStreamAtScaleAsync(StreamVar.GoPointer(), WidthVar, HeightVar, PreserveAspectRatioVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1559 | 1559 | ||||
| 1560 | } | 1560 | } | ||
| 1561 | 1561 | ||||
M v4/gio/gappinfo.go +2 -2
| @@ -350,7 +350,7 @@ func (x *AppInfoBase) LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContex | |||
| 350 | 350 | // g_app_info_launch_default_for_uri_async(). | |
| 351 | 351 | func (x *AppInfoBase) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 352 | 352 | ||
| 353 | - | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 353 | + | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 354 | 354 | ||
| 355 | 355 | } | |
| 356 | 356 | ||
| @@ -615,7 +615,7 @@ var xAppInfoLaunchDefaultForUriAsync func(string, uintptr, uintptr, uintptr, uin | |||
| 615 | 615 | // in receiving error information from their activation. | |
| 616 | 616 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 617 | 617 | ||
| 618 | - | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 618 | + | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 619 | 619 | ||
| 620 | 620 | } | |
| 621 | 621 | ||
| @@ -350,7 +350,7 @@ func (x *AppInfoBase) LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContex | |||||
| 350 | // g_app_info_launch_default_for_uri_async(). | 350 | // g_app_info_launch_default_for_uri_async(). | ||
| 351 | func (x *AppInfoBase) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 351 | func (x *AppInfoBase) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 352 | 352 | ||||
| 353 | - | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 353 | + | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 354 | 354 | ||||
| 355 | } | 355 | } | ||
| 356 | 356 | ||||
| @@ -615,7 +615,7 @@ var xAppInfoLaunchDefaultForUriAsync func(string, uintptr, uintptr, uintptr, uin | |||||
| 615 | // in receiving error information from their activation. | 615 | // in receiving error information from their activation. | ||
| 616 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 616 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 617 | 617 | ||||
| 618 | - | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 618 | + | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 619 | 619 | ||||
| 620 | } | 620 | } | ||
| 621 | 621 | ||||
M v4/gio/gasyncinitable.go +2 -2
| @@ -199,7 +199,7 @@ func (x *AsyncInitableBase) SetGoPointer(ptr uintptr) { | |||
| 199 | 199 | // any interface methods. | |
| 200 | 200 | func (x *AsyncInitableBase) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 201 | 201 | ||
| 202 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 202 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 203 | 203 | ||
| 204 | 204 | } | |
| 205 | 205 | ||
| @@ -250,7 +250,7 @@ var xAsyncInitableNewvAsync func(types.GType, uint, *gobject.Parameter, int, uin | |||
| 250 | 250 | // for any errors. | |
| 251 | 251 | func AsyncInitableNewvAsync(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar *gobject.Parameter, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 252 | 252 | ||
| 253 | - | xAsyncInitableNewvAsync(ObjectTypeVar, NParametersVar, ParametersVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 253 | + | xAsyncInitableNewvAsync(ObjectTypeVar, NParametersVar, ParametersVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 254 | 254 | ||
| 255 | 255 | } | |
| 256 | 256 | ||
| @@ -199,7 +199,7 @@ func (x *AsyncInitableBase) SetGoPointer(ptr uintptr) { | |||||
| 199 | // any interface methods. | 199 | // any interface methods. | ||
| 200 | func (x *AsyncInitableBase) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 200 | func (x *AsyncInitableBase) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 201 | 201 | ||||
| 202 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 202 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 203 | 203 | ||||
| 204 | } | 204 | } | ||
| 205 | 205 | ||||
| @@ -250,7 +250,7 @@ var xAsyncInitableNewvAsync func(types.GType, uint, *gobject.Parameter, int, uin | |||||
| 250 | // for any errors. | 250 | // for any errors. | ||
| 251 | func AsyncInitableNewvAsync(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar *gobject.Parameter, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 251 | func AsyncInitableNewvAsync(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar *gobject.Parameter, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 252 | 252 | ||||
| 253 | - | xAsyncInitableNewvAsync(ObjectTypeVar, NParametersVar, ParametersVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 253 | + | xAsyncInitableNewvAsync(ObjectTypeVar, NParametersVar, ParametersVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 254 | 254 | ||||
| 255 | } | 255 | } | ||
| 256 | 256 | ||||
M v4/gio/gbufferedinputstream.go +1 -1
| @@ -140,7 +140,7 @@ var xBufferedInputStreamFillAsync func(uintptr, int, int, uintptr, uintptr, uint | |||
| 140 | 140 | // of bytes that are required to fill the buffer. | |
| 141 | 141 | func (x *BufferedInputStream) FillAsync(CountVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 142 | 142 | ||
| 143 | - | xBufferedInputStreamFillAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 143 | + | xBufferedInputStreamFillAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 144 | 144 | ||
| 145 | 145 | } | |
| 146 | 146 | ||
| @@ -140,7 +140,7 @@ var xBufferedInputStreamFillAsync func(uintptr, int, int, uintptr, uintptr, uint | |||||
| 140 | // of bytes that are required to fill the buffer. | 140 | // of bytes that are required to fill the buffer. | ||
| 141 | func (x *BufferedInputStream) FillAsync(CountVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 141 | func (x *BufferedInputStream) FillAsync(CountVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 142 | 142 | ||||
| 143 | - | xBufferedInputStreamFillAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 143 | + | xBufferedInputStreamFillAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 144 | 144 | ||||
| 145 | } | 145 | } | ||
| 146 | 146 | ||||
M v4/gio/gcancellable.go +1 -1
| @@ -118,7 +118,7 @@ var xCancellableConnect func(uintptr, uintptr, uintptr, uintptr) uint32 | |||
| 118 | 118 | // code that unconditionally invokes e.g. g_cancellable_cancel(). | |
| 119 | 119 | func (x *Cancellable) Connect(CallbackVar *gobject.Callback, DataVar uintptr, DataDestroyFuncVar *glib.DestroyNotify) uint32 { | |
| 120 | 120 | ||
| 121 | - | cret := xCancellableConnect(x.GoPointer(), glib.NewCallback(CallbackVar), DataVar, glib.NewCallback(DataDestroyFuncVar)) | |
| 121 | + | cret := xCancellableConnect(x.GoPointer(), glib.NewCallback(CallbackVar), DataVar, glib.NewCallbackNullable(DataDestroyFuncVar)) | |
| 122 | 122 | return cret | |
| 123 | 123 | } | |
| 124 | 124 | ||
| @@ -118,7 +118,7 @@ var xCancellableConnect func(uintptr, uintptr, uintptr, uintptr) uint32 | |||||
| 118 | // code that unconditionally invokes e.g. g_cancellable_cancel(). | 118 | // code that unconditionally invokes e.g. g_cancellable_cancel(). | ||
| 119 | func (x *Cancellable) Connect(CallbackVar *gobject.Callback, DataVar uintptr, DataDestroyFuncVar *glib.DestroyNotify) uint32 { | 119 | func (x *Cancellable) Connect(CallbackVar *gobject.Callback, DataVar uintptr, DataDestroyFuncVar *glib.DestroyNotify) uint32 { | ||
| 120 | 120 | ||||
| 121 | - | cret := xCancellableConnect(x.GoPointer(), glib.NewCallback(CallbackVar), DataVar, glib.NewCallback(DataDestroyFuncVar)) | 121 | + | cret := xCancellableConnect(x.GoPointer(), glib.NewCallback(CallbackVar), DataVar, glib.NewCallbackNullable(DataDestroyFuncVar)) |
| 122 | return cret | 122 | return cret | ||
| 123 | } | 123 | } | ||
| 124 | 124 | ||||
M v4/gio/gdatainputstream.go +3 -3
| @@ -184,7 +184,7 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 184 | 184 | // the result of the operation. | |
| 185 | 185 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 186 | 186 | ||
| 187 | - | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 187 | + | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 188 | 188 | ||
| 189 | 189 | } | |
| 190 | 190 | ||
| @@ -340,7 +340,7 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||
| 340 | 340 | // g_data_input_stream_read_upto_async() instead. | |
| 341 | 341 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 342 | 342 | ||
| 343 | - | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 343 | + | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 344 | 344 | ||
| 345 | 345 | } | |
| 346 | 346 | ||
| @@ -402,7 +402,7 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||
| 402 | 402 | // the result of the operation. | |
| 403 | 403 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 404 | 404 | ||
| 405 | - | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 405 | + | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 406 | 406 | ||
| 407 | 407 | } | |
| 408 | 408 | ||
| @@ -184,7 +184,7 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 184 | // the result of the operation. | 184 | // the result of the operation. | ||
| 185 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 185 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 186 | 186 | ||||
| 187 | - | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 187 | + | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 188 | 188 | ||||
| 189 | } | 189 | } | ||
| 190 | 190 | ||||
| @@ -340,7 +340,7 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||||
| 340 | // g_data_input_stream_read_upto_async() instead. | 340 | // g_data_input_stream_read_upto_async() instead. | ||
| 341 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 341 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 342 | 342 | ||||
| 343 | - | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 343 | + | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 344 | 344 | ||||
| 345 | } | 345 | } | ||
| 346 | 346 | ||||
| @@ -402,7 +402,7 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||||
| 402 | // the result of the operation. | 402 | // the result of the operation. | ||
| 403 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 403 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 404 | 404 | ||||
| 405 | - | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 405 | + | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 406 | 406 | ||||
| 407 | } | 407 | } | ||
| 408 | 408 | ||||
M v4/gio/gdbusaddress.go +1 -1
| @@ -56,7 +56,7 @@ var xDbusAddressGetStream func(string, uintptr, uintptr, uintptr) | |||
| 56 | 56 | // g_dbus_address_get_stream_sync() for the synchronous version. | |
| 57 | 57 | func DbusAddressGetStream(AddressVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 58 | 58 | ||
| 59 | - | xDbusAddressGetStream(AddressVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 59 | + | xDbusAddressGetStream(AddressVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 60 | 60 | ||
| 61 | 61 | } | |
| 62 | 62 | ||
| @@ -56,7 +56,7 @@ var xDbusAddressGetStream func(string, uintptr, uintptr, uintptr) | |||||
| 56 | // g_dbus_address_get_stream_sync() for the synchronous version. | 56 | // g_dbus_address_get_stream_sync() for the synchronous version. | ||
| 57 | func DbusAddressGetStream(AddressVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 57 | func DbusAddressGetStream(AddressVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 58 | 58 | ||||
| 59 | - | xDbusAddressGetStream(AddressVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 59 | + | xDbusAddressGetStream(AddressVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 60 | 60 | ||||
| 61 | } | 61 | } | ||
| 62 | 62 | ||||
M v4/gio/gdbusconnection.go +1 -1
| @@ -216,7 +216,7 @@ var xBusGet func(BusType, uintptr, uintptr, uintptr) | |||
| 216 | 216 | // the synchronous version. | |
| 217 | 217 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 218 | 218 | ||
| 219 | - | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 219 | + | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 220 | 220 | ||
| 221 | 221 | } | |
| 222 | 222 | ||
| @@ -216,7 +216,7 @@ var xBusGet func(BusType, uintptr, uintptr, uintptr) | |||||
| 216 | // the synchronous version. | 216 | // the synchronous version. | ||
| 217 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 217 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 218 | 218 | ||||
| 219 | - | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 219 | + | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 220 | 220 | ||||
| 221 | } | 221 | } | ||
| 222 | 222 | ||||
M v4/gio/gdbusnameowning.go +2 -2
| @@ -70,7 +70,7 @@ var xBusOwnName func(BusType, string, BusNameOwnerFlags, uintptr, uintptr, uintp | |||
| 70 | 70 | // unregister the objects (if any) in @name_lost_handler. | |
| 71 | 71 | func BusOwnName(BusTypeVar BusType, NameVar string, FlagsVar BusNameOwnerFlags, BusAcquiredHandlerVar *BusAcquiredCallback, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 72 | 72 | ||
| 73 | - | cret := xBusOwnName(BusTypeVar, NameVar, FlagsVar, glib.NewCallback(BusAcquiredHandlerVar), glib.NewCallback(NameAcquiredHandlerVar), glib.NewCallback(NameLostHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 73 | + | cret := xBusOwnName(BusTypeVar, NameVar, FlagsVar, glib.NewCallbackNullable(BusAcquiredHandlerVar), glib.NewCallbackNullable(NameAcquiredHandlerVar), glib.NewCallbackNullable(NameLostHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) | |
| 74 | 74 | return cret | |
| 75 | 75 | } | |
| 76 | 76 | ||
| @@ -80,7 +80,7 @@ var xBusOwnNameOnConnection func(uintptr, string, BusNameOwnerFlags, uintptr, ui | |||
| 80 | 80 | // #GBusType. | |
| 81 | 81 | func BusOwnNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameOwnerFlags, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 82 | 82 | ||
| 83 | - | cret := xBusOwnNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallback(NameAcquiredHandlerVar), glib.NewCallback(NameLostHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 83 | + | cret := xBusOwnNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallbackNullable(NameAcquiredHandlerVar), glib.NewCallbackNullable(NameLostHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) | |
| 84 | 84 | return cret | |
| 85 | 85 | } | |
| 86 | 86 | ||
| @@ -70,7 +70,7 @@ var xBusOwnName func(BusType, string, BusNameOwnerFlags, uintptr, uintptr, uintp | |||||
| 70 | // unregister the objects (if any) in @name_lost_handler. | 70 | // unregister the objects (if any) in @name_lost_handler. | ||
| 71 | func BusOwnName(BusTypeVar BusType, NameVar string, FlagsVar BusNameOwnerFlags, BusAcquiredHandlerVar *BusAcquiredCallback, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 71 | func BusOwnName(BusTypeVar BusType, NameVar string, FlagsVar BusNameOwnerFlags, BusAcquiredHandlerVar *BusAcquiredCallback, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 72 | 72 | ||||
| 73 | - | cret := xBusOwnName(BusTypeVar, NameVar, FlagsVar, glib.NewCallback(BusAcquiredHandlerVar), glib.NewCallback(NameAcquiredHandlerVar), glib.NewCallback(NameLostHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 73 | + | cret := xBusOwnName(BusTypeVar, NameVar, FlagsVar, glib.NewCallbackNullable(BusAcquiredHandlerVar), glib.NewCallbackNullable(NameAcquiredHandlerVar), glib.NewCallbackNullable(NameLostHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) |
| 74 | return cret | 74 | return cret | ||
| 75 | } | 75 | } | ||
| 76 | 76 | ||||
| @@ -80,7 +80,7 @@ var xBusOwnNameOnConnection func(uintptr, string, BusNameOwnerFlags, uintptr, ui | |||||
| 80 | // #GBusType. | 80 | // #GBusType. | ||
| 81 | func BusOwnNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameOwnerFlags, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 81 | func BusOwnNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameOwnerFlags, NameAcquiredHandlerVar *BusNameAcquiredCallback, NameLostHandlerVar *BusNameLostCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 82 | 82 | ||||
| 83 | - | cret := xBusOwnNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallback(NameAcquiredHandlerVar), glib.NewCallback(NameLostHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 83 | + | cret := xBusOwnNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallbackNullable(NameAcquiredHandlerVar), glib.NewCallbackNullable(NameLostHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) |
| 84 | return cret | 84 | return cret | ||
| 85 | } | 85 | } | ||
| 86 | 86 | ||||
M v4/gio/gdbusnamewatching.go +2 -2
| @@ -67,7 +67,7 @@ var xBusWatchName func(BusType, string, BusNameWatcherFlags, uintptr, uintptr, u | |||
| 67 | 67 | // @name_vanished_handler. | |
| 68 | 68 | func BusWatchName(BusTypeVar BusType, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 69 | 69 | ||
| 70 | - | cret := xBusWatchName(BusTypeVar, NameVar, FlagsVar, glib.NewCallback(NameAppearedHandlerVar), glib.NewCallback(NameVanishedHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 70 | + | cret := xBusWatchName(BusTypeVar, NameVar, FlagsVar, glib.NewCallbackNullable(NameAppearedHandlerVar), glib.NewCallbackNullable(NameVanishedHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) | |
| 71 | 71 | return cret | |
| 72 | 72 | } | |
| 73 | 73 | ||
| @@ -77,7 +77,7 @@ var xBusWatchNameOnConnection func(uintptr, string, BusNameWatcherFlags, uintptr | |||
| 77 | 77 | // #GBusType. | |
| 78 | 78 | func BusWatchNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 79 | 79 | ||
| 80 | - | cret := xBusWatchNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallback(NameAppearedHandlerVar), glib.NewCallback(NameVanishedHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 80 | + | cret := xBusWatchNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallbackNullable(NameAppearedHandlerVar), glib.NewCallbackNullable(NameVanishedHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) | |
| 81 | 81 | return cret | |
| 82 | 82 | } | |
| 83 | 83 | ||
| @@ -67,7 +67,7 @@ var xBusWatchName func(BusType, string, BusNameWatcherFlags, uintptr, uintptr, u | |||||
| 67 | // @name_vanished_handler. | 67 | // @name_vanished_handler. | ||
| 68 | func BusWatchName(BusTypeVar BusType, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 68 | func BusWatchName(BusTypeVar BusType, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 69 | 69 | ||||
| 70 | - | cret := xBusWatchName(BusTypeVar, NameVar, FlagsVar, glib.NewCallback(NameAppearedHandlerVar), glib.NewCallback(NameVanishedHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 70 | + | cret := xBusWatchName(BusTypeVar, NameVar, FlagsVar, glib.NewCallbackNullable(NameAppearedHandlerVar), glib.NewCallbackNullable(NameVanishedHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) |
| 71 | return cret | 71 | return cret | ||
| 72 | } | 72 | } | ||
| 73 | 73 | ||||
| @@ -77,7 +77,7 @@ var xBusWatchNameOnConnection func(uintptr, string, BusNameWatcherFlags, uintptr | |||||
| 77 | // #GBusType. | 77 | // #GBusType. | ||
| 78 | func BusWatchNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 78 | func BusWatchNameOnConnection(ConnectionVar *DBusConnection, NameVar string, FlagsVar BusNameWatcherFlags, NameAppearedHandlerVar *BusNameAppearedCallback, NameVanishedHandlerVar *BusNameVanishedCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 79 | 79 | ||||
| 80 | - | cret := xBusWatchNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallback(NameAppearedHandlerVar), glib.NewCallback(NameVanishedHandlerVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 80 | + | cret := xBusWatchNameOnConnection(ConnectionVar.GoPointer(), NameVar, FlagsVar, glib.NewCallbackNullable(NameAppearedHandlerVar), glib.NewCallbackNullable(NameVanishedHandlerVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) |
| 81 | return cret | 81 | return cret | ||
| 82 | } | 82 | } | ||
| 83 | 83 | ||||
M v4/gio/gdbusobjectmanagerclient.go +5 -5
| @@ -178,7 +178,7 @@ func NewDBusObjectManagerClientForBusSync(BusTypeVar BusType, FlagsVar DBusObjec | |||
| 178 | 178 | var cls *DBusObjectManagerClient | |
| 179 | 179 | var cerr *glib.Error | |
| 180 | 180 | ||
| 181 | - | cret := xNewDBusObjectManagerClientForBusSync(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | |
| 181 | + | cret := xNewDBusObjectManagerClientForBusSync(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | |
| 182 | 182 | ||
| 183 | 183 | if cret == 0 { | |
| 184 | 184 | return nil, cerr | |
| @@ -203,7 +203,7 @@ func NewDBusObjectManagerClientSync(ConnectionVar *DBusConnection, FlagsVar DBus | |||
| 203 | 203 | var cls *DBusObjectManagerClient | |
| 204 | 204 | var cerr *glib.Error | |
| 205 | 205 | ||
| 206 | - | cret := xNewDBusObjectManagerClientSync(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | |
| 206 | + | cret := xNewDBusObjectManagerClientSync(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | |
| 207 | 207 | ||
| 208 | 208 | if cret == 0 { | |
| 209 | 209 | return nil, cerr | |
| @@ -371,7 +371,7 @@ func (x *DBusObjectManagerClient) ConnectInterfaceProxySignal(cb *func(DBusObjec | |||
| 371 | 371 | // any interface methods. | |
| 372 | 372 | func (x *DBusObjectManagerClient) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 373 | 373 | ||
| 374 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 374 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 375 | 375 | ||
| 376 | 376 | } | |
| 377 | 377 | ||
| @@ -512,7 +512,7 @@ var xDBusObjectManagerClientNew func(uintptr, DBusObjectManagerClientFlags, stri | |||
| 512 | 512 | // g_dbus_object_manager_client_new_sync() for the synchronous version. | |
| 513 | 513 | func DBusObjectManagerClientNew(ConnectionVar *DBusConnection, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 514 | 514 | ||
| 515 | - | xDBusObjectManagerClientNew(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 515 | + | xDBusObjectManagerClientNew(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 516 | 516 | ||
| 517 | 517 | } | |
| 518 | 518 | ||
| @@ -529,7 +529,7 @@ var xDBusObjectManagerClientNewForBus func(BusType, DBusObjectManagerClientFlags | |||
| 529 | 529 | // g_dbus_object_manager_client_new_for_bus_sync() for the synchronous version. | |
| 530 | 530 | func DBusObjectManagerClientNewForBus(BusTypeVar BusType, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 531 | 531 | ||
| 532 | - | xDBusObjectManagerClientNewForBus(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 532 | + | xDBusObjectManagerClientNewForBus(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 533 | 533 | ||
| 534 | 534 | } | |
| 535 | 535 | ||
| @@ -178,7 +178,7 @@ func NewDBusObjectManagerClientForBusSync(BusTypeVar BusType, FlagsVar DBusObjec | |||||
| 178 | var cls *DBusObjectManagerClient | 178 | var cls *DBusObjectManagerClient | ||
| 179 | var cerr *glib.Error | 179 | var cerr *glib.Error | ||
| 180 | 180 | ||||
| 181 | - | cret := xNewDBusObjectManagerClientForBusSync(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | 181 | + | cret := xNewDBusObjectManagerClientForBusSync(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) |
| 182 | 182 | ||||
| 183 | if cret == 0 { | 183 | if cret == 0 { | ||
| 184 | return nil, cerr | 184 | return nil, cerr | ||
| @@ -203,7 +203,7 @@ func NewDBusObjectManagerClientSync(ConnectionVar *DBusConnection, FlagsVar DBus | |||||
| 203 | var cls *DBusObjectManagerClient | 203 | var cls *DBusObjectManagerClient | ||
| 204 | var cerr *glib.Error | 204 | var cerr *glib.Error | ||
| 205 | 205 | ||||
| 206 | - | cret := xNewDBusObjectManagerClientSync(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) | 206 | + | cret := xNewDBusObjectManagerClientSync(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), &cerr) |
| 207 | 207 | ||||
| 208 | if cret == 0 { | 208 | if cret == 0 { | ||
| 209 | return nil, cerr | 209 | return nil, cerr | ||
| @@ -371,7 +371,7 @@ func (x *DBusObjectManagerClient) ConnectInterfaceProxySignal(cb *func(DBusObjec | |||||
| 371 | // any interface methods. | 371 | // any interface methods. | ||
| 372 | func (x *DBusObjectManagerClient) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 372 | func (x *DBusObjectManagerClient) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 373 | 373 | ||||
| 374 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 374 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 375 | 375 | ||||
| 376 | } | 376 | } | ||
| 377 | 377 | ||||
| @@ -512,7 +512,7 @@ var xDBusObjectManagerClientNew func(uintptr, DBusObjectManagerClientFlags, stri | |||||
| 512 | // g_dbus_object_manager_client_new_sync() for the synchronous version. | 512 | // g_dbus_object_manager_client_new_sync() for the synchronous version. | ||
| 513 | func DBusObjectManagerClientNew(ConnectionVar *DBusConnection, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 513 | func DBusObjectManagerClientNew(ConnectionVar *DBusConnection, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 514 | 514 | ||||
| 515 | - | xDBusObjectManagerClientNew(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 515 | + | xDBusObjectManagerClientNew(ConnectionVar.GoPointer(), FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 516 | 516 | ||||
| 517 | } | 517 | } | ||
| 518 | 518 | ||||
| @@ -529,7 +529,7 @@ var xDBusObjectManagerClientNewForBus func(BusType, DBusObjectManagerClientFlags | |||||
| 529 | // g_dbus_object_manager_client_new_for_bus_sync() for the synchronous version. | 529 | // g_dbus_object_manager_client_new_for_bus_sync() for the synchronous version. | ||
| 530 | func DBusObjectManagerClientNewForBus(BusTypeVar BusType, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 530 | func DBusObjectManagerClientNewForBus(BusTypeVar BusType, FlagsVar DBusObjectManagerClientFlags, NameVar string, ObjectPathVar string, GetProxyTypeFuncVar *DBusProxyTypeFunc, GetProxyTypeUserDataVar uintptr, GetProxyTypeDestroyNotifyVar *glib.DestroyNotify, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 531 | 531 | ||||
| 532 | - | xDBusObjectManagerClientNewForBus(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallback(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallback(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 532 | + | xDBusObjectManagerClientNewForBus(BusTypeVar, FlagsVar, NameVar, ObjectPathVar, glib.NewCallbackNullable(GetProxyTypeFuncVar), GetProxyTypeUserDataVar, glib.NewCallbackNullable(GetProxyTypeDestroyNotifyVar), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 533 | 533 | ||||
| 534 | } | 534 | } | ||
| 535 | 535 | ||||
M v4/gio/gdbusproxy.go +5 -5
| @@ -248,7 +248,7 @@ var xDBusProxyCall func(uintptr, string, *glib.Variant, DBusCallFlags, int, uint | |||
| 248 | 248 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | |
| 249 | 249 | func (x *DBusProxy) Call(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 250 | 250 | ||
| 251 | - | xDBusProxyCall(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 251 | + | xDBusProxyCall(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 252 | 252 | ||
| 253 | 253 | } | |
| 254 | 254 | ||
| @@ -322,7 +322,7 @@ var xDBusProxyCallWithUnixFdList func(uintptr, string, *glib.Variant, DBusCallFl | |||
| 322 | 322 | // This method is only available on UNIX. | |
| 323 | 323 | func (x *DBusProxy) CallWithUnixFdList(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 324 | 324 | ||
| 325 | - | xDBusProxyCallWithUnixFdList(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 325 | + | xDBusProxyCallWithUnixFdList(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 326 | 326 | ||
| 327 | 327 | } | |
| 328 | 328 | ||
| @@ -643,7 +643,7 @@ func (x *DBusProxy) ConnectGSignal(cb *func(DBusProxy, string, string, uintptr)) | |||
| 643 | 643 | // any interface methods. | |
| 644 | 644 | func (x *DBusProxy) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 645 | 645 | ||
| 646 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 646 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 647 | 647 | ||
| 648 | 648 | } | |
| 649 | 649 | ||
| @@ -810,7 +810,7 @@ var xDBusProxyNew func(uintptr, DBusProxyFlags, *DBusInterfaceInfo, string, stri | |||
| 810 | 810 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | |
| 811 | 811 | func DBusProxyNew(ConnectionVar *DBusConnection, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 812 | 812 | ||
| 813 | - | xDBusProxyNew(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 813 | + | xDBusProxyNew(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 814 | 814 | ||
| 815 | 815 | } | |
| 816 | 816 | ||
| @@ -821,7 +821,7 @@ var xDBusProxyNewForBus func(BusType, DBusProxyFlags, *DBusInterfaceInfo, string | |||
| 821 | 821 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | |
| 822 | 822 | func DBusProxyNewForBus(BusTypeVar BusType, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 823 | 823 | ||
| 824 | - | xDBusProxyNewForBus(BusTypeVar, FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 824 | + | xDBusProxyNewForBus(BusTypeVar, FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 825 | 825 | ||
| 826 | 826 | } | |
| 827 | 827 | ||
| @@ -248,7 +248,7 @@ var xDBusProxyCall func(uintptr, string, *glib.Variant, DBusCallFlags, int, uint | |||||
| 248 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | 248 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | ||
| 249 | func (x *DBusProxy) Call(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 249 | func (x *DBusProxy) Call(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 250 | 250 | ||||
| 251 | - | xDBusProxyCall(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 251 | + | xDBusProxyCall(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 252 | 252 | ||||
| 253 | } | 253 | } | ||
| 254 | 254 | ||||
| @@ -322,7 +322,7 @@ var xDBusProxyCallWithUnixFdList func(uintptr, string, *glib.Variant, DBusCallFl | |||||
| 322 | // This method is only available on UNIX. | 322 | // This method is only available on UNIX. | ||
| 323 | func (x *DBusProxy) CallWithUnixFdList(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 323 | func (x *DBusProxy) CallWithUnixFdList(MethodNameVar string, ParametersVar *glib.Variant, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 324 | 324 | ||||
| 325 | - | xDBusProxyCallWithUnixFdList(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 325 | + | xDBusProxyCallWithUnixFdList(x.GoPointer(), MethodNameVar, ParametersVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 326 | 326 | ||||
| 327 | } | 327 | } | ||
| 328 | 328 | ||||
| @@ -643,7 +643,7 @@ func (x *DBusProxy) ConnectGSignal(cb *func(DBusProxy, string, string, uintptr)) | |||||
| 643 | // any interface methods. | 643 | // any interface methods. | ||
| 644 | func (x *DBusProxy) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 644 | func (x *DBusProxy) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 645 | 645 | ||||
| 646 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 646 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 647 | 647 | ||||
| 648 | } | 648 | } | ||
| 649 | 649 | ||||
| @@ -810,7 +810,7 @@ var xDBusProxyNew func(uintptr, DBusProxyFlags, *DBusInterfaceInfo, string, stri | |||||
| 810 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | 810 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | ||
| 811 | func DBusProxyNew(ConnectionVar *DBusConnection, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 811 | func DBusProxyNew(ConnectionVar *DBusConnection, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 812 | 812 | ||||
| 813 | - | xDBusProxyNew(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 813 | + | xDBusProxyNew(ConnectionVar.GoPointer(), FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 814 | 814 | ||||
| 815 | } | 815 | } | ||
| 816 | 816 | ||||
| @@ -821,7 +821,7 @@ var xDBusProxyNewForBus func(BusType, DBusProxyFlags, *DBusInterfaceInfo, string | |||||
| 821 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | 821 | // #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. | ||
| 822 | func DBusProxyNewForBus(BusTypeVar BusType, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 822 | func DBusProxyNewForBus(BusTypeVar BusType, FlagsVar DBusProxyFlags, InfoVar *DBusInterfaceInfo, NameVar string, ObjectPathVar string, InterfaceNameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 823 | 823 | ||||
| 824 | - | xDBusProxyNewForBus(BusTypeVar, FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 824 | + | xDBusProxyNewForBus(BusTypeVar, FlagsVar, InfoVar, NameVar, ObjectPathVar, InterfaceNameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 825 | 825 | ||||
| 826 | } | 826 | } | ||
| 827 | 827 | ||||
M v4/gio/gdesktopappinfo.go +3 -3
| @@ -377,7 +377,7 @@ var xDesktopAppInfoLaunchUrisAsManager func(uintptr, *glib.List, uintptr, glib.S | |||
| 377 | 377 | func (x *DesktopAppInfo) LaunchUrisAsManager(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr) (bool, error) { | |
| 378 | 378 | var cerr *glib.Error | |
| 379 | 379 | ||
| 380 | - | cret := xDesktopAppInfoLaunchUrisAsManager(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallback(UserSetupVar), UserSetupDataVar, glib.NewCallback(PidCallbackVar), PidCallbackDataVar, &cerr) | |
| 380 | + | cret := xDesktopAppInfoLaunchUrisAsManager(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallbackNullable(UserSetupVar), UserSetupDataVar, glib.NewCallbackNullable(PidCallbackVar), PidCallbackDataVar, &cerr) | |
| 381 | 381 | if cerr == nil { | |
| 382 | 382 | return cret, nil | |
| 383 | 383 | } | |
| @@ -396,7 +396,7 @@ var xDesktopAppInfoLaunchUrisAsManagerWithFds func(uintptr, *glib.List, uintptr, | |||
| 396 | 396 | func (x *DesktopAppInfo) LaunchUrisAsManagerWithFds(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | |
| 397 | 397 | var cerr *glib.Error | |
| 398 | 398 | ||
| 399 | - | cret := xDesktopAppInfoLaunchUrisAsManagerWithFds(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallback(UserSetupVar), UserSetupDataVar, glib.NewCallback(PidCallbackVar), PidCallbackDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | |
| 399 | + | cret := xDesktopAppInfoLaunchUrisAsManagerWithFds(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallbackNullable(UserSetupVar), UserSetupDataVar, glib.NewCallbackNullable(PidCallbackVar), PidCallbackDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | |
| 400 | 400 | if cerr == nil { | |
| 401 | 401 | return cret, nil | |
| 402 | 402 | } | |
| @@ -636,7 +636,7 @@ func (x *DesktopAppInfo) LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchCon | |||
| 636 | 636 | // g_app_info_launch_default_for_uri_async(). | |
| 637 | 637 | func (x *DesktopAppInfo) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 638 | 638 | ||
| 639 | - | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 639 | + | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 640 | 640 | ||
| 641 | 641 | } | |
| 642 | 642 | ||
| @@ -377,7 +377,7 @@ var xDesktopAppInfoLaunchUrisAsManager func(uintptr, *glib.List, uintptr, glib.S | |||||
| 377 | func (x *DesktopAppInfo) LaunchUrisAsManager(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr) (bool, error) { | 377 | func (x *DesktopAppInfo) LaunchUrisAsManager(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr) (bool, error) { | ||
| 378 | var cerr *glib.Error | 378 | var cerr *glib.Error | ||
| 379 | 379 | ||||
| 380 | - | cret := xDesktopAppInfoLaunchUrisAsManager(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallback(UserSetupVar), UserSetupDataVar, glib.NewCallback(PidCallbackVar), PidCallbackDataVar, &cerr) | 380 | + | cret := xDesktopAppInfoLaunchUrisAsManager(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallbackNullable(UserSetupVar), UserSetupDataVar, glib.NewCallbackNullable(PidCallbackVar), PidCallbackDataVar, &cerr) |
| 381 | if cerr == nil { | 381 | if cerr == nil { | ||
| 382 | return cret, nil | 382 | return cret, nil | ||
| 383 | } | 383 | } | ||
| @@ -396,7 +396,7 @@ var xDesktopAppInfoLaunchUrisAsManagerWithFds func(uintptr, *glib.List, uintptr, | |||||
| 396 | func (x *DesktopAppInfo) LaunchUrisAsManagerWithFds(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | 396 | func (x *DesktopAppInfo) LaunchUrisAsManagerWithFds(UrisVar *glib.List, LaunchContextVar *AppLaunchContext, SpawnFlagsVar glib.SpawnFlags, UserSetupVar *glib.SpawnChildSetupFunc, UserSetupDataVar uintptr, PidCallbackVar *DesktopAppLaunchCallback, PidCallbackDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | ||
| 397 | var cerr *glib.Error | 397 | var cerr *glib.Error | ||
| 398 | 398 | ||||
| 399 | - | cret := xDesktopAppInfoLaunchUrisAsManagerWithFds(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallback(UserSetupVar), UserSetupDataVar, glib.NewCallback(PidCallbackVar), PidCallbackDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | 399 | + | cret := xDesktopAppInfoLaunchUrisAsManagerWithFds(x.GoPointer(), UrisVar, LaunchContextVar.GoPointer(), SpawnFlagsVar, glib.NewCallbackNullable(UserSetupVar), UserSetupDataVar, glib.NewCallbackNullable(PidCallbackVar), PidCallbackDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) |
| 400 | if cerr == nil { | 400 | if cerr == nil { | ||
| 401 | return cret, nil | 401 | return cret, nil | ||
| 402 | } | 402 | } | ||
| @@ -636,7 +636,7 @@ func (x *DesktopAppInfo) LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchCon | |||||
| 636 | // g_app_info_launch_default_for_uri_async(). | 636 | // g_app_info_launch_default_for_uri_async(). | ||
| 637 | func (x *DesktopAppInfo) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 637 | func (x *DesktopAppInfo) LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 638 | 638 | ||||
| 639 | - | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 639 | + | XGAppInfoLaunchUrisAsync(x.GoPointer(), UrisVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 640 | 640 | ||||
| 641 | } | 641 | } | ||
| 642 | 642 | ||||
M v4/gio/gdrive.go +5 -5
| @@ -144,7 +144,7 @@ func (x *DriveBase) CanStop() bool { | |||
| 144 | 144 | // result of the operation. | |
| 145 | 145 | func (x *DriveBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 146 | 146 | ||
| 147 | - | XGDriveEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 147 | + | XGDriveEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 148 | 148 | ||
| 149 | 149 | } | |
| 150 | 150 | ||
| @@ -165,7 +165,7 @@ func (x *DriveBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 165 | 165 | // and #GAsyncResult data returned in the @callback. | |
| 166 | 166 | func (x *DriveBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 167 | 167 | ||
| 168 | - | XGDriveEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 168 | + | XGDriveEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 169 | 169 | ||
| 170 | 170 | } | |
| 171 | 171 | ||
| @@ -304,7 +304,7 @@ func (x *DriveBase) IsRemovable() bool { | |||
| 304 | 304 | // result of the operation. | |
| 305 | 305 | func (x *DriveBase) PollForMedia(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 306 | 306 | ||
| 307 | - | XGDrivePollForMedia(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 307 | + | XGDrivePollForMedia(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 308 | 308 | ||
| 309 | 309 | } | |
| 310 | 310 | ||
| @@ -327,7 +327,7 @@ func (x *DriveBase) PollForMediaFinish(ResultVar AsyncResult) (bool, error) { | |||
| 327 | 327 | // result of the operation. | |
| 328 | 328 | func (x *DriveBase) Start(FlagsVar DriveStartFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 329 | 329 | ||
| 330 | - | XGDriveStart(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 330 | + | XGDriveStart(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 331 | 331 | ||
| 332 | 332 | } | |
| 333 | 333 | ||
| @@ -350,7 +350,7 @@ func (x *DriveBase) StartFinish(ResultVar AsyncResult) (bool, error) { | |||
| 350 | 350 | // result of the operation. | |
| 351 | 351 | func (x *DriveBase) Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 352 | 352 | ||
| 353 | - | XGDriveStop(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 353 | + | XGDriveStop(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 354 | 354 | ||
| 355 | 355 | } | |
| 356 | 356 | ||
| @@ -144,7 +144,7 @@ func (x *DriveBase) CanStop() bool { | |||||
| 144 | // result of the operation. | 144 | // result of the operation. | ||
| 145 | func (x *DriveBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 145 | func (x *DriveBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 146 | 146 | ||||
| 147 | - | XGDriveEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 147 | + | XGDriveEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 148 | 148 | ||||
| 149 | } | 149 | } | ||
| 150 | 150 | ||||
| @@ -165,7 +165,7 @@ func (x *DriveBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 165 | // and #GAsyncResult data returned in the @callback. | 165 | // and #GAsyncResult data returned in the @callback. | ||
| 166 | func (x *DriveBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 166 | func (x *DriveBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 167 | 167 | ||||
| 168 | - | XGDriveEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 168 | + | XGDriveEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 169 | 169 | ||||
| 170 | } | 170 | } | ||
| 171 | 171 | ||||
| @@ -304,7 +304,7 @@ func (x *DriveBase) IsRemovable() bool { | |||||
| 304 | // result of the operation. | 304 | // result of the operation. | ||
| 305 | func (x *DriveBase) PollForMedia(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 305 | func (x *DriveBase) PollForMedia(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 306 | 306 | ||||
| 307 | - | XGDrivePollForMedia(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 307 | + | XGDrivePollForMedia(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 308 | 308 | ||||
| 309 | } | 309 | } | ||
| 310 | 310 | ||||
| @@ -327,7 +327,7 @@ func (x *DriveBase) PollForMediaFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 327 | // result of the operation. | 327 | // result of the operation. | ||
| 328 | func (x *DriveBase) Start(FlagsVar DriveStartFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 328 | func (x *DriveBase) Start(FlagsVar DriveStartFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 329 | 329 | ||||
| 330 | - | XGDriveStart(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 330 | + | XGDriveStart(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 331 | 331 | ||||
| 332 | } | 332 | } | ||
| 333 | 333 | ||||
| @@ -350,7 +350,7 @@ func (x *DriveBase) StartFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 350 | // result of the operation. | 350 | // result of the operation. | ||
| 351 | func (x *DriveBase) Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 351 | func (x *DriveBase) Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 352 | 352 | ||||
| 353 | - | XGDriveStop(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 353 | + | XGDriveStop(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 354 | 354 | ||||
| 355 | } | 355 | } | ||
| 356 | 356 | ||||
M v4/gio/gdtlsconnection.go +3 -3
| @@ -129,7 +129,7 @@ func (x *DtlsConnectionBase) Close(CancellableVar *Cancellable) (bool, error) { | |||
| 129 | 129 | // more information. | |
| 130 | 130 | func (x *DtlsConnectionBase) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 131 | 131 | ||
| 132 | - | XGDtlsConnectionCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 132 | + | XGDtlsConnectionCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 133 | 133 | ||
| 134 | 134 | } | |
| 135 | 135 | ||
| @@ -348,7 +348,7 @@ func (x *DtlsConnectionBase) Handshake(CancellableVar *Cancellable) (bool, error | |||
| 348 | 348 | // g_dtls_connection_handshake() for more information. | |
| 349 | 349 | func (x *DtlsConnectionBase) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 350 | 350 | ||
| 351 | - | XGDtlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 351 | + | XGDtlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 352 | 352 | ||
| 353 | 353 | } | |
| 354 | 354 | ||
| @@ -506,7 +506,7 @@ func (x *DtlsConnectionBase) Shutdown(ShutdownReadVar bool, ShutdownWriteVar boo | |||
| 506 | 506 | // g_dtls_connection_shutdown() for more information. | |
| 507 | 507 | func (x *DtlsConnectionBase) ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 508 | 508 | ||
| 509 | - | XGDtlsConnectionShutdownAsync(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 509 | + | XGDtlsConnectionShutdownAsync(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 510 | 510 | ||
| 511 | 511 | } | |
| 512 | 512 | ||
| @@ -129,7 +129,7 @@ func (x *DtlsConnectionBase) Close(CancellableVar *Cancellable) (bool, error) { | |||||
| 129 | // more information. | 129 | // more information. | ||
| 130 | func (x *DtlsConnectionBase) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 130 | func (x *DtlsConnectionBase) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 131 | 131 | ||||
| 132 | - | XGDtlsConnectionCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 132 | + | XGDtlsConnectionCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 133 | 133 | ||||
| 134 | } | 134 | } | ||
| 135 | 135 | ||||
| @@ -348,7 +348,7 @@ func (x *DtlsConnectionBase) Handshake(CancellableVar *Cancellable) (bool, error | |||||
| 348 | // g_dtls_connection_handshake() for more information. | 348 | // g_dtls_connection_handshake() for more information. | ||
| 349 | func (x *DtlsConnectionBase) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 349 | func (x *DtlsConnectionBase) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 350 | 350 | ||||
| 351 | - | XGDtlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 351 | + | XGDtlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 352 | 352 | ||||
| 353 | } | 353 | } | ||
| 354 | 354 | ||||
| @@ -506,7 +506,7 @@ func (x *DtlsConnectionBase) Shutdown(ShutdownReadVar bool, ShutdownWriteVar boo | |||||
| 506 | // g_dtls_connection_shutdown() for more information. | 506 | // g_dtls_connection_shutdown() for more information. | ||
| 507 | func (x *DtlsConnectionBase) ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 507 | func (x *DtlsConnectionBase) ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 508 | 508 | ||||
| 509 | - | XGDtlsConnectionShutdownAsync(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 509 | + | XGDtlsConnectionShutdownAsync(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 510 | 510 | ||||
| 511 | } | 511 | } | ||
| 512 | 512 | ||||
M v4/gio/gfile.go +37 -37
| @@ -304,7 +304,7 @@ func (x *FileBase) AppendTo(FlagsVar FileCreateFlags, CancellableVar *Cancellabl | |||
| 304 | 304 | // of the operation. | |
| 305 | 305 | func (x *FileBase) AppendToAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 306 | 306 | ||
| 307 | - | XGFileAppendToAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 307 | + | XGFileAppendToAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 308 | 308 | ||
| 309 | 309 | } | |
| 310 | 310 | ||
| @@ -391,7 +391,7 @@ func (x *FileBase) BuildAttributeListForCopy(FlagsVar FileCopyFlags, Cancellable | |||
| 391 | 391 | func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | |
| 392 | 392 | var cerr *glib.Error | |
| 393 | 393 | ||
| 394 | - | cret := XGFileCopy(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 394 | + | cret := XGFileCopy(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 395 | 395 | if cerr == nil { | |
| 396 | 396 | return cret, nil | |
| 397 | 397 | } | |
| @@ -411,7 +411,7 @@ func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||
| 411 | 411 | // g_file_copy_finish() to get the result of the operation. | |
| 412 | 412 | func (x *FileBase) CopyAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 413 | 413 | ||
| 414 | - | XGFileCopyAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallback(CallbackVar), UserDataVar) | |
| 414 | + | XGFileCopyAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 415 | 415 | ||
| 416 | 416 | } | |
| 417 | 417 | ||
| @@ -494,7 +494,7 @@ func (x *FileBase) Create(FlagsVar FileCreateFlags, CancellableVar *Cancellable) | |||
| 494 | 494 | // of the operation. | |
| 495 | 495 | func (x *FileBase) CreateAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 496 | 496 | ||
| 497 | - | XGFileCreateAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 497 | + | XGFileCreateAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 498 | 498 | ||
| 499 | 499 | } | |
| 500 | 500 | ||
| @@ -570,7 +570,7 @@ func (x *FileBase) CreateReadwrite(FlagsVar FileCreateFlags, CancellableVar *Can | |||
| 570 | 570 | // the result of the operation. | |
| 571 | 571 | func (x *FileBase) CreateReadwriteAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 572 | 572 | ||
| 573 | - | XGFileCreateReadwriteAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 573 | + | XGFileCreateReadwriteAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 574 | 574 | ||
| 575 | 575 | } | |
| 576 | 576 | ||
| @@ -633,7 +633,7 @@ func (x *FileBase) Delete(CancellableVar *Cancellable) (bool, error) { | |||
| 633 | 633 | // g_unlink(). | |
| 634 | 634 | func (x *FileBase) DeleteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 635 | 635 | ||
| 636 | - | XGFileDeleteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 636 | + | XGFileDeleteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 637 | 637 | ||
| 638 | 638 | } | |
| 639 | 639 | ||
| @@ -682,7 +682,7 @@ func (x *FileBase) Dup() *FileBase { | |||
| 682 | 682 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 683 | 683 | func (x *FileBase) EjectMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 684 | 684 | ||
| 685 | - | XGFileEjectMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 685 | + | XGFileEjectMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 686 | 686 | ||
| 687 | 687 | } | |
| 688 | 688 | ||
| @@ -709,7 +709,7 @@ func (x *FileBase) EjectMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 709 | 709 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 710 | 710 | func (x *FileBase) EjectMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 711 | 711 | ||
| 712 | - | XGFileEjectMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 712 | + | XGFileEjectMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 713 | 713 | ||
| 714 | 714 | } | |
| 715 | 715 | ||
| @@ -781,7 +781,7 @@ func (x *FileBase) EnumerateChildren(AttributesVar string, FlagsVar FileQueryInf | |||
| 781 | 781 | // the operation. | |
| 782 | 782 | func (x *FileBase) EnumerateChildrenAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 783 | 783 | ||
| 784 | - | XGFileEnumerateChildrenAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 784 | + | XGFileEnumerateChildrenAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 785 | 785 | ||
| 786 | 786 | } | |
| 787 | 787 | ||
| @@ -855,7 +855,7 @@ func (x *FileBase) FindEnclosingMount(CancellableVar *Cancellable) (*MountBase, | |||
| 855 | 855 | // get the result of the operation. | |
| 856 | 856 | func (x *FileBase) FindEnclosingMountAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 857 | 857 | ||
| 858 | - | XGFileFindEnclosingMountAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 858 | + | XGFileFindEnclosingMountAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 859 | 859 | ||
| 860 | 860 | } | |
| 861 | 861 | ||
| @@ -1127,7 +1127,7 @@ func (x *FileBase) LoadBytes(CancellableVar *Cancellable, EtagOutVar string) (*g | |||
| 1127 | 1127 | // See g_file_load_bytes() for more information. | |
| 1128 | 1128 | func (x *FileBase) LoadBytesAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1129 | 1129 | ||
| 1130 | - | XGFileLoadBytesAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1130 | + | XGFileLoadBytesAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1131 | 1131 | ||
| 1132 | 1132 | } | |
| 1133 | 1133 | ||
| @@ -1185,7 +1185,7 @@ func (x *FileBase) LoadContents(CancellableVar *Cancellable, ContentsVar []strin | |||
| 1185 | 1185 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 1186 | 1186 | func (x *FileBase) LoadContentsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1187 | 1187 | ||
| 1188 | - | XGFileLoadContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1188 | + | XGFileLoadContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1189 | 1189 | ||
| 1190 | 1190 | } | |
| 1191 | 1191 | ||
| @@ -1218,7 +1218,7 @@ func (x *FileBase) LoadContentsFinish(ResVar AsyncResult, ContentsVar []string, | |||
| 1218 | 1218 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 1219 | 1219 | func (x *FileBase) LoadPartialContentsAsync(CancellableVar *Cancellable, ReadMoreCallbackVar *FileReadMoreCallback, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1220 | 1220 | ||
| 1221 | - | XGFileLoadPartialContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(ReadMoreCallbackVar), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1221 | + | XGFileLoadPartialContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(ReadMoreCallbackVar), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1222 | 1222 | ||
| 1223 | 1223 | } | |
| 1224 | 1224 | ||
| @@ -1266,7 +1266,7 @@ func (x *FileBase) MakeDirectory(CancellableVar *Cancellable) (bool, error) { | |||
| 1266 | 1266 | // Asynchronously creates a directory. | |
| 1267 | 1267 | func (x *FileBase) MakeDirectoryAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1268 | 1268 | ||
| 1269 | - | XGFileMakeDirectoryAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1269 | + | XGFileMakeDirectoryAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1270 | 1270 | ||
| 1271 | 1271 | } | |
| 1272 | 1272 | ||
| @@ -1345,7 +1345,7 @@ func (x *FileBase) MakeSymbolicLink(SymlinkValueVar string, CancellableVar *Canc | |||
| 1345 | 1345 | func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, DiskUsageVar uint64, NumDirsVar uint64, NumFilesVar uint64) (bool, error) { | |
| 1346 | 1346 | var cerr *glib.Error | |
| 1347 | 1347 | ||
| 1348 | - | cret := XGFileMeasureDiskUsage(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressDataVar, DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) | |
| 1348 | + | cret := XGFileMeasureDiskUsage(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressDataVar, DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) | |
| 1349 | 1349 | if cerr == nil { | |
| 1350 | 1350 | return cret, nil | |
| 1351 | 1351 | } | |
| @@ -1359,7 +1359,7 @@ func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *C | |||
| 1359 | 1359 | // there for more information. | |
| 1360 | 1360 | func (x *FileBase) MeasureDiskUsageAsync(FlagsVar FileMeasureFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1361 | 1361 | ||
| 1362 | - | XGFileMeasureDiskUsageAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressDataVar, glib.NewCallback(CallbackVar), UserDataVar) | |
| 1362 | + | XGFileMeasureDiskUsageAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1363 | 1363 | ||
| 1364 | 1364 | } | |
| 1365 | 1365 | ||
| @@ -1475,7 +1475,7 @@ func (x *FileBase) MonitorFile(FlagsVar FileMonitorFlags, CancellableVar *Cancel | |||
| 1475 | 1475 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 1476 | 1476 | func (x *FileBase) MountEnclosingVolume(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1477 | 1477 | ||
| 1478 | - | XGFileMountEnclosingVolume(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1478 | + | XGFileMountEnclosingVolume(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1479 | 1479 | ||
| 1480 | 1480 | } | |
| 1481 | 1481 | ||
| @@ -1504,7 +1504,7 @@ func (x *FileBase) MountEnclosingVolumeFinish(ResultVar AsyncResult) (bool, erro | |||
| 1504 | 1504 | // the result of the operation. | |
| 1505 | 1505 | func (x *FileBase) MountMountable(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1506 | 1506 | ||
| 1507 | - | XGFileMountMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1507 | + | XGFileMountMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1508 | 1508 | ||
| 1509 | 1509 | } | |
| 1510 | 1510 | ||
| @@ -1566,7 +1566,7 @@ func (x *FileBase) MountMountableFinish(ResultVar AsyncResult) (*FileBase, error | |||
| 1566 | 1566 | func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | |
| 1567 | 1567 | var cerr *glib.Error | |
| 1568 | 1568 | ||
| 1569 | - | cret := XGFileMove(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 1569 | + | cret := XGFileMove(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | |
| 1570 | 1570 | if cerr == nil { | |
| 1571 | 1571 | return cret, nil | |
| 1572 | 1572 | } | |
| @@ -1585,7 +1585,7 @@ func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||
| 1585 | 1585 | // g_file_move_finish() to get the result of the operation. | |
| 1586 | 1586 | func (x *FileBase) MoveAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1587 | 1587 | ||
| 1588 | - | XGFileMoveAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallback(CallbackVar), UserDataVar) | |
| 1588 | + | XGFileMoveAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1589 | 1589 | ||
| 1590 | 1590 | } | |
| 1591 | 1591 | ||
| @@ -1646,7 +1646,7 @@ func (x *FileBase) OpenReadwrite(CancellableVar *Cancellable) (*FileIOStream, er | |||
| 1646 | 1646 | // the result of the operation. | |
| 1647 | 1647 | func (x *FileBase) OpenReadwriteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1648 | 1648 | ||
| 1649 | - | XGFileOpenReadwriteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1649 | + | XGFileOpenReadwriteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1650 | 1650 | ||
| 1651 | 1651 | } | |
| 1652 | 1652 | ||
| @@ -1694,7 +1694,7 @@ func (x *FileBase) PeekPath() string { | |||
| 1694 | 1694 | // the result of the operation. | |
| 1695 | 1695 | func (x *FileBase) PollMountable(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1696 | 1696 | ||
| 1697 | - | XGFilePollMountable(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1697 | + | XGFilePollMountable(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1698 | 1698 | ||
| 1699 | 1699 | } | |
| 1700 | 1700 | ||
| @@ -1740,7 +1740,7 @@ func (x *FileBase) QueryDefaultHandler(CancellableVar *Cancellable) (*AppInfoBas | |||
| 1740 | 1740 | // Async version of g_file_query_default_handler(). | |
| 1741 | 1741 | func (x *FileBase) QueryDefaultHandlerAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1742 | 1742 | ||
| 1743 | - | XGFileQueryDefaultHandlerAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1743 | + | XGFileQueryDefaultHandlerAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1744 | 1744 | ||
| 1745 | 1745 | } | |
| 1746 | 1746 | ||
| @@ -1858,7 +1858,7 @@ func (x *FileBase) QueryFilesystemInfo(AttributesVar string, CancellableVar *Can | |||
| 1858 | 1858 | // operation. | |
| 1859 | 1859 | func (x *FileBase) QueryFilesystemInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1860 | 1860 | ||
| 1861 | - | XGFileQueryFilesystemInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1861 | + | XGFileQueryFilesystemInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1862 | 1862 | ||
| 1863 | 1863 | } | |
| 1864 | 1864 | ||
| @@ -1941,7 +1941,7 @@ func (x *FileBase) QueryInfo(AttributesVar string, FlagsVar FileQueryInfoFlags, | |||
| 1941 | 1941 | // then call g_file_query_info_finish() to get the result of the operation. | |
| 1942 | 1942 | func (x *FileBase) QueryInfoAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1943 | 1943 | ||
| 1944 | - | XGFileQueryInfoAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1944 | + | XGFileQueryInfoAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1945 | 1945 | ||
| 1946 | 1946 | } | |
| 1947 | 1947 | ||
| @@ -2043,7 +2043,7 @@ func (x *FileBase) Read(CancellableVar *Cancellable) (*FileInputStream, error) { | |||
| 2043 | 2043 | // of the operation. | |
| 2044 | 2044 | func (x *FileBase) ReadAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2045 | 2045 | ||
| 2046 | - | XGFileReadAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2046 | + | XGFileReadAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2047 | 2047 | ||
| 2048 | 2048 | } | |
| 2049 | 2049 | ||
| @@ -2137,7 +2137,7 @@ func (x *FileBase) Replace(EtagVar string, MakeBackupVar bool, FlagsVar FileCrea | |||
| 2137 | 2137 | // of the operation. | |
| 2138 | 2138 | func (x *FileBase) ReplaceAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2139 | 2139 | ||
| 2140 | - | XGFileReplaceAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2140 | + | XGFileReplaceAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2141 | 2141 | ||
| 2142 | 2142 | } | |
| 2143 | 2143 | ||
| @@ -2189,7 +2189,7 @@ func (x *FileBase) ReplaceContents(ContentsVar string, LengthVar uint, EtagVar s | |||
| 2189 | 2189 | // contents (without copying) for the duration of the call. | |
| 2190 | 2190 | func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2191 | 2191 | ||
| 2192 | - | XGFileReplaceContentsAsync(x.GoPointer(), ContentsVar, LengthVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2192 | + | XGFileReplaceContentsAsync(x.GoPointer(), ContentsVar, LengthVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2193 | 2193 | ||
| 2194 | 2194 | } | |
| 2195 | 2195 | ||
| @@ -2203,7 +2203,7 @@ func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, Etag | |||
| 2203 | 2203 | // g_file_replace_contents_finish(). | |
| 2204 | 2204 | func (x *FileBase) ReplaceContentsBytesAsync(ContentsVar *glib.Bytes, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2205 | 2205 | ||
| 2206 | - | XGFileReplaceContentsBytesAsync(x.GoPointer(), ContentsVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2206 | + | XGFileReplaceContentsBytesAsync(x.GoPointer(), ContentsVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2207 | 2207 | ||
| 2208 | 2208 | } | |
| 2209 | 2209 | ||
| @@ -2281,7 +2281,7 @@ func (x *FileBase) ReplaceReadwrite(EtagVar string, MakeBackupVar bool, FlagsVar | |||
| 2281 | 2281 | // the result of the operation. | |
| 2282 | 2282 | func (x *FileBase) ReplaceReadwriteAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2283 | 2283 | ||
| 2284 | - | XGFileReplaceReadwriteAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2284 | + | XGFileReplaceReadwriteAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2285 | 2285 | ||
| 2286 | 2286 | } | |
| 2287 | 2287 | ||
| @@ -2456,7 +2456,7 @@ func (x *FileBase) SetAttributeUint64(AttributeVar string, ValueVar uint64, Flag | |||
| 2456 | 2456 | // the result of the operation. | |
| 2457 | 2457 | func (x *FileBase) SetAttributesAsync(InfoVar *FileInfo, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2458 | 2458 | ||
| 2459 | - | XGFileSetAttributesAsync(x.GoPointer(), InfoVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2459 | + | XGFileSetAttributesAsync(x.GoPointer(), InfoVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2460 | 2460 | ||
| 2461 | 2461 | } | |
| 2462 | 2462 | ||
| @@ -2538,7 +2538,7 @@ func (x *FileBase) SetDisplayName(DisplayNameVar string, CancellableVar *Cancell | |||
| 2538 | 2538 | // the result of the operation. | |
| 2539 | 2539 | func (x *FileBase) SetDisplayNameAsync(DisplayNameVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2540 | 2540 | ||
| 2541 | - | XGFileSetDisplayNameAsync(x.GoPointer(), DisplayNameVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2541 | + | XGFileSetDisplayNameAsync(x.GoPointer(), DisplayNameVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2542 | 2542 | ||
| 2543 | 2543 | } | |
| 2544 | 2544 | ||
| @@ -2575,7 +2575,7 @@ func (x *FileBase) SetDisplayNameFinish(ResVar AsyncResult) (*FileBase, error) { | |||
| 2575 | 2575 | // the result of the operation. | |
| 2576 | 2576 | func (x *FileBase) StartMountable(FlagsVar DriveStartFlags, StartOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2577 | 2577 | ||
| 2578 | - | XGFileStartMountable(x.GoPointer(), FlagsVar, StartOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2578 | + | XGFileStartMountable(x.GoPointer(), FlagsVar, StartOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2579 | 2579 | ||
| 2580 | 2580 | } | |
| 2581 | 2581 | ||
| @@ -2605,7 +2605,7 @@ func (x *FileBase) StartMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 2605 | 2605 | // the result of the operation. | |
| 2606 | 2606 | func (x *FileBase) StopMountable(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2607 | 2607 | ||
| 2608 | - | XGFileStopMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2608 | + | XGFileStopMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2609 | 2609 | ||
| 2610 | 2610 | } | |
| 2611 | 2611 | ||
| @@ -2658,7 +2658,7 @@ func (x *FileBase) Trash(CancellableVar *Cancellable) (bool, error) { | |||
| 2658 | 2658 | // Asynchronously sends @file to the Trash location, if possible. | |
| 2659 | 2659 | func (x *FileBase) TrashAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2660 | 2660 | ||
| 2661 | - | XGFileTrashAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2661 | + | XGFileTrashAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2662 | 2662 | ||
| 2663 | 2663 | } | |
| 2664 | 2664 | ||
| @@ -2686,7 +2686,7 @@ func (x *FileBase) TrashFinish(ResultVar AsyncResult) (bool, error) { | |||
| 2686 | 2686 | // the result of the operation. | |
| 2687 | 2687 | func (x *FileBase) UnmountMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2688 | 2688 | ||
| 2689 | - | XGFileUnmountMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2689 | + | XGFileUnmountMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2690 | 2690 | ||
| 2691 | 2691 | } | |
| 2692 | 2692 | ||
| @@ -2716,7 +2716,7 @@ func (x *FileBase) UnmountMountableFinish(ResultVar AsyncResult) (bool, error) { | |||
| 2716 | 2716 | // the result of the operation. | |
| 2717 | 2717 | func (x *FileBase) UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2718 | 2718 | ||
| 2719 | - | XGFileUnmountMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2719 | + | XGFileUnmountMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2720 | 2720 | ||
| 2721 | 2721 | } | |
| 2722 | 2722 | ||
| @@ -304,7 +304,7 @@ func (x *FileBase) AppendTo(FlagsVar FileCreateFlags, CancellableVar *Cancellabl | |||||
| 304 | // of the operation. | 304 | // of the operation. | ||
| 305 | func (x *FileBase) AppendToAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 305 | func (x *FileBase) AppendToAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 306 | 306 | ||||
| 307 | - | XGFileAppendToAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 307 | + | XGFileAppendToAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 308 | 308 | ||||
| 309 | } | 309 | } | ||
| 310 | 310 | ||||
| @@ -391,7 +391,7 @@ func (x *FileBase) BuildAttributeListForCopy(FlagsVar FileCopyFlags, Cancellable | |||||
| 391 | func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | 391 | func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | ||
| 392 | var cerr *glib.Error | 392 | var cerr *glib.Error | ||
| 393 | 393 | ||||
| 394 | - | cret := XGFileCopy(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | 394 | + | cret := XGFileCopy(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) |
| 395 | if cerr == nil { | 395 | if cerr == nil { | ||
| 396 | return cret, nil | 396 | return cret, nil | ||
| 397 | } | 397 | } | ||
| @@ -411,7 +411,7 @@ func (x *FileBase) Copy(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||||
| 411 | // g_file_copy_finish() to get the result of the operation. | 411 | // g_file_copy_finish() to get the result of the operation. | ||
| 412 | func (x *FileBase) CopyAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 412 | func (x *FileBase) CopyAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 413 | 413 | ||||
| 414 | - | XGFileCopyAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallback(CallbackVar), UserDataVar) | 414 | + | XGFileCopyAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 415 | 415 | ||||
| 416 | } | 416 | } | ||
| 417 | 417 | ||||
| @@ -494,7 +494,7 @@ func (x *FileBase) Create(FlagsVar FileCreateFlags, CancellableVar *Cancellable) | |||||
| 494 | // of the operation. | 494 | // of the operation. | ||
| 495 | func (x *FileBase) CreateAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 495 | func (x *FileBase) CreateAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 496 | 496 | ||||
| 497 | - | XGFileCreateAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 497 | + | XGFileCreateAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 498 | 498 | ||||
| 499 | } | 499 | } | ||
| 500 | 500 | ||||
| @@ -570,7 +570,7 @@ func (x *FileBase) CreateReadwrite(FlagsVar FileCreateFlags, CancellableVar *Can | |||||
| 570 | // the result of the operation. | 570 | // the result of the operation. | ||
| 571 | func (x *FileBase) CreateReadwriteAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 571 | func (x *FileBase) CreateReadwriteAsync(FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 572 | 572 | ||||
| 573 | - | XGFileCreateReadwriteAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 573 | + | XGFileCreateReadwriteAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 574 | 574 | ||||
| 575 | } | 575 | } | ||
| 576 | 576 | ||||
| @@ -633,7 +633,7 @@ func (x *FileBase) Delete(CancellableVar *Cancellable) (bool, error) { | |||||
| 633 | // g_unlink(). | 633 | // g_unlink(). | ||
| 634 | func (x *FileBase) DeleteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 634 | func (x *FileBase) DeleteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 635 | 635 | ||||
| 636 | - | XGFileDeleteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 636 | + | XGFileDeleteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 637 | 637 | ||||
| 638 | } | 638 | } | ||
| 639 | 639 | ||||
| @@ -682,7 +682,7 @@ func (x *FileBase) Dup() *FileBase { | |||||
| 682 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 682 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 683 | func (x *FileBase) EjectMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 683 | func (x *FileBase) EjectMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 684 | 684 | ||||
| 685 | - | XGFileEjectMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 685 | + | XGFileEjectMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 686 | 686 | ||||
| 687 | } | 687 | } | ||
| 688 | 688 | ||||
| @@ -709,7 +709,7 @@ func (x *FileBase) EjectMountableFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 709 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 709 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 710 | func (x *FileBase) EjectMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 710 | func (x *FileBase) EjectMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 711 | 711 | ||||
| 712 | - | XGFileEjectMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 712 | + | XGFileEjectMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 713 | 713 | ||||
| 714 | } | 714 | } | ||
| 715 | 715 | ||||
| @@ -781,7 +781,7 @@ func (x *FileBase) EnumerateChildren(AttributesVar string, FlagsVar FileQueryInf | |||||
| 781 | // the operation. | 781 | // the operation. | ||
| 782 | func (x *FileBase) EnumerateChildrenAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 782 | func (x *FileBase) EnumerateChildrenAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 783 | 783 | ||||
| 784 | - | XGFileEnumerateChildrenAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 784 | + | XGFileEnumerateChildrenAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 785 | 785 | ||||
| 786 | } | 786 | } | ||
| 787 | 787 | ||||
| @@ -855,7 +855,7 @@ func (x *FileBase) FindEnclosingMount(CancellableVar *Cancellable) (*MountBase, | |||||
| 855 | // get the result of the operation. | 855 | // get the result of the operation. | ||
| 856 | func (x *FileBase) FindEnclosingMountAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 856 | func (x *FileBase) FindEnclosingMountAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 857 | 857 | ||||
| 858 | - | XGFileFindEnclosingMountAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 858 | + | XGFileFindEnclosingMountAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 859 | 859 | ||||
| 860 | } | 860 | } | ||
| 861 | 861 | ||||
| @@ -1127,7 +1127,7 @@ func (x *FileBase) LoadBytes(CancellableVar *Cancellable, EtagOutVar string) (*g | |||||
| 1127 | // See g_file_load_bytes() for more information. | 1127 | // See g_file_load_bytes() for more information. | ||
| 1128 | func (x *FileBase) LoadBytesAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1128 | func (x *FileBase) LoadBytesAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1129 | 1129 | ||||
| 1130 | - | XGFileLoadBytesAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1130 | + | XGFileLoadBytesAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1131 | 1131 | ||||
| 1132 | } | 1132 | } | ||
| 1133 | 1133 | ||||
| @@ -1185,7 +1185,7 @@ func (x *FileBase) LoadContents(CancellableVar *Cancellable, ContentsVar []strin | |||||
| 1185 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 1185 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 1186 | func (x *FileBase) LoadContentsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1186 | func (x *FileBase) LoadContentsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1187 | 1187 | ||||
| 1188 | - | XGFileLoadContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1188 | + | XGFileLoadContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1189 | 1189 | ||||
| 1190 | } | 1190 | } | ||
| 1191 | 1191 | ||||
| @@ -1218,7 +1218,7 @@ func (x *FileBase) LoadContentsFinish(ResVar AsyncResult, ContentsVar []string, | |||||
| 1218 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 1218 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 1219 | func (x *FileBase) LoadPartialContentsAsync(CancellableVar *Cancellable, ReadMoreCallbackVar *FileReadMoreCallback, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1219 | func (x *FileBase) LoadPartialContentsAsync(CancellableVar *Cancellable, ReadMoreCallbackVar *FileReadMoreCallback, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1220 | 1220 | ||||
| 1221 | - | XGFileLoadPartialContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(ReadMoreCallbackVar), glib.NewCallback(CallbackVar), UserDataVar) | 1221 | + | XGFileLoadPartialContentsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(ReadMoreCallbackVar), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1222 | 1222 | ||||
| 1223 | } | 1223 | } | ||
| 1224 | 1224 | ||||
| @@ -1266,7 +1266,7 @@ func (x *FileBase) MakeDirectory(CancellableVar *Cancellable) (bool, error) { | |||||
| 1266 | // Asynchronously creates a directory. | 1266 | // Asynchronously creates a directory. | ||
| 1267 | func (x *FileBase) MakeDirectoryAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1267 | func (x *FileBase) MakeDirectoryAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1268 | 1268 | ||||
| 1269 | - | XGFileMakeDirectoryAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1269 | + | XGFileMakeDirectoryAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1270 | 1270 | ||||
| 1271 | } | 1271 | } | ||
| 1272 | 1272 | ||||
| @@ -1345,7 +1345,7 @@ func (x *FileBase) MakeSymbolicLink(SymlinkValueVar string, CancellableVar *Canc | |||||
| 1345 | func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, DiskUsageVar uint64, NumDirsVar uint64, NumFilesVar uint64) (bool, error) { | 1345 | func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, DiskUsageVar uint64, NumDirsVar uint64, NumFilesVar uint64) (bool, error) { | ||
| 1346 | var cerr *glib.Error | 1346 | var cerr *glib.Error | ||
| 1347 | 1347 | ||||
| 1348 | - | cret := XGFileMeasureDiskUsage(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressDataVar, DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) | 1348 | + | cret := XGFileMeasureDiskUsage(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressDataVar, DiskUsageVar, NumDirsVar, NumFilesVar, &cerr) |
| 1349 | if cerr == nil { | 1349 | if cerr == nil { | ||
| 1350 | return cret, nil | 1350 | return cret, nil | ||
| 1351 | } | 1351 | } | ||
| @@ -1359,7 +1359,7 @@ func (x *FileBase) MeasureDiskUsage(FlagsVar FileMeasureFlags, CancellableVar *C | |||||
| 1359 | // there for more information. | 1359 | // there for more information. | ||
| 1360 | func (x *FileBase) MeasureDiskUsageAsync(FlagsVar FileMeasureFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1360 | func (x *FileBase) MeasureDiskUsageAsync(FlagsVar FileMeasureFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileMeasureProgressCallback, ProgressDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1361 | 1361 | ||||
| 1362 | - | XGFileMeasureDiskUsageAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressDataVar, glib.NewCallback(CallbackVar), UserDataVar) | 1362 | + | XGFileMeasureDiskUsageAsync(x.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1363 | 1363 | ||||
| 1364 | } | 1364 | } | ||
| 1365 | 1365 | ||||
| @@ -1475,7 +1475,7 @@ func (x *FileBase) MonitorFile(FlagsVar FileMonitorFlags, CancellableVar *Cancel | |||||
| 1475 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 1475 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 1476 | func (x *FileBase) MountEnclosingVolume(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1476 | func (x *FileBase) MountEnclosingVolume(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1477 | 1477 | ||||
| 1478 | - | XGFileMountEnclosingVolume(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1478 | + | XGFileMountEnclosingVolume(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1479 | 1479 | ||||
| 1480 | } | 1480 | } | ||
| 1481 | 1481 | ||||
| @@ -1504,7 +1504,7 @@ func (x *FileBase) MountEnclosingVolumeFinish(ResultVar AsyncResult) (bool, erro | |||||
| 1504 | // the result of the operation. | 1504 | // the result of the operation. | ||
| 1505 | func (x *FileBase) MountMountable(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1505 | func (x *FileBase) MountMountable(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1506 | 1506 | ||||
| 1507 | - | XGFileMountMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1507 | + | XGFileMountMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1508 | 1508 | ||||
| 1509 | } | 1509 | } | ||
| 1510 | 1510 | ||||
| @@ -1566,7 +1566,7 @@ func (x *FileBase) MountMountableFinish(ResultVar AsyncResult) (*FileBase, error | |||||
| 1566 | func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | 1566 | func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr) (bool, error) { | ||
| 1567 | var cerr *glib.Error | 1567 | var cerr *glib.Error | ||
| 1568 | 1568 | ||||
| 1569 | - | cret := XGFileMove(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) | 1569 | + | cret := XGFileMove(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, &cerr) |
| 1570 | if cerr == nil { | 1570 | if cerr == nil { | ||
| 1571 | return cret, nil | 1571 | return cret, nil | ||
| 1572 | } | 1572 | } | ||
| @@ -1585,7 +1585,7 @@ func (x *FileBase) Move(DestinationVar File, FlagsVar FileCopyFlags, Cancellable | |||||
| 1585 | // g_file_move_finish() to get the result of the operation. | 1585 | // g_file_move_finish() to get the result of the operation. | ||
| 1586 | func (x *FileBase) MoveAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1586 | func (x *FileBase) MoveAsync(DestinationVar File, FlagsVar FileCopyFlags, IoPriorityVar int, CancellableVar *Cancellable, ProgressCallbackVar *FileProgressCallback, ProgressCallbackDataVar uintptr, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1587 | 1587 | ||||
| 1588 | - | XGFileMoveAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallback(CallbackVar), UserDataVar) | 1588 | + | XGFileMoveAsync(x.GoPointer(), DestinationVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(ProgressCallbackVar), ProgressCallbackDataVar, glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1589 | 1589 | ||||
| 1590 | } | 1590 | } | ||
| 1591 | 1591 | ||||
| @@ -1646,7 +1646,7 @@ func (x *FileBase) OpenReadwrite(CancellableVar *Cancellable) (*FileIOStream, er | |||||
| 1646 | // the result of the operation. | 1646 | // the result of the operation. | ||
| 1647 | func (x *FileBase) OpenReadwriteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1647 | func (x *FileBase) OpenReadwriteAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1648 | 1648 | ||||
| 1649 | - | XGFileOpenReadwriteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1649 | + | XGFileOpenReadwriteAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1650 | 1650 | ||||
| 1651 | } | 1651 | } | ||
| 1652 | 1652 | ||||
| @@ -1694,7 +1694,7 @@ func (x *FileBase) PeekPath() string { | |||||
| 1694 | // the result of the operation. | 1694 | // the result of the operation. | ||
| 1695 | func (x *FileBase) PollMountable(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1695 | func (x *FileBase) PollMountable(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1696 | 1696 | ||||
| 1697 | - | XGFilePollMountable(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1697 | + | XGFilePollMountable(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1698 | 1698 | ||||
| 1699 | } | 1699 | } | ||
| 1700 | 1700 | ||||
| @@ -1740,7 +1740,7 @@ func (x *FileBase) QueryDefaultHandler(CancellableVar *Cancellable) (*AppInfoBas | |||||
| 1740 | // Async version of g_file_query_default_handler(). | 1740 | // Async version of g_file_query_default_handler(). | ||
| 1741 | func (x *FileBase) QueryDefaultHandlerAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1741 | func (x *FileBase) QueryDefaultHandlerAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1742 | 1742 | ||||
| 1743 | - | XGFileQueryDefaultHandlerAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1743 | + | XGFileQueryDefaultHandlerAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1744 | 1744 | ||||
| 1745 | } | 1745 | } | ||
| 1746 | 1746 | ||||
| @@ -1858,7 +1858,7 @@ func (x *FileBase) QueryFilesystemInfo(AttributesVar string, CancellableVar *Can | |||||
| 1858 | // operation. | 1858 | // operation. | ||
| 1859 | func (x *FileBase) QueryFilesystemInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1859 | func (x *FileBase) QueryFilesystemInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1860 | 1860 | ||||
| 1861 | - | XGFileQueryFilesystemInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1861 | + | XGFileQueryFilesystemInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1862 | 1862 | ||||
| 1863 | } | 1863 | } | ||
| 1864 | 1864 | ||||
| @@ -1941,7 +1941,7 @@ func (x *FileBase) QueryInfo(AttributesVar string, FlagsVar FileQueryInfoFlags, | |||||
| 1941 | // then call g_file_query_info_finish() to get the result of the operation. | 1941 | // then call g_file_query_info_finish() to get the result of the operation. | ||
| 1942 | func (x *FileBase) QueryInfoAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1942 | func (x *FileBase) QueryInfoAsync(AttributesVar string, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1943 | 1943 | ||||
| 1944 | - | XGFileQueryInfoAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1944 | + | XGFileQueryInfoAsync(x.GoPointer(), AttributesVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1945 | 1945 | ||||
| 1946 | } | 1946 | } | ||
| 1947 | 1947 | ||||
| @@ -2043,7 +2043,7 @@ func (x *FileBase) Read(CancellableVar *Cancellable) (*FileInputStream, error) { | |||||
| 2043 | // of the operation. | 2043 | // of the operation. | ||
| 2044 | func (x *FileBase) ReadAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2044 | func (x *FileBase) ReadAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2045 | 2045 | ||||
| 2046 | - | XGFileReadAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2046 | + | XGFileReadAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2047 | 2047 | ||||
| 2048 | } | 2048 | } | ||
| 2049 | 2049 | ||||
| @@ -2137,7 +2137,7 @@ func (x *FileBase) Replace(EtagVar string, MakeBackupVar bool, FlagsVar FileCrea | |||||
| 2137 | // of the operation. | 2137 | // of the operation. | ||
| 2138 | func (x *FileBase) ReplaceAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2138 | func (x *FileBase) ReplaceAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2139 | 2139 | ||||
| 2140 | - | XGFileReplaceAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2140 | + | XGFileReplaceAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2141 | 2141 | ||||
| 2142 | } | 2142 | } | ||
| 2143 | 2143 | ||||
| @@ -2189,7 +2189,7 @@ func (x *FileBase) ReplaceContents(ContentsVar string, LengthVar uint, EtagVar s | |||||
| 2189 | // contents (without copying) for the duration of the call. | 2189 | // contents (without copying) for the duration of the call. | ||
| 2190 | func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2190 | func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2191 | 2191 | ||||
| 2192 | - | XGFileReplaceContentsAsync(x.GoPointer(), ContentsVar, LengthVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2192 | + | XGFileReplaceContentsAsync(x.GoPointer(), ContentsVar, LengthVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2193 | 2193 | ||||
| 2194 | } | 2194 | } | ||
| 2195 | 2195 | ||||
| @@ -2203,7 +2203,7 @@ func (x *FileBase) ReplaceContentsAsync(ContentsVar string, LengthVar uint, Etag | |||||
| 2203 | // g_file_replace_contents_finish(). | 2203 | // g_file_replace_contents_finish(). | ||
| 2204 | func (x *FileBase) ReplaceContentsBytesAsync(ContentsVar *glib.Bytes, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2204 | func (x *FileBase) ReplaceContentsBytesAsync(ContentsVar *glib.Bytes, EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2205 | 2205 | ||||
| 2206 | - | XGFileReplaceContentsBytesAsync(x.GoPointer(), ContentsVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2206 | + | XGFileReplaceContentsBytesAsync(x.GoPointer(), ContentsVar, EtagVar, MakeBackupVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2207 | 2207 | ||||
| 2208 | } | 2208 | } | ||
| 2209 | 2209 | ||||
| @@ -2281,7 +2281,7 @@ func (x *FileBase) ReplaceReadwrite(EtagVar string, MakeBackupVar bool, FlagsVar | |||||
| 2281 | // the result of the operation. | 2281 | // the result of the operation. | ||
| 2282 | func (x *FileBase) ReplaceReadwriteAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2282 | func (x *FileBase) ReplaceReadwriteAsync(EtagVar string, MakeBackupVar bool, FlagsVar FileCreateFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2283 | 2283 | ||||
| 2284 | - | XGFileReplaceReadwriteAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2284 | + | XGFileReplaceReadwriteAsync(x.GoPointer(), EtagVar, MakeBackupVar, FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2285 | 2285 | ||||
| 2286 | } | 2286 | } | ||
| 2287 | 2287 | ||||
| @@ -2456,7 +2456,7 @@ func (x *FileBase) SetAttributeUint64(AttributeVar string, ValueVar uint64, Flag | |||||
| 2456 | // the result of the operation. | 2456 | // the result of the operation. | ||
| 2457 | func (x *FileBase) SetAttributesAsync(InfoVar *FileInfo, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2457 | func (x *FileBase) SetAttributesAsync(InfoVar *FileInfo, FlagsVar FileQueryInfoFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2458 | 2458 | ||||
| 2459 | - | XGFileSetAttributesAsync(x.GoPointer(), InfoVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2459 | + | XGFileSetAttributesAsync(x.GoPointer(), InfoVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2460 | 2460 | ||||
| 2461 | } | 2461 | } | ||
| 2462 | 2462 | ||||
| @@ -2538,7 +2538,7 @@ func (x *FileBase) SetDisplayName(DisplayNameVar string, CancellableVar *Cancell | |||||
| 2538 | // the result of the operation. | 2538 | // the result of the operation. | ||
| 2539 | func (x *FileBase) SetDisplayNameAsync(DisplayNameVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2539 | func (x *FileBase) SetDisplayNameAsync(DisplayNameVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2540 | 2540 | ||||
| 2541 | - | XGFileSetDisplayNameAsync(x.GoPointer(), DisplayNameVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2541 | + | XGFileSetDisplayNameAsync(x.GoPointer(), DisplayNameVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2542 | 2542 | ||||
| 2543 | } | 2543 | } | ||
| 2544 | 2544 | ||||
| @@ -2575,7 +2575,7 @@ func (x *FileBase) SetDisplayNameFinish(ResVar AsyncResult) (*FileBase, error) { | |||||
| 2575 | // the result of the operation. | 2575 | // the result of the operation. | ||
| 2576 | func (x *FileBase) StartMountable(FlagsVar DriveStartFlags, StartOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2576 | func (x *FileBase) StartMountable(FlagsVar DriveStartFlags, StartOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2577 | 2577 | ||||
| 2578 | - | XGFileStartMountable(x.GoPointer(), FlagsVar, StartOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2578 | + | XGFileStartMountable(x.GoPointer(), FlagsVar, StartOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2579 | 2579 | ||||
| 2580 | } | 2580 | } | ||
| 2581 | 2581 | ||||
| @@ -2605,7 +2605,7 @@ func (x *FileBase) StartMountableFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 2605 | // the result of the operation. | 2605 | // the result of the operation. | ||
| 2606 | func (x *FileBase) StopMountable(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2606 | func (x *FileBase) StopMountable(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2607 | 2607 | ||||
| 2608 | - | XGFileStopMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2608 | + | XGFileStopMountable(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2609 | 2609 | ||||
| 2610 | } | 2610 | } | ||
| 2611 | 2611 | ||||
| @@ -2658,7 +2658,7 @@ func (x *FileBase) Trash(CancellableVar *Cancellable) (bool, error) { | |||||
| 2658 | // Asynchronously sends @file to the Trash location, if possible. | 2658 | // Asynchronously sends @file to the Trash location, if possible. | ||
| 2659 | func (x *FileBase) TrashAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2659 | func (x *FileBase) TrashAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2660 | 2660 | ||||
| 2661 | - | XGFileTrashAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2661 | + | XGFileTrashAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2662 | 2662 | ||||
| 2663 | } | 2663 | } | ||
| 2664 | 2664 | ||||
| @@ -2686,7 +2686,7 @@ func (x *FileBase) TrashFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 2686 | // the result of the operation. | 2686 | // the result of the operation. | ||
| 2687 | func (x *FileBase) UnmountMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2687 | func (x *FileBase) UnmountMountable(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2688 | 2688 | ||||
| 2689 | - | XGFileUnmountMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2689 | + | XGFileUnmountMountable(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2690 | 2690 | ||||
| 2691 | } | 2691 | } | ||
| 2692 | 2692 | ||||
| @@ -2716,7 +2716,7 @@ func (x *FileBase) UnmountMountableFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 2716 | // the result of the operation. | 2716 | // the result of the operation. | ||
| 2717 | func (x *FileBase) UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2717 | func (x *FileBase) UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2718 | 2718 | ||||
| 2719 | - | XGFileUnmountMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2719 | + | XGFileUnmountMountableWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2720 | 2720 | ||||
| 2721 | } | 2721 | } | ||
| 2722 | 2722 | ||||
M v4/gio/gfileenumerator.go +2 -2
| @@ -101,7 +101,7 @@ var xFileEnumeratorCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 101 | 101 | // g_file_enumerator_close_finish(). | |
| 102 | 102 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 103 | 103 | ||
| 104 | - | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 104 | + | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 105 | 105 | ||
| 106 | 106 | } | |
| 107 | 107 | ||
| @@ -301,7 +301,7 @@ var xFileEnumeratorNextFilesAsync func(uintptr, int, int, uintptr, uintptr, uint | |||
| 301 | 301 | // priority is %G_PRIORITY_DEFAULT. | |
| 302 | 302 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 303 | 303 | ||
| 304 | - | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 304 | + | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 305 | 305 | ||
| 306 | 306 | } | |
| 307 | 307 | ||
| @@ -101,7 +101,7 @@ var xFileEnumeratorCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 101 | // g_file_enumerator_close_finish(). | 101 | // g_file_enumerator_close_finish(). | ||
| 102 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 102 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 103 | 103 | ||||
| 104 | - | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 104 | + | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 105 | 105 | ||||
| 106 | } | 106 | } | ||
| 107 | 107 | ||||
| @@ -301,7 +301,7 @@ var xFileEnumeratorNextFilesAsync func(uintptr, int, int, uintptr, uintptr, uint | |||||
| 301 | // priority is %G_PRIORITY_DEFAULT. | 301 | // priority is %G_PRIORITY_DEFAULT. | ||
| 302 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 302 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 303 | 303 | ||||
| 304 | - | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 304 | + | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 305 | 305 | ||||
| 306 | } | 306 | } | ||
| 307 | 307 | ||||
M v4/gio/gfileicon.go +1 -1
| @@ -147,7 +147,7 @@ func (x *FileIcon) Load(SizeVar int, TypeVar string, CancellableVar *Cancellable | |||
| 147 | 147 | // version of this function, see g_loadable_icon_load(). | |
| 148 | 148 | func (x *FileIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 149 | 149 | ||
| 150 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 150 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 151 | 151 | ||
| 152 | 152 | } | |
| 153 | 153 | ||
| @@ -147,7 +147,7 @@ func (x *FileIcon) Load(SizeVar int, TypeVar string, CancellableVar *Cancellable | |||||
| 147 | // version of this function, see g_loadable_icon_load(). | 147 | // version of this function, see g_loadable_icon_load(). | ||
| 148 | func (x *FileIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 148 | func (x *FileIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 149 | 149 | ||||
| 150 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 150 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 151 | 151 | ||||
| 152 | } | 152 | } | ||
| 153 | 153 | ||||
M v4/gio/gfileinputstream.go +1 -1
| @@ -94,7 +94,7 @@ var xFileInputStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, | |||
| 94 | 94 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set | |
| 95 | 95 | func (x *FileInputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 96 | 96 | ||
| 97 | - | xFileInputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 97 | + | xFileInputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 98 | 98 | ||
| 99 | 99 | } | |
| 100 | 100 | ||
| @@ -94,7 +94,7 @@ var xFileInputStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, | |||||
| 94 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set | 94 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set | ||
| 95 | func (x *FileInputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 95 | func (x *FileInputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 96 | 96 | ||||
| 97 | - | xFileInputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 97 | + | xFileInputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 98 | 98 | ||||
| 99 | } | 99 | } | ||
| 100 | 100 | ||||
M v4/gio/gfileiostream.go +1 -1
| @@ -123,7 +123,7 @@ var xFileIOStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, uin | |||
| 123 | 123 | // g_file_io_stream_query_info(). | |
| 124 | 124 | func (x *FileIOStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 125 | 125 | ||
| 126 | - | xFileIOStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 126 | + | xFileIOStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 127 | 127 | ||
| 128 | 128 | } | |
| 129 | 129 | ||
| @@ -123,7 +123,7 @@ var xFileIOStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, uin | |||||
| 123 | // g_file_io_stream_query_info(). | 123 | // g_file_io_stream_query_info(). | ||
| 124 | func (x *FileIOStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 124 | func (x *FileIOStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 125 | 125 | ||||
| 126 | - | xFileIOStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 126 | + | xFileIOStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 127 | 127 | ||||
| 128 | } | 128 | } | ||
| 129 | 129 | ||||
M v4/gio/gfileoutputstream.go +1 -1
| @@ -117,7 +117,7 @@ var xFileOutputStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, | |||
| 117 | 117 | // g_file_output_stream_query_info(). | |
| 118 | 118 | func (x *FileOutputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 119 | 119 | ||
| 120 | - | xFileOutputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 120 | + | xFileOutputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 121 | 121 | ||
| 122 | 122 | } | |
| 123 | 123 | ||
| @@ -117,7 +117,7 @@ var xFileOutputStreamQueryInfoAsync func(uintptr, string, int, uintptr, uintptr, | |||||
| 117 | // g_file_output_stream_query_info(). | 117 | // g_file_output_stream_query_info(). | ||
| 118 | func (x *FileOutputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 118 | func (x *FileOutputStream) QueryInfoAsync(AttributesVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 119 | 119 | ||||
| 120 | - | xFileOutputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 120 | + | xFileOutputStreamQueryInfoAsync(x.GoPointer(), AttributesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 121 | 121 | ||||
| 122 | } | 122 | } | ||
| 123 | 123 | ||||
M v4/gio/ginputstream.go +5 -5
| @@ -116,7 +116,7 @@ var xInputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 116 | 116 | // override one you must override all. | |
| 117 | 117 | func (x *InputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 118 | 118 | ||
| 119 | - | xInputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 119 | + | xInputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 120 | 120 | ||
| 121 | 121 | } | |
| 122 | 122 | ||
| @@ -232,7 +232,7 @@ var xInputStreamReadAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr, | |||
| 232 | 232 | // priority. Default priority is %G_PRIORITY_DEFAULT. | |
| 233 | 233 | func (x *InputStream) ReadAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 234 | 234 | ||
| 235 | - | xInputStreamReadAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 235 | + | xInputStreamReadAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 236 | 236 | ||
| 237 | 237 | } | |
| 238 | 238 | ||
| @@ -285,7 +285,7 @@ var xInputStreamReadAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uin | |||
| 285 | 285 | // override one you must override all. | |
| 286 | 286 | func (x *InputStream) ReadAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 287 | 287 | ||
| 288 | - | xInputStreamReadAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 288 | + | xInputStreamReadAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 289 | 289 | ||
| 290 | 290 | } | |
| 291 | 291 | ||
| @@ -349,7 +349,7 @@ var xInputStreamReadBytesAsync func(uintptr, uint, int, uintptr, uintptr, uintpt | |||
| 349 | 349 | // priority. Default priority is %G_PRIORITY_DEFAULT. | |
| 350 | 350 | func (x *InputStream) ReadBytesAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 351 | 351 | ||
| 352 | - | xInputStreamReadBytesAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 352 | + | xInputStreamReadBytesAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 353 | 353 | ||
| 354 | 354 | } | |
| 355 | 355 | ||
| @@ -451,7 +451,7 @@ var xInputStreamSkipAsync func(uintptr, uint, int, uintptr, uintptr, uintptr) | |||
| 451 | 451 | // However, if you override one, you must override all. | |
| 452 | 452 | func (x *InputStream) SkipAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 453 | 453 | ||
| 454 | - | xInputStreamSkipAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 454 | + | xInputStreamSkipAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 455 | 455 | ||
| 456 | 456 | } | |
| 457 | 457 | ||
| @@ -116,7 +116,7 @@ var xInputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 116 | // override one you must override all. | 116 | // override one you must override all. | ||
| 117 | func (x *InputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 117 | func (x *InputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 118 | 118 | ||||
| 119 | - | xInputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 119 | + | xInputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 120 | 120 | ||||
| 121 | } | 121 | } | ||
| 122 | 122 | ||||
| @@ -232,7 +232,7 @@ var xInputStreamReadAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr, | |||||
| 232 | // priority. Default priority is %G_PRIORITY_DEFAULT. | 232 | // priority. Default priority is %G_PRIORITY_DEFAULT. | ||
| 233 | func (x *InputStream) ReadAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 233 | func (x *InputStream) ReadAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 234 | 234 | ||||
| 235 | - | xInputStreamReadAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 235 | + | xInputStreamReadAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 236 | 236 | ||||
| 237 | } | 237 | } | ||
| 238 | 238 | ||||
| @@ -285,7 +285,7 @@ var xInputStreamReadAsync func(uintptr, []byte, uint, int, uintptr, uintptr, uin | |||||
| 285 | // override one you must override all. | 285 | // override one you must override all. | ||
| 286 | func (x *InputStream) ReadAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 286 | func (x *InputStream) ReadAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 287 | 287 | ||||
| 288 | - | xInputStreamReadAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 288 | + | xInputStreamReadAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 289 | 289 | ||||
| 290 | } | 290 | } | ||
| 291 | 291 | ||||
| @@ -349,7 +349,7 @@ var xInputStreamReadBytesAsync func(uintptr, uint, int, uintptr, uintptr, uintpt | |||||
| 349 | // priority. Default priority is %G_PRIORITY_DEFAULT. | 349 | // priority. Default priority is %G_PRIORITY_DEFAULT. | ||
| 350 | func (x *InputStream) ReadBytesAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 350 | func (x *InputStream) ReadBytesAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 351 | 351 | ||||
| 352 | - | xInputStreamReadBytesAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 352 | + | xInputStreamReadBytesAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 353 | 353 | ||||
| 354 | } | 354 | } | ||
| 355 | 355 | ||||
| @@ -451,7 +451,7 @@ var xInputStreamSkipAsync func(uintptr, uint, int, uintptr, uintptr, uintptr) | |||||
| 451 | // However, if you override one, you must override all. | 451 | // However, if you override one, you must override all. | ||
| 452 | func (x *InputStream) SkipAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 452 | func (x *InputStream) SkipAsync(CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 453 | 453 | ||||
| 454 | - | xInputStreamSkipAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 454 | + | xInputStreamSkipAsync(x.GoPointer(), CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 455 | 455 | ||||
| 456 | } | 456 | } | ||
| 457 | 457 | ||||
M v4/gio/gio-2.0.go +14 -14
| @@ -267,7 +267,7 @@ func (x *BytesIcon) Load(SizeVar int, TypeVar string, CancellableVar *Cancellabl | |||
| 267 | 267 | // version of this function, see g_loadable_icon_load(). | |
| 268 | 268 | func (x *BytesIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 269 | 269 | ||
| 270 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 270 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 271 | 271 | ||
| 272 | 272 | } | |
| 273 | 273 | ||
| @@ -1044,7 +1044,7 @@ var xDBusConnectionCall func(uintptr, string, string, string, string, *glib.Vari | |||
| 1044 | 1044 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | |
| 1045 | 1045 | func (x *DBusConnection) Call(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1046 | 1046 | ||
| 1047 | - | xDBusConnectionCall(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1047 | + | xDBusConnectionCall(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1048 | 1048 | ||
| 1049 | 1049 | } | |
| 1050 | 1050 | ||
| @@ -1132,7 +1132,7 @@ var xDBusConnectionCallWithUnixFdList func(uintptr, string, string, string, stri | |||
| 1132 | 1132 | // This method is only available on UNIX. | |
| 1133 | 1133 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1134 | 1134 | ||
| 1135 | - | xDBusConnectionCallWithUnixFdList(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1135 | + | xDBusConnectionCallWithUnixFdList(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1136 | 1136 | ||
| 1137 | 1137 | } | |
| 1138 | 1138 | ||
| @@ -1207,7 +1207,7 @@ var xDBusConnectionClose func(uintptr, uintptr, uintptr, uintptr) | |||
| 1207 | 1207 | // version. | |
| 1208 | 1208 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1209 | 1209 | ||
| 1210 | - | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1210 | + | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1211 | 1211 | ||
| 1212 | 1212 | } | |
| 1213 | 1213 | ||
| @@ -1339,7 +1339,7 @@ var xDBusConnectionFlush func(uintptr, uintptr, uintptr, uintptr) | |||
| 1339 | 1339 | // version. | |
| 1340 | 1340 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1341 | 1341 | ||
| 1342 | - | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1342 | + | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1343 | 1343 | ||
| 1344 | 1344 | } | |
| 1345 | 1345 | ||
| @@ -1688,7 +1688,7 @@ var xDBusConnectionSendMessageWithReply func(uintptr, uintptr, DBusSendMessageFl | |||
| 1688 | 1688 | // UNIX file descriptors. | |
| 1689 | 1689 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1690 | 1690 | ||
| 1691 | - | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 1691 | + | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1692 | 1692 | ||
| 1693 | 1693 | } | |
| 1694 | 1694 | ||
| @@ -1843,7 +1843,7 @@ var xDBusConnectionSignalSubscribe func(uintptr, string, string, string, string, | |||
| 1843 | 1843 | // This function can never fail. | |
| 1844 | 1844 | func (x *DBusConnection) SignalSubscribe(SenderVar string, InterfaceNameVar string, MemberVar string, ObjectPathVar string, Arg0Var string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 1845 | 1845 | ||
| 1846 | - | cret := xDBusConnectionSignalSubscribe(x.GoPointer(), SenderVar, InterfaceNameVar, MemberVar, ObjectPathVar, Arg0Var, FlagsVar, glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 1846 | + | cret := xDBusConnectionSignalSubscribe(x.GoPointer(), SenderVar, InterfaceNameVar, MemberVar, ObjectPathVar, Arg0Var, FlagsVar, glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) | |
| 1847 | 1847 | return cret | |
| 1848 | 1848 | } | |
| 1849 | 1849 | ||
| @@ -2009,7 +2009,7 @@ func (x *DBusConnection) ConnectClosed(cb *func(DBusConnection, bool, uintptr)) | |||
| 2009 | 2009 | // any interface methods. | |
| 2010 | 2010 | func (x *DBusConnection) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2011 | 2011 | ||
| 2012 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2012 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2013 | 2013 | ||
| 2014 | 2014 | } | |
| 2015 | 2015 | ||
| @@ -2119,7 +2119,7 @@ var xDBusConnectionNew func(uintptr, string, DBusConnectionFlags, uintptr, uintp | |||
| 2119 | 2119 | // version. | |
| 2120 | 2120 | func DBusConnectionNew(StreamVar *IOStream, GuidVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2121 | 2121 | ||
| 2122 | - | xDBusConnectionNew(StreamVar.GoPointer(), GuidVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2122 | + | xDBusConnectionNew(StreamVar.GoPointer(), GuidVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2123 | 2123 | ||
| 2124 | 2124 | } | |
| 2125 | 2125 | ||
| @@ -2149,7 +2149,7 @@ var xDBusConnectionNewForAddress func(string, DBusConnectionFlags, uintptr, uint | |||
| 2149 | 2149 | // version. | |
| 2150 | 2150 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 2151 | 2151 | ||
| 2152 | - | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 2152 | + | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 2153 | 2153 | ||
| 2154 | 2154 | } | |
| 2155 | 2155 | ||
| @@ -5163,7 +5163,7 @@ var xSubprocessCommunicateAsync func(uintptr, *glib.Bytes, uintptr, uintptr, uin | |||
| 5163 | 5163 | // invocation with g_subprocess_communicate_finish(). | |
| 5164 | 5164 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5165 | 5165 | ||
| 5166 | - | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 5166 | + | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5167 | 5167 | ||
| 5168 | 5168 | } | |
| 5169 | 5169 | ||
| @@ -5205,7 +5205,7 @@ var xSubprocessCommunicateUtf8Async func(uintptr, string, uintptr, uintptr, uint | |||
| 5205 | 5205 | // invocation with g_subprocess_communicate_utf8_finish(). | |
| 5206 | 5206 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5207 | 5207 | ||
| 5208 | - | xSubprocessCommunicateUtf8Async(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 5208 | + | xSubprocessCommunicateUtf8Async(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5209 | 5209 | ||
| 5210 | 5210 | } | |
| 5211 | 5211 | ||
| @@ -5451,7 +5451,7 @@ var xSubprocessWaitAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 5451 | 5451 | // This is the asynchronous version of g_subprocess_wait(). | |
| 5452 | 5452 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5453 | 5453 | ||
| 5454 | - | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 5454 | + | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5455 | 5455 | ||
| 5456 | 5456 | } | |
| 5457 | 5457 | ||
| @@ -5476,7 +5476,7 @@ var xSubprocessWaitCheckAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 5476 | 5476 | // This is the asynchronous version of g_subprocess_wait_check(). | |
| 5477 | 5477 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 5478 | 5478 | ||
| 5479 | - | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 5479 | + | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 5480 | 5480 | ||
| 5481 | 5481 | } | |
| 5482 | 5482 | ||
| @@ -267,7 +267,7 @@ func (x *BytesIcon) Load(SizeVar int, TypeVar string, CancellableVar *Cancellabl | |||||
| 267 | // version of this function, see g_loadable_icon_load(). | 267 | // version of this function, see g_loadable_icon_load(). | ||
| 268 | func (x *BytesIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 268 | func (x *BytesIcon) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 269 | 269 | ||||
| 270 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 270 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 271 | 271 | ||||
| 272 | } | 272 | } | ||
| 273 | 273 | ||||
| @@ -1044,7 +1044,7 @@ var xDBusConnectionCall func(uintptr, string, string, string, string, *glib.Vari | |||||
| 1044 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | 1044 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | ||
| 1045 | func (x *DBusConnection) Call(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1045 | func (x *DBusConnection) Call(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1046 | 1046 | ||||
| 1047 | - | xDBusConnectionCall(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1047 | + | xDBusConnectionCall(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1048 | 1048 | ||||
| 1049 | } | 1049 | } | ||
| 1050 | 1050 | ||||
| @@ -1132,7 +1132,7 @@ var xDBusConnectionCallWithUnixFdList func(uintptr, string, string, string, stri | |||||
| 1132 | // This method is only available on UNIX. | 1132 | // This method is only available on UNIX. | ||
| 1133 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1133 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1134 | 1134 | ||||
| 1135 | - | xDBusConnectionCallWithUnixFdList(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1135 | + | xDBusConnectionCallWithUnixFdList(x.GoPointer(), BusNameVar, ObjectPathVar, InterfaceNameVar, MethodNameVar, ParametersVar, ReplyTypeVar, FlagsVar, TimeoutMsecVar, FdListVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1136 | 1136 | ||||
| 1137 | } | 1137 | } | ||
| 1138 | 1138 | ||||
| @@ -1207,7 +1207,7 @@ var xDBusConnectionClose func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1207 | // version. | 1207 | // version. | ||
| 1208 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1208 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1209 | 1209 | ||||
| 1210 | - | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1210 | + | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1211 | 1211 | ||||
| 1212 | } | 1212 | } | ||
| 1213 | 1213 | ||||
| @@ -1339,7 +1339,7 @@ var xDBusConnectionFlush func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1339 | // version. | 1339 | // version. | ||
| 1340 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1340 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1341 | 1341 | ||||
| 1342 | - | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1342 | + | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1343 | 1343 | ||||
| 1344 | } | 1344 | } | ||
| 1345 | 1345 | ||||
| @@ -1688,7 +1688,7 @@ var xDBusConnectionSendMessageWithReply func(uintptr, uintptr, DBusSendMessageFl | |||||
| 1688 | // UNIX file descriptors. | 1688 | // UNIX file descriptors. | ||
| 1689 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1689 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1690 | 1690 | ||||
| 1691 | - | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 1691 | + | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 1692 | 1692 | ||||
| 1693 | } | 1693 | } | ||
| 1694 | 1694 | ||||
| @@ -1843,7 +1843,7 @@ var xDBusConnectionSignalSubscribe func(uintptr, string, string, string, string, | |||||
| 1843 | // This function can never fail. | 1843 | // This function can never fail. | ||
| 1844 | func (x *DBusConnection) SignalSubscribe(SenderVar string, InterfaceNameVar string, MemberVar string, ObjectPathVar string, Arg0Var string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 1844 | func (x *DBusConnection) SignalSubscribe(SenderVar string, InterfaceNameVar string, MemberVar string, ObjectPathVar string, Arg0Var string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 1845 | 1845 | ||||
| 1846 | - | cret := xDBusConnectionSignalSubscribe(x.GoPointer(), SenderVar, InterfaceNameVar, MemberVar, ObjectPathVar, Arg0Var, FlagsVar, glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 1846 | + | cret := xDBusConnectionSignalSubscribe(x.GoPointer(), SenderVar, InterfaceNameVar, MemberVar, ObjectPathVar, Arg0Var, FlagsVar, glib.NewCallback(CallbackVar), UserDataVar, glib.NewCallbackNullable(UserDataFreeFuncVar)) |
| 1847 | return cret | 1847 | return cret | ||
| 1848 | } | 1848 | } | ||
| 1849 | 1849 | ||||
| @@ -2009,7 +2009,7 @@ func (x *DBusConnection) ConnectClosed(cb *func(DBusConnection, bool, uintptr)) | |||||
| 2009 | // any interface methods. | 2009 | // any interface methods. | ||
| 2010 | func (x *DBusConnection) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2010 | func (x *DBusConnection) InitAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2011 | 2011 | ||||
| 2012 | - | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2012 | + | XGAsyncInitableInitAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2013 | 2013 | ||||
| 2014 | } | 2014 | } | ||
| 2015 | 2015 | ||||
| @@ -2119,7 +2119,7 @@ var xDBusConnectionNew func(uintptr, string, DBusConnectionFlags, uintptr, uintp | |||||
| 2119 | // version. | 2119 | // version. | ||
| 2120 | func DBusConnectionNew(StreamVar *IOStream, GuidVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2120 | func DBusConnectionNew(StreamVar *IOStream, GuidVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2121 | 2121 | ||||
| 2122 | - | xDBusConnectionNew(StreamVar.GoPointer(), GuidVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2122 | + | xDBusConnectionNew(StreamVar.GoPointer(), GuidVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2123 | 2123 | ||||
| 2124 | } | 2124 | } | ||
| 2125 | 2125 | ||||
| @@ -2149,7 +2149,7 @@ var xDBusConnectionNewForAddress func(string, DBusConnectionFlags, uintptr, uint | |||||
| 2149 | // version. | 2149 | // version. | ||
| 2150 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 2150 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 2151 | 2151 | ||||
| 2152 | - | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 2152 | + | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 2153 | 2153 | ||||
| 2154 | } | 2154 | } | ||
| 2155 | 2155 | ||||
| @@ -5163,7 +5163,7 @@ var xSubprocessCommunicateAsync func(uintptr, *glib.Bytes, uintptr, uintptr, uin | |||||
| 5163 | // invocation with g_subprocess_communicate_finish(). | 5163 | // invocation with g_subprocess_communicate_finish(). | ||
| 5164 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 5164 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 5165 | 5165 | ||||
| 5166 | - | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 5166 | + | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 5167 | 5167 | ||||
| 5168 | } | 5168 | } | ||
| 5169 | 5169 | ||||
| @@ -5205,7 +5205,7 @@ var xSubprocessCommunicateUtf8Async func(uintptr, string, uintptr, uintptr, uint | |||||
| 5205 | // invocation with g_subprocess_communicate_utf8_finish(). | 5205 | // invocation with g_subprocess_communicate_utf8_finish(). | ||
| 5206 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 5206 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 5207 | 5207 | ||||
| 5208 | - | xSubprocessCommunicateUtf8Async(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 5208 | + | xSubprocessCommunicateUtf8Async(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 5209 | 5209 | ||||
| 5210 | } | 5210 | } | ||
| 5211 | 5211 | ||||
| @@ -5451,7 +5451,7 @@ var xSubprocessWaitAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 5451 | // This is the asynchronous version of g_subprocess_wait(). | 5451 | // This is the asynchronous version of g_subprocess_wait(). | ||
| 5452 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 5452 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 5453 | 5453 | ||||
| 5454 | - | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 5454 | + | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 5455 | 5455 | ||||
| 5456 | } | 5456 | } | ||
| 5457 | 5457 | ||||
| @@ -5476,7 +5476,7 @@ var xSubprocessWaitCheckAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 5476 | // This is the asynchronous version of g_subprocess_wait_check(). | 5476 | // This is the asynchronous version of g_subprocess_wait_check(). | ||
| 5477 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 5477 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 5478 | 5478 | ||||
| 5479 | - | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 5479 | + | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 5480 | 5480 | ||||
| 5481 | } | 5481 | } | ||
| 5482 | 5482 | ||||
M v4/gio/gioscheduler.go +1 -1
| @@ -31,7 +31,7 @@ var xIoSchedulerPushJob func(uintptr, uintptr, uintptr, int, uintptr) | |||
| 31 | 31 | // g_io_scheduler_cancel_all_jobs(). | |
| 32 | 32 | func IoSchedulerPushJob(JobFuncVar *IOSchedulerJobFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify, IoPriorityVar int, CancellableVar *Cancellable) { | |
| 33 | 33 | ||
| 34 | - | xIoSchedulerPushJob(glib.NewCallback(JobFuncVar), UserDataVar, glib.NewCallback(NotifyVar), IoPriorityVar, CancellableVar.GoPointer()) | |
| 34 | + | xIoSchedulerPushJob(glib.NewCallback(JobFuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar), IoPriorityVar, CancellableVar.GoPointer()) | |
| 35 | 35 | ||
| 36 | 36 | } | |
| 37 | 37 | ||
| @@ -31,7 +31,7 @@ var xIoSchedulerPushJob func(uintptr, uintptr, uintptr, int, uintptr) | |||||
| 31 | // g_io_scheduler_cancel_all_jobs(). | 31 | // g_io_scheduler_cancel_all_jobs(). | ||
| 32 | func IoSchedulerPushJob(JobFuncVar *IOSchedulerJobFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify, IoPriorityVar int, CancellableVar *Cancellable) { | 32 | func IoSchedulerPushJob(JobFuncVar *IOSchedulerJobFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify, IoPriorityVar int, CancellableVar *Cancellable) { | ||
| 33 | 33 | ||||
| 34 | - | xIoSchedulerPushJob(glib.NewCallback(JobFuncVar), UserDataVar, glib.NewCallback(NotifyVar), IoPriorityVar, CancellableVar.GoPointer()) | 34 | + | xIoSchedulerPushJob(glib.NewCallback(JobFuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar), IoPriorityVar, CancellableVar.GoPointer()) |
| 35 | 35 | ||||
| 36 | } | 36 | } | ||
| 37 | 37 | ||||
M v4/gio/giostream.go +2 -2
| @@ -161,7 +161,7 @@ var xIOStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 161 | 161 | // classes. However, if you override one you must override all. | |
| 162 | 162 | func (x *IOStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 163 | 163 | ||
| 164 | - | xIOStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 164 | + | xIOStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 165 | 165 | ||
| 166 | 166 | } | |
| 167 | 167 | ||
| @@ -260,7 +260,7 @@ var xIOStreamSpliceAsync func(uintptr, uintptr, IOStreamSpliceFlags, int, uintpt | |||
| 260 | 260 | // result of the operation. | |
| 261 | 261 | func (x *IOStream) SpliceAsync(Stream2Var *IOStream, FlagsVar IOStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 262 | 262 | ||
| 263 | - | xIOStreamSpliceAsync(x.GoPointer(), Stream2Var.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 263 | + | xIOStreamSpliceAsync(x.GoPointer(), Stream2Var.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 264 | 264 | ||
| 265 | 265 | } | |
| 266 | 266 | ||
| @@ -161,7 +161,7 @@ var xIOStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 161 | // classes. However, if you override one you must override all. | 161 | // classes. However, if you override one you must override all. | ||
| 162 | func (x *IOStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 162 | func (x *IOStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 163 | 163 | ||||
| 164 | - | xIOStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 164 | + | xIOStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 165 | 165 | ||||
| 166 | } | 166 | } | ||
| 167 | 167 | ||||
| @@ -260,7 +260,7 @@ var xIOStreamSpliceAsync func(uintptr, uintptr, IOStreamSpliceFlags, int, uintpt | |||||
| 260 | // result of the operation. | 260 | // result of the operation. | ||
| 261 | func (x *IOStream) SpliceAsync(Stream2Var *IOStream, FlagsVar IOStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 261 | func (x *IOStream) SpliceAsync(Stream2Var *IOStream, FlagsVar IOStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 262 | 262 | ||||
| 263 | - | xIOStreamSpliceAsync(x.GoPointer(), Stream2Var.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 263 | + | xIOStreamSpliceAsync(x.GoPointer(), Stream2Var.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 264 | 264 | ||||
| 265 | } | 265 | } | ||
| 266 | 266 | ||||
M v4/gio/giotypes.go +2 -2
| @@ -349,7 +349,7 @@ var xIOSchedulerJobSendToMainloop func(uintptr, uintptr, uintptr, uintptr) bool | |||
| 349 | 349 | // blocking the I/O job). | |
| 350 | 350 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | |
| 351 | 351 | ||
| 352 | - | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(NotifyVar)) | |
| 352 | + | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| 353 | 353 | return cret | |
| 354 | 354 | } | |
| 355 | 355 | ||
| @@ -366,7 +366,7 @@ var xIOSchedulerJobSendToMainloopAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 366 | 366 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | |
| 367 | 367 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 368 | 368 | ||
| 369 | - | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(NotifyVar)) | |
| 369 | + | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| 370 | 370 | ||
| 371 | 371 | } | |
| 372 | 372 | ||
| @@ -349,7 +349,7 @@ var xIOSchedulerJobSendToMainloop func(uintptr, uintptr, uintptr, uintptr) bool | |||||
| 349 | // blocking the I/O job). | 349 | // blocking the I/O job). | ||
| 350 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | 350 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | ||
| 351 | 351 | ||||
| 352 | - | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(NotifyVar)) | 352 | + | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) |
| 353 | return cret | 353 | return cret | ||
| 354 | } | 354 | } | ||
| 355 | 355 | ||||
| @@ -366,7 +366,7 @@ var xIOSchedulerJobSendToMainloopAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 366 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | 366 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | ||
| 367 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | 367 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | ||
| 368 | 368 | ||||
| 369 | - | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(NotifyVar)) | 369 | + | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) |
| 370 | 370 | ||||
| 371 | } | 371 | } | ||
| 372 | 372 | ||||
M v4/gio/gloadableicon.go +1 -1
| @@ -78,7 +78,7 @@ func (x *LoadableIconBase) Load(SizeVar int, TypeVar string, CancellableVar *Can | |||
| 78 | 78 | // version of this function, see g_loadable_icon_load(). | |
| 79 | 79 | func (x *LoadableIconBase) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 80 | 80 | ||
| 81 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 81 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 82 | 82 | ||
| 83 | 83 | } | |
| 84 | 84 | ||
| @@ -78,7 +78,7 @@ func (x *LoadableIconBase) Load(SizeVar int, TypeVar string, CancellableVar *Can | |||||
| 78 | // version of this function, see g_loadable_icon_load(). | 78 | // version of this function, see g_loadable_icon_load(). | ||
| 79 | func (x *LoadableIconBase) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 79 | func (x *LoadableIconBase) LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 80 | 80 | ||||
| 81 | - | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 81 | + | XGLoadableIconLoadAsync(x.GoPointer(), SizeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 82 | 82 | ||||
| 83 | } | 83 | } | ||
| 84 | 84 | ||||
M v4/gio/gmemoryinputstream.go +2 -2
| @@ -88,7 +88,7 @@ var xNewMemoryInputStreamFromData func([]byte, int, uintptr) uintptr | |||
| 88 | 88 | func NewMemoryInputStreamFromData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) *MemoryInputStream { | |
| 89 | 89 | var cls *MemoryInputStream | |
| 90 | 90 | ||
| 91 | - | cret := xNewMemoryInputStreamFromData(DataVar, LenVar, glib.NewCallback(DestroyVar)) | |
| 91 | + | cret := xNewMemoryInputStreamFromData(DataVar, LenVar, glib.NewCallbackNullable(DestroyVar)) | |
| 92 | 92 | ||
| 93 | 93 | if cret == 0 { | |
| 94 | 94 | return nil | |
| @@ -112,7 +112,7 @@ var xMemoryInputStreamAddData func(uintptr, []byte, int, uintptr) | |||
| 112 | 112 | // Appends @data to data that can be read from the input stream | |
| 113 | 113 | func (x *MemoryInputStream) AddData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) { | |
| 114 | 114 | ||
| 115 | - | xMemoryInputStreamAddData(x.GoPointer(), DataVar, LenVar, glib.NewCallback(DestroyVar)) | |
| 115 | + | xMemoryInputStreamAddData(x.GoPointer(), DataVar, LenVar, glib.NewCallbackNullable(DestroyVar)) | |
| 116 | 116 | ||
| 117 | 117 | } | |
| 118 | 118 | ||
| @@ -88,7 +88,7 @@ var xNewMemoryInputStreamFromData func([]byte, int, uintptr) uintptr | |||||
| 88 | func NewMemoryInputStreamFromData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) *MemoryInputStream { | 88 | func NewMemoryInputStreamFromData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) *MemoryInputStream { | ||
| 89 | var cls *MemoryInputStream | 89 | var cls *MemoryInputStream | ||
| 90 | 90 | ||||
| 91 | - | cret := xNewMemoryInputStreamFromData(DataVar, LenVar, glib.NewCallback(DestroyVar)) | 91 | + | cret := xNewMemoryInputStreamFromData(DataVar, LenVar, glib.NewCallbackNullable(DestroyVar)) |
| 92 | 92 | ||||
| 93 | if cret == 0 { | 93 | if cret == 0 { | ||
| 94 | return nil | 94 | return nil | ||
| @@ -112,7 +112,7 @@ var xMemoryInputStreamAddData func(uintptr, []byte, int, uintptr) | |||||
| 112 | // Appends @data to data that can be read from the input stream | 112 | // Appends @data to data that can be read from the input stream | ||
| 113 | func (x *MemoryInputStream) AddData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) { | 113 | func (x *MemoryInputStream) AddData(DataVar []byte, LenVar int, DestroyVar *glib.DestroyNotify) { | ||
| 114 | 114 | ||||
| 115 | - | xMemoryInputStreamAddData(x.GoPointer(), DataVar, LenVar, glib.NewCallback(DestroyVar)) | 115 | + | xMemoryInputStreamAddData(x.GoPointer(), DataVar, LenVar, glib.NewCallbackNullable(DestroyVar)) |
| 116 | 116 | ||||
| 117 | } | 117 | } | ||
| 118 | 118 | ||||
M v4/gio/gmemoryoutputstream.go +1 -1
| @@ -102,7 +102,7 @@ var xNewMemoryOutputStream func(uintptr, uint, uintptr, uintptr) uintptr | |||
| 102 | 102 | func NewMemoryOutputStream(DataVar uintptr, SizeVar uint, ReallocFunctionVar *ReallocFunc, DestroyFunctionVar *glib.DestroyNotify) *MemoryOutputStream { | |
| 103 | 103 | var cls *MemoryOutputStream | |
| 104 | 104 | ||
| 105 | - | cret := xNewMemoryOutputStream(DataVar, SizeVar, glib.NewCallback(ReallocFunctionVar), glib.NewCallback(DestroyFunctionVar)) | |
| 105 | + | cret := xNewMemoryOutputStream(DataVar, SizeVar, glib.NewCallbackNullable(ReallocFunctionVar), glib.NewCallbackNullable(DestroyFunctionVar)) | |
| 106 | 106 | ||
| 107 | 107 | if cret == 0 { | |
| 108 | 108 | return nil | |
| @@ -102,7 +102,7 @@ var xNewMemoryOutputStream func(uintptr, uint, uintptr, uintptr) uintptr | |||||
| 102 | func NewMemoryOutputStream(DataVar uintptr, SizeVar uint, ReallocFunctionVar *ReallocFunc, DestroyFunctionVar *glib.DestroyNotify) *MemoryOutputStream { | 102 | func NewMemoryOutputStream(DataVar uintptr, SizeVar uint, ReallocFunctionVar *ReallocFunc, DestroyFunctionVar *glib.DestroyNotify) *MemoryOutputStream { | ||
| 103 | var cls *MemoryOutputStream | 103 | var cls *MemoryOutputStream | ||
| 104 | 104 | ||||
| 105 | - | cret := xNewMemoryOutputStream(DataVar, SizeVar, glib.NewCallback(ReallocFunctionVar), glib.NewCallback(DestroyFunctionVar)) | 105 | + | cret := xNewMemoryOutputStream(DataVar, SizeVar, glib.NewCallbackNullable(ReallocFunctionVar), glib.NewCallbackNullable(DestroyFunctionVar)) |
| 106 | 106 | ||||
| 107 | if cret == 0 { | 107 | if cret == 0 { | ||
| 108 | return nil | 108 | return nil | ||
M v4/gio/gmount.go +6 -6
| @@ -113,7 +113,7 @@ func (x *MountBase) CanUnmount() bool { | |||
| 113 | 113 | // and #GAsyncResult data returned in the @callback. | |
| 114 | 114 | func (x *MountBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 115 | 115 | ||
| 116 | - | XGMountEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 116 | + | XGMountEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 117 | 117 | ||
| 118 | 118 | } | |
| 119 | 119 | ||
| @@ -135,7 +135,7 @@ func (x *MountBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 135 | 135 | // and #GAsyncResult data returned in the @callback. | |
| 136 | 136 | func (x *MountBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 137 | 137 | ||
| 138 | - | XGMountEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 138 | + | XGMountEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 139 | 139 | ||
| 140 | 140 | } | |
| 141 | 141 | ||
| @@ -278,7 +278,7 @@ func (x *MountBase) GetVolume() *VolumeBase { | |||
| 278 | 278 | // @mount and #GAsyncResult data returned in the @callback. | |
| 279 | 279 | func (x *MountBase) GuessContentType(ForceRescanVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 280 | 280 | ||
| 281 | - | XGMountGuessContentType(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 281 | + | XGMountGuessContentType(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 282 | 282 | ||
| 283 | 283 | } | |
| 284 | 284 | ||
| @@ -358,7 +358,7 @@ func (x *MountBase) IsShadowed() bool { | |||
| 358 | 358 | // unmounted. | |
| 359 | 359 | func (x *MountBase) Remount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 360 | 360 | ||
| 361 | - | XGMountRemount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 361 | + | XGMountRemount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 362 | 362 | ||
| 363 | 363 | } | |
| 364 | 364 | ||
| @@ -390,7 +390,7 @@ func (x *MountBase) Shadow() { | |||
| 390 | 390 | // and #GAsyncResult data returned in the @callback. | |
| 391 | 391 | func (x *MountBase) Unmount(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 392 | 392 | ||
| 393 | - | XGMountUnmount(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 393 | + | XGMountUnmount(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 394 | 394 | ||
| 395 | 395 | } | |
| 396 | 396 | ||
| @@ -412,7 +412,7 @@ func (x *MountBase) UnmountFinish(ResultVar AsyncResult) (bool, error) { | |||
| 412 | 412 | // and #GAsyncResult data returned in the @callback. | |
| 413 | 413 | func (x *MountBase) UnmountWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 414 | 414 | ||
| 415 | - | XGMountUnmountWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 415 | + | XGMountUnmountWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 416 | 416 | ||
| 417 | 417 | } | |
| 418 | 418 | ||
| @@ -113,7 +113,7 @@ func (x *MountBase) CanUnmount() bool { | |||||
| 113 | // and #GAsyncResult data returned in the @callback. | 113 | // and #GAsyncResult data returned in the @callback. | ||
| 114 | func (x *MountBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 114 | func (x *MountBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 115 | 115 | ||||
| 116 | - | XGMountEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 116 | + | XGMountEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 117 | 117 | ||||
| 118 | } | 118 | } | ||
| 119 | 119 | ||||
| @@ -135,7 +135,7 @@ func (x *MountBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 135 | // and #GAsyncResult data returned in the @callback. | 135 | // and #GAsyncResult data returned in the @callback. | ||
| 136 | func (x *MountBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 136 | func (x *MountBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 137 | 137 | ||||
| 138 | - | XGMountEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 138 | + | XGMountEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 139 | 139 | ||||
| 140 | } | 140 | } | ||
| 141 | 141 | ||||
| @@ -278,7 +278,7 @@ func (x *MountBase) GetVolume() *VolumeBase { | |||||
| 278 | // @mount and #GAsyncResult data returned in the @callback. | 278 | // @mount and #GAsyncResult data returned in the @callback. | ||
| 279 | func (x *MountBase) GuessContentType(ForceRescanVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 279 | func (x *MountBase) GuessContentType(ForceRescanVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 280 | 280 | ||||
| 281 | - | XGMountGuessContentType(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 281 | + | XGMountGuessContentType(x.GoPointer(), ForceRescanVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 282 | 282 | ||||
| 283 | } | 283 | } | ||
| 284 | 284 | ||||
| @@ -358,7 +358,7 @@ func (x *MountBase) IsShadowed() bool { | |||||
| 358 | // unmounted. | 358 | // unmounted. | ||
| 359 | func (x *MountBase) Remount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 359 | func (x *MountBase) Remount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 360 | 360 | ||||
| 361 | - | XGMountRemount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 361 | + | XGMountRemount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 362 | 362 | ||||
| 363 | } | 363 | } | ||
| 364 | 364 | ||||
| @@ -390,7 +390,7 @@ func (x *MountBase) Shadow() { | |||||
| 390 | // and #GAsyncResult data returned in the @callback. | 390 | // and #GAsyncResult data returned in the @callback. | ||
| 391 | func (x *MountBase) Unmount(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 391 | func (x *MountBase) Unmount(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 392 | 392 | ||||
| 393 | - | XGMountUnmount(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 393 | + | XGMountUnmount(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 394 | 394 | ||||
| 395 | } | 395 | } | ||
| 396 | 396 | ||||
| @@ -412,7 +412,7 @@ func (x *MountBase) UnmountFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 412 | // and #GAsyncResult data returned in the @callback. | 412 | // and #GAsyncResult data returned in the @callback. | ||
| 413 | func (x *MountBase) UnmountWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 413 | func (x *MountBase) UnmountWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 414 | 414 | ||||
| 415 | - | XGMountUnmountWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 415 | + | XGMountUnmountWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 416 | 416 | ||||
| 417 | } | 417 | } | ||
| 418 | 418 | ||||
M v4/gio/gnetworkmonitor.go +1 -1
| @@ -100,7 +100,7 @@ func (x *NetworkMonitorBase) CanReach(ConnectableVar SocketConnectable, Cancella | |||
| 100 | 100 | // to get the result of the operation. | |
| 101 | 101 | func (x *NetworkMonitorBase) CanReachAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 102 | 102 | ||
| 103 | - | XGNetworkMonitorCanReachAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 103 | + | XGNetworkMonitorCanReachAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 104 | 104 | ||
| 105 | 105 | } | |
| 106 | 106 | ||
| @@ -100,7 +100,7 @@ func (x *NetworkMonitorBase) CanReach(ConnectableVar SocketConnectable, Cancella | |||||
| 100 | // to get the result of the operation. | 100 | // to get the result of the operation. | ||
| 101 | func (x *NetworkMonitorBase) CanReachAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 101 | func (x *NetworkMonitorBase) CanReachAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 102 | 102 | ||||
| 103 | - | XGNetworkMonitorCanReachAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 103 | + | XGNetworkMonitorCanReachAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 104 | 104 | ||||
| 105 | } | 105 | } | ||
| 106 | 106 | ||||
M v4/gio/goutputstream.go +8 -8
| @@ -122,7 +122,7 @@ var xOutputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 122 | 122 | // classes. However, if you override one you must override all. | |
| 123 | 123 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 124 | 124 | ||
| 125 | - | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 125 | + | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 126 | 126 | ||
| 127 | 127 | } | |
| 128 | 128 | ||
| @@ -173,7 +173,7 @@ var xOutputStreamFlushAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 173 | 173 | // result of the operation. | |
| 174 | 174 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 175 | 175 | ||
| 176 | - | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 176 | + | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 177 | 177 | ||
| 178 | 178 | } | |
| 179 | 179 | ||
| @@ -282,7 +282,7 @@ var xOutputStreamSpliceAsync func(uintptr, uintptr, OutputStreamSpliceFlags, int | |||
| 282 | 282 | // g_output_stream_splice(). | |
| 283 | 283 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 284 | 284 | ||
| 285 | - | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 285 | + | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 286 | 286 | ||
| 287 | 287 | } | |
| 288 | 288 | ||
| @@ -404,7 +404,7 @@ var xOutputStreamWriteAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr | |||
| 404 | 404 | // until @callback is called. | |
| 405 | 405 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 406 | 406 | ||
| 407 | - | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 407 | + | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 408 | 408 | ||
| 409 | 409 | } | |
| 410 | 410 | ||
| @@ -470,7 +470,7 @@ var xOutputStreamWriteAsync func(uintptr, []byte, uint, int, uintptr, uintptr, u | |||
| 470 | 470 | // the contents (without copying) for the duration of the call. | |
| 471 | 471 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 472 | 472 | ||
| 473 | - | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 473 | + | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 474 | 474 | ||
| 475 | 475 | } | |
| 476 | 476 | ||
| @@ -515,7 +515,7 @@ var xOutputStreamWriteBytesAsync func(uintptr, *glib.Bytes, int, uintptr, uintpt | |||
| 515 | 515 | // g_output_stream_write_bytes(). | |
| 516 | 516 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 517 | 517 | ||
| 518 | - | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 518 | + | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 519 | 519 | ||
| 520 | 520 | } | |
| 521 | 521 | ||
| @@ -638,7 +638,7 @@ var xOutputStreamWritevAllAsync func(uintptr, []OutputVector, uint, int, uintptr | |||
| 638 | 638 | // of @vectors might be changed by this function. | |
| 639 | 639 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 640 | 640 | ||
| 641 | - | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 641 | + | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 642 | 642 | ||
| 643 | 643 | } | |
| 644 | 644 | ||
| @@ -699,7 +699,7 @@ var xOutputStreamWritevAsync func(uintptr, []OutputVector, uint, int, uintptr, u | |||
| 699 | 699 | // until @callback is called. | |
| 700 | 700 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 701 | 701 | ||
| 702 | - | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 702 | + | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 703 | 703 | ||
| 704 | 704 | } | |
| 705 | 705 | ||
| @@ -122,7 +122,7 @@ var xOutputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 122 | // classes. However, if you override one you must override all. | 122 | // classes. However, if you override one you must override all. | ||
| 123 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 123 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 124 | 124 | ||||
| 125 | - | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 125 | + | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 126 | 126 | ||||
| 127 | } | 127 | } | ||
| 128 | 128 | ||||
| @@ -173,7 +173,7 @@ var xOutputStreamFlushAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 173 | // result of the operation. | 173 | // result of the operation. | ||
| 174 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 174 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 175 | 175 | ||||
| 176 | - | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 176 | + | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 177 | 177 | ||||
| 178 | } | 178 | } | ||
| 179 | 179 | ||||
| @@ -282,7 +282,7 @@ var xOutputStreamSpliceAsync func(uintptr, uintptr, OutputStreamSpliceFlags, int | |||||
| 282 | // g_output_stream_splice(). | 282 | // g_output_stream_splice(). | ||
| 283 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 283 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 284 | 284 | ||||
| 285 | - | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 285 | + | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 286 | 286 | ||||
| 287 | } | 287 | } | ||
| 288 | 288 | ||||
| @@ -404,7 +404,7 @@ var xOutputStreamWriteAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr | |||||
| 404 | // until @callback is called. | 404 | // until @callback is called. | ||
| 405 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 405 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 406 | 406 | ||||
| 407 | - | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 407 | + | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 408 | 408 | ||||
| 409 | } | 409 | } | ||
| 410 | 410 | ||||
| @@ -470,7 +470,7 @@ var xOutputStreamWriteAsync func(uintptr, []byte, uint, int, uintptr, uintptr, u | |||||
| 470 | // the contents (without copying) for the duration of the call. | 470 | // the contents (without copying) for the duration of the call. | ||
| 471 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 471 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 472 | 472 | ||||
| 473 | - | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 473 | + | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 474 | 474 | ||||
| 475 | } | 475 | } | ||
| 476 | 476 | ||||
| @@ -515,7 +515,7 @@ var xOutputStreamWriteBytesAsync func(uintptr, *glib.Bytes, int, uintptr, uintpt | |||||
| 515 | // g_output_stream_write_bytes(). | 515 | // g_output_stream_write_bytes(). | ||
| 516 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 516 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 517 | 517 | ||||
| 518 | - | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 518 | + | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 519 | 519 | ||||
| 520 | } | 520 | } | ||
| 521 | 521 | ||||
| @@ -638,7 +638,7 @@ var xOutputStreamWritevAllAsync func(uintptr, []OutputVector, uint, int, uintptr | |||||
| 638 | // of @vectors might be changed by this function. | 638 | // of @vectors might be changed by this function. | ||
| 639 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 639 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 640 | 640 | ||||
| 641 | - | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 641 | + | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 642 | 642 | ||||
| 643 | } | 643 | } | ||
| 644 | 644 | ||||
| @@ -699,7 +699,7 @@ var xOutputStreamWritevAsync func(uintptr, []OutputVector, uint, int, uintptr, u | |||||
| 699 | // until @callback is called. | 699 | // until @callback is called. | ||
| 700 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 700 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 701 | 701 | ||||
| 702 | - | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 702 | + | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 703 | 703 | ||||
| 704 | } | 704 | } | ||
| 705 | 705 | ||||
M v4/gio/gpermission.go +2 -2
| @@ -99,7 +99,7 @@ var xPermissionAcquireAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 99 | 99 | // g_permission_acquire(). | |
| 100 | 100 | func (x *Permission) AcquireAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 101 | 101 | ||
| 102 | - | xPermissionAcquireAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 102 | + | xPermissionAcquireAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 103 | 103 | ||
| 104 | 104 | } | |
| 105 | 105 | ||
| @@ -203,7 +203,7 @@ var xPermissionReleaseAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 203 | 203 | // g_permission_release(). | |
| 204 | 204 | func (x *Permission) ReleaseAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 205 | 205 | ||
| 206 | - | xPermissionReleaseAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 206 | + | xPermissionReleaseAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 207 | 207 | ||
| 208 | 208 | } | |
| 209 | 209 | ||
| @@ -99,7 +99,7 @@ var xPermissionAcquireAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 99 | // g_permission_acquire(). | 99 | // g_permission_acquire(). | ||
| 100 | func (x *Permission) AcquireAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 100 | func (x *Permission) AcquireAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 101 | 101 | ||||
| 102 | - | xPermissionAcquireAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 102 | + | xPermissionAcquireAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 103 | 103 | ||||
| 104 | } | 104 | } | ||
| 105 | 105 | ||||
| @@ -203,7 +203,7 @@ var xPermissionReleaseAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 203 | // g_permission_release(). | 203 | // g_permission_release(). | ||
| 204 | func (x *Permission) ReleaseAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 204 | func (x *Permission) ReleaseAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 205 | 205 | ||||
| 206 | - | xPermissionReleaseAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 206 | + | xPermissionReleaseAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 207 | 207 | ||||
| 208 | } | 208 | } | ||
| 209 | 209 | ||||
M v4/gio/gproxy.go +1 -1
| @@ -83,7 +83,7 @@ func (x *ProxyBase) Connect(ConnectionVar *IOStream, ProxyAddressVar *ProxyAddre | |||
| 83 | 83 | // Asynchronous version of g_proxy_connect(). | |
| 84 | 84 | func (x *ProxyBase) ConnectAsync(ConnectionVar *IOStream, ProxyAddressVar *ProxyAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 85 | 85 | ||
| 86 | - | XGProxyConnectAsync(x.GoPointer(), ConnectionVar.GoPointer(), ProxyAddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 86 | + | XGProxyConnectAsync(x.GoPointer(), ConnectionVar.GoPointer(), ProxyAddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 87 | 87 | ||
| 88 | 88 | } | |
| 89 | 89 | ||
| @@ -83,7 +83,7 @@ func (x *ProxyBase) Connect(ConnectionVar *IOStream, ProxyAddressVar *ProxyAddre | |||||
| 83 | // Asynchronous version of g_proxy_connect(). | 83 | // Asynchronous version of g_proxy_connect(). | ||
| 84 | func (x *ProxyBase) ConnectAsync(ConnectionVar *IOStream, ProxyAddressVar *ProxyAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 84 | func (x *ProxyBase) ConnectAsync(ConnectionVar *IOStream, ProxyAddressVar *ProxyAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 85 | 85 | ||||
| 86 | - | XGProxyConnectAsync(x.GoPointer(), ConnectionVar.GoPointer(), ProxyAddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 86 | + | XGProxyConnectAsync(x.GoPointer(), ConnectionVar.GoPointer(), ProxyAddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 87 | 87 | ||||
| 88 | } | 88 | } | ||
| 89 | 89 | ||||
M v4/gio/gproxyresolver.go +1 -1
| @@ -99,7 +99,7 @@ func (x *ProxyResolverBase) Lookup(UriVar string, CancellableVar *Cancellable) ( | |||
| 99 | 99 | // details. | |
| 100 | 100 | func (x *ProxyResolverBase) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 101 | 101 | ||
| 102 | - | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 102 | + | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 103 | 103 | ||
| 104 | 104 | } | |
| 105 | 105 | ||
| @@ -99,7 +99,7 @@ func (x *ProxyResolverBase) Lookup(UriVar string, CancellableVar *Cancellable) ( | |||||
| 99 | // details. | 99 | // details. | ||
| 100 | func (x *ProxyResolverBase) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 100 | func (x *ProxyResolverBase) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 101 | 101 | ||||
| 102 | - | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 102 | + | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 103 | 103 | ||||
| 104 | } | 104 | } | ||
| 105 | 105 | ||||
M v4/gio/gresolver.go +5 -5
| @@ -102,7 +102,7 @@ var xResolverLookupByAddressAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||
| 102 | 102 | // call g_resolver_lookup_by_address_finish() to get the final result. | |
| 103 | 103 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 104 | 104 | ||
| 105 | - | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 105 | + | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 106 | 106 | ||
| 107 | 107 | } | |
| 108 | 108 | ||
| @@ -169,7 +169,7 @@ var xResolverLookupByNameAsync func(uintptr, string, uintptr, uintptr, uintptr) | |||
| 169 | 169 | // See g_resolver_lookup_by_name() for more details. | |
| 170 | 170 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 171 | 171 | ||
| 172 | - | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 172 | + | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 173 | 173 | ||
| 174 | 174 | } | |
| 175 | 175 | ||
| @@ -216,7 +216,7 @@ var xResolverLookupByNameWithFlagsAsync func(uintptr, string, ResolverNameLookup | |||
| 216 | 216 | // See g_resolver_lookup_by_name() for more details. | |
| 217 | 217 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 218 | 218 | ||
| 219 | - | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 219 | + | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 220 | 220 | ||
| 221 | 221 | } | |
| 222 | 222 | ||
| @@ -270,7 +270,7 @@ var xResolverLookupRecordsAsync func(uintptr, string, ResolverRecordType, uintpt | |||
| 270 | 270 | // g_resolver_lookup_records() for more details. | |
| 271 | 271 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 272 | 272 | ||
| 273 | - | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 273 | + | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 274 | 274 | ||
| 275 | 275 | } | |
| 276 | 276 | ||
| @@ -338,7 +338,7 @@ var xResolverLookupServiceAsync func(uintptr, string, string, string, uintptr, u | |||
| 338 | 338 | // details. | |
| 339 | 339 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 340 | 340 | ||
| 341 | - | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 341 | + | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 342 | 342 | ||
| 343 | 343 | } | |
| 344 | 344 | ||
| @@ -102,7 +102,7 @@ var xResolverLookupByAddressAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||||
| 102 | // call g_resolver_lookup_by_address_finish() to get the final result. | 102 | // call g_resolver_lookup_by_address_finish() to get the final result. | ||
| 103 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 103 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 104 | 104 | ||||
| 105 | - | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 105 | + | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 106 | 106 | ||||
| 107 | } | 107 | } | ||
| 108 | 108 | ||||
| @@ -169,7 +169,7 @@ var xResolverLookupByNameAsync func(uintptr, string, uintptr, uintptr, uintptr) | |||||
| 169 | // See g_resolver_lookup_by_name() for more details. | 169 | // See g_resolver_lookup_by_name() for more details. | ||
| 170 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 170 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 171 | 171 | ||||
| 172 | - | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 172 | + | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 173 | 173 | ||||
| 174 | } | 174 | } | ||
| 175 | 175 | ||||
| @@ -216,7 +216,7 @@ var xResolverLookupByNameWithFlagsAsync func(uintptr, string, ResolverNameLookup | |||||
| 216 | // See g_resolver_lookup_by_name() for more details. | 216 | // See g_resolver_lookup_by_name() for more details. | ||
| 217 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 217 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 218 | 218 | ||||
| 219 | - | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 219 | + | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 220 | 220 | ||||
| 221 | } | 221 | } | ||
| 222 | 222 | ||||
| @@ -270,7 +270,7 @@ var xResolverLookupRecordsAsync func(uintptr, string, ResolverRecordType, uintpt | |||||
| 270 | // g_resolver_lookup_records() for more details. | 270 | // g_resolver_lookup_records() for more details. | ||
| 271 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 271 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 272 | 272 | ||||
| 273 | - | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 273 | + | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 274 | 274 | ||||
| 275 | } | 275 | } | ||
| 276 | 276 | ||||
| @@ -338,7 +338,7 @@ var xResolverLookupServiceAsync func(uintptr, string, string, string, uintptr, u | |||||
| 338 | // details. | 338 | // details. | ||
| 339 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 339 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 340 | 340 | ||||
| 341 | - | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 341 | + | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 342 | 342 | ||||
| 343 | } | 343 | } | ||
| 344 | 344 | ||||
M v4/gio/gsimpleasyncresult.go +7 -7
| @@ -27,7 +27,7 @@ var xSimpleAsyncReportErrorInIdle func(uintptr, uintptr, uintptr, glib.Quark, in | |||
| 27 | 27 | // information. | |
| 28 | 28 | func SimpleAsyncReportErrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | |
| 29 | 29 | ||
| 30 | - | xSimpleAsyncReportErrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 30 | + | xSimpleAsyncReportErrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 31 | 31 | ||
| 32 | 32 | } | |
| 33 | 33 | ||
| @@ -38,7 +38,7 @@ var xSimpleAsyncReportGerrorInIdle func(uintptr, uintptr, uintptr, *glib.Error) | |||
| 38 | 38 | // than building a new one. | |
| 39 | 39 | func SimpleAsyncReportGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | |
| 40 | 40 | ||
| 41 | - | xSimpleAsyncReportGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | |
| 41 | + | xSimpleAsyncReportGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) | |
| 42 | 42 | ||
| 43 | 43 | } | |
| 44 | 44 | ||
| @@ -49,7 +49,7 @@ var xSimpleAsyncReportTakeGerrorInIdle func(uintptr, uintptr, uintptr, *glib.Err | |||
| 49 | 49 | // ownership of @error, so the caller does not have to free it any more. | |
| 50 | 50 | func SimpleAsyncReportTakeGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | |
| 51 | 51 | ||
| 52 | - | xSimpleAsyncReportTakeGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | |
| 52 | + | xSimpleAsyncReportTakeGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) | |
| 53 | 53 | ||
| 54 | 54 | } | |
| 55 | 55 | ||
| @@ -256,7 +256,7 @@ var xNewSimpleAsyncResult func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 256 | 256 | func NewSimpleAsyncResult(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, SourceTagVar uintptr) *SimpleAsyncResult { | |
| 257 | 257 | var cls *SimpleAsyncResult | |
| 258 | 258 | ||
| 259 | - | cret := xNewSimpleAsyncResult(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, SourceTagVar) | |
| 259 | + | cret := xNewSimpleAsyncResult(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, SourceTagVar) | |
| 260 | 260 | ||
| 261 | 261 | if cret == 0 { | |
| 262 | 262 | return nil | |
| @@ -272,7 +272,7 @@ var xNewSimpleAsyncResultError func(uintptr, uintptr, uintptr, glib.Quark, int, | |||
| 272 | 272 | func NewSimpleAsyncResultError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) *SimpleAsyncResult { | |
| 273 | 273 | var cls *SimpleAsyncResult | |
| 274 | 274 | ||
| 275 | - | cret := xNewSimpleAsyncResultError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 275 | + | cret := xNewSimpleAsyncResultError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 276 | 276 | ||
| 277 | 277 | if cret == 0 { | |
| 278 | 278 | return nil | |
| @@ -288,7 +288,7 @@ var xNewSimpleAsyncResultFromError func(uintptr, uintptr, uintptr, *glib.Error) | |||
| 288 | 288 | func NewSimpleAsyncResultFromError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | |
| 289 | 289 | var cls *SimpleAsyncResult | |
| 290 | 290 | ||
| 291 | - | cret := xNewSimpleAsyncResultFromError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | |
| 291 | + | cret := xNewSimpleAsyncResultFromError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) | |
| 292 | 292 | ||
| 293 | 293 | if cret == 0 { | |
| 294 | 294 | return nil | |
| @@ -305,7 +305,7 @@ var xNewSimpleAsyncResultTakeError func(uintptr, uintptr, uintptr, *glib.Error) | |||
| 305 | 305 | func NewSimpleAsyncResultTakeError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | |
| 306 | 306 | var cls *SimpleAsyncResult | |
| 307 | 307 | ||
| 308 | - | cret := xNewSimpleAsyncResultTakeError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | |
| 308 | + | cret := xNewSimpleAsyncResultTakeError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) | |
| 309 | 309 | ||
| 310 | 310 | if cret == 0 { | |
| 311 | 311 | return nil | |
| @@ -27,7 +27,7 @@ var xSimpleAsyncReportErrorInIdle func(uintptr, uintptr, uintptr, glib.Quark, in | |||||
| 27 | // information. | 27 | // information. | ||
| 28 | func SimpleAsyncReportErrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | 28 | func SimpleAsyncReportErrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | ||
| 29 | 29 | ||||
| 30 | - | xSimpleAsyncReportErrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | 30 | + | xSimpleAsyncReportErrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) |
| 31 | 31 | ||||
| 32 | } | 32 | } | ||
| 33 | 33 | ||||
| @@ -38,7 +38,7 @@ var xSimpleAsyncReportGerrorInIdle func(uintptr, uintptr, uintptr, *glib.Error) | |||||
| 38 | // than building a new one. | 38 | // than building a new one. | ||
| 39 | func SimpleAsyncReportGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | 39 | func SimpleAsyncReportGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | ||
| 40 | 40 | ||||
| 41 | - | xSimpleAsyncReportGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | 41 | + | xSimpleAsyncReportGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) |
| 42 | 42 | ||||
| 43 | } | 43 | } | ||
| 44 | 44 | ||||
| @@ -49,7 +49,7 @@ var xSimpleAsyncReportTakeGerrorInIdle func(uintptr, uintptr, uintptr, *glib.Err | |||||
| 49 | // ownership of @error, so the caller does not have to free it any more. | 49 | // ownership of @error, so the caller does not have to free it any more. | ||
| 50 | func SimpleAsyncReportTakeGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | 50 | func SimpleAsyncReportTakeGerrorInIdle(ObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) { | ||
| 51 | 51 | ||||
| 52 | - | xSimpleAsyncReportTakeGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | 52 | + | xSimpleAsyncReportTakeGerrorInIdle(ObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) |
| 53 | 53 | ||||
| 54 | } | 54 | } | ||
| 55 | 55 | ||||
| @@ -256,7 +256,7 @@ var xNewSimpleAsyncResult func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 256 | func NewSimpleAsyncResult(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, SourceTagVar uintptr) *SimpleAsyncResult { | 256 | func NewSimpleAsyncResult(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, SourceTagVar uintptr) *SimpleAsyncResult { | ||
| 257 | var cls *SimpleAsyncResult | 257 | var cls *SimpleAsyncResult | ||
| 258 | 258 | ||||
| 259 | - | cret := xNewSimpleAsyncResult(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, SourceTagVar) | 259 | + | cret := xNewSimpleAsyncResult(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, SourceTagVar) |
| 260 | 260 | ||||
| 261 | if cret == 0 { | 261 | if cret == 0 { | ||
| 262 | return nil | 262 | return nil | ||
| @@ -272,7 +272,7 @@ var xNewSimpleAsyncResultError func(uintptr, uintptr, uintptr, glib.Quark, int, | |||||
| 272 | func NewSimpleAsyncResultError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) *SimpleAsyncResult { | 272 | func NewSimpleAsyncResultError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) *SimpleAsyncResult { | ||
| 273 | var cls *SimpleAsyncResult | 273 | var cls *SimpleAsyncResult | ||
| 274 | 274 | ||||
| 275 | - | cret := xNewSimpleAsyncResultError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) | 275 | + | cret := xNewSimpleAsyncResultError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, DomainVar, CodeVar, FormatVar, varArgs...) |
| 276 | 276 | ||||
| 277 | if cret == 0 { | 277 | if cret == 0 { | ||
| 278 | return nil | 278 | return nil | ||
| @@ -288,7 +288,7 @@ var xNewSimpleAsyncResultFromError func(uintptr, uintptr, uintptr, *glib.Error) | |||||
| 288 | func NewSimpleAsyncResultFromError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | 288 | func NewSimpleAsyncResultFromError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | ||
| 289 | var cls *SimpleAsyncResult | 289 | var cls *SimpleAsyncResult | ||
| 290 | 290 | ||||
| 291 | - | cret := xNewSimpleAsyncResultFromError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | 291 | + | cret := xNewSimpleAsyncResultFromError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) |
| 292 | 292 | ||||
| 293 | if cret == 0 { | 293 | if cret == 0 { | ||
| 294 | return nil | 294 | return nil | ||
| @@ -305,7 +305,7 @@ var xNewSimpleAsyncResultTakeError func(uintptr, uintptr, uintptr, *glib.Error) | |||||
| 305 | func NewSimpleAsyncResultTakeError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | 305 | func NewSimpleAsyncResultTakeError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, UserDataVar uintptr, ErrorVar *glib.Error) *SimpleAsyncResult { | ||
| 306 | var cls *SimpleAsyncResult | 306 | var cls *SimpleAsyncResult | ||
| 307 | 307 | ||||
| 308 | - | cret := xNewSimpleAsyncResultTakeError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar, ErrorVar) | 308 | + | cret := xNewSimpleAsyncResultTakeError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar, ErrorVar) |
| 309 | 309 | ||||
| 310 | if cret == 0 { | 310 | if cret == 0 { | ||
| 311 | return nil | 311 | return nil | ||
M v4/gio/gsimpleproxyresolver.go +1 -1
| @@ -147,7 +147,7 @@ func (x *SimpleProxyResolver) Lookup(UriVar string, CancellableVar *Cancellable) | |||
| 147 | 147 | // details. | |
| 148 | 148 | func (x *SimpleProxyResolver) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 149 | 149 | ||
| 150 | - | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 150 | + | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 151 | 151 | ||
| 152 | 152 | } | |
| 153 | 153 | ||
| @@ -147,7 +147,7 @@ func (x *SimpleProxyResolver) Lookup(UriVar string, CancellableVar *Cancellable) | |||||
| 147 | // details. | 147 | // details. | ||
| 148 | func (x *SimpleProxyResolver) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 148 | func (x *SimpleProxyResolver) LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 149 | 149 | ||||
| 150 | - | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 150 | + | XGProxyResolverLookupAsync(x.GoPointer(), UriVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 151 | 151 | ||||
| 152 | } | 152 | } | ||
| 153 | 153 | ||||
M v4/gio/gsocketaddressenumerator.go +1 -1
| @@ -95,7 +95,7 @@ var xSocketAddressEnumeratorNextAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 95 | 95 | // It is an error to call this multiple times before the previous callback has finished. | |
| 96 | 96 | func (x *SocketAddressEnumerator) NextAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 97 | 97 | ||
| 98 | - | xSocketAddressEnumeratorNextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 98 | + | xSocketAddressEnumeratorNextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 99 | 99 | ||
| 100 | 100 | } | |
| 101 | 101 | ||
| @@ -95,7 +95,7 @@ var xSocketAddressEnumeratorNextAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 95 | // It is an error to call this multiple times before the previous callback has finished. | 95 | // It is an error to call this multiple times before the previous callback has finished. | ||
| 96 | func (x *SocketAddressEnumerator) NextAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 96 | func (x *SocketAddressEnumerator) NextAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 97 | 97 | ||||
| 98 | - | xSocketAddressEnumeratorNextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 98 | + | xSocketAddressEnumeratorNextAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 99 | 99 | ||||
| 100 | } | 100 | } | ||
| 101 | 101 | ||||
M v4/gio/gsocketclient.go +4 -4
| @@ -158,7 +158,7 @@ var xSocketClientConnectAsync func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 158 | 158 | // the result of the operation. | |
| 159 | 159 | func (x *SocketClient) ConnectAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 160 | 160 | ||
| 161 | - | xSocketClientConnectAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 161 | + | xSocketClientConnectAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 162 | 162 | ||
| 163 | 163 | } | |
| 164 | 164 | ||
| @@ -242,7 +242,7 @@ var xSocketClientConnectToHostAsync func(uintptr, string, uint16, uintptr, uintp | |||
| 242 | 242 | // the result of the operation. | |
| 243 | 243 | func (x *SocketClient) ConnectToHostAsync(HostAndPortVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 244 | 244 | ||
| 245 | - | xSocketClientConnectToHostAsync(x.GoPointer(), HostAndPortVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 245 | + | xSocketClientConnectToHostAsync(x.GoPointer(), HostAndPortVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 246 | 246 | ||
| 247 | 247 | } | |
| 248 | 248 | ||
| @@ -307,7 +307,7 @@ var xSocketClientConnectToServiceAsync func(uintptr, string, string, uintptr, ui | |||
| 307 | 307 | // g_socket_client_connect_to_service(). | |
| 308 | 308 | func (x *SocketClient) ConnectToServiceAsync(DomainVar string, ServiceVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 309 | 309 | ||
| 310 | - | xSocketClientConnectToServiceAsync(x.GoPointer(), DomainVar, ServiceVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 310 | + | xSocketClientConnectToServiceAsync(x.GoPointer(), DomainVar, ServiceVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 311 | 311 | ||
| 312 | 312 | } | |
| 313 | 313 | ||
| @@ -382,7 +382,7 @@ var xSocketClientConnectToUriAsync func(uintptr, string, uint16, uintptr, uintpt | |||
| 382 | 382 | // the result of the operation. | |
| 383 | 383 | func (x *SocketClient) ConnectToUriAsync(UriVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 384 | 384 | ||
| 385 | - | xSocketClientConnectToUriAsync(x.GoPointer(), UriVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 385 | + | xSocketClientConnectToUriAsync(x.GoPointer(), UriVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 386 | 386 | ||
| 387 | 387 | } | |
| 388 | 388 | ||
| @@ -158,7 +158,7 @@ var xSocketClientConnectAsync func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 158 | // the result of the operation. | 158 | // the result of the operation. | ||
| 159 | func (x *SocketClient) ConnectAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 159 | func (x *SocketClient) ConnectAsync(ConnectableVar SocketConnectable, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 160 | 160 | ||||
| 161 | - | xSocketClientConnectAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 161 | + | xSocketClientConnectAsync(x.GoPointer(), ConnectableVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 162 | 162 | ||||
| 163 | } | 163 | } | ||
| 164 | 164 | ||||
| @@ -242,7 +242,7 @@ var xSocketClientConnectToHostAsync func(uintptr, string, uint16, uintptr, uintp | |||||
| 242 | // the result of the operation. | 242 | // the result of the operation. | ||
| 243 | func (x *SocketClient) ConnectToHostAsync(HostAndPortVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 243 | func (x *SocketClient) ConnectToHostAsync(HostAndPortVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 244 | 244 | ||||
| 245 | - | xSocketClientConnectToHostAsync(x.GoPointer(), HostAndPortVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 245 | + | xSocketClientConnectToHostAsync(x.GoPointer(), HostAndPortVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 246 | 246 | ||||
| 247 | } | 247 | } | ||
| 248 | 248 | ||||
| @@ -307,7 +307,7 @@ var xSocketClientConnectToServiceAsync func(uintptr, string, string, uintptr, ui | |||||
| 307 | // g_socket_client_connect_to_service(). | 307 | // g_socket_client_connect_to_service(). | ||
| 308 | func (x *SocketClient) ConnectToServiceAsync(DomainVar string, ServiceVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 308 | func (x *SocketClient) ConnectToServiceAsync(DomainVar string, ServiceVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 309 | 309 | ||||
| 310 | - | xSocketClientConnectToServiceAsync(x.GoPointer(), DomainVar, ServiceVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 310 | + | xSocketClientConnectToServiceAsync(x.GoPointer(), DomainVar, ServiceVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 311 | 311 | ||||
| 312 | } | 312 | } | ||
| 313 | 313 | ||||
| @@ -382,7 +382,7 @@ var xSocketClientConnectToUriAsync func(uintptr, string, uint16, uintptr, uintpt | |||||
| 382 | // the result of the operation. | 382 | // the result of the operation. | ||
| 383 | func (x *SocketClient) ConnectToUriAsync(UriVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 383 | func (x *SocketClient) ConnectToUriAsync(UriVar string, DefaultPortVar uint16, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 384 | 384 | ||||
| 385 | - | xSocketClientConnectToUriAsync(x.GoPointer(), UriVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 385 | + | xSocketClientConnectToUriAsync(x.GoPointer(), UriVar, DefaultPortVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 386 | 386 | ||||
| 387 | } | 387 | } | ||
| 388 | 388 | ||||
M v4/gio/gsocketconnection.go +1 -1
| @@ -86,7 +86,7 @@ var xSocketConnectionConnectAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||
| 86 | 86 | // Use g_socket_connection_connect_finish() to retrieve the result. | |
| 87 | 87 | func (x *SocketConnection) ConnectAsync(AddressVar *SocketAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 88 | 88 | ||
| 89 | - | xSocketConnectionConnectAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 89 | + | xSocketConnectionConnectAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 90 | 90 | ||
| 91 | 91 | } | |
| 92 | 92 | ||
| @@ -86,7 +86,7 @@ var xSocketConnectionConnectAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||||
| 86 | // Use g_socket_connection_connect_finish() to retrieve the result. | 86 | // Use g_socket_connection_connect_finish() to retrieve the result. | ||
| 87 | func (x *SocketConnection) ConnectAsync(AddressVar *SocketAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 87 | func (x *SocketConnection) ConnectAsync(AddressVar *SocketAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 88 | 88 | ||||
| 89 | - | xSocketConnectionConnectAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 89 | + | xSocketConnectionConnectAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 90 | 90 | ||||
| 91 | } | 91 | } | ||
| 92 | 92 | ||||
M v4/gio/gsocketlistener.go +2 -2
| @@ -119,7 +119,7 @@ var xSocketListenerAcceptAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 119 | 119 | // to get the result of the operation. | |
| 120 | 120 | func (x *SocketListener) AcceptAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 121 | 121 | ||
| 122 | - | xSocketListenerAcceptAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 122 | + | xSocketListenerAcceptAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 123 | 123 | ||
| 124 | 124 | } | |
| 125 | 125 | ||
| @@ -187,7 +187,7 @@ var xSocketListenerAcceptSocketAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 187 | 187 | // to get the result of the operation. | |
| 188 | 188 | func (x *SocketListener) AcceptSocketAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 189 | 189 | ||
| 190 | - | xSocketListenerAcceptSocketAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 190 | + | xSocketListenerAcceptSocketAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 191 | 191 | ||
| 192 | 192 | } | |
| 193 | 193 | ||
| @@ -119,7 +119,7 @@ var xSocketListenerAcceptAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 119 | // to get the result of the operation. | 119 | // to get the result of the operation. | ||
| 120 | func (x *SocketListener) AcceptAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 120 | func (x *SocketListener) AcceptAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 121 | 121 | ||||
| 122 | - | xSocketListenerAcceptAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 122 | + | xSocketListenerAcceptAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 123 | 123 | ||||
| 124 | } | 124 | } | ||
| 125 | 125 | ||||
| @@ -187,7 +187,7 @@ var xSocketListenerAcceptSocketAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 187 | // to get the result of the operation. | 187 | // to get the result of the operation. | ||
| 188 | func (x *SocketListener) AcceptSocketAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 188 | func (x *SocketListener) AcceptSocketAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 189 | 189 | ||||
| 190 | - | xSocketListenerAcceptSocketAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 190 | + | xSocketListenerAcceptSocketAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 191 | 191 | ||||
| 192 | } | 192 | } | ||
| 193 | 193 | ||||
M v4/gio/gtask.go +5 -5
| @@ -581,7 +581,7 @@ var xNewTask func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 581 | 581 | func NewTask(SourceObjectVar *gobject.Object, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr) *Task { | |
| 582 | 582 | var cls *Task | |
| 583 | 583 | ||
| 584 | - | cret := xNewTask(SourceObjectVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar) | |
| 584 | + | cret := xNewTask(SourceObjectVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar) | |
| 585 | 585 | ||
| 586 | 586 | if cret == 0 { | |
| 587 | 587 | return nil | |
| @@ -907,7 +907,7 @@ var xTaskReturnPointer func(uintptr, uintptr, uintptr) | |||
| 907 | 907 | // reference on it. | |
| 908 | 908 | func (x *Task) ReturnPointer(ResultVar uintptr, ResultDestroyVar *glib.DestroyNotify) { | |
| 909 | 909 | ||
| 910 | - | xTaskReturnPointer(x.GoPointer(), ResultVar, glib.NewCallback(ResultDestroyVar)) | |
| 910 | + | xTaskReturnPointer(x.GoPointer(), ResultVar, glib.NewCallbackNullable(ResultDestroyVar)) | |
| 911 | 911 | ||
| 912 | 912 | } | |
| 913 | 913 | ||
| @@ -1087,7 +1087,7 @@ var xTaskSetTaskData func(uintptr, uintptr, uintptr) | |||
| 1087 | 1087 | // Sets @task's task data (freeing the existing task data, if any). | |
| 1088 | 1088 | func (x *Task) SetTaskData(TaskDataVar uintptr, TaskDataDestroyVar *glib.DestroyNotify) { | |
| 1089 | 1089 | ||
| 1090 | - | xTaskSetTaskData(x.GoPointer(), TaskDataVar, glib.NewCallback(TaskDataDestroyVar)) | |
| 1090 | + | xTaskSetTaskData(x.GoPointer(), TaskDataVar, glib.NewCallbackNullable(TaskDataDestroyVar)) | |
| 1091 | 1091 | ||
| 1092 | 1092 | } | |
| 1093 | 1093 | ||
| @@ -1161,7 +1161,7 @@ var xTaskReportError func(uintptr, uintptr, uintptr, uintptr, *glib.Error) | |||
| 1161 | 1161 | // See also g_task_report_new_error(). | |
| 1162 | 1162 | func TaskReportError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, ErrorVar *glib.Error) { | |
| 1163 | 1163 | ||
| 1164 | - | xTaskReportError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar, SourceTagVar, ErrorVar) | |
| 1164 | + | xTaskReportError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar, SourceTagVar, ErrorVar) | |
| 1165 | 1165 | ||
| 1166 | 1166 | } | |
| 1167 | 1167 | ||
| @@ -1178,7 +1178,7 @@ var xTaskReportNewError func(uintptr, uintptr, uintptr, uintptr, glib.Quark, int | |||
| 1178 | 1178 | // See also g_task_report_error(). | |
| 1179 | 1179 | func TaskReportNewError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | |
| 1180 | 1180 | ||
| 1181 | - | xTaskReportNewError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar, SourceTagVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 1181 | + | xTaskReportNewError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar, SourceTagVar, DomainVar, CodeVar, FormatVar, varArgs...) | |
| 1182 | 1182 | ||
| 1183 | 1183 | } | |
| 1184 | 1184 | ||
| @@ -581,7 +581,7 @@ var xNewTask func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 581 | func NewTask(SourceObjectVar *gobject.Object, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr) *Task { | 581 | func NewTask(SourceObjectVar *gobject.Object, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr) *Task { | ||
| 582 | var cls *Task | 582 | var cls *Task | ||
| 583 | 583 | ||||
| 584 | - | cret := xNewTask(SourceObjectVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar) | 584 | + | cret := xNewTask(SourceObjectVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar) |
| 585 | 585 | ||||
| 586 | if cret == 0 { | 586 | if cret == 0 { | ||
| 587 | return nil | 587 | return nil | ||
| @@ -907,7 +907,7 @@ var xTaskReturnPointer func(uintptr, uintptr, uintptr) | |||||
| 907 | // reference on it. | 907 | // reference on it. | ||
| 908 | func (x *Task) ReturnPointer(ResultVar uintptr, ResultDestroyVar *glib.DestroyNotify) { | 908 | func (x *Task) ReturnPointer(ResultVar uintptr, ResultDestroyVar *glib.DestroyNotify) { | ||
| 909 | 909 | ||||
| 910 | - | xTaskReturnPointer(x.GoPointer(), ResultVar, glib.NewCallback(ResultDestroyVar)) | 910 | + | xTaskReturnPointer(x.GoPointer(), ResultVar, glib.NewCallbackNullable(ResultDestroyVar)) |
| 911 | 911 | ||||
| 912 | } | 912 | } | ||
| 913 | 913 | ||||
| @@ -1087,7 +1087,7 @@ var xTaskSetTaskData func(uintptr, uintptr, uintptr) | |||||
| 1087 | // Sets @task's task data (freeing the existing task data, if any). | 1087 | // Sets @task's task data (freeing the existing task data, if any). | ||
| 1088 | func (x *Task) SetTaskData(TaskDataVar uintptr, TaskDataDestroyVar *glib.DestroyNotify) { | 1088 | func (x *Task) SetTaskData(TaskDataVar uintptr, TaskDataDestroyVar *glib.DestroyNotify) { | ||
| 1089 | 1089 | ||||
| 1090 | - | xTaskSetTaskData(x.GoPointer(), TaskDataVar, glib.NewCallback(TaskDataDestroyVar)) | 1090 | + | xTaskSetTaskData(x.GoPointer(), TaskDataVar, glib.NewCallbackNullable(TaskDataDestroyVar)) |
| 1091 | 1091 | ||||
| 1092 | } | 1092 | } | ||
| 1093 | 1093 | ||||
| @@ -1161,7 +1161,7 @@ var xTaskReportError func(uintptr, uintptr, uintptr, uintptr, *glib.Error) | |||||
| 1161 | // See also g_task_report_new_error(). | 1161 | // See also g_task_report_new_error(). | ||
| 1162 | func TaskReportError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, ErrorVar *glib.Error) { | 1162 | func TaskReportError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, ErrorVar *glib.Error) { | ||
| 1163 | 1163 | ||||
| 1164 | - | xTaskReportError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar, SourceTagVar, ErrorVar) | 1164 | + | xTaskReportError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar, SourceTagVar, ErrorVar) |
| 1165 | 1165 | ||||
| 1166 | } | 1166 | } | ||
| 1167 | 1167 | ||||
| @@ -1178,7 +1178,7 @@ var xTaskReportNewError func(uintptr, uintptr, uintptr, uintptr, glib.Quark, int | |||||
| 1178 | // See also g_task_report_error(). | 1178 | // See also g_task_report_error(). | ||
| 1179 | func TaskReportNewError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | 1179 | func TaskReportNewError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReadyCallback, CallbackDataVar uintptr, SourceTagVar uintptr, DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | ||
| 1180 | 1180 | ||||
| 1181 | - | xTaskReportNewError(SourceObjectVar.GoPointer(), glib.NewCallback(CallbackVar), CallbackDataVar, SourceTagVar, DomainVar, CodeVar, FormatVar, varArgs...) | 1181 | + | xTaskReportNewError(SourceObjectVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), CallbackDataVar, SourceTagVar, DomainVar, CodeVar, FormatVar, varArgs...) |
| 1182 | 1182 | ||||
| 1183 | } | 1183 | } | ||
| 1184 | 1184 | ||||
M v4/gio/gtlsconnection.go +1 -1
| @@ -302,7 +302,7 @@ var xTlsConnectionHandshakeAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 302 | 302 | // g_tls_connection_handshake() for more information. | |
| 303 | 303 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 304 | 304 | ||
| 305 | - | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 305 | + | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 306 | 306 | ||
| 307 | 307 | } | |
| 308 | 308 | ||
| @@ -302,7 +302,7 @@ var xTlsConnectionHandshakeAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 302 | // g_tls_connection_handshake() for more information. | 302 | // g_tls_connection_handshake() for more information. | ||
| 303 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 303 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 304 | 304 | ||||
| 305 | - | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 305 | + | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 306 | 306 | ||||
| 307 | } | 307 | } | ||
| 308 | 308 | ||||
M v4/gio/gtlsdatabase.go +4 -4
| @@ -123,7 +123,7 @@ var xTlsDatabaseLookupCertificateForHandleAsync func(uintptr, string, uintptr, T | |||
| 123 | 123 | // g_tls_database_lookup_certificate_for_handle() for more information. | |
| 124 | 124 | func (x *TlsDatabase) LookupCertificateForHandleAsync(HandleVar string, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 125 | 125 | ||
| 126 | - | xTlsDatabaseLookupCertificateForHandleAsync(x.GoPointer(), HandleVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 126 | + | xTlsDatabaseLookupCertificateForHandleAsync(x.GoPointer(), HandleVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 127 | 127 | ||
| 128 | 128 | } | |
| 129 | 129 | ||
| @@ -198,7 +198,7 @@ var xTlsDatabaseLookupCertificateIssuerAsync func(uintptr, uintptr, uintptr, Tls | |||
| 198 | 198 | // g_tls_database_lookup_certificate_issuer() for more information. | |
| 199 | 199 | func (x *TlsDatabase) LookupCertificateIssuerAsync(CertificateVar *TlsCertificate, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 200 | 200 | ||
| 201 | - | xTlsDatabaseLookupCertificateIssuerAsync(x.GoPointer(), CertificateVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 201 | + | xTlsDatabaseLookupCertificateIssuerAsync(x.GoPointer(), CertificateVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 202 | 202 | ||
| 203 | 203 | } | |
| 204 | 204 | ||
| @@ -251,7 +251,7 @@ var xTlsDatabaseLookupCertificatesIssuedByAsync func(uintptr, []byte, uintptr, T | |||
| 251 | 251 | // this time. | |
| 252 | 252 | func (x *TlsDatabase) LookupCertificatesIssuedByAsync(IssuerRawDnVar []byte, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 253 | 253 | ||
| 254 | - | xTlsDatabaseLookupCertificatesIssuedByAsync(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 254 | + | xTlsDatabaseLookupCertificatesIssuedByAsync(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 255 | 255 | ||
| 256 | 256 | } | |
| 257 | 257 | ||
| @@ -350,7 +350,7 @@ var xTlsDatabaseVerifyChainAsync func(uintptr, uintptr, string, uintptr, uintptr | |||
| 350 | 350 | // g_tls_database_verify_chain() for more information. | |
| 351 | 351 | func (x *TlsDatabase) VerifyChainAsync(ChainVar *TlsCertificate, PurposeVar string, IdentityVar SocketConnectable, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseVerifyFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 352 | 352 | ||
| 353 | - | xTlsDatabaseVerifyChainAsync(x.GoPointer(), ChainVar.GoPointer(), PurposeVar, IdentityVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 353 | + | xTlsDatabaseVerifyChainAsync(x.GoPointer(), ChainVar.GoPointer(), PurposeVar, IdentityVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 354 | 354 | ||
| 355 | 355 | } | |
| 356 | 356 | ||
| @@ -123,7 +123,7 @@ var xTlsDatabaseLookupCertificateForHandleAsync func(uintptr, string, uintptr, T | |||||
| 123 | // g_tls_database_lookup_certificate_for_handle() for more information. | 123 | // g_tls_database_lookup_certificate_for_handle() for more information. | ||
| 124 | func (x *TlsDatabase) LookupCertificateForHandleAsync(HandleVar string, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 124 | func (x *TlsDatabase) LookupCertificateForHandleAsync(HandleVar string, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 125 | 125 | ||||
| 126 | - | xTlsDatabaseLookupCertificateForHandleAsync(x.GoPointer(), HandleVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 126 | + | xTlsDatabaseLookupCertificateForHandleAsync(x.GoPointer(), HandleVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 127 | 127 | ||||
| 128 | } | 128 | } | ||
| 129 | 129 | ||||
| @@ -198,7 +198,7 @@ var xTlsDatabaseLookupCertificateIssuerAsync func(uintptr, uintptr, uintptr, Tls | |||||
| 198 | // g_tls_database_lookup_certificate_issuer() for more information. | 198 | // g_tls_database_lookup_certificate_issuer() for more information. | ||
| 199 | func (x *TlsDatabase) LookupCertificateIssuerAsync(CertificateVar *TlsCertificate, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 199 | func (x *TlsDatabase) LookupCertificateIssuerAsync(CertificateVar *TlsCertificate, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 200 | 200 | ||||
| 201 | - | xTlsDatabaseLookupCertificateIssuerAsync(x.GoPointer(), CertificateVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 201 | + | xTlsDatabaseLookupCertificateIssuerAsync(x.GoPointer(), CertificateVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 202 | 202 | ||||
| 203 | } | 203 | } | ||
| 204 | 204 | ||||
| @@ -251,7 +251,7 @@ var xTlsDatabaseLookupCertificatesIssuedByAsync func(uintptr, []byte, uintptr, T | |||||
| 251 | // this time. | 251 | // this time. | ||
| 252 | func (x *TlsDatabase) LookupCertificatesIssuedByAsync(IssuerRawDnVar []byte, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 252 | func (x *TlsDatabase) LookupCertificatesIssuedByAsync(IssuerRawDnVar []byte, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 253 | 253 | ||||
| 254 | - | xTlsDatabaseLookupCertificatesIssuedByAsync(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 254 | + | xTlsDatabaseLookupCertificatesIssuedByAsync(x.GoPointer(), IssuerRawDnVar, InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 255 | 255 | ||||
| 256 | } | 256 | } | ||
| 257 | 257 | ||||
| @@ -350,7 +350,7 @@ var xTlsDatabaseVerifyChainAsync func(uintptr, uintptr, string, uintptr, uintptr | |||||
| 350 | // g_tls_database_verify_chain() for more information. | 350 | // g_tls_database_verify_chain() for more information. | ||
| 351 | func (x *TlsDatabase) VerifyChainAsync(ChainVar *TlsCertificate, PurposeVar string, IdentityVar SocketConnectable, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseVerifyFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 351 | func (x *TlsDatabase) VerifyChainAsync(ChainVar *TlsCertificate, PurposeVar string, IdentityVar SocketConnectable, InteractionVar *TlsInteraction, FlagsVar TlsDatabaseVerifyFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 352 | 352 | ||||
| 353 | - | xTlsDatabaseVerifyChainAsync(x.GoPointer(), ChainVar.GoPointer(), PurposeVar, IdentityVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 353 | + | xTlsDatabaseVerifyChainAsync(x.GoPointer(), ChainVar.GoPointer(), PurposeVar, IdentityVar.GoPointer(), InteractionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 354 | 354 | ||||
| 355 | } | 355 | } | ||
| 356 | 356 | ||||
M v4/gio/gtlsinteraction.go +2 -2
| @@ -127,7 +127,7 @@ var xTlsInteractionAskPasswordAsync func(uintptr, uintptr, uintptr, uintptr, uin | |||
| 127 | 127 | // Certain implementations may not support immediate cancellation. | |
| 128 | 128 | func (x *TlsInteraction) AskPasswordAsync(PasswordVar *TlsPassword, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 129 | 129 | ||
| 130 | - | xTlsInteractionAskPasswordAsync(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 130 | + | xTlsInteractionAskPasswordAsync(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 131 | 131 | ||
| 132 | 132 | } | |
| 133 | 133 | ||
| @@ -259,7 +259,7 @@ var xTlsInteractionRequestCertificateAsync func(uintptr, uintptr, TlsCertificate | |||
| 259 | 259 | // request, which will usually abort the TLS connection. | |
| 260 | 260 | func (x *TlsInteraction) RequestCertificateAsync(ConnectionVar *TlsConnection, FlagsVar TlsCertificateRequestFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 261 | 261 | ||
| 262 | - | xTlsInteractionRequestCertificateAsync(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 262 | + | xTlsInteractionRequestCertificateAsync(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 263 | 263 | ||
| 264 | 264 | } | |
| 265 | 265 | ||
| @@ -127,7 +127,7 @@ var xTlsInteractionAskPasswordAsync func(uintptr, uintptr, uintptr, uintptr, uin | |||||
| 127 | // Certain implementations may not support immediate cancellation. | 127 | // Certain implementations may not support immediate cancellation. | ||
| 128 | func (x *TlsInteraction) AskPasswordAsync(PasswordVar *TlsPassword, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 128 | func (x *TlsInteraction) AskPasswordAsync(PasswordVar *TlsPassword, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 129 | 129 | ||||
| 130 | - | xTlsInteractionAskPasswordAsync(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 130 | + | xTlsInteractionAskPasswordAsync(x.GoPointer(), PasswordVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 131 | 131 | ||||
| 132 | } | 132 | } | ||
| 133 | 133 | ||||
| @@ -259,7 +259,7 @@ var xTlsInteractionRequestCertificateAsync func(uintptr, uintptr, TlsCertificate | |||||
| 259 | // request, which will usually abort the TLS connection. | 259 | // request, which will usually abort the TLS connection. | ||
| 260 | func (x *TlsInteraction) RequestCertificateAsync(ConnectionVar *TlsConnection, FlagsVar TlsCertificateRequestFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 260 | func (x *TlsInteraction) RequestCertificateAsync(ConnectionVar *TlsConnection, FlagsVar TlsCertificateRequestFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 261 | 261 | ||||
| 262 | - | xTlsInteractionRequestCertificateAsync(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 262 | + | xTlsInteractionRequestCertificateAsync(x.GoPointer(), ConnectionVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 263 | 263 | ||||
| 264 | } | 264 | } | ||
| 265 | 265 | ||||
M v4/gio/gtlspassword.go +1 -1
| @@ -154,7 +154,7 @@ var xTlsPasswordSetValueFull func(uintptr, []byte, int, uintptr) | |||
| 154 | 154 | // considered part of the password in this case.) | |
| 155 | 155 | func (x *TlsPassword) SetValueFull(ValueVar []byte, LengthVar int, DestroyVar *glib.DestroyNotify) { | |
| 156 | 156 | ||
| 157 | - | xTlsPasswordSetValueFull(x.GoPointer(), ValueVar, LengthVar, glib.NewCallback(DestroyVar)) | |
| 157 | + | xTlsPasswordSetValueFull(x.GoPointer(), ValueVar, LengthVar, glib.NewCallbackNullable(DestroyVar)) | |
| 158 | 158 | ||
| 159 | 159 | } | |
| 160 | 160 | ||
| @@ -154,7 +154,7 @@ var xTlsPasswordSetValueFull func(uintptr, []byte, int, uintptr) | |||||
| 154 | // considered part of the password in this case.) | 154 | // considered part of the password in this case.) | ||
| 155 | func (x *TlsPassword) SetValueFull(ValueVar []byte, LengthVar int, DestroyVar *glib.DestroyNotify) { | 155 | func (x *TlsPassword) SetValueFull(ValueVar []byte, LengthVar int, DestroyVar *glib.DestroyNotify) { | ||
| 156 | 156 | ||||
| 157 | - | xTlsPasswordSetValueFull(x.GoPointer(), ValueVar, LengthVar, glib.NewCallback(DestroyVar)) | 157 | + | xTlsPasswordSetValueFull(x.GoPointer(), ValueVar, LengthVar, glib.NewCallbackNullable(DestroyVar)) |
| 158 | 158 | ||||
| 159 | } | 159 | } | ||
| 160 | 160 | ||||
M v4/gio/gunixconnection.go +2 -2
| @@ -106,7 +106,7 @@ var xUnixConnectionReceiveCredentialsAsync func(uintptr, uintptr, uintptr, uintp | |||
| 106 | 106 | // g_unix_connection_receive_credentials_finish() to get the result of the operation. | |
| 107 | 107 | func (x *UnixConnection) ReceiveCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 108 | 108 | ||
| 109 | - | xUnixConnectionReceiveCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 109 | + | xUnixConnectionReceiveCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 110 | 110 | ||
| 111 | 111 | } | |
| 112 | 112 | ||
| @@ -195,7 +195,7 @@ var xUnixConnectionSendCredentialsAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 195 | 195 | // g_unix_connection_send_credentials_finish() to get the result of the operation. | |
| 196 | 196 | func (x *UnixConnection) SendCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 197 | 197 | ||
| 198 | - | xUnixConnectionSendCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 198 | + | xUnixConnectionSendCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 199 | 199 | ||
| 200 | 200 | } | |
| 201 | 201 | ||
| @@ -106,7 +106,7 @@ var xUnixConnectionReceiveCredentialsAsync func(uintptr, uintptr, uintptr, uintp | |||||
| 106 | // g_unix_connection_receive_credentials_finish() to get the result of the operation. | 106 | // g_unix_connection_receive_credentials_finish() to get the result of the operation. | ||
| 107 | func (x *UnixConnection) ReceiveCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 107 | func (x *UnixConnection) ReceiveCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 108 | 108 | ||||
| 109 | - | xUnixConnectionReceiveCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 109 | + | xUnixConnectionReceiveCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 110 | 110 | ||||
| 111 | } | 111 | } | ||
| 112 | 112 | ||||
| @@ -195,7 +195,7 @@ var xUnixConnectionSendCredentialsAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 195 | // g_unix_connection_send_credentials_finish() to get the result of the operation. | 195 | // g_unix_connection_send_credentials_finish() to get the result of the operation. | ||
| 196 | func (x *UnixConnection) SendCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 196 | func (x *UnixConnection) SendCredentialsAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 197 | 197 | ||||
| 198 | - | xUnixConnectionSendCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 198 | + | xUnixConnectionSendCredentialsAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 199 | 199 | ||||
| 200 | } | 200 | } | ||
| 201 | 201 | ||||
M v4/gio/gvfs.go +1 -1
| @@ -149,7 +149,7 @@ var xVfsRegisterUriScheme func(uintptr, string, uintptr, uintptr, uintptr, uintp | |||
| 149 | 149 | // a custom URI scheme, use g_vfs_unregister_uri_scheme(). | |
| 150 | 150 | func (x *Vfs) RegisterUriScheme(SchemeVar string, UriFuncVar *VfsFileLookupFunc, UriDataVar uintptr, UriDestroyVar *glib.DestroyNotify, ParseNameFuncVar *VfsFileLookupFunc, ParseNameDataVar uintptr, ParseNameDestroyVar *glib.DestroyNotify) bool { | |
| 151 | 151 | ||
| 152 | - | cret := xVfsRegisterUriScheme(x.GoPointer(), SchemeVar, glib.NewCallback(UriFuncVar), UriDataVar, glib.NewCallback(UriDestroyVar), glib.NewCallback(ParseNameFuncVar), ParseNameDataVar, glib.NewCallback(ParseNameDestroyVar)) | |
| 152 | + | cret := xVfsRegisterUriScheme(x.GoPointer(), SchemeVar, glib.NewCallbackNullable(UriFuncVar), UriDataVar, glib.NewCallbackNullable(UriDestroyVar), glib.NewCallbackNullable(ParseNameFuncVar), ParseNameDataVar, glib.NewCallbackNullable(ParseNameDestroyVar)) | |
| 153 | 153 | return cret | |
| 154 | 154 | } | |
| 155 | 155 | ||
| @@ -149,7 +149,7 @@ var xVfsRegisterUriScheme func(uintptr, string, uintptr, uintptr, uintptr, uintp | |||||
| 149 | // a custom URI scheme, use g_vfs_unregister_uri_scheme(). | 149 | // a custom URI scheme, use g_vfs_unregister_uri_scheme(). | ||
| 150 | func (x *Vfs) RegisterUriScheme(SchemeVar string, UriFuncVar *VfsFileLookupFunc, UriDataVar uintptr, UriDestroyVar *glib.DestroyNotify, ParseNameFuncVar *VfsFileLookupFunc, ParseNameDataVar uintptr, ParseNameDestroyVar *glib.DestroyNotify) bool { | 150 | func (x *Vfs) RegisterUriScheme(SchemeVar string, UriFuncVar *VfsFileLookupFunc, UriDataVar uintptr, UriDestroyVar *glib.DestroyNotify, ParseNameFuncVar *VfsFileLookupFunc, ParseNameDataVar uintptr, ParseNameDestroyVar *glib.DestroyNotify) bool { | ||
| 151 | 151 | ||||
| 152 | - | cret := xVfsRegisterUriScheme(x.GoPointer(), SchemeVar, glib.NewCallback(UriFuncVar), UriDataVar, glib.NewCallback(UriDestroyVar), glib.NewCallback(ParseNameFuncVar), ParseNameDataVar, glib.NewCallback(ParseNameDestroyVar)) | 152 | + | cret := xVfsRegisterUriScheme(x.GoPointer(), SchemeVar, glib.NewCallbackNullable(UriFuncVar), UriDataVar, glib.NewCallbackNullable(UriDestroyVar), glib.NewCallbackNullable(ParseNameFuncVar), ParseNameDataVar, glib.NewCallbackNullable(ParseNameDestroyVar)) |
| 153 | return cret | 153 | return cret | ||
| 154 | } | 154 | } | ||
| 155 | 155 | ||||
M v4/gio/gvolume.go +3 -3
| @@ -126,7 +126,7 @@ func (x *VolumeBase) CanMount() bool { | |||
| 126 | 126 | // and #GAsyncResult returned in the @callback. | |
| 127 | 127 | func (x *VolumeBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 128 | 128 | ||
| 129 | - | XGVolumeEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 129 | + | XGVolumeEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 130 | 130 | ||
| 131 | 131 | } | |
| 132 | 132 | ||
| @@ -148,7 +148,7 @@ func (x *VolumeBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||
| 148 | 148 | // and #GAsyncResult data returned in the @callback. | |
| 149 | 149 | func (x *VolumeBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 150 | 150 | ||
| 151 | - | XGVolumeEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 151 | + | XGVolumeEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 152 | 152 | ||
| 153 | 153 | } | |
| 154 | 154 | ||
| @@ -310,7 +310,7 @@ func (x *VolumeBase) GetUuid() string { | |||
| 310 | 310 | // and #GAsyncResult returned in the @callback. | |
| 311 | 311 | func (x *VolumeBase) Mount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 312 | 312 | ||
| 313 | - | XGVolumeMount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 313 | + | XGVolumeMount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 314 | 314 | ||
| 315 | 315 | } | |
| 316 | 316 | ||
| @@ -126,7 +126,7 @@ func (x *VolumeBase) CanMount() bool { | |||||
| 126 | // and #GAsyncResult returned in the @callback. | 126 | // and #GAsyncResult returned in the @callback. | ||
| 127 | func (x *VolumeBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 127 | func (x *VolumeBase) Eject(FlagsVar MountUnmountFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 128 | 128 | ||||
| 129 | - | XGVolumeEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 129 | + | XGVolumeEject(x.GoPointer(), FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 130 | 130 | ||||
| 131 | } | 131 | } | ||
| 132 | 132 | ||||
| @@ -148,7 +148,7 @@ func (x *VolumeBase) EjectFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 148 | // and #GAsyncResult data returned in the @callback. | 148 | // and #GAsyncResult data returned in the @callback. | ||
| 149 | func (x *VolumeBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 149 | func (x *VolumeBase) EjectWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 150 | 150 | ||||
| 151 | - | XGVolumeEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 151 | + | XGVolumeEjectWithOperation(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 152 | 152 | ||||
| 153 | } | 153 | } | ||
| 154 | 154 | ||||
| @@ -310,7 +310,7 @@ func (x *VolumeBase) GetUuid() string { | |||||
| 310 | // and #GAsyncResult returned in the @callback. | 310 | // and #GAsyncResult returned in the @callback. | ||
| 311 | func (x *VolumeBase) Mount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 311 | func (x *VolumeBase) Mount(FlagsVar MountMountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 312 | 312 | ||||
| 313 | - | XGVolumeMount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 313 | + | XGVolumeMount(x.GoPointer(), FlagsVar, MountOperationVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 314 | 314 | ||||
| 315 | } | 315 | } | ||
| 316 | 316 | ||||
M v4/glib/garray.go +1 -1
| @@ -435,7 +435,7 @@ var xPtrArrayFindWithEqualFunc func([]uintptr, uintptr, uintptr, uint) bool | |||
| 435 | 435 | // equality is used. | |
| 436 | 436 | func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFuncVar *EqualFunc, IndexVar uint) bool { | |
| 437 | 437 | ||
| 438 | - | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, NewCallback(EqualFuncVar), IndexVar) | |
| 438 | + | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, NewCallbackNullable(EqualFuncVar), IndexVar) | |
| 439 | 439 | return cret | |
| 440 | 440 | } | |
| 441 | 441 | ||
| @@ -435,7 +435,7 @@ var xPtrArrayFindWithEqualFunc func([]uintptr, uintptr, uintptr, uint) bool | |||||
| 435 | // equality is used. | 435 | // equality is used. | ||
| 436 | func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFuncVar *EqualFunc, IndexVar uint) bool { | 436 | func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFuncVar *EqualFunc, IndexVar uint) bool { | ||
| 437 | 437 | ||||
| 438 | - | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, NewCallback(EqualFuncVar), IndexVar) | 438 | + | cret := xPtrArrayFindWithEqualFunc(HaystackVar, NeedleVar, NewCallbackNullable(EqualFuncVar), IndexVar) |
| 439 | return cret | 439 | return cret | ||
| 440 | } | 440 | } | ||
| 441 | 441 | ||||
M v4/glib/gdataset.go +3 -3
| @@ -104,7 +104,7 @@ var xDatalistIdDupData func(**Data, Quark, uintptr, uintptr) uintptr | |||
| 104 | 104 | // threads are using the same datalist and the same key. | |
| 105 | 105 | func DatalistIdDupData(DatalistVar **Data, KeyIdVar Quark, DupFuncVar *DuplicateFunc, UserDataVar uintptr) uintptr { | |
| 106 | 106 | ||
| 107 | - | cret := xDatalistIdDupData(DatalistVar, KeyIdVar, NewCallback(DupFuncVar), UserDataVar) | |
| 107 | + | cret := xDatalistIdDupData(DatalistVar, KeyIdVar, NewCallbackNullable(DupFuncVar), UserDataVar) | |
| 108 | 108 | return cret | |
| 109 | 109 | } | |
| 110 | 110 | ||
| @@ -144,7 +144,7 @@ var xDatalistIdReplaceData func(**Data, Quark, uintptr, uintptr, uintptr, uintpt | |||
| 144 | 144 | // should not destroy the object in the normal way. | |
| 145 | 145 | func DatalistIdReplaceData(DatalistVar **Data, KeyIdVar Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *DestroyNotify, OldDestroyVar *DestroyNotify) bool { | |
| 146 | 146 | ||
| 147 | - | cret := xDatalistIdReplaceData(DatalistVar, KeyIdVar, OldvalVar, NewvalVar, NewCallback(DestroyVar), NewCallback(OldDestroyVar)) | |
| 147 | + | cret := xDatalistIdReplaceData(DatalistVar, KeyIdVar, OldvalVar, NewvalVar, NewCallbackNullable(DestroyVar), NewCallback(OldDestroyVar)) | |
| 148 | 148 | return cret | |
| 149 | 149 | } | |
| 150 | 150 | ||
| @@ -156,7 +156,7 @@ var xDatalistIdSetDataFull func(**Data, Quark, uintptr, uintptr) | |||
| 156 | 156 | // function is called. | |
| 157 | 157 | func DatalistIdSetDataFull(DatalistVar **Data, KeyIdVar Quark, DataVar uintptr, DestroyFuncVar *DestroyNotify) { | |
| 158 | 158 | ||
| 159 | - | xDatalistIdSetDataFull(DatalistVar, KeyIdVar, DataVar, NewCallback(DestroyFuncVar)) | |
| 159 | + | xDatalistIdSetDataFull(DatalistVar, KeyIdVar, DataVar, NewCallbackNullable(DestroyFuncVar)) | |
| 160 | 160 | ||
| 161 | 161 | } | |
| 162 | 162 | ||
| @@ -104,7 +104,7 @@ var xDatalistIdDupData func(**Data, Quark, uintptr, uintptr) uintptr | |||||
| 104 | // threads are using the same datalist and the same key. | 104 | // threads are using the same datalist and the same key. | ||
| 105 | func DatalistIdDupData(DatalistVar **Data, KeyIdVar Quark, DupFuncVar *DuplicateFunc, UserDataVar uintptr) uintptr { | 105 | func DatalistIdDupData(DatalistVar **Data, KeyIdVar Quark, DupFuncVar *DuplicateFunc, UserDataVar uintptr) uintptr { | ||
| 106 | 106 | ||||
| 107 | - | cret := xDatalistIdDupData(DatalistVar, KeyIdVar, NewCallback(DupFuncVar), UserDataVar) | 107 | + | cret := xDatalistIdDupData(DatalistVar, KeyIdVar, NewCallbackNullable(DupFuncVar), UserDataVar) |
| 108 | return cret | 108 | return cret | ||
| 109 | } | 109 | } | ||
| 110 | 110 | ||||
| @@ -144,7 +144,7 @@ var xDatalistIdReplaceData func(**Data, Quark, uintptr, uintptr, uintptr, uintpt | |||||
| 144 | // should not destroy the object in the normal way. | 144 | // should not destroy the object in the normal way. | ||
| 145 | func DatalistIdReplaceData(DatalistVar **Data, KeyIdVar Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *DestroyNotify, OldDestroyVar *DestroyNotify) bool { | 145 | func DatalistIdReplaceData(DatalistVar **Data, KeyIdVar Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *DestroyNotify, OldDestroyVar *DestroyNotify) bool { | ||
| 146 | 146 | ||||
| 147 | - | cret := xDatalistIdReplaceData(DatalistVar, KeyIdVar, OldvalVar, NewvalVar, NewCallback(DestroyVar), NewCallback(OldDestroyVar)) | 147 | + | cret := xDatalistIdReplaceData(DatalistVar, KeyIdVar, OldvalVar, NewvalVar, NewCallbackNullable(DestroyVar), NewCallback(OldDestroyVar)) |
| 148 | return cret | 148 | return cret | ||
| 149 | } | 149 | } | ||
| 150 | 150 | ||||
| @@ -156,7 +156,7 @@ var xDatalistIdSetDataFull func(**Data, Quark, uintptr, uintptr) | |||||
| 156 | // function is called. | 156 | // function is called. | ||
| 157 | func DatalistIdSetDataFull(DatalistVar **Data, KeyIdVar Quark, DataVar uintptr, DestroyFuncVar *DestroyNotify) { | 157 | func DatalistIdSetDataFull(DatalistVar **Data, KeyIdVar Quark, DataVar uintptr, DestroyFuncVar *DestroyNotify) { | ||
| 158 | 158 | ||||
| 159 | - | xDatalistIdSetDataFull(DatalistVar, KeyIdVar, DataVar, NewCallback(DestroyFuncVar)) | 159 | + | xDatalistIdSetDataFull(DatalistVar, KeyIdVar, DataVar, NewCallbackNullable(DestroyFuncVar)) |
| 160 | 160 | ||||
| 161 | } | 161 | } | ||
| 162 | 162 | ||||
M v4/glib/glist.go +1 -1
| @@ -31,7 +31,7 @@ var xClearList func(**List, uintptr) | |||
| 31 | 31 | // @list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing. | |
| 32 | 32 | func ClearList(ListPtrVar **List, DestroyVar *DestroyNotify) { | |
| 33 | 33 | ||
| 34 | - | xClearList(ListPtrVar, NewCallback(DestroyVar)) | |
| 34 | + | xClearList(ListPtrVar, NewCallbackNullable(DestroyVar)) | |
| 35 | 35 | ||
| 36 | 36 | } | |
| 37 | 37 | ||
| @@ -31,7 +31,7 @@ var xClearList func(**List, uintptr) | |||||
| 31 | // @list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing. | 31 | // @list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing. | ||
| 32 | func ClearList(ListPtrVar **List, DestroyVar *DestroyNotify) { | 32 | func ClearList(ListPtrVar **List, DestroyVar *DestroyNotify) { | ||
| 33 | 33 | ||||
| 34 | - | xClearList(ListPtrVar, NewCallback(DestroyVar)) | 34 | + | xClearList(ListPtrVar, NewCallbackNullable(DestroyVar)) |
| 35 | 35 | ||||
| 36 | } | 36 | } | ||
| 37 | 37 | ||||
M v4/glib/gmain.go +6 -6
| @@ -224,7 +224,7 @@ var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 224 | 224 | // thread or with any particular context acquired. | |
| 225 | 225 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 226 | 226 | ||
| 227 | - | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | |
| 227 | + | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 228 | 228 | ||
| 229 | 229 | } | |
| 230 | 230 | ||
| @@ -1014,7 +1014,7 @@ var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |||
| 1014 | 1014 | // of also unsetting the callback. | |
| 1015 | 1015 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 1016 | 1016 | ||
| 1017 | - | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(NotifyVar)) | |
| 1017 | + | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1018 | 1018 | ||
| 1019 | 1019 | } | |
| 1020 | 1020 | ||
| @@ -1335,7 +1335,7 @@ var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |||
| 1335 | 1335 | // need greater control. | |
| 1336 | 1336 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1337 | 1337 | ||
| 1338 | - | cret := xChildWatchAddFull(PriorityVar, PidVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | |
| 1338 | + | cret := xChildWatchAddFull(PriorityVar, PidVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1339 | 1339 | return cret | |
| 1340 | 1340 | } | |
| 1341 | 1341 | ||
| @@ -1483,7 +1483,7 @@ var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |||
| 1483 | 1483 | // use a custom main context. | |
| 1484 | 1484 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1485 | 1485 | ||
| 1486 | - | cret := xIdleAddFull(PriorityVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | |
| 1486 | + | cret := xIdleAddFull(PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1487 | 1487 | return cret | |
| 1488 | 1488 | } | |
| 1489 | 1489 | ||
| @@ -1824,7 +1824,7 @@ var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 1824 | 1824 | // See g_get_monotonic_time(). | |
| 1825 | 1825 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1826 | 1826 | ||
| 1827 | - | cret := xTimeoutAddFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | |
| 1827 | + | cret := xTimeoutAddFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1828 | 1828 | return cret | |
| 1829 | 1829 | } | |
| 1830 | 1830 | ||
| @@ -1902,7 +1902,7 @@ var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 1902 | 1902 | // time. See g_get_monotonic_time(). | |
| 1903 | 1903 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1904 | 1904 | ||
| 1905 | - | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | |
| 1905 | + | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1906 | 1906 | return cret | |
| 1907 | 1907 | } | |
| 1908 | 1908 | ||
| @@ -224,7 +224,7 @@ var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 224 | // thread or with any particular context acquired. | 224 | // thread or with any particular context acquired. | ||
| 225 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | 225 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | ||
| 226 | 226 | ||||
| 227 | - | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | 227 | + | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 228 | 228 | ||||
| 229 | } | 229 | } | ||
| 230 | 230 | ||||
| @@ -1014,7 +1014,7 @@ var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1014 | // of also unsetting the callback. | 1014 | // of also unsetting the callback. | ||
| 1015 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | 1015 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | ||
| 1016 | 1016 | ||||
| 1017 | - | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(NotifyVar)) | 1017 | + | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 1018 | 1018 | ||||
| 1019 | } | 1019 | } | ||
| 1020 | 1020 | ||||
| @@ -1335,7 +1335,7 @@ var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |||||
| 1335 | // need greater control. | 1335 | // need greater control. | ||
| 1336 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1336 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1337 | 1337 | ||||
| 1338 | - | cret := xChildWatchAddFull(PriorityVar, PidVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | 1338 | + | cret := xChildWatchAddFull(PriorityVar, PidVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 1339 | return cret | 1339 | return cret | ||
| 1340 | } | 1340 | } | ||
| 1341 | 1341 | ||||
| @@ -1483,7 +1483,7 @@ var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |||||
| 1483 | // use a custom main context. | 1483 | // use a custom main context. | ||
| 1484 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1484 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1485 | 1485 | ||||
| 1486 | - | cret := xIdleAddFull(PriorityVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | 1486 | + | cret := xIdleAddFull(PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 1487 | return cret | 1487 | return cret | ||
| 1488 | } | 1488 | } | ||
| 1489 | 1489 | ||||
| @@ -1824,7 +1824,7 @@ var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |||||
| 1824 | // See g_get_monotonic_time(). | 1824 | // See g_get_monotonic_time(). | ||
| 1825 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1825 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1826 | 1826 | ||||
| 1827 | - | cret := xTimeoutAddFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | 1827 | + | cret := xTimeoutAddFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 1828 | return cret | 1828 | return cret | ||
| 1829 | } | 1829 | } | ||
| 1830 | 1830 | ||||
| @@ -1902,7 +1902,7 @@ var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |||||
| 1902 | // time. See g_get_monotonic_time(). | 1902 | // time. See g_get_monotonic_time(). | ||
| 1903 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1903 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1904 | 1904 | ||||
| 1905 | - | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallback(NotifyVar)) | 1905 | + | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) |
| 1906 | return cret | 1906 | return cret | ||
| 1907 | } | 1907 | } | ||
| 1908 | 1908 | ||||
M v4/glib/gmessages.go +1 -1
| @@ -386,7 +386,7 @@ var xLogSetWriterFunc func(uintptr, uintptr, uintptr) | |||
| 386 | 386 | // There can only be one writer function. It is an error to set more than one. | |
| 387 | 387 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | |
| 388 | 388 | ||
| 389 | - | xLogSetWriterFunc(NewCallback(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | |
| 389 | + | xLogSetWriterFunc(NewCallbackNullable(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | |
| 390 | 390 | ||
| 391 | 391 | } | |
| 392 | 392 | ||
| @@ -386,7 +386,7 @@ var xLogSetWriterFunc func(uintptr, uintptr, uintptr) | |||||
| 386 | // There can only be one writer function. It is an error to set more than one. | 386 | // There can only be one writer function. It is an error to set more than one. | ||
| 387 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | 387 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | ||
| 388 | 388 | ||||
| 389 | - | xLogSetWriterFunc(NewCallback(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | 389 | + | xLogSetWriterFunc(NewCallbackNullable(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) |
| 390 | 390 | ||||
| 391 | } | 391 | } | ||
| 392 | 392 | ||||
M v4/glib/goption.go +4 -4
| @@ -314,7 +314,7 @@ var xOptionContextSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 314 | 314 | // domain, see g_option_context_set_translation_domain(). | |
| 315 | 315 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | |
| 316 | 316 | ||
| 317 | - | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(DestroyNotifyVar)) | |
| 317 | + | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | |
| 318 | 318 | ||
| 319 | 319 | } | |
| 320 | 320 | ||
| @@ -379,7 +379,7 @@ var xNewOptionGroup func(string, string, string, uintptr, uintptr) *OptionGroup | |||
| 379 | 379 | // Creates a new #GOptionGroup. | |
| 380 | 380 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | |
| 381 | 381 | ||
| 382 | - | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallback(DestroyVar)) | |
| 382 | + | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallbackNullable(DestroyVar)) | |
| 383 | 383 | return cret | |
| 384 | 384 | } | |
| 385 | 385 | ||
| @@ -435,7 +435,7 @@ var xOptionGroupSetParseHooks func(uintptr, uintptr, uintptr) | |||
| 435 | 435 | // with g_option_group_new(). | |
| 436 | 436 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | |
| 437 | 437 | ||
| 438 | - | xOptionGroupSetParseHooks(x.GoPointer(), NewCallback(PreParseFuncVar), NewCallback(PostParseFuncVar)) | |
| 438 | + | xOptionGroupSetParseHooks(x.GoPointer(), NewCallbackNullable(PreParseFuncVar), NewCallbackNullable(PostParseFuncVar)) | |
| 439 | 439 | ||
| 440 | 440 | } | |
| 441 | 441 | ||
| @@ -449,7 +449,7 @@ var xOptionGroupSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 449 | 449 | // domain, see g_option_group_set_translation_domain(). | |
| 450 | 450 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | |
| 451 | 451 | ||
| 452 | - | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(DestroyNotifyVar)) | |
| 452 | + | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | |
| 453 | 453 | ||
| 454 | 454 | } | |
| 455 | 455 | ||
| @@ -314,7 +314,7 @@ var xOptionContextSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 314 | // domain, see g_option_context_set_translation_domain(). | 314 | // domain, see g_option_context_set_translation_domain(). | ||
| 315 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | 315 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | ||
| 316 | 316 | ||||
| 317 | - | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(DestroyNotifyVar)) | 317 | + | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) |
| 318 | 318 | ||||
| 319 | } | 319 | } | ||
| 320 | 320 | ||||
| @@ -379,7 +379,7 @@ var xNewOptionGroup func(string, string, string, uintptr, uintptr) *OptionGroup | |||||
| 379 | // Creates a new #GOptionGroup. | 379 | // Creates a new #GOptionGroup. | ||
| 380 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | 380 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | ||
| 381 | 381 | ||||
| 382 | - | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallback(DestroyVar)) | 382 | + | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallbackNullable(DestroyVar)) |
| 383 | return cret | 383 | return cret | ||
| 384 | } | 384 | } | ||
| 385 | 385 | ||||
| @@ -435,7 +435,7 @@ var xOptionGroupSetParseHooks func(uintptr, uintptr, uintptr) | |||||
| 435 | // with g_option_group_new(). | 435 | // with g_option_group_new(). | ||
| 436 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | 436 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | ||
| 437 | 437 | ||||
| 438 | - | xOptionGroupSetParseHooks(x.GoPointer(), NewCallback(PreParseFuncVar), NewCallback(PostParseFuncVar)) | 438 | + | xOptionGroupSetParseHooks(x.GoPointer(), NewCallbackNullable(PreParseFuncVar), NewCallbackNullable(PostParseFuncVar)) |
| 439 | 439 | ||||
| 440 | } | 440 | } | ||
| 441 | 441 | ||||
| @@ -449,7 +449,7 @@ var xOptionGroupSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 449 | // domain, see g_option_group_set_translation_domain(). | 449 | // domain, see g_option_group_set_translation_domain(). | ||
| 450 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | 450 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | ||
| 451 | 451 | ||||
| 452 | - | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallback(DestroyNotifyVar)) | 452 | + | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) |
| 453 | 453 | ||||
| 454 | } | 454 | } | ||
| 455 | 455 | ||||
M v4/glib/gqueue.go +1 -1
| @@ -41,7 +41,7 @@ var xQueueClearFull func(uintptr, uintptr) | |||
| 41 | 41 | // and calls the provided @free_func on each item in the #GQueue. | |
| 42 | 42 | func (x *Queue) ClearFull(FreeFuncVar *DestroyNotify) { | |
| 43 | 43 | ||
| 44 | - | xQueueClearFull(x.GoPointer(), NewCallback(FreeFuncVar)) | |
| 44 | + | xQueueClearFull(x.GoPointer(), NewCallbackNullable(FreeFuncVar)) | |
| 45 | 45 | ||
| 46 | 46 | } | |
| 47 | 47 | ||
| @@ -41,7 +41,7 @@ var xQueueClearFull func(uintptr, uintptr) | |||||
| 41 | // and calls the provided @free_func on each item in the #GQueue. | 41 | // and calls the provided @free_func on each item in the #GQueue. | ||
| 42 | func (x *Queue) ClearFull(FreeFuncVar *DestroyNotify) { | 42 | func (x *Queue) ClearFull(FreeFuncVar *DestroyNotify) { | ||
| 43 | 43 | ||||
| 44 | - | xQueueClearFull(x.GoPointer(), NewCallback(FreeFuncVar)) | 44 | + | xQueueClearFull(x.GoPointer(), NewCallbackNullable(FreeFuncVar)) |
| 45 | 45 | ||||
| 46 | } | 46 | } | ||
| 47 | 47 | ||||
M v4/glib/gslist.go +1 -1
| @@ -30,7 +30,7 @@ var xClearSlist func(**SList, uintptr) | |||
| 30 | 30 | // @slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing. | |
| 31 | 31 | func ClearSlist(SlistPtrVar **SList, DestroyVar *DestroyNotify) { | |
| 32 | 32 | ||
| 33 | - | xClearSlist(SlistPtrVar, NewCallback(DestroyVar)) | |
| 33 | + | xClearSlist(SlistPtrVar, NewCallbackNullable(DestroyVar)) | |
| 34 | 34 | ||
| 35 | 35 | } | |
| 36 | 36 | ||
| @@ -30,7 +30,7 @@ var xClearSlist func(**SList, uintptr) | |||||
| 30 | // @slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing. | 30 | // @slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing. | ||
| 31 | func ClearSlist(SlistPtrVar **SList, DestroyVar *DestroyNotify) { | 31 | func ClearSlist(SlistPtrVar **SList, DestroyVar *DestroyNotify) { | ||
| 32 | 32 | ||||
| 33 | - | xClearSlist(SlistPtrVar, NewCallback(DestroyVar)) | 33 | + | xClearSlist(SlistPtrVar, NewCallbackNullable(DestroyVar)) |
| 34 | 34 | ||||
| 35 | } | 35 | } | ||
| 36 | 36 | ||||
M v4/glib/gspawn.go +5 -5
| @@ -149,7 +149,7 @@ var xSpawnAsync func(string, []string, []string, SpawnFlags, uintptr, uintptr, * | |||
| 149 | 149 | func SpawnAsync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid) (bool, error) { | |
| 150 | 150 | var cerr *Error | |
| 151 | 151 | ||
| 152 | - | cret := xSpawnAsync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, &cerr) | |
| 152 | + | cret := xSpawnAsync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, &cerr) | |
| 153 | 153 | if cerr == nil { | |
| 154 | 154 | return cret, nil | |
| 155 | 155 | } | |
| @@ -166,7 +166,7 @@ var xSpawnAsyncWithFds func(string, []string, []string, SpawnFlags, uintptr, uin | |||
| 166 | 166 | func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | |
| 167 | 167 | var cerr *Error | |
| 168 | 168 | ||
| 169 | - | cret := xSpawnAsyncWithFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | |
| 169 | + | cret := xSpawnAsyncWithFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | |
| 170 | 170 | if cerr == nil { | |
| 171 | 171 | return cret, nil | |
| 172 | 172 | } | |
| @@ -181,7 +181,7 @@ var xSpawnAsyncWithPipes func(string, []string, []string, SpawnFlags, uintptr, u | |||
| 181 | 181 | func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StandardInputVar int, StandardOutputVar int, StandardErrorVar int) (bool, error) { | |
| 182 | 182 | var cerr *Error | |
| 183 | 183 | ||
| 184 | - | cret := xSpawnAsyncWithPipes(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StandardInputVar, StandardOutputVar, StandardErrorVar, &cerr) | |
| 184 | + | cret := xSpawnAsyncWithPipes(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, StandardInputVar, StandardOutputVar, StandardErrorVar, &cerr) | |
| 185 | 185 | if cerr == nil { | |
| 186 | 186 | return cret, nil | |
| 187 | 187 | } | |
| @@ -382,7 +382,7 @@ var xSpawnAsyncWithPipesAndFds func(string, []string, []string, SpawnFlags, uint | |||
| 382 | 382 | func SpawnAsyncWithPipesAndFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int, SourceFdsVar []int, TargetFdsVar []int, NFdsVar uint, ChildPidOutVar *Pid, StdinPipeOutVar int, StdoutPipeOutVar int, StderrPipeOutVar int) (bool, error) { | |
| 383 | 383 | var cerr *Error | |
| 384 | 384 | ||
| 385 | - | cret := xSpawnAsyncWithPipesAndFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, SourceFdsVar, TargetFdsVar, NFdsVar, ChildPidOutVar, StdinPipeOutVar, StdoutPipeOutVar, StderrPipeOutVar, &cerr) | |
| 385 | + | cret := xSpawnAsyncWithPipesAndFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, SourceFdsVar, TargetFdsVar, NFdsVar, ChildPidOutVar, StdinPipeOutVar, StdoutPipeOutVar, StderrPipeOutVar, &cerr) | |
| 386 | 386 | if cerr == nil { | |
| 387 | 387 | return cret, nil | |
| 388 | 388 | } | |
| @@ -568,7 +568,7 @@ var xSpawnSync func(string, []string, []string, SpawnFlags, uintptr, uintptr, [] | |||
| 568 | 568 | func SpawnSync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StandardOutputVar []byte, StandardErrorVar []byte, WaitStatusVar int) (bool, error) { | |
| 569 | 569 | var cerr *Error | |
| 570 | 570 | ||
| 571 | - | cret := xSpawnSync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) | |
| 571 | + | cret := xSpawnSync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) | |
| 572 | 572 | if cerr == nil { | |
| 573 | 573 | return cret, nil | |
| 574 | 574 | } | |
| @@ -149,7 +149,7 @@ var xSpawnAsync func(string, []string, []string, SpawnFlags, uintptr, uintptr, * | |||||
| 149 | func SpawnAsync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid) (bool, error) { | 149 | func SpawnAsync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid) (bool, error) { | ||
| 150 | var cerr *Error | 150 | var cerr *Error | ||
| 151 | 151 | ||||
| 152 | - | cret := xSpawnAsync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, &cerr) | 152 | + | cret := xSpawnAsync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, &cerr) |
| 153 | if cerr == nil { | 153 | if cerr == nil { | ||
| 154 | return cret, nil | 154 | return cret, nil | ||
| 155 | } | 155 | } | ||
| @@ -166,7 +166,7 @@ var xSpawnAsyncWithFds func(string, []string, []string, SpawnFlags, uintptr, uin | |||||
| 166 | func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | 166 | func SpawnAsyncWithFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StdinFdVar int, StdoutFdVar int, StderrFdVar int) (bool, error) { | ||
| 167 | var cerr *Error | 167 | var cerr *Error | ||
| 168 | 168 | ||||
| 169 | - | cret := xSpawnAsyncWithFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) | 169 | + | cret := xSpawnAsyncWithFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, StdinFdVar, StdoutFdVar, StderrFdVar, &cerr) |
| 170 | if cerr == nil { | 170 | if cerr == nil { | ||
| 171 | return cret, nil | 171 | return cret, nil | ||
| 172 | } | 172 | } | ||
| @@ -181,7 +181,7 @@ var xSpawnAsyncWithPipes func(string, []string, []string, SpawnFlags, uintptr, u | |||||
| 181 | func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StandardInputVar int, StandardOutputVar int, StandardErrorVar int) (bool, error) { | 181 | func SpawnAsyncWithPipes(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, ChildPidVar *Pid, StandardInputVar int, StandardOutputVar int, StandardErrorVar int) (bool, error) { | ||
| 182 | var cerr *Error | 182 | var cerr *Error | ||
| 183 | 183 | ||||
| 184 | - | cret := xSpawnAsyncWithPipes(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, ChildPidVar, StandardInputVar, StandardOutputVar, StandardErrorVar, &cerr) | 184 | + | cret := xSpawnAsyncWithPipes(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, ChildPidVar, StandardInputVar, StandardOutputVar, StandardErrorVar, &cerr) |
| 185 | if cerr == nil { | 185 | if cerr == nil { | ||
| 186 | return cret, nil | 186 | return cret, nil | ||
| 187 | } | 187 | } | ||
| @@ -382,7 +382,7 @@ var xSpawnAsyncWithPipesAndFds func(string, []string, []string, SpawnFlags, uint | |||||
| 382 | func SpawnAsyncWithPipesAndFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int, SourceFdsVar []int, TargetFdsVar []int, NFdsVar uint, ChildPidOutVar *Pid, StdinPipeOutVar int, StdoutPipeOutVar int, StderrPipeOutVar int) (bool, error) { | 382 | func SpawnAsyncWithPipesAndFds(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StdinFdVar int, StdoutFdVar int, StderrFdVar int, SourceFdsVar []int, TargetFdsVar []int, NFdsVar uint, ChildPidOutVar *Pid, StdinPipeOutVar int, StdoutPipeOutVar int, StderrPipeOutVar int) (bool, error) { | ||
| 383 | var cerr *Error | 383 | var cerr *Error | ||
| 384 | 384 | ||||
| 385 | - | cret := xSpawnAsyncWithPipesAndFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, SourceFdsVar, TargetFdsVar, NFdsVar, ChildPidOutVar, StdinPipeOutVar, StdoutPipeOutVar, StderrPipeOutVar, &cerr) | 385 | + | cret := xSpawnAsyncWithPipesAndFds(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, StdinFdVar, StdoutFdVar, StderrFdVar, SourceFdsVar, TargetFdsVar, NFdsVar, ChildPidOutVar, StdinPipeOutVar, StdoutPipeOutVar, StderrPipeOutVar, &cerr) |
| 386 | if cerr == nil { | 386 | if cerr == nil { | ||
| 387 | return cret, nil | 387 | return cret, nil | ||
| 388 | } | 388 | } | ||
| @@ -568,7 +568,7 @@ var xSpawnSync func(string, []string, []string, SpawnFlags, uintptr, uintptr, [] | |||||
| 568 | func SpawnSync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StandardOutputVar []byte, StandardErrorVar []byte, WaitStatusVar int) (bool, error) { | 568 | func SpawnSync(WorkingDirectoryVar string, ArgvVar []string, EnvpVar []string, FlagsVar SpawnFlags, ChildSetupVar *SpawnChildSetupFunc, UserDataVar uintptr, StandardOutputVar []byte, StandardErrorVar []byte, WaitStatusVar int) (bool, error) { | ||
| 569 | var cerr *Error | 569 | var cerr *Error | ||
| 570 | 570 | ||||
| 571 | - | cret := xSpawnSync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallback(ChildSetupVar), UserDataVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) | 571 | + | cret := xSpawnSync(WorkingDirectoryVar, ArgvVar, EnvpVar, FlagsVar, NewCallbackNullable(ChildSetupVar), UserDataVar, StandardOutputVar, StandardErrorVar, WaitStatusVar, &cerr) |
| 572 | if cerr == nil { | 572 | if cerr == nil { | ||
| 573 | return cret, nil | 573 | return cret, nil | ||
| 574 | } | 574 | } | ||
M v4/glib/more.go +11 -0
| @@ -2,6 +2,7 @@ package glib | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "fmt" | |
| 5 | + | "reflect" | |
| 5 | 6 | "sync" | |
| 6 | 7 | ||
| 7 | 8 | "github.com/jwijenbergh/purego" | |
| @@ -46,6 +47,16 @@ func NewCallback(fnPtr interface{}) uintptr { | |||
| 46 | 47 | return purego.NewCallbackFnPtr(fnPtr) | |
| 47 | 48 | } | |
| 48 | 49 | ||
| 50 | + | // NewCallbackNullable is an alias to purego.NewCallback that returns a null pointer for null functions | |
| 51 | + | func NewCallbackNullable(fn interface{}) uintptr { | |
| 52 | + | val := reflect.ValueOf(fn) | |
| 53 | + | if val.IsNil() { | |
| 54 | + | return 0 | |
| 55 | + | } | |
| 56 | + | ||
| 57 | + | return NewCallback(fn) | |
| 58 | + | } | |
| 59 | + | ||
| 49 | 60 | func (e *Error) Error() string { | |
| 50 | 61 | return fmt.Sprintf("Gtk reported an error with message: '%s', domain: '%v' and code: '%v'", e.MessageGo(), e.Domain, e.Code) | |
| 51 | 62 | } | |
| @@ -2,6 +2,7 @@ package glib | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "fmt" | 4 | "fmt" | ||
| 5 | + | "reflect" | |||
| 5 | "sync" | 6 | "sync" | ||
| 6 | 7 | ||||
| 7 | "github.com/jwijenbergh/purego" | 8 | "github.com/jwijenbergh/purego" | ||
| @@ -46,6 +47,16 @@ func NewCallback(fnPtr interface{}) uintptr { | |||||
| 46 | return purego.NewCallbackFnPtr(fnPtr) | 47 | return purego.NewCallbackFnPtr(fnPtr) | ||
| 47 | } | 48 | } | ||
| 48 | 49 | ||||
| 50 | + | // NewCallbackNullable is an alias to purego.NewCallback that returns a null pointer for null functions | |||
| 51 | + | func NewCallbackNullable(fn interface{}) uintptr { | |||
| 52 | + | val := reflect.ValueOf(fn) | |||
| 53 | + | if val.IsNil() { | |||
| 54 | + | return 0 | |||
| 55 | + | } | |||
| 56 | + | ||||
| 57 | + | return NewCallback(fn) | |||
| 58 | + | } | |||
| 59 | + | ||||
| 49 | func (e *Error) Error() string { | 60 | func (e *Error) Error() string { | ||
| 50 | return fmt.Sprintf("Gtk reported an error with message: '%s', domain: '%v' and code: '%v'", e.MessageGo(), e.Domain, e.Code) | 61 | return fmt.Sprintf("Gtk reported an error with message: '%s', domain: '%v' and code: '%v'", e.MessageGo(), e.Domain, e.Code) | ||
| 51 | } | 62 | } | ||
M v4/gobject/gclosure.go +6 -6
| @@ -201,7 +201,7 @@ var xClosureAddFinalizeNotifier func(uintptr, uintptr, uintptr) | |||
| 201 | 201 | // notifiers will be run before the finalize notifiers. | |
| 202 | 202 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 203 | 203 | ||
| 204 | - | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallback(NotifyFuncVar)) | |
| 204 | + | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 205 | 205 | ||
| 206 | 206 | } | |
| 207 | 207 | ||
| @@ -214,7 +214,7 @@ var xClosureAddInvalidateNotifier func(uintptr, uintptr, uintptr) | |||
| 214 | 214 | // in an unspecified order. | |
| 215 | 215 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 216 | 216 | ||
| 217 | - | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallback(NotifyFuncVar)) | |
| 217 | + | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 218 | 218 | ||
| 219 | 219 | } | |
| 220 | 220 | ||
| @@ -228,7 +228,7 @@ var xClosureAddMarshalGuards func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 228 | 228 | // example of marshal guards. | |
| 229 | 229 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | |
| 230 | 230 | ||
| 231 | - | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallback(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallback(PostMarshalNotifyVar)) | |
| 231 | + | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallbackNullable(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallbackNullable(PostMarshalNotifyVar)) | |
| 232 | 232 | ||
| 233 | 233 | } | |
| 234 | 234 | ||
| @@ -335,7 +335,7 @@ var xClosureSetMetaMarshal func(uintptr, uintptr, uintptr) | |||
| 335 | 335 | // @marshal_data argument. | |
| 336 | 336 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | |
| 337 | 337 | ||
| 338 | - | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallback(MetaMarshalVar)) | |
| 338 | + | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallbackNullable(MetaMarshalVar)) | |
| 339 | 339 | ||
| 340 | 340 | } | |
| 341 | 341 | ||
| @@ -442,7 +442,7 @@ var xCclosureNew func(uintptr, uintptr, uintptr) *Closure | |||
| 442 | 442 | // @destroy_data will be called as a finalize notifier on the #GClosure. | |
| 443 | 443 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | |
| 444 | 444 | ||
| 445 | - | cret := xCclosureNew(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | |
| 445 | + | cret := xCclosureNew(glib.NewCallbackNullable(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | |
| 446 | 446 | return cret | |
| 447 | 447 | } | |
| 448 | 448 | ||
| @@ -454,7 +454,7 @@ var xCclosureNewSwap func(uintptr, uintptr, uintptr) *Closure | |||
| 454 | 454 | // @destroy_data will be called as a finalize notifier on the #GClosure. | |
| 455 | 455 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | |
| 456 | 456 | ||
| 457 | - | cret := xCclosureNewSwap(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | |
| 457 | + | cret := xCclosureNewSwap(glib.NewCallbackNullable(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | |
| 458 | 458 | return cret | |
| 459 | 459 | } | |
| 460 | 460 | ||
| @@ -201,7 +201,7 @@ var xClosureAddFinalizeNotifier func(uintptr, uintptr, uintptr) | |||||
| 201 | // notifiers will be run before the finalize notifiers. | 201 | // notifiers will be run before the finalize notifiers. | ||
| 202 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 202 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 203 | 203 | ||||
| 204 | - | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallback(NotifyFuncVar)) | 204 | + | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) |
| 205 | 205 | ||||
| 206 | } | 206 | } | ||
| 207 | 207 | ||||
| @@ -214,7 +214,7 @@ var xClosureAddInvalidateNotifier func(uintptr, uintptr, uintptr) | |||||
| 214 | // in an unspecified order. | 214 | // in an unspecified order. | ||
| 215 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 215 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 216 | 216 | ||||
| 217 | - | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallback(NotifyFuncVar)) | 217 | + | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) |
| 218 | 218 | ||||
| 219 | } | 219 | } | ||
| 220 | 220 | ||||
| @@ -228,7 +228,7 @@ var xClosureAddMarshalGuards func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 228 | // example of marshal guards. | 228 | // example of marshal guards. | ||
| 229 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | 229 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | ||
| 230 | 230 | ||||
| 231 | - | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallback(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallback(PostMarshalNotifyVar)) | 231 | + | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallbackNullable(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallbackNullable(PostMarshalNotifyVar)) |
| 232 | 232 | ||||
| 233 | } | 233 | } | ||
| 234 | 234 | ||||
| @@ -335,7 +335,7 @@ var xClosureSetMetaMarshal func(uintptr, uintptr, uintptr) | |||||
| 335 | // @marshal_data argument. | 335 | // @marshal_data argument. | ||
| 336 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | 336 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | ||
| 337 | 337 | ||||
| 338 | - | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallback(MetaMarshalVar)) | 338 | + | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallbackNullable(MetaMarshalVar)) |
| 339 | 339 | ||||
| 340 | } | 340 | } | ||
| 341 | 341 | ||||
| @@ -442,7 +442,7 @@ var xCclosureNew func(uintptr, uintptr, uintptr) *Closure | |||||
| 442 | // @destroy_data will be called as a finalize notifier on the #GClosure. | 442 | // @destroy_data will be called as a finalize notifier on the #GClosure. | ||
| 443 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | 443 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | ||
| 444 | 444 | ||||
| 445 | - | cret := xCclosureNew(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | 445 | + | cret := xCclosureNew(glib.NewCallbackNullable(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) |
| 446 | return cret | 446 | return cret | ||
| 447 | } | 447 | } | ||
| 448 | 448 | ||||
| @@ -454,7 +454,7 @@ var xCclosureNewSwap func(uintptr, uintptr, uintptr) *Closure | |||||
| 454 | // @destroy_data will be called as a finalize notifier on the #GClosure. | 454 | // @destroy_data will be called as a finalize notifier on the #GClosure. | ||
| 455 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | 455 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | ||
| 456 | 456 | ||||
| 457 | - | cret := xCclosureNewSwap(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) | 457 | + | cret := xCclosureNewSwap(glib.NewCallbackNullable(CallbackFuncVar), UserDataVar, glib.NewCallback(DestroyDataVar)) |
| 458 | return cret | 458 | return cret | ||
| 459 | } | 459 | } | ||
| 460 | 460 | ||||
M v4/gobject/gobject-2.0.go +1 -1
| @@ -443,7 +443,7 @@ var xBindingGroupBindFull func(uintptr, string, uintptr, string, BindingFlags, u | |||
| 443 | 443 | // See g_object_bind_property_full() for more information. | |
| 444 | 444 | func (x *BindingGroup) BindFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, UserDataDestroyVar *glib.DestroyNotify) { | |
| 445 | 445 | ||
| 446 | - | xBindingGroupBindFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallback(TransformToVar), glib.NewCallback(TransformFromVar), UserDataVar, glib.NewCallback(UserDataDestroyVar)) | |
| 446 | + | xBindingGroupBindFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallback(UserDataDestroyVar)) | |
| 447 | 447 | ||
| 448 | 448 | } | |
| 449 | 449 | ||
| @@ -443,7 +443,7 @@ var xBindingGroupBindFull func(uintptr, string, uintptr, string, BindingFlags, u | |||||
| 443 | // See g_object_bind_property_full() for more information. | 443 | // See g_object_bind_property_full() for more information. | ||
| 444 | func (x *BindingGroup) BindFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, UserDataDestroyVar *glib.DestroyNotify) { | 444 | func (x *BindingGroup) BindFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, UserDataDestroyVar *glib.DestroyNotify) { | ||
| 445 | 445 | ||||
| 446 | - | xBindingGroupBindFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallback(TransformToVar), glib.NewCallback(TransformFromVar), UserDataVar, glib.NewCallback(UserDataDestroyVar)) | 446 | + | xBindingGroupBindFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallback(UserDataDestroyVar)) |
| 447 | 447 | ||||
| 448 | } | 448 | } | ||
| 449 | 449 | ||||
M v4/gobject/gobject.go +7 -7
| @@ -707,7 +707,7 @@ var xObjectBindPropertyFull func(uintptr, string, uintptr, string, BindingFlags, | |||
| 707 | 707 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | |
| 708 | 708 | var cls *Binding | |
| 709 | 709 | ||
| 710 | - | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallback(TransformToVar), glib.NewCallback(TransformFromVar), UserDataVar, glib.NewCallback(NotifyVar)) | |
| 710 | + | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| 711 | 711 | ||
| 712 | 712 | if cret == 0 { | |
| 713 | 713 | return nil | |
| @@ -814,7 +814,7 @@ var xObjectDupData func(uintptr, string, uintptr, uintptr) uintptr | |||
| 814 | 814 | // object. | |
| 815 | 815 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | |
| 816 | 816 | ||
| 817 | - | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallback(DupFuncVar), UserDataVar) | |
| 817 | + | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | |
| 818 | 818 | return cret | |
| 819 | 819 | } | |
| 820 | 820 | ||
| @@ -836,7 +836,7 @@ var xObjectDupQdata func(uintptr, glib.Quark, uintptr, uintptr) uintptr | |||
| 836 | 836 | // object. | |
| 837 | 837 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | |
| 838 | 838 | ||
| 839 | - | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallback(DupFuncVar), UserDataVar) | |
| 839 | + | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) | |
| 840 | 840 | return cret | |
| 841 | 841 | } | |
| 842 | 842 | ||
| @@ -1142,7 +1142,7 @@ var xObjectReplaceData func(uintptr, string, uintptr, uintptr, uintptr, uintptr) | |||
| 1142 | 1142 | // for @key. | |
| 1143 | 1143 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | |
| 1144 | 1144 | ||
| 1145 | - | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallback(DestroyVar), glib.NewCallback(OldDestroyVar)) | |
| 1145 | + | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), glib.NewCallback(OldDestroyVar)) | |
| 1146 | 1146 | return cret | |
| 1147 | 1147 | } | |
| 1148 | 1148 | ||
| @@ -1163,7 +1163,7 @@ var xObjectReplaceQdata func(uintptr, glib.Quark, uintptr, uintptr, uintptr, uin | |||
| 1163 | 1163 | // should not destroy the object in the normal way. | |
| 1164 | 1164 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | |
| 1165 | 1165 | ||
| 1166 | - | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallback(DestroyVar), glib.NewCallback(OldDestroyVar)) | |
| 1166 | + | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), glib.NewCallback(OldDestroyVar)) | |
| 1167 | 1167 | return cret | |
| 1168 | 1168 | } | |
| 1169 | 1169 | ||
| @@ -1224,7 +1224,7 @@ var xObjectSetDataFull func(uintptr, string, uintptr, uintptr) | |||
| 1224 | 1224 | // Note that the @destroy callback is not called if @data is %NULL. | |
| 1225 | 1225 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1226 | 1226 | ||
| 1227 | - | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallback(DestroyVar)) | |
| 1227 | + | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 1228 | 1228 | ||
| 1229 | 1229 | } | |
| 1230 | 1230 | ||
| @@ -1262,7 +1262,7 @@ var xObjectSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||
| 1262 | 1262 | // with the same @quark. | |
| 1263 | 1263 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1264 | 1264 | ||
| 1265 | - | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallback(DestroyVar)) | |
| 1265 | + | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 1266 | 1266 | ||
| 1267 | 1267 | } | |
| 1268 | 1268 | ||
| @@ -707,7 +707,7 @@ var xObjectBindPropertyFull func(uintptr, string, uintptr, string, BindingFlags, | |||||
| 707 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | 707 | func (x *Object) BindPropertyFull(SourcePropertyVar string, TargetVar *Object, TargetPropertyVar string, FlagsVar BindingFlags, TransformToVar *BindingTransformFunc, TransformFromVar *BindingTransformFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) *Binding { | ||
| 708 | var cls *Binding | 708 | var cls *Binding | ||
| 709 | 709 | ||||
| 710 | - | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallback(TransformToVar), glib.NewCallback(TransformFromVar), UserDataVar, glib.NewCallback(NotifyVar)) | 710 | + | cret := xObjectBindPropertyFull(x.GoPointer(), SourcePropertyVar, TargetVar.GoPointer(), TargetPropertyVar, FlagsVar, glib.NewCallbackNullable(TransformToVar), glib.NewCallbackNullable(TransformFromVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) |
| 711 | 711 | ||||
| 712 | if cret == 0 { | 712 | if cret == 0 { | ||
| 713 | return nil | 713 | return nil | ||
| @@ -814,7 +814,7 @@ var xObjectDupData func(uintptr, string, uintptr, uintptr) uintptr | |||||
| 814 | // object. | 814 | // object. | ||
| 815 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | 815 | func (x *Object) DupData(KeyVar string, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | ||
| 816 | 816 | ||||
| 817 | - | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallback(DupFuncVar), UserDataVar) | 817 | + | cret := xObjectDupData(x.GoPointer(), KeyVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) |
| 818 | return cret | 818 | return cret | ||
| 819 | } | 819 | } | ||
| 820 | 820 | ||||
| @@ -836,7 +836,7 @@ var xObjectDupQdata func(uintptr, glib.Quark, uintptr, uintptr) uintptr | |||||
| 836 | // object. | 836 | // object. | ||
| 837 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | 837 | func (x *Object) DupQdata(QuarkVar glib.Quark, DupFuncVar *glib.DuplicateFunc, UserDataVar uintptr) uintptr { | ||
| 838 | 838 | ||||
| 839 | - | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallback(DupFuncVar), UserDataVar) | 839 | + | cret := xObjectDupQdata(x.GoPointer(), QuarkVar, glib.NewCallbackNullable(DupFuncVar), UserDataVar) |
| 840 | return cret | 840 | return cret | ||
| 841 | } | 841 | } | ||
| 842 | 842 | ||||
| @@ -1142,7 +1142,7 @@ var xObjectReplaceData func(uintptr, string, uintptr, uintptr, uintptr, uintptr) | |||||
| 1142 | // for @key. | 1142 | // for @key. | ||
| 1143 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | 1143 | func (x *Object) ReplaceData(KeyVar string, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | ||
| 1144 | 1144 | ||||
| 1145 | - | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallback(DestroyVar), glib.NewCallback(OldDestroyVar)) | 1145 | + | cret := xObjectReplaceData(x.GoPointer(), KeyVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), glib.NewCallback(OldDestroyVar)) |
| 1146 | return cret | 1146 | return cret | ||
| 1147 | } | 1147 | } | ||
| 1148 | 1148 | ||||
| @@ -1163,7 +1163,7 @@ var xObjectReplaceQdata func(uintptr, glib.Quark, uintptr, uintptr, uintptr, uin | |||||
| 1163 | // should not destroy the object in the normal way. | 1163 | // should not destroy the object in the normal way. | ||
| 1164 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | 1164 | func (x *Object) ReplaceQdata(QuarkVar glib.Quark, OldvalVar uintptr, NewvalVar uintptr, DestroyVar *glib.DestroyNotify, OldDestroyVar *glib.DestroyNotify) bool { | ||
| 1165 | 1165 | ||||
| 1166 | - | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallback(DestroyVar), glib.NewCallback(OldDestroyVar)) | 1166 | + | cret := xObjectReplaceQdata(x.GoPointer(), QuarkVar, OldvalVar, NewvalVar, glib.NewCallbackNullable(DestroyVar), glib.NewCallback(OldDestroyVar)) |
| 1167 | return cret | 1167 | return cret | ||
| 1168 | } | 1168 | } | ||
| 1169 | 1169 | ||||
| @@ -1224,7 +1224,7 @@ var xObjectSetDataFull func(uintptr, string, uintptr, uintptr) | |||||
| 1224 | // Note that the @destroy callback is not called if @data is %NULL. | 1224 | // Note that the @destroy callback is not called if @data is %NULL. | ||
| 1225 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1225 | func (x *Object) SetDataFull(KeyVar string, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1226 | 1226 | ||||
| 1227 | - | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallback(DestroyVar)) | 1227 | + | xObjectSetDataFull(x.GoPointer(), KeyVar, DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 1228 | 1228 | ||||
| 1229 | } | 1229 | } | ||
| 1230 | 1230 | ||||
| @@ -1262,7 +1262,7 @@ var xObjectSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||||
| 1262 | // with the same @quark. | 1262 | // with the same @quark. | ||
| 1263 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1263 | func (x *Object) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1264 | 1264 | ||||
| 1265 | - | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallback(DestroyVar)) | 1265 | + | xObjectSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 1266 | 1266 | ||||
| 1267 | } | 1267 | } | ||
| 1268 | 1268 | ||||
M v4/gobject/gparam.go +1 -1
| @@ -432,7 +432,7 @@ var xParamSpecSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||
| 432 | 432 | // g_param_spec_set_qdata() with the same @quark. | |
| 433 | 433 | func (x *ParamSpec) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 434 | 434 | ||
| 435 | - | xParamSpecSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallback(DestroyVar)) | |
| 435 | + | xParamSpecSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 436 | 436 | ||
| 437 | 437 | } | |
| 438 | 438 | ||
| @@ -432,7 +432,7 @@ var xParamSpecSetQdataFull func(uintptr, glib.Quark, uintptr, uintptr) | |||||
| 432 | // g_param_spec_set_qdata() with the same @quark. | 432 | // g_param_spec_set_qdata() with the same @quark. | ||
| 433 | func (x *ParamSpec) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 433 | func (x *ParamSpec) SetQdataFull(QuarkVar glib.Quark, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 434 | 434 | ||||
| 435 | - | xParamSpecSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallback(DestroyVar)) | 435 | + | xParamSpecSetQdataFull(x.GoPointer(), QuarkVar, DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 436 | 436 | ||||
| 437 | } | 437 | } | ||
| 438 | 438 | ||||
M v4/gobject/gsignal.go +17 -17
| @@ -222,7 +222,7 @@ var xSignalAddEmissionHook func(uint, glib.Quark, uintptr, uintptr, uintptr) uin | |||
| 222 | 222 | // for signals which don't have %G_SIGNAL_NO_HOOKS flag set. | |
| 223 | 223 | func SignalAddEmissionHook(SignalIdVar uint, DetailVar glib.Quark, HookFuncVar *SignalEmissionHook, HookDataVar uintptr, DataDestroyVar *glib.DestroyNotify) uint32 { | |
| 224 | 224 | ||
| 225 | - | cret := xSignalAddEmissionHook(SignalIdVar, DetailVar, glib.NewCallback(HookFuncVar), HookDataVar, glib.NewCallback(DataDestroyVar)) | |
| 225 | + | cret := xSignalAddEmissionHook(SignalIdVar, DetailVar, glib.NewCallback(HookFuncVar), HookDataVar, glib.NewCallbackNullable(DataDestroyVar)) | |
| 226 | 226 | return cret | |
| 227 | 227 | } | |
| 228 | 228 | ||
| @@ -277,7 +277,7 @@ var xSignalConnectData func(uintptr, string, uintptr, uintptr, uintptr, ConnectF | |||
| 277 | 277 | // `..._swapped()` variants of this function. | |
| 278 | 278 | func SignalConnectData(InstanceVar *Object, DetailedSignalVar string, CHandlerVar *Callback, DataVar uintptr, DestroyDataVar *ClosureNotify, ConnectFlagsVar ConnectFlags) uint32 { | |
| 279 | 279 | ||
| 280 | - | cret := xSignalConnectData(InstanceVar.GoPointer(), DetailedSignalVar, glib.NewCallback(CHandlerVar), DataVar, glib.NewCallback(DestroyDataVar), ConnectFlagsVar) | |
| 280 | + | cret := xSignalConnectData(InstanceVar.GoPointer(), DetailedSignalVar, glib.NewCallback(CHandlerVar), DataVar, glib.NewCallbackNullable(DestroyDataVar), ConnectFlagsVar) | |
| 281 | 281 | return cret | |
| 282 | 282 | } | |
| 283 | 283 | ||
| @@ -552,7 +552,7 @@ func SignalName(SignalIdVar uint) string { | |||
| 552 | 552 | return cret | |
| 553 | 553 | } | |
| 554 | 554 | ||
| 555 | - | var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | |
| 555 | + | var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, uintptr, types.GType, uint, ...interface{}) uint | |
| 556 | 556 | ||
| 557 | 557 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 558 | 558 | // | |
| @@ -578,13 +578,13 @@ var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, Si | |||
| 578 | 578 | // If @c_marshaller is non-%NULL, you need to also specify a va_marshaller | |
| 579 | 579 | // using g_signal_set_va_marshaller() or the generic va_marshaller will | |
| 580 | 580 | // be used. | |
| 581 | - | func SignalNew(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 581 | + | func SignalNew(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 582 | 582 | ||
| 583 | - | cret := xSignalNew(SignalNameVar, ItypeVar, SignalFlagsVar, ClassOffsetVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | |
| 583 | + | cret := xSignalNew(SignalNameVar, ItypeVar, SignalFlagsVar, ClassOffsetVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, varArgs...) | |
| 584 | 584 | return cret | |
| 585 | 585 | } | |
| 586 | 586 | ||
| 587 | - | var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | |
| 587 | + | var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintptr, uintptr, uintptr, types.GType, uint, ...interface{}) uint | |
| 588 | 588 | ||
| 589 | 589 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 590 | 590 | // | |
| @@ -602,13 +602,13 @@ var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintp | |||
| 602 | 602 | // | |
| 603 | 603 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 604 | 604 | // the marshaller for this signal. | |
| 605 | - | func SignalNewClassHandler(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 605 | + | func SignalNewClassHandler(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | |
| 606 | 606 | ||
| 607 | - | cret := xSignalNewClassHandler(SignalNameVar, ItypeVar, SignalFlagsVar, glib.NewCallback(ClassHandlerVar), glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | |
| 607 | + | cret := xSignalNewClassHandler(SignalNameVar, ItypeVar, SignalFlagsVar, glib.NewCallbackNullable(ClassHandlerVar), glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, varArgs...) | |
| 608 | 608 | return cret | |
| 609 | 609 | } | |
| 610 | 610 | ||
| 611 | - | var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []interface{}) uint | |
| 611 | + | var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, uintptr, types.GType, uint, []interface{}) uint | |
| 612 | 612 | ||
| 613 | 613 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 614 | 614 | // | |
| @@ -616,13 +616,13 @@ var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, u | |||
| 616 | 616 | // | |
| 617 | 617 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 618 | 618 | // the marshaller for this signal. | |
| 619 | - | func SignalNewValist(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ArgsVar []interface{}) uint { | |
| 619 | + | func SignalNewValist(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ArgsVar []interface{}) uint { | |
| 620 | 620 | ||
| 621 | - | cret := xSignalNewValist(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ArgsVar) | |
| 621 | + | cret := xSignalNewValist(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, ArgsVar) | |
| 622 | 622 | return cret | |
| 623 | 623 | } | |
| 624 | 624 | ||
| 625 | - | var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []types.GType) uint | |
| 625 | + | var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, uintptr, types.GType, uint, []types.GType) uint | |
| 626 | 626 | ||
| 627 | 627 | // Creates a new signal. (This is usually done in the class initializer.) | |
| 628 | 628 | // | |
| @@ -630,9 +630,9 @@ var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintpt | |||
| 630 | 630 | // | |
| 631 | 631 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | |
| 632 | 632 | // the marshaller for this signal. | |
| 633 | - | func SignalNewv(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ParamTypesVar []types.GType) uint { | |
| 633 | + | func SignalNewv(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ParamTypesVar []types.GType) uint { | |
| 634 | 634 | ||
| 635 | - | cret := xSignalNewv(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ParamTypesVar) | |
| 635 | + | cret := xSignalNewv(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, ParamTypesVar) | |
| 636 | 636 | return cret | |
| 637 | 637 | } | |
| 638 | 638 | ||
| @@ -700,15 +700,15 @@ func SignalRemoveEmissionHook(SignalIdVar uint, HookIdVar uint32) { | |||
| 700 | 700 | ||
| 701 | 701 | } | |
| 702 | 702 | ||
| 703 | - | var xSignalSetVaMarshaller func(uint, types.GType, SignalCVaMarshaller) | |
| 703 | + | var xSignalSetVaMarshaller func(uint, types.GType, uintptr) | |
| 704 | 704 | ||
| 705 | 705 | // Change the #GSignalCVaMarshaller used for a given signal. This is a | |
| 706 | 706 | // specialised form of the marshaller that can often be used for the | |
| 707 | 707 | // common case of a single connected signal handler and avoids the | |
| 708 | 708 | // overhead of #GValue. Its use is optional. | |
| 709 | - | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar types.GType, VaMarshallerVar SignalCVaMarshaller) { | |
| 709 | + | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar types.GType, VaMarshallerVar *SignalCVaMarshaller) { | |
| 710 | 710 | ||
| 711 | - | xSignalSetVaMarshaller(SignalIdVar, InstanceTypeVar, VaMarshallerVar) | |
| 711 | + | xSignalSetVaMarshaller(SignalIdVar, InstanceTypeVar, glib.NewCallback(VaMarshallerVar)) | |
| 712 | 712 | ||
| 713 | 713 | } | |
| 714 | 714 | ||
| @@ -222,7 +222,7 @@ var xSignalAddEmissionHook func(uint, glib.Quark, uintptr, uintptr, uintptr) uin | |||||
| 222 | // for signals which don't have %G_SIGNAL_NO_HOOKS flag set. | 222 | // for signals which don't have %G_SIGNAL_NO_HOOKS flag set. | ||
| 223 | func SignalAddEmissionHook(SignalIdVar uint, DetailVar glib.Quark, HookFuncVar *SignalEmissionHook, HookDataVar uintptr, DataDestroyVar *glib.DestroyNotify) uint32 { | 223 | func SignalAddEmissionHook(SignalIdVar uint, DetailVar glib.Quark, HookFuncVar *SignalEmissionHook, HookDataVar uintptr, DataDestroyVar *glib.DestroyNotify) uint32 { | ||
| 224 | 224 | ||||
| 225 | - | cret := xSignalAddEmissionHook(SignalIdVar, DetailVar, glib.NewCallback(HookFuncVar), HookDataVar, glib.NewCallback(DataDestroyVar)) | 225 | + | cret := xSignalAddEmissionHook(SignalIdVar, DetailVar, glib.NewCallback(HookFuncVar), HookDataVar, glib.NewCallbackNullable(DataDestroyVar)) |
| 226 | return cret | 226 | return cret | ||
| 227 | } | 227 | } | ||
| 228 | 228 | ||||
| @@ -277,7 +277,7 @@ var xSignalConnectData func(uintptr, string, uintptr, uintptr, uintptr, ConnectF | |||||
| 277 | // `..._swapped()` variants of this function. | 277 | // `..._swapped()` variants of this function. | ||
| 278 | func SignalConnectData(InstanceVar *Object, DetailedSignalVar string, CHandlerVar *Callback, DataVar uintptr, DestroyDataVar *ClosureNotify, ConnectFlagsVar ConnectFlags) uint32 { | 278 | func SignalConnectData(InstanceVar *Object, DetailedSignalVar string, CHandlerVar *Callback, DataVar uintptr, DestroyDataVar *ClosureNotify, ConnectFlagsVar ConnectFlags) uint32 { | ||
| 279 | 279 | ||||
| 280 | - | cret := xSignalConnectData(InstanceVar.GoPointer(), DetailedSignalVar, glib.NewCallback(CHandlerVar), DataVar, glib.NewCallback(DestroyDataVar), ConnectFlagsVar) | 280 | + | cret := xSignalConnectData(InstanceVar.GoPointer(), DetailedSignalVar, glib.NewCallback(CHandlerVar), DataVar, glib.NewCallbackNullable(DestroyDataVar), ConnectFlagsVar) |
| 281 | return cret | 281 | return cret | ||
| 282 | } | 282 | } | ||
| 283 | 283 | ||||
| @@ -552,7 +552,7 @@ func SignalName(SignalIdVar uint) string { | |||||
| 552 | return cret | 552 | return cret | ||
| 553 | } | 553 | } | ||
| 554 | 554 | ||||
| 555 | - | var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | 555 | + | var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, uintptr, types.GType, uint, ...interface{}) uint |
| 556 | 556 | ||||
| 557 | // Creates a new signal. (This is usually done in the class initializer.) | 557 | // Creates a new signal. (This is usually done in the class initializer.) | ||
| 558 | // | 558 | // | ||
| @@ -578,13 +578,13 @@ var xSignalNew func(string, types.GType, SignalFlags, uint, uintptr, uintptr, Si | |||||
| 578 | // If @c_marshaller is non-%NULL, you need to also specify a va_marshaller | 578 | // If @c_marshaller is non-%NULL, you need to also specify a va_marshaller | ||
| 579 | // using g_signal_set_va_marshaller() or the generic va_marshaller will | 579 | // using g_signal_set_va_marshaller() or the generic va_marshaller will | ||
| 580 | // be used. | 580 | // be used. | ||
| 581 | - | func SignalNew(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | 581 | + | func SignalNew(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassOffsetVar uint, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { |
| 582 | 582 | ||||
| 583 | - | cret := xSignalNew(SignalNameVar, ItypeVar, SignalFlagsVar, ClassOffsetVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | 583 | + | cret := xSignalNew(SignalNameVar, ItypeVar, SignalFlagsVar, ClassOffsetVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, varArgs...) |
| 584 | return cret | 584 | return cret | ||
| 585 | } | 585 | } | ||
| 586 | 586 | ||||
| 587 | - | var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintptr, uintptr, SignalCMarshaller, types.GType, uint, ...interface{}) uint | 587 | + | var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintptr, uintptr, uintptr, types.GType, uint, ...interface{}) uint |
| 588 | 588 | ||||
| 589 | // Creates a new signal. (This is usually done in the class initializer.) | 589 | // Creates a new signal. (This is usually done in the class initializer.) | ||
| 590 | // | 590 | // | ||
| @@ -602,13 +602,13 @@ var xSignalNewClassHandler func(string, types.GType, SignalFlags, uintptr, uintp | |||||
| 602 | // | 602 | // | ||
| 603 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | 603 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | ||
| 604 | // the marshaller for this signal. | 604 | // the marshaller for this signal. | ||
| 605 | - | func SignalNewClassHandler(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { | 605 | + | func SignalNewClassHandler(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassHandlerVar *Callback, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, varArgs ...interface{}) uint { |
| 606 | 606 | ||||
| 607 | - | cret := xSignalNewClassHandler(SignalNameVar, ItypeVar, SignalFlagsVar, glib.NewCallback(ClassHandlerVar), glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, varArgs...) | 607 | + | cret := xSignalNewClassHandler(SignalNameVar, ItypeVar, SignalFlagsVar, glib.NewCallbackNullable(ClassHandlerVar), glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, varArgs...) |
| 608 | return cret | 608 | return cret | ||
| 609 | } | 609 | } | ||
| 610 | 610 | ||||
| 611 | - | var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []interface{}) uint | 611 | + | var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, uintptr, types.GType, uint, []interface{}) uint |
| 612 | 612 | ||||
| 613 | // Creates a new signal. (This is usually done in the class initializer.) | 613 | // Creates a new signal. (This is usually done in the class initializer.) | ||
| 614 | // | 614 | // | ||
| @@ -616,13 +616,13 @@ var xSignalNewValist func(string, types.GType, SignalFlags, *Closure, uintptr, u | |||||
| 616 | // | 616 | // | ||
| 617 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | 617 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | ||
| 618 | // the marshaller for this signal. | 618 | // the marshaller for this signal. | ||
| 619 | - | func SignalNewValist(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ArgsVar []interface{}) uint { | 619 | + | func SignalNewValist(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ArgsVar []interface{}) uint { |
| 620 | 620 | ||||
| 621 | - | cret := xSignalNewValist(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ArgsVar) | 621 | + | cret := xSignalNewValist(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, ArgsVar) |
| 622 | return cret | 622 | return cret | ||
| 623 | } | 623 | } | ||
| 624 | 624 | ||||
| 625 | - | var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, SignalCMarshaller, types.GType, uint, []types.GType) uint | 625 | + | var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintptr, uintptr, types.GType, uint, []types.GType) uint |
| 626 | 626 | ||||
| 627 | // Creates a new signal. (This is usually done in the class initializer.) | 627 | // Creates a new signal. (This is usually done in the class initializer.) | ||
| 628 | // | 628 | // | ||
| @@ -630,9 +630,9 @@ var xSignalNewv func(string, types.GType, SignalFlags, *Closure, uintptr, uintpt | |||||
| 630 | // | 630 | // | ||
| 631 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | 631 | // If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as | ||
| 632 | // the marshaller for this signal. | 632 | // the marshaller for this signal. | ||
| 633 | - | func SignalNewv(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ParamTypesVar []types.GType) uint { | 633 | + | func SignalNewv(SignalNameVar string, ItypeVar types.GType, SignalFlagsVar SignalFlags, ClassClosureVar *Closure, AccumulatorVar *SignalAccumulator, AccuDataVar uintptr, CMarshallerVar *SignalCMarshaller, ReturnTypeVar types.GType, NParamsVar uint, ParamTypesVar []types.GType) uint { |
| 634 | 634 | ||||
| 635 | - | cret := xSignalNewv(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallback(AccumulatorVar), AccuDataVar, CMarshallerVar, ReturnTypeVar, NParamsVar, ParamTypesVar) | 635 | + | cret := xSignalNewv(SignalNameVar, ItypeVar, SignalFlagsVar, ClassClosureVar, glib.NewCallbackNullable(AccumulatorVar), AccuDataVar, glib.NewCallbackNullable(CMarshallerVar), ReturnTypeVar, NParamsVar, ParamTypesVar) |
| 636 | return cret | 636 | return cret | ||
| 637 | } | 637 | } | ||
| 638 | 638 | ||||
| @@ -700,15 +700,15 @@ func SignalRemoveEmissionHook(SignalIdVar uint, HookIdVar uint32) { | |||||
| 700 | 700 | ||||
| 701 | } | 701 | } | ||
| 702 | 702 | ||||
| 703 | - | var xSignalSetVaMarshaller func(uint, types.GType, SignalCVaMarshaller) | 703 | + | var xSignalSetVaMarshaller func(uint, types.GType, uintptr) |
| 704 | 704 | ||||
| 705 | // Change the #GSignalCVaMarshaller used for a given signal. This is a | 705 | // Change the #GSignalCVaMarshaller used for a given signal. This is a | ||
| 706 | // specialised form of the marshaller that can often be used for the | 706 | // specialised form of the marshaller that can often be used for the | ||
| 707 | // common case of a single connected signal handler and avoids the | 707 | // common case of a single connected signal handler and avoids the | ||
| 708 | // overhead of #GValue. Its use is optional. | 708 | // overhead of #GValue. Its use is optional. | ||
| 709 | - | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar types.GType, VaMarshallerVar SignalCVaMarshaller) { | 709 | + | func SignalSetVaMarshaller(SignalIdVar uint, InstanceTypeVar types.GType, VaMarshallerVar *SignalCVaMarshaller) { |
| 710 | 710 | ||||
| 711 | - | xSignalSetVaMarshaller(SignalIdVar, InstanceTypeVar, VaMarshallerVar) | 711 | + | xSignalSetVaMarshaller(SignalIdVar, InstanceTypeVar, glib.NewCallback(VaMarshallerVar)) |
| 712 | 712 | ||||
| 713 | } | 713 | } | ||
| 714 | 714 | ||||
M v4/gsk/gskrendernode.go +1 -1
| @@ -272,7 +272,7 @@ var xRenderNodeDeserialize func(*glib.Bytes, uintptr, uintptr) uintptr | |||
| 272 | 272 | func RenderNodeDeserialize(BytesVar *glib.Bytes, ErrorFuncVar *ParseErrorFunc, UserDataVar uintptr) *RenderNode { | |
| 273 | 273 | var cls *RenderNode | |
| 274 | 274 | ||
| 275 | - | cret := xRenderNodeDeserialize(BytesVar, glib.NewCallback(ErrorFuncVar), UserDataVar) | |
| 275 | + | cret := xRenderNodeDeserialize(BytesVar, glib.NewCallbackNullable(ErrorFuncVar), UserDataVar) | |
| 276 | 276 | ||
| 277 | 277 | if cret == 0 { | |
| 278 | 278 | return nil | |
| @@ -272,7 +272,7 @@ var xRenderNodeDeserialize func(*glib.Bytes, uintptr, uintptr) uintptr | |||||
| 272 | func RenderNodeDeserialize(BytesVar *glib.Bytes, ErrorFuncVar *ParseErrorFunc, UserDataVar uintptr) *RenderNode { | 272 | func RenderNodeDeserialize(BytesVar *glib.Bytes, ErrorFuncVar *ParseErrorFunc, UserDataVar uintptr) *RenderNode { | ||
| 273 | var cls *RenderNode | 273 | var cls *RenderNode | ||
| 274 | 274 | ||||
| 275 | - | cret := xRenderNodeDeserialize(BytesVar, glib.NewCallback(ErrorFuncVar), UserDataVar) | 275 | + | cret := xRenderNodeDeserialize(BytesVar, glib.NewCallbackNullable(ErrorFuncVar), UserDataVar) |
| 276 | 276 | ||||
| 277 | if cret == 0 { | 277 | if cret == 0 { | ||
| 278 | return nil | 278 | return nil | ||
M v4/gtk/gtkassistant.go +1 -1
| @@ -355,7 +355,7 @@ var xAssistantSetForwardPageFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 355 | 355 | // next visible page. | |
| 356 | 356 | func (x *Assistant) SetForwardPageFunc(PageFuncVar *AssistantPageFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 357 | 357 | ||
| 358 | - | xAssistantSetForwardPageFunc(x.GoPointer(), glib.NewCallback(PageFuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 358 | + | xAssistantSetForwardPageFunc(x.GoPointer(), glib.NewCallbackNullable(PageFuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 359 | 359 | ||
| 360 | 360 | } | |
| 361 | 361 | ||
| @@ -355,7 +355,7 @@ var xAssistantSetForwardPageFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 355 | // next visible page. | 355 | // next visible page. | ||
| 356 | func (x *Assistant) SetForwardPageFunc(PageFuncVar *AssistantPageFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 356 | func (x *Assistant) SetForwardPageFunc(PageFuncVar *AssistantPageFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 357 | 357 | ||||
| 358 | - | xAssistantSetForwardPageFunc(x.GoPointer(), glib.NewCallback(PageFuncVar), DataVar, glib.NewCallback(DestroyVar)) | 358 | + | xAssistantSetForwardPageFunc(x.GoPointer(), glib.NewCallbackNullable(PageFuncVar), DataVar, glib.NewCallback(DestroyVar)) |
| 359 | 359 | ||||
| 360 | } | 360 | } | ||
| 361 | 361 | ||||
M v4/gtk/gtkcellarea.go +1 -1
| @@ -1190,7 +1190,7 @@ func (x *CellArea) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||
| 1190 | 1190 | // @func may be %NULL to remove a previously set function. | |
| 1191 | 1191 | func (x *CellArea) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1192 | 1192 | ||
| 1193 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 1193 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 1194 | 1194 | ||
| 1195 | 1195 | } | |
| 1196 | 1196 | ||
| @@ -1190,7 +1190,7 @@ func (x *CellArea) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||||
| 1190 | // @func may be %NULL to remove a previously set function. | 1190 | // @func may be %NULL to remove a previously set function. | ||
| 1191 | func (x *CellArea) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1191 | func (x *CellArea) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1192 | 1192 | ||||
| 1193 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 1193 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 1194 | 1194 | ||||
| 1195 | } | 1195 | } | ||
| 1196 | 1196 | ||||
M v4/gtk/gtkcellareabox.go +1 -1
| @@ -210,7 +210,7 @@ func (x *CellAreaBox) SetAttributes(CellVar *CellRenderer, varArgs ...interface{ | |||
| 210 | 210 | // @func may be %NULL to remove a previously set function. | |
| 211 | 211 | func (x *CellAreaBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 212 | 212 | ||
| 213 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 213 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 214 | 214 | ||
| 215 | 215 | } | |
| 216 | 216 | ||
| @@ -210,7 +210,7 @@ func (x *CellAreaBox) SetAttributes(CellVar *CellRenderer, varArgs ...interface{ | |||||
| 210 | // @func may be %NULL to remove a previously set function. | 210 | // @func may be %NULL to remove a previously set function. | ||
| 211 | func (x *CellAreaBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 211 | func (x *CellAreaBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 212 | 212 | ||||
| 213 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 213 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 214 | 214 | ||||
| 215 | } | 215 | } | ||
| 216 | 216 | ||||
M v4/gtk/gtkcelllayout.go +1 -1
| @@ -287,7 +287,7 @@ func (x *CellLayoutBase) SetAttributes(CellVar *CellRenderer, varArgs ...interfa | |||
| 287 | 287 | // @func may be %NULL to remove a previously set function. | |
| 288 | 288 | func (x *CellLayoutBase) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 289 | 289 | ||
| 290 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 290 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 291 | 291 | ||
| 292 | 292 | } | |
| 293 | 293 | ||
| @@ -287,7 +287,7 @@ func (x *CellLayoutBase) SetAttributes(CellVar *CellRenderer, varArgs ...interfa | |||||
| 287 | // @func may be %NULL to remove a previously set function. | 287 | // @func may be %NULL to remove a previously set function. | ||
| 288 | func (x *CellLayoutBase) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 288 | func (x *CellLayoutBase) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 289 | 289 | ||||
| 290 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 290 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 291 | 291 | ||||
| 292 | } | 292 | } | ||
| 293 | 293 | ||||
M v4/gtk/gtkcellview.go +1 -1
| @@ -501,7 +501,7 @@ func (x *CellView) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||
| 501 | 501 | // @func may be %NULL to remove a previously set function. | |
| 502 | 502 | func (x *CellView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 503 | 503 | ||
| 504 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 504 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 505 | 505 | ||
| 506 | 506 | } | |
| 507 | 507 | ||
| @@ -501,7 +501,7 @@ func (x *CellView) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||||
| 501 | // @func may be %NULL to remove a previously set function. | 501 | // @func may be %NULL to remove a previously set function. | ||
| 502 | func (x *CellView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 502 | func (x *CellView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 503 | 503 | ||||
| 504 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 504 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 505 | 505 | ||||
| 506 | } | 506 | } | ||
| 507 | 507 | ||||
M v4/gtk/gtkcombobox.go +2 -2
| @@ -477,7 +477,7 @@ var xComboBoxSetRowSeparatorFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 477 | 477 | // This is the default value. | |
| 478 | 478 | func (x *ComboBox) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 479 | 479 | ||
| 480 | - | xComboBoxSetRowSeparatorFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 480 | + | xComboBoxSetRowSeparatorFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 481 | 481 | ||
| 482 | 482 | } | |
| 483 | 483 | ||
| @@ -943,7 +943,7 @@ func (x *ComboBox) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||
| 943 | 943 | // @func may be %NULL to remove a previously set function. | |
| 944 | 944 | func (x *ComboBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 945 | 945 | ||
| 946 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 946 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 947 | 947 | ||
| 948 | 948 | } | |
| 949 | 949 | ||
| @@ -477,7 +477,7 @@ var xComboBoxSetRowSeparatorFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 477 | // This is the default value. | 477 | // This is the default value. | ||
| 478 | func (x *ComboBox) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 478 | func (x *ComboBox) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 479 | 479 | ||||
| 480 | - | xComboBoxSetRowSeparatorFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | 480 | + | xComboBoxSetRowSeparatorFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 481 | 481 | ||||
| 482 | } | 482 | } | ||
| 483 | 483 | ||||
| @@ -943,7 +943,7 @@ func (x *ComboBox) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||||
| 943 | // @func may be %NULL to remove a previously set function. | 943 | // @func may be %NULL to remove a previously set function. | ||
| 944 | func (x *ComboBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 944 | func (x *ComboBox) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 945 | 945 | ||||
| 946 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 946 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 947 | 947 | ||||
| 948 | } | 948 | } | ||
| 949 | 949 | ||||
M v4/gtk/gtkcomboboxtext.go +1 -1
| @@ -523,7 +523,7 @@ func (x *ComboBoxText) SetAttributes(CellVar *CellRenderer, varArgs ...interface | |||
| 523 | 523 | // @func may be %NULL to remove a previously set function. | |
| 524 | 524 | func (x *ComboBoxText) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 525 | 525 | ||
| 526 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 526 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 527 | 527 | ||
| 528 | 528 | } | |
| 529 | 529 | ||
| @@ -523,7 +523,7 @@ func (x *ComboBoxText) SetAttributes(CellVar *CellRenderer, varArgs ...interface | |||||
| 523 | // @func may be %NULL to remove a previously set function. | 523 | // @func may be %NULL to remove a previously set function. | ||
| 524 | func (x *ComboBoxText) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 524 | func (x *ComboBoxText) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 525 | 525 | ||||
| 526 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 526 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 527 | 527 | ||||
| 528 | } | 528 | } | ||
| 529 | 529 | ||||
M v4/gtk/gtkcustomfilter.go +2 -2
| @@ -56,7 +56,7 @@ var xNewCustomFilter func(uintptr, uintptr, uintptr) uintptr | |||
| 56 | 56 | func NewCustomFilter(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomFilter { | |
| 57 | 57 | var cls *CustomFilter | |
| 58 | 58 | ||
| 59 | - | cret := xNewCustomFilter(glib.NewCallback(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 59 | + | cret := xNewCustomFilter(glib.NewCallbackNullable(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 60 | 60 | ||
| 61 | 61 | if cret == 0 { | |
| 62 | 62 | return nil | |
| @@ -79,7 +79,7 @@ var xCustomFilterSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 79 | 79 | // called now. | |
| 80 | 80 | func (x *CustomFilter) SetFilterFunc(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 81 | 81 | ||
| 82 | - | xCustomFilterSetFilterFunc(x.GoPointer(), glib.NewCallback(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 82 | + | xCustomFilterSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 83 | 83 | ||
| 84 | 84 | } | |
| 85 | 85 | ||
| @@ -56,7 +56,7 @@ var xNewCustomFilter func(uintptr, uintptr, uintptr) uintptr | |||||
| 56 | func NewCustomFilter(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomFilter { | 56 | func NewCustomFilter(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomFilter { | ||
| 57 | var cls *CustomFilter | 57 | var cls *CustomFilter | ||
| 58 | 58 | ||||
| 59 | - | cret := xNewCustomFilter(glib.NewCallback(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 59 | + | cret := xNewCustomFilter(glib.NewCallbackNullable(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) |
| 60 | 60 | ||||
| 61 | if cret == 0 { | 61 | if cret == 0 { | ||
| 62 | return nil | 62 | return nil | ||
| @@ -79,7 +79,7 @@ var xCustomFilterSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 79 | // called now. | 79 | // called now. | ||
| 80 | func (x *CustomFilter) SetFilterFunc(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 80 | func (x *CustomFilter) SetFilterFunc(MatchFuncVar *CustomFilterFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 81 | 81 | ||||
| 82 | - | xCustomFilterSetFilterFunc(x.GoPointer(), glib.NewCallback(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 82 | + | xCustomFilterSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(MatchFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) |
| 83 | 83 | ||||
| 84 | } | 84 | } | ||
| 85 | 85 | ||||
M v4/gtk/gtkcustomlayout.go +1 -1
| @@ -62,7 +62,7 @@ var xNewCustomLayout func(uintptr, uintptr, uintptr) uintptr | |||
| 62 | 62 | func NewCustomLayout(RequestModeVar *CustomRequestModeFunc, MeasureVar *CustomMeasureFunc, AllocateVar *CustomAllocateFunc) *CustomLayout { | |
| 63 | 63 | var cls *CustomLayout | |
| 64 | 64 | ||
| 65 | - | cret := xNewCustomLayout(glib.NewCallback(RequestModeVar), glib.NewCallback(MeasureVar), glib.NewCallback(AllocateVar)) | |
| 65 | + | cret := xNewCustomLayout(glib.NewCallbackNullable(RequestModeVar), glib.NewCallback(MeasureVar), glib.NewCallback(AllocateVar)) | |
| 66 | 66 | ||
| 67 | 67 | if cret == 0 { | |
| 68 | 68 | return nil | |
| @@ -62,7 +62,7 @@ var xNewCustomLayout func(uintptr, uintptr, uintptr) uintptr | |||||
| 62 | func NewCustomLayout(RequestModeVar *CustomRequestModeFunc, MeasureVar *CustomMeasureFunc, AllocateVar *CustomAllocateFunc) *CustomLayout { | 62 | func NewCustomLayout(RequestModeVar *CustomRequestModeFunc, MeasureVar *CustomMeasureFunc, AllocateVar *CustomAllocateFunc) *CustomLayout { | ||
| 63 | var cls *CustomLayout | 63 | var cls *CustomLayout | ||
| 64 | 64 | ||||
| 65 | - | cret := xNewCustomLayout(glib.NewCallback(RequestModeVar), glib.NewCallback(MeasureVar), glib.NewCallback(AllocateVar)) | 65 | + | cret := xNewCustomLayout(glib.NewCallbackNullable(RequestModeVar), glib.NewCallback(MeasureVar), glib.NewCallback(AllocateVar)) |
| 66 | 66 | ||||
| 67 | if cret == 0 { | 67 | if cret == 0 { | ||
| 68 | return nil | 68 | return nil | ||
M v4/gtk/gtkcustomsorter.go +2 -2
| @@ -48,7 +48,7 @@ var xNewCustomSorter func(uintptr, uintptr, uintptr) uintptr | |||
| 48 | 48 | func NewCustomSorter(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomSorter { | |
| 49 | 49 | var cls *CustomSorter | |
| 50 | 50 | ||
| 51 | - | cret := xNewCustomSorter(glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 51 | + | cret := xNewCustomSorter(glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | |
| 52 | 52 | ||
| 53 | 53 | if cret == 0 { | |
| 54 | 54 | return nil | |
| @@ -71,7 +71,7 @@ var xCustomSorterSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 71 | 71 | // called now. | |
| 72 | 72 | func (x *CustomSorter) SetSortFunc(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 73 | 73 | ||
| 74 | - | xCustomSorterSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 74 | + | xCustomSorterSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 75 | 75 | ||
| 76 | 76 | } | |
| 77 | 77 | ||
| @@ -48,7 +48,7 @@ var xNewCustomSorter func(uintptr, uintptr, uintptr) uintptr | |||||
| 48 | func NewCustomSorter(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomSorter { | 48 | func NewCustomSorter(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *CustomSorter { | ||
| 49 | var cls *CustomSorter | 49 | var cls *CustomSorter | ||
| 50 | 50 | ||||
| 51 | - | cret := xNewCustomSorter(glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 51 | + | cret := xNewCustomSorter(glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) |
| 52 | 52 | ||||
| 53 | if cret == 0 { | 53 | if cret == 0 { | ||
| 54 | return nil | 54 | return nil | ||
| @@ -71,7 +71,7 @@ var xCustomSorterSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 71 | // called now. | 71 | // called now. | ||
| 72 | func (x *CustomSorter) SetSortFunc(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 72 | func (x *CustomSorter) SetSortFunc(SortFuncVar *glib.CompareDataFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 73 | 73 | ||||
| 74 | - | xCustomSorterSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 74 | + | xCustomSorterSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) |
| 75 | 75 | ||||
| 76 | } | 76 | } | ||
| 77 | 77 | ||||
M v4/gtk/gtkdrawingarea.go +1 -1
| @@ -217,7 +217,7 @@ var xDrawingAreaSetDrawFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 217 | 217 | // on the drawing area. This will cause a redraw and will call @draw_func again. | |
| 218 | 218 | func (x *DrawingArea) SetDrawFunc(DrawFuncVar *DrawingAreaDrawFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 219 | 219 | ||
| 220 | - | xDrawingAreaSetDrawFunc(x.GoPointer(), glib.NewCallback(DrawFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 220 | + | xDrawingAreaSetDrawFunc(x.GoPointer(), glib.NewCallbackNullable(DrawFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 221 | 221 | ||
| 222 | 222 | } | |
| 223 | 223 | ||
| @@ -217,7 +217,7 @@ var xDrawingAreaSetDrawFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 217 | // on the drawing area. This will cause a redraw and will call @draw_func again. | 217 | // on the drawing area. This will cause a redraw and will call @draw_func again. | ||
| 218 | func (x *DrawingArea) SetDrawFunc(DrawFuncVar *DrawingAreaDrawFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 218 | func (x *DrawingArea) SetDrawFunc(DrawFuncVar *DrawingAreaDrawFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 219 | 219 | ||||
| 220 | - | xDrawingAreaSetDrawFunc(x.GoPointer(), glib.NewCallback(DrawFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 220 | + | xDrawingAreaSetDrawFunc(x.GoPointer(), glib.NewCallbackNullable(DrawFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 221 | 221 | ||||
| 222 | } | 222 | } | ||
| 223 | 223 | ||||
M v4/gtk/gtkentrycompletion.go +1 -1
| @@ -601,7 +601,7 @@ func (x *EntryCompletion) SetAttributes(CellVar *CellRenderer, varArgs ...interf | |||
| 601 | 601 | // @func may be %NULL to remove a previously set function. | |
| 602 | 602 | func (x *EntryCompletion) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 603 | 603 | ||
| 604 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 604 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 605 | 605 | ||
| 606 | 606 | } | |
| 607 | 607 | ||
| @@ -601,7 +601,7 @@ func (x *EntryCompletion) SetAttributes(CellVar *CellRenderer, varArgs ...interf | |||||
| 601 | // @func may be %NULL to remove a previously set function. | 601 | // @func may be %NULL to remove a previously set function. | ||
| 602 | func (x *EntryCompletion) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 602 | func (x *EntryCompletion) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 603 | 603 | ||||
| 604 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 604 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 605 | 605 | ||||
| 606 | } | 606 | } | ||
| 607 | 607 | ||||
M v4/gtk/gtkexpression.go +1 -1
| @@ -181,7 +181,7 @@ var xNewCClosureExpression func(types.GType, uintptr, uint, uintptr, uintptr, ui | |||
| 181 | 181 | func NewCClosureExpression(ValueTypeVar types.GType, MarshalVar *gobject.ClosureMarshal, NParamsVar uint, ParamsVar uintptr, CallbackFuncVar *gobject.Callback, UserDataVar uintptr, UserDestroyVar *gobject.ClosureNotify) *CClosureExpression { | |
| 182 | 182 | var cls *CClosureExpression | |
| 183 | 183 | ||
| 184 | - | cret := xNewCClosureExpression(ValueTypeVar, glib.NewCallback(MarshalVar), NParamsVar, ParamsVar, glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 184 | + | cret := xNewCClosureExpression(ValueTypeVar, glib.NewCallbackNullable(MarshalVar), NParamsVar, ParamsVar, glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | |
| 185 | 185 | ||
| 186 | 186 | if cret == 0 { | |
| 187 | 187 | return nil | |
| @@ -181,7 +181,7 @@ var xNewCClosureExpression func(types.GType, uintptr, uint, uintptr, uintptr, ui | |||||
| 181 | func NewCClosureExpression(ValueTypeVar types.GType, MarshalVar *gobject.ClosureMarshal, NParamsVar uint, ParamsVar uintptr, CallbackFuncVar *gobject.Callback, UserDataVar uintptr, UserDestroyVar *gobject.ClosureNotify) *CClosureExpression { | 181 | func NewCClosureExpression(ValueTypeVar types.GType, MarshalVar *gobject.ClosureMarshal, NParamsVar uint, ParamsVar uintptr, CallbackFuncVar *gobject.Callback, UserDataVar uintptr, UserDestroyVar *gobject.ClosureNotify) *CClosureExpression { | ||
| 182 | var cls *CClosureExpression | 182 | var cls *CClosureExpression | ||
| 183 | 183 | ||||
| 184 | - | cret := xNewCClosureExpression(ValueTypeVar, glib.NewCallback(MarshalVar), NParamsVar, ParamsVar, glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 184 | + | cret := xNewCClosureExpression(ValueTypeVar, glib.NewCallbackNullable(MarshalVar), NParamsVar, ParamsVar, glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) |
| 185 | 185 | ||||
| 186 | if cret == 0 { | 186 | if cret == 0 { | ||
| 187 | return nil | 187 | return nil | ||
M v4/gtk/gtkflowbox.go +2 -2
| @@ -402,7 +402,7 @@ var xFlowBoxSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 402 | 402 | // (see [method@Gtk.FlowBox.bind_model]). | |
| 403 | 403 | func (x *FlowBox) SetFilterFunc(FilterFuncVar *FlowBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 404 | 404 | ||
| 405 | - | xFlowBoxSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 405 | + | xFlowBoxSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 406 | 406 | ||
| 407 | 407 | } | |
| 408 | 408 | ||
| @@ -492,7 +492,7 @@ var xFlowBoxSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 492 | 492 | // (see [method@Gtk.FlowBox.bind_model]). | |
| 493 | 493 | func (x *FlowBox) SetSortFunc(SortFuncVar *FlowBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 494 | 494 | ||
| 495 | - | xFlowBoxSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 495 | + | xFlowBoxSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 496 | 496 | ||
| 497 | 497 | } | |
| 498 | 498 | ||
| @@ -402,7 +402,7 @@ var xFlowBoxSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 402 | // (see [method@Gtk.FlowBox.bind_model]). | 402 | // (see [method@Gtk.FlowBox.bind_model]). | ||
| 403 | func (x *FlowBox) SetFilterFunc(FilterFuncVar *FlowBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 403 | func (x *FlowBox) SetFilterFunc(FilterFuncVar *FlowBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 404 | 404 | ||||
| 405 | - | xFlowBoxSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 405 | + | xFlowBoxSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 406 | 406 | ||||
| 407 | } | 407 | } | ||
| 408 | 408 | ||||
| @@ -492,7 +492,7 @@ var xFlowBoxSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 492 | // (see [method@Gtk.FlowBox.bind_model]). | 492 | // (see [method@Gtk.FlowBox.bind_model]). | ||
| 493 | func (x *FlowBox) SetSortFunc(SortFuncVar *FlowBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 493 | func (x *FlowBox) SetSortFunc(SortFuncVar *FlowBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 494 | 494 | ||||
| 495 | - | xFlowBoxSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 495 | + | xFlowBoxSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 496 | 496 | ||||
| 497 | } | 497 | } | ||
| 498 | 498 | ||||
M v4/gtk/gtkfontbutton.go +1 -1
| @@ -493,7 +493,7 @@ func (x *FontButton) GetShowPreviewEntry() bool { | |||
| 493 | 493 | // in the font chooser. | |
| 494 | 494 | func (x *FontButton) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 495 | 495 | ||
| 496 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 496 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 497 | 497 | ||
| 498 | 498 | } | |
| 499 | 499 | ||
| @@ -493,7 +493,7 @@ func (x *FontButton) GetShowPreviewEntry() bool { | |||||
| 493 | // in the font chooser. | 493 | // in the font chooser. | ||
| 494 | func (x *FontButton) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 494 | func (x *FontButton) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 495 | 495 | ||||
| 496 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | 496 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 497 | 497 | ||||
| 498 | } | 498 | } | ||
| 499 | 499 | ||||
M v4/gtk/gtkfontchooser.go +1 -1
| @@ -216,7 +216,7 @@ func (x *FontChooserBase) GetShowPreviewEntry() bool { | |||
| 216 | 216 | // in the font chooser. | |
| 217 | 217 | func (x *FontChooserBase) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 218 | 218 | ||
| 219 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 219 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 220 | 220 | ||
| 221 | 221 | } | |
| 222 | 222 | ||
| @@ -216,7 +216,7 @@ func (x *FontChooserBase) GetShowPreviewEntry() bool { | |||||
| 216 | // in the font chooser. | 216 | // in the font chooser. | ||
| 217 | func (x *FontChooserBase) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 217 | func (x *FontChooserBase) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 218 | 218 | ||||
| 219 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | 219 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 220 | 220 | ||||
| 221 | } | 221 | } | ||
| 222 | 222 | ||||
M v4/gtk/gtkfontchooserdialog.go +1 -1
| @@ -347,7 +347,7 @@ func (x *FontChooserDialog) GetShowPreviewEntry() bool { | |||
| 347 | 347 | // in the font chooser. | |
| 348 | 348 | func (x *FontChooserDialog) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 349 | 349 | ||
| 350 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 350 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 351 | 351 | ||
| 352 | 352 | } | |
| 353 | 353 | ||
| @@ -347,7 +347,7 @@ func (x *FontChooserDialog) GetShowPreviewEntry() bool { | |||||
| 347 | // in the font chooser. | 347 | // in the font chooser. | ||
| 348 | func (x *FontChooserDialog) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 348 | func (x *FontChooserDialog) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 349 | 349 | ||||
| 350 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | 350 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 351 | 351 | ||||
| 352 | } | 352 | } | ||
| 353 | 353 | ||||
M v4/gtk/gtkfontchooserwidget.go +1 -1
| @@ -348,7 +348,7 @@ func (x *FontChooserWidget) GetShowPreviewEntry() bool { | |||
| 348 | 348 | // in the font chooser. | |
| 349 | 349 | func (x *FontChooserWidget) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 350 | 350 | ||
| 351 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 351 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 352 | 352 | ||
| 353 | 353 | } | |
| 354 | 354 | ||
| @@ -348,7 +348,7 @@ func (x *FontChooserWidget) GetShowPreviewEntry() bool { | |||||
| 348 | // in the font chooser. | 348 | // in the font chooser. | ||
| 349 | func (x *FontChooserWidget) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 349 | func (x *FontChooserWidget) SetFilterFunc(FilterVar *FontFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 350 | 350 | ||||
| 351 | - | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) | 351 | + | XGtkFontChooserSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 352 | 352 | ||||
| 353 | } | 353 | } | ||
| 354 | 354 | ||||
M v4/gtk/gtkiconview.go +1 -1
| @@ -1286,7 +1286,7 @@ func (x *IconView) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||
| 1286 | 1286 | // @func may be %NULL to remove a previously set function. | |
| 1287 | 1287 | func (x *IconView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1288 | 1288 | ||
| 1289 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 1289 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 1290 | 1290 | ||
| 1291 | 1291 | } | |
| 1292 | 1292 | ||
| @@ -1286,7 +1286,7 @@ func (x *IconView) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) | |||||
| 1286 | // @func may be %NULL to remove a previously set function. | 1286 | // @func may be %NULL to remove a previously set function. | ||
| 1287 | func (x *IconView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1287 | func (x *IconView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1288 | 1288 | ||||
| 1289 | - | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 1289 | + | XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 1290 | 1290 | ||||
| 1291 | } | 1291 | } | ||
| 1292 | 1292 | ||||
M v4/gtk/gtklistbox.go +4 -4
| @@ -165,7 +165,7 @@ var xListBoxBindModel func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 165 | 165 | // should be implemented by the model. | |
| 166 | 166 | func (x *ListBox) BindModel(ModelVar gio.ListModel, CreateWidgetFuncVar *ListBoxCreateWidgetFunc, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) { | |
| 167 | 167 | ||
| 168 | - | xListBoxBindModel(x.GoPointer(), ModelVar.GoPointer(), glib.NewCallback(CreateWidgetFuncVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 168 | + | xListBoxBindModel(x.GoPointer(), ModelVar.GoPointer(), glib.NewCallbackNullable(CreateWidgetFuncVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 169 | 169 | ||
| 170 | 170 | } | |
| 171 | 171 | ||
| @@ -460,7 +460,7 @@ var xListBoxSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 460 | 460 | // (see [method@Gtk.ListBox.bind_model]). | |
| 461 | 461 | func (x *ListBox) SetFilterFunc(FilterFuncVar *ListBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 462 | 462 | ||
| 463 | - | xListBoxSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 463 | + | xListBoxSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 464 | 464 | ||
| 465 | 465 | } | |
| 466 | 466 | ||
| @@ -493,7 +493,7 @@ var xListBoxSetHeaderFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 493 | 493 | // [method@Gtk.ListBox.invalidate_headers] is called. | |
| 494 | 494 | func (x *ListBox) SetHeaderFunc(UpdateHeaderVar *ListBoxUpdateHeaderFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 495 | 495 | ||
| 496 | - | xListBoxSetHeaderFunc(x.GoPointer(), glib.NewCallback(UpdateHeaderVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 496 | + | xListBoxSetHeaderFunc(x.GoPointer(), glib.NewCallbackNullable(UpdateHeaderVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 497 | 497 | ||
| 498 | 498 | } | |
| 499 | 499 | ||
| @@ -542,7 +542,7 @@ var xListBoxSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 542 | 542 | // (see [method@Gtk.ListBox.bind_model]). | |
| 543 | 543 | func (x *ListBox) SetSortFunc(SortFuncVar *ListBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 544 | 544 | ||
| 545 | - | xListBoxSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 545 | + | xListBoxSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 546 | 546 | ||
| 547 | 547 | } | |
| 548 | 548 | ||
| @@ -165,7 +165,7 @@ var xListBoxBindModel func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 165 | // should be implemented by the model. | 165 | // should be implemented by the model. | ||
| 166 | func (x *ListBox) BindModel(ModelVar gio.ListModel, CreateWidgetFuncVar *ListBoxCreateWidgetFunc, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) { | 166 | func (x *ListBox) BindModel(ModelVar gio.ListModel, CreateWidgetFuncVar *ListBoxCreateWidgetFunc, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) { | ||
| 167 | 167 | ||||
| 168 | - | xListBoxBindModel(x.GoPointer(), ModelVar.GoPointer(), glib.NewCallback(CreateWidgetFuncVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 168 | + | xListBoxBindModel(x.GoPointer(), ModelVar.GoPointer(), glib.NewCallbackNullable(CreateWidgetFuncVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) |
| 169 | 169 | ||||
| 170 | } | 170 | } | ||
| 171 | 171 | ||||
| @@ -460,7 +460,7 @@ var xListBoxSetFilterFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 460 | // (see [method@Gtk.ListBox.bind_model]). | 460 | // (see [method@Gtk.ListBox.bind_model]). | ||
| 461 | func (x *ListBox) SetFilterFunc(FilterFuncVar *ListBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 461 | func (x *ListBox) SetFilterFunc(FilterFuncVar *ListBoxFilterFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 462 | 462 | ||||
| 463 | - | xListBoxSetFilterFunc(x.GoPointer(), glib.NewCallback(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 463 | + | xListBoxSetFilterFunc(x.GoPointer(), glib.NewCallbackNullable(FilterFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 464 | 464 | ||||
| 465 | } | 465 | } | ||
| 466 | 466 | ||||
| @@ -493,7 +493,7 @@ var xListBoxSetHeaderFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 493 | // [method@Gtk.ListBox.invalidate_headers] is called. | 493 | // [method@Gtk.ListBox.invalidate_headers] is called. | ||
| 494 | func (x *ListBox) SetHeaderFunc(UpdateHeaderVar *ListBoxUpdateHeaderFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 494 | func (x *ListBox) SetHeaderFunc(UpdateHeaderVar *ListBoxUpdateHeaderFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 495 | 495 | ||||
| 496 | - | xListBoxSetHeaderFunc(x.GoPointer(), glib.NewCallback(UpdateHeaderVar), UserDataVar, glib.NewCallback(DestroyVar)) | 496 | + | xListBoxSetHeaderFunc(x.GoPointer(), glib.NewCallbackNullable(UpdateHeaderVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 497 | 497 | ||||
| 498 | } | 498 | } | ||
| 499 | 499 | ||||
| @@ -542,7 +542,7 @@ var xListBoxSetSortFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 542 | // (see [method@Gtk.ListBox.bind_model]). | 542 | // (see [method@Gtk.ListBox.bind_model]). | ||
| 543 | func (x *ListBox) SetSortFunc(SortFuncVar *ListBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 543 | func (x *ListBox) SetSortFunc(SortFuncVar *ListBoxSortFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 544 | 544 | ||||
| 545 | - | xListBoxSetSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 545 | + | xListBoxSetSortFunc(x.GoPointer(), glib.NewCallbackNullable(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) |
| 546 | 546 | ||||
| 547 | } | 547 | } | ||
| 548 | 548 | ||||
M v4/gtk/gtkliststore.go +2 -2
| @@ -916,7 +916,7 @@ func (x *ListStore) HasDefaultSortFunc() bool { | |||
| 916 | 916 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | |
| 917 | 917 | func (x *ListStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 918 | 918 | ||
| 919 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 919 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 920 | 920 | ||
| 921 | 921 | } | |
| 922 | 922 | ||
| @@ -940,7 +940,7 @@ func (x *ListStore) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) { | |||
| 940 | 940 | // the model will sort using this function. | |
| 941 | 941 | func (x *ListStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 942 | 942 | ||
| 943 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 943 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 944 | 944 | ||
| 945 | 945 | } | |
| 946 | 946 | ||
| @@ -916,7 +916,7 @@ func (x *ListStore) HasDefaultSortFunc() bool { | |||||
| 916 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | 916 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | ||
| 917 | func (x *ListStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 917 | func (x *ListStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 918 | 918 | ||||
| 919 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 919 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 920 | 920 | ||||
| 921 | } | 921 | } | ||
| 922 | 922 | ||||
| @@ -940,7 +940,7 @@ func (x *ListStore) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) { | |||||
| 940 | // the model will sort using this function. | 940 | // the model will sort using this function. | ||
| 941 | func (x *ListStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 941 | func (x *ListStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 942 | 942 | ||||
| 943 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 943 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 944 | 944 | ||||
| 945 | } | 945 | } | ||
| 946 | 946 | ||||
M v4/gtk/gtkmaplistmodel.go +2 -2
| @@ -84,7 +84,7 @@ var xNewMapListModel func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 84 | 84 | func NewMapListModel(ModelVar gio.ListModel, MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *MapListModel { | |
| 85 | 85 | var cls *MapListModel | |
| 86 | 86 | ||
| 87 | - | cret := xNewMapListModel(ModelVar.GoPointer(), glib.NewCallback(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 87 | + | cret := xNewMapListModel(ModelVar.GoPointer(), glib.NewCallbackNullable(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 88 | 88 | ||
| 89 | 89 | if cret == 0 { | |
| 90 | 90 | return nil | |
| @@ -135,7 +135,7 @@ var xMapListModelSetMapFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 135 | 135 | // function returns items of the appropriate type. | |
| 136 | 136 | func (x *MapListModel) SetMapFunc(MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 137 | 137 | ||
| 138 | - | xMapListModelSetMapFunc(x.GoPointer(), glib.NewCallback(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 138 | + | xMapListModelSetMapFunc(x.GoPointer(), glib.NewCallbackNullable(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | |
| 139 | 139 | ||
| 140 | 140 | } | |
| 141 | 141 | ||
| @@ -84,7 +84,7 @@ var xNewMapListModel func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 84 | func NewMapListModel(ModelVar gio.ListModel, MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *MapListModel { | 84 | func NewMapListModel(ModelVar gio.ListModel, MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) *MapListModel { | ||
| 85 | var cls *MapListModel | 85 | var cls *MapListModel | ||
| 86 | 86 | ||||
| 87 | - | cret := xNewMapListModel(ModelVar.GoPointer(), glib.NewCallback(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 87 | + | cret := xNewMapListModel(ModelVar.GoPointer(), glib.NewCallbackNullable(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) |
| 88 | 88 | ||||
| 89 | if cret == 0 { | 89 | if cret == 0 { | ||
| 90 | return nil | 90 | return nil | ||
| @@ -135,7 +135,7 @@ var xMapListModelSetMapFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 135 | // function returns items of the appropriate type. | 135 | // function returns items of the appropriate type. | ||
| 136 | func (x *MapListModel) SetMapFunc(MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 136 | func (x *MapListModel) SetMapFunc(MapFuncVar *MapListModelMapFunc, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 137 | 137 | ||||
| 138 | - | xMapListModelSetMapFunc(x.GoPointer(), glib.NewCallback(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) | 138 | + | xMapListModelSetMapFunc(x.GoPointer(), glib.NewCallbackNullable(MapFuncVar), UserDataVar, glib.NewCallback(UserDestroyVar)) |
| 139 | 139 | ||||
| 140 | } | 140 | } | ||
| 141 | 141 | ||||
M v4/gtk/gtkmenubutton.go +1 -1
| @@ -299,7 +299,7 @@ var xMenuButtonSetCreatePopupFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 299 | 299 | // @menu_button. Instead, this can be done manually in @func. | |
| 300 | 300 | func (x *MenuButton) SetCreatePopupFunc(FuncVar *MenuButtonCreatePopupFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | |
| 301 | 301 | ||
| 302 | - | xMenuButtonSetCreatePopupFunc(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyNotifyVar)) | |
| 302 | + | xMenuButtonSetCreatePopupFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyNotifyVar)) | |
| 303 | 303 | ||
| 304 | 304 | } | |
| 305 | 305 | ||
| @@ -299,7 +299,7 @@ var xMenuButtonSetCreatePopupFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 299 | // @menu_button. Instead, this can be done manually in @func. | 299 | // @menu_button. Instead, this can be done manually in @func. | ||
| 300 | func (x *MenuButton) SetCreatePopupFunc(FuncVar *MenuButtonCreatePopupFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | 300 | func (x *MenuButton) SetCreatePopupFunc(FuncVar *MenuButtonCreatePopupFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | ||
| 301 | 301 | ||||
| 302 | - | xMenuButtonSetCreatePopupFunc(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyNotifyVar)) | 302 | + | xMenuButtonSetCreatePopupFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyNotifyVar)) |
| 303 | 303 | ||||
| 304 | } | 304 | } | ||
| 305 | 305 | ||||
M v4/gtk/gtkscale.go +1 -1
| @@ -310,7 +310,7 @@ var xScaleSetFormatValueFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 310 | 310 | // [property@GtkScale:digits] property. | |
| 311 | 311 | func (x *Scale) SetFormatValueFunc(FuncVar *ScaleFormatValueFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | |
| 312 | 312 | ||
| 313 | - | xScaleSetFormatValueFunc(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyNotifyVar)) | |
| 313 | + | xScaleSetFormatValueFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyNotifyVar)) | |
| 314 | 314 | ||
| 315 | 315 | } | |
| 316 | 316 | ||
| @@ -310,7 +310,7 @@ var xScaleSetFormatValueFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 310 | // [property@GtkScale:digits] property. | 310 | // [property@GtkScale:digits] property. | ||
| 311 | func (x *Scale) SetFormatValueFunc(FuncVar *ScaleFormatValueFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | 311 | func (x *Scale) SetFormatValueFunc(FuncVar *ScaleFormatValueFunc, UserDataVar uintptr, DestroyNotifyVar *glib.DestroyNotify) { | ||
| 312 | 312 | ||||
| 313 | - | xScaleSetFormatValueFunc(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyNotifyVar)) | 313 | + | xScaleSetFormatValueFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyNotifyVar)) |
| 314 | 314 | ||||
| 315 | } | 315 | } | ||
| 316 | 316 | ||||
M v4/gtk/gtkshortcutaction.go +1 -1
| @@ -162,7 +162,7 @@ var xNewCallbackAction func(uintptr, uintptr, uintptr) uintptr | |||
| 162 | 162 | func NewCallbackAction(CallbackVar *ShortcutFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAction { | |
| 163 | 163 | var cls *CallbackAction | |
| 164 | 164 | ||
| 165 | - | cret := xNewCallbackAction(glib.NewCallback(CallbackVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 165 | + | cret := xNewCallbackAction(glib.NewCallbackNullable(CallbackVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 166 | 166 | ||
| 167 | 167 | if cret == 0 { | |
| 168 | 168 | return nil | |
| @@ -162,7 +162,7 @@ var xNewCallbackAction func(uintptr, uintptr, uintptr) uintptr | |||||
| 162 | func NewCallbackAction(CallbackVar *ShortcutFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAction { | 162 | func NewCallbackAction(CallbackVar *ShortcutFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) *CallbackAction { | ||
| 163 | var cls *CallbackAction | 163 | var cls *CallbackAction | ||
| 164 | 164 | ||||
| 165 | - | cret := xNewCallbackAction(glib.NewCallback(CallbackVar), DataVar, glib.NewCallback(DestroyVar)) | 165 | + | cret := xNewCallbackAction(glib.NewCallbackNullable(CallbackVar), DataVar, glib.NewCallback(DestroyVar)) |
| 166 | 166 | ||||
| 167 | if cret == 0 { | 167 | if cret == 0 { | ||
| 168 | return nil | 168 | return nil | ||
M v4/gtk/gtkshow.go +1 -1
| @@ -30,7 +30,7 @@ var xShowUriFull func(uintptr, string, uint32, uintptr, uintptr, uintptr) | |||
| 30 | 30 | // necessary for sandbox helpers to parent their dialogs properly. | |
| 31 | 31 | func ShowUriFull(ParentVar *Window, UriVar string, TimestampVar uint32, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 32 | 32 | ||
| 33 | - | xShowUriFull(ParentVar.GoPointer(), UriVar, TimestampVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | |
| 33 | + | xShowUriFull(ParentVar.GoPointer(), UriVar, TimestampVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 34 | 34 | ||
| 35 | 35 | } | |
| 36 | 36 | ||
| @@ -30,7 +30,7 @@ var xShowUriFull func(uintptr, string, uint32, uintptr, uintptr, uintptr) | |||||
| 30 | // necessary for sandbox helpers to parent their dialogs properly. | 30 | // necessary for sandbox helpers to parent their dialogs properly. | ||
| 31 | func ShowUriFull(ParentVar *Window, UriVar string, TimestampVar uint32, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 31 | func ShowUriFull(ParentVar *Window, UriVar string, TimestampVar uint32, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 32 | 32 | ||||
| 33 | - | xShowUriFull(ParentVar.GoPointer(), UriVar, TimestampVar, CancellableVar.GoPointer(), glib.NewCallback(CallbackVar), UserDataVar) | 33 | + | xShowUriFull(ParentVar.GoPointer(), UriVar, TimestampVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) |
| 34 | 34 | ||||
| 35 | } | 35 | } | ||
| 36 | 36 | ||||
M v4/gtk/gtktreemodelfilter.go +2 -2
| @@ -227,7 +227,7 @@ var xTreeModelFilterSetModifyFunc func(uintptr, int, []types.GType, uintptr, uin | |||
| 227 | 227 | // can only be called once for a given filter model. | |
| 228 | 228 | func (x *TreeModelFilter) SetModifyFunc(NColumnsVar int, TypesVar []types.GType, FuncVar *TreeModelFilterModifyFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 229 | 229 | ||
| 230 | - | xTreeModelFilterSetModifyFunc(x.GoPointer(), NColumnsVar, TypesVar, glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 230 | + | xTreeModelFilterSetModifyFunc(x.GoPointer(), NColumnsVar, TypesVar, glib.NewCallback(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 231 | 231 | ||
| 232 | 232 | } | |
| 233 | 233 | ||
| @@ -289,7 +289,7 @@ var xTreeModelFilterSetVisibleFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 289 | 289 | // once for a given filter model. | |
| 290 | 290 | func (x *TreeModelFilter) SetVisibleFunc(FuncVar *TreeModelFilterVisibleFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 291 | 291 | ||
| 292 | - | xTreeModelFilterSetVisibleFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 292 | + | xTreeModelFilterSetVisibleFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 293 | 293 | ||
| 294 | 294 | } | |
| 295 | 295 | ||
| @@ -227,7 +227,7 @@ var xTreeModelFilterSetModifyFunc func(uintptr, int, []types.GType, uintptr, uin | |||||
| 227 | // can only be called once for a given filter model. | 227 | // can only be called once for a given filter model. | ||
| 228 | func (x *TreeModelFilter) SetModifyFunc(NColumnsVar int, TypesVar []types.GType, FuncVar *TreeModelFilterModifyFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 228 | func (x *TreeModelFilter) SetModifyFunc(NColumnsVar int, TypesVar []types.GType, FuncVar *TreeModelFilterModifyFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 229 | 229 | ||||
| 230 | - | xTreeModelFilterSetModifyFunc(x.GoPointer(), NColumnsVar, TypesVar, glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | 230 | + | xTreeModelFilterSetModifyFunc(x.GoPointer(), NColumnsVar, TypesVar, glib.NewCallback(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 231 | 231 | ||||
| 232 | } | 232 | } | ||
| 233 | 233 | ||||
| @@ -289,7 +289,7 @@ var xTreeModelFilterSetVisibleFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 289 | // once for a given filter model. | 289 | // once for a given filter model. | ||
| 290 | func (x *TreeModelFilter) SetVisibleFunc(FuncVar *TreeModelFilterVisibleFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 290 | func (x *TreeModelFilter) SetVisibleFunc(FuncVar *TreeModelFilterVisibleFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 291 | 291 | ||||
| 292 | - | xTreeModelFilterSetVisibleFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | 292 | + | xTreeModelFilterSetVisibleFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 293 | 293 | ||||
| 294 | } | 294 | } | ||
| 295 | 295 | ||||
M v4/gtk/gtktreemodelsort.go +2 -2
| @@ -667,7 +667,7 @@ func (x *TreeModelSort) HasDefaultSortFunc() bool { | |||
| 667 | 667 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | |
| 668 | 668 | func (x *TreeModelSort) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 669 | 669 | ||
| 670 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 670 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 671 | 671 | ||
| 672 | 672 | } | |
| 673 | 673 | ||
| @@ -691,7 +691,7 @@ func (x *TreeModelSort) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) | |||
| 691 | 691 | // the model will sort using this function. | |
| 692 | 692 | func (x *TreeModelSort) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 693 | 693 | ||
| 694 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 694 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 695 | 695 | ||
| 696 | 696 | } | |
| 697 | 697 | ||
| @@ -667,7 +667,7 @@ func (x *TreeModelSort) HasDefaultSortFunc() bool { | |||||
| 667 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | 667 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | ||
| 668 | func (x *TreeModelSort) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 668 | func (x *TreeModelSort) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 669 | 669 | ||||
| 670 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 670 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 671 | 671 | ||||
| 672 | } | 672 | } | ||
| 673 | 673 | ||||
| @@ -691,7 +691,7 @@ func (x *TreeModelSort) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) | |||||
| 691 | // the model will sort using this function. | 691 | // the model will sort using this function. | ||
| 692 | func (x *TreeModelSort) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 692 | func (x *TreeModelSort) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 693 | 693 | ||||
| 694 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 694 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 695 | 695 | ||||
| 696 | } | 696 | } | ||
| 697 | 697 | ||||
M v4/gtk/gtktreeselection.go +1 -1
| @@ -237,7 +237,7 @@ var xTreeSelectionSetSelectFunction func(uintptr, uintptr, uintptr, uintptr) | |||
| 237 | 237 | // if the state of the node should be left unchanged. | |
| 238 | 238 | func (x *TreeSelection) SetSelectFunction(FuncVar *TreeSelectionFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 239 | 239 | ||
| 240 | - | xTreeSelectionSetSelectFunction(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 240 | + | xTreeSelectionSetSelectFunction(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 241 | 241 | ||
| 242 | 242 | } | |
| 243 | 243 | ||
| @@ -237,7 +237,7 @@ var xTreeSelectionSetSelectFunction func(uintptr, uintptr, uintptr, uintptr) | |||||
| 237 | // if the state of the node should be left unchanged. | 237 | // if the state of the node should be left unchanged. | ||
| 238 | func (x *TreeSelection) SetSelectFunction(FuncVar *TreeSelectionFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 238 | func (x *TreeSelection) SetSelectFunction(FuncVar *TreeSelectionFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 239 | 239 | ||||
| 240 | - | xTreeSelectionSetSelectFunction(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | 240 | + | xTreeSelectionSetSelectFunction(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallback(DestroyVar)) |
| 241 | 241 | ||||
| 242 | } | 242 | } | ||
| 243 | 243 | ||||
M v4/gtk/gtktreesortable.go +2 -2
| @@ -102,7 +102,7 @@ func (x *TreeSortableBase) HasDefaultSortFunc() bool { | |||
| 102 | 102 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | |
| 103 | 103 | func (x *TreeSortableBase) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 104 | 104 | ||
| 105 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 105 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 106 | 106 | ||
| 107 | 107 | } | |
| 108 | 108 | ||
| @@ -126,7 +126,7 @@ func (x *TreeSortableBase) SetSortColumnId(SortColumnIdVar int, OrderVar SortTyp | |||
| 126 | 126 | // the model will sort using this function. | |
| 127 | 127 | func (x *TreeSortableBase) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 128 | 128 | ||
| 129 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 129 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 130 | 130 | ||
| 131 | 131 | } | |
| 132 | 132 | ||
| @@ -102,7 +102,7 @@ func (x *TreeSortableBase) HasDefaultSortFunc() bool { | |||||
| 102 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | 102 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | ||
| 103 | func (x *TreeSortableBase) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 103 | func (x *TreeSortableBase) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 104 | 104 | ||||
| 105 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 105 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 106 | 106 | ||||
| 107 | } | 107 | } | ||
| 108 | 108 | ||||
| @@ -126,7 +126,7 @@ func (x *TreeSortableBase) SetSortColumnId(SortColumnIdVar int, OrderVar SortTyp | |||||
| 126 | // the model will sort using this function. | 126 | // the model will sort using this function. | ||
| 127 | func (x *TreeSortableBase) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 127 | func (x *TreeSortableBase) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 128 | 128 | ||||
| 129 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 129 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 130 | 130 | ||||
| 131 | } | 131 | } | ||
| 132 | 132 | ||||
M v4/gtk/gtktreestore.go +2 -2
| @@ -827,7 +827,7 @@ func (x *TreeStore) HasDefaultSortFunc() bool { | |||
| 827 | 827 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | |
| 828 | 828 | func (x *TreeStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 829 | 829 | ||
| 830 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 830 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 831 | 831 | ||
| 832 | 832 | } | |
| 833 | 833 | ||
| @@ -851,7 +851,7 @@ func (x *TreeStore) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) { | |||
| 851 | 851 | // the model will sort using this function. | |
| 852 | 852 | func (x *TreeStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 853 | 853 | ||
| 854 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 854 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 855 | 855 | ||
| 856 | 856 | } | |
| 857 | 857 | ||
| @@ -827,7 +827,7 @@ func (x *TreeStore) HasDefaultSortFunc() bool { | |||||
| 827 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | 827 | // is %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted. | ||
| 828 | func (x *TreeStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 828 | func (x *TreeStore) SetDefaultSortFunc(SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 829 | 829 | ||||
| 830 | - | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 830 | + | XGtkTreeSortableSetDefaultSortFunc(x.GoPointer(), glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 831 | 831 | ||||
| 832 | } | 832 | } | ||
| 833 | 833 | ||||
| @@ -851,7 +851,7 @@ func (x *TreeStore) SetSortColumnId(SortColumnIdVar int, OrderVar SortType) { | |||||
| 851 | // the model will sort using this function. | 851 | // the model will sort using this function. | ||
| 852 | func (x *TreeStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 852 | func (x *TreeStore) SetSortFunc(SortColumnIdVar int, SortFuncVar *TreeIterCompareFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 853 | 853 | ||||
| 854 | - | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 854 | + | XGtkTreeSortableSetSortFunc(x.GoPointer(), SortColumnIdVar, glib.NewCallback(SortFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 855 | 855 | ||||
| 856 | } | 856 | } | ||
| 857 | 857 | ||||
M v4/gtk/gtktreeview.go +3 -3
| @@ -958,7 +958,7 @@ var xTreeViewSetColumnDragFunction func(uintptr, uintptr, uintptr, uintptr) | |||
| 958 | 958 | // dropped everywhere. | |
| 959 | 959 | func (x *TreeView) SetColumnDragFunction(FuncVar *TreeViewColumnDropFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 960 | 960 | ||
| 961 | - | xTreeViewSetColumnDragFunction(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | |
| 961 | + | xTreeViewSetColumnDragFunction(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 962 | 962 | ||
| 963 | 963 | } | |
| 964 | 964 | ||
| @@ -1166,7 +1166,7 @@ var xTreeViewSetRowSeparatorFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 1166 | 1166 | // function is %NULL, no separators are drawn. This is the default value. | |
| 1167 | 1167 | func (x *TreeView) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 1168 | 1168 | ||
| 1169 | - | xTreeViewSetRowSeparatorFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | |
| 1169 | + | xTreeViewSetRowSeparatorFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) | |
| 1170 | 1170 | ||
| 1171 | 1171 | } | |
| 1172 | 1172 | ||
| @@ -1218,7 +1218,7 @@ var xTreeViewSetSearchEqualFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 1218 | 1218 | // `GtkTreeView`SearchEqualFunc returns %FALSE on matches. | |
| 1219 | 1219 | func (x *TreeView) SetSearchEqualFunc(SearchEqualFuncVar *TreeViewSearchEqualFunc, SearchUserDataVar uintptr, SearchDestroyVar *glib.DestroyNotify) { | |
| 1220 | 1220 | ||
| 1221 | - | xTreeViewSetSearchEqualFunc(x.GoPointer(), glib.NewCallback(SearchEqualFuncVar), SearchUserDataVar, glib.NewCallback(SearchDestroyVar)) | |
| 1221 | + | xTreeViewSetSearchEqualFunc(x.GoPointer(), glib.NewCallback(SearchEqualFuncVar), SearchUserDataVar, glib.NewCallbackNullable(SearchDestroyVar)) | |
| 1222 | 1222 | ||
| 1223 | 1223 | } | |
| 1224 | 1224 | ||
| @@ -958,7 +958,7 @@ var xTreeViewSetColumnDragFunction func(uintptr, uintptr, uintptr, uintptr) | |||||
| 958 | // dropped everywhere. | 958 | // dropped everywhere. | ||
| 959 | func (x *TreeView) SetColumnDragFunction(FuncVar *TreeViewColumnDropFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 959 | func (x *TreeView) SetColumnDragFunction(FuncVar *TreeViewColumnDropFunc, UserDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 960 | 960 | ||||
| 961 | - | xTreeViewSetColumnDragFunction(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallback(DestroyVar)) | 961 | + | xTreeViewSetColumnDragFunction(x.GoPointer(), glib.NewCallbackNullable(FuncVar), UserDataVar, glib.NewCallbackNullable(DestroyVar)) |
| 962 | 962 | ||||
| 963 | } | 963 | } | ||
| 964 | 964 | ||||
| @@ -1166,7 +1166,7 @@ var xTreeViewSetRowSeparatorFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1166 | // function is %NULL, no separators are drawn. This is the default value. | 1166 | // function is %NULL, no separators are drawn. This is the default value. | ||
| 1167 | func (x *TreeView) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | 1167 | func (x *TreeView) SetRowSeparatorFunc(FuncVar *TreeViewRowSeparatorFunc, DataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 1168 | 1168 | ||||
| 1169 | - | xTreeViewSetRowSeparatorFunc(x.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DestroyVar)) | 1169 | + | xTreeViewSetRowSeparatorFunc(x.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DestroyVar)) |
| 1170 | 1170 | ||||
| 1171 | } | 1171 | } | ||
| 1172 | 1172 | ||||
| @@ -1218,7 +1218,7 @@ var xTreeViewSetSearchEqualFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1218 | // `GtkTreeView`SearchEqualFunc returns %FALSE on matches. | 1218 | // `GtkTreeView`SearchEqualFunc returns %FALSE on matches. | ||
| 1219 | func (x *TreeView) SetSearchEqualFunc(SearchEqualFuncVar *TreeViewSearchEqualFunc, SearchUserDataVar uintptr, SearchDestroyVar *glib.DestroyNotify) { | 1219 | func (x *TreeView) SetSearchEqualFunc(SearchEqualFuncVar *TreeViewSearchEqualFunc, SearchUserDataVar uintptr, SearchDestroyVar *glib.DestroyNotify) { | ||
| 1220 | 1220 | ||||
| 1221 | - | xTreeViewSetSearchEqualFunc(x.GoPointer(), glib.NewCallback(SearchEqualFuncVar), SearchUserDataVar, glib.NewCallback(SearchDestroyVar)) | 1221 | + | xTreeViewSetSearchEqualFunc(x.GoPointer(), glib.NewCallback(SearchEqualFuncVar), SearchUserDataVar, glib.NewCallbackNullable(SearchDestroyVar)) |
| 1222 | 1222 | ||||
| 1223 | } | 1223 | } | ||
| 1224 | 1224 | ||||
M v4/gtk/gtktreeviewcolumn.go +1 -1
| @@ -522,7 +522,7 @@ var xTreeViewColumnSetCellDataFunc func(uintptr, uintptr, uintptr, uintptr, uint | |||
| 522 | 522 | // older one. | |
| 523 | 523 | func (x *TreeViewColumn) SetCellDataFunc(CellRendererVar *CellRenderer, FuncVar *TreeCellDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | |
| 524 | 524 | ||
| 525 | - | xTreeViewColumnSetCellDataFunc(x.GoPointer(), CellRendererVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 525 | + | xTreeViewColumnSetCellDataFunc(x.GoPointer(), CellRendererVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | |
| 526 | 526 | ||
| 527 | 527 | } | |
| 528 | 528 | ||
| @@ -522,7 +522,7 @@ var xTreeViewColumnSetCellDataFunc func(uintptr, uintptr, uintptr, uintptr, uint | |||||
| 522 | // older one. | 522 | // older one. | ||
| 523 | func (x *TreeViewColumn) SetCellDataFunc(CellRendererVar *CellRenderer, FuncVar *TreeCellDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | 523 | func (x *TreeViewColumn) SetCellDataFunc(CellRendererVar *CellRenderer, FuncVar *TreeCellDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) { | ||
| 524 | 524 | ||||
| 525 | - | xTreeViewColumnSetCellDataFunc(x.GoPointer(), CellRendererVar.GoPointer(), glib.NewCallback(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) | 525 | + | xTreeViewColumnSetCellDataFunc(x.GoPointer(), CellRendererVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar)) |
| 526 | 526 | ||||
| 527 | } | 527 | } | ||
| 528 | 528 | ||||
M v4/pango/pango-attributes.go +1 -1
| @@ -1198,7 +1198,7 @@ var xAttrShapeNewWithData func(*Rectangle, *Rectangle, uintptr, uintptr, uintptr | |||
| 1198 | 1198 | // rendering the glyph. | |
| 1199 | 1199 | func AttrShapeNewWithData(InkRectVar *Rectangle, LogicalRectVar *Rectangle, DataVar uintptr, CopyFuncVar *AttrDataCopyFunc, DestroyFuncVar *glib.DestroyNotify) *Attribute { | |
| 1200 | 1200 | ||
| 1201 | - | cret := xAttrShapeNewWithData(InkRectVar, LogicalRectVar, DataVar, glib.NewCallback(CopyFuncVar), glib.NewCallback(DestroyFuncVar)) | |
| 1201 | + | cret := xAttrShapeNewWithData(InkRectVar, LogicalRectVar, DataVar, glib.NewCallbackNullable(CopyFuncVar), glib.NewCallbackNullable(DestroyFuncVar)) | |
| 1202 | 1202 | return cret | |
| 1203 | 1203 | } | |
| 1204 | 1204 | ||
| @@ -1198,7 +1198,7 @@ var xAttrShapeNewWithData func(*Rectangle, *Rectangle, uintptr, uintptr, uintptr | |||||
| 1198 | // rendering the glyph. | 1198 | // rendering the glyph. | ||
| 1199 | func AttrShapeNewWithData(InkRectVar *Rectangle, LogicalRectVar *Rectangle, DataVar uintptr, CopyFuncVar *AttrDataCopyFunc, DestroyFuncVar *glib.DestroyNotify) *Attribute { | 1199 | func AttrShapeNewWithData(InkRectVar *Rectangle, LogicalRectVar *Rectangle, DataVar uintptr, CopyFuncVar *AttrDataCopyFunc, DestroyFuncVar *glib.DestroyNotify) *Attribute { | ||
| 1200 | 1200 | ||||
| 1201 | - | cret := xAttrShapeNewWithData(InkRectVar, LogicalRectVar, DataVar, glib.NewCallback(CopyFuncVar), glib.NewCallback(DestroyFuncVar)) | 1201 | + | cret := xAttrShapeNewWithData(InkRectVar, LogicalRectVar, DataVar, glib.NewCallbackNullable(CopyFuncVar), glib.NewCallbackNullable(DestroyFuncVar)) |
| 1202 | return cret | 1202 | return cret | ||
| 1203 | } | 1203 | } | ||
| 1204 | 1204 | ||||
M v4/pangocairo/pangocairo.go +1 -1
| @@ -236,7 +236,7 @@ var xContextSetShapeRenderer func(uintptr, uintptr, uintptr, uintptr) | |||
| 236 | 236 | // See `PangoCairoShapeRendererFunc` for details. | |
| 237 | 237 | func ContextSetShapeRenderer(ContextVar *pango.Context, FuncVar *ShapeRendererFunc, DataVar uintptr, DnotifyVar *glib.DestroyNotify) { | |
| 238 | 238 | ||
| 239 | - | xContextSetShapeRenderer(ContextVar.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DnotifyVar)) | |
| 239 | + | xContextSetShapeRenderer(ContextVar.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DnotifyVar)) | |
| 240 | 240 | ||
| 241 | 241 | } | |
| 242 | 242 | ||
| @@ -236,7 +236,7 @@ var xContextSetShapeRenderer func(uintptr, uintptr, uintptr, uintptr) | |||||
| 236 | // See `PangoCairoShapeRendererFunc` for details. | 236 | // See `PangoCairoShapeRendererFunc` for details. | ||
| 237 | func ContextSetShapeRenderer(ContextVar *pango.Context, FuncVar *ShapeRendererFunc, DataVar uintptr, DnotifyVar *glib.DestroyNotify) { | 237 | func ContextSetShapeRenderer(ContextVar *pango.Context, FuncVar *ShapeRendererFunc, DataVar uintptr, DnotifyVar *glib.DestroyNotify) { | ||
| 238 | 238 | ||||
| 239 | - | xContextSetShapeRenderer(ContextVar.GoPointer(), glib.NewCallback(FuncVar), DataVar, glib.NewCallback(DnotifyVar)) | 239 | + | xContextSetShapeRenderer(ContextVar.GoPointer(), glib.NewCallbackNullable(FuncVar), DataVar, glib.NewCallbackNullable(DnotifyVar)) |
| 240 | 240 | ||||
| 241 | } | 241 | } | ||
| 242 | 242 | ||||