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 /libupower-glib/up-wakeup-item.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 'libupower-glib/up-wakeup-item.c')
-rw-r--r-- | libupower-glib/up-wakeup-item.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libupower-glib/up-wakeup-item.c b/libupower-glib/up-wakeup-item.c index 948e4a1..82c7c6f 100644 --- a/libupower-glib/up-wakeup-item.c +++ b/libupower-glib/up-wakeup-item.c @@ -38,8 +38,6 @@ static void up_wakeup_item_class_init (UpWakeupItemClass *klass); static void up_wakeup_item_init (UpWakeupItem *wakeup_item); static void up_wakeup_item_finalize (GObject *object); -#define UP_WAKEUP_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UP_TYPE_WAKEUP_ITEM, UpWakeupItemPrivate)) - struct UpWakeupItemPrivate { gboolean is_userspace; @@ -418,7 +416,7 @@ up_wakeup_item_class_init (UpWakeupItemClass *klass) static void up_wakeup_item_init (UpWakeupItem *wakeup_item) { - wakeup_item->priv = UP_WAKEUP_ITEM_GET_PRIVATE (wakeup_item); + wakeup_item->priv = up_wakeup_item_get_instance_private (wakeup_item); } /** |