gdk3 3.1.3-x86-mingw32 → 3.1.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dependency-check/Rakefile +3 -3
- data/lib/gdk3/cairo.rb +29 -0
- data/test/test-gdk-pixbuf.rb +2 -8
- data/vendor/local/bin/gtk-builder-tool.exe +0 -0
- data/vendor/local/bin/gtk-encode-symbolic-svg.exe +0 -0
- data/vendor/local/bin/gtk-launch.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
- data/vendor/local/bin/gtk-query-settings.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/gtk3-demo-application.exe +0 -0
- data/vendor/local/bin/gtk3-demo.exe +0 -0
- data/vendor/local/bin/gtk3-icon-browser.exe +0 -0
- data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
- data/vendor/local/bin/libepoxy-0.dll +0 -0
- data/vendor/local/bin/libgailutil-3-0.dll +0 -0
- data/vendor/local/bin/libgdk-3-0.dll +0 -0
- data/vendor/local/bin/libgtk-3-0.dll +0 -0
- data/vendor/local/bin/libgtkreftestprivate-0.dll +0 -0
- data/vendor/local/lib/libepoxy.dll.a +0 -0
- data/vendor/local/lib/libgailutil-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.dll.a +0 -0
- data/vendor/local/lib/libgtk-3.dll.a +0 -0
- data/vendor/local/lib/libgtkreftestprivate.dll.a +0 -0
- data/vendor/local/share/icons/Adwaita/icon-theme.cache +0 -0
- data/vendor/local/share/icons/hicolor/icon-theme.cache +0 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc63906fe75624cbf6d48136f0030461660d3543
|
4
|
+
data.tar.gz: 8dbe63b5561946d9acf8b01693b17fb0ee4efc06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f4c1fb31e44961d4a1a490320aec92e396b2ff2c1bea718afd1083bd3f41f8d502961265fe74523b3320070e5db1d9982df91cafb52d7f0affb2c054a9e0540
|
7
|
+
data.tar.gz: 0eca5837fd898fcb3d89be7b4be68fd4ac21bb32432a4cfa6601160e31abe18804b5ff2b50c2685ddb48ceac2107c05f8ff02153e5249fe6d03aad33e985cc38
|
data/dependency-check/Rakefile
CHANGED
@@ -17,8 +17,7 @@
|
|
17
17
|
require "pkg-config"
|
18
18
|
require "native-package-installer"
|
19
19
|
|
20
|
-
|
21
|
-
when /mingw|mswin/
|
20
|
+
if File.exist?(File.join(__dir__, "..", "vendor"))
|
22
21
|
task :default => "nothing"
|
23
22
|
else
|
24
23
|
task :default => "dependency:check"
|
@@ -35,7 +34,8 @@ namespace :dependency do
|
|
35
34
|
:debian => "libgtk-3-dev",
|
36
35
|
:fedora => "gtk3-devel",
|
37
36
|
:homebrew => "gtk+3",
|
38
|
-
:macports => "gtk3"
|
37
|
+
:macports => "gtk3",
|
38
|
+
:msys2 => "gtk3")
|
39
39
|
exit(false)
|
40
40
|
end
|
41
41
|
end
|
data/lib/gdk3/cairo.rb
CHANGED
@@ -61,4 +61,33 @@ module Cairo
|
|
61
61
|
set_source_pixbuf_raw(pixbuf, pixbuf_x, pixbuf_y)
|
62
62
|
end
|
63
63
|
end
|
64
|
+
|
65
|
+
class Surface
|
66
|
+
alias_method :to_pixbuf_raw, :to_pixbuf
|
67
|
+
def to_pixbuf(options={})
|
68
|
+
src_x = options[:src_x] || 0
|
69
|
+
src_y = options[:src_y] || 0
|
70
|
+
w = options[:width]
|
71
|
+
h = options[:height]
|
72
|
+
if w.nil? and respond_to?(:width)
|
73
|
+
w = width
|
74
|
+
end
|
75
|
+
if h.nil? and respond_to?(:height)
|
76
|
+
h = height
|
77
|
+
end
|
78
|
+
to_pixbuf_raw(src_x, src_y, w, h)
|
79
|
+
end
|
80
|
+
|
81
|
+
extend GLib::Deprecatable
|
82
|
+
|
83
|
+
define_deprecated_method_by_hash_args(:to_pixbuf,
|
84
|
+
"src_x, src_y, width, height",
|
85
|
+
":src_x => 0, " +
|
86
|
+
":src_y => 0, " +
|
87
|
+
":width => width, " +
|
88
|
+
":height => height",
|
89
|
+
0) do |surface, src_x, src_y, w, h|
|
90
|
+
[{:src_x => src_x, :src_y => src_y, :width => w, :height => h}]
|
91
|
+
end
|
92
|
+
end
|
64
93
|
end
|
data/test/test-gdk-pixbuf.rb
CHANGED
@@ -33,16 +33,10 @@ class TestGdkPixbuf < Test::Unit::TestCase
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def test_surface
|
36
|
-
surface = Cairo::ImageSurface.new(:argb32, 290, 200)
|
37
|
-
src_x = 0
|
38
|
-
src_y = 0
|
39
36
|
width = 290
|
40
37
|
height = 200
|
41
|
-
|
42
|
-
pixbuf = surface.to_pixbuf
|
43
|
-
src_y,
|
44
|
-
width,
|
45
|
-
height)
|
38
|
+
surface = Cairo::ImageSurface.new(:argb32, width, height)
|
39
|
+
pixbuf = surface.to_pixbuf
|
46
40
|
assert_equal([width, height],
|
47
41
|
[pixbuf.width, pixbuf.height])
|
48
42
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
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: 2017-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pango
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.4
|
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.1.
|
26
|
+
version: 3.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gdk_pixbuf2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.1.
|
33
|
+
version: 3.1.4
|
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.1.
|
40
|
+
version: 3.1.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cairo-gobject
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.1.
|
47
|
+
version: 3.1.4
|
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.1.
|
54
|
+
version: 3.1.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: gobject-introspection
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.1.
|
61
|
+
version: 3.1.4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.1.
|
68
|
+
version: 3.1.4
|
69
69
|
description: Ruby/GDK3 is a Ruby binding of GDK-3.x.
|
70
70
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
71
71
|
executables: []
|