gtk2svg 0.3.15 → 0.3.16
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 +7 -12
- 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: 47dbe19825cd7e9f6e233155fd6253ea4d25d8cb
|
4
|
+
data.tar.gz: d3fca8ff7bcc6a5331067de85568ff6e24edadc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d8f89a2e98e023d38cc497c49d5cd9ed8cf564be474b445da653d59d073becc3aabf96415f06bad4fe88756fa4be805b45e7b2cd86c9f742385ee94e3edf2b
|
7
|
+
data.tar.gz: 7298c3414f1eab9ba4a3b4aa1361adc4acd12fc40009e80a89e678fbb68265289ecace00ce8f44eca593b52c194c15a9e7d930e1b526be7d6eb16d2d47d8cbd5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/gtk2svg.rb
CHANGED
@@ -326,12 +326,9 @@ module Gtk2SVG
|
|
326
326
|
@dirty = true
|
327
327
|
|
328
328
|
@doc.root.xpath('//script').each {|x| eval x.text.unescape }
|
329
|
-
|
330
|
-
x1 = 150
|
331
329
|
|
332
330
|
area.signal_connect("expose_event") do
|
333
|
-
|
334
|
-
area.window.draw_rectangle(area.style.fg_gc(area.state), 1, x1, y1, x2, y2)
|
331
|
+
|
335
332
|
if @dirty then
|
336
333
|
|
337
334
|
Thread.new { @doc.root.xpath('//script').each {|x| eval x.text.unescape } }
|
@@ -369,19 +366,17 @@ module Gtk2SVG
|
|
369
366
|
|
370
367
|
window.add(area).show_all
|
371
368
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
end
|
369
|
+
|
370
|
+
@doc.root.xpath('//*[@onload]').each do |x|
|
371
|
+
|
372
|
+
eval x.onload()
|
373
|
+
|
378
374
|
end
|
379
375
|
|
380
376
|
#Thread.new do
|
381
377
|
# 3.times { x1 -= 1; @area.queue_draw; sleep 0.1}
|
382
378
|
#end
|
383
|
-
|
384
|
-
#@area.queue_draw; sleep 0.01
|
379
|
+
|
385
380
|
window.show_all.signal_connect("destroy"){Gtk.main_quit}
|
386
381
|
|
387
382
|
irb ? Thread.new {Gtk.main } : Gtk.main
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|