clutter-gtk 3.0.8-x86-mingw32 → 3.0.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clutter-gtk.rb +3 -3
- data/sample/events.rb +1 -1
- data/sample/test.rb +1 -1
- data/sample/window-test.rb +2 -2
- data/sample/window-test2.rb +1 -1
- data/test/run-test.rb +7 -0
- data/vendor/local/lib/libclutter-gtk-1.0.dll.a +0 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e2357151bc296028e47e0c50553e167acc11770
|
4
|
+
data.tar.gz: e7cfe1527e625ea839f6c29a3cac836ddaa45624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d91a5cc56be70aa8331f2f7ab05ec76289f80b9b29d0b856adaab068e21d2a0855d3cd566b5a45fde4279db542ff984480d9f673fbb772ee704be44dfd8b536
|
7
|
+
data.tar.gz: 1d87b713cc5fff25d3f80a0be934289002ca4f974ce92246a1235cc4c780b66d22e23226741fe9595d64b1ba10e33131c2726c55eec548b0418b273b912e27d6
|
data/lib/clutter-gtk.rb
CHANGED
@@ -50,10 +50,10 @@ module ClutterGtk
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
class
|
54
|
-
|
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 =
|
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 =
|
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)
|
data/sample/window-test.rb
CHANGED
@@ -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,
|
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
|
|
data/sample/window-test2.rb
CHANGED
@@ -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 =
|
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)
|
Binary file
|
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.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: x86-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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
119
|
+
version: 2.1.0
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|