X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-uniform-column.c;h=5093da2fbef9a199d2993c5e5e3585fa5a4e5e9a;hb=5ee84736663824fe12474b78dace867e42893a14;hp=bb3c2e9f7fb2e0a6bfe7fcd85b782fa7e8b9c865;hpb=164d1274fcb70c54897f2a03fc7c27152ed4821a;p=pspp-builds.git diff --git a/lib/gtksheet/gsheet-uniform-column.c b/lib/gtksheet/gsheet-uniform-column.c index bb3c2e9f..5093da2f 100644 --- a/lib/gtksheet/gsheet-uniform-column.c +++ b/lib/gtksheet/gsheet-uniform-column.c @@ -1,8 +1,8 @@ /* gsheet-uniform-column.c - * + * * PSPPIRE --- A Graphical User Interface for PSPP * Copyright (C) 2006 Free Software Foundation - * + * * 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 @@ -12,12 +12,14 @@ * 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 + #include "gsheet-column-iface.h" #include "gsheet-uniform-column.h" @@ -58,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); @@ -94,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; } @@ -163,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) { }