From: John Darrington Date: Sat, 23 Jul 2016 07:03:58 +0000 (+0200) Subject: Allow the variable info dialog to paste more than one variables. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a43514a9292ea34b14f1ed79c1f95bc1b5c63628;p=pspp Allow the variable info dialog to paste more than one variables. Fixes bug #48596 --- diff --git a/NEWS b/NEWS index 7391ff4cc5..59ed72b0af 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,9 @@ Changes from 0.10.1 to 0.10.2: the colour used for the dataset is now black. The previous default from the Tango palette was too faint to see easily. + * The varible info dialog could previously only paste a single variable. + Now it can paste multiple variables. + * Bug fixes, including the following: - T-test with independent samples GUI crashed with string diff --git a/src/ui/gui/psppire-dialog-action-var-info.c b/src/ui/gui/psppire-dialog-action-var-info.c index 998f7bb45c..dd2c9aefd2 100644 --- a/src/ui/gui/psppire-dialog-action-var-info.c +++ b/src/ui/gui/psppire-dialog-action-var-info.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation + Copyright (C) 2007, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Free Software Foundation This program is free software: you can redistribute it and/or modify @@ -52,7 +52,7 @@ treeview_item_selected (gpointer data) GtkTreeView *tv = GTK_TREE_VIEW (pda->source); GtkTreeSelection *selection = gtk_tree_view_get_selection (tv); - return gtk_tree_selection_count_selected_rows (selection) == 1; + return gtk_tree_selection_count_selected_rows (selection) >= 1; } static gchar * @@ -105,7 +105,9 @@ generate_syntax (const PsppireDialogAction *act) { return generate_syntax__ (act, ""); } + + static void populate_output (GtkTreeSelection *selection, gpointer data) {