Re: How to use g_signal_emit_by_name?



On Wed, 2003-10-22 at 23:53, hamb ka wrote:
Hi,

void g_signal_emit_by_name (gpointer instance, const gchar *detailed_signal. 
...)
How to give the parameter of detailed_signal, which is supposed to be in the 
form of "signal-name::detail"?
For example, the "add" signal from GtkContainer... :(

If you don't have a detail, just leave it off. (No ::)

But you cannot emit the add signal from GtkContainer using
g_signal_emit_by_name(). In general, you should emit only
the signals of your own objects.

Regards,
                                        Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]