Commit 471e40a9 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

panel-session-manager: avoid deprecated g_type_class_add_private

parent e3bacc4a
Pipeline #30357 failed with stage
in 2 minutes and 17 seconds
......@@ -30,13 +30,11 @@ struct _PanelSessionManagerPrivate {
GDBusProxy *session_proxy;
};
G_DEFINE_TYPE (PanelSessionManager, panel_session_manager, G_TYPE_OBJECT);
G_DEFINE_TYPE_WITH_PRIVATE (PanelSessionManager, panel_session_manager, G_TYPE_OBJECT)
static void
panel_session_manager_class_init (PanelSessionManagerClass *klass)
{
g_type_class_add_private (klass,
sizeof (PanelSessionManagerPrivate));
}
static void
......@@ -44,9 +42,7 @@ panel_session_manager_init (PanelSessionManager *manager)
{
GError *error;
manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
PANEL_TYPE_SESSION_MANAGER,
PanelSessionManagerPrivate);
manager->priv = panel_session_manager_get_instance_private (manager);
error = NULL;
manager->priv->session_proxy = g_dbus_proxy_new_for_bus_sync (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment