- if ( var_num > 0 )
- {
- struct variable *variable =
- psppire_dict_get_variable (store->dict, var_num);
-
- g_assert (variable != NULL);
-
- posn = var_get_case_index (variable);
- }
- else
- {
- posn = 0;
- }
-
- psppire_case_file_insert_values (store->case_file, 1, posn);
-
- g_sheet_column_columns_changed (G_SHEET_COLUMN (store),
- var_num, 1);
-
- g_sheet_model_columns_inserted (G_SHEET_MODEL (store), var_num, 1);
-}
-
-
-static void
-dict_size_change_callback (GObject *obj,
- gint posn, gint adjustment, gpointer data)
-{
- PsppireDataStore *store ;
-
- g_return_if_fail (data);
-
- store = PSPPIRE_DATA_STORE (data);
-
- psppire_case_file_insert_values (store->case_file, adjustment, posn);
+ variable = psppire_dict_get_variable (store->dict, var_num);
+ posn = var_get_case_index (variable);
+ psppire_data_store_insert_value (store, var_get_width (variable), posn);