GType psppire_button_flags_get_type (void);
-
-static void psppire_button_box_class_init (PsppireButtonBoxClass *);
-static void psppire_button_box_init (PsppireButtonBox *);
-
-
-GType
-psppire_button_box_get_type (void)
-{
- static GType button_box_type = 0;
-
- if (!button_box_type)
- {
- static const GTypeInfo button_box_info =
- {
- sizeof (PsppireButtonBoxClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_button_box_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireButtonBox),
- 0,
- (GInstanceInitFunc) psppire_button_box_init,
- };
-
- button_box_type = g_type_register_static (GTK_TYPE_BUTTON_BOX,
- "PsppireButtonBox", &button_box_info, 0);
- }
-
- return button_box_type;
-}
+G_DEFINE_TYPE (PsppireButtonBox, psppire_button_box, GTK_TYPE_BUTTON_BOX)
enum {
PROP_BUTTONS = 1,
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
-static void psppire_checkbox_treeview_init (PsppireCheckboxTreeview *cbtv);
-
-GType
-psppire_checkbox_treeview_get_type (void)
-{
- static GType psppire_checkbox_treeview_type = 0;
-
- if (!psppire_checkbox_treeview_type)
- {
- static const GTypeInfo psppire_checkbox_treeview_info =
- {
- sizeof (PsppireCheckboxTreeviewClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) NULL,
- (GClassFinalizeFunc) NULL,
- NULL,
- sizeof (PsppireCheckboxTreeview),
- 0,
- (GInstanceInitFunc) psppire_checkbox_treeview_init,
- };
-
- psppire_checkbox_treeview_type =
- g_type_register_static (GTK_TYPE_TREE_VIEW, "PsppireCheckboxTreeview",
- &psppire_checkbox_treeview_info, 0);
- }
-
- return psppire_checkbox_treeview_type;
-}
-
-
+G_DEFINE_TYPE (PsppireCheckboxTreeview, psppire_checkbox_treeview, GTK_TYPE_TREE_VIEW)
/* Callback for checkbox cells in the statistics tree view.
Toggles the checkbox. */
gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (cbtv), CHECKBOX_COLUMN_TOOLTIP);
}
+
+static void
+psppire_checkbox_treeview_class_init (PsppireCheckboxTreeviewClass *class)
+{
+}
#include "psppire-conf.h"
-static void psppire_conf_init (PsppireConf *conf);
-static void psppire_conf_class_init (PsppireConfClass *class);
+G_DEFINE_TYPE (PsppireConf, psppire_conf, G_TYPE_OBJECT)
static void psppire_conf_finalize (GObject *object);
static void psppire_conf_dispose (GObject *object);
static GObjectClass *parent_class = NULL;
-
-GType
-psppire_conf_get_type (void)
-{
- static GType conf_type = 0;
-
- if (!conf_type)
- {
- static const GTypeInfo conf_info =
- {
- sizeof (PsppireConfClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_conf_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireConf),
- 0,
- (GInstanceInitFunc) psppire_conf_init,
- };
-
- conf_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireConf",
- &conf_info, 0);
- }
-
- return conf_type;
-}
-
-
static void
conf_read (PsppireConf *conf)
{
#include <gettext.h>
#define _(msgid) gettext (msgid)
-static void psppire_data_editor_class_init (PsppireDataEditorClass *klass);
-static void psppire_data_editor_init (PsppireDataEditor *de);
-
static void refresh_entry (PsppireDataEditor *);
-GType
-psppire_data_editor_get_type (void)
-{
- static GType de_type = 0;
-
- if (!de_type)
- {
- static const GTypeInfo de_info =
- {
- sizeof (PsppireDataEditorClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_data_editor_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireDataEditor),
- 0,
- (GInstanceInitFunc) psppire_data_editor_init,
- };
-
- de_type = g_type_register_static (GTK_TYPE_NOTEBOOK, "PsppireDataEditor",
- &de_info, 0);
- }
-
- return de_type;
-}
+G_DEFINE_TYPE (PsppireDataEditor, psppire_data_editor, GTK_TYPE_NOTEBOOK)
static GObjectClass * parent_class = NULL;
#include "value-variant.h"
-static void psppire_data_store_init (PsppireDataStore *data_store);
-static void psppire_data_store_class_init (PsppireDataStoreClass *class);
-
static void psppire_data_store_finalize (GObject *object);
static void psppire_data_store_dispose (GObject *object);
iface->iter_parent = NULL;
}
-
-GType
-psppire_data_store_get_type (void)
-{
- static GType data_store_type = 0;
-
- if (!data_store_type)
- {
- static const GTypeInfo data_store_info =
- {
- sizeof (PsppireDataStoreClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_data_store_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireDataStore),
- 0,
- (GInstanceInitFunc) psppire_data_store_init,
- };
-
- static const GInterfaceInfo tree_model_info = {
- (GInterfaceInitFunc) __tree_model_init,
- NULL,
- NULL
- };
-
- data_store_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireDataStore",
- &data_store_info, 0);
-
- g_type_add_interface_static (data_store_type, GTK_TYPE_TREE_MODEL,
- &tree_model_info);
- }
-
- return data_store_type;
-}
-
+G_DEFINE_TYPE_WITH_CODE (PsppireDataStore, psppire_data_store, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
+ __tree_model_init))
static void
psppire_data_store_class_init (PsppireDataStoreClass *class)
struct session *the_session;
struct ll_list all_data_windows = LL_INITIALIZER (all_data_windows);
-static void psppire_data_window_class_init (PsppireDataWindowClass *class);
-static void psppire_data_window_init (PsppireDataWindow *data_editor);
-
-
static void psppire_data_window_iface_init (PsppireWindowIface *iface);
static void psppire_data_window_dispose (GObject *object);
GValue *value,
GParamSpec *pspec);
-GType
-psppire_data_window_get_type (void)
-{
- static GType psppire_data_window_type = 0;
-
- if (!psppire_data_window_type)
- {
- static const GTypeInfo psppire_data_window_info =
- {
- sizeof (PsppireDataWindowClass),
- NULL,
- NULL,
- (GClassInitFunc)psppire_data_window_class_init,
- (GClassFinalizeFunc) NULL,
- NULL,
- sizeof (PsppireDataWindow),
- 0,
- (GInstanceInitFunc) psppire_data_window_init,
- };
-
- static const GInterfaceInfo window_interface_info =
- {
- (GInterfaceInitFunc) psppire_data_window_iface_init,
- NULL,
- NULL
- };
-
- psppire_data_window_type =
- g_type_register_static (PSPPIRE_TYPE_WINDOW, "PsppireDataWindow",
- &psppire_data_window_info, 0);
-
- g_type_add_interface_static (psppire_data_window_type,
- PSPPIRE_TYPE_WINDOW_MODEL,
- &window_interface_info);
- }
-
- return psppire_data_window_type;
-}
+G_DEFINE_TYPE_WITH_CODE (PsppireDataWindow, psppire_data_window, PSPPIRE_TYPE_WINDOW,
+ G_IMPLEMENT_INTERFACE (PSPPIRE_TYPE_WINDOW_MODEL,
+ psppire_data_window_iface_init))
static GObjectClass *parent_class ;
};
}
-
-static void psppire_delimited_text_init (PsppireDelimitedText *text_file);
-static void psppire_delimited_text_class_init (PsppireDelimitedTextClass *class);
-
static void psppire_delimited_text_finalize (GObject *object);
static void psppire_delimited_text_dispose (GObject *object);
iface->iter_parent = __iter_parent;
}
-
-GType
-psppire_delimited_text_get_type (void)
-{
- static GType text_file_type = 0;
-
- if (!text_file_type)
- {
- static const GTypeInfo text_file_info =
- {
- sizeof (PsppireDelimitedTextClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_delimited_text_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireDelimitedText),
- 0,
- (GInstanceInitFunc) psppire_delimited_text_init,
- };
-
- static const GInterfaceInfo tree_model_info = {
- (GInterfaceInitFunc) __tree_model_init,
- NULL,
- NULL
- };
-
- text_file_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireDelimitedText",
- &text_file_info, 0);
-
- g_type_add_interface_static (text_file_type, GTK_TYPE_TREE_MODEL,
- &tree_model_info);
- }
-
- return text_file_type;
-}
-
+G_DEFINE_TYPE_WITH_CODE (PsppireDelimitedText, psppire_delimited_text, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
+ __tree_model_init))
static void
psppire_delimited_text_class_init (PsppireDelimitedTextClass *class)
#include "psppire-data-window.h"
#include "builder-wrapper.h"
-static void psppire_dialog_action_init (PsppireDialogAction *act);
-static void psppire_dialog_action_class_init (PsppireDialogActionClass *class);
-
static GObjectClass * parent_class = NULL;
-
static const gchar *
__get_name (GAction *act)
{
iface->activate = __activate;
}
-
-GType
-psppire_dialog_action_get_type (void)
-{
- static GType de_type = 0;
-
- if (!de_type)
- {
- static const GTypeInfo de_info =
- {
- sizeof (PsppireDialogActionClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_dialog_action_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireDialogAction),
- 0,
- (GInstanceInitFunc) psppire_dialog_action_init,
- };
-
-
- static const GInterfaceInfo ga_info = {
- (GInterfaceInitFunc) action_model_init,
- NULL,
- NULL
- };
-
-
- de_type = g_type_register_static (G_TYPE_OBJECT, "PsppireDialogAction",
- &de_info, G_TYPE_FLAG_ABSTRACT);
-
- g_type_add_interface_static (de_type, G_TYPE_ACTION, &ga_info);
- }
-
- return de_type;
-}
-
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (PsppireDialogAction, \
+ psppire_dialog_action, \
+ G_TYPE_OBJECT, \
+ G_IMPLEMENT_INTERFACE (G_TYPE_ACTION, \
+ action_model_init))
/* Properties */
enum
static const GTypeInfo dialog_info =
{
sizeof (PsppireDialogClass),
- (GBaseInitFunc) psppire_dialog_base_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_dialog_base_init,
NULL, /* base_finalize */
- (GClassInitFunc) psppire_dialog_class_init,
+ (GClassInitFunc) (void (*)(void)) psppire_dialog_class_init,
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (PsppireDialog),
0,
- (GInstanceInitFunc) psppire_dialog_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_dialog_init,
+ NULL /* value_table */
};
dialog_type = g_type_register_static (PSPPIRE_TYPE_WINDOW_BASE,
/* --- prototypes --- */
-static void psppire_dict_class_init (PsppireDictClass *class);
-static void psppire_dict_init (PsppireDict *dict);
static void psppire_dict_dispose (GObject *object);
static void dictionary_tree_model_init (GtkTreeModelIface *iface);
static guint signals [n_SIGNALS];
/* --- functions --- */
-/**
- * psppire_dict_get_type:
- * @returns: the type ID for accelerator groups.
- */
-GType
-psppire_dict_get_type (void)
-{
- static GType object_type = 0;
-
- if (!object_type)
- {
- static const GTypeInfo object_info = {
- sizeof (PsppireDictClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) psppire_dict_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireDict),
- 0, /* n_preallocs */
- (GInstanceInitFunc) psppire_dict_init,
- };
-
- static const GInterfaceInfo tree_model_info = {
- (GInterfaceInitFunc) dictionary_tree_model_init,
- NULL,
- NULL
- };
-
- static const GInterfaceInfo list_model_info = {
- (GInterfaceInitFunc) ssw_init_iface,
- NULL,
- NULL
- };
-
- object_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireDict",
- &object_info, 0);
-
- g_type_add_interface_static (object_type, GTK_TYPE_TREE_MODEL,
- &tree_model_info);
-
- g_type_add_interface_static (object_type, G_TYPE_LIST_MODEL,
- &list_model_info);
- }
-
- return object_type;
-}
+G_DEFINE_TYPE_WITH_CODE (PsppireDict, psppire_dict, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
+ dictionary_tree_model_init)
+ G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL,
+ ssw_init_iface))
static void
psppire_dict_class_init (PsppireDictClass *class)
static const GTypeInfo psppire_dict_view_info =
{
sizeof (PsppireDictViewClass),
- (GBaseInitFunc) psppire_dict_view_base_init,
- (GBaseFinalizeFunc) psppire_dict_view_base_finalize,
- (GClassInitFunc)psppire_dict_view_class_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_dict_view_base_init,
+ (GBaseFinalizeFunc) (void (*)(void)) psppire_dict_view_base_finalize,
+ (GClassInitFunc) (void (*)(void)) psppire_dict_view_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (PsppireDictView),
0,
- (GInstanceInitFunc) psppire_dict_view_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_dict_view_init,
+ NULL /* value_table */
};
psppire_dict_view_type =
n_SIGNALS
};
-static void psppire_keypad_class_init (PsppireKeypadClass *klass);
-static void psppire_keypad_init (PsppireKeypad *kp);
-
static guint keypad_signals [n_SIGNALS] = { 0 };
-GType
-psppire_keypad_get_type (void)
-{
- static GType kp_type = 0;
-
- if (!kp_type)
- {
- static const GTypeInfo kp_info =
- {
- sizeof (PsppireKeypadClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_keypad_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireKeypad),
- 0,
- (GInstanceInitFunc) psppire_keypad_init,
- };
-
- kp_type = g_type_register_static (GTK_TYPE_EVENT_BOX, "PsppireKeypad",
- &kp_info, 0);
- }
-
- return kp_type;
-}
+G_DEFINE_TYPE (PsppireKeypad, psppire_keypad, GTK_TYPE_EVENT_BOX)
static GObjectClass * parent_class = NULL;
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
-static void psppire_output_window_class_init (PsppireOutputWindowClass *class);
-static void psppire_output_window_init (PsppireOutputWindow *window);
-
-GType
-psppire_output_window_get_type (void)
-{
- static GType psppire_output_window_type = 0;
-
- if (!psppire_output_window_type)
- {
- static const GTypeInfo psppire_output_window_info =
- {
- sizeof (PsppireOutputWindowClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc)psppire_output_window_class_init,
- (GClassFinalizeFunc) NULL,
- NULL,
- sizeof (PsppireOutputWindow),
- 0,
- (GInstanceInitFunc) psppire_output_window_init,
- };
-
- psppire_output_window_type =
- g_type_register_static (PSPPIRE_TYPE_WINDOW, "PsppireOutputWindow",
- &psppire_output_window_info, 0);
- }
-
- return psppire_output_window_type;
-}
+G_DEFINE_TYPE (PsppireOutputWindow, psppire_output_window, PSPPIRE_TYPE_WINDOW)
static GObjectClass *parent_class;
NULL, /* class_data */
0,
0, /* n_preallocs */
- NULL
+ NULL,
+ NULL /* value_table */
};
dest_widget_type =
#include "psppire-selector.h"
-static void psppire_selector_class_init (PsppireSelectorClass *class);
-static void psppire_selector_init (PsppireSelector *selector);
-
+G_DEFINE_TYPE (PsppireSelector, psppire_selector, GTK_TYPE_BUTTON)
static void set_direction (PsppireSelector *, enum psppire_selector_dir);
g_signal_emit (selector, signals [DE_SELECTED], 0);
}
-
-GType
-psppire_selector_get_type (void)
-{
- static GType psppire_selector_type = 0;
-
- if (!psppire_selector_type)
- {
- static const GTypeInfo psppire_selector_info =
- {
- sizeof (PsppireSelectorClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc)psppire_selector_class_init,
- (GClassFinalizeFunc) NULL,
- NULL,
- sizeof (PsppireSelector),
- 0,
- (GInstanceInitFunc) psppire_selector_init,
- };
-
- psppire_selector_type =
- g_type_register_static (GTK_TYPE_BUTTON, "PsppireSelector",
- &psppire_selector_info, 0);
- }
-
- return psppire_selector_type;
-}
-
static GObjectClass * parent_class = NULL;
-
-
static void
dump_hash_entry (gpointer key, gpointer value, gpointer obj)
{
#include "psppire-spreadsheet-model.h"
#include "data/spreadsheet-reader.h"
-
-static void psppire_spreadsheet_model_init (PsppireSpreadsheetModel *
- spreadsheetModel);
-static void psppire_spreadsheet_model_class_init (PsppireSpreadsheetModelClass
- * class);
-
static void psppire_spreadsheet_model_finalize (GObject * object);
static void psppire_spreadsheet_model_dispose (GObject * object);
static GObjectClass *parent_class = NULL;
-
static void spreadsheet_tree_model_init (GtkTreeModelIface * iface);
-
-GType
-psppire_spreadsheet_model_get_type (void)
-{
- static GType object_type = 0;
-
- if (!object_type)
- {
- static const GTypeInfo spreadsheet_model_info = {
- sizeof (PsppireSpreadsheetModelClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_spreadsheet_model_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireSpreadsheetModel),
- 0,
- (GInstanceInitFunc) psppire_spreadsheet_model_init,
- };
-
- static const GInterfaceInfo tree_model_info = {
- (GInterfaceInitFunc) spreadsheet_tree_model_init,
- NULL,
- NULL
- };
-
- object_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireSpreadsheetModel",
- &spreadsheet_model_info, 0);
-
- g_type_add_interface_static (object_type, GTK_TYPE_TREE_MODEL,
- &tree_model_info);
- }
-
- return object_type;
-}
-
+G_DEFINE_TYPE_WITH_CODE (PsppireSpreadsheetModel,\
+ psppire_spreadsheet_model,\
+ G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
+ spreadsheet_tree_model_init))
/* Properties */
enum
| G_PARAM_WRITABLE);
parent_class = g_type_class_peek_parent (class);
+
object_class = (GObjectClass *) class;
object_class->set_property = psppire_spreadsheet_model_set_property;
static const GTypeInfo psppire_syntax_window_info =
{
sizeof (PsppireSyntaxWindowClass),
- (GBaseInitFunc) psppire_syntax_window_base_init,
- (GBaseFinalizeFunc) psppire_syntax_window_base_finalize,
- (GClassInitFunc)psppire_syntax_window_class_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_syntax_window_base_init,
+ (GBaseFinalizeFunc) (void (*)(void)) psppire_syntax_window_base_finalize,
+ (GClassInitFunc) (void (*)(void)) psppire_syntax_window_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (PsppireSyntaxWindow),
0,
- (GInstanceInitFunc) psppire_syntax_window_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_syntax_window_init,
+ NULL /* value_table */
};
static const GInterfaceInfo window_interface_info =
{
- (GInterfaceInitFunc) psppire_syntax_window_iface_init,
+ (GInterfaceInitFunc) (void (*)(void)) psppire_syntax_window_iface_init,
NULL,
NULL
};
};
}
-
-static void psppire_text_file_init (PsppireTextFile *text_file);
-static void psppire_text_file_class_init (PsppireTextFileClass *class);
-
static void psppire_text_file_finalize (GObject *object);
static void psppire_text_file_dispose (GObject *object);
iface->iter_parent = __iter_parent;
}
-
-GType
-psppire_text_file_get_type (void)
-{
- static GType text_file_type = 0;
-
- if (!text_file_type)
- {
- static const GTypeInfo text_file_info =
- {
- sizeof (PsppireTextFileClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_text_file_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireTextFile),
- 0,
- (GInstanceInitFunc) psppire_text_file_init,
- };
-
- static const GInterfaceInfo tree_model_info = {
- (GInterfaceInitFunc) __tree_model_init,
- NULL,
- NULL
- };
-
- text_file_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireTextFile",
- &text_file_info, 0);
-
- g_type_add_interface_static (text_file_type, GTK_TYPE_TREE_MODEL,
- &tree_model_info);
- }
-
- return text_file_type;
-}
-
+G_DEFINE_TYPE_WITH_CODE (PsppireTextFile, psppire_text_file, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
+ __tree_model_init))
static void
psppire_text_file_class_init (PsppireTextFileClass *class)
static void psppire_val_chooser_realize (GtkWidget *w);
-
-
GType
psppire_val_chooser_get_type (void)
{
static const GTypeInfo psppire_val_chooser_info =
{
sizeof (PsppireValChooserClass),
- (GBaseInitFunc) psppire_val_chooser_base_init,
- (GBaseFinalizeFunc) psppire_val_chooser_base_finalize,
- (GClassInitFunc)psppire_val_chooser_class_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_val_chooser_base_init,
+ (GBaseFinalizeFunc) (void (*)(void)) psppire_val_chooser_base_finalize,
+ (GClassInitFunc) (void (*)(void)) psppire_val_chooser_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (PsppireValChooser),
0,
- (GInstanceInitFunc) psppire_val_chooser_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_val_chooser_init,
+ NULL /* value_table */
};
psppire_val_chooser_type =
static const GTypeInfo psppire_var_view_info =
{
sizeof (PsppireVarViewClass),
- (GBaseInitFunc) psppire_var_view_base_init,
- (GBaseFinalizeFunc) psppire_var_view_base_finalize,
- (GClassInitFunc)psppire_var_view_class_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_var_view_base_init,
+ (GBaseFinalizeFunc) (void (*)(void)) psppire_var_view_base_finalize,
+ (GClassInitFunc) (void (*)(void)) psppire_var_view_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (PsppireVarView),
0,
- (GInstanceInitFunc) psppire_var_view_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_var_view_init,
+ NULL /* value_table */
};
static const GInterfaceInfo var_view_model_info = {
- (GInterfaceInitFunc) model_init, /* Fill this in */
+ (GInterfaceInitFunc) (void (*)(void)) model_init, /* Fill this in */
NULL,
NULL
};
#include "psppire-window-register.h"
-static void psppire_window_register_init (PsppireWindowRegister *window_register);
-static void psppire_window_register_class_init (PsppireWindowRegisterClass *class);
-
static void psppire_window_register_finalize (GObject *object);
static void psppire_window_register_dispose (GObject *object);
static guint signals [n_SIGNALS];
-GType
-psppire_window_register_get_type (void)
-{
- static GType window_register_type = 0;
-
- if (!window_register_type)
- {
- static const GTypeInfo window_register_info =
- {
- sizeof (PsppireWindowRegisterClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) psppire_window_register_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (PsppireWindowRegister),
- 0,
- (GInstanceInitFunc) psppire_window_register_init,
- };
-
- window_register_type = g_type_register_static (G_TYPE_OBJECT,
- "PsppireWindowRegister",
- &window_register_info, 0);
- }
-
- return window_register_type;
-}
-
+G_DEFINE_TYPE (PsppireWindowRegister, psppire_window_register, G_TYPE_OBJECT)
static void
psppire_window_register_finalize (GObject *object)
static const GTypeInfo psppire_window_info =
{
sizeof (PsppireWindowClass),
- (GBaseInitFunc) psppire_window_base_init,
+ (GBaseInitFunc) (void (*)(void)) psppire_window_base_init,
(GBaseFinalizeFunc) NULL,
- (GClassInitFunc) psppire_window_class_init,
+ (GClassInitFunc) (void (*)(void)) psppire_window_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (PsppireWindow),
0,
- (GInstanceInitFunc) psppire_window_init,
+ (GInstanceInitFunc) (void (*)(void)) psppire_window_init,
+ NULL /* value_table */
};
psppire_window_type =
NULL, /* class_data */
0,
0, /* n_preallocs */
- NULL
+ NULL,
+ NULL /* value_table */
};
window_model_type =