/* 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"
NULL
};
- uniform_column_type =
+ uniform_column_type =
g_type_register_static (G_TYPE_OBJECT, "g_sheet_uniform_column",
&uniform_column_info, 0);
return retval;
}
-static gint
-g_sheet_uniform_column_get_width(const GSheetColumn *geom, gint u, gpointer data)
+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, gpointer data)
+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, gpointer data)
+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, gpointer data)
+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, gpointer data)
+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, gpointer data)
+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;
}
{
}
-static void
-g_sheet_uniform_column_finalize (GObject *object)
+static void
+g_sheet_uniform_column_finalize (GObject *object)
{
}