summaryrefslogtreecommitdiff
path: root/src/freebsd
diff options
context:
space:
mode:
authorChristian Kellner <christian@kellner.me>2019-02-21 12:09:06 +0100
committerChristian Kellner <christian@kellner.me>2019-02-21 12:09:06 +0100
commit9b7ce3dea303f4a581c4e3ef1a0508b739711c41 (patch)
tree42b583a99dfabaf21e6e61841201f113f8a601a9 /src/freebsd
parent8da188b30351a252de2405b09698dd61d53eb606 (diff)
downloadupower-9b7ce3dea303f4a581c4e3ef1a0508b739711c41.tar.gz
Replace use of G_TYPE_INSTANCE_GET_PRIVATE
G_TYPE_INSTANCE_GET_PRIVATE has been deprecated since glib version 2.58 and should be replaced with the xxx_get_instance_private (obj) which is generated by G_ADD_PRIVATE.
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/up-backend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/freebsd/up-backend.c b/src/freebsd/up-backend.c
index 90f578a..2496f0a 100644
--- a/src/freebsd/up-backend.c
+++ b/src/freebsd/up-backend.c
@@ -54,8 +54,6 @@ static gboolean up_backend_acpi_devd_notify (UpBackend *backend, const gchar *sy
static gboolean up_backend_create_new_device (UpBackend *backend, UpAcpiNative *native);
static void up_backend_lid_coldplug (UpBackend *backend);
-#define UP_BACKEND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UP_TYPE_BACKEND, UpBackendPrivate))
-
struct UpBackendPrivate
{
UpDaemon *daemon;
@@ -412,7 +410,7 @@ up_backend_class_init (UpBackendClass *klass)
static void
up_backend_init (UpBackend *backend)
{
- backend->priv = UP_BACKEND_GET_PRIVATE (backend);
+ backend->priv = up_backend_get_instance_private (backend);
backend->priv->handle_map = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, (GDestroyNotify) g_object_unref);
backend->priv->config = up_config_new ();
backend->priv->seat_manager_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,