glib2 4.3.3 → 4.3.5

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: c5c4dbd8d78e9ca81964880ad4a5b730927a09b4d3fbfc0c248bda28fb541d01
4
+ data.tar.gz: 97a2ea585853750047aae5a1fabe559a1d309e8f66137381129972368540c23c
5
5
  SHA512:
6
- metadata.gz: 0c039559015d8b2024942cc40f4a91adaa1080ca9cb1a6fc2aecb8bad0c385024136cdcc8966f9a590e04ba361a133955b8625a42cbd8182b64d62912cf71c1d
7
- data.tar.gz: 80ff50495513be63de50bc8ab0093cf071405260ec67b88b5cc4bb07d855b4ca64040ed31a52bfaa90497d3a5d44edbb542f84ee2d9eb28a6e22628c939c8710
6
+ metadata.gz: 768c0ffce9cd5c6582c7b2a45b332fe16e134b10d402f2bb3e5ab9891e538dc1f073c3d515fb7b36ffc6c1b0e9eb84fe47927b95d53db066eef6313f253916c9
7
+ data.tar.gz: e4b08a2588329c0ea39c0cfcbe2de0b9226d75cd75803a6a181440df739ee9d373cd28c8d56bbd92283c2e7b3649574786a7980c716a3137c81377afb294c839
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 5
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}"
data/lib/glib-mkenums.rb CHANGED
@@ -112,7 +112,9 @@ GType #{@enum_name}_get_type (void);
112
112
  data.force_encoding("utf-8") if data.respond_to?(:force_encoding)
113
113
  data.scan(/^\s*typedef\s+enum\s*(\/\*<\s*flags\s*>\*\/)?\s*
114
114
  \{?\s*(.*?)
115
- \}\s*(\w+)
115
+ \}\s*
116
+ (?:G_GNUC_FLAG_ENUM\s+)?
117
+ (\w+)
116
118
  # GLIB_DEPRECATED_TYPE_IN_2_38_FOR(GTestSubprocessFlags)
117
119
  (?:\s+[\w()\s]+)?
118
120
  ;/mx) do |force_flags, constants, name|
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
@@ -224,8 +224,9 @@ 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
- rubygems_version: 3.6.9
229
+ rubygems_version: 4.0.3
229
230
  specification_version: 4
230
231
  summary: Ruby/GLib2 is a Ruby binding of GLib-2.x.
231
232
  test_files: []