summaryrefslogtreecommitdiff
path: root/src/seat.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2018-08-30 10:42:48 +1200
committerRobert Ancell <robert.ancell@canonical.com>2018-08-30 10:42:48 +1200
commit2ffa63aa307a4fe37b829a0b2d664933c49fc9b9 (patch)
treee82b1d59bc542fe5019da1e20933204714d1701e /src/seat.c
parent1382de7fe2a59265feca3ade6391230fc059524d (diff)
downloadlightdm-git-2ffa63aa307a4fe37b829a0b2d664933c49fc9b9.tar.gz
Remove use of deprecated g_type_class_add_private
Diffstat (limited to 'src/seat.c')
-rw-r--r--src/seat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/seat.c b/src/seat.c
index d1ce4e4d..7e6c4462 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -73,6 +73,7 @@ struct SeatPrivate
static void seat_logger_iface_init (LoggerInterface *iface);
G_DEFINE_TYPE_WITH_CODE (Seat, seat, G_TYPE_OBJECT,
+ G_ADD_PRIVATE (Seat)
G_IMPLEMENT_INTERFACE (
LOGGER_TYPE, seat_logger_iface_init))
@@ -1872,8 +1873,6 @@ seat_class_init (SeatClass *klass)
object_class->finalize = seat_finalize;
- g_type_class_add_private (klass, sizeof (SeatPrivate));
-
signals[SESSION_ADDED] =
g_signal_new (SEAT_SIGNAL_SESSION_ADDED,
G_TYPE_FROM_CLASS (klass),