gtk2 3.0.4-x64-mingw32 → 3.0.5-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74a3f4fa127e984f6103fb0145591e9b8d90ed70
4
- data.tar.gz: 2d9763f6c0954da768af76464017211119dba5ef
3
+ metadata.gz: fe6b24528f73c8324579fd9c659959c7cc86318c
4
+ data.tar.gz: b1d54c09061a9b7e87b8ee0618421d3c55b72e46
5
5
  SHA512:
6
- metadata.gz: d7df24bb1b511a3809278025392b005ee05bc880dfe4751facb5ea0ab54b0e7d2b57b081813372eb8e36e8c14719f8d396968ac95dfe604bf35b72c7391dea3b
7
- data.tar.gz: 09a81e964a196915cb6c31c46af628515c13d7ac81b30ca645bf4a60fa439bea5b746c18c66fd57ce59e3dc9e424dcfdbfde4ed8cf6d2d17c296534956adf725
6
+ metadata.gz: 9b17cd1a3da13a938da838f6e8c9f7b8e2330e77e2de4767f9b08b44170d360f12ed49fb2ba3a1dd65ff0263b8a82bd8f333e5c780b144712097ee4c0232d254
7
+ data.tar.gz: f716958db230994d8f5cd1204fb0922a1d024e017864971a695c34e8b41fe981fa07f4399829a08509581f182322a5cfe87ea8c84b2dfa38c276a4014dc58f96
@@ -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: 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-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: []