gobject-introspection 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8914636fb145b0959d712285ef5261a9ffc99be42b01382050e088c107c19d7b
|
4
|
+
data.tar.gz: c23ce8d97e7f24081e4d2f92f511023202933a4c56180157d52b0301689c004f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80230a3d9d7d72120f354328bfb9e558bbd27aa73e73dca1ea22060392b3106a07f217159a53d692a8f7c059f29a26000ef19351d9fb677d872e8ae0278969b2
|
7
|
+
data.tar.gz: c935ec3630dbf59da4faa5cf2f7d97e5f9e7cdffcc6dd1d6d4f8aad4ddfb515f5b019a2111276332b56edf6360f763435dba8cf2fb0798ee1427c185ebef4411
|
@@ -105,7 +105,7 @@ rb_gi_arguments_in_init_arg_ruby_callback(RBGIArguments *args,
|
|
105
105
|
callback = rb_gi_callback_new(callback_info, NULL);
|
106
106
|
g_base_info_unref(callback_info);
|
107
107
|
g_base_info_unref(type_info);
|
108
|
-
callback_argument->v_pointer = callback->
|
108
|
+
callback_argument->v_pointer = callback->closure_native_address;
|
109
109
|
}
|
110
110
|
|
111
111
|
if (closure_argument) {
|
@@ -1205,7 +1205,6 @@ rb_gi_arguments_in_init_arg_ruby_interface(RBGIArguments *args,
|
|
1205
1205
|
if (RVAL2CBOOL(rb_obj_is_kind_of(args->rb_receiver,
|
1206
1206
|
rbg_cGLibObject()))) {
|
1207
1207
|
g_rclosure_attach_gobject(rclosure, args->rb_receiver);
|
1208
|
-
g_closure_unref(rclosure);
|
1209
1208
|
} else {
|
1210
1209
|
g_rclosure_attach(rclosure, args->rb_receiver);
|
1211
1210
|
}
|
@@ -29,6 +29,9 @@
|
|
29
29
|
(cif), \
|
30
30
|
(callback), \
|
31
31
|
(user_data))
|
32
|
+
# define g_callable_info_get_closure_native_address(callable_info, \
|
33
|
+
closure) \
|
34
|
+
(closure)
|
32
35
|
# define g_callable_info_destroy_closure(callable_info, \
|
33
36
|
closure) \
|
34
37
|
g_callable_info_free_closure((callable_info), \
|
@@ -204,6 +207,9 @@ rb_gi_callback_new(GICallbackInfo *callback_info,
|
|
204
207
|
&(callback->cif),
|
205
208
|
rb_gi_ffi_closure_callback,
|
206
209
|
callback);
|
210
|
+
callback->closure_native_address =
|
211
|
+
g_callable_info_get_closure_native_address(callback->callback_info,
|
212
|
+
callback->closure);
|
207
213
|
return callback;
|
208
214
|
}
|
209
215
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2012-
|
3
|
+
* Copyright (C) 2012-2022 Ruby-GNOME Project Team
|
4
4
|
*
|
5
5
|
* This library is free software; you can redistribute it and/or
|
6
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -183,7 +183,7 @@ rg_s_implement_virtual_function(G_GNUC_UNUSED VALUE klass,
|
|
183
183
|
}
|
184
184
|
offset = g_field_info_get_offset(field_info);
|
185
185
|
method_address = G_STRUCT_MEMBER_P(vtable_struct, offset);
|
186
|
-
*method_address = callback->
|
186
|
+
*method_address = callback->closure_native_address;
|
187
187
|
g_type_class_unref(implementor_struct);
|
188
188
|
}
|
189
189
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2019-
|
3
|
+
* Copyright (C) 2019-2022 Ruby-GNOME Project Team
|
4
4
|
*
|
5
5
|
* This library is free software; you can redistribute it and/or
|
6
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -26,6 +26,7 @@ typedef struct RBGICallback_ {
|
|
26
26
|
gchar *method_name;
|
27
27
|
ffi_cif cif;
|
28
28
|
ffi_closure *closure;
|
29
|
+
gpointer *closure_native_address;
|
29
30
|
} RBGICallback;
|
30
31
|
|
31
32
|
G_GNUC_INTERNAL void
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobject-introspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.
|
19
|
+
version: 4.0.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0.
|
26
|
+
version: 4.0.2
|
27
27
|
description: Ruby/GObjectIntrospection provides bindings of GObject Introspection
|
28
28
|
and a loader module that can generate dynamically Ruby bindings of any GObject C
|
29
29
|
libraries
|