X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-uniform-column.c;h=ff7ba574a928bc8259754466255592d43355399b;hb=e49bb94c97b852448da96c340802048011ee2ace;hp=be7a37f9085670e44e6a0d8e3d9c50c8640ca41d;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/lib/gtksheet/gsheet-uniform-column.c b/lib/gtksheet/gsheet-uniform-column.c index be7a37f9..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,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; }