summaryrefslogtreecommitdiff
path: root/uitask_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-27 12:43:15 -0400
committerPietro Gagliardi <[email protected]>2014-04-27 12:43:15 -0400
commit6a2fb35d609ec5805dda89de9dc46cadb4466eea (patch)
tree9f2a0734be10df91d10cd6c63253aff280769899 /uitask_unix.go
parent6978961661c825388fa7c28f456ba71dd85fa908 (diff)
ui.Go() on GTK+ now reports the reason gtk_init() failed in its error return.
Diffstat (limited to 'uitask_unix.go')
-rw-r--r--uitask_unix.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/uitask_unix.go b/uitask_unix.go
index 7d68057..ccad346 100644
--- a/uitask_unix.go
+++ b/uitask_unix.go
@@ -15,8 +15,9 @@ func ui(main func()) error {
runtime.LockOSThread()
uitask = make(chan func())
- if gtk_init() != true {
- return fmt.Errorf("gtk_init failed (reason unknown; TODO)")
+ err := gtk_init()
+ if err != nil {
+ return fmt.Errorf("gtk_init() failed: %v", err)
}
// thanks to tristan and Daniel_S in irc.gimp.net/#gtk