Added autocompletion for form list-single values

This commit is contained in:
James Booth
2014-09-17 22:51:52 +01:00
parent 9bfc499078
commit e42a0847a2
3 changed files with 56 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ typedef struct form_field_t {
gboolean required;
GSList *values;
GSList *options;
Autocomplete value_ac;
} FormField;
typedef struct data_form_t {
@@ -219,5 +220,7 @@ form_field_type_t (*form_get_field_type)(DataForm *form, const char * const tag)
gboolean (*form_field_contains_option)(DataForm *form, const char * const tag, char *value);
int (*form_get_value_count)(DataForm *form, const char * const tag);
FormField* (*form_get_field_by_tag)(DataForm *form, const char * const tag);
Autocomplete (*form_get_value_ac)(DataForm *form, const char * const tag);
void (*form_reset_autocompleters)(DataForm *form);
#endif