Re: multiple data args to gtk_signal_connect

> 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).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]