aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2020-04-20 22:32:12 +0200
committerThomas White <taw@bitwiz.me.uk>2020-04-20 22:32:12 +0200
commitfe851879c8c4059bc50ec47fb2c5c6155b9ffca1 (patch)
treecc1ac788c6464aa667a787e3d5d019bff3644ea8
parent30ab736a239446d97a30904a90c53d4f1afe5e74 (diff)
Use stylesheet_editor_get_instance_private instead of G_TYPE_INSTANCE_GET_PRIVATE
The latter is deprecated. Fixes a weird compiler warning.
-rw-r--r--src/stylesheet_editor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stylesheet_editor.c b/src/stylesheet_editor.c
index 1cff58a..528777c 100644
--- a/src/stylesheet_editor.c
+++ b/src/stylesheet_editor.c
@@ -553,8 +553,7 @@ static void stylesheet_editor_finalize(GObject *obj)
static void stylesheet_editor_init(StylesheetEditor *se)
{
- se->priv = G_TYPE_INSTANCE_GET_PRIVATE(se, COLLOQUIUM_TYPE_STYLESHEET_EDITOR,
- StylesheetEditorPrivate);
+ se->priv = stylesheet_editor_get_instance_private(se);
gtk_widget_init_template(GTK_WIDGET(se));
}