MCPcopy Create free account
hub / github.com/GNOME/gjs / for_gobject

Method for_gobject

gi/object.cpp:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167ObjectInstance* ObjectInstance::for_gobject(GObject* gobj) {
168 auto* priv = static_cast<ObjectInstance*>(
169 g_object_get_qdata(gobj, gjs_object_priv_quark()));
170
171 if (priv)
172 priv->check_js_object_finalized();
173
174 return priv;
175}
176
177void ObjectInstance::check_js_object_finalized() {
178 if (!m_uses_toggle_ref)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected