Use gtk_text_buffer_get_slice()
This commit is contained in:
parent
79ef757208
commit
bc4bf98bf4
@ -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
|
||||
|
@ -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])
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user