[Glade-users] signal handler with arguments from property editor



I have built a gtk keypad with Glade and I wish to assign the same
"pressed" signal handler to every key button and to give an additional
argument to the signal callback, specifying for each key button a
different key identifier. Is it possible to do this from the property
editor? Thanks in advance for any help.

You can fill the field 'object'.

Glade then generates code with that text as gpointer type
argument for g_signal_connect, perhaps you will need
to place conversion in the editor. I don't know how about
libglade.

That argument you will receive in your callback (as user_data).

cheers


-- 
Wysokie Obroty Magazyn - nowy miesiecznik motoryzacyjny. Pierwszy numer juz w sprzedazy.
Wiecej informacji na: http://auto.gazeta.pl/auto/0,0.html



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