27 gboolean valid = gtk_tree_model_get_iter_first(
model, &iter);
30 char *candidate = NULL;
31 gtk_tree_model_get(
model, &iter, 0, &candidate, -1);
32 const gboolean found = !g_strcmp0(candidate, path);
34 if(found)
return TRUE;
35 valid = gtk_tree_model_iter_next(
model, &iter);
43 GtkListStore *
store = gtk_list_store_new(1, G_TYPE_STRING);
46 assert_true(
dt_tag_new(
"subjects|animals", &tagid));
50 assert_true(
dt_tag_new(
"subjects|animals|beetles", &tagid));
55 g_object_unref(
store);
60 const struct CMUnitTest tests[] = {
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
GtkTreeStore * store
its model, owned by the view
const float uint32_t state[4]
void dt_tagging_completion_refresh(GtkListStore *store)
static gboolean _store_contains(GtkTreeModel *model, const char *path)
static void test_refresh_exposes_new_hierarchical_tag(void **state)
Shared fixture for the src/database repository tests.
static int testdb_setup(void **state)
static int testdb_teardown(void **state)