Fixed bug reporting the significance of paired value t-test.
[pspp-builds.git] / lib / gtksheet / gsheet-uniform-column.c
index e7e6f4edc67ccbddc5bfe32c08c7470b87c563d3..5093da2fbef9a199d2993c5e5e3585fa5a4e5e9a 100644 (file)
@@ -1,9 +1,8 @@
 /* gsheet-uniform-column.c
- * 
+ *
  * PSPPIRE --- A Graphical User Interface for PSPP
  * Copyright (C) 2006  Free Software Foundation
- * Written by John Darrington
- * 
+ *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <config.h>
+
 #include "gsheet-column-iface.h"
 #include "gsheet-uniform-column.h"
 
@@ -59,7 +60,7 @@ g_sheet_uniform_column_get_type (void)
        NULL
       };
 
-      uniform_column_type = 
+      uniform_column_type =
        g_type_register_static (G_TYPE_OBJECT, "g_sheet_uniform_column",
                                &uniform_column_info, 0);
 
@@ -95,53 +96,53 @@ g_sheet_uniform_column_new (gint width, gint n_columns)
   return retval;
 }
 
-static gint 
-g_sheet_uniform_column_get_width(const GSheetColumn *geom, gint u)
+static gint
+g_sheet_uniform_column_get_width (const GSheetColumn *geom, glong u)
 {
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
-  
+  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN (geom);
+
   return ug->width;
 }
 
-static gint 
-g_sheet_uniform_column_get_sensitivity(const GSheetColumn *geom, gint u)
+static gboolean
+g_sheet_uniform_column_get_sensitivity (const GSheetColumn *geom, glong u)
 {
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
-  
+  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN (geom);
+
   return ug->is_sensitive;
 }
 
 
-static gint 
-g_sheet_uniform_column_get_visibility(const GSheetColumn *geom, gint u)
+static gboolean
+g_sheet_uniform_column_get_visibility (const GSheetColumn *geom, glong u)
 {
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
-  
+  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN (geom);
+
   return ug->is_visible;
 }
 
 
 static gchar *
-g_sheet_uniform_column_get_button_label(const GSheetColumn *geom, gint u)
+g_sheet_uniform_column_get_button_label (const GSheetColumn *geom, glong u)
 {
-  gchar *label = g_strdup_printf("%d", u);
+  gchar *label = g_strdup_printf ("%ld", u);
 
   return label;
 }
 
 
 static GtkJustification
-g_sheet_uniform_column_get_justification(const GSheetColumn *geom, gint u)
+g_sheet_uniform_column_get_justification (const GSheetColumn *geom, glong u)
 {
   return GTK_JUSTIFY_FILL;
 }
 
 
 
-static gint 
-g_sheet_uniform_column_get_column_count(const GSheetColumn *geom)
+static glong
+g_sheet_uniform_column_get_column_count (const GSheetColumn *geom)
 {
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
+  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN (geom);
 
   return ug->n_columns;
 }
@@ -164,8 +165,8 @@ g_sheet_uniform_column_init (GSheetUniformColumn *o)
 {
 }
 
-static void         
-g_sheet_uniform_column_finalize (GObject           *object)
+static void
+g_sheet_uniform_column_finalize (GObject *object)
 {
 }