mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 04:46:21 +00:00
Tidied form field autocompleters
This commit is contained in:
@@ -1653,7 +1653,10 @@ cmd_autocomplete_add(char *value)
|
|||||||
void
|
void
|
||||||
cmd_autocomplete_add_form_fields(DataForm *form)
|
cmd_autocomplete_add_form_fields(DataForm *form)
|
||||||
{
|
{
|
||||||
if (form) {
|
if (form == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GSList *fields = autocomplete_create_list(form->tag_ac);
|
GSList *fields = autocomplete_create_list(form->tag_ac);
|
||||||
GSList *curr_field = fields;
|
GSList *curr_field = fields;
|
||||||
while (curr_field) {
|
while (curr_field) {
|
||||||
@@ -1665,12 +1668,14 @@ cmd_autocomplete_add_form_fields(DataForm *form)
|
|||||||
}
|
}
|
||||||
g_slist_free_full(fields, free);
|
g_slist_free_full(fields, free);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cmd_autocomplete_remove_form_fields(DataForm *form)
|
cmd_autocomplete_remove_form_fields(DataForm *form)
|
||||||
{
|
{
|
||||||
if (form) {
|
if (form == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GSList *fields = autocomplete_create_list(form->tag_ac);
|
GSList *fields = autocomplete_create_list(form->tag_ac);
|
||||||
GSList *curr_field = fields;
|
GSList *curr_field = fields;
|
||||||
while (curr_field) {
|
while (curr_field) {
|
||||||
@@ -1682,7 +1687,6 @@ cmd_autocomplete_remove_form_fields(DataForm *form)
|
|||||||
}
|
}
|
||||||
g_slist_free_full(fields, free);
|
g_slist_free_full(fields, free);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cmd_autocomplete_remove(char *value)
|
cmd_autocomplete_remove(char *value)
|
||||||
|
|||||||
Reference in New Issue
Block a user