glib2 4.3.3 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbgobj_object.c +16 -1
- data/glib2.gemspec +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz: '
|
|
3
|
+
metadata.gz: 88d803bb745051ea6342dd5be21480fca2e3106760f8f8ee7d8b33f120fac881
|
|
4
|
+
data.tar.gz: '09a83e5ebe631b99be3baad79ada775b2ce4bb58e6775081f07d9f8ed64fbbb9'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e523734724f2b92fab2c8d39eb9260287f580d1515fc668fb5f0fbec0c5a2aec4b00a4453170c9ee7c353f7e53581a2055b78cca70413a1c76f1049d801b6b9b
|
|
7
|
+
data.tar.gz: d0da3d278112ae08e96bf6cbc895860a5cbcc3a53f18137c12973824f36573bfa7d09f36020ba82a1e75a2a0c33259ccc8a6b8af53c59edce554d87ceb3daec2
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbgobj_object.c
CHANGED
|
@@ -284,8 +284,23 @@ gobj_mark(gpointer ptr)
|
|
|
284
284
|
for (i = 0; i < n_properties; i++) {
|
|
285
285
|
GParamSpec* pspec = properties[i];
|
|
286
286
|
GType value_type = G_PARAM_SPEC_VALUE_TYPE(pspec);
|
|
287
|
-
if (
|
|
287
|
+
if (!G_TYPE_IS_OBJECT(value_type)) continue;
|
|
288
288
|
if (!(pspec->flags & G_PARAM_READABLE)) continue;
|
|
289
|
+
if (G_TYPE_IS_OBJECT(pspec->owner_type)) {
|
|
290
|
+
const RGObjClassInfo *owner_cinfo =
|
|
291
|
+
rbgobj_class_info_lookup_by_gtype(pspec->owner_type);
|
|
292
|
+
if (owner_cinfo && (owner_cinfo->flags & RBGOBJ_DEFINED_BY_RUBY)) {
|
|
293
|
+
/* We can't get properties of a GObject defined by Ruby
|
|
294
|
+
* in GC becaue we need to call a Ruby method to get a
|
|
295
|
+
* property. It may allocates some objects in GC. It's
|
|
296
|
+
* not allowed.
|
|
297
|
+
*
|
|
298
|
+
* Anyway, we don't need to mark properties here
|
|
299
|
+
* because properties must be referred from a GObject
|
|
300
|
+
* defined by Ruby. */
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
289
304
|
/* FIXME: exclude types that doesn't have identity. */
|
|
290
305
|
|
|
291
306
|
{
|
data/glib2.gemspec
CHANGED
|
@@ -58,6 +58,7 @@ Gem::Specification.new do |s|
|
|
|
58
58
|
["gentoo_linux", "dev-libs/glib"],
|
|
59
59
|
["homebrew", "glib"],
|
|
60
60
|
["macports", "glib2"],
|
|
61
|
+
["msys2", "glib2"],
|
|
61
62
|
["rhel", "pkgconfig(gobject-2.0)"],
|
|
62
63
|
].each do |platform, package|
|
|
63
64
|
s.requirements << "system: gobject-2.0>=2.56.0: #{platform}: #{package}"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glib2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Ruby-GNOME Project Team
|
|
@@ -224,6 +224,7 @@ requirements:
|
|
|
224
224
|
- 'system: gobject-2.0>=2.56.0: gentoo_linux: dev-libs/glib'
|
|
225
225
|
- 'system: gobject-2.0>=2.56.0: homebrew: glib'
|
|
226
226
|
- 'system: gobject-2.0>=2.56.0: macports: glib2'
|
|
227
|
+
- 'system: gobject-2.0>=2.56.0: msys2: glib2'
|
|
227
228
|
- 'system: gobject-2.0>=2.56.0: rhel: pkgconfig(gobject-2.0)'
|
|
228
229
|
rubygems_version: 3.6.9
|
|
229
230
|
specification_version: 4
|