[gitg] Use get_text instead of get_content for text diffs



commit bdcecc96b14857bedafc8af9116a8a97f2993791
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Dec 27 16:23:10 2013 +0100

    Use get_text instead of get_content for text diffs

 libgitg/gitg-diff-view-request-diff.vala |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-request-diff.vala b/libgitg/gitg-diff-view-request-diff.vala
index 4831d0f..37fa2dd 100644
--- a/libgitg/gitg-diff-view-request-diff.vala
+++ b/libgitg/gitg-diff-view-request-diff.vala
@@ -171,12 +171,8 @@ namespace Gitg
                {
                        builder.begin_object();
                        {
-                               var content = line.get_content();
-
-                               var sc = ((string)content)[0:content.length];
-
                                builder.set_member_name("type").add_int_value((int)line.get_origin());
-                               builder.set_member_name("content").add_string_value(sc);
+                               builder.set_member_name("content").add_string_value(line.get_text());
                        }
                        builder.end_object();
                }


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