X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-editor.c;h=072e55bad3dc54e2bffe5e50d589563123faa18c;hb=e93857e0338c2a71794db2b57e3659bbe6946240;hp=784a731900309e1a4fea2c8d55476c99bb3d2b59;hpb=806d578c678996f8c6e34d8d91331126eedb22ac;p=pspp-builds.git diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 784a7319..072e55ba 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyrigght (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008 Free Software Foundation, Inc. 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 @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include "psppire-data-editor.h" #include "psppire-var-sheet.h" @@ -171,14 +171,14 @@ on_var_row_clicked (PsppireDataEditor *de, gint row, gpointer data) Returns TRUE iff the move should be disallowed */ static gboolean traverse_cell_callback (GtkSheet *sheet, - gint row, gint column, - gint *new_row, gint *new_column, + GtkSheetCell *existing_cell, + GtkSheetCell *new_cell, gpointer data) { PsppireDataEditor *de = PSPPIRE_DATA_EDITOR (data); const PsppireDict *dict = de->data_store->dict; - if ( *new_column >= psppire_dict_get_var_cnt (dict)) + if ( new_cell->col >= psppire_dict_get_var_cnt (dict)) return TRUE; return FALSE; @@ -624,7 +624,6 @@ init_sheet (PsppireDataEditor *de, int i, gtk_container_add (GTK_CONTAINER (de->sheet_bin[i]), de->data_sheet[i]); - g_signal_connect (de->data_sheet[i], "traverse", G_CALLBACK (traverse_cell_callback), de);