aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/ui_lib.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-22 07:24:20 +0800
committerobscuren <geffobscura@gmail.com>2015-01-22 07:24:20 +0800
commit465b0a79d8fa2550e6104d0d86e357b123f74a39 (patch)
treec048ce8180f3bfad6115b24992a24a8c271dee5a /cmd/mist/ui_lib.go
parent87f50659db7a4bf194769b05f541d2ccf02f4fc8 (diff)
downloadgo-tangerine-465b0a79d8fa2550e6104d0d86e357b123f74a39.tar.gz
go-tangerine-465b0a79d8fa2550e6104d0d86e357b123f74a39.tar.zst
go-tangerine-465b0a79d8fa2550e6104d0d86e357b123f74a39.zip
Updated browser & pass view to callback function
Diffstat (limited to 'cmd/mist/ui_lib.go')
-rw-r--r--cmd/mist/ui_lib.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go
index c88c4dab6..596f8442a 100644
--- a/cmd/mist/ui_lib.go
+++ b/cmd/mist/ui_lib.go
@@ -312,10 +312,11 @@ func (self *UiLib) ToAscii(data string) string {
}
/// Ethereum filter methods
-func (self *UiLib) NewFilter(object map[string]interface{}) (id int) {
+func (self *UiLib) NewFilter(object map[string]interface{}, view *qml.Common) (id int) {
filter := qt.NewFilterFromMap(object, self.eth)
filter.MessageCallback = func(messages state.Messages) {
- self.win.Root().Call("invokeFilterCallback", xeth.ToJSMessages(messages), id)
+ view.Call("messages", xeth.ToJSMessages(messages), id)
+ //self.win.Root().Call("invokeFilterCallback", xeth.ToJSMessages(messages), id)
}
id = self.filterManager.InstallFilter(filter)
return id