- if (g_strncasecmp(rec->key, key, len) == 0)
- complist = g_list_insert_sorted(complist, g_strdup(rec->key), (GCompareFunc) g_istr_cmp);
- }
- g_slist_free(sets);
- return complist;
-}
-
-static GList *completion_get_bool_settings(const char *key)
-{
- GList *complist;
- GSList *tmp, *sets;
- int len;
-
- g_return_val_if_fail(key != NULL, NULL);
-
- sets = settings_get_sorted();
-
- len = strlen(key);
- complist = NULL;
- for (tmp = sets; tmp != NULL; tmp = tmp->next) {
- SETTINGS_REC *rec = tmp->data;
-
- if (rec->type == SETTING_TYPE_BOOLEAN &&