diff options
author | Christian Kellner <christian@kellner.me> | 2019-02-21 12:09:06 +0100 |
---|---|---|
committer | Christian Kellner <christian@kellner.me> | 2019-02-21 12:09:06 +0100 |
commit | 9b7ce3dea303f4a581c4e3ef1a0508b739711c41 (patch) | |
tree | 42b583a99dfabaf21e6e61841201f113f8a601a9 /src/linux/up-device-idevice.c | |
parent | 8da188b30351a252de2405b09698dd61d53eb606 (diff) | |
download | upower-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/linux/up-device-idevice.c')
-rw-r--r-- | src/linux/up-device-idevice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/up-device-idevice.c b/src/linux/up-device-idevice.c index 0a00253..a808269 100644 --- a/src/linux/up-device-idevice.c +++ b/src/linux/up-device-idevice.c @@ -49,7 +49,6 @@ struct UpDeviceIdevicePrivate }; G_DEFINE_TYPE_WITH_PRIVATE (UpDeviceIdevice, up_device_idevice, UP_TYPE_DEVICE) -#define UP_DEVICE_IDEVICE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UP_TYPE_DEVICE_IDEVICE, UpDeviceIdevicePrivate)) static gboolean up_device_idevice_refresh (UpDevice *device); @@ -347,7 +346,7 @@ out: static void up_device_idevice_init (UpDeviceIdevice *idevice) { - idevice->priv = UP_DEVICE_IDEVICE_GET_PRIVATE (idevice); + idevice->priv = up_device_idevice_get_instance_private (idevice); } /** |