summaryrefslogtreecommitdiff
path: root/src/rhlibrary/main.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-21 15:22:27 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-21 15:22:27 (GMT)
commitdcd973603f916c8f47f908c2fb628e4219c42cb2 (patch)
tree78806a7bbc6c0c8149b5b9770d133aeeb5ff433d /src/rhlibrary/main.go
parent17778eeb680e7f140bdbe26a2355f0475d1d3bb9 (diff)
meter levels works now
Diffstat (limited to 'src/rhlibrary/main.go')
-rw-r--r--src/rhlibrary/main.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rhlibrary/main.go b/src/rhlibrary/main.go
index a6e37c4..4f339b9 100644
--- a/src/rhlibrary/main.go
+++ b/src/rhlibrary/main.go
@@ -25,13 +25,15 @@
package main
import (
- "code.helsinki.at/rhrd-go/player"
- "code.helsinki.at/rhrd-go/rddb"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
+
+ "code.helsinki.at/rhrd-go/player"
+ "code.helsinki.at/rhrd-go/rddb"
+ "github.com/gotk3/gotk3/gtk"
)
var (
@@ -75,6 +77,8 @@ func main() {
return
}
+ gtk.Init(nil)
+
db, err := rddb.NewDB(rdconf.Get().(string))
if err != nil {
rhl.Println("Error initializing Rivdenll DB:", err)
@@ -94,4 +98,6 @@ func main() {
return
}
mw.ShowAndRun()
+
+ gtk.Main()
}