Re: [gtk-list] multiple arguments to callback function
- From: george clipper ens fr (Cigaes)
- To: gtk-list redhat com
- Subject: Re: [gtk-list] multiple arguments to callback function
- Date: Wed, 24 Nov 1999 23:11:13 +0100 (MET)
Aaron Walker, dans le message (.gtk.general:269), a écrit :
> but, obviously, this did not work. Is there a way to pass multiple
> arguments to a callback or would I go about doing this a different way?
You can pass only one pointer. I see two solutions:
GtkText **multi_callback;
multi_callback=g_new(GtkText *,3);
multi_callback[0]=...
multi_callback[1]=...
multi_callback[2]=...
gtk_signal_connect(...,multi_callback);
Or:
gtk_object_set_data(GTK_OBJECT(button),"first_text_widget",...);
gtk_object_set_data(GTK_OBJECT(button),"second_text_widget",...);
gtk_object_set_data(GTK_OBJECT(button),"third_text_widget",...);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]