Class: GObject::InitiallyUnowned

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi-gobject/initially_unowned.rb

Overview

Overrides for GInitiallyUnowned, GObject’s base class for objects that start with a floating reference.

Instance Method Summary collapse

Instance Method Details

#store_pointer(ptr) ⇒ Object

Initializing method used in constructors. For InitiallyUnowned and descendants, this needs to sink the object’s floating reference.



11
12
13
14
# File 'lib/ffi-gobject/initially_unowned.rb', line 11

def store_pointer(ptr)
  super
  ::GObject::Lib.g_object_ref_sink ptr
end