clutter 3.0.9 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/clutter.rb +10 -7
  4. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 778f584b7029c0078142fa3c3775f9c7e29b1868
4
- data.tar.gz: 17200175a431f4a2c594c7eccf68cee1ac7e96cd
3
+ metadata.gz: afa9e08fcf445a0ae12b480f197f1a18c69232f3
4
+ data.tar.gz: 02d0e697561970b0ebcc76c1230a6413b14e36fb
5
5
  SHA512:
6
- metadata.gz: 314caa16ab43ce7898eb210398050abe5291865f6a33010af148e852a9c5e55d2b1d7da9ae1ad347b8443e4ccb257b6fc2293bb5e5dbb019affdb56ad68850a9
7
- data.tar.gz: 45de324482d281f38375821db9781397df075f32889b6e059ef4204d738b9da2b27f2331fd0d5af03b9bb30c492f6b5f7845f9244efff85f756e33486ca2ae43
6
+ metadata.gz: 0d00c76e9a46cbf0bc4246d6cf118715f6e4fef7c5dd1437fecb6adfbec114c82882c1820be1e0e6a95d4008dd8cf04ff6e5c7cd72ebfb47c845787822447467
7
+ data.tar.gz: 2ac668f15344b554af08fae1463b23c83935cce8d69e7c5b4e3d7892acf4fc7168b4711ef5c9af66653ba778e4f56657aa7c3ce6004ae32202b168d6e2d18f19
data/Rakefile CHANGED
@@ -81,7 +81,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
81
81
  :name => "cogl",
82
82
  :download_site => :gnome,
83
83
  :label => "Cogl",
84
- :version => "1.22.0",
84
+ :version => "1.22.2",
85
85
  :compression_method => "xz",
86
86
  :windows => {
87
87
  :configure_args => [
data/lib/clutter.rb CHANGED
@@ -44,6 +44,7 @@ module Clutter
44
44
  end
45
45
  end
46
46
 
47
+ @@init_hooks = []
47
48
  def init(argv=[])
48
49
  class << self
49
50
  remove_method(:init)
@@ -64,6 +65,14 @@ module Clutter
64
65
  require "clutter/text-buffer"
65
66
  require "clutter/threads"
66
67
  require "clutter/version"
68
+
69
+ @@init_hooks.each do |hook|
70
+ hook.call
71
+ end
72
+ end
73
+
74
+ def on_init(&block)
75
+ @@init_hooks << block
67
76
  end
68
77
  end
69
78
 
@@ -91,7 +100,7 @@ module Clutter
91
100
  arguments = [
92
101
  [$0] + @init_arguments,
93
102
  ]
94
- error, returned_arguments = init.invoke(:arguments => arguments)
103
+ error, returned_arguments = init.invoke(arguments)
95
104
  @init_arguments.replace(returned_arguments[1..-1])
96
105
  if error.to_i <= 0
97
106
  raise InitError, "failed to initialize Clutter: #{error.name}"
@@ -115,12 +124,6 @@ module Clutter
115
124
  load_events
116
125
  end
117
126
 
118
- def initialize_post(object)
119
- super
120
- return unless object.is_a?(GLib::Object)
121
- self.class.reference_gobject(object, :sink => true)
122
- end
123
-
124
127
  def load_events
125
128
  @event_infos.each do |event_info|
126
129
  define_struct(event_info, :parent => Event)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.1.0
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: 2016-08-12 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo-gobject
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.9
19
+ version: 3.1.0
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.9
26
+ version: 3.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gobject-introspection
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.9
33
+ version: 3.1.0
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.9
40
+ version: 3.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pango
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.9
47
+ version: 3.1.0
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.9
54
+ version: 3.1.0
55
55
  description: Ruby/Clutter is a Ruby binding of Clutter.
56
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
57
57
  executables: []