aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui_lib.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-07 22:35:47 +0800
committerobscuren <geffobscura@gmail.com>2014-08-07 22:35:47 +0800
commit4dc5855dfe08bd427e931d03f2c7ae9105688f67 (patch)
treeabcbab8afb0dfba8056f288a2e13bb08f0d32997 /ethereal/ui_lib.go
parenta915ba17edb0e8d2369d79036c0dc9585c0201ec (diff)
downloadgo-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar.gz
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar.bz2
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar.lz
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar.xz
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.tar.zst
go-tangerine-4dc5855dfe08bd427e931d03f2c7ae9105688f67.zip
Regular browser option added
Diffstat (limited to 'ethereal/ui_lib.go')
-rw-r--r--ethereal/ui_lib.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ethereal/ui_lib.go b/ethereal/ui_lib.go
index 6a62fa1df..42c5c9ad2 100644
--- a/ethereal/ui_lib.go
+++ b/ethereal/ui_lib.go
@@ -1,10 +1,11 @@
package main
import (
+ "path"
+
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
- "path"
)
type memAddr struct {
@@ -42,6 +43,10 @@ func (ui *UiLib) OpenHtml(path string) {
go app.run()
}
+func (ui *UiLib) OpenBrowser() {
+ ui.OpenHtml("file://" + ui.AssetPath("ext/home.html"))
+}
+
func (ui *UiLib) Muted(content string) {
component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml"))
if err != nil {