gtk_text_view_get_text ()



Hi..
I'm new on this list (in GTK+ too;>) so here's about me:
I'm Krzysiek Szczuka, student from Poland.
I've wrote function that I think should be useful, so i'm sending it to You:

gchar * gtk_text_view_get_text (GtkTextView *text_view)
{
	GtkTextIter start, end;
	GtkTextBuffer *buff =
gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(widget, "textview_workers_memo")));

	gtk_text_buffer_get_start_iter(buff, &start);
	gtk_text_buffer_get_end_iter(buff, &end);
	
	return gtk_text_buffer_get_text(buff, &start, &end,
					 FALSE);
}

Regards!
ksz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]