static gpointer etss_initialize_value (ETableModel *etm, gint col) { ETableSubset *etss = (ETableSubset *) etm; return e_table_model_initialize_value (etss->source, col); }
static void * one_initialize_value (ETableModel *etm, int col) { ETableOne *one = E_TABLE_ONE(etm); if (one->source) return e_table_model_initialize_value (one->source, col); else return NULL; }
ETableModel * e_table_one_new (ETableModel *source) { ETableOne *eto; int col_count; int i; eto = g_object_new (E_TABLE_ONE_TYPE, NULL); eto->source = source; col_count = e_table_model_column_count(source); eto->data = g_new(void *, col_count); for (i = 0; i < col_count; i++) { eto->data[i] = e_table_model_initialize_value(source, i); } if (source) g_object_ref(source); return (ETableModel *) eto; }