File src/gtk/init.c

Functions

local _gtkwidget_handler (w, op, flags) Handler for GtkObject derived objects.
local _special_alloc (ts) Determine how to allocate a given structure.
gtk_call_hook (L, fi) Initialize Gtk if it hasn't happened yet.


Functions

local _gtkwidget_handler (w, op, flags)
Handler for GtkObject derived objects. This is almost the same as the GInitiallyUnowned handler, but uses gtk_object_ref_sink for older GTK libraries.

Parameters

  • w:
  • op:
  • flags:
local _special_alloc (ts)
Determine how to allocate a given structure.

Parameters

  • ts: Typespec of the structure to allocate

Return value:

0=use g_slice_alloc, 1=use g_malloc, 2=special case for GdkColor
gtk_call_hook (L, fi)
Initialize Gtk if it hasn't happened yet. This function is called every time before a library function is called through this module.

Parameters

  • L:
  • fi:

Valid XHTML 1.0!