def METHOD_NAME(text_view):  
	buffer = text_view.get_buffer() 
	it = buffer.get_iter_at_mark(buffer.get_insert())
	k = it.get_line()
	it = buffer.get_iter_at_line(k)
	i1 = buffer.get_end_iter()
	text = buffer.get_text(it, i1, False)
	text = text.split('\n')
	return text[0]