Module gtk

Functions

local connect (object, signal_name, handler, ...) Connect a signal to a Lua function.
disconnect (object, handler_id) Disconnect a signal handler from a given object.


Functions

local connect (object, signal_name, handler, ...)
Connect a signal to a Lua function.

Parameters

  • object:
  • signal_name: Name of the signal, like "clicked"
  • handler: A Lua function (the callback)
  • ...: (optional) extra parameters to the callback
In file: src/glib/callback.c line 280
disconnect (object, handler_id)
Disconnect a signal handler from a given object.

Parameters

  • object: The object to disconnect a handler for
  • handler_id: The handler ID of the connection, as returned from the connect function.
In file: src/glib/callback.c line 373

Valid XHTML 1.0!