File src/glib/init.c

Functions

local _ginitiallyunowned_handler (w, op, flags) Any object derived from GInitiallyUnowned has a floating reference after creation.
local _gobject_handler (w, op, flags) Handler for GObject derived objects.


Functions

local _ginitiallyunowned_handler (w, op, flags)
Any object derived from GInitiallyUnowned has a floating reference after creation. As this reference is then "owned" by the Lua proxy object, g_object_ref_sink has to be called on new objects.

Parameters

  • w:
  • op:
  • flags:
local _gobject_handler (w, op, flags)
Handler for GObject derived objects. They have refcounting, so when a Lua proxy object is created, the refcount usually is increased by one, and when it is garbage collected, it must be decreased again. Of course, there are various fine points to it...

Parameters

  • w:
  • op:
  • flags:

Valid XHTML 1.0!