gtk2 3.0.4-x86-mingw32 → 3.0.5-x86-mingw32

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
  SHA1:
3
- metadata.gz: 352cbc9db48ac92dee75c9e6d53487cb84e12b42
4
- data.tar.gz: f4dd1f0708c0489915b002b0f32d5f4015888217
3
+ metadata.gz: b0b5939933faf5970c363933d7342e74b72f50e7
4
+ data.tar.gz: c5fed98289c0ae4fdd1adc3fa71d648f6c4f6fb0
5
5
  SHA512:
6
- metadata.gz: 55dd601e454b9569b7915b2b7f9a6a858d987f857dd5e825c6517e9c28827d9271feb88a4e498ed3fb131a9b2c8c9645a7f2c38ac64f28121cd7676d4543eb72
7
- data.tar.gz: 79297b8fda83563e0df5873c797b262d8a8ad59f92cfeffc063173320b0ea0906847c7877a27c3045d0d72819c7422a72fb5a804bafd185a7df7a7b06a0e5c6f
6
+ metadata.gz: 505e99e22e6fe1cdea176a64e41ea8ef154c8d00bb122df95ccf152803fd2b9ad6a822214ce8aa2c8dc0f8e863995349edf709e4f28ceaee82e1c016cba078fd
7
+ data.tar.gz: b6d9d4b81a71663553cf0d5c277feb9b970b529f6336824cc70987a7df6a465f3fec38f343f6ffd9baf525b5594bdf3d0ad5581fe1d1b55400c241b875a57e30
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2015 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
5
5
  * Copyright (C) 1998-2000 Yukihiro Matsumoto,
6
6
  * Daisuke Kanda,
@@ -26,6 +26,39 @@
26
26
 
27
27
  #define RG_TARGET_NAMESPACE cObject
28
28
 
29
+ static VALUE
30
+ rg_initialize(int argc, VALUE *argv, VALUE self)
31
+ {
32
+ GObject *object;
33
+
34
+ rb_call_super(argc, argv);
35
+
36
+ object = RVAL2GOBJ(self);
37
+ g_object_ref_sink(object);
38
+
39
+ return Qnil;
40
+ }
41
+
42
+ static VALUE
43
+ rg_s_type_register(int argc, VALUE *argv, VALUE klass)
44
+ {
45
+ VALUE type_name;
46
+
47
+ rb_scan_args(argc, argv, "01", &type_name);
48
+
49
+ rbgobj_register_type(klass, type_name, rbgobj_class_init_func);
50
+
51
+ {
52
+ VALUE initialize_module;
53
+ initialize_module = rb_define_module_under(klass, "WidgetHook");
54
+ rbg_define_method(initialize_module,
55
+ "initialize", rg_initialize, -1);
56
+ rb_include_module(klass, initialize_module);
57
+ }
58
+
59
+ return Qnil;
60
+ }
61
+
29
62
  /*
30
63
  We shouldn't implement it.
31
64
  void gtk_object_sink (GtkObject *object);
@@ -122,6 +155,7 @@ Init_gtk_object(VALUE mGtk)
122
155
  {
123
156
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_OBJECT, "Object", mGtk);
124
157
 
158
+ RG_DEF_SMETHOD(type_register, -1);
125
159
  RG_DEF_SMETHOD(binding_set, 0);
126
160
 
127
161
  RG_DEF_METHOD(type_name, 0);
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: x86-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-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atk
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.4
19
+ version: 3.0.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.4
26
+ version: 3.0.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pango
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.4
33
+ version: 3.0.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.4
40
+ version: 3.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gdk_pixbuf2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.4
47
+ version: 3.0.5
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.4
54
+ version: 3.0.5
55
55
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
56
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
57
57
  executables: []