summaryrefslogtreecommitdiff
path: root/libegg
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-21 12:25:13 +0800
committerlukefromdc <[email protected]>2019-01-22 04:36:49 +0000
commit10efec8be67f2254ecaf197801e67e59d6d2a467 (patch)
tree30202b0af7dd4b45a6f6b93694f8d50822477608 /libegg
parentf58095e30b2d3b624bff536c37540dffaf22dc8b (diff)
downloadcaja-10efec8be67f2254ecaf197801e67e59d6d2a467.tar.bz2
caja-10efec8be67f2254ecaf197801e67e59d6d2a467.tar.xz
[eel][libegg] Use G_DEFINE_TYPE_WITH_PRIVATE macro
Replace G_DEFINE_TYPE_WITH_CODE with G_DEFINE_TYPE_WITH_PRIVATE macro
Diffstat (limited to 'libegg')
-rw-r--r--libegg/eggsmclient.c5
1 files changed, 1 insertions, 4 deletions
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;