From ea193247f724465e16119be8f05b9d3a133ce160 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 27 Apr 2019 18:22:15 +0200 Subject: New way of defining StylesheetEditorPrivate --- src/stylesheet_editor.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/stylesheet_editor.c b/src/stylesheet_editor.c index b08a9c2..fd78198 100644 --- a/src/stylesheet_editor.c +++ b/src/stylesheet_editor.c @@ -35,11 +35,6 @@ #include "stylesheet_editor.h" - -G_DEFINE_TYPE_WITH_CODE(StylesheetEditor, stylesheet_editor, - GTK_TYPE_DIALOG, NULL) - - struct _sspriv { Stylesheet *stylesheet; @@ -47,6 +42,10 @@ struct _sspriv }; +G_DEFINE_TYPE_WITH_CODE(StylesheetEditor, stylesheet_editor, + GTK_TYPE_DIALOG, G_ADD_PRIVATE(StylesheetEditor)) + + enum selector_column { SEL_COL_FRIENDLY_NAME, @@ -486,7 +485,6 @@ void stylesheet_editor_class_init(StylesheetEditorClass *klass) gtk_widget_class_set_template_from_resource(widget_class, "/uk/me/bitwiz/Colloquium/stylesheeteditor.ui"); - g_type_class_add_private(gobject_class, sizeof(StylesheetEditorPrivate)); gobject_class->finalize = stylesheet_editor_finalize; /* Furniture */ -- cgit v1.2.3