Skip to content
Commit a7296c18 authored by Florian Müllner's avatar Florian Müllner
Browse files

object: Support external construction of gjs-defined GObjects

Currently GObject subclasses defined in JS must be instantiated from JS
constructors, as that's where the association of the newly created native
object with the JS context and wrapper object happens. Allow this code to
run as well for GObjects that are instantiated externally via g_object_new()
(e.g. by GtkBuilder, gom, json-glib, ...) by creating the wrapper object
from the ->constructor() vfunc in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=681254
parent c90238d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment