Re: Callback function troubles
- From: Paolo Molaro <lupus lettere unipd it>
- To: gtk-list redhat com
- Subject: Re: Callback function troubles
- Date: Mon, 28 Sep 1998 08:55:22 +0200
On Fri, Sep 25, 1998 at 04:33:22PM -0400, Brent Briggs wrote:
> void init_arm_callback(GtkWidget *widget, GdkEvent *event,
> command_struct *data)
> {
> cout << "data in init_arm_callback :\n";
> cout << "data->fdesrcipter " << data->fdescripter << "\n";
> arm_initialize(data);
> }
[..]
> gtk_signal_connect (GTK_OBJECT (button), "clicked",
> GTK_SIGNAL_FUNC (init_arm_callback),
> &command_data);
You need to check the signatures of the signals you are using:
the "clicked" signal takes only the GtkWidget and the user_data
parameter.
Look at the definitions of the Gtk*Class structures in the header files.
lupus
--
"The number of UNIX installations has grown to 10, with more expected."
- _The UNIX Programmer's Manual_, Second Edition, June, 1972.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]