summaryrefslogtreecommitdiff
path: root/src/display-manager.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/display-manager.c
parent1382de7fe2a59265feca3ade6391230fc059524d (diff)
downloadlightdm-git-2ffa63aa307a4fe37b829a0b2d664933c49fc9b9.tar.gz
Remove use of deprecated g_type_class_add_private
Diffstat (limited to 'src/display-manager.c')
-rw-r--r--src/display-manager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/display-manager.c b/src/display-manager.c
index 8f3dd320..7cc64af9 100644
--- a/src/display-manager.c
+++ b/src/display-manager.c
@@ -42,7 +42,7 @@ struct DisplayManagerPrivate
gboolean stopped;
};
-G_DEFINE_TYPE (DisplayManager, display_manager, G_TYPE_OBJECT)
+G_DEFINE_TYPE_WITH_PRIVATE (DisplayManager, display_manager, G_TYPE_OBJECT)
DisplayManager *
display_manager_new (void)
@@ -185,8 +185,6 @@ display_manager_class_init (DisplayManagerClass *klass)
object_class->finalize = display_manager_finalize;
- g_type_class_add_private (klass, sizeof (DisplayManagerPrivate));
-
signals[SEAT_ADDED] =
g_signal_new (DISPLAY_MANAGER_SIGNAL_SEAT_ADDED,
G_TYPE_FROM_CLASS (klass),