X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcorrelation-dialog.c;h=afc23447a7af3636e58b1b69b28f3864951e5b48;hb=758bb90bac15899ca7f18a55dc4f90e1345c7179;hp=82a053a3d3182db45efc9244849283e4956bfd9a;hpb=319711ff80e76a730ec26c86d67c0107143d8747;p=pspp-builds.git diff --git a/src/ui/gui/correlation-dialog.c b/src/ui/gui/correlation-dialog.c index 82a053a3..afc23447 100644 --- a/src/ui/gui/correlation-dialog.c +++ b/src/ui/gui/correlation-dialog.c @@ -74,7 +74,7 @@ dialog_state_valid (gpointer data) GtkTreeModel *liststore = gtk_tree_view_get_model (GTK_TREE_VIEW (corr->variables)); - if (gtk_tree_model_iter_n_children (liststore, NULL) >= 1) + if (gtk_tree_model_iter_n_children (liststore, NULL) > 1) return TRUE; return FALSE; @@ -83,13 +83,12 @@ dialog_state_valid (gpointer data) /* Pops up the Correlation dialog box */ void -correlation_dialog (gpointer data) +correlation_dialog (PsppireDataWindow *de) { struct correlation rd; gint response; GtkBuilder *xml = builder_new ("correlation.ui"); - PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data); PsppireVarStore *vs; GtkWidget *dialog = get_widget_assert (xml, "correlation-dialog"); @@ -131,7 +130,7 @@ correlation_dialog (gpointer data) case PSPPIRE_RESPONSE_PASTE: { gchar *syntax = generate_syntax (&rd); - paste_syntax_in_new_window (syntax); + paste_syntax_to_window (syntax); g_free (syntax); }