GObject.Object.prototype.force_floating

function force_floating(): void {
    // Gjs wrapper for g_object_force_floating()
}
  

This function is intended for GObject.Object implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling GObject.Object.ref_sink.

Since 2.10