[giggle] Avoid some warnings because markup characters in tags/branches



commit 6a8f412ab1ec8846d256125c48715628d8ecee5d
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Apr 23 17:12:50 2010 +0200

    Avoid some warnings because markup characters in tags/branches

 src/giggle-revision-view.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/giggle-revision-view.c b/src/giggle-revision-view.c
index 48fccd6..9912f1d 100644
--- a/src/giggle-revision-view.c
+++ b/src/giggle-revision-view.c
@@ -391,6 +391,7 @@ revision_view_update_branches_label (GiggleRevisionView *view)
 	GiggleRef              *ref;
 	GList                  *branches;
 	GString                *str;
+	gchar                  *escaped_string;
 
 	priv = GET_PRIV (view);
 
@@ -410,8 +411,11 @@ revision_view_update_branches_label (GiggleRevisionView *view)
 
 			if (str->len)
 				g_string_append (str, ", ");
-				
-			g_string_append (str, giggle_ref_get_name (ref));
+
+			escaped_string = g_markup_escape_text (giggle_ref_get_name (ref), -1);
+			g_string_append (str, escaped_string);
+			g_free (escaped_string);
+
 			branches = branches->next;
 		}
 



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