X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.c;h=c61cb14a64a88ef4b3dba174f194277c5c552216;hb=fb4eeb650749403036535786a7d3660af0945e75;hp=7edbbe504920a594e22bba139dba576f9e45b213;hpb=baba1d26c655ad69ed8bf023e25b23eff1bb37d7;p=pspp-builds.git diff --git a/src/ui/gui/dialog-common.c b/src/ui/gui/dialog-common.c index 7edbbe50..c61cb14a 100644 --- a/src/ui/gui/dialog-common.c +++ b/src/ui/gui/dialog-common.c @@ -23,34 +23,6 @@ #include "helper.h" -/* A (*GtkTreeCellDataFunc) function. - This function expects TREEMODEL to hold G_TYPE_BOXED, which is a pointer to a variable. - It renders the name of the variable into CELL. -*/ -void -XXX_cell_var_name (GtkTreeViewColumn *tree_column, - GtkCellRenderer *cell, - GtkTreeModel *treemodel, - GtkTreeIter *iter, - gpointer data) -{ - const struct variable *var; - GValue value = {0}; - - GtkTreePath *path = gtk_tree_model_get_path (treemodel, iter); - - gtk_tree_model_get_value (treemodel, iter, 0, &value); - - gtk_tree_path_free (path); - - var = g_value_get_boxed (&value); - - g_value_unset (&value); - - g_object_set (cell, "text", var_get_name (var), NULL); -} - - /* Returns FALSE if the variables represented by the union of the rows currently selected by SOURCE widget, and contents of the DEST