-static void g_sheet_column_base_init (gpointer g_class);
+static void g_sheet_column_base_init (gpointer g_class);
GType
g_type_register_static (G_TYPE_INTERFACE, "GSheetColumn",
&sheet_column_info, 0);
- g_assert(sheet_column_type);
+ g_assert (sheet_column_type);
g_type_interface_add_prerequisite (sheet_column_type, G_TYPE_OBJECT);
}
gboolean
-g_sheet_column_get_visibility(const GSheetColumn *column,
+g_sheet_column_get_visibility (const GSheetColumn *column,
glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
}
gboolean
-g_sheet_column_get_sensitivity(const GSheetColumn *column,
+g_sheet_column_get_sensitivity (const GSheetColumn *column,
glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
GtkSheetButton *
-g_sheet_column_get_button(const GSheetColumn *column,
+g_sheet_column_get_button (const GSheetColumn *column,
glong col)
{
- GtkSheetButton *button = gtk_sheet_button_new();
+ GtkSheetButton *button = gtk_sheet_button_new ();
GSheetColumnIface *iface = G_SHEET_COLUMN_GET_IFACE (column);
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
if ( iface->get_button_label)
- button->label = iface->get_button_label(column, col);
+ button->label = iface->get_button_label (column, col);
return button;
}
GtkJustification
-g_sheet_column_get_justification(const GSheetColumn *column,
+g_sheet_column_get_justification (const GSheetColumn *column,
glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
}
glong
-g_sheet_column_get_column_count(const GSheetColumn *geo)
+g_sheet_column_get_column_count (const GSheetColumn *geo)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1);
}
gint
-g_sheet_column_start_pixel(const GSheetColumn *geo, glong col)
+g_sheet_column_start_pixel (const GSheetColumn *geo, glong col)
{
gint i;
gint start_pixel = 0;
g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1);
- g_return_val_if_fail (col <
- g_sheet_column_get_column_count(geo),-1);
+ g_return_val_if_fail (col < g_sheet_column_get_column_count (geo), -1);
for ( i = 0 ; i < col ; ++i )
{
- if ( g_sheet_column_get_visibility(geo, i))
- start_pixel += g_sheet_column_get_width(geo, i);
+ if ( g_sheet_column_get_visibility (geo, i))
+ start_pixel += g_sheet_column_get_width (geo, i);
}
return start_pixel;
void
-g_sheet_column_columns_changed(GSheetColumn *geo,
+g_sheet_column_columns_changed (GSheetColumn *geo,
glong first, glong n_columns)
{
g_return_if_fail (G_IS_SHEET_COLUMN (geo));