From 7c9a7e0a126322fea64c7a4dfcd455400cafcbe8 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 4 Mar 2010 16:28:56 +0100 Subject: 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 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-string-parser.c b/libempathy-gtk/empathy-string-parser.c index 1f9f5f2ab..fa56a2d42 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 aec741add..78a822652 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 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); -- cgit v1.2.3