func createColor(pattern string) C.GdkColor { var color C.GdkColor ptr := C.CString(pattern) defer C.free(unsafe.Pointer(ptr)) C.gdk_color_parse(C.toGstr(ptr), &color) return color }
func gstring(s *C.char) *C.gchar { return C.toGstr(s) }