gdk3 3.1.3-x64-mingw32 → 3.1.4-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: 7350428ca66b80d240421f5bafd736d23649a300
4
- data.tar.gz: f3fb0be7f03c9275d6ecd9f6e62239c4b7771655
3
+ metadata.gz: b65d14d19307b6d25bd795edbfe2f88b6cbc7fde
4
+ data.tar.gz: 942e309e45485b09c16aa55946ddfb6dda95346a
5
5
  SHA512:
6
- metadata.gz: c5cc6fcee47d162e403c029ef4003edbaae2f621eda2600cfe6d07e13c6c01ca22b32b091075a5fbfa725f8a7023f1f6dfd59114bfd2f14f6f042a5736f0c665
7
- data.tar.gz: 0e514f1c82689e87a164c366f6d686451bbe1fad1bd6a6b0ba2a75aa2dc4622b40d77159008d332d02a26524fc7bf3c64dc43d1eec254cfd5882fc982c0121e9
6
+ metadata.gz: 6229742697e3806ce7ff0a84e493079d3fe216689d4b3c38b2db2a86d285707cb90b01a1a567542f5e6ea71ec86611992cc80dea277cfb554429394a7775c5b5
7
+ data.tar.gz: c94cd1479384c61e8fc066dd6d6fa01ba2f6666b2bebee5a12ef8ab8e32e47dbc9ca22dde0d80b30b0c2ef36494a03277734bfcb01bf753fe146c2b7c7dcfb5a
@@ -17,8 +17,7 @@
17
17
  require "pkg-config"
18
18
  require "native-package-installer"
19
19
 
20
- case RUBY_PLATFORM
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
@@ -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(src_x,
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
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.3
4
+ version: 3.1.4
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: 2017-04-27 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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: []