X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ft-test-paired-samples.c;h=5f226d4e194a2963881d5ac05c09f3835ca04558;hb=01e18746832583769419e3f59824b80229321275;hp=68b45fcb5a6a934378305a5bc30cbddd19b03c17;hpb=7a8adbe2e7067f33767f934ec36c60549d50d2e2;p=pspp-builds.git diff --git a/src/ui/gui/t-test-paired-samples.c b/src/ui/gui/t-test-paired-samples.c index 68b45fcb..5f226d4e 100644 --- a/src/ui/gui/t-test-paired-samples.c +++ b/src/ui/gui/t-test-paired-samples.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2008 Free Software Foundation + Copyright (C) 2008, 2010 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -133,6 +133,8 @@ select_as_pair_member (GtkTreeIter source_iter, gtk_tree_model_get (tt_d->list_store, &dest_iter, 1, &v1, -1); } + else + v1 = NULL; if ( n_rows == 0 || v1 != NULL) { @@ -152,40 +154,12 @@ select_as_pair_member (GtkTreeIter source_iter, } } -#if 0 -/* Append a new column to TV at position C, and heading TITLE */ -static void -add_new_column (GtkTreeView *tv, const gchar *title, gint c) -{ - GtkTreeViewColumn *col = gtk_tree_view_column_new (); - GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); - - gtk_tree_view_column_set_min_width (col, 100); - gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE); - gtk_tree_view_column_set_resizable (col, TRUE); - - - gtk_tree_view_column_set_title (col, title); - - gtk_tree_view_column_pack_start (col, renderer, TRUE); - - gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_FIXED); - - gtk_tree_view_append_column (tv, col); - - gtk_tree_view_column_add_attribute (col, renderer, "text", c); -} - -#endif - - /* Pops up the dialog box */ void -t_test_paired_samples_dialog (GObject *o, gpointer data) +t_test_paired_samples_dialog (PsppireDataWindow *de) { struct tt_paired_samples_dialog tt_d; gint response; - PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data); PsppireVarStore *vs = NULL; @@ -248,7 +222,7 @@ t_test_paired_samples_dialog (GObject *o, gpointer data) case PSPPIRE_RESPONSE_PASTE: { gchar *syntax = generate_syntax (&tt_d); - paste_syntax_in_new_window (syntax); + paste_syntax_to_window (syntax); g_free (syntax); }