obj->n_rows = n_rows;
}
+void
+psppire_empty_list_store_row_changed (PsppireEmptyListStore *obj,
+ gint row)
+{
+ GtkTreeModel *tree_model = GTK_TREE_MODEL (obj);
+ GtkTreeIter iter;
+ GtkTreePath *path;
+
+ path = gtk_tree_path_new_from_indices (row, -1);
+ gtk_tree_model_get_iter (tree_model, &iter, path);
+ gtk_tree_model_row_changed (tree_model, path, &iter);
+ gtk_tree_path_free (path);
+}
+
void
psppire_empty_list_store_row_inserted (PsppireEmptyListStore *obj,
gint row)
void psppire_empty_list_store_set_n_rows (PsppireEmptyListStore *,
gint n_rows);
+void psppire_empty_list_store_row_changed (PsppireEmptyListStore *,
+ gint row);
void psppire_empty_list_store_row_inserted (PsppireEmptyListStore *,
gint row);
void psppire_empty_list_store_row_deleted (PsppireEmptyListStore *,
}
}
+static void
+on_var_changed (PsppireDict *dict, glong row, PsppireVarSheet *var_sheet)
+{
+ PsppireEmptyListStore *store;
+
+ g_return_if_fail (dict == var_sheet->dict);
+
+ store = PSPPIRE_EMPTY_LIST_STORE (pspp_sheet_view_get_model (
+ PSPP_SHEET_VIEW (var_sheet)));
+ g_return_if_fail (store != NULL);
+
+ psppire_empty_list_store_row_changed (store, row);
+}
+
static void
on_var_inserted (PsppireDict *dict, glong row, PsppireVarSheet *var_sheet)
{
= g_signal_connect (dict, "backend-changed",
G_CALLBACK (on_backend_changed), var_sheet);
+ var_sheet->dict_signals[PSPPIRE_VAR_SHEET_VARIABLE_CHANGED]
+ = g_signal_connect (dict, "variable-changed",
+ G_CALLBACK (on_var_changed), var_sheet);
+
var_sheet->dict_signals[PSPPIRE_VAR_SHEET_VARIABLE_DELETED]
= g_signal_connect (dict, "variable-inserted",
G_CALLBACK (on_var_inserted), var_sheet);
enum
{
PSPPIRE_VAR_SHEET_BACKEND_CHANGED,
+ PSPPIRE_VAR_SHEET_VARIABLE_CHANGED,
PSPPIRE_VAR_SHEET_VARIABLE_INSERTED,
PSPPIRE_VAR_SHEET_VARIABLE_DELETED,
PSPPIRE_VAR_SHEET_N_SIGNALS