From bc4bf98bf430ccaae5874404c0a53cfa125bd1c1 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Fri, 9 Jun 2006 14:27:35 -0500 Subject: [PATCH] Use gtk_text_buffer_get_slice() --- moo/mooutils/mooscript/mooscript-zenity.c | 2 +- moo/mooutils/mooutils-treeview.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/mooutils/mooscript/mooscript-zenity.c b/moo/mooutils/mooscript/mooscript-zenity.c index 3b2b954b..85f6adce 100644 --- a/moo/mooutils/mooscript/mooscript-zenity.c +++ b/moo/mooutils/mooscript/mooscript-zenity.c @@ -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 diff --git a/moo/mooutils/mooutils-treeview.c b/moo/mooutils/mooutils-treeview.c index 5acfa832..db37d968 100644 --- a/moo/mooutils/mooutils-treeview.c +++ b/moo/mooutils/mooutils-treeview.c @@ -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]) {