From 10efec8be67f2254ecaf197801e67e59d6d2a467 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Mon, 21 Jan 2019 12:25:13 +0800 Subject: [eel][libegg] Use G_DEFINE_TYPE_WITH_PRIVATE macro Replace G_DEFINE_TYPE_WITH_CODE with G_DEFINE_TYPE_WITH_PRIVATE macro --- libegg/eggsmclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libegg/eggsmclient.c') diff --git a/libegg/eggsmclient.c b/libegg/eggsmclient.c index 72432555..c404349c 100644 --- a/libegg/eggsmclient.c +++ b/libegg/eggsmclient.c @@ -46,10 +46,7 @@ struct _EggSMClientPrivate GKeyFile *state_file; }; -#define EGG_SM_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_TYPE_SM_CLIENT, EggSMClientPrivate)) - -G_DEFINE_TYPE_WITH_CODE (EggSMClient, egg_sm_client, G_TYPE_OBJECT, - G_ADD_PRIVATE (EggSMClient)) +G_DEFINE_TYPE_WITH_PRIVATE (EggSMClient, egg_sm_client, G_TYPE_OBJECT) static EggSMClient *global_client; static EggSMClientMode global_client_mode = EGG_SM_CLIENT_MODE_NORMAL; -- cgit v1.2.1