diff --git a/gui/model.c b/gui/model.c index c59b3b56..1591e3ea 100644 --- a/gui/model.c +++ b/gui/model.c @@ -161,6 +161,12 @@ static gboolean _queue_model_iter_children(GtkTreeModel *model, return TRUE; } +static gboolean _queue_model_iter_has_child(GtkTreeModel *model, + GtkTreeIter *iter) +{ + return FALSE; +} + static void _queue_model_init(GuiQueueModel *model) { model->gqm_stamp = g_random_int(); @@ -191,6 +197,7 @@ static void _queue_tree_model_init(GtkTreeModelIface *iface) iface->get_value = _queue_model_get_value; iface->iter_next = _queue_model_iter_next; iface->iter_children = _queue_model_iter_children; + iface->iter_has_child = _queue_model_iter_has_child; } diff --git a/tests/gui/model.c b/tests/gui/model.c index eaadc439..a79ebbc6 100644 --- a/tests/gui/model.c +++ b/tests/gui/model.c @@ -89,6 +89,7 @@ static void test_empty() test_equal(gtk_tree_model_iter_next(model, &iter), false); test_equal(gtk_tree_model_iter_children(model, &iter, NULL), false); + test_equal(gtk_tree_model_iter_has_child(model, &iter), false); g_object_unref(model); } @@ -161,6 +162,8 @@ static void test_model() track = iter.user_data2; test_equal(track->tr_track, 1); + test_equal(gtk_tree_model_iter_has_child(model, &iter), false); + g_object_unref(model); }