gtk2svg 0.3.15 → 0.3.16

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: aebb344b15aad397ada0ee76af5603b0f2123fcc
4
- data.tar.gz: 4d32b93c7e71541ca69a461e2af590cce620c987
3
+ metadata.gz: 47dbe19825cd7e9f6e233155fd6253ea4d25d8cb
4
+ data.tar.gz: d3fca8ff7bcc6a5331067de85568ff6e24edadc6
5
5
  SHA512:
6
- metadata.gz: 8a96c8f6ebd2f0365db719ca704bd9668e696664e10f4d92693ddc1da5c457f59df433f69cc47835b6215de016b72e945128db7f52b2782bd023b5e06ec5f930
7
- data.tar.gz: 404061b26b759dab2dc14b8ea692b12414cf5695adc457a470443b5b7f4692f6060e9e9bad0277f22b2c5f1c10e2f441ac87a129e61fc64afba187ce046e7b82
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
- y1 = 30; x2 = 200; y2 = 70
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
- Thread.new do
373
- @doc.root.xpath('//*[@onload]').each do |x|
374
-
375
- eval x.onload()
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
- sleep 0.01
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
@@ -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.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file