gtk2svg 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/lib/gtk2svg.rb +10 -8
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a0849f059e7831d0719b9e8384fe5ff2ebf726e
|
4
|
+
data.tar.gz: d0959b24b54eb0af311ca675083b43404ccf64e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87e78fd1d52d8902df090427a6198d71b04c3ac0228654814d551a263eaeeff663b8e9549419cc47c4175f83b895577ac8302f6f4e1be7e87c016643cf12c877
|
7
|
+
data.tar.gz: 9f307252326c04fdf103575009bc98d718260fa945235b5422e4659d0cfca0ff68cafdf50cebe5233e8e5072c6cc2a2e4602ce5e34377d20c298063f7f03183a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
data/lib/gtk2svg.rb
CHANGED
@@ -153,16 +153,18 @@ module Gtk2SVG
|
|
153
153
|
x, y, width, height = dimensions
|
154
154
|
|
155
155
|
gc = gc_ini(fill: style[:fill] || :none)
|
156
|
-
img = GdkPixbuf::Pixbuf.new(file: src)
|
157
156
|
|
158
|
-
|
159
|
-
|
160
|
-
width ||= img.width
|
161
|
-
height ||= img.height
|
157
|
+
if File.exists? src then
|
158
|
+
img = GdkPixbuf::Pixbuf.new(file: src)
|
162
159
|
|
163
|
-
|
164
|
-
|
165
|
-
|
160
|
+
x ||= 0
|
161
|
+
y ||= 0
|
162
|
+
width ||= img.width
|
163
|
+
height ||= img.height
|
164
|
+
|
165
|
+
@area.window.draw_pixbuf(gc, img, 0, 0, x, y, width, height,
|
166
|
+
Gdk::RGB::DITHER_NONE, 0, 0)
|
167
|
+
end
|
166
168
|
end
|
167
169
|
|
168
170
|
def draw_line(args)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk2svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
S+VWAhfVm13yzrA556/5JtfZb/HMd97bm5U2ypMzi+hn2PRRxQ32RY58lYUVpxhE
|
32
32
|
QK5w9QJyQ1G9ag==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-01-
|
34
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: gtk2
|
metadata.gz.sig
CHANGED
Binary file
|