static guint sheet_column_signals[LAST_SIGNAL];
-
-
static void g_sheet_column_base_init (gpointer g_class);
-
GType
g_sheet_column_get_type (void)
{
-gboolean
-g_sheet_column_get_visibility (const GSheetColumn *column,
- glong col)
-{
- g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
-
- g_assert (G_SHEET_COLUMN_GET_IFACE (column)->get_visibility);
-
- return (G_SHEET_COLUMN_GET_IFACE (column)->get_visibility) (column,
- col);
-
-}
-
gboolean
g_sheet_column_get_sensitivity (const GSheetColumn *column,
glong col)
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 )
+ for (i = 0; i < col; ++i)
{
- if ( g_sheet_column_get_visibility (geo, i))
- start_pixel += g_sheet_column_get_width (geo, i);
+ start_pixel += g_sheet_column_get_width (geo, i);
}
return start_pixel;
-
}
first, n_columns);
}
-
-
-