ruby_mvc 0.0.0 → 0.0.1
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.
- data/lib/ruby_mvc/toolkit/peers/wxruby/web_view.rb +8 -0
- data/ruby_mvc.gemspec +1 -1
- metadata +3 -3
@@ -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
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew S. Townley
|