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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47dbe19825cd7e9f6e233155fd6253ea4d25d8cb
4
- data.tar.gz: d3fca8ff7bcc6a5331067de85568ff6e24edadc6
3
+ metadata.gz: 1a0849f059e7831d0719b9e8384fe5ff2ebf726e
4
+ data.tar.gz: d0959b24b54eb0af311ca675083b43404ccf64e1
5
5
  SHA512:
6
- metadata.gz: c0d8f89a2e98e023d38cc497c49d5cd9ed8cf564be474b445da653d59d073becc3aabf96415f06bad4fe88756fa4be805b45e7b2cd86c9f742385ee94e3edf2b
7
- data.tar.gz: 7298c3414f1eab9ba4a3b4aa1361adc4acd12fc40009e80a89e678fbb68265289ecace00ce8f44eca593b52c194c15a9e7d930e1b526be7d6eb16d2d47d8cbd5
6
+ metadata.gz: 87e78fd1d52d8902df090427a6198d71b04c3ac0228654814d551a263eaeeff663b8e9549419cc47c4175f83b895577ac8302f6f4e1be7e87c016643cf12c877
7
+ data.tar.gz: 9f307252326c04fdf103575009bc98d718260fa945235b5422e4659d0cfca0ff68cafdf50cebe5233e8e5072c6cc2a2e4602ce5e34377d20c298063f7f03183a
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- 9qu�|�ٗf���庝�bl���f��'n
2
- ` N'%1�Լ�'2�H2����kO��Ig��C�_�}k6�Kk���]!_��\Y�G�WP�h6oB���ɼ5f5��\W*��������'�~�h ��3������1�?e�p��b�G
3
- �u89�-���-���"�W�����Z�3
1
+ da{T����U�m�F�ɠ�in�wq���R��!3�#�/�E���a��;��u-z��V��O;$cTv:|�� �dd�b��nu�@m{¤ �����-�
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
- x ||= 0
159
- y ||= 0
160
- width ||= img.width
161
- height ||= img.height
157
+ if File.exists? src then
158
+ img = GdkPixbuf::Pixbuf.new(file: src)
162
159
 
163
- @area.window.draw_pixbuf(gc, img, 0, 0, x, y, width, height,
164
- Gdk::RGB::DITHER_NONE, 0, 0)
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.16
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-26 00:00:00.000000000 Z
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