Sha256: 1e9dd746e97d29c07790b5b25bda7ece51d7bd6d558c968713ce9bc7a5e4cc2e

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 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
    # 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

10 entries across 10 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.9.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.9.0 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.6 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.5 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.4 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.3 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.2 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.1 lib/ffi-gobject/initially_unowned.rb
gir_ffi-0.8.0 lib/ffi-gobject/initially_unowned.rb