X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fval-labs-dialog.c;h=710d176653502ec876669733632802c03bedebb7;hb=c3ac5a8af9c449072c7e872ca70a78c1755ae309;hp=22f0dcd78f7541524979fd063f13ef7e4f1530d0;hpb=356c1209257f91eb08791e6b9ca72393fca6fcd0;p=pspp diff --git a/src/ui/gui/val-labs-dialog.c b/src/ui/gui/val-labs-dialog.c index 22f0dcd78f..710d176653 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, @@ -28,6 +25,7 @@ #include "helper.h" #include "val-labs-dialog.h" #include +#include struct val_labs_dialog @@ -399,39 +397,39 @@ val_labs_dialog_create (GladeXML *xml) gtk_tree_view_append_column (GTK_TREE_VIEW (dialog->treeview), column); - g_signal_connect (GTK_OBJECT (get_widget_assert (xml, "val_labs_cancel")), + g_signal_connect (get_widget_assert (xml, "val_labs_cancel"), "clicked", GTK_SIGNAL_FUNC (on_cancel), dialog); - g_signal_connect (GTK_OBJECT (dialog->window), "delete-event", + g_signal_connect (dialog->window, "delete-event", GTK_SIGNAL_FUNC (on_delete), dialog); - g_signal_connect (GTK_OBJECT (get_widget_assert (xml, "val_labs_ok")), + g_signal_connect (get_widget_assert (xml, "val_labs_ok"), "clicked", GTK_SIGNAL_FUNC (val_labs_ok), dialog); dialog->change_handler_id = - g_signal_connect (GTK_OBJECT (dialog->label_entry), + g_signal_connect (dialog->label_entry, "changed", GTK_SIGNAL_FUNC (on_label_entry_change), dialog); dialog->value_handler_id = - g_signal_connect (GTK_OBJECT (dialog->value_entry), + g_signal_connect (dialog->value_entry, "changed", GTK_SIGNAL_FUNC (on_value_entry_change), dialog); - g_signal_connect (GTK_OBJECT (dialog->change_button), + g_signal_connect (dialog->change_button, "clicked", GTK_SIGNAL_FUNC (on_change), dialog); - g_signal_connect (GTK_OBJECT (dialog->treeview), "cursor-changed", + g_signal_connect (dialog->treeview, "cursor-changed", GTK_SIGNAL_FUNC (on_select_row), dialog); - g_signal_connect (GTK_OBJECT (dialog->remove_button), "clicked", + g_signal_connect (dialog->remove_button, "clicked", GTK_SIGNAL_FUNC (on_remove), dialog); - g_signal_connect (GTK_OBJECT (dialog->add_button), "clicked", + g_signal_connect (dialog->add_button, "clicked", GTK_SIGNAL_FUNC (on_add), dialog); dialog->labs = 0; @@ -522,7 +520,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));