[gjs/march-maintenance: 6/6] object: Fix namespace
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/march-maintenance: 6/6] object: Fix namespace
- Date: Sat, 28 Mar 2020 05:56:35 +0000 (UTC)
commit 4768d8a9d04bf9e522841fb75672ee52d1430d48
Author: Philip Chimento <philip chimento gmail com>
Date: Mon Mar 9 07:59:32 2020 -0700
object: Fix namespace
This was the wrong namespace, but happened to work because
ObjectInstance inherits from ObjectBase.
gi/object.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index cc618621..b72406f4 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -352,7 +352,7 @@ bool ObjectInstance::prop_getter_impl(JSContext* cx, JS::HandleString name,
/* Do not fetch JS overridden properties from GObject, to avoid
* infinite recursion. */
- if (g_param_spec_get_qdata(param, ObjectInstance::custom_property_quark()))
+ if (g_param_spec_get_qdata(param, ObjectBase::custom_property_quark()))
return true;
if ((param->flags & G_PARAM_READABLE) == 0) {
@@ -481,8 +481,7 @@ bool ObjectInstance::prop_setter_impl(JSContext* cx, JS::HandleString name,
/* Do not set JS overridden properties through GObject, to avoid
* infinite recursion (unless constructing) */
- if (g_param_spec_get_qdata(param_spec,
- ObjectInstance::custom_property_quark()))
+ if (g_param_spec_get_qdata(param_spec, ObjectBase::custom_property_quark()))
return true;
if (!(param_spec->flags & G_PARAM_WRITABLE))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]