+gboolean
+is_currently_in_varview (GtkTreeModel *model, GtkTreeIter *iter, PsppireSelector *sel)
+{
+ gboolean ret = false;
+
+ /* First, fetch the variable from the source */
+
+ PsppireDictView *dv = PSPPIRE_DICT_VIEW (sel->source);
+
+ GtkTreePath *path = gtk_tree_model_get_path (model, iter);
+
+ gint *idx = gtk_tree_path_get_indices (path);
+
+ const struct variable *var = psppire_dict_get_variable (dv->dict, *idx);