summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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