Sha256: 57789dbd6c375ca38a70a080a0183600a5e004b6d3b22610192f308dc4edabec

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true
GObject.load_class :InitiallyUnowned

module GObject
  # Overrides for GInitiallyUnowned, GObject's base class for objects that
  # start with a floating reference.
  class InitiallyUnowned
    # Initializing method used in constructors. For InitiallyUnowned and
    # descendants, this needs to sink the object's floating reference.
    def store_pointer(ptr)
      super
      ::GObject::Lib.g_object_ref_sink ptr
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.11.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.10.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.10.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.10.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.10.0.pre1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.9.5 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.9.4 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.9.3 lib/ffi-gobject/initially_unowned.rb