static guint sheet_column_signals[LAST_SIGNAL];
+static void g_sheet_column_base_init (gpointer g_class);
-
-static void g_sheet_column_base_init (gpointer g_class);
-
-
-inline GType
+GType
g_sheet_column_get_type (void)
{
static GType sheet_column_type = 0;
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);
}
}
-inline void
+void
g_sheet_column_set_width (GSheetColumn *column, glong col, gint size)
{
g_return_if_fail (G_IS_SHEET_COLUMN (column));
}
-inline gint
+gint
g_sheet_column_get_width (const GSheetColumn *column, glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), -1);
-inline 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);
-
-}
-
-inline gboolean
-g_sheet_column_get_sensitivity(const GSheetColumn *column,
+gboolean
+g_sheet_column_get_sensitivity (const GSheetColumn *column,
glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
}
-inline GtkSheetButton *
-g_sheet_column_get_button(const GSheetColumn *column,
+GtkSheetButton *
+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;
}
-inline GtkJustification
-g_sheet_column_get_justification(const GSheetColumn *column,
+GtkJustification
+g_sheet_column_get_justification (const GSheetColumn *column,
glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE);
return (G_SHEET_COLUMN_GET_IFACE (column)->get_justification) (column, col);
}
-inline gchar *
+gchar *
g_sheet_column_get_subtitle (const GSheetColumn *column, glong col)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (column), NULL);
-inline gint
+gint
g_sheet_column_get_left_text_column (const GSheetColumn *column,
glong col)
{
}
-inline gint
+gint
g_sheet_column_get_right_text_column (const GSheetColumn *column,
glong col)
{
}
-inline void
+void
g_sheet_column_set_left_text_column (const GSheetColumn *column,
glong col, gint i)
{
}
-inline void
+void
g_sheet_column_set_right_text_column (const GSheetColumn *column,
glong col, gint i)
{
(G_SHEET_COLUMN_GET_IFACE (column)->set_right_text_column) (column, col, i);
}
-inline glong
-g_sheet_column_get_column_count(const GSheetColumn *geo)
+glong
+g_sheet_column_get_column_count (const GSheetColumn *geo)
{
g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1);
return (G_SHEET_COLUMN_GET_IFACE (geo)->get_column_count) (geo);
}
-inline gint
-g_sheet_column_start_pixel(const GSheetColumn *geo, glong col)
+gint
+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 )
+ 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;
-
}
-inline void
-g_sheet_column_columns_changed(GSheetColumn *geo,
+void
+g_sheet_column_columns_changed (GSheetColumn *geo,
glong first, glong n_columns)
{
g_return_if_fail (G_IS_SHEET_COLUMN (geo));
first, n_columns);
}
-
-
-