Re: Glade 2 & passing data to signal handlers
- From: Sven Neumann <sven gimp org>
- To: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-list gnome org
- Subject: Re: Glade 2 & passing data to signal handlers
- Date: 18 Oct 2003 12:01:12 +0200
Hi,
Russell Shaw <rjshaw iprimus com au> writes:
> Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked",
> G_CALLBACK (on_okLoginButton_clicked),
> GTK_OBJECT (loginDialog) );
Yes. Or simpler (w/o all the redundant casts):
g_signal_connect (okLoginButton, "clicked",
G_CALLBACK (on_okLoginButton_clicked),
loginDialog);
or even without writing a dedicated callback function:
g_signal_connect_swapped (okLoginButton, "clicked",
G_CALLBACK (gtk_widget_destroy),
loginDialog);
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]