Sha256: fa1f9309ba002b78d915f25b1701d79b0a49c37d10e46086671cb099ace282f7

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

GObject.load_class :InitiallyUnowned

module GObject
  # Overrides for GInitiallyUnowned, GObject's base class for objects that
  # start with a floating reference.
  class InitiallyUnowned
    # Wrapping method used in constructors. For InitiallyUnowned and
    # descendants, this needs to sink the object's floating reference.
    def self.constructor_wrap ptr
      super.tap { |obj| ::GObject::Lib.g_object_ref_sink obj }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.7.9 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.7.8 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.7.7 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.7.6 lib/ffi-gobject/initially_unowned.rb