From fe851879c8c4059bc50ec47fb2c5c6155b9ffca1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 20 Apr 2020 22:32:12 +0200 Subject: Use stylesheet_editor_get_instance_private instead of G_TYPE_INSTANCE_GET_PRIVATE The latter is deprecated. Fixes a weird compiler warning. --- src/stylesheet_editor.c | 3 +-- 1 file changed, 1 insertion(+), 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)); } -- cgit v1.2.3