summaryrefslogtreecommitdiff
path: root/redo/uitask.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-07 21:04:44 -0400
committerPietro Gagliardi <[email protected]>2014-07-07 21:04:44 -0400
commitcddf0417dc10fe2e094eba5e614ad7302fc4c207 (patch)
tree4f0e8b9d36f6555ae968ab0628805a0d201b7715 /redo/uitask.go
parent0c57837676eba65696a1e8175ff0b59ad1e00c37 (diff)
Added Go() and the GTK+ uitask functions.
Diffstat (limited to 'redo/uitask.go')
-rw-r--r--redo/uitask.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/redo/uitask.go b/redo/uitask.go
index c29470a..32f8faf 100644
--- a/redo/uitask.go
+++ b/redo/uitask.go
@@ -2,7 +2,23 @@
package ui
-// TODO Go, Start, Stop
+import (
+ "runtime"
+)
+
+// Go initializes package ui.
+// TODO write this bit
+func Go() error {
+ runtime.LockOSThread()
+ if err := uiinit(); err != nil {
+ return err
+ }
+ go uitask()
+ uimsgloop()
+ return nil
+}
+
+// TODO Stop
// This is the ui main loop.
// It is spawned by Go as a goroutine.