clutter-gtk 3.0.8-x64-mingw32 → 3.0.9-x64-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: 3275326236a1203c9d89855acc59860eb3840ee4
4
- data.tar.gz: 7cf0465c43ff26575a5367fc836442fb2bcec07d
3
+ metadata.gz: 8f56fc99f957ca04fea60c876359c37127e1672f
4
+ data.tar.gz: 4757fea0d503cb80bef2982557531cfe2dadf2e9
5
5
  SHA512:
6
- metadata.gz: aaffc2a3cea1b1f9dede5183c0b3b6915f99b517136259093f9fb0816201c8b1c13caeb9b483057ed071ec3cae6681d0e6aeac13e2c32d382c206fe4ef8a9555
7
- data.tar.gz: 6f66afc23d059161e4858f5708c940f11f9d1d1ed8cef7219134708ff5b99cab7cbe412089631a222724561a72201d164c3438296ba7a1726f0314b92d831483
6
+ metadata.gz: f86cd2cb3a4082d00cec96b29eb2dda50a0ece151aac336107a29bbb2035b5c4ec9a91abccbc36fc9fbd2277bbb3c87f02b09fffc8e1f4ce9b61f8a28f7a1475
7
+ data.tar.gz: 2d19ec74159f6cf12181e05e4797617ae91bec304ab3a2a214598a099dd162118e02941e3b6a13312620b74db3c2e04725c3ae218fd5c328e28dec6cc12d747f
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: 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: 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: []
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 1.9.3
119
+ version: 2.1.0
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="