aboutsummaryrefslogtreecommitdiffstats
path: root/filter/score-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/score-editor.c')
-rw-r--r--filter/score-editor.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/filter/score-editor.c b/filter/score-editor.c
index f43c5a2c42..064272f321 100644
--- a/filter/score-editor.c
+++ b/filter/score-editor.c
@@ -49,18 +49,19 @@ score_editor_get_type (void)
static GtkType type = 0;
if (!type) {
- static const GtkTypeInfo info = {
- "ScoreEditor",
- sizeof (ScoreEditor),
+ static const GTypeInfo info = {
sizeof (ScoreEditorClass),
- (GtkClassInitFunc) score_editor_class_init,
- (GtkObjectInitFunc) score_editor_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
+ NULL, /* base_class_init */
+ NULL, /* base_class_finalize */
+ (GClassInitFunc) score_editor_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (ScoreEditor),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) score_editor_init,
};
- type = gtk_type_unique (RULE_TYPE_EDITOR, &info);
+ type = g_type_register_static (RULE_TYPE_EDITOR, "ScoreEditor", &info, 0);
}
return type;