Sha256: 7573b21feb68fbfbc65ccbc6cc39c907a337d8c3bb14f08280c0b78b3135dec5

Contents?: true

Size: 291 Bytes

Versions: 27

Compression:

Stored size: 291 Bytes

Contents

module GObject
  load_class :InitiallyUnowned

  # Overrides for GInitiallyUnowned, GObject's base class for objects that
  # start with a floating reference.
  class InitiallyUnowned
    def self.constructor_wrap ptr
      super.tap {|obj| ::GObject.object_ref_sink obj}
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gir_ffi-0.3.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.3.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.3.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.2.3 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.2.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.2.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.2.0 lib/ffi-gobject/initially_unowned.rb