gtk2svg 0.3.3 → 0.3.4
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 +0 -0
- data/lib/gtk2svg.rb +3 -3
- metadata +1 -1
- 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: f90b08cd767819c94e498cb352134ce0ba79ad09
|
4
|
+
data.tar.gz: a231f02040a53b0bcdc1d3f93a91e86f14f4b618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b08f0637552740330aa554839d665b914bea5ac7c027d23809e0bb12caf97883fe6d1c54c8c0bcb9e1499abcfb0ccdcee9fe1acef39757e32b5f337fb547400
|
7
|
+
data.tar.gz: 41289d1c386245d2ab73990683caaf2152d6096777f91eaed110363dcb161052f2910198bc0d635100ad646342789bdb2c2a34d9971c553fbb9443e335a0f498
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/gtk2svg.rb
CHANGED
@@ -165,7 +165,7 @@ module Gtk2SVG
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def gc_ini(fill: nil, stroke: nil)
|
168
|
-
gc = Gdk::GC.new(area.window)
|
168
|
+
gc = Gdk::GC.new(@area.window)
|
169
169
|
colour = fill || stroke
|
170
170
|
gc.set_foreground(set_colour(colour)) unless colour == :none
|
171
171
|
gc
|
@@ -182,7 +182,7 @@ module Gtk2SVG
|
|
182
182
|
def initialize(svg)
|
183
183
|
|
184
184
|
@svg = svg
|
185
|
-
@doc = Svgle.new(svg)
|
185
|
+
@doc = Svgle.new(svg, callback: self)
|
186
186
|
@area = area = Gtk::DrawingArea.new
|
187
187
|
|
188
188
|
window = Gtk::Window.new
|
@@ -211,7 +211,7 @@ module Gtk2SVG
|
|
211
211
|
|
212
212
|
def svg=(svg)
|
213
213
|
@svg = svg
|
214
|
-
@doc = Svgle.new(svg)
|
214
|
+
@doc = Svgle.new(svg, callback: self)
|
215
215
|
end
|
216
216
|
|
217
217
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|