Skip to content
Commit c63b9f34 authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

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
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