glib2 4.0.7 → 4.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbgobj_closure.c +8 -3
- data/lib/mkmf-gnome.rb +7 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe916b09900b952d7a6a33b8230c970668d44d99be2e6f2cb972c9c32b803ff8
|
4
|
+
data.tar.gz: b114d52cf6ba92239fc60733476b73b2d602384e33373d94613e5af0b379ee2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58497d69ee2e782ae965ee8e510790cb95c1c09db576d89276feb150c2a19943e05ea9e6e0fbf2a483375b1b4931bfdfa77982f3cff3f05deea6841127acf314
|
7
|
+
data.tar.gz: f5b88996c405efa1c75ec5755bacd49eaf15ed2e1c763bc22ba5b7275e6dc9a4340652916573d6b60b5df4f5ad8560e564b709af320b1ed9c6c9c0cf54f5e036
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbgobj_closure.c
CHANGED
@@ -158,7 +158,7 @@ rclosure_marshal(GClosure* closure,
|
|
158
158
|
static void rclosure_weak_notify(gpointer data, GObject* where_the_object_was);
|
159
159
|
|
160
160
|
static void
|
161
|
-
|
161
|
+
rclosure_invalidate(G_GNUC_UNUSED gpointer data, GClosure *closure)
|
162
162
|
{
|
163
163
|
GRClosure *rclosure = (GRClosure *)closure;
|
164
164
|
|
@@ -200,7 +200,12 @@ gr_closure_holder_free(void *data)
|
|
200
200
|
if (!rclosure)
|
201
201
|
return;
|
202
202
|
|
203
|
-
|
203
|
+
GClosure *closure = (GClosure *)rclosure;
|
204
|
+
gboolean last_reference = (closure->ref_count == 1);
|
205
|
+
g_closure_unref(closure);
|
206
|
+
if (!last_reference) {
|
207
|
+
g_closure_invalidate(closure);
|
208
|
+
}
|
204
209
|
}
|
205
210
|
|
206
211
|
static const rb_data_type_t rbg_closure_holder_type = {
|
@@ -237,7 +242,7 @@ g_rclosure_new_raw(VALUE callback_proc,
|
|
237
242
|
g_closure_ref(closure);
|
238
243
|
g_closure_sink(closure);
|
239
244
|
g_closure_set_marshal(closure, &rclosure_marshal);
|
240
|
-
|
245
|
+
g_closure_add_invalidate_notifier(closure, NULL, rclosure_invalidate);
|
241
246
|
|
242
247
|
return closure;
|
243
248
|
}
|
data/lib/mkmf-gnome.rb
CHANGED
@@ -199,19 +199,20 @@ def add_depend_package_path(target_name,
|
|
199
199
|
$INCFLAGS = "-I#{target_source_dir}".quote + " #{$INCFLAGS}"
|
200
200
|
end
|
201
201
|
|
202
|
-
return unless File.exist?(target_build_dir)
|
203
|
-
if target_source_dir != target_build_dir
|
204
|
-
$INCFLAGS = "-I#{target_build_dir}".quote + " #{$INCFLAGS}"
|
205
|
-
end
|
206
|
-
|
207
|
-
library_base_name = target_name.gsub(/-/, "_")
|
208
202
|
if is_gem
|
209
203
|
# .../glib2/ext/glib2/ -> .../glib2/ext/glib2/../../lib/
|
210
204
|
# (.../glib2/lib/)
|
211
205
|
library_dir = File.join(target_source_dir, "..", "..", "lib")
|
212
206
|
else
|
207
|
+
return unless File.exist?(target_build_dir)
|
213
208
|
library_dir = target_build_dir
|
214
209
|
end
|
210
|
+
|
211
|
+
if target_source_dir != library_dir
|
212
|
+
$INCFLAGS = "-I#{library_dir}".quote + " #{$INCFLAGS}"
|
213
|
+
end
|
214
|
+
|
215
|
+
library_base_name = target_name.gsub(/-/, "_")
|
215
216
|
case RUBY_PLATFORM
|
216
217
|
when /cygwin|mingw/
|
217
218
|
library_path = File.join(library_dir, "#{library_base_name}.so")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.9
|
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: 2023-01-
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.5.0.dev
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Ruby/GLib2 is a Ruby binding of GLib-2.x.
|