GObject Signals

## GObject Signals GObject Signals — Connecting JavaScript functions to signals |

## Synopsis

    #include <seed/seed.h>

    void                seed_signal_connect                 (SeedContext ctx,
                                                             GObject *object,
                                                             const gchar *signal,
                                                             const gchar *script);
    void                seed_signal_connect_value           (SeedContext ctx,
                                                             GObject *object,
                                                             const gchar *signal,
                                                             SeedValue function,
                                                             SeedValue user_data);

## Description

Long description

## Details

### seed_signal_connect ()

    void                seed_signal_connect                 (SeedContext ctx,
                                                             GObject *object,
                                                             const gchar *signal,
                                                             const gchar *script);

Evaluates `script`, which should return a function, then connects the returned function to the signal specified by `signal` on `object`. `user_data` is passed as the user_data argument to the callback function.

`ctx` : | A valid SeedContext
`object` : | A GObject, to connect the signal on.
`signal` : | A signal specification.
`script` : | The script to connect to the signal. Should return a function.

### seed_signal_connect_value ()

    void                seed_signal_connect_value           (SeedContext ctx,
                                                             GObject *object,
                                                             const gchar *signal,
                                                             SeedValue function,
                                                             SeedValue user_data);