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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d685688463d842b9b475989f09f1fdc21e0a4ba28480a0d121762ce3ea503caf
4
- data.tar.gz: '0899185f2c340323470939e3c1a5a7c1c60991887732d8d16126453650579bb2'
3
+ metadata.gz: 88d803bb745051ea6342dd5be21480fca2e3106760f8f8ee7d8b33f120fac881
4
+ data.tar.gz: '09a83e5ebe631b99be3baad79ada775b2ce4bb58e6775081f07d9f8ed64fbbb9'
5
5
  SHA512:
6
- metadata.gz: 0c039559015d8b2024942cc40f4a91adaa1080ca9cb1a6fc2aecb8bad0c385024136cdcc8966f9a590e04ba361a133955b8625a42cbd8182b64d62912cf71c1d
7
- data.tar.gz: 80ff50495513be63de50bc8ab0093cf071405260ec67b88b5cc4bb07d855b4ca64040ed31a52bfaa90497d3a5d44edbb542f84ee2d9eb28a6e22628c939c8710
6
+ metadata.gz: e523734724f2b92fab2c8d39eb9260287f580d1515fc668fb5f0fbec0c5a2aec4b00a4453170c9ee7c353f7e53581a2055b78cca70413a1c76f1049d801b6b9b
7
+ data.tar.gz: d0da3d278112ae08e96bf6cbc895860a5cbcc3a53f18137c12973824f36573bfa7d09f36020ba82a1e75a2a0c33259ccc8a6b8af53c59edce554d87ceb3daec2
data/ext/glib2/rbglib.h CHANGED
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
33
33
 
34
34
  #define RBGLIB_MAJOR_VERSION 4
35
35
  #define RBGLIB_MINOR_VERSION 3
36
- #define RBGLIB_MICRO_VERSION 3
36
+ #define RBGLIB_MICRO_VERSION 4
37
37
 
38
38
  /* For Ruby < 3.0 */
39
39
  #ifndef RB_LL2NUM
@@ -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 (G_TYPE_FUNDAMENTAL(value_type) != G_TYPE_OBJECT) continue;
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.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