Re: Problem in passing client data to gtk_signal_connect
- From: Evan Martin <martine cs washington edu>
- To: Deekshit Mantampady <deekshit mantampady Wipro com>
- Cc: GTK App List <gtk-app-devel-list gnome org>
- Subject: Re: Problem in passing client data to gtk_signal_connect
- Date: Wed, 8 May 2002 00:12:44 -0700
On Wed, May 08, 2002 at 12:08:52AM -0700, Deekshit Mantampady wrote:
......
gtk_signal_connect(GTK_OBJECT (gadget_), "clicked", GTK_SIGNAL_FUNC
(clicked_signal),(gpointer)1);
......
......
......
/**********************************************/
gint clicked_signal(GtkWidget *widget,
GdkEvent *event,
gpointer data )
{
printf(" %d \n",(int)data);
}
Function should be:
gint clicked_signal(GtkWidget *widget,
gpointer data )
Without the GdkEvent* argument. Read the docs carefully, the function
changes depending on the signal.
:)
--
Evan Martin
martine cs washington edu
http://neugierig.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]