X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.h;h=9a003f35a20e84941b6ec83cc92870295ac38e0d;hb=8460ab652427b0a8e739840166d8f0cfdad29f34;hp=4dd11cb7864822a52045ccd0fe3e9c8b03bfcff1;hpb=c65449a628d13f4683e7dc7125874608c7152017;p=pspp-builds.git diff --git a/src/ui/gui/dialog-common.h b/src/ui/gui/dialog-common.h index 4dd11cb7..9a003f35 100644 --- a/src/ui/gui/dialog-common.h +++ b/src/ui/gui/dialog-common.h @@ -25,9 +25,11 @@ /* Append the names of selected variables to STRING. TREEVIEW is the treeview containing the variables. + COLUMN is column in treeview containing the variables. DICT is the dictionary for those variables. */ -gint append_variable_names (GString *, PsppireDict *, GtkTreeView *); +gint append_variable_names (GString *string, PsppireDict *dict, + GtkTreeView *treeview, gint column); /* Returns the variable currently selected by the iterator @@ -65,5 +67,14 @@ void set_dest_model (GtkTreeView *dest, PsppireDict *dict); */ gboolean homogeneous_types (GtkWidget *source, GtkWidget *dest); +/* Returns TRUE if all of the variable(s) represented by the rows + currently selected by SOURCE widget, are numeric. DEST is ignored. + + In other words, this function when passed as the argument to + psppire_selector_set_allow, ensures that the selector selects only + numeric variables. +*/ +gboolean numeric_only (GtkWidget *source, GtkWidget *dest); + #endif