File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ struct _EggSMClientPrivate {
4646 GKeyFile * state_file ;
4747};
4848
49- #define EGG_SM_CLIENT_GET_PRIVATE (o ) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_TYPE_SM_CLIENT, EggSMClientPrivate))
50-
51- G_DEFINE_TYPE (EggSMClient , egg_sm_client , G_TYPE_OBJECT )
49+ G_DEFINE_TYPE_WITH_PRIVATE (EggSMClient , egg_sm_client , G_TYPE_OBJECT )
5250
5351static EggSMClient * global_client ;
5452static EggSMClientMode global_client_mode = EGG_SM_CLIENT_MODE_NORMAL ;
@@ -64,8 +62,6 @@ egg_sm_client_class_init (EggSMClientClass *klass)
6462{
6563 GObjectClass * object_class = G_OBJECT_CLASS (klass );
6664
67- g_type_class_add_private (klass , sizeof (EggSMClientPrivate ));
68-
6965 /**
7066 * EggSMClient::save_state:
7167 * @client: the client
@@ -376,7 +372,7 @@ egg_sm_client_is_resumed (EggSMClient *client)
376372GKeyFile *
377373egg_sm_client_get_state_file (EggSMClient * client )
378374{
379- EggSMClientPrivate * priv = EGG_SM_CLIENT_GET_PRIVATE (client );
375+ EggSMClientPrivate * priv = egg_sm_client_get_instance_private (client );
380376 char * state_file_path ;
381377 GError * err = NULL ;
382378
You can’t perform that action at this time.
0 commit comments