summaryrefslogtreecommitdiff
path: root/savers/gs-theme-engine.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-09-03 02:59:06 +0200
committerVictor Kareh <[email protected]>2019-10-02 06:48:58 -0400
commit52b125b071d75cd63fc4907597fdfb56c268d640 (patch)
tree1b5cb591ca61afd11fd81cc9bce7e70afcf17591 /savers/gs-theme-engine.c
parent09de46a8f9752b409af9d4d8c4c3790b4d362ca5 (diff)
downloadmate-screensaver-52b125b071d75cd63fc4907597fdfb56c268d640.tar.bz2
mate-screensaver-52b125b071d75cd63fc4907597fdfb56c268d640.tar.xz
gs-theme-engine: avoid 'g_type_class_add_private'
Diffstat (limited to 'savers/gs-theme-engine.c')
-rw-r--r--savers/gs-theme-engine.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/savers/gs-theme-engine.c b/savers/gs-theme-engine.c
index 84c3682..a4e4780 100644
--- a/savers/gs-theme-engine.c
+++ b/savers/gs-theme-engine.c
@@ -40,11 +40,9 @@ struct GSThemeEnginePrivate
gpointer reserved;
};
-#define GS_THEME_ENGINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GS_TYPE_THEME_ENGINE, GSThemeEnginePrivate))
-
static GObjectClass *parent_class = NULL;
-G_DEFINE_ABSTRACT_TYPE (GSThemeEngine, gs_theme_engine, GTK_TYPE_DRAWING_AREA)
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GSThemeEngine, gs_theme_engine, GTK_TYPE_DRAWING_AREA)
void
_gs_theme_engine_profile_log (const char *func,
@@ -131,14 +129,12 @@ gs_theme_engine_class_init (GSThemeEngineClass *klass)
object_class->set_property = gs_theme_engine_set_property;
widget_class->draw = gs_theme_engine_real_draw;
-
- g_type_class_add_private (klass, sizeof (GSThemeEnginePrivate));
}
static void
gs_theme_engine_init (GSThemeEngine *engine)
{
- engine->priv = GS_THEME_ENGINE_GET_PRIVATE (engine);
+ engine->priv = gs_theme_engine_get_instance_private (engine);
}
static void