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-wup.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-wup.c')
-rw-r--r-- | src/linux/up-device-wup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/up-device-wup.c b/src/linux/up-device-wup.c index 57a9c4a..a7b00c1 100644 --- a/src/linux/up-device-wup.c +++ b/src/linux/up-device-wup.c @@ -73,7 +73,6 @@ struct UpDeviceWupPrivate }; G_DEFINE_TYPE_WITH_PRIVATE (UpDeviceWup, up_device_wup, UP_TYPE_DEVICE) -#define UP_DEVICE_WUP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UP_TYPE_DEVICE_WUP, UpDeviceWupPrivate)) static gboolean up_device_wup_refresh (UpDevice *device); @@ -420,7 +419,7 @@ out: static void up_device_wup_init (UpDeviceWup *wup) { - wup->priv = UP_DEVICE_WUP_GET_PRIVATE (wup); + wup->priv = up_device_wup_get_instance_private (wup); wup->priv->fd = -1; wup->priv->poll_timer_id = g_timeout_add_seconds (UP_DEVICE_WUP_REFRESH_TIMEOUT, (GSourceFunc) up_device_wup_poll_cb, wup); |