aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-27 18:22:15 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-27 18:22:15 +0200
commitea193247f724465e16119be8f05b9d3a133ce160 (patch)
tree0561918f239ad494e00cda406f76c9d9e1207334 /src
parent62f12af48623c9f94c4508b1438bacdb65cdac12 (diff)
New way of defining StylesheetEditorPrivate
Diffstat (limited to 'src')
-rw-r--r--src/stylesheet_editor.c10
1 files 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 */