Re: multiple data args to gtk_signal_connect
- From: NotZed <zucchi zedzone mmc com au>
- To: joe off net (Joe Shaw)
- Cc: fritz jetzek cycosmos de (fritz jetzek), gnome-devel-list gnome org
- Subject: Re: multiple data args to gtk_signal_connect
- Date: Wed, 4 Aug 1999 08:55:39 +0930 (CST)
>
> Depending on scope and other things, you could also do
> gtk_object_set_data() either to an arbitrary object that you create and
> pass as the 4th arg or to an already existing widget that you want to
> pass. In this particular instance, you would probably want to create a
> GtkObject and pass it with those strings as data on it.
[...]
> gtk_signal_connect(GTK_OBJECT(some_button), "clicked",
> GTK_SIGNAL_FUNC(my_func), passme);
Also remember that all widgets are objects as well, so data can be
added just to the widget itself (which in most cases would be sufficient).
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]