Re: g_signal_connect
- From: Peter Bloomfield <peterbloomfield bellsouth net>
- To: Tomaz Canabrava <tumaix gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_signal_connect
- Date: Tue, 03 May 2005 13:33:31 +0000
On 05/03/2005 09:14:35 AM, Tomaz Canabrava wrote:
Little trouble here =)
the g_signal_connect works like what?
g_signal_connect(GTK_WIDGET(widget), signal("clicked"),
G_CALLBACK(Function), (gpointer) "Data");
but the callbacks functions have the GtkWidget *Widget as a 1st
parameter, and...
well, i simply don't get it. =)
Does anyone cares to explain to this little noob the arts and
secrets
of the g_signal_connect?
Each widget has a list of its signals, and each signal has the
prototype for its handler. See for instance
<http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-accel-closures-changed>.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]