diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2018-08-30 10:42:48 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2018-08-30 10:42:48 +1200 |
commit | 2ffa63aa307a4fe37b829a0b2d664933c49fc9b9 (patch) | |
tree | e82b1d59bc542fe5019da1e20933204714d1701e /src/session-config.c | |
parent | 1382de7fe2a59265feca3ade6391230fc059524d (diff) | |
download | lightdm-git-2ffa63aa307a4fe37b829a0b2d664933c49fc9b9.tar.gz |
Remove use of deprecated g_type_class_add_private
Diffstat (limited to 'src/session-config.c')
-rw-r--r-- | src/session-config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/session-config.c b/src/session-config.c index e1b56f0e..04b0f974 100644 --- a/src/session-config.c +++ b/src/session-config.c @@ -26,7 +26,7 @@ struct SessionConfigPrivate gboolean allow_greeter; }; -G_DEFINE_TYPE (SessionConfig, session_config, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (SessionConfig, session_config, G_TYPE_OBJECT) SessionConfig * session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error) @@ -120,6 +120,4 @@ session_config_class_init (SessionConfigClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = session_config_finalize; - - g_type_class_add_private (klass, sizeof (SessionConfigPrivate)); } |