aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 97fd95c1d..376d1f9d8 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1569,3 +1569,17 @@ empathy_receive_file_with_file_chooser (EmpathyFTHandler *handler)
gtk_widget_show (widget);
}
+
+void
+empathy_string_parser_substr (GString *string,
+ const gchar *text,
+ gssize len,
+ EmpathyStringParser *parsers)
+{
+ if (parsers != NULL && parsers[0] != NULL) {
+ parsers[0] (string, text, len, parsers + 1);
+ } else {
+ g_string_append_len (string, text, len);
+ }
+}
+