glib2 3.0.6-x64-mingw32 → 3.0.7-x64-mingw32
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_enums.c +1 -1
- data/ext/glib2/rbgobj_signal.c +4 -17
- data/lib/2.0/glib2.so +0 -0
- data/lib/2.1/glib2.so +0 -0
- data/lib/2.2/glib2.so +0 -0
- data/lib/glib2.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f989c70367eb6c422028afe9e878025102e33036
|
4
|
+
data.tar.gz: 66ce08f35d1cab5a2c06e5408d2a3acc697e47d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c815129670f971c4fb8602cd310b47ed2117ef9bd02f30685ccfc4cc53adfbcaa56802d7c076614b2e04467b13534936cbd42227f4ebeb3d5dad3a472a8429
|
7
|
+
data.tar.gz: 2e947379e3f1d00db38287ed4bf0bff0f90648b3618e97b542ab1c23a8e983d95cf5ee502c271f31f90aea6c15e1faae292090bf18ccd0fc5e1feba4b826646e
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbgobj_enums.c
CHANGED
@@ -298,7 +298,7 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
|
|
298
298
|
if (!p->info) {
|
299
299
|
gchar *nick;
|
300
300
|
nick = rbg_name_to_nick(name);
|
301
|
-
p->info = g_enum_get_value_by_nick(p->gclass,
|
301
|
+
p->info = g_enum_get_value_by_nick(p->gclass, nick);
|
302
302
|
g_free(nick);
|
303
303
|
}
|
304
304
|
if (!p->info) {
|
data/ext/glib2/rbgobj_signal.c
CHANGED
@@ -168,20 +168,13 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
|
|
168
168
|
signal_flags = NUM2INT(rbsignal_flags);
|
169
169
|
|
170
170
|
{
|
171
|
-
VALUE factory;
|
172
171
|
VALUE proc;
|
173
172
|
ID method_id;
|
174
173
|
|
175
174
|
method_id = rb_to_id(rb_str_concat(rb_str_new2(default_handler_method_prefix), rbsignal_name));
|
176
175
|
|
177
|
-
|
178
|
-
|
179
|
-
" lambda{|instance,*args|\n"
|
180
|
-
" klass.instance_method(id).bind(instance).call(*args)\n"
|
181
|
-
" }\n"
|
182
|
-
"}\n",
|
183
|
-
__FILE__);
|
184
|
-
proc = rb_funcall(factory, rb_intern("call"), 2, self, ID2SYM(method_id));
|
176
|
+
proc = rb_funcall(mMetaInterface, rb_intern("signal_callback"), 2,
|
177
|
+
self, ID2SYM(method_id));
|
185
178
|
|
186
179
|
class_closure = g_rclosure_new(proc, Qnil, NULL);
|
187
180
|
/* TODO: Should this be done even if something below it fails? */
|
@@ -630,14 +623,8 @@ gobj_s_method_added(VALUE klass, VALUE id)
|
|
630
623
|
}
|
631
624
|
|
632
625
|
{
|
633
|
-
VALUE
|
634
|
-
|
635
|
-
" lambda{|instance,*args|\n"
|
636
|
-
" klass.instance_method(id).bind(instance).call(*args)\n"
|
637
|
-
" }\n"
|
638
|
-
"}\n",
|
639
|
-
__FILE__);
|
640
|
-
VALUE proc = rb_funcall(f, rb_intern("call"), 2, klass, id);
|
626
|
+
VALUE proc = rb_funcall(mMetaInterface, rb_intern("signal_callback"), 2,
|
627
|
+
klass, id);
|
641
628
|
GClosure* rclosure = g_rclosure_new(proc, Qnil,
|
642
629
|
rbgobj_get_signal_func(signal_id));
|
643
630
|
g_rclosure_attach((GClosure *)rclosure, klass);
|
data/lib/2.0/glib2.so
CHANGED
Binary file
|
data/lib/2.1/glib2.so
CHANGED
Binary file
|
data/lib/2.2/glib2.so
CHANGED
Binary file
|
data/lib/glib2.rb
CHANGED
@@ -116,7 +116,16 @@ rescue LoadError
|
|
116
116
|
end
|
117
117
|
|
118
118
|
module GLib
|
119
|
-
|
119
|
+
module MetaInterface
|
120
|
+
class << self
|
121
|
+
def signal_callback(klass, id)
|
122
|
+
lambda do |instance, *args|
|
123
|
+
klass.instance_method(id).bind(instance).call(*args)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
120
129
|
class Type
|
121
130
|
|
122
131
|
def decendants
|
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: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|