summaryrefslogtreecommitdiff
path: root/gtkcasts_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-26 22:55:43 -0400
committerPietro Gagliardi <[email protected]>2014-04-26 22:55:43 -0400
commit6978961661c825388fa7c28f456ba71dd85fa908 (patch)
tree1249525c6c3aeece0846df61a77ccd02f478c9c3 /gtkcasts_unix.go
parent77297672dd67df94abbe23d494fa27638d0c15c3 (diff)
Changed fromgchar()/togchar() to fromgstr()/togstr() in the GTK+ code; the new names are more precise (though they don't operate on GStrings; that's not an issue here though).
Diffstat (limited to 'gtkcasts_unix.go')
-rw-r--r--gtkcasts_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtkcasts_unix.go b/gtkcasts_unix.go
index 287ed58..a2395a4 100644
--- a/gtkcasts_unix.go
+++ b/gtkcasts_unix.go
@@ -28,12 +28,12 @@ func togbool(b bool) C.gboolean {
return C.FALSE
}
-func fromgchar(what *C.gchar) string {
+func fromgstr(what *C.gchar) string {
cstr := (*C.char)(unsafe.Pointer(what))
return C.GoString(cstr)
}
-func togchar(what *C.char) *C.gchar {
+func togstr(what *C.char) *C.gchar {
return (*C.gchar)(unsafe.Pointer(what))
}