gtk2 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/gtk2/rbgtkobject.c +35 -1
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f48044466fa128075c6c66ba06eeba659f3f0585
4
- data.tar.gz: 56fb93c3a2d3a82d10ff2c981bece45d56d726be
3
+ metadata.gz: 57367b4e1b7fc9e551cbc78d7bcaa1e3faf76788
4
+ data.tar.gz: a7216c413da6ef12f3dc4a6df39255570f79b596
5
5
  SHA512:
6
- metadata.gz: 6dd8dc08b6b1f4812b910b7483b3b485b3f2461864c01b804c1ad96c42598bfa77b10a64fc04aef58d18ad601e1e655ba362a43bdfccea232272de0b3a37a04b
7
- data.tar.gz: 976fc9464bd675e1c5fa83cc83ea4653d6a849e3b7997a07aeb9505a2482964827ecd341c28bb8ada6aa925bc78f58af1752bc770f57dc3f03bbc99901445a3f
6
+ metadata.gz: 2c613a5947dfeb5863b11a9d9e59b15784bf53d88e56d822139f77713f1ad15f9c352a0da5e711fdc8494ff07aa262d0538af6655e3683de21f89a39ec71cc68
7
+ data.tar.gz: 738a503659c6ce928fd94edcae6bf483a655a3598f201d1f8dddd79edf8d8e2462158465dbb941bf7121b455fe3946c84717c18adb182f4832a0e761715a4960
@@ -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);
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: ruby
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: []