object: Don't crash when given a GObject singleton
Some GObject libraries, like IBus, implement singletons by adding a custom construct vfunc, from which they return an existing GObject. This means that g_object_newv may not always return a new object. In these cases, returning the existing wrapper JS object should be enough to help clients out.
parent
0688f723
Please register or sign in to comment