Add casegrouper, to allow cases read from a given casereader to be
[pspp-builds.git] / lib / gtksheet / gsheet-uniform-column.c
index be7a37f9085670e44e6a0d8e3d9c50c8640ca41d..ff7ba574a928bc8259754466255592d43355399b 100644 (file)
@@ -2,7 +2,6 @@
  * 
  * 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
@@ -19,6 +18,8 @@
  * 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"
 
@@ -121,15 +122,10 @@ g_sheet_uniform_column_get_visibility(const GSheetColumn *geom, gint u)
 }
 
 
-static const gchar *
+static gchar *
 g_sheet_uniform_column_get_button_label(const GSheetColumn *geom, gint u)
 {
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
-  
-  static gchar *label; 
-
-  g_free(label);
-  label = g_strdup_printf("%d", u);
+  gchar *label = g_strdup_printf("%d", u);
 
   return label;
 }
@@ -138,10 +134,6 @@ g_sheet_uniform_column_get_button_label(const GSheetColumn *geom, gint u)
 static GtkJustification
 g_sheet_uniform_column_get_justification(const GSheetColumn *geom, gint u)
 {
-       /* 
-  GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);
-  */
-  
   return GTK_JUSTIFY_FILL;
 }