diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-string-parser.c | 2 | ||||
-rw-r--r-- | 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 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 <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); |