]> git.0d.be Git - empathy.git/commitdiff
Add a comment explaining what does empathy_add_link_markup, and don't make parser...
authorXavier Claessens <xclaesse@gmail.com>
Thu, 4 Mar 2010 15:28:56 +0000 (16:28 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Thu, 4 Mar 2010 15:28:56 +0000 (16:28 +0100)
libempathy-gtk/empathy-string-parser.c
libempathy-gtk/empathy-string-parser.h

index 1f9f5f2ab8d76a6b2c7276511fce785cf67146c0..fa56a2d4270f8417a6f8739f266d0820097f2395 100644 (file)
@@ -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}
index aec741add40cbaee050575675b747a8718844264..78a822652a1b6645f80fd9877415f61e93e6b9f4 100644 (file)
@@ -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);