From 6978961661c825388fa7c28f456ba71dd85fa908 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 26 Apr 2014 22:55:43 -0400 Subject: 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). --- gtkcasts_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtkcasts_unix.go') 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)) } -- cgit v1.2.3