[Glade-users] newbie question: accessing multiple widgets from the callback function of another widget

I'm sure this is a simple thing, but I'm at a loss. I have a button
that needs to call a function that has access to the values of six
spin buttons, as well as to a drawing area. I have only written one
program using GTK+ before, and that was by hand. In that one, I
collected the pointers to each of the widgets I needed access to and
put them all in an array that I then passed using the "gpointer
user-data" field of g_signal_connect. I found it inelegant and a pain
in the butt, but it worked. I have no idea, however, how to do a
similar thing in the context of glade.

I guess in general, I can't figure out how to pass arguments, or even
gather the arguments I need to pass, using Glade. The whole xml ui
file and gtk_builder function don't make any sense to me.


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