[empathy: 9/10] Add a comment explaining what does empathy_add_link_markup, and don't make parser list static



commit 7c9a7e0a126322fea64c7a4dfcd455400cafcbe8
Author: Xavier Claessens <xclaesse gmail com>
Date:   Thu Mar 4 16:28:56 2010 +0100

    Add a comment explaining what does empathy_add_link_markup, and don't make parser list static

 libempathy-gtk/empathy-string-parser.c |    2 +-
 libempathy-gtk/empathy-string-parser.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-string-parser.c b/libempathy-gtk/empathy-string-parser.c
index 1f9f5f2..fa56a2d 100644
--- a/libempathy-gtk/empathy-string-parser.c
+++ b/libempathy-gtk/empathy-string-parser.c
@@ -194,7 +194,7 @@ empathy_string_replace_escaped (const gchar *text,
 gchar *
 empathy_add_link_markup (const gchar *text)
 {
-	static EmpathyStringParser parsers[] = {
+	EmpathyStringParser parsers[] = {
 		{empathy_string_match_link, empathy_string_replace_link},
 		{empathy_string_match_all, empathy_string_replace_escaped},
 		{NULL, NULL}
diff --git a/libempathy-gtk/empathy-string-parser.h b/libempathy-gtk/empathy-string-parser.h
index aec741a..78a8226 100644
--- a/libempathy-gtk/empathy-string-parser.h
+++ b/libempathy-gtk/empathy-string-parser.h
@@ -82,6 +82,8 @@ empathy_string_replace_escaped (const gchar *text,
 				gpointer match_data,
 				gpointer user_data);
 
+/* Returns a new string with <a> html tag around links, and escape the rest.
+ * To be used with gtk_label_set_markup() for example */
 gchar *
 empathy_add_link_markup (const gchar *text);
 



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