gtk_signal_emit_by_name trouble



Hi all,

In my current project, i have a custom widget which catches key presses at
certain times (like when the read_str function has been called :).  Users
being what they are, I expect that people will try typing at the wrong times,
and then be mad that it doesn't show up, so i would like to add a typeahead
capability.  I have Everythign set except for the part of actually processing
the typeahead.  I would like to simply re-emit the signals for the correct
key_press handler to deal with, but i cannot figure out how to call
gtk_signal_emit_by_name.  The first argument is the object (in this case my
custom widget), the second the event, "key_press_event".  But the emit
function is declared to take variable arguments.  What should these be?  Where
do i tell which key is being pressed?  If anyone can help, I would be deeply
appreciative.

katre



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