[gdm: 8/10] gdm-session-worker: Replace deprecated g_type_class_add_private()
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm: 8/10] gdm-session-worker: Replace deprecated g_type_class_add_private()
- Date: Tue, 13 Aug 2019 20:35:00 +0000 (UTC)
commit a5f06d7f960b7289c2bdaad45fdcebdb2319ff5e
Author: Robert Mader <robert mader posteo de>
Date: Thu Mar 14 00:10:11 2019 +0100
gdm-session-worker: Replace deprecated g_type_class_add_private()
daemon/gdm-session-worker.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 1193e7cd..93ae79c9 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -211,7 +211,8 @@ G_DEFINE_TYPE_WITH_CODE (GdmSessionWorker,
gdm_session_worker,
GDM_DBUS_TYPE_WORKER_SKELETON,
G_IMPLEMENT_INTERFACE (GDM_DBUS_TYPE_WORKER,
- worker_interface_init))
+ worker_interface_init)
+ G_ADD_PRIVATE (GdmSessionWorker))
/* adapted from glib script_execute */
static void
@@ -3460,8 +3461,6 @@ gdm_session_worker_class_init (GdmSessionWorkerClass *klass)
object_class->constructor = gdm_session_worker_constructor;
object_class->finalize = gdm_session_worker_finalize;
- g_type_class_add_private (klass, sizeof (GdmSessionWorkerPrivate));
-
g_object_class_install_property (object_class,
PROP_SERVER_ADDRESS,
g_param_spec_string ("server-address",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]