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.

Class Method Summary collapse

Class Method Details

.constructor_wrap(ptr) ⇒ Object



7
8
9
# File 'lib/ffi-gobject/initially_unowned.rb', line 7

def self.constructor_wrap ptr
  super.tap {|obj| ::GObject.object_ref_sink obj}
end