X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-delimited-text.c;h=98f76b4301953f330f881d37b193111eb8893f52;hb=128192d98c77ce9399f90483f8a100942af68205;hp=975a7c82f44873454dbc528330144a0c38468d69;hpb=c07915a7d18df8432bb69bacd477f1d0d6276061;p=pspp diff --git a/src/ui/gui/psppire-delimited-text.c b/src/ui/gui/psppire-delimited-text.c index 975a7c82f4..98f76b4301 100644 --- a/src/ui/gui/psppire-delimited-text.c +++ b/src/ui/gui/psppire-delimited-text.c @@ -260,9 +260,13 @@ static gint __tree_model_iter_n_children (GtkTreeModel *tree_model, GtkTreeIter *iter) { - g_print ("%s:%d %s\n", __FILE__, __LINE__, __FUNCTION__); + PsppireDelimitedText *file = PSPPIRE_DELIMITED_TEXT (tree_model); + // g_print ("%s:%d %s\n", __FILE__, __LINE__, __FUNCTION__); g_assert (iter == NULL); - return 0; + + gint children = gtk_tree_model_iter_n_children (file->child, NULL); + + return children - file->first_line; } static GtkTreeModelFlags @@ -526,7 +530,7 @@ psppire_delimited_text_init (PsppireDelimitedText *text_file) } -PsppireDelimitedText * +GtkTreeModel * psppire_delimited_text_new (GtkTreeModel *child) { PsppireDelimitedText *retval =