clutter-gtk 3.0.8 → 3.0.9

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: df3026901de96cee185de253bbfab3b0894c1fee
4
- data.tar.gz: 2236a46391231b31bd768ac18fb8276f92df4f9e
3
+ metadata.gz: 3b5207e01702d97ffe5638fdc735f18098a5f39d
4
+ data.tar.gz: 8665fabdc39e419f6946dff2c9cd062f9c3828d7
5
5
  SHA512:
6
- metadata.gz: 5aec9bfcee905944009013d1c8bbff57cdffedba517b97fe5f870a122d751806f3ab2837aa78345bd44f796a04dbe379ce1d8fb6cbf05058d235721377ec413c
7
- data.tar.gz: 685afa35fd06d7ff282360f299b0eefa1f0e685123d6939cf0f44734b5390d44365221aa8aeff124966e5681c85b4b0f9a5b5f32b94f5ab28e4acd60cbc72ecd
6
+ metadata.gz: 6b59fea17fd196f52ab4691067104d43f711e8d858a69753bfece30aed80d54d95ec63f9a9da3a02308879a15c9c74ae0802c11c69ec9ef49eeafa77bd6b8e91
7
+ data.tar.gz: 83d5aa52275beadbdc1e47805a1b80bce0c214b77f529ac789ab1ef5ef5479f34436836aea3ae9e5ef3c441f159fe3fdcf6c2cea837d5fbfb70f0d45be5bd42a
data/lib/clutter-gtk.rb CHANGED
@@ -50,10 +50,10 @@ module ClutterGtk
50
50
  end
51
51
  end
52
52
 
53
- class Loader < GObjectIntrospection::Loader
54
- class InitError < StandardError
55
- end
53
+ class InitError < StandardError
54
+ end
56
55
 
56
+ class Loader < GObjectIntrospection::Loader
57
57
  NAMESPACE = "GtkClutter"
58
58
 
59
59
  def initialize(base_module, init_arguments)
data/sample/events.rb CHANGED
@@ -90,7 +90,7 @@ clutter_embed.signal_connect("leave-notify-event") do |widget|
90
90
  end
91
91
 
92
92
  # Create the main texture that the spin buttons manipulate
93
- pixbuf = Gdk::Pixbuf.new(File.expand_path("redhand.png", File.dirname(__FILE__)));
93
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => File.expand_path("redhand.png", File.dirname(__FILE__)));
94
94
  hand = ClutterGtk::Texture.new
95
95
  hand.from_pixbuf = pixbuf
96
96
  stage.add_child(hand)
data/sample/test.rb CHANGED
@@ -34,7 +34,7 @@ RADIUS = 150
34
34
  fade_p = false
35
35
  fullscreen_p = false
36
36
 
37
- pixbuf = Gdk::Pixbuf.new(File.expand_path("redhand.png", File.dirname(__FILE__)))
37
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => File.expand_path("redhand.png", File.dirname(__FILE__)))
38
38
 
39
39
  window = Gtk::Window.new
40
40
  window.set_default_size(WINDOW_WIDTH, WINDOW_HEIGHT)
@@ -36,7 +36,7 @@ window.set_default_size(400, 300)
36
36
 
37
37
  NAME_COLUMN = 0
38
38
  PIXBUF_COLUMN = 1
39
- store = Gtk::ListStore.new(String, Gdk::Pixbuf)
39
+ store = Gtk::ListStore.new(String, GdkPixbuf::Pixbuf)
40
40
  theme = Gtk::IconTheme.default
41
41
  [
42
42
  "devhelp",
@@ -53,7 +53,7 @@ theme = Gtk::IconTheme.default
53
53
  iter[1] = pixbuf
54
54
  end
55
55
 
56
- icon_view = Gtk::IconView.new(store)
56
+ icon_view = Gtk::IconView.new(:model => store)
57
57
  icon_view.text_column = NAME_COLUMN
58
58
  icon_view.pixbuf_column = PIXBUF_COLUMN
59
59
 
@@ -59,7 +59,7 @@ add_button = lambda do |stock_id, row|
59
59
  allocation = image.allocation
60
60
 
61
61
  # replace the icon itself
62
- blank = Gdk::Pixbuf.new(:colorspace => :rgb,
62
+ blank = GdkPixbuf::Pixbuf.new(:colorspace => :rgb,
63
63
  :has_alpha => true,
64
64
  :bits_per_sample => 8,
65
65
  :width => allocation.width,
data/test/run-test.rb CHANGED
@@ -76,6 +76,13 @@ rescue GLib::Error
76
76
  exit(true)
77
77
  end
78
78
 
79
+ begin
80
+ ClutterGtk.init
81
+ rescue ClutterGtk::InitError
82
+ puts("Omit because initialization is failed: #{$!.message}")
83
+ exit(true)
84
+ end
85
+
79
86
  # exclude sample/test-*
80
87
  clutter_gtk_test_base = File.join(clutter_gtk_base, "test")
81
88
  exit Test::Unit::AutoRunner.run(true, clutter_gtk_test_base)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.0.9
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-04-03 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clutter
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.8
19
+ version: 3.0.9
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.8
26
+ version: 3.0.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gtk3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.8
33
+ version: 3.0.9
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.8
40
+ version: 3.0.9
41
41
  description: Ruby/ClutterGTK is a Ruby binding of Clutter-GTK.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 1.9.3
72
+ version: 2.1.0
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="