Signals.connectWhileAlive

Warning gtk_signal_connect_while_alive is deprecated and should not be used in newly-written code. Use g_signal_connect_object() instead. Attaches a function pointer and another GtkObject to a signal. This function takes an object whose "destroy" signal should be trapped. That way, you don't have to clean up the signal handler when you destroy the object. It is a little less efficient though. (Instead you may call gtk_signal_disconnect_by_data(), if you want to explicitly delete all attachments to this object. This is perhaps not recommended since it could be confused with an integer masquerading as a pointer (through GINT_TO_POINTER()).)

class Signals
static
void
connectWhileAlive

Parameters

object ObjectGtk

the object that emits the signal.

name string

name of the signal.

func GCallback

function pointer to attach to the signal.

funcData void*

pointer to pass to func.

aliveObject ObjectGtk

object whose death should cause the handler connection to be destroyed.

Meta