X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fval-labs-dialog.c;h=7e558eec3f8fb62fe5cf88fda95fda02a5ebc890;hb=17cc22594edc09fa76e03777a9019ec579cd8a1a;hp=3d7ccef1754c31af23f489aeef8aaa8d4e0a62f7;hpb=2680a3ae85ffb2c15d2a81e48f1904e029170222;p=pspp-builds.git diff --git a/src/ui/gui/val-labs-dialog.c b/src/ui/gui/val-labs-dialog.c index 3d7ccef1..7e558eec 100644 --- a/src/ui/gui/val-labs-dialog.c +++ b/src/ui/gui/val-labs-dialog.c @@ -1,21 +1,18 @@ -/* - PSPPIRE --- A Graphical User Interface for PSPP - Copyright (C) 2005 Free Software Foundation +/* PSPPIRE - a graphical user interface for PSPP. + Copyright (C) 2005 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 - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ /* This module describes the behaviour of the Value Labels dialog box, @@ -371,6 +368,8 @@ val_labs_dialog_create (GladeXML *xml) struct val_labs_dialog *dialog = g_malloc (sizeof (*dialog)); + connect_help (xml); + dialog->window = get_widget_assert (xml,"val_labs_dialog"); dialog->value_entry = get_widget_assert (xml,"value_entry"); dialog->label_entry = get_widget_assert (xml,"label_entry"); @@ -520,7 +519,7 @@ val_labs_dialog_show (struct val_labs_dialog *dialog) value_labels = var_get_value_labels (dialog->pv); if (value_labels) - dialog->labs = val_labs_copy ( value_labels ); + dialog->labs = val_labs_clone ( value_labels ); else dialog->labs = val_labs_create ( var_get_width (dialog->pv));