Tidy wins_create_summary()

This commit is contained in:
James Booth
2015-11-29 23:58:52 +00:00
parent 6e304bb867
commit d9435d3b65
9 changed files with 158 additions and 94 deletions

View File

@@ -328,3 +328,20 @@ _mucconfwin_form_field(ProfWin *window, char *tag, FormField *field)
break;
}
}
char*
mucconfwin_get_string(ProfMucConfWin *confwin)
{
assert(confwin != NULL);
GString *res = g_string_new("");
char *title = win_get_title((ProfWin*)confwin);
g_string_append(res, title);
free(title);
char *resstr = res->str;
g_string_free(res, FALSE);
return resstr;
}