[gjs: 2/3] gdbus: Remove usage of depracted G_TYPE_INSTANCE_GET_PRIVATE
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/3] gdbus: Remove usage of depracted G_TYPE_INSTANCE_GET_PRIVATE
- Date: Thu, 20 Jun 2019 03:06:56 +0000 (UTC)
commit 5b6698915edc90ac112350d61468a874b6e3ab53
Author: Philip Chimento <philip chimento gmail com>
Date: Wed Jun 19 18:59:43 2019 -0700
gdbus: Remove usage of depracted G_TYPE_INSTANCE_GET_PRIVATE
With modern GObject macros, a function is automatically generated that
fulfills the same purpose as this macro.
libgjs-private/gjs-gdbus-wrapper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgjs-private/gjs-gdbus-wrapper.c b/libgjs-private/gjs-gdbus-wrapper.c
index 17a7c6c8..216921c4 100644
--- a/libgjs-private/gjs-gdbus-wrapper.c
+++ b/libgjs-private/gjs-gdbus-wrapper.c
@@ -152,7 +152,8 @@ static gboolean gjs_dbus_implementation_property_set(
static void
gjs_dbus_implementation_init(GjsDBusImplementation *self) {
- GjsDBusImplementationPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GJS_TYPE_DBUS_IMPLEMENTATION,
GjsDBusImplementationPrivate);
+ GjsDBusImplementationPrivate* priv =
+ gjs_dbus_implementation_get_instance_private(self);
self->priv = priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]