X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-uniform-column.c;h=ff7ba574a928bc8259754466255592d43355399b;hb=ea16e1238bfd173fcf5650ddfba180f1c8e1db30;hp=0c1573b5d5717c4ba4fd46c2a24564fcda00d3bc;hpb=573068f2bdcd3f8796e9646668fed910a90f890b;p=pspp-builds.git diff --git a/lib/gtksheet/gsheet-uniform-column.c b/lib/gtksheet/gsheet-uniform-column.c index 0c1573b5..ff7ba574 100644 --- a/lib/gtksheet/gsheet-uniform-column.c +++ b/lib/gtksheet/gsheet-uniform-column.c @@ -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 + #include "gsheet-column-iface.h" #include "gsheet-uniform-column.h" @@ -121,13 +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) { - static gchar *label; - - g_free(label); - label = g_strdup_printf("%d", u); + gchar *label = g_strdup_printf("%d", u); return label; } @@ -136,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; }