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 @@ -44,9 +44,7 @@ struct _EggSMClientPrivate {
4444 GKeyFile * state_file ;
4545};
4646
47- #define EGG_SM_CLIENT_GET_PRIVATE (o ) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_TYPE_SM_CLIENT, EggSMClientPrivate))
48-
49- G_DEFINE_TYPE (EggSMClient , egg_sm_client , G_TYPE_OBJECT )
47+ G_DEFINE_TYPE_WITH_PRIVATE (EggSMClient , egg_sm_client , G_TYPE_OBJECT )
5048
5149static EggSMClient * global_client ;
5250static EggSMClientMode global_client_mode = EGG_SM_CLIENT_MODE_NORMAL ;
@@ -62,8 +60,6 @@ egg_sm_client_class_init (EggSMClientClass *klass)
6260{
6361 GObjectClass * object_class = G_OBJECT_CLASS (klass );
6462
65- g_type_class_add_private (klass , sizeof (EggSMClientPrivate ));
66-
6763 /**
6864 * EggSMClient::save_state:
6965 * @client: the client
@@ -399,7 +395,7 @@ egg_sm_client_is_resumed (EggSMClient *client)
399395GKeyFile *
400396egg_sm_client_get_state_file (EggSMClient * client )
401397{
402- EggSMClientPrivate * priv = EGG_SM_CLIENT_GET_PRIVATE (client );
398+ EggSMClientPrivate * priv = egg_sm_client_get_instance_private (client );
403399 char * state_file_path ;
404400 GError * err = NULL ;
405401
You can’t perform that action at this time.
0 commit comments