ruby_mvc 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,10 @@ module RubyMVC
34
34
  def initialize(options = {}, &block)
35
35
  super(WxRuby.parent(options))
36
36
  set_background_colour(Wx::WHITE)
37
+ if self.respond_to? :evt_html_link_clicked
38
+ evt_html_link_clicked self, :on_link_clicked
39
+ #evt_html_cell_hover self, :on_hover
40
+ end
37
41
  end
38
42
 
39
43
  attr_reader :location
@@ -78,6 +82,10 @@ module RubyMVC
78
82
  #++
79
83
 
80
84
  def on_link_clicked(link)
85
+ if link.is_a? Wx::HtmlLinkEvent
86
+ # fixup for version 2.0.1 API changes
87
+ link = link.link_info
88
+ end
81
89
  signal_emit("navigation-requested", self, link.href, link.target)
82
90
  end
83
91
 
data/ruby_mvc.gemspec CHANGED
@@ -27,7 +27,7 @@ require 'rake'
27
27
 
28
28
  Gem::Specification.new do |s|
29
29
  s.name = "ruby_mvc"
30
- s.version = "0.0.0"
30
+ s.version = "0.0.1"
31
31
  s.summary = "Ruby MVC"
32
32
  s.description = "A simple, cross-platform MVC framework for Ruby"
33
33
  s.authors = [ "Andrew S. Townley" ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_mvc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew S. Townley