Sha256: 45a524707ad70e493addcbd51329be9687276cfeb3e273f7c9c37cd24c5f3817

Contents?: true

Size: 465 Bytes

Versions: 22

Compression:

Stored size: 465 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

22 entries across 22 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.16.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.16.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.9 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.8 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.7 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.6 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.5 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.4 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.3 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.15.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.14.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.14.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.13.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.13.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.12.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.12.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.11.4 lib/ffi-gobject/initially_unowned.rb