multiple data args to gtk_signal_connect



hey...

i may be stupid, but in 3 months of around-the-clock coding i still have
no idea how to pass multiple arguments via the gtk_signal_connect
function, for example when i need to change various widgets on emission
of a signal. calling gtk_signal_connect for each widget is not viable in
my case since the widgets also depend on each other. i might set up a
glist on the fly to pass it in the gpointer field of the call but that
seems a bit awkward... could someone point me to the most elegant way?

to make the question clear by code:

(example)

bla = g_string_new("asdf");
blub = g_string_new("hi");

gtk_signal_connect(GTK_OBJECT(some_button), "clicked",
GTK_SIGNAL_FUNC(my_func), bla, blub);
                                                                                
^^^^^^^^^
                                                                                
illegal

sorry for this ;)

fritz



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