X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.h;h=4dd11cb7864822a52045ccd0fe3e9c8b03bfcff1;hb=c65449a628d13f4683e7dc7125874608c7152017;hp=b952e9cbab54d89373cd027f7e55255be2af2eda;hpb=ccf449c7dc6ecea4d94303ad1865512f3c149cc6;p=pspp-builds.git diff --git a/src/ui/gui/dialog-common.h b/src/ui/gui/dialog-common.h index b952e9cb..4dd11cb7 100644 --- a/src/ui/gui/dialog-common.h +++ b/src/ui/gui/dialog-common.h @@ -55,4 +55,15 @@ void cell_var_name (GtkTreeViewColumn *tree_column, void set_dest_model (GtkTreeView *dest, PsppireDict *dict); +/* Returns FALSE if the variables represented by the union of the rows + currently selected by SOURCE widget, and contents of the DEST + widget, are of different types. + + In other words, this function when passed as the argument to + psppire_selector_set_allow, ensures that the selector selects only + string variables, or only numeric variables, not a mixture. +*/ +gboolean homogeneous_types (GtkWidget *source, GtkWidget *dest); + + #endif