GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass*) class;
+ object_class = G_OBJECT_CLASS (class);
object_class->finalize = psppire_conf_finalize;
object_class->dispose = psppire_conf_dispose;
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass*) class;
+ object_class = G_OBJECT_CLASS (class);
object_class->finalize = psppire_data_store_finalize;
object_class->dispose = psppire_data_store_dispose;
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass*) class;
+ object_class = G_OBJECT_CLASS (class);
GParamSpec *first_line_spec =
g_param_spec_int ("first-line",
static void
psppire_spreadsheet_model_class_init (PsppireSpreadsheetModelClass * class)
{
- GObjectClass *object_class;
+ GObjectClass *object_class = G_OBJECT_CLASS (class);
GParamSpec *spreadsheet_spec = g_param_spec_pointer ("spreadsheet",
"Spreadsheet",
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass *) class;
object_class->set_property = psppire_spreadsheet_model_set_property;
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass*) class;
+ object_class = G_OBJECT_CLASS (class);
GParamSpec *maximum_lines_spec =
g_param_spec_int ("maximum-lines",
GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
- object_class = (GObjectClass*) class;
+ object_class = G_OBJECT_CLASS (class);
object_class->finalize = psppire_window_register_finalize;
object_class->dispose = psppire_window_register_dispose;