Use gtk_text_buffer_get_slice()

This commit is contained in:
Yevgen Muntyan 2006-06-09 14:27:35 -05:00
parent 79ef757208
commit bc4bf98bf4
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ text_func (MSValue **args,
GtkTextIter start, end;
char *content;
gtk_text_buffer_get_bounds (buffer, &start, &end);
content = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
content = gtk_text_buffer_get_slice (buffer, &start, &end, TRUE);
result = ms_value_take_string (content);
}
else

View File

@ -1095,7 +1095,7 @@ text_view_to_item (GtkTextView *view,
buffer = gtk_text_view_get_buffer (view);
gtk_text_buffer_get_bounds (buffer, &start, &end);
text = gtk_text_buffer_get_text (buffer, &start, &end, TRUE);
text = gtk_text_buffer_get_slice (buffer, &start, &end, TRUE);
if (!text[0])
{