diff options
author | Wu Xiaotian <yetist@gmail.com> | 2019-01-21 12:25:13 +0800 |
---|---|---|
committer | lukefromdc <lukefromdc@hushmail.com> | 2019-01-22 04:36:49 +0000 |
commit | 10efec8be67f2254ecaf197801e67e59d6d2a467 (patch) | |
tree | 30202b0af7dd4b45a6f6b93694f8d50822477608 /libegg/eggsmclient.c | |
parent | f58095e30b2d3b624bff536c37540dffaf22dc8b (diff) | |
download | caja-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/eggsmclient.c')
-rw-r--r-- | libegg/eggsmclient.c | 5 |
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; |