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=74efe9d6abd58f6fff46b61cb22b0c8614c9ee2a;hp=fec2f707723ff3971074f5cd699fa81ceac7974c;hpb=d4ff0e074d703dbeb8af5aa3ac470ddda5ebe301;p=pspp diff --git a/src/ui/gui/psppire-delimited-text.c b/src/ui/gui/psppire-delimited-text.c index fec2f70772..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