- vv->n_lists++;
- vv->l_idx++;
- vv->list = xrealloc (vv->list, sizeof (*vv->list) * vv->n_lists);
- vv->list[vv->l_idx] = gtk_list_store_newv (vv->n_cols, vv->cols);
- g_object_ref (vv->list[vv->l_idx]);
- gtk_tree_view_set_model (GTK_TREE_VIEW (vv), GTK_TREE_MODEL (vv->list[vv->l_idx]));
-}
-
-gboolean
-psppire_var_view_set_current_model (PsppireVarView *vv, gint n)
-{
- if (n < 0 || n >= vv->n_lists)
- return FALSE;
-
- vv->l_idx = n;
-
- gtk_tree_view_set_model (GTK_TREE_VIEW (vv), GTK_TREE_MODEL (vv->list[vv->l_idx]));
-
- return TRUE;